Crowdsignal Forms - Version 1.5.3

Version Description

Download this release

Release Info

Developer cgastrell
Plugin Icon wp plugin Crowdsignal Forms
Version 1.5.3
Comparing to
See all releases

Code changes from version 1.5.2 to 1.5.3

README.TXT CHANGED
@@ -4,7 +4,7 @@ Tags: polls, forms, surveys, gutenberg, block
4
  Requires at least: 5.0
5
  Requires PHP: 5.6.20
6
  Tested up to: 5.6
7
- Stable tag: 1.5.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -67,6 +67,19 @@ Compare our [simple and affordable plans](https://crowdsignal.com/pricing/) or t
67
 
68
  == Changelog ==
69
 
 
 
 
 
 
 
 
 
 
 
 
 
 
70
  = 1.5.1 =
71
  * Finetune footer branding (#115)
72
  * New Feedback block added (#110)
@@ -95,24 +108,10 @@ Compare our [simple and affordable plans](https://crowdsignal.com/pricing/) or t
95
  * Add NPS block
96
  * Fixed redirect logic for the poll block
97
 
98
- = 1.3.5 =
99
- * Show branding on editor and a message when free signals are exhausted (#11)
100
- * Remove redirect URL feature (#12)
101
-
102
- = 1.3.4 =
103
- * Escape the redirect address to avoid XSS. (#7)
104
- * Bump tested version to 5.6 (#8)
105
- * Unset margins on applause count container (#6)
106
-
107
- = 1.3.3 =
108
- * Unwrap all i18n calls (#1)
109
- * Use default theme font for Applause count (#3)
110
- * Fix applause branding styles (#4)
111
-
112
  == Upgrade Notice ==
113
 
114
- = 1.4.3 =
115
- Introduce new NPS block
116
 
117
  = 0.9 =
118
  Initial release
4
  Requires at least: 5.0
5
  Requires PHP: 5.6.20
6
  Tested up to: 5.6
7
+ Stable tag: 1.5.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
67
 
68
  == Changelog ==
69
 
70
+ = 1.5.3 =
71
+ * Remove the filter as it either turns problematic or doesn't solve the issue at all (#146)
72
+ * Fix feedback form rendering issues on mobile screens (#143)
73
+ * Add filter to control transform behavior (#142)
74
+ * Add different toggle settings for the feedback button block (#139)
75
+ * Implement a toggle for making feedback email mandatory (#138)
76
+ * Add a vertical middle position for the feedback block (#140)
77
+ * Make branding enabled by default on atomic sites (#134)
78
+ * Fix poll styling issues (#135)
79
+ * Hide CS logo on the popup form (#136)
80
+ * Consistently name panel section "Settings" and subsection "Status" (#133)
81
+ * Refresh readme (#112)
82
+
83
  = 1.5.1 =
84
  * Finetune footer branding (#115)
85
  * New Feedback block added (#110)
108
  * Add NPS block
109
  * Fixed redirect logic for the poll block
110
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
111
  == Upgrade Notice ==
112
 
113
+ = 1.5.3 =
114
+ Fixes for Feedback Button block. Poll block styles improvements.
115
 
116
  = 0.9 =
117
  Initial release
build/editor.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-polyfill'), 'version' => '6e52ed01e9f29d434b7ea61455a092ba');
1
+ <?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-polyfill'), 'version' => '2392f0ede338cee9539881a92a51d0a6');
build/editor.css CHANGED
@@ -1 +1 @@
1
- .crowdsignal-forms__connect-to-crowdsignal{border:1px solid #000;font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;padding:24px;text-align:initial}.crowdsignal-forms__connect-to-crowdsignal-header{display:flex;flex-direction:row;align-items:center}.crowdsignal-forms__connect-to-crowdsignal-body{font-size:13px;margin-top:24px;margin-bottom:16px}.crowdsignal-forms__connect-to-crowdsignal-title{font-size:24pt;margin-inline-start:16px}.crowdsignal-forms__editor-notice{margin:0 0 15px !important}.crowdsignal-forms__editor-notice .components-notice__content{display:flex;flex-direction:row;align-items:center}.crowdsignal-forms__editor-notice-icon{line-height:0;padding:8px 16px 8px 8px}.is-warn .crowdsignal-forms__editor-notice-icon{color:var(--wp-admin-theme-color)}.crowdsignal-forms__editor-notice-text{flex-grow:1;color:var(--crowdsignal-forms-text-color)}.crowdsignal-forms__editor-notice-text a{text-decoration:underline}.crowdsignal-forms__sidebar-promote{margin-left:16px;flex-grow:1}.crowdsignal-forms__footer-branding{align-items:center;display:flex;margin-top:16px;width:100%}.crowdsignal-forms__footer-branding img.crowdsignal-forms__footer-branding-logo{height:50px;margin-left:auto;margin-right:0;width:50px}.crowdsignal-forms__footer-branding .crowdsignal-forms__branding-promote{display:inline-flex;font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;font-size:10px;text-decoration:none !important;box-shadow:none;border:0;background-color:#a4a4a4a4;color:#fff;cursor:pointer;padding-right:8px;padding-left:8px;margin-left:16px;border-radius:2px;padding-top:2px;padding-bottom:2px;vertical-align:middle}.crowdsignal-forms__footer-cs-link{display:inline-flex;font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;font-size:inherit;line-height:inherit;text-decoration:none;text-transform:uppercase;vertical-align:middle;border-bottom:0 solid var(--crowdsignal-forms-text-color) !important}.crowdsignal-forms__footer-cs-link:not(:hover){color:var(--crowdsignal-forms-text-color);opacity:0.4}.has-default-thankyou .crowdsignal-forms__footer-cs-link{color:#333}#editor .editor-styles-wrapper .crowdsignal-forms-poll{margin-left:0;margin-right:0}#editor .editor-styles-wrapper .block-editor-block-list__block[data-type="crowdsignal-forms/poll"][data-align="full"] .crowdsignal-forms-poll{border-left-width:0;border-right-width:0}@media screen and (min-width: 660px){#editor .editor-styles-wrapper .block-editor-block-list__block[data-type="crowdsignal-forms/poll"][data-align="wide"] .crowdsignal-forms-poll__content,#editor .editor-styles-wrapper .block-editor-block-list__block[data-type="crowdsignal-forms/poll"][data-align="full"] .crowdsignal-forms-poll__content{padding:80px}}#editor .editor-styles-wrapper .crowdsignal-forms-poll__answer{cursor:text}#editor .editor-styles-wrapper .crowdsignal-forms-poll__answer:hover,#editor .editor-styles-wrapper .crowdsignal-forms-poll__answer.is-focused{color:inherit}#editor .editor-styles-wrapper .wp-block-button .crowdsignal-forms-poll__submit-button.wp-block-button__link{cursor:text}#editor .editor-styles-wrapper .wp-block-button .crowdsignal-forms-poll__submit-button.wp-block-button__link:hover{opacity:inherit}.crowdsignal-forms-poll__resize-wrapper{margin-left:auto;margin-right:auto}.crowdsignal-forms__redirect-url input[type="text"]{width:100%}.crowdsignal-forms__redirect-url__suggestions{width:260px}.crowdsignal-forms__row{display:flex;flex-direction:row}.crowdsignal-forms__row .crowdsignal-forms__small-text-input input[type="text"]{width:40px}.crowdsignal-forms__row .crowdsignal-forms__small-text-input input[type="number"]{width:50px}.crowdsignal-forms__reset-width-button{margin-left:auto;margin-top:25px}.crowdsignal-forms-poll__edit-bar{font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;font-size:13px;margin-top:24px;padding:18px 24px;color:#d82e20;border-left:4px solid #d82e20;background:#f8dad8;display:flex;flex-direction:row;justify-content:space-between;align-items:center}.crowdsignal-forms-poll__edit-bar .crowdsignal-forms-poll__edit-bar-message{padding-inline-end:24px}.crowdsignal-forms-poll__edit-bar button.crowdsignal-forms-poll__edit-bar-button{border:2px solid #d82e20;border-radius:4px;color:#d82e20;background:transparent;padding:8px 16px;cursor:pointer}.crowdsignal-poll-wrapper:not(:first-child),[data-type="crowdsignal-forms/poll"]:not(:first-child){margin-top:3em}.crowdsignal-poll-wrapper:not(:last-child),[data-type="crowdsignal-forms/poll"]:not(:last-child){margin-bottom:3em}.crowdsignal-forms-poll{border-color:var(--crowdsignal-forms-border-color);border-style:solid;border-width:var(--crowdsignal-forms-border-width);margin-left:auto;margin-right:auto;margin-top:5px;position:relative;text-align:left}.entry-content .alignfull.crowdsignal-poll-wrapper .crowdsignal-forms-poll{border-left-width:0;border-right-width:0}.crowdsignal-forms-poll h3.crowdsignal-forms-poll__question{margin:0 0 28px}.crowdsignal-forms-poll h3.crowdsignal-forms-poll__question:first-child{margin-top:0}.crowdsignal-forms-poll .crowdsignal-forms-poll__note{font-style:italic;margin:0 0 32px}.crowdsignal-forms-poll .crowdsignal-forms-poll__content{padding:40px 24px 16px 24px}.crowdsignal-forms-poll .crowdsignal-forms-poll__content .crowdsignal-forms-poll__question{font-family:var(--crowdsignal-forms-question-font-family)}.crowdsignal-forms-poll .crowdsignal-forms-poll__content .crowdsignal-forms-poll__answer-label,.crowdsignal-forms-poll .crowdsignal-forms-poll__content .crowdsignal-forms-poll__answer-results-answer,.crowdsignal-forms-poll .crowdsignal-forms-poll__content .crowdsignal-forms-poll__note{font-family:var(--crowdsignal-forms-body-font-family)}.entry-content .alignfull.crowdsignal-poll-wrapper .crowdsignal-forms-poll .crowdsignal-forms-poll__content{margin:0 auto;max-width:var(--crowdsignal-forms-content-wide-width)}@media screen and (min-width: 660px){.alignwide.crowdsignal-poll-wrapper .crowdsignal-forms-poll .crowdsignal-forms-poll__content,.alignfull.crowdsignal-poll-wrapper .crowdsignal-forms-poll .crowdsignal-forms-poll__content{padding:80px}}.crowdsignal-forms-poll.is-closed .crowdsignal-forms-poll__form{opacity:0.5}.crowdsignal-forms-poll.is-hidden{opacity:0.5}.crowdsignal-forms-poll.has-text-color{color:var(--crowdsignal-forms-text-color)}.crowdsignal-forms-poll.has-bg-color{background-color:var(--crowdsignal-forms-bg-color)}.crowdsignal-forms-poll.has-border-radius{border-radius:var(--crowdsignal-forms-border-radius);overflow:hidden}.crowdsignal-forms-poll.has-box-shadow{box-shadow:0 3px 6px rgba(0,0,0,0.16),0 3px 6px rgba(0,0,0,0.23)}.crowdsignal-forms-poll .is-transparent{opacity:0;pointer-events:none}.crowdsignal-forms-poll__block-button .crowdsignal-forms-poll__submit-button{-webkit-appearance:initial}.crowdsignal-forms-poll__block-button .crowdsignal-forms-poll__submit-button:disabled{opacity:0.7}.crowdsignal-forms-poll.has-submit-button-text-color .crowdsignal-forms-poll__block-button .crowdsignal-forms-poll__submit-button.wp-block-button__link{color:var(--crowdsignal-forms-submit-button-text-color)}.crowdsignal-forms-poll.has-submit-button-bg-color .crowdsignal-forms-poll__block-button .crowdsignal-forms-poll__submit-button.wp-block-button__link{background-color:var(--crowdsignal-forms-submit-button-bg-color)}.crowdsignal-forms-poll.has-submit-button-bg-color .crowdsignal-forms-poll__block-button .crowdsignal-forms-poll__submit-button.wp-block-button__link:hover{opacity:0.9}.crowdsignal-forms-poll__options.is-button{display:flex;flex-direction:column;flex-wrap:wrap}.crowdsignal-forms-poll__options.is-button.is-inline-button-alignment{flex-direction:row}.crowdsignal-forms-poll__answer{cursor:pointer;display:flex;font-size:inherit;font-weight:600;margin:0;padding:0 2px;position:relative}.crowdsignal-forms-poll__answer.is-button{margin-inline-end:20px;margin-block-end:20px;max-width:100%}.crowdsignal-forms-poll__answer.is-button .wp-block-button.crowdsignal-forms-poll__block-button,.crowdsignal-forms-poll__answer.is-button .crowdsignal-forms-poll__submit-button{max-width:100%}.crowdsignal-forms-poll__answer.is-button .crowdsignal-forms-poll__submit-button{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.crowdsignal-forms-poll__answer:not(.is-button){margin-block-end:16px}.crowdsignal-forms-poll__answer:hover,.crowdsignal-forms-poll__answer.is-focused{color:var(--crowdsignal-forms-submit-button-bg-color)}.has-voted .crowdsignal-forms-poll__answer{opacity:0.5}input[type="checkbox"].crowdsignal-forms-poll__input,input[type="radio"].crowdsignal-forms-poll__input{height:0;opacity:0;position:absolute;width:0}.crowdsignal-forms-poll__check{display:inline-block;height:1em;margin:0 10px 0 0;position:relative;width:1em}.crowdsignal-forms-poll__check::before{background-color:transparent;border:1.5px solid var(--crowdsignal-forms-text-color);border-radius:50%;box-sizing:border-box;content:"";display:block;height:100%;transition:background-color 0.3s, border-color 0.3s;width:100%}.crowdsignal-forms-poll__answer.is-multiple-choice .crowdsignal-forms-poll__check::before{border-radius:3px}.crowdsignal-forms-poll__answer.is-multiple-choice.is-selected .crowdsignal-forms-poll__check::before{border-color:var(--crowdsignal-forms-text-color);background-color:var(--crowdsignal-forms-text-color)}.crowdsignal-forms-poll__answer.is-selected:not(.is-multiple-choice) .crowdsignal-forms-poll__check::after{animation-duration:0.3s;animation-name:crowdsignal-forms-animation__pop;animation-iteration-count:1;background-clip:padding-box;background-color:var(--crowdsignal-forms-text-color);border:4.5px solid transparent;border-radius:50%;box-sizing:border-box;content:"";display:block;height:100%;position:absolute;left:0;top:0;width:100%}.crowdsignal-forms-poll__answer.is-selected.is-multiple-choice .crowdsignal-forms-poll__check::after{border-color:var(--crowdsignal-forms-submit-button-text-color);border-style:solid;border-width:0 0 2px 2px;box-sizing:border-box;content:"";display:block;height:25%;margin:-0.1em 0 0 -0.2em;position:absolute;left:50%;top:50%;transform:rotateZ(-45deg);width:50%}div.crowdsignal-forms-poll__answer-label-wrapper{flex:1;word-break:break-word}div.crowdsignal-forms-poll__answer-label-wrapper span.crowdsignal-forms-poll__answer-label{line-height:1;vertical-align:top}div.crowdsignal-forms-poll__answer-label-wrapper span.crowdsignal-forms-poll__answer-label span::after{vertical-align:top}.crowdsignal-forms-poll__button{border:0;padding:0}.crowdsignal-forms-poll__actions .wp-block-button,.crowdsignal-forms-poll__options .wp-block-button{margin:0}.crowdsignal-forms-poll__actions{display:flex;justify-content:flex-end}.editor-styles-wrapper .crowdsignal-forms-poll .crowdsignal-forms-poll__actions .wp-block-button.crowdsignal-forms-poll__block-button,.editor-styles-wrapper .crowdsignal-forms-poll .crowdsignal-forms-poll__options .wp-block-button.crowdsignal-forms-poll__block-button{margin:0}.crowdsignal-forms-poll__closed-banner{background-color:var(--crowdsignal-forms-border-color);box-sizing:border-box;display:flex;color:var(--crowdsignal-forms-submit-button-text-color);font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;justify-content:center;padding:calc(var(--crowdsignal-forms-border-width) + 0.2em) 0 0.2em;width:100%}.is-hidden .crowdsignal-forms-poll__closed-banner{font-style:italic}.crowdsignal-forms-poll__error{color:red}.crowdsignal-forms-poll__results-list{margin:0 0 1em;position:relative}.crowdsignal-forms-poll__answer-results{display:flex;flex-direction:column;margin:0 0 16px;width:100%}.crowdsignal-forms-poll__answer-results:last-child{margin:0}.crowdsignal-forms-poll__answer-results-labels{align-items:flex-end;display:flex;margin:0 0 8px;width:100%;word-break:break-word}.crowdsignal-forms-poll__answer-results-answer{flex:1;font-size:1em;font-weight:600}.crowdsignal-forms-poll__answer-results-votes{font-size:0.75em;line-height:2}.crowdsignal-forms-poll__answer-results-percent{font-weight:600;line-height:1.6}.crowdsignal-forms-poll__answer-results-votes,.crowdsignal-forms-poll__answer-results-percent{font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;margin-left:20px;transition:opacity 0.3s}.crowdsignal-forms-poll__answer-results.is-error .crowdsignal-forms-poll__answer-results-votes,.crowdsignal-forms-poll__answer-results.is-error .crowdsignal-forms-poll__answer-results-percent{display:none}.crowdsignal-forms-poll__answer-results.is-loading .crowdsignal-forms-poll__answer-results-votes,.crowdsignal-forms-poll__answer-results.is-loading .crowdsignal-forms-poll__answer-results-percent{animation-duration:1.5s;animation-iteration-count:infinite;animation-name:crowdsignal-forms-animation__pulse;background-color:var(--crowdsignal-forms-text-color);font-size:0.7em;height:1em;width:50px}.crowdsignal-forms-poll__answer-results.is-loading .crowdsignal-forms-poll__answer-results-votes:last-child,.crowdsignal-forms-poll__answer-results.is-loading .crowdsignal-forms-poll__answer-results-percent:last-child{width:40px}.crowdsignal-forms-poll__answer-results-progress-track{border:1px solid;border-color:rgba(var(--crowdsignal-forms-text-color-properties), 0.3);box-sizing:border-box;height:1em;width:100%}.crowdsignal-forms-poll__answer-results.is-loading .crowdsignal-forms-poll__answer-results-progress-track{animation-duration:1.5s;animation-iteration-count:infinite;animation-name:crowdsignal-forms-animation__pulse}.crowdsignal-forms-poll__answer-results-progress-bar{animation-fill-mode:forwards;background-color:var(--crowdsignal-forms-submit-button-bg-color);height:100%;transition:background-color 0.3s, width 0.3s}.crowdsignal-forms-poll__answer-results.is-error .crowdsignal-forms-poll__answer-results-progress-bar{width:0}.crowdsignal-forms-poll__answer-results.is-loading .crowdsignal-forms-poll__answer-results-progress-bar{background-color:var(--crowdsignal-forms-text-color);width:25%}.crowdsignal-forms-poll__answer-results.is-loading:nth-child(5n+1) .crowdsignal-forms-poll__answer-results-progress-bar{width:40%}.crowdsignal-forms-poll__answer-results.is-loading:nth-child(5n+2) .crowdsignal-forms-poll__answer-results-progress-bar{width:75%}.crowdsignal-forms-poll__answer-results.is-loading:nth-child(5n+3) .crowdsignal-forms-poll__answer-results-progress-bar{width:50%}.crowdsignal-forms-poll__answer-results.is-loading:nth-child(5n+4) .crowdsignal-forms-poll__answer-results-progress-bar{width:60%}.crowdsignal-forms-poll__results-footer{display:flex;flex-direction:column;justify-content:space-between;width:100%;font-size:0.9em}.crowdsignal-forms-poll__results-total{font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;position:relative;text-align:right;width:100%;margin-bottom:1em}.crowdsignal-forms-poll__results.is-loading .crowdsignal-forms-poll__results-total{color:transparent}.crowdsignal-forms-poll__results.is-loading .crowdsignal-forms-poll__results-total::before{animation-name:crowdsignal-forms-animation__pulse;animation-duration:1.5s;animation-iteration-count:infinite;background-color:var(--crowdsignal-forms-text-color);content:"";display:block;position:absolute;right:0;height:1em;width:150px}.crowdsignal-forms-poll__error-banner{font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;font-size:13px;margin-top:24px;padding:18px 24px;color:#d82e20;border-left:4px solid #d82e20;background:#f8dad8}.crowdsignal-forms-poll__submit-message-container{position:absolute;background-color:var(--crowdsignal-forms-bg-color);left:0;top:0;width:100%;height:100%;overflow:hidden}.has-default-thankyou .crowdsignal-forms-poll__submit-message-container{background-color:#fff}.crowdsignal-forms-poll__submit-message{position:relative}.crowdsignal-forms-poll__submit-message button.crowdsignal-forms-poll__dismiss-submit-message{position:absolute;right:0;top:0;background-color:transparent;color:#000;text-decoration:none;border:none}.crowdsignal-forms-poll__submit-message button.crowdsignal-forms-poll__dismiss-submit-message:hover{background:inherit}.crowdsignal-forms-poll__submit-message-footer{position:absolute;bottom:0;left:0;padding:16px 24px;width:100%;background-color:inherit}.crowdsignal-forms-poll__thank-you-cs-sticker{right:25px;top:66px}.crowdsignal-forms-poll__thank-you-sticker{right:132px;top:12px}.crowdsignal-forms-poll__thank-you-cs-sticker,.crowdsignal-forms-poll__thank-you-sticker{filter:drop-shadow(0 1px 2px rgba(0,0,0,0.2));width:100px;height:100px;position:absolute}.crowdsignal-forms-poll__custom-message-check{color:var(--crowdsignal-forms-text-color);padding-left:24px;padding-top:24px}.crowdsignal-forms-poll__custom-message{font-family:var(--crowdsignal-forms-question-font-family);font-weight:600;padding:16px 24px}.wp_block-crowdsignal-forms-poll__vote-branding{margin-top:16px}.crowdsignal-forms__style-probe{display:none}.crowdsignal-forms-vote .block-editor-block-list__layout{display:flex;flex-direction:row}.crowdsignal-forms__border-popover .crowdsignal-forms__row{padding:10px}.crowdsignal-forms-vote.no-results .crowdsignal-forms-vote-item__count{display:none}.crowdsignal-forms-vote__size-dropdown .components-button.components-dropdown-menu__menu-item.is-active::after{content:"\2713";margin-inline-start:auto;margin-inline-end:0}.crowdsignal-vote-wrapper:not(:first-child),[data-type="crowdsignal-forms/vote"]:not(:first-child){margin-top:3em}.crowdsignal-vote-wrapper:not(:last-child),[data-type="crowdsignal-forms/vote"]:not(:last-child){margin-bottom:3em}.crowdsignal-forms-vote{align-items:center;display:inline-flex;flex-direction:column}.crowdsignal-forms-vote.crowdsignal-forms-vote__example{align-items:center}[data-type="crowdsignal-forms/vote-item"]{margin-top:28px !important;margin-bottom:0 !important}.crowdsignal-forms-vote__items{display:flex;flex-direction:row}.crowdsignal-forms-vote-item{border:var(--crowdsignal-forms-vote-border-width) solid #d2d2d2;border-radius:var(--crowdsignal-forms-vote-border-radius);cursor:pointer;display:flex;flex-direction:row;align-items:center;position:relative;user-select:none;-webkit-user-select:none}.crowdsignal-forms-vote-item:not(:last-child){margin-inline-end:8px !important}.crowdsignal-forms-vote-item.has-bg-color{background-color:var(--crowdsignal-forms-vote-bg-color)}.crowdsignal-forms-vote-item.has-border-color{border-color:var(--crowdsignal-forms-vote-border-color)}.crowdsignal-forms-vote-item.has-text-color{color:var(--crowdsignal-forms-vote-text-color)}.is-closed .crowdsignal-forms-vote-item,.crowdsignal-forms-vote-item.is-disabled{cursor:inherit}.is-closed .crowdsignal-forms-vote-item,.crowdsignal-forms-vote-item.is-disabled:not(.is-voted-on){opacity:0.5}.size-small .crowdsignal-forms-vote-item{padding:18px 10px;height:0.7em}.size-small .crowdsignal-forms-vote-item.is-type-down{padding-left:9px}.size-medium .crowdsignal-forms-vote-item{height:1em;padding:20px 10px}.size-medium .crowdsignal-forms-vote-item.is-type-down{padding-left:9px}.size-large .crowdsignal-forms-vote-item{height:1.2em;padding:22px 16px}.size-large .crowdsignal-forms-vote-item:not(:last-child){margin-inline-end:16px !important}.size-large .crowdsignal-forms-vote-item.is-type-down{padding-left:15px}.crowdsignal-forms-vote-item.is-voted-on,.crowdsignal-forms-vote-item:hover:not(.is-disabled),.crowdsignal-forms-vote-item:focus:not(.is-disabled):not(.is-in-editor){border-color:var(--crowdsignal-forms-vote-voted-color);color:var(--crowdsignal-forms-vote-voted-color)}.crowdsignal-forms-vote-item.is-voted-on.has-bg-color,.crowdsignal-forms-vote-item.is-voted-on.has-text-color,.crowdsignal-forms-vote-item:hover:not(.is-disabled).has-bg-color,.crowdsignal-forms-vote-item:hover:not(.is-disabled).has-text-color,.crowdsignal-forms-vote-item:focus:not(.is-disabled):not(.is-in-editor).has-bg-color,.crowdsignal-forms-vote-item:focus:not(.is-disabled):not(.is-in-editor).has-text-color{background-color:var(--crowdsignal-forms-vote-text-color);border-color:var(--crowdsignal-forms-vote-bg-color);color:var(--crowdsignal-forms-vote-bg-color)}.size-small .crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__icon{width:0.7em;height:0.7em;max-height:0.7em}.size-medium .crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__icon{width:1em;height:1em;max-height:1em}.size-large .crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__icon{width:1.2em;height:1.2em;max-height:1.2em}.crowdsignal-forms-vote-item.is-voted-on .crowdsignal-forms-vote-item__icon{animation-duration:0.4s;animation-name:crowdsignal-forms-animation__grow;animation-iteration-count:1;animation-timing-function:ease-out}.crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__count{font-size:14pt;font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;margin-inline-start:10px;font-variant-numeric:tabular-nums;transform:rotateX(0deg);transform-origin:50% 50% 10px;transition:transform 0.3s}.size-small .crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__count{font-size:0.6em}.size-medium .crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__count{font-size:0.8em}.size-large .crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__count{font-size:1em}.crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__count-enter,.crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__count-enter-active{margin:0;position:absolute;right:0}.crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__count-enter{transform:rotateX(-90deg)}.crowdsignal-forms-vote-item.is-voted-on .crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__count-enter{transform:rotateX(90deg)}.crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__count-exit,.crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__count-exit-active{margin:0;position:absolute;right:10px;top:4px;transform:rotateX(90deg)}.crowdsignal-forms-vote-item.is-voted-on .crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__count-exit,.crowdsignal-forms-vote-item.is-voted-on .crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__count-exit-active{transform:rotateX(-90deg)}.crowdsignal-forms-vote__branding{display:flex}.crowdsignal-forms-vote__branding .crowdsignal-forms-vote__branding-link{font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;font-size:8px;padding:8px 4px 0;text-decoration:none !important;text-transform:uppercase;border:0 !important}.crowdsignal-forms-vote__branding .crowdsignal-forms-vote__branding-link.with-external-icon::after{content:"\2197";display:inline;font-size:6px;vertical-align:super}.crowdsignal-forms-vote__branding .crowdsignal-forms-vote__branding-link:not(:hover){color:var(--crowdsignal-forms-text-color)}.crowdsignal-applause-wrapper{margin-bottom:3em}.crowdsignal-forms-applause{display:flex;flex-direction:row;align-items:center;outline:0;width:max-content;cursor:pointer;border:var(--crowdsignal-forms-applause-border-width) solid #d2d2d2;border-radius:var(--crowdsignal-forms-applause-border-radius);user-select:none;--webkit-user-select: none}.crowdsignal-forms-applause .crowdsignal-forms-applause__count{margin:unset !important}.crowdsignal-forms-applause.size-small{padding:20px 16px 18px 12px;height:0.7em}.crowdsignal-forms-applause.size-small .crowdsignal-forms-applause__count{font-size:14px;padding-bottom:2px}.crowdsignal-forms-applause.size-medium{height:1em;padding:24px 16px 20px 8px}.crowdsignal-forms-applause.size-medium .crowdsignal-forms-applause__count{font-size:16px;padding-bottom:4px}.crowdsignal-forms-applause.size-large{height:1.2em;padding:28px 18px 22px 8px}.crowdsignal-forms-applause.size-large .crowdsignal-forms-applause__count{font-size:19px;padding-bottom:6px}.crowdsignal-forms-applause.is-closed{opacity:0.5}.crowdsignal-forms-applause.has-text-color{color:var(--crowdsignal-forms-applause-text-color)}.crowdsignal-forms-applause.has-border-color{border:var(--crowdsignal-forms-applause-border-width) solid var(--crowdsignal-forms-applause-border-color)}.crowdsignal-forms-applause.has-bg-color{background-color:var(--crowdsignal-forms-applause-bg-color)}.crowdsignal-forms-applause:not(.is-closed):hover{color:var(--crowdsignal-forms-applause-hover-color);border-color:var(--crowdsignal-forms-applause-hover-color)}.crowdsignal-forms-applause:not(.is-closed):hover.has-bg-color{color:var(--crowdsignal-forms-applause-bg-color);background-color:var(--crowdsignal-forms-applause-text-color);border-color:var(--crowdsignal-forms-applause-bg-color)}.crowdsignal-forms-applause__animation{fill:var(--crowdsignal-forms-applause-text-color);margin-inline-end:5px}.crowdsignal-forms-applause.size-small .crowdsignal-forms-applause__animation{width:33px;height:33px;max-height:33px}.crowdsignal-forms-applause.size-medium .crowdsignal-forms-applause__animation{width:50px;height:50px;max-height:50px}.crowdsignal-forms-applause.size-large .crowdsignal-forms-applause__animation{width:60px;height:60px;max-height:60px}.crowdsignal-forms-applause__animation .crowdsignal-forms-applause__animation-inner-fill{fill:var(--crowdsignal-forms-applause-bg-color)}.crowdsignal-forms-applause:not(.is-closed):hover .crowdsignal-forms-applause__animation{fill:var(--crowdsignal-forms-applause-hover-color)}.crowdsignal-forms-applause.has-bg-color:not(.is-closed):hover .crowdsignal-forms-applause__animation{fill:var(--crowdsignal-forms-applause-bg-color)}.crowdsignal-forms-applause.has-bg-color:not(.is-closed):hover .crowdsignal-forms-applause__animation .crowdsignal-forms-applause__animation-inner-fill{fill:var(--crowdsignal-forms-applause-text-color)}.crowdsignal-forms-applause__animation-right{transition:transform 0.3s}.crowdsignal-forms-applause:not(.is-closed):hover .crowdsignal-forms-applause__animation-right{transform:translateX(3%) translateY(-3%)}.crowdsignal-forms-applause__animation-left{transition:transform 0.3s}.crowdsignal-forms-applause:not(.is-closed):hover .crowdsignal-forms-applause__animation-left{transform:translateX(-3%) translateY(0)}.crowdsignal-forms-applause__animation-wave-small{opacity:1}.crowdsignal-forms-applause:not(.is-closed):hover .crowdsignal-forms-applause__animation-wave-small{animation:crowdsignal-forms-animation__fade-out 0.3s forwards;transform:translateY(-5%);transition:transform 0.3s}.crowdsignal-forms-applause__animation-wave-large{opacity:0}.crowdsignal-forms-applause .crowdsignal-forms-applause__animation.is-active .crowdsignal-forms-applause__animation-right{transform:translateX(-3%) translateY(0);transition:transform 0.1s}.crowdsignal-forms-applause .crowdsignal-forms-applause__animation.is-active .crowdsignal-forms-applause__animation-left{transform:translateX(3%) translateY(0);transition:transform 0.1s}.crowdsignal-forms-applause .crowdsignal-forms-applause__animation.is-active .crowdsignal-forms-applause__animation-wave-small{animation:crowdsignal-forms-animation__fade-out 0.3s forwards;transform:translateY(-5%);transition:transform 0.3s}.crowdsignal-forms-applause .crowdsignal-forms-applause__animation.is-active .crowdsignal-forms-applause__animation-wave-large{animation:crowdsignal-forms-animation__fade-in 0.03s forwards;animation-delay:0.07s}.crowdsignal-forms-nps.is-inactive{opacity:0.6}.crowdsignal-forms-nps__toolbar-toggle{font-weight:600;padding-left:16px !important;padding-right:16px !important}.crowdsignal-forms-nps__toolbar-popover{padding:15px;min-width:300px}.crowdsignal-forms-nps__toolbar-popover .components-base-control__field{display:flex;flex-direction:row;align-items:center;margin-bottom:0}.crowdsignal-forms-nps__toolbar-popover .components-base-control__label{display:block;flex-grow:1;line-height:30px;margin-bottom:0}.crowdsignal-forms-nps__toolbar-popover .components-text-control__input{width:5em}.crowdsignal-forms-nps__toolbar-popover-button svg{margin-right:0 !important}.crowdsignal-forms-nps__toolbar-popover-button.components-button.has-icon .dashicon{margin-right:2px}.crowdsignal-forms-nps__rating-button:hover{background-color:var(--crowdsignal-forms-button-text-color);border-color:var(--crowdsignal-forms-button-color);color:var(--crowdsignal-forms-button-color)}.editor-styles-wrapper .components-button.is-secondary.crowdsignal-forms-nps__preview-button{text-decoration:none}.editor-styles-wrapper .components-button.is-secondary.crowdsignal-forms-nps__preview-button.is-disabled{display:none}.editor-styles-wrapper .crowdsignal-forms-feedback__header{color:var(--crowdsignal-forms-text-color)}.crowdsignal-forms-nps{border:0;border-top:10px solid var(--crowdsignal-forms-button-color);background-color:var(--crowdsignal-forms-background-color);color:var(--crowdsignal-forms-text-color);height:auto;padding:24px 16px;position:relative}@media screen and (min-width: 670px){.crowdsignal-forms-nps{padding:32px 32px 24px 32px}}.crowdsignal-forms-nps .crowdsignal-forms__footer-branding{margin-top:40px;font-size:16px}.crowdsignal-forms-nps__close-button{align-items:center;background-color:var(--crowdsignal-forms-button-color);border:0;border-radius:20px;color:var(--crowdsignal-forms-button-text-color);display:flex;height:40px;justify-content:center;outline:0;padding:0;position:absolute;right:-20px;top:-25px;width:40px}.crowdsignal-forms-nps__close-button:hover{background-color:var(--crowdsignal-forms-button-text-color);color:var(--crowdsignal-forms-button-color)}.crowdsignal-forms-nps__question{margin-top:0 !important;margin-bottom:32px !important}.crowdsignal-forms-nps__rating{display:flex;flex-direction:column}.crowdsignal-forms-nps__rating-labels{display:flex;flex-direction:row;font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;font-size:14px;justify-content:space-between;margin-top:8px}.crowdsignal-forms-nps__rating-scale{display:flex;margin:10px auto 0;width:100%}.crowdsignal-forms-nps__rating-button{background-color:var(--crowdsignal-forms-button-color);border:1px solid var(--crowdsignal-forms-button-color);border-radius:2px;color:var(--crowdsignal-forms-button-text-color);cursor:pointer;display:inline-flex;flex:1;font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;font-size:15px;font-weight:600;height:50px;justify-content:center;line-height:50px;margin:0 0 0 0.4em;padding:0;text-align:center;text-decoration:none;transition:background-color 0.2s, color 0.2s}.crowdsignal-forms-nps__rating-button:first-child{margin:0}.crowdsignal-forms-nps__rating-button:hover:enabled{background-color:var(--crowdsignal-forms-button-text-color);color:var(--crowdsignal-forms-button-color);text-decoration:none}.crowdsignal-forms-nps__rating-button:disabled:not(.is-active){background-color:transparent;color:var(--crowdsignal-forms-button-color)}@media screen and (min-width: 670px){.crowdsignal-forms-nps__rating-button{margin:0 0 0 0.7em}}.crowdsignal-forms-nps__feedback{display:flex;flex-direction:column}.crowdsignal-forms-nps__feedback-text{margin-top:16px;margin-bottom:25px;width:100%}.crowdsignal-forms-nps__feedback-text textarea{font-size:var(--crowdsignal-forms-text-size)}.crowdsignal-forms-nps__feedback-button-wrapper{align-self:flex-end}.crowdsignal-forms-nps__feedback-button{align-self:flex-end;background-color:var(--crowdsignal-forms-button-color) !important;border:1px solid var(--crowdsignal-forms-button-color);color:var(--crowdsignal-forms-button-text-color) !important;text-decoration:none}.crowdsignal-forms-nps__feedback-button:hover{background-color:var(--crowdsignal-forms-button-text-color) !important;color:var(--crowdsignal-forms-button-color) !important;text-decoration:none}.editor-styles-wrapper .wp-block[data-type="crowdsignal-forms/feedback"]{width:auto;z-index:10}.editor-styles-wrapper .wp-block[data-type="crowdsignal-forms/feedback"]::after{display:none}.editor-styles-wrapper .crowdsignal-forms-feedback__popover-overlay{background-color:rgba(0,0,0,0.3);content:"";display:block;position:fixed;bottom:25px;left:0;right:0;top:0;z-index:-1}.editor-styles-wrapper .crowdsignal-forms-feedback{display:flex;flex-direction:column;justify-content:center;margin:0 !important;position:relative}.editor-styles-wrapper .crowdsignal-forms-feedback.is-active .crowdsignal-forms-feedback__trigger{cursor:text !important}.editor-styles-wrapper .crowdsignal-forms-feedback.align-left{align-items:flex-start}.editor-styles-wrapper .crowdsignal-forms-feedback.align-right{align-items:flex-end}.editor-styles-wrapper .crowdsignal-forms-feedback.vertical-align-top{justify-content:flex-start}.editor-styles-wrapper .crowdsignal-forms-feedback.vertical-align-top .crowdsignal-forms-feedback__trigger-wrapper{margin-bottom:15px !important;margin-top:0 !important}.editor-styles-wrapper .crowdsignal-forms-feedback.vertical-align-bottom{justify-content:flex-end}.editor-styles-wrapper .crowdsignal-forms-feedback.vertical-align-bottom .crowdsignal-forms-feedback__trigger-wrapper{order:99;margin-bottom:0 !important;margin-top:15px !important}.editor-styles-wrapper .crowdsignal-forms-feedback .crowdsignal-forms__editor-notice{width:380px}.editor-styles-wrapper .crowdsignal-forms-feedback__input input,.editor-styles-wrapper .crowdsignal-forms-feedback__input textarea{color:#757575}.editor-styles-wrapper .crowdsignal-forms-feedback__button-wrapper{margin-top:24px !important;margin-bottom:0 !important}.crowdsignal-forms-feedback__toolbar-toggle{font-weight:600;padding-left:16px !important;padding-right:16px !important}.crowdsignal-forms-feedback__toolbar-toggle.is-pressed::before{left:8px !important;right:8px !important}.crowdsignal-forms-feedback__toolbar-popover-wrapper .components-popover__content{min-width:auto !important}.crowdsignal-forms-feedback__toolbar-popover{display:grid;grid-template-columns:min-content min-content;grid-template-rows:auto auto}.crowdsignal-forms-feedback__toolbar-position-toggle.top-right svg{transform:rotate(90deg)}.crowdsignal-forms-feedback__toolbar-position-toggle.bottom-right svg{transform:rotate(180deg)}.crowdsignal-forms-feedback__toolbar-position-toggle.bottom-left svg{transform:rotate(270deg)}.crowdsignal-forms-feedback__position-button{align-items:center;box-shadow:none !important;display:flex;height:30px;justify-content:center;outline:0;transition:all 120ms linear 0s;width:30px}.crowdsignal-forms-feedback__position-button::before{background-color:#b5bcc2;display:block;content:"";height:6px;width:6px}.crowdsignal-forms-feedback__position-button:hover::before{background-color:#007cba}.crowdsignal-forms-feedback__position-button.is-active::before{background-color:#000;box-shadow:#000 0 0 0 2px}.crowdsignal-forms-feedback__trigger-settings{align-items:center;display:flex;margin-bottom:24px}.crowdsignal-forms-feedback__trigger-settings-trigger{background-size:cover;border:1px solid #c4c4c4;border-radius:50%;height:70px;margin-right:12px;overflow:hidden;padding:0;width:70px}.crowdsignal-forms-feedback__closed-notice{background-color:#1e1e1e;color:#fff;text-align:center;width:100%;font-size:14px;line-height:1.5;padding:6px}.crowdsignal-forms-feedback{display:flex;position:fixed;z-index:100}.crowdsignal-forms-feedback>div:last-child:not(.crowdsignal-forms-feedback__trigger){border-bottom-left-radius:10px;border-bottom-right-radius:10px}.crowdsignal-forms-feedback .crowdsignal-forms__footer-branding{margin-top:24px;font-size:12px;line-height:1.25}.crowdsignal-forms-feedback__trigger-wrapper{margin:0 !important}.crowdsignal-forms-feedback__trigger{box-shadow:1px 1px 7px rgba(0,0,0,0.3);cursor:pointer;background-color:var(--crowdsignal-forms-trigger-background-color) !important;color:var(--crowdsignal-forms-trigger-text-color) !important;display:flex !important;align-items:center;font-size:16px !important;line-height:1.5 !important;padding:10px 16px !important}.crowdsignal-forms-feedback__trigger>svg{fill:currentColor}.crowdsignal-forms-feedback__trigger.is-active{background:var(--crowdsignal-forms-trigger-background-color) !important;padding-left:12px !important}.crowdsignal-forms-feedback.no-shadow .crowdsignal-forms-feedback__trigger{box-shadow:none}.crowdsignal-forms-feedback__popover-wrapper.components-popover .components-popover__content{background-color:transparent;border:0;box-shadow:none;outline:0;overflow:visible}.crowdsignal-forms-feedback__popover{background-color:var(--crowdsignal-forms-background-color);border-top:10px solid var(--crowdsignal-forms-button-color);box-shadow:1px 1px 7px rgba(0,0,0,0.3);color:var(--crowdsignal-forms-text-color);outline:0;padding:24px;width:380px;text-align:left;z-index:100;display:flex;flex-direction:column}.crowdsignal-forms-feedback__header{color:var(--crowdsignal-forms-text-color);margin-top:0 !important;margin-bottom:32px !important;flex-grow:1}.crowdsignal-forms-feedback__input{margin-top:16px;width:100%}.crowdsignal-forms-feedback__input input,.crowdsignal-forms-feedback__input textarea{box-sizing:border-box;font-size:var(--crowdsignal-forms-text-size) !important;padding:16px !important}.crowdsignal-forms-feedback__button-wrapper{display:flex;justify-content:flex-end;margin-top:24px;margin-bottom:0;width:100%}.crowdsignal-forms-feedback__button-wrapper:hover{color:var(--crowdsignal-forms-button-color)}.crowdsignal-forms-feedback__feedback-button{background-color:var(--crowdsignal-forms-button-color) !important;color:var(--crowdsignal-forms-button-text-color) !important}
1
+ .crowdsignal-forms__block-alignment-control-popover .components-popover__content{min-width:auto !important}.crowdsignal-forms__block-alignment-control-grid{display:flex;flex-direction:column}.crowdsignal-forms__block-alignment-control-row{display:flex}.crowdsignal-forms__block-alignment-control-button{align-items:center;border:0;background:transparent;cursor:pointer;display:flex;height:30px;justify-content:center;width:30px}.crowdsignal-forms__block-alignment-control-button::before{background-color:#b5bcc2;display:block;content:"";height:6px;width:6px}.crowdsignal-forms__block-alignment-control-button:hover::before{background-color:#007cba}.crowdsignal-forms__block-alignment-control-button.is-active::before{background-color:#000;box-shadow:#000 0 0 0 2px}.crowdsignal-forms__block-alignment-control-icon{display:flex;flex-direction:column;height:24px;justify-content:space-between;width:24px}.crowdsignal-forms__block-alignment-control-icon-row{display:flex;justify-content:space-between;width:100%}.crowdsignal-forms__block-alignment-control-icon-dot{display:flex;padding:2px}.crowdsignal-forms__block-alignment-control-icon-dot::before{background-color:#000;content:"";display:block;height:2px;width:2px}.crowdsignal-forms__block-alignment-control-icon-dot.is-active::before{box-shadow:#000 0 0 0 2px}.crowdsignal-forms__connect-to-crowdsignal{border:1px solid #000;font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;padding:24px;text-align:initial}.crowdsignal-forms__connect-to-crowdsignal-header{display:flex;flex-direction:row;align-items:center}.crowdsignal-forms__connect-to-crowdsignal-body{font-size:13px;margin-top:24px;margin-bottom:16px}.crowdsignal-forms__connect-to-crowdsignal-title{font-size:24pt;margin-inline-start:16px}.crowdsignal-forms__editor-notice{margin:0 0 15px !important}.crowdsignal-forms__editor-notice .components-notice__content{display:flex;flex-direction:row;align-items:center}.crowdsignal-forms__editor-notice-icon{line-height:0;padding:8px 16px 8px 8px}.is-warn .crowdsignal-forms__editor-notice-icon{color:var(--wp-admin-theme-color)}.crowdsignal-forms__editor-notice-text{flex-grow:1;color:var(--crowdsignal-forms-text-color)}.crowdsignal-forms__editor-notice-text a{text-decoration:underline}.crowdsignal-forms__sidebar-promote{margin-left:16px;flex-grow:1}.crowdsignal-forms__footer-branding{align-items:center;display:flex;margin-top:16px;width:100%}.crowdsignal-forms__footer-branding img.crowdsignal-forms__footer-branding-logo{height:50px;margin-left:auto;margin-right:0;width:50px}.crowdsignal-forms__footer-branding .crowdsignal-forms__branding-promote{display:inline-flex;font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;font-size:10px;text-decoration:none !important;box-shadow:none;border:0;background-color:#a4a4a4a4;color:#fff;cursor:pointer;padding-right:8px;padding-left:8px;margin-left:16px;border-radius:2px;padding-top:2px;padding-bottom:2px;vertical-align:middle}.crowdsignal-forms__footer-cs-link{display:inline-flex;font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;font-size:inherit;line-height:inherit;text-decoration:none;text-transform:uppercase;vertical-align:middle;border-bottom:0 solid var(--crowdsignal-forms-text-color) !important}.crowdsignal-forms__footer-cs-link:not(:hover){color:var(--crowdsignal-forms-text-color);opacity:0.4}.has-default-thankyou .crowdsignal-forms__footer-cs-link{color:#333}#editor .editor-styles-wrapper .crowdsignal-forms-poll{margin-left:0;margin-right:0}#editor .editor-styles-wrapper .block-editor-block-list__block[data-type="crowdsignal-forms/poll"][data-align="full"] .crowdsignal-forms-poll{border-left-width:0;border-right-width:0}@media screen and (min-width: 660px){#editor .editor-styles-wrapper .block-editor-block-list__block[data-type="crowdsignal-forms/poll"][data-align="wide"] .crowdsignal-forms-poll__content,#editor .editor-styles-wrapper .block-editor-block-list__block[data-type="crowdsignal-forms/poll"][data-align="full"] .crowdsignal-forms-poll__content{padding:80px}}#editor .editor-styles-wrapper .crowdsignal-forms-poll__answer{cursor:text}#editor .editor-styles-wrapper .crowdsignal-forms-poll__answer:hover,#editor .editor-styles-wrapper .crowdsignal-forms-poll__answer.is-focused{color:inherit}#editor .editor-styles-wrapper .wp-block-button .crowdsignal-forms-poll__submit-button.wp-block-button__link{cursor:text}#editor .editor-styles-wrapper .wp-block-button .crowdsignal-forms-poll__submit-button.wp-block-button__link:hover{opacity:inherit}.crowdsignal-forms-poll__resize-wrapper{margin-left:auto;margin-right:auto}.crowdsignal-forms__redirect-url input[type="text"]{width:100%}.crowdsignal-forms__redirect-url__suggestions{width:260px}.crowdsignal-forms__row{display:flex;flex-direction:row}.crowdsignal-forms__row .crowdsignal-forms__small-text-input input[type="text"]{width:40px}.crowdsignal-forms__row .crowdsignal-forms__small-text-input input[type="number"]{width:50px}.crowdsignal-forms__reset-width-button{margin-left:auto;margin-top:25px}.crowdsignal-forms-poll__edit-bar{font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;font-size:13px;margin-top:24px;padding:18px 24px;color:#d82e20;border-left:4px solid #d82e20;background:#f8dad8;display:flex;flex-direction:row;justify-content:space-between;align-items:center}.crowdsignal-forms-poll__edit-bar .crowdsignal-forms-poll__edit-bar-message{padding-inline-end:24px}.crowdsignal-forms-poll__edit-bar button.crowdsignal-forms-poll__edit-bar-button{border:2px solid #d82e20;border-radius:4px;color:#d82e20;background:transparent;padding:8px 16px;cursor:pointer}.crowdsignal-poll-wrapper:not(:first-child),[data-type="crowdsignal-forms/poll"]:not(:first-child){margin-top:3em}.crowdsignal-poll-wrapper:not(:last-child),[data-type="crowdsignal-forms/poll"]:not(:last-child){margin-bottom:3em}.crowdsignal-forms-poll{border-color:var(--crowdsignal-forms-border-color);border-style:solid;border-width:var(--crowdsignal-forms-border-width);margin-left:auto;margin-right:auto;margin-top:5px;position:relative;text-align:left}.entry-content .alignfull.crowdsignal-poll-wrapper .crowdsignal-forms-poll{border-left-width:0;border-right-width:0}.crowdsignal-forms-poll h3.crowdsignal-forms-poll__question{margin:0 0 44px}.crowdsignal-forms-poll h3.crowdsignal-forms-poll__question:first-child{margin-top:0}.crowdsignal-forms-poll .crowdsignal-forms-poll__note{font-style:italic;margin:0 0 32px}.crowdsignal-forms-poll .crowdsignal-forms-poll__content{padding:40px 24px 16px 24px}.crowdsignal-forms-poll .crowdsignal-forms-poll__content .crowdsignal-forms-poll__question{font-family:var(--crowdsignal-forms-question-font-family);line-height:1.4}.crowdsignal-forms-poll .crowdsignal-forms-poll__content .crowdsignal-forms-poll__answer-label,.crowdsignal-forms-poll .crowdsignal-forms-poll__content .crowdsignal-forms-poll__answer-results-answer,.crowdsignal-forms-poll .crowdsignal-forms-poll__content .crowdsignal-forms-poll__note{font-family:var(--crowdsignal-forms-body-font-family)}.entry-content .alignfull.crowdsignal-poll-wrapper .crowdsignal-forms-poll .crowdsignal-forms-poll__content{margin:0 auto;max-width:var(--crowdsignal-forms-content-wide-width)}@media screen and (min-width: 660px){.alignwide.crowdsignal-poll-wrapper .crowdsignal-forms-poll .crowdsignal-forms-poll__content,.alignfull.crowdsignal-poll-wrapper .crowdsignal-forms-poll .crowdsignal-forms-poll__content{padding:80px}}.crowdsignal-forms-poll.is-closed .crowdsignal-forms-poll__form{opacity:0.5}.crowdsignal-forms-poll.is-hidden{opacity:0.5}.crowdsignal-forms-poll.has-text-color{color:var(--crowdsignal-forms-text-color)}.crowdsignal-forms-poll.has-bg-color{background-color:var(--crowdsignal-forms-bg-color)}.crowdsignal-forms-poll.has-border-radius{border-radius:var(--crowdsignal-forms-border-radius);overflow:hidden}.crowdsignal-forms-poll.has-box-shadow{box-shadow:0 3px 6px rgba(0,0,0,0.16),0 3px 6px rgba(0,0,0,0.23)}.crowdsignal-forms-poll .is-transparent{opacity:0;pointer-events:none}.crowdsignal-forms-poll__block-button .crowdsignal-forms-poll__submit-button{-webkit-appearance:initial}.crowdsignal-forms-poll__block-button .crowdsignal-forms-poll__submit-button:disabled{opacity:0.7}.crowdsignal-forms-poll.has-submit-button-text-color .crowdsignal-forms-poll__block-button .crowdsignal-forms-poll__submit-button.wp-block-button__link{color:var(--crowdsignal-forms-submit-button-text-color)}.crowdsignal-forms-poll.has-submit-button-bg-color .crowdsignal-forms-poll__block-button .crowdsignal-forms-poll__submit-button.wp-block-button__link{background-color:var(--crowdsignal-forms-submit-button-bg-color)}.crowdsignal-forms-poll.has-submit-button-bg-color .crowdsignal-forms-poll__block-button .crowdsignal-forms-poll__submit-button.wp-block-button__link:hover{opacity:0.9}.crowdsignal-forms-poll__options.is-button{display:flex;flex-direction:column;flex-wrap:wrap}.crowdsignal-forms-poll__options.is-button.is-inline-button-alignment{flex-direction:row}.crowdsignal-forms-poll__answer{display:flex;font-size:inherit;font-weight:600;margin:0;padding:0 2px;position:relative}.crowdsignal-forms-poll__answer.is-button{margin-inline-end:20px;margin-block-end:20px;max-width:100%}.crowdsignal-forms-poll__answer.is-button .wp-block-button.crowdsignal-forms-poll__block-button,.crowdsignal-forms-poll__answer.is-button .crowdsignal-forms-poll__submit-button{max-width:100%}.crowdsignal-forms-poll__answer.is-button .crowdsignal-forms-poll__submit-button{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.crowdsignal-forms-poll__answer:not(.is-button){cursor:pointer;margin-block-end:12px;width:100%}.crowdsignal-forms-poll__answer>.crowdsignal-forms-poll__answer{margin-block-end:0}.crowdsignal-forms-poll__answer:hover,.crowdsignal-forms-poll__answer.is-focused{color:var(--crowdsignal-forms-submit-button-bg-color)}.has-voted .crowdsignal-forms-poll__answer{opacity:0.5}input[type="checkbox"].crowdsignal-forms-poll__input,input[type="radio"].crowdsignal-forms-poll__input{height:0;opacity:0;position:absolute;width:0}.crowdsignal-forms-poll__check{display:inline-block;height:1em;margin:0 10px 0 0;position:relative;width:1em}.crowdsignal-forms-poll__check::before{background-color:transparent;border:1.5px solid var(--crowdsignal-forms-text-color);border-radius:50%;box-sizing:border-box;content:"";display:block;height:100%;transition:background-color 0.3s, border-color 0.3s;width:100%}.crowdsignal-forms-poll__answer.is-multiple-choice .crowdsignal-forms-poll__check::before{border-radius:3px}.crowdsignal-forms-poll__answer.is-multiple-choice.is-selected .crowdsignal-forms-poll__check::before{border-color:var(--crowdsignal-forms-text-color);background-color:var(--crowdsignal-forms-text-color)}.crowdsignal-forms-poll__answer.is-selected:not(.is-multiple-choice) .crowdsignal-forms-poll__check::after{animation-duration:0.3s;animation-name:crowdsignal-forms-animation__pop;animation-iteration-count:1;background-clip:padding-box;background-color:var(--crowdsignal-forms-text-color);border:4.5px solid transparent;border-radius:50%;box-sizing:border-box;content:"";display:block;height:100%;position:absolute;left:0;top:0;width:100%}.crowdsignal-forms-poll__answer.is-selected.is-multiple-choice .crowdsignal-forms-poll__check::after{border-color:var(--crowdsignal-forms-submit-button-text-color);border-style:solid;border-width:0 0 2px 2px;box-sizing:border-box;content:"";display:block;height:25%;margin:-0.1em 0 0 -0.2em;position:absolute;left:50%;top:50%;transform:rotateZ(-45deg);width:50%}div.crowdsignal-forms-poll__answer-label-wrapper{flex:1;word-break:break-word}div.crowdsignal-forms-poll__answer-label-wrapper span.crowdsignal-forms-poll__answer-label{line-height:1;vertical-align:top}div.crowdsignal-forms-poll__answer-label-wrapper span.crowdsignal-forms-poll__answer-label span::after{vertical-align:top}.crowdsignal-forms-poll__button{border:0;padding:0}.crowdsignal-forms-poll__actions .wp-block-button,.crowdsignal-forms-poll__options .wp-block-button{margin:0}.crowdsignal-forms-poll__actions{display:flex;justify-content:flex-end;margin-top:32px;margin-bottom:16px}.editor-styles-wrapper .crowdsignal-forms-poll .crowdsignal-forms-poll__actions .wp-block-button.crowdsignal-forms-poll__block-button,.editor-styles-wrapper .crowdsignal-forms-poll .crowdsignal-forms-poll__options .wp-block-button.crowdsignal-forms-poll__block-button{margin:0;line-height:0}.crowdsignal-forms-poll__closed-banner{background-color:var(--crowdsignal-forms-border-color);box-sizing:border-box;display:flex;color:var(--crowdsignal-forms-submit-button-text-color);font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;justify-content:center;padding:calc(var(--crowdsignal-forms-border-width) + 0.2em) 0 0.2em;width:100%}.is-hidden .crowdsignal-forms-poll__closed-banner{font-style:italic}.crowdsignal-forms-poll__error{color:red}.crowdsignal-forms-poll__results-list{margin:0 0 1em;position:relative}.crowdsignal-forms-poll__answer-results{display:flex;flex-direction:column;margin:0 0 16px;width:100%}.crowdsignal-forms-poll__answer-results:last-child{margin:0}.crowdsignal-forms-poll__answer-results-labels{align-items:flex-end;display:flex;margin:0 0 8px;width:100%;word-break:break-word}.crowdsignal-forms-poll__answer-results-answer{flex:1;font-size:1em;font-weight:600}.crowdsignal-forms-poll__answer-results-votes{font-size:0.75em;line-height:2}.crowdsignal-forms-poll__answer-results-percent{font-weight:600;line-height:1.6}.crowdsignal-forms-poll__answer-results-votes,.crowdsignal-forms-poll__answer-results-percent{font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;margin-left:20px;transition:opacity 0.3s}.crowdsignal-forms-poll__answer-results.is-error .crowdsignal-forms-poll__answer-results-votes,.crowdsignal-forms-poll__answer-results.is-error .crowdsignal-forms-poll__answer-results-percent{display:none}.crowdsignal-forms-poll__answer-results.is-loading .crowdsignal-forms-poll__answer-results-votes,.crowdsignal-forms-poll__answer-results.is-loading .crowdsignal-forms-poll__answer-results-percent{animation-duration:1.5s;animation-iteration-count:infinite;animation-name:crowdsignal-forms-animation__pulse;background-color:var(--crowdsignal-forms-text-color);font-size:0.7em;height:1em;width:50px}.crowdsignal-forms-poll__answer-results.is-loading .crowdsignal-forms-poll__answer-results-votes:last-child,.crowdsignal-forms-poll__answer-results.is-loading .crowdsignal-forms-poll__answer-results-percent:last-child{width:40px}.crowdsignal-forms-poll__answer-results-progress-track{border:1px solid;border-color:rgba(var(--crowdsignal-forms-text-color-properties), 0.3);box-sizing:border-box;height:1em;width:100%}.crowdsignal-forms-poll__answer-results.is-loading .crowdsignal-forms-poll__answer-results-progress-track{animation-duration:1.5s;animation-iteration-count:infinite;animation-name:crowdsignal-forms-animation__pulse}.crowdsignal-forms-poll__answer-results-progress-bar{animation-fill-mode:forwards;background-color:var(--crowdsignal-forms-submit-button-bg-color);height:100%;transition:background-color 0.3s, width 0.3s}.crowdsignal-forms-poll__answer-results.is-error .crowdsignal-forms-poll__answer-results-progress-bar{width:0}.crowdsignal-forms-poll__answer-results.is-loading .crowdsignal-forms-poll__answer-results-progress-bar{background-color:var(--crowdsignal-forms-text-color);width:25%}.crowdsignal-forms-poll__answer-results.is-loading:nth-child(5n+1) .crowdsignal-forms-poll__answer-results-progress-bar{width:40%}.crowdsignal-forms-poll__answer-results.is-loading:nth-child(5n+2) .crowdsignal-forms-poll__answer-results-progress-bar{width:75%}.crowdsignal-forms-poll__answer-results.is-loading:nth-child(5n+3) .crowdsignal-forms-poll__answer-results-progress-bar{width:50%}.crowdsignal-forms-poll__answer-results.is-loading:nth-child(5n+4) .crowdsignal-forms-poll__answer-results-progress-bar{width:60%}.crowdsignal-forms-poll__results-footer{display:flex;flex-direction:column;justify-content:space-between;width:100%;font-size:0.9em}.crowdsignal-forms-poll__results-total{font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;position:relative;text-align:right;width:100%;margin-bottom:1em}.crowdsignal-forms-poll__results.is-loading .crowdsignal-forms-poll__results-total{color:transparent}.crowdsignal-forms-poll__results.is-loading .crowdsignal-forms-poll__results-total::before{animation-name:crowdsignal-forms-animation__pulse;animation-duration:1.5s;animation-iteration-count:infinite;background-color:var(--crowdsignal-forms-text-color);content:"";display:block;position:absolute;right:0;height:1em;width:150px}.crowdsignal-forms-poll__error-banner{font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;font-size:13px;margin-top:24px;padding:18px 24px;color:#d82e20;border-left:4px solid #d82e20;background:#f8dad8}.crowdsignal-forms-poll__submit-message-container{position:absolute;background-color:var(--crowdsignal-forms-bg-color);left:0;top:0;width:100%;height:100%;overflow:hidden}.has-default-thankyou .crowdsignal-forms-poll__submit-message-container{background-color:#fff}.crowdsignal-forms-poll__submit-message{position:relative}.crowdsignal-forms-poll__submit-message button.crowdsignal-forms-poll__dismiss-submit-message{position:absolute;right:0;top:0;background-color:transparent;color:#000;text-decoration:none;border:none}.crowdsignal-forms-poll__submit-message button.crowdsignal-forms-poll__dismiss-submit-message:hover{background:inherit}.crowdsignal-forms-poll__submit-message-footer{position:absolute;bottom:0;left:0;padding:16px 24px;width:100%;background-color:inherit}.crowdsignal-forms-poll__thank-you-cs-sticker{right:25px;top:66px}.crowdsignal-forms-poll__thank-you-sticker{right:132px;top:12px}.crowdsignal-forms-poll__thank-you-cs-sticker,.crowdsignal-forms-poll__thank-you-sticker{filter:drop-shadow(0 1px 2px rgba(0,0,0,0.2));width:100px;height:100px;position:absolute}.crowdsignal-forms-poll__custom-message-check{color:var(--crowdsignal-forms-text-color);padding-left:24px;padding-top:24px}.crowdsignal-forms-poll__custom-message{font-family:var(--crowdsignal-forms-question-font-family);font-weight:600;padding:16px 24px}.wp_block-crowdsignal-forms-poll__vote-branding{margin-top:16px}.crowdsignal-forms__style-probe{display:none}.crowdsignal-forms-vote .block-editor-block-list__layout{display:flex;flex-direction:row}.crowdsignal-forms__border-popover .crowdsignal-forms__row{padding:10px}.crowdsignal-forms-vote.no-results .crowdsignal-forms-vote-item__count{display:none}.crowdsignal-forms-vote__size-dropdown .components-button.components-dropdown-menu__menu-item.is-active::after{content:"\2713";margin-inline-start:auto;margin-inline-end:0}.crowdsignal-vote-wrapper:not(:first-child),[data-type="crowdsignal-forms/vote"]:not(:first-child){margin-top:3em}.crowdsignal-vote-wrapper:not(:last-child),[data-type="crowdsignal-forms/vote"]:not(:last-child){margin-bottom:3em}.crowdsignal-forms-vote{align-items:center;display:inline-flex;flex-direction:column}.crowdsignal-forms-vote.crowdsignal-forms-vote__example{align-items:center}[data-type="crowdsignal-forms/vote-item"]{margin-top:28px !important;margin-bottom:0 !important}.crowdsignal-forms-vote__items{display:flex;flex-direction:row}.crowdsignal-forms-vote-item{border:var(--crowdsignal-forms-vote-border-width) solid #d2d2d2;border-radius:var(--crowdsignal-forms-vote-border-radius);cursor:pointer;display:flex;flex-direction:row;align-items:center;position:relative;user-select:none;-webkit-user-select:none}.crowdsignal-forms-vote-item:not(:last-child){margin-inline-end:8px !important}.crowdsignal-forms-vote-item.has-bg-color{background-color:var(--crowdsignal-forms-vote-bg-color)}.crowdsignal-forms-vote-item.has-border-color{border-color:var(--crowdsignal-forms-vote-border-color)}.crowdsignal-forms-vote-item.has-text-color{color:var(--crowdsignal-forms-vote-text-color)}.is-closed .crowdsignal-forms-vote-item,.crowdsignal-forms-vote-item.is-disabled{cursor:inherit}.is-closed .crowdsignal-forms-vote-item,.crowdsignal-forms-vote-item.is-disabled:not(.is-voted-on){opacity:0.5}.size-small .crowdsignal-forms-vote-item{padding:18px 10px;height:0.7em}.size-small .crowdsignal-forms-vote-item.is-type-down{padding-left:9px}.size-medium .crowdsignal-forms-vote-item{height:1em;padding:20px 10px}.size-medium .crowdsignal-forms-vote-item.is-type-down{padding-left:9px}.size-large .crowdsignal-forms-vote-item{height:1.2em;padding:22px 16px}.size-large .crowdsignal-forms-vote-item:not(:last-child){margin-inline-end:16px !important}.size-large .crowdsignal-forms-vote-item.is-type-down{padding-left:15px}.crowdsignal-forms-vote-item.is-voted-on,.crowdsignal-forms-vote-item:hover:not(.is-disabled),.crowdsignal-forms-vote-item:focus:not(.is-disabled):not(.is-in-editor){border-color:var(--crowdsignal-forms-vote-voted-color);color:var(--crowdsignal-forms-vote-voted-color)}.crowdsignal-forms-vote-item.is-voted-on.has-bg-color,.crowdsignal-forms-vote-item.is-voted-on.has-text-color,.crowdsignal-forms-vote-item:hover:not(.is-disabled).has-bg-color,.crowdsignal-forms-vote-item:hover:not(.is-disabled).has-text-color,.crowdsignal-forms-vote-item:focus:not(.is-disabled):not(.is-in-editor).has-bg-color,.crowdsignal-forms-vote-item:focus:not(.is-disabled):not(.is-in-editor).has-text-color{background-color:var(--crowdsignal-forms-vote-text-color);border-color:var(--crowdsignal-forms-vote-bg-color);color:var(--crowdsignal-forms-vote-bg-color)}.size-small .crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__icon{width:0.7em;height:0.7em;max-height:0.7em}.size-medium .crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__icon{width:1em;height:1em;max-height:1em}.size-large .crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__icon{width:1.2em;height:1.2em;max-height:1.2em}.crowdsignal-forms-vote-item.is-voted-on .crowdsignal-forms-vote-item__icon{animation-duration:0.4s;animation-name:crowdsignal-forms-animation__grow;animation-iteration-count:1;animation-timing-function:ease-out}.crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__count{font-size:14pt;font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;margin-inline-start:10px;font-variant-numeric:tabular-nums;transform:rotateX(0deg);transform-origin:50% 50% 10px;transition:transform 0.3s}.size-small .crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__count{font-size:0.6em}.size-medium .crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__count{font-size:0.8em}.size-large .crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__count{font-size:1em}.crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__count-enter,.crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__count-enter-active{margin:0;position:absolute;right:0}.crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__count-enter{transform:rotateX(-90deg)}.crowdsignal-forms-vote-item.is-voted-on .crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__count-enter{transform:rotateX(90deg)}.crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__count-exit,.crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__count-exit-active{margin:0;position:absolute;right:10px;top:4px;transform:rotateX(90deg)}.crowdsignal-forms-vote-item.is-voted-on .crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__count-exit,.crowdsignal-forms-vote-item.is-voted-on .crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__count-exit-active{transform:rotateX(-90deg)}.crowdsignal-forms-vote__branding{display:flex}.crowdsignal-forms-vote__branding .crowdsignal-forms-vote__branding-link{font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;font-size:8px;padding:8px 4px 0;text-decoration:none !important;text-transform:uppercase;border:0 !important}.crowdsignal-forms-vote__branding .crowdsignal-forms-vote__branding-link.with-external-icon::after{content:"\2197";display:inline;font-size:6px;vertical-align:super}.crowdsignal-forms-vote__branding .crowdsignal-forms-vote__branding-link:not(:hover){color:var(--crowdsignal-forms-text-color)}.crowdsignal-applause-wrapper{margin-bottom:3em}.crowdsignal-forms-applause{display:flex;flex-direction:row;align-items:center;outline:0;width:max-content;cursor:pointer;border:var(--crowdsignal-forms-applause-border-width) solid #d2d2d2;border-radius:var(--crowdsignal-forms-applause-border-radius);user-select:none;--webkit-user-select: none}.crowdsignal-forms-applause .crowdsignal-forms-applause__count{margin:unset !important}.crowdsignal-forms-applause.size-small{padding:20px 16px 18px 12px;height:0.7em}.crowdsignal-forms-applause.size-small .crowdsignal-forms-applause__count{font-size:14px;padding-bottom:2px}.crowdsignal-forms-applause.size-medium{height:1em;padding:24px 16px 20px 8px}.crowdsignal-forms-applause.size-medium .crowdsignal-forms-applause__count{font-size:16px;padding-bottom:4px}.crowdsignal-forms-applause.size-large{height:1.2em;padding:28px 18px 22px 8px}.crowdsignal-forms-applause.size-large .crowdsignal-forms-applause__count{font-size:19px;padding-bottom:6px}.crowdsignal-forms-applause.is-closed{opacity:0.5}.crowdsignal-forms-applause.has-text-color{color:var(--crowdsignal-forms-applause-text-color)}.crowdsignal-forms-applause.has-border-color{border:var(--crowdsignal-forms-applause-border-width) solid var(--crowdsignal-forms-applause-border-color)}.crowdsignal-forms-applause.has-bg-color{background-color:var(--crowdsignal-forms-applause-bg-color)}.crowdsignal-forms-applause:not(.is-closed):hover{color:var(--crowdsignal-forms-applause-hover-color);border-color:var(--crowdsignal-forms-applause-hover-color)}.crowdsignal-forms-applause:not(.is-closed):hover.has-bg-color{color:var(--crowdsignal-forms-applause-bg-color);background-color:var(--crowdsignal-forms-applause-text-color);border-color:var(--crowdsignal-forms-applause-bg-color)}.crowdsignal-forms-applause__animation{fill:var(--crowdsignal-forms-applause-text-color);margin-inline-end:5px}.crowdsignal-forms-applause.size-small .crowdsignal-forms-applause__animation{width:33px;height:33px;max-height:33px}.crowdsignal-forms-applause.size-medium .crowdsignal-forms-applause__animation{width:50px;height:50px;max-height:50px}.crowdsignal-forms-applause.size-large .crowdsignal-forms-applause__animation{width:60px;height:60px;max-height:60px}.crowdsignal-forms-applause__animation .crowdsignal-forms-applause__animation-inner-fill{fill:var(--crowdsignal-forms-applause-bg-color)}.crowdsignal-forms-applause:not(.is-closed):hover .crowdsignal-forms-applause__animation{fill:var(--crowdsignal-forms-applause-hover-color)}.crowdsignal-forms-applause.has-bg-color:not(.is-closed):hover .crowdsignal-forms-applause__animation{fill:var(--crowdsignal-forms-applause-bg-color)}.crowdsignal-forms-applause.has-bg-color:not(.is-closed):hover .crowdsignal-forms-applause__animation .crowdsignal-forms-applause__animation-inner-fill{fill:var(--crowdsignal-forms-applause-text-color)}.crowdsignal-forms-applause__animation-right{transition:transform 0.3s}.crowdsignal-forms-applause:not(.is-closed):hover .crowdsignal-forms-applause__animation-right{transform:translateX(3%) translateY(-3%)}.crowdsignal-forms-applause__animation-left{transition:transform 0.3s}.crowdsignal-forms-applause:not(.is-closed):hover .crowdsignal-forms-applause__animation-left{transform:translateX(-3%) translateY(0)}.crowdsignal-forms-applause__animation-wave-small{opacity:1}.crowdsignal-forms-applause:not(.is-closed):hover .crowdsignal-forms-applause__animation-wave-small{animation:crowdsignal-forms-animation__fade-out 0.3s forwards;transform:translateY(-5%);transition:transform 0.3s}.crowdsignal-forms-applause__animation-wave-large{opacity:0}.crowdsignal-forms-applause .crowdsignal-forms-applause__animation.is-active .crowdsignal-forms-applause__animation-right{transform:translateX(-3%) translateY(0);transition:transform 0.1s}.crowdsignal-forms-applause .crowdsignal-forms-applause__animation.is-active .crowdsignal-forms-applause__animation-left{transform:translateX(3%) translateY(0);transition:transform 0.1s}.crowdsignal-forms-applause .crowdsignal-forms-applause__animation.is-active .crowdsignal-forms-applause__animation-wave-small{animation:crowdsignal-forms-animation__fade-out 0.3s forwards;transform:translateY(-5%);transition:transform 0.3s}.crowdsignal-forms-applause .crowdsignal-forms-applause__animation.is-active .crowdsignal-forms-applause__animation-wave-large{animation:crowdsignal-forms-animation__fade-in 0.03s forwards;animation-delay:0.07s}.crowdsignal-forms-nps.is-inactive{opacity:0.6}.crowdsignal-forms-nps__toolbar-toggle{font-weight:600;padding-left:16px !important;padding-right:16px !important}.crowdsignal-forms-nps__toolbar-popover{padding:15px;min-width:300px}.crowdsignal-forms-nps__toolbar-popover .components-base-control__field{display:flex;flex-direction:row;align-items:center;margin-bottom:0}.crowdsignal-forms-nps__toolbar-popover .components-base-control__label{display:block;flex-grow:1;line-height:30px;margin-bottom:0}.crowdsignal-forms-nps__toolbar-popover .components-text-control__input{width:5em}.crowdsignal-forms-nps__toolbar-popover-button svg{margin-right:0 !important}.crowdsignal-forms-nps__toolbar-popover-button.components-button.has-icon .dashicon{margin-right:2px}.crowdsignal-forms-nps__rating-button:hover{background-color:var(--crowdsignal-forms-button-text-color);border-color:var(--crowdsignal-forms-button-color);color:var(--crowdsignal-forms-button-color)}.editor-styles-wrapper .components-button.is-secondary.crowdsignal-forms-nps__preview-button{text-decoration:none}.editor-styles-wrapper .components-button.is-secondary.crowdsignal-forms-nps__preview-button.is-disabled{display:none}.editor-styles-wrapper .crowdsignal-forms-feedback__header{color:var(--crowdsignal-forms-text-color)}.crowdsignal-forms-nps{border:0;border-top:10px solid var(--crowdsignal-forms-button-color);background-color:var(--crowdsignal-forms-background-color);color:var(--crowdsignal-forms-text-color);height:auto;padding:24px 16px;position:relative}@media screen and (min-width: 670px){.crowdsignal-forms-nps{padding:32px 32px 24px 32px}}.crowdsignal-forms-nps .crowdsignal-forms__footer-branding{margin-top:40px;font-size:16px}.crowdsignal-forms-nps__close-button{align-items:center;background-color:var(--crowdsignal-forms-button-color);border:0;border-radius:20px;color:var(--crowdsignal-forms-button-text-color);display:flex;height:40px;justify-content:center;outline:0;padding:0;position:absolute;right:-20px;top:-25px;width:40px}.crowdsignal-forms-nps__close-button:hover{background-color:var(--crowdsignal-forms-button-text-color);color:var(--crowdsignal-forms-button-color)}.crowdsignal-forms-nps__question{margin-top:0 !important;margin-bottom:32px !important}.crowdsignal-forms-nps__rating{display:flex;flex-direction:column}.crowdsignal-forms-nps__rating-labels{display:flex;flex-direction:row;font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;font-size:14px;justify-content:space-between;margin-top:8px}.crowdsignal-forms-nps__rating-scale{display:flex;margin:10px auto 0;width:100%}.crowdsignal-forms-nps__rating-button{background-color:var(--crowdsignal-forms-button-color);border:1px solid var(--crowdsignal-forms-button-color);border-radius:2px;color:var(--crowdsignal-forms-button-text-color);cursor:pointer;display:inline-flex;flex:1;font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;font-size:15px;font-weight:600;height:50px;justify-content:center;line-height:50px;margin:0 0 0 0.4em;padding:0;text-align:center;text-decoration:none;transition:background-color 0.2s, color 0.2s}.crowdsignal-forms-nps__rating-button:first-child{margin:0}.crowdsignal-forms-nps__rating-button:hover:enabled{background-color:var(--crowdsignal-forms-button-text-color);color:var(--crowdsignal-forms-button-color);text-decoration:none}.crowdsignal-forms-nps__rating-button:disabled:not(.is-active){background-color:transparent;color:var(--crowdsignal-forms-button-color)}@media screen and (min-width: 670px){.crowdsignal-forms-nps__rating-button{margin:0 0 0 0.7em}}.crowdsignal-forms-nps__feedback{display:flex;flex-direction:column}.crowdsignal-forms-nps__feedback-text{margin-top:16px;margin-bottom:25px;width:100%}.crowdsignal-forms-nps__feedback-text textarea{font-size:var(--crowdsignal-forms-text-size)}.crowdsignal-forms-nps__feedback-button-wrapper{align-self:flex-end}.crowdsignal-forms-nps__feedback-button{align-self:flex-end;background-color:var(--crowdsignal-forms-button-color) !important;border:1px solid var(--crowdsignal-forms-button-color);color:var(--crowdsignal-forms-button-text-color) !important;text-decoration:none}.crowdsignal-forms-nps__feedback-button:hover{background-color:var(--crowdsignal-forms-button-text-color) !important;color:var(--crowdsignal-forms-button-color) !important;text-decoration:none}.crowdsignal-forms-feedback__trigger-preview{display:flex}.crowdsignal-forms-feedback.align-right .crowdsignal-forms-feedback__trigger-preview{justify-content:flex-end}.crowdsignal-forms-feedback.vertical-align-top .crowdsignal-forms-feedback__trigger-preview{margin-bottom:15px !important;margin-top:0 !important}.crowdsignal-forms-feedback.vertical-align-bottom .crowdsignal-forms-feedback__trigger-preview{order:99;margin-bottom:0 !important;margin-top:15px !important}.crowdsignal-forms-feedback.is-vertical .crowdsignal-forms-feedback__trigger-preview{align-items:flex-start;padding:var(--crowdsignal-forms-feedback__toggle-padding) 0;margin-right:20px}.crowdsignal-forms-feedback.is-vertical.align-right .crowdsignal-forms-feedback__trigger-preview{margin-left:20px;margin-right:0}.crowdsignal-forms-feedback__popover-preview{display:flex;flex-direction:column;justify-content:center;margin:0 !important;position:relative}.crowdsignal-forms-feedback.align-left .crowdsignal-forms-feedback__popover-preview{align-items:flex-start}.crowdsignal-forms-feedback.align-right .crowdsignal-forms-feedback__popover-preview{align-items:flex-end}.editor-styles-wrapper .wp-block[data-type="crowdsignal-forms/feedback"]{width:auto;z-index:10}.editor-styles-wrapper .wp-block[data-type="crowdsignal-forms/feedback"]::after{display:none}.editor-styles-wrapper .crowdsignal-forms-feedback__popover-overlay{background-color:rgba(0,0,0,0.3);content:"";display:block;position:fixed;bottom:25px;left:0;right:0;top:0;z-index:-1}.editor-styles-wrapper .crowdsignal-forms-feedback{display:flex;flex-direction:column;justify-content:center;margin-top:0 !important;margin-bottom:0 !important;position:relative}.editor-styles-wrapper .crowdsignal-forms-feedback.is-active .crowdsignal-forms-feedback__trigger{cursor:text !important}.editor-styles-wrapper .crowdsignal-forms-feedback.is-vertical{flex-direction:row}.editor-styles-wrapper .crowdsignal-forms-feedback.is-vertical .crowdsignal-forms-feedback__trigger-wrapper{transform-origin:top right;transform:rotateZ(270deg) translateY(-100%)}.editor-styles-wrapper .crowdsignal-forms-feedback.is-vertical.align-right{flex-direction:row-reverse}.editor-styles-wrapper .crowdsignal-forms-feedback.is-vertical.align-right .crowdsignal-forms-feedback__trigger-wrapper{transform-origin:top left;transform:rotateZ(270deg) translateX(-100%)}.editor-styles-wrapper .crowdsignal-forms-feedback .crowdsignal-forms__editor-notice{width:380px}.editor-styles-wrapper .crowdsignal-forms-feedback__input input,.editor-styles-wrapper .crowdsignal-forms-feedback__input textarea{color:#757575}.editor-styles-wrapper .crowdsignal-forms-feedback__button-wrapper{margin-top:24px !important;margin-bottom:0 !important}.crowdsignal-forms-feedback__toolbar-toggle{font-weight:600;padding-left:16px !important;padding-right:16px !important}.crowdsignal-forms-feedback__toolbar-toggle.is-pressed::before{left:8px !important;right:8px !important}.crowdsignal-forms-feedback__trigger-settings{align-items:center;display:flex;margin-bottom:24px}.crowdsignal-forms-feedback__trigger-settings-trigger{background-size:cover;border:1px solid #c4c4c4;border-radius:50%;height:70px;margin-right:12px;overflow:hidden;padding:0;width:70px}.crowdsignal-forms-feedback__closed-notice{background-color:#1e1e1e;color:#fff;text-align:center;width:100%;font-size:14px;line-height:1.5;padding:6px}.crowdsignal-forms-feedback{display:flex;position:fixed;z-index:9999999}.crowdsignal-forms-feedback>div:last-child:not(.crowdsignal-forms-feedback__trigger){border-bottom-left-radius:10px;border-bottom-right-radius:10px}.crowdsignal-forms-feedback .crowdsignal-forms__footer-branding{margin-top:24px;font-size:12px;line-height:1.25}.crowdsignal-forms-feedback__trigger-wrapper{margin:0 !important}.crowdsignal-forms-feedback.is-vertical .crowdsignal-forms-feedback__trigger-wrapper{margin-top:-50%;transform-origin:top right;transform:rotateZ(270deg) translateY(-100%)}.crowdsignal-forms-feedback.is-vertical.align-right .crowdsignal-forms-feedback__trigger-wrapper{transform-origin:top left;transform:rotateZ(270deg) translateX(-100%)}.crowdsignal-forms-feedback__trigger{box-shadow:1px 1px 7px rgba(0,0,0,0.3);cursor:pointer;background-color:var(--crowdsignal-forms-trigger-background-color) !important;color:var(--crowdsignal-forms-trigger-text-color) !important;display:flex !important;align-items:center;font-size:16px !important;line-height:1.5 !important;padding:10px 16px !important;white-space:nowrap !important}.crowdsignal-forms-feedback__trigger>svg{fill:currentColor}.crowdsignal-forms-feedback__trigger.is-active{background:var(--crowdsignal-forms-trigger-background-color) !important;padding-left:12px !important}.crowdsignal-forms-feedback.no-shadow .crowdsignal-forms-feedback__trigger{box-shadow:none}.crowdsignal-forms-feedback.is-vertical.align-left .crowdsignal-forms-feedback__trigger{border-top-left-radius:0 !important;border-top-right-radius:0 !important}.crowdsignal-forms-feedback.is-vertical.align-right .crowdsignal-forms-feedback__trigger{border-bottom-left-radius:0 !important;border-bottom-right-radius:0 !important}.crowdsignal-forms-feedback__popover-wrapper.components-popover .components-popover__content{background-color:transparent;border:0;box-shadow:none;outline:0;overflow:visible}.crowdsignal-forms-feedback__popover{background-color:var(--crowdsignal-forms-background-color);border-top:10px solid var(--crowdsignal-forms-button-color);box-shadow:1px 1px 7px rgba(0,0,0,0.3);color:var(--crowdsignal-forms-text-color);max-height:480px;outline:0;overflow-y:scroll;padding:24px;width:240px;text-align:left;z-index:100;display:flex;flex-direction:column}@media screen and (min-width: 360px){.crowdsignal-forms-feedback__popover{max-height:640px;width:300px}}@media screen and (min-width: 480px){.crowdsignal-forms-feedback__popover{max-height:auto;width:380px}}.crowdsignal-forms-feedback__header{color:var(--crowdsignal-forms-text-color);margin-top:0 !important;margin-bottom:32px !important;flex-grow:1}.crowdsignal-forms-feedback__input{margin-top:16px;position:relative;width:100%;z-index:1}.crowdsignal-forms-feedback__input.is-error::before{border:3px solid #d63638;box-sizing:border-box;content:"";display:block;position:absolute;top:-4px;left:-4px;bottom:-4px;right:-4px;z-index:-1}.crowdsignal-forms-feedback__input input,.crowdsignal-forms-feedback__input textarea{box-sizing:border-box;font-size:var(--crowdsignal-forms-text-size) !important;padding:16px !important}.crowdsignal-forms-feedback__button-wrapper{display:flex;justify-content:flex-end;margin-top:24px;margin-bottom:0;width:100%}.crowdsignal-forms-feedback__button-wrapper:hover{color:var(--crowdsignal-forms-button-color)}.crowdsignal-forms-feedback__feedback-button{background-color:var(--crowdsignal-forms-button-color) !important;color:var(--crowdsignal-forms-button-text-color) !important}
build/editor.js CHANGED
@@ -1,13 +1,13 @@
1
- !function(e,t){for(var n in t)e[n]=t[n]}(window,function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=48)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.lodash}()},function(e,t){!function(){e.exports=this.React}()},function(e,t){!function(){e.exports=this.wp.components}()},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){!function(){e.exports=this.wp.blockEditor}()},function(e,t,n){var r=n(37),o=n(38),a=n(28),l=n(39);e.exports=function(e,t){return r(e)||o(e,t)||a(e,t)||l()}},function(e,t,n){e.exports=n(40)()},function(e,t){!function(){e.exports=this.regeneratorRuntime}()},function(e,t,n){var r;
2
  /*!
3
  Copyright (c) 2017 Jed Watson.
4
  Licensed under the MIT License (MIT), see
5
  http://jedwatson.github.io/classnames
6
- */!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)&&r.length){var l=o.apply(null,r);l&&e.push(l)}else if("object"===a)for(var c in r)n.call(r,c)&&r[c]&&e.push(c)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t){!function(){e.exports=this.wp.data}()},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t){function n(e,t,n,r,o,a,l){try{var c=e[a](l),s=c.value}catch(i){return void n(i)}c.done?t(s):Promise.resolve(s).then(r,o)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(o,a){var l=e.apply(t,r);function c(e){n(l,o,a,c,s,"next",e)}function s(e){n(l,o,a,c,s,"throw",e)}c(void 0)}))}}},function(e,t){!function(){e.exports=this.wp.compose}()},function(e,t){!function(){e.exports=this.wp.htmlEntities}()},function(e,t){!function(){e.exports=this.wp.apiFetch}()},function(e,t){!function(){e.exports=this.wp.blocks}()},function(e,t,n){var r=n(34),o=n(35),a=n(28),l=n(36);e.exports=function(e){return r(e)||o(e)||a(e)||l()}},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t,n){var r=n(47);e.exports=function(e,t){if(null==e)return{};var n,o,a=r(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)n=l[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},function(e,t,n){var r,o;
7
  /*!
8
  * JavaScript Cookie v2.2.1
9
  * https://github.com/js-cookie/js-cookie
10
  *
11
  * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
12
  * Released under the MIT license
13
- */!function(a){if(void 0===(o="function"==typeof(r=a)?r.call(t,n,t,e):r)||(e.exports=o),!0,e.exports=a(),!!0){var l=window.Cookies,c=window.Cookies=a();c.noConflict=function(){return window.Cookies=l,c}}}((function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(r){function o(){}function a(t,n,a){if("undefined"!=typeof document){"number"==typeof(a=e({path:"/"},o.defaults,a)).expires&&(a.expires=new Date(1*new Date+864e5*a.expires)),a.expires=a.expires?a.expires.toUTCString():"";try{var l=JSON.stringify(n);/^[\{\[]/.test(l)&&(n=l)}catch(i){}n=r.write?r.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var c="";for(var s in a)a[s]&&(c+="; "+s,!0!==a[s]&&(c+="="+a[s].split(";")[0]));return document.cookie=t+"="+n+c}}function l(e,n){if("undefined"!=typeof document){for(var o={},a=document.cookie?document.cookie.split("; "):[],l=0;l<a.length;l++){var c=a[l].split("="),s=c.slice(1).join("=");n||'"'!==s.charAt(0)||(s=s.slice(1,-1));try{var i=t(c[0]);if(s=(r.read||r)(s,i)||t(s),n)try{s=JSON.parse(s)}catch(u){}if(o[i]=s,e===i)break}catch(u){}}return e?o[e]:o}}return o.set=a,o.get=function(e){return l(e,!1)},o.getJSON=function(e){return l(e,!0)},o.remove=function(t,n){a(t,"",e(n,{expires:-1}))},o.defaults={},o.withConverter=n,o}((function(){}))}))},function(e,t){!function(){e.exports=this.ReactDOM}()},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t){!function(){e.exports=this.wp.hooks}()},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){var r=n(23);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t,n){var r=n(27);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t,n){var r=n(42),o=n(43);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?o(e):t}},function(e,t,n){var r=n(19),o=n(23),a=n(44),l=n(45);function c(t){var n="function"==typeof Map?new Map:void 0;return e.exports=c=function(e){if(null===e||!a(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return l(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),o(t,e)},c(t)}e.exports=c},function(e,t){!function(){e.exports=this.wp.editor}()},,,function(e,t,n){var r=n(27);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,a=void 0;try{for(var l,c=e[Symbol.iterator]();!(r=(l=c.next()).done)&&(n.push(l.value),!t||n.length!==t);r=!0);}catch(s){o=!0,a=s}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){"use strict";var r=n(41);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,l){if(l!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){e.exports=function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}},function(e,t,n){var r=n(23),o=n(46);function a(t,n,l){return o()?e.exports=a=Reflect.construct:e.exports=a=function(e,t,n){var o=[null];o.push.apply(o,t);var a=new(Function.bind.apply(e,o));return n&&r(a,n.prototype),a},a.apply(null,arguments)}e.exports=a},function(e,t){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}},function(e,t,n){"use strict";n.r(t);var r=n(17),o=n(24),a=n(0),l=n(1),c=function(){return Object(a.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5 6L5.5 18C5.5 18.2761 5.72386 18.5 6 18.5L18 18.5C18.2761 18.5 18.5 18.2761 18.5 18L18.5 6C18.5 5.72386 18.2761 5.5 18 5.5L6 5.5C5.72386 5.5 5.5 5.72386 5.5 6ZM4 18L4 6C4 4.89543 4.89543 4 6 4L18 4C19.1046 4 20 4.89543 20 6L20 18C20 19.1046 19.1046 20 18 20L6 20C4.89543 20 4 19.1046 4 18Z"}),Object(a.createElement)("rect",{x:"15",y:"17",width:"6",height:"1.5",transform:"rotate(-90 15 17)"}),Object(a.createElement)("rect",{x:"11.5",y:"17",width:"9",height:"1.5",transform:"rotate(-90 11.5 17)"}),Object(a.createElement)("rect",{x:"8",y:"17",width:"5",height:"1.5",transform:"rotate(-90 8 17)"}))},s=n(18),i=n.n(s),u=n(5),d=n.n(u),b=n(11),f=n(2);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){d()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var g={tryFetch:!1,isFetching:!1,pollsByClientId:{},pollClientIds:[]},O={setTryFetchPollData:function(e){return{type:"SET_TRY_FETCH",tryFetch:e}},setIsFetchingPollData:function(e){return{type:"IS_FETCHING",isFetching:e}},setPollApiDataForClientId:function(e,t){return{type:"SET_POLL",clientId:e,pollData:t}},addPollClientId:function(e){return{type:"ADD_POLL_CLIENT_ID",clientId:e}},removePollClientId:function(e){return{type:"REMOVE_POLL_CLIENT_ID",clientId:e}}},w=(Object(b.registerStore)("crowdsignal-forms/polls",{reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_TRY_FETCH":return p({},e,{tryFetch:!!t.tryFetch});case"IS_FETCHING":return p({},e,{isFetching:!!t.isFetching});case"SET_POLL":return p({},e,{pollsByClientId:p({},e.pollsByClientId,d()({},t.clientId,t.pollData))});case"ADD_POLL_CLIENT_ID":return p({},e,{pollClientIds:e.pollClientIds.indexOf(t.clientId)<0?[].concat(i()(e.pollClientIds),[t.clientId]):e.pollClientIds});case"REMOVE_POLL_CLIENT_ID":return p({},e,{pollClientIds:Object(f.filter)(e.pollClientIds,(function(e){return e!==t.clientId}))});default:return e}},actions:O,selectors:{shouldTryFetchingPollData:function(e){return!!e.tryFetch},getPollDataByClientId:function(e,t){return e.pollsByClientId[t]||null},getPollClientIds:function(e){return e.pollClientIds},isFetchingPollData:function(e){return!!e.isFetching}},controls:{},resolvers:{}}),n(12)),h=n.n(w),j=n(7),_=n.n(j),C=n(3),v=n.n(C),E=n(6),y=n(4),x=n(15),k=n(14),S=n(10),T=n.n(S),N=function(e){var t=e.hasVoted,n=e.isPollClosed,r=e.isPollHidden,o=e.showSubmitMessage,c=T()({"is-transparent":o},"crowdsignal-forms-poll__closed-banner");return Object(a.createElement)("div",{className:c},r&&Object(l.__)("This Poll is Hidden","crowdsignal-forms"),n&&!r&&Object(l.__)("This Poll is Closed","crowdsignal-forms"),t&&Object(l.__)("Thanks For Voting!","crowdsignal-forms"))},L=n(8),P=n.n(L),R=n(9),I=n.n(R),A=n(13),D=n.n(A),B=n(21),F=n.n(B),M=n(25),H=n.n(M),V=n(26),U=n.n(V),W=n(29),z=n.n(W),Z=n(19),q=n.n(Z),G=n(30),K=n.n(G),Y=n(16),Q=n.n(Y);function J(e){return function(){var t,n=q()(e);if(X()){var r=q()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return z()(this,t)}}function X(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var $,ee=function(){var e=D()(I.a.mark((function e(t){var n,r,o=arguments;return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=!(o.length>1&&void 0!==o[1])||o[1],r="https://api.crowdsignal.com/v3/polls",n){e.next=4;break}return e.abrupt("return",null);case 4:return e.abrupt("return",window.fetch("".concat(r,"/").concat(t,"/results"),{method:"GET",headers:{"content-type":"application/json"}}).then((function(e){if(e.status>=200&&e.status<300)return e.json();throw e})).then((function(e){if(404===e.status)return{};if(e.error)throw new Error(e.message);return e.results.votes_by_answer})));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),te=function(){var e=D()(I.a.mark((function e(t){var n,r,o;return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"5430eeac3911395001d731d9702fc38b",n=(new Date).getTime(),e.next=4,window.fetch("https://polldaddy.com/n/".concat("5430eeac3911395001d731d9702fc38b","/").concat(t,"?").concat(n,"&format=json"));case 4:if((r=e.sent).ok){e.next=7;break}throw new oe;case 7:return e.next=9,r.json();case 9:if((o=e.sent).nonce){e.next=12;break}throw new oe;case 12:return e.abrupt("return",o.nonce);case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ne=function(){var e=D()(I.a.mark((function e(t,n,r,o){var a,l,c;return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=r.join(","),e.next=3,window.fetch("https://polls.polldaddy.com/vote-js.php?format=json&p=".concat(n,"&b=1&a=").concat(a,"&o=&va=16&cookie=0&n=").concat(t,"&url=").concat(encodeURIComponent(window.location),"&vi=").concat(o));case 3:if((l=e.sent).ok){e.next=6;break}throw new oe;case 6:return e.next=8,l.json();case 8:if("error"!==(c=e.sent).status){e.next=11;break}throw new re(c.error);case 11:case"end":return e.stop()}}),e)})));return function(t,n,r,o){return e.apply(this,arguments)}}(),re=function(e){U()(n,e);var t=J(n);function n(){return H()(this,n),t.apply(this,arguments)}return n}(K()(Error)),oe=function(e){U()(n,e);var t=J(n);function n(){return H()(this,n),t.call(this,Object(l.__)("Server error. Please try again.","crowdsignal-forms"))}return n}(re),ae=function(){var e=D()(I.a.mark((function e(){return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Q()({path:"/crowdsignal-forms/v1/account/connected",method:"GET"});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),le=function(){var e=D()(I.a.mark((function e(){return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Q()({path:"/crowdsignal-forms/v1/account/info",method:"GET"});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ce=function(e,t){var n=Object(C.useState)(null),r=_()(n,2),o=r[0],a=r[1],l=Object(C.useState)(null),c=_()(l,2),s=c[0],i=c[1],u=Object(C.useState)(!0),d=_()(u,2),b=d[0],f=d[1];return Object(C.useEffect)((function(){f(!0),i(null),a(null),e().then(a).catch(i).finally((function(){return f(!1)}))}),t),{data:o,error:s,loading:b}},se=Object.freeze({THANK_YOU:"thank-you",CUSTOM_TEXT:"custom-text",REDIRECT:"redirect",RESULTS:"results"}),ie=Object.freeze({THEME_DEFAULT:"theme-default",GEORGIA:"georgia",PALATINO:"palatino",TIMES_NEW_ROMAN:"times-new-roman",ARIAL:"arial",IMPACT:"impact",LUCIDA:"lucida",TAHOMA:"tahoma",TREBUCHET:"trebuchet",VERDANA:"verdana",COURIER:"courier",CABIN:"Cabin",CHIVO:"Chivo",OPEN_SANS:"Open+Sans",FIRA_SANS:"Fira+Sans",ROBOTO:"Roboto",NUNITO:"Nunito",OVERPASS:"Overpass",LATO:"Lato",LIBRE_FRANKLIN:"Libre+Franklin",MONTSERRAT:"Montserrat",POPPINS:"Poppins",RUBIK:"Rubik",RALEWAY:"Raleway",JOSEFIN_SANS:"Josefin+Sans",ALEGREYA_SANS:"Alegreya+Sans",OSWALD:"Oswald"}),ue=Object.freeze([ie.CABIN,ie.CHIVO,ie.OPEN_SANS,ie.FIRA_SANS,ie.ROBOTO,ie.NUNITO,ie.OVERPASS,ie.LATO,ie.LIBRE_FRANKLIN,ie.MONTSERRAT,ie.POPPINS,ie.RUBIK,ie.RALEWAY,ie.JOSEFIN_SANS,ie.ALEGREYA_SANS,ie.OSWALD]),de=Object.freeze(($={},d()($,ie.THEME_DEFAULT,null),d()($,ie.GEORGIA,"Georgia, serif"),d()($,ie.PALATINO,'"Palatino Linotype", "Book Antiqua", Palatino, serif'),d()($,ie.TIMES_NEW_ROMAN,'"Times New Roman", Times, serif'),d()($,ie.ARIAL,"Arial, Helvetica, sans-serif"),d()($,ie.IMPACT,"Impact, Charcoal, sans-serif"),d()($,ie.LUCIDA,'"Lucida Sans Unicode", "Lucida Grande", sans-serif'),d()($,ie.TAHOMA,"Tahoma, Geneva, sans-serif"),d()($,ie.TREBUCHET,'"Trebuchet MS", Helvetica, sans-serif'),d()($,ie.VERDANA,"Verdana, Geneva, sans-serif"),d()($,ie.COURIER,'"Courier New", Courier, monospace'),d()($,ie.CABIN,'"Cabin", sans-serif'),d()($,ie.CHIVO,'"Chivo", sans-serif'),d()($,ie.OPEN_SANS,'"Open Sans", sans-serif'),d()($,ie.FIRA_SANS,'"Fira Sans", sans-serif'),d()($,ie.ROBOTO,'"Roboto", sans-serif'),d()($,ie.NUNITO,'"Nunito", sans-serif'),d()($,ie.OVERPASS,'"Overpass", sans-serif'),d()($,ie.LATO,'"Lato", sans-serif'),d()($,ie.LIBRE_FRANKLIN,'"Libre Franklin", sans-serif'),d()($,ie.MONTSERRAT,'"Montserrat", sans-serif'),d()($,ie.POPPINS,'"Poppins", sans-serif'),d()($,ie.RUBIK,'"Rubik", sans-serif'),d()($,ie.RALEWAY,'"Raleway", sans-serif'),d()($,ie.JOSEFIN_SANS,'"Josefin Sans", sans-serif'),d()($,ie.ALEGREYA_SANS,'"Alegreya Sans", sans-serif'),d()($,ie.OSWALD,'"Oswald", sans-serif'),$)),be=Object.freeze({OPEN:"open",CLOSED:"closed",CLOSED_AFTER:"closed-after"}),fe=Object.freeze({SHOW_RESULTS:"show-results",SHOW_CLOSED_BANNER:"show-closed-banner",HIDDEN:"hidden"}),me=Object.freeze({CONNECTED:"connected",NOT_CONNECTED:"not-connected",NOT_VERIFIED:"not-verified"}),pe=Object.freeze({RADIO:"radio",BUTTON:"button"}),ge=Object.freeze({LIST:"list",INLINE:"inline"}),Oe=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=ce((function(){return ee(e,t)}),[e]),r=n.data,o=n.error,a=n.loading;return{error:o,loading:a,results:r}},we={is_verified:!0,capabilities:["hide-branding"],signal_count:{count:0,userLimit:2500,shouldDisplay:!1}},he=function(){var e=Object(C.useState)(we),t=_()(e,2),n=t[0],r=t[1],o=function(){var e=D()(I.a.mark((function e(){var t;return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,le();case 2:t=e.sent,r(t);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return Object(C.useEffect)((function(){o()}),[]),n},je=function(e){var t=e.error,n=e.loading,r=e.text,o=e.totalVotes,c=e.votes,s=T()("crowdsignal-forms-poll__answer-results",{"is-error":t,"is-loading":n}),i=!n&&!t,u=0===o?0:100*c/o,d={width:"".concat(parseInt(u,10),"%")};return Object(a.createElement)("div",{className:s},Object(a.createElement)("div",{className:"crowdsignal-forms-poll__answer-results-labels"},Object(a.createElement)("span",{className:"crowdsignal-forms-poll__answer-results-answer"},Object(x.decodeEntities)(r)),Object(a.createElement)("span",{className:"crowdsignal-forms-poll__answer-results-votes"},i&&Object(l.sprintf)(Object(l._n)("%s vote","%s votes",c,"crowdsignal-forms"),c.toLocaleString())),Object(a.createElement)("span",{className:"crowdsignal-forms-poll__answer-results-percent"},i&&"".concat(u.toFixed(2),"%"))),Object(a.createElement)("div",{className:"crowdsignal-forms-poll__answer-results-progress-track"},Object(a.createElement)("div",{className:"crowdsignal-forms-poll__answer-results-progress-bar",style:d})))};je.propTypes={loading:P.a.bool,text:P.a.string.isRequired,totalVotes:P.a.number,votes:P.a.number};var _e=je,Ce=Object(a.createElement)("span",null,"Hide Crowdsignal ads",Object(a.createElement)("br",null),"and get unlimited",Object(a.createElement)("br",null),"signals -"," ",Object(a.createElement)("a",{href:"https://crowdsignal.com/pricing",target:"_blank",rel:"noopener noreferrer"},"Upgrade")),ve=function(e){var t=e.showLogo,n=e.editing,r=e.message,o=e.trackRef,c=void 0===o?"cs-forms-poll":o;return Object(a.createElement)("div",{className:"crowdsignal-forms__footer-branding"},Object(a.createElement)("a",{className:"crowdsignal-forms__footer-cs-link",href:"https://crowdsignal.com?ref="+c,target:"_blank",rel:"noopener noreferrer"},r||Object(l.__)("Create your own poll with Crowdsignal","crowdsignal-forms")),n&&Object(a.createElement)(y.Tooltip,{text:Ce,position:"top center"},Object(a.createElement)("a",{href:"https://crowdsignal.com/pricing",target:"_blank",rel:"noopener noreferrer",className:"crowdsignal-forms__branding-promote"},Object(l.__)("Hide","crowdsignal-forms"))),t&&Object(a.createElement)("a",{href:"https://crowdsignal.com?ref="+c,target:"_blank",rel:"noopener noreferrer"},Object(a.createElement)("img",{className:"crowdsignal-forms__footer-branding-logo",src:"https://app.crowdsignal.com/images/svg/cs-logo-dots.svg",alt:"Crowdsignal sticker"})))};function Ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var ye=function(e,t){return Object(f.map)(e,(function(e){return void 0!==e.answerIdFromApi?e:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ee(Object(n),!0).forEach((function(t){d()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{answerIdFromApi:t[e.answerId]})}))},xe=function(e){return Object(f.isEmpty)(e)||void 0===e.text||null===e.text||""===e.text},ke=function(e){var t=e.answers,n=e.pollIdFromApi,r=e.setErrorMessage,o=e.hideBranding,c=Oe(n),s=c.error,i=c.loading,u=c.results;Object(C.useEffect)((function(){r(s?Object(l.__)("Unfortunately, we're having some trouble retrieving the results for this poll at this time.","crowdsignal-forms"):"")}),[s]);var d=T()("crowdsignal-forms-poll__results",{"is-error":!!s,"is-loading":i}),b=Object(f.sum)(Object(f.values)(u));return Object(a.createElement)("div",{className:d},Object(a.createElement)("div",{className:"crowdsignal-forms-poll__results-list"},Object(f.map)(t,(function(e){var t;return!xe(e)&&Object(a.createElement)(_e,{key:e.answerId,error:!!s,loading:i,text:e.text,totalVotes:b,votes:u&&null!==(t=u[e.answerIdFromApi])&&void 0!==t?t:0})}))),Object(a.createElement)("div",{className:"crowdsignal-forms-poll__results-footer"},Object(a.createElement)("span",{className:"crowdsignal-forms-poll__results-total"},Object(l.sprintf)(Object(l._n)("%s total vote","%s total votes",b,"crowdsignal-forms"),b?b.toLocaleString():0)),!o&&Object(a.createElement)(ve,null)))};ke.propTypes={pollIdFromApi:P.a.number,answers:P.a.arrayOf(P.a.shape({answerId:P.a.string.isRequired,answerIdFromApi:P.a.number,text:P.a.string})).isRequired,setErrorMessage:P.a.func.isRequired,hideBranding:P.a.bool};var Se=ke,Te=n(20),Ne=n.n(Te),Le=function(e){for(var t=window.getComputedStyle(e).backgroundColor;"rgba(0, 0, 0, 0)"===t&&e.parentNode&&e.parentNode.nodeType===window.Node.ELEMENT_NODE;)e=e.parentNode,t=window.getComputedStyle(e).backgroundColor;return t},Pe=function(){return Object(a.createElement)("div",{className:"crowdsignal-forms__style-probe"},Object(a.createElement)("p",null),Object(a.createElement)("h3",null,"Text"),Object(a.createElement)("div",{className:"wp-block-button"},Object(a.createElement)("div",{className:"wp-block-button__link"})),Object(a.createElement)("div",{className:"entry-content"},Object(a.createElement)("div",{className:"alignwide"})))},Re=function(e){if(null===e)return{};var t,n=e.querySelector(".wp-block-button__link"),r=e.querySelector("p"),o=e.querySelector("h3"),a=e.querySelector(".alignwide"),l=Le(n),c=Le(r),s=window.getComputedStyle(r).color;if(l===c){var i=(t=n,"0px"!==window.getComputedStyle(t).borderBlockStartWidth?window.getComputedStyle(t).borderBlockStartColor:null);l=i||s}return{accentColor:l,backgroundColor:c,textColor:s,textColorInverted:window.getComputedStyle(n).color,textFont:window.getComputedStyle(r).fontFamily,textSize:window.getComputedStyle(r).fontSize,headingFont:window.getComputedStyle(o).fontFamily,contentWideWidth:window.getComputedStyle(a).maxWidth}},Ie=function(e){return Object(y.withFallbackStyles)((function(e){return{fallbackStyles:Re(e.querySelector(".crowdsignal-forms__style-probe"))}}))((function(t){var n=t.fallbackStyles,r=Ne()(t,["fallbackStyles"]);return Object(a.createElement)(e,h()({fallbackStyles:n||{},renderStyleProbe:function(){return n?null:Object(a.createElement)(Pe,null)}},r))}))};function Ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var De=function(e){var t=e.answer,n=e.answerStyle,r=e.index,o=e.isMultipleChoice,c=e.onChange,s=e.onDelete,i=e.onNewAnswer,u=e.disabled,b=function(e){return c(r,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ae(Object(n),!0).forEach((function(t){d()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ae(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{text:e}))},m=function(){return s(r)},p=function(){return i(r+1)},g=T()("crowdsignal-forms-poll__answer",{"is-multiple-choice":o,"is-button":pe.BUTTON===n});return Object(a.createElement)("div",{className:g},pe.RADIO===n&&Object(a.createElement)(a.Fragment,null,Object(a.createElement)("span",{className:"crowdsignal-forms-poll__check"}),Object(a.createElement)("div",{className:"crowdsignal-forms-poll__answer-label-wrapper"},u?Object(a.createElement)("span",{className:"crowdsignal-forms-poll__answer-label"},t.text?Object(x.decodeEntities)(t.text):Object(l.__)("Enter an answer","crowdsignal-forms")):Object(a.createElement)(E.RichText,{className:"crowdsignal-forms-poll__answer-label",tagName:"span",placeholder:Object(l.__)("Enter an answer","crowdsignal-forms"),multiline:!1,preserveWhiteSpace:!1,onChange:b,onSplit:p,onReplace:f.noop,onRemove:m,value:t.text,allowedFormats:[],withoutInteractiveFormatting:!0}))),pe.BUTTON===n&&Object(a.createElement)("div",{className:"wp-block-button crowdsignal-forms-poll__block-button"},u?Object(a.createElement)("div",{className:"wp-block-button__link crowdsignal-forms-poll__submit-button"},t.text?Object(x.decodeEntities)(t.text):Object(l.__)("Enter an answer","crowdsignal-forms")):Object(a.createElement)(E.RichText,{className:"wp-block-button__link crowdsignal-forms-poll__submit-button",placeholder:Object(l.__)("Enter an answer","crowdsignal-forms"),multiline:!1,preserveWhiteSpace:!1,onChange:b,onSplit:p,onReplace:f.noop,onRemove:m,value:t.text,allowedFormats:[],withoutInteractiveFormatting:!0,keepPlaceholderOnFocus:!0})))},Be=function(e,t){return Object(f.tap)(e.querySelectorAll("[role=textbox]")[t],(function(e){return e&&e.focus()}))},Fe=function(e){var t=e.attributes,n=e.isSelected,r=e.setAttributes,o=e.disabled,l=e.answerStyle,c=e.buttonAlignment,s=Object(C.useRef)(),u=function(e,n){return r({answers:Object(f.tap)(i()(t.answers),(function(t){t[e]=n}))})},d=function(e){Be(s.current,Math.max(e-1,0)),r({answers:Object(f.filter)(t.answers,(function(n){return t.answers.length<=2||n!==t.answers[e]}))})},b=function(e){e<t.answers.length&&r({answers:[].concat(i()(Object(f.slice)(t.answers,0,e)),[{}],i()(Object(f.slice)(t.answers,e,t.answers.length)))}),Be(s.current,Math.min(e,t.answers.length))},m=n&&Object(f.last)(t.answers).text?[].concat(i()(t.answers),[{}]):t.answers,p=T()({"is-button":pe.BUTTON===l,"is-inline-button-alignment":ge.INLINE===c},"crowdsignal-forms-poll__options"),g=pe.RADIO===l;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)("div",{ref:s,className:p},Object(f.map)(m,(function(e,r){return function(e){return n&&!o||!xe(e)}(e)&&Object(a.createElement)(De,{key:"poll-answer-".concat(r),answer:e,answerStyle:l,index:r,isMultipleChoice:t.isMultipleChoice,onChange:u,onDelete:d,onNewAnswer:b,disabled:o})}))),g&&Object(a.createElement)("div",{className:"crowdsignal-forms-poll__actions"},Object(a.createElement)("div",{className:"wp-block-button crowdsignal-forms-poll__block-button"},o?Object(a.createElement)("div",{className:"wp-block-button__link crowdsignal-forms-poll__submit-button"},t.submitButtonLabel):Object(a.createElement)(E.RichText,{className:"wp-block-button__link crowdsignal-forms-poll__submit-button",onChange:function(e){return r({submitButtonLabel:e})},value:t.submitButtonLabel,allowedFormats:[],multiline:!1,disableLineBreaks:!0}))))},Me=function(e){return Object(f.includes)(ie,e)?de[e]:null},He=function(e,t){var n,r,o,a,l=Object(f.isEmpty)(e.textColor)?t.textColor:e.textColor;return Object(f.mapKeys)({borderColor:null!==(n=e.borderColor)&&void 0!==n?n:t.accentColor,borderRadius:"".concat(e.borderRadius,"px"),borderWidth:"".concat(e.borderWidth,"px"),bgColor:e.backgroundColor,bodyFontFamily:null!==(r=Me(e.fontFamily))&&void 0!==r?r:t.textFont,questionFontFamily:null!==(o=Me(e.fontFamily))&&void 0!==o?o:t.headingFont,submitButtonBgColor:e.submitButtonBackgroundColor||t.accentColor,submitButtonTextColor:e.submitButtonTextColor||t.textColorInverted,textColor:l,textColorProperties:null!==(a=Ve(l))&&void 0!==a?a:"0, 0, 0",contentWideWidth:t.contentWideWidth},(function(e,t){return"--crowdsignal-forms-".concat(Object(f.kebabCase)(t))}))},Ve=function(e){return!e||"string"!=typeof e||-1===e.indexOf("rgb")&&0!==e.indexOf("#")||-1<e.indexOf("rgba")?null:(0===e.indexOf("#")&&(e=Ue(e)),e.match(/\((.*?)\)/)[1])},Ue=function(e){var t=0,n=0,r=0,o=4===e.length?"#".concat(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]):e;return 7===o.length&&(t=parseInt(o.substr(1,2),16)||0,n=parseInt(o.substr(3,2),16)||0,r=parseInt(o.substr(5,2),16)||0),"rgb(".concat(t,", ").concat(n,", ").concat(r,")")},We=function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return T()({"has-bg-color":e.backgroundColor,"has-text-color":e.textColor,"has-submit-button-bg-color":e.submitButtonBackgroundColor,"has-submit-button-text-color":e.submitButtonTextColor,"has-border-radius":null!==(t=e.borderRadius)&&void 0!==t&&t,"has-box-shadow":e.hasBoxShadow},r)},ze=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Date;if(be.CLOSED===e)return!0;if(be.CLOSED_AFTER===e){var r=new Date(t);return r<n}return!1},Ze=function(e,t){return e.isMultipleChoice?pe.RADIO:!Object(f.isEmpty)(t)&&t.indexOf("is-style-buttons")>-1?pe.BUTTON:pe.RADIO},qe=function(e){e?Object(r.registerBlockStyle)("crowdsignal-forms/poll",{name:"buttons",label:Object(l.__)("Buttons","crowdsignal-forms")}):Object(r.unregisterBlockStyle)("crowdsignal-forms/poll","buttons")},Ge=function(e){var t=e.signalWarning;return Object(a.createElement)("div",{className:"crowdsignal-forms__row"},Object(a.createElement)(y.Button,{href:"https://crowdsignal.com/pricing",isSecondary:!0,target:"_blank"},Object(l.__)("Upgrade","crowdsignal-forms")),t?Object(a.createElement)("div",{className:"crowdsignal-forms__sidebar-promote"},Object(a.createElement)("em",null,Object(l.__)("Your free Crowdsignal account has ","crowdsignal-forms"),Object(a.createElement)("strong",null,Object(a.createElement)(y.ExternalLink,{href:"https://crowdsignal.com/support/what-is-a-signal/"},Object(l.__)("reached the signals limit.","crowdsignal-forms"))))):Object(a.createElement)("div",{className:"crowdsignal-forms__sidebar-promote"},Object(a.createElement)("em",null,Object(l.__)("Hide Crowdsignal branding and get ","crowdsignal-forms"),Object(a.createElement)(y.ExternalLink,{href:"https://crowdsignal.com/support/what-is-a-signal/"},Object(l.__)("unlimited signals","crowdsignal-forms")))))},Ke=function(e){var t,n=e.attributes,r=e.className,o=e.setAttributes,c=e.fallbackBackgroundColor,s=e.fallbackTextColor,i=e.fallbackSubmitButtonBackgroundColor,u=e.fallbackSubmitButtonTextColor,d=e.viewResultsUrl,b=e.shouldPromote,m=e.signalWarning,p=""!==d,g=Ze(n,r);return se.REDIRECT===n.confirmMessageType&&(n.confirmMessageType=se.THANK_YOU),Object(a.createElement)(E.InspectorControls,null,Object(a.createElement)(y.PanelBody,{title:Object(l.__)("Results","crowdsignal-forms"),initialOpen:!0},Object(a.createElement)("p",null,p?Object(l.__)("Manage results on ","crowdsignal-forms"):Object(l.__)("Publish this post to enable results on ","crowdsignal-forms"),Object(a.createElement)(y.ExternalLink,{href:"https://www.crowdsignal.com"},"crowdsignal.com")),Object(a.createElement)("p",null,Object(a.createElement)(y.Button,{href:d,isSecondary:!0,target:"_blank",disabled:!p},Object(l.__)("View results","crowdsignal-forms"))),Object(a.createElement)(y.TextControl,{value:Object(x.decodeEntities)(null!==(t=n.title)&&void 0!==t?t:n.question),label:Object(l.__)("Title of the poll block","crowdsignal-forms"),onChange:function(e){return o({title:e})}}),b&&Object(a.createElement)(Ge,{signalWarning:m})),Object(a.createElement)(y.PanelBody,{title:Object(l.__)("Confirmation message","crowdsignal-forms"),initialOpen:!1},Object(a.createElement)(y.SelectControl,{value:n.confirmMessageType,label:Object(l.__)("On submission","crowdsignal-forms"),options:[{label:Object(l.__)("Show results","crowdsignal-forms"),value:se.RESULTS},{label:Object(l.__)('Show "Thank You" message',"crowdsignal-forms"),value:se.THANK_YOU},{label:Object(l.__)("Show a custom text message","crowdsignal-forms"),value:se.CUSTOM_TEXT}],onChange:function(e){return Object(f.includes)(se,e)&&o({confirmMessageType:e})}}),se.CUSTOM_TEXT===n.confirmMessageType&&Object(a.createElement)(y.TextareaControl,{value:n.customConfirmMessage,label:Object(l.__)("Message text","crowdsignal-forms"),placeholder:Object(l.__)("Thanks for voting!","crowdsignal-forms"),onChange:function(e){return o({customConfirmMessage:e})}}),se.REDIRECT===n.confirmMessageType&&Object(a.createElement)(E.URLInput,{className:"crowdsignal-forms__redirect-url",value:n.redirectAddress,label:Object(l.__)("Redirect address","crowdsignal-forms"),onChange:function(e){return o({redirectAddress:e})}})),Object(a.createElement)(y.PanelBody,{title:Object(l.__)("Poll status","crowdsignal-forms"),initialOpen:!1},Object(a.createElement)(y.SelectControl,{value:n.pollStatus,label:Object(l.__)("Currently","crowdsignal-forms"),options:[{label:Object(l.__)("Open","crowdsignal-forms"),value:be.OPEN},{label:Object(l.__)("Closed after","crowdsignal-forms"),value:be.CLOSED_AFTER},{label:Object(l.__)("Closed","crowdsignal-forms"),value:be.CLOSED}],onChange:function(e){Object(f.includes)(be,e)&&o({closedAfterDateTime:e===be.CLOSED_AFTER?new Date((new Date).getTime()+864e5).toISOString():null,pollStatus:e})}}),be.CLOSED_AFTER===n.pollStatus&&Object(a.createElement)(y.TimePicker,{currentTime:n.closedAfterDateTime,label:Object(l.__)("Close poll on","crowdsignal-forms"),onChange:function(e){var t=new Date(e);o({closedAfterDateTime:t.toISOString()})},is12Hour:!0}),be.OPEN!==n.pollStatus&&Object(a.createElement)(y.SelectControl,{value:n.closedPollState,label:Object(l.__)("When poll is closed","crowdsignal-forms"),options:[{label:Object(l.__)("Show results","crowdsignal-forms"),value:fe.SHOW_RESULTS},{label:Object(l.__)('Show poll with "Closed" banner',"crowdsignal-forms"),value:fe.SHOW_CLOSED_BANNER},{label:Object(l.__)("Hide poll","crowdsignal-forms"),value:fe.HIDDEN}],onChange:function(e){return Object(f.includes)(fe,e)&&o({closedPollState:e})}})),Object(a.createElement)(E.PanelColorSettings,{title:Object(l.__)("Block styling","crowdsignal-forms"),initialOpen:!1,colorSettings:[{value:n.textColor,onChange:function(e){return o({textColor:e})},label:Object(l.__)("Text color","crowdsignal-forms")},{value:n.backgroundColor,onChange:function(e){return o({backgroundColor:e})},label:Object(l.__)("Background color","crowdsignal-forms")},{value:n.borderColor,onChange:function(e){return o({borderColor:e})},label:Object(l.__)("Border color","crowdsignal-forms")}]},Object(a.createElement)(E.ContrastChecker,{textColor:n.textColor,backgroundColor:n.backgroundColor,fallbackBackgroundColor:c,fallbackTextColor:s}),Object(a.createElement)(y.SelectControl,{value:n.fontFamily,label:Object(l.__)("Choose font","crowdsignal-forms"),options:[{label:Object(l.__)("Default theme font","crowdsignal-forms"),value:ie.THEME_DEFAULT},{label:"Alegreya Sans",value:ie.ALEGREYA_SANS},{label:"Arial",value:ie.ARIAL},{label:"Cabin",value:ie.CABIN},{label:"Chivo",value:ie.CHIVO},{label:"Courier",value:ie.COURIER},{label:"Fira Sans",value:ie.FIRA_SANS},{label:"Georgia",value:ie.GEORGIA},{label:"Impact",value:ie.IMPACT},{label:"Josefin Sans",value:ie.JOSEFIN_SANS},{label:"Lato",value:ie.LATO},{label:"Libre Franklin",value:ie.LIBRE_FRANKLIN},{label:"Lucida",value:ie.LUCIDA},{label:"Montserrat",value:ie.MONTSERRAT},{label:"Nunito",value:ie.NUNITO},{label:"Open Sans",value:ie.OPEN_SANS},{label:"Oswald",value:ie.OSWALD},{label:"Overpass",value:ie.OVERPASS},{label:"Palatino",value:ie.PALATINO},{label:"Poppins",value:ie.POPPINS},{label:"Raleway",value:ie.RALEWAY},{label:"Roboto",value:ie.ROBOTO},{label:"Rubik",value:ie.RUBIK},{label:"Tahoma",value:ie.TAHOMA},{label:"Times New Roman",value:ie.TIMES_NEW_ROMAN},{label:"Trebuchet",value:ie.TREBUCHET},{label:"Verdana",value:ie.VERDANA}],onChange:function(e){return Object(f.includes)(ie,e)&&o({fontFamily:e})}}),"full"!==n.align&&Object(a.createElement)("div",{className:"crowdsignal-forms__row"},Object(a.createElement)(y.TextControl,{type:"number",label:Object(l.__)("Width (%)","crowdsignal-forms"),value:n.width,onChange:function(e){return o({width:parseInt(e,10)})}}),Object(a.createElement)(y.Button,{isSmall:!0,className:"crowdsignal-forms__reset-width-button",onClick:function(){return o({width:100})}},Object(l.__)("Reset","crowdsignal-forms"))),Object(a.createElement)("div",{className:"crowdsignal-forms__row"},Object(a.createElement)(y.TextControl,{label:Object(l.__)("Border thickness","crowdsignal-forms"),value:n.borderWidth,onChange:function(e){o({borderWidth:parseInt(e,10)||0})},type:"number",className:"crowdsignal-forms__small-text-input"}),Object(a.createElement)(y.TextControl,{label:Object(l.__)("Corner radius","crowdsignal-forms"),value:n.borderRadius,onChange:function(e){o({borderRadius:parseInt(e,10)||0})},type:"number",className:"crowdsignal-forms__small-text-input"})),Object(a.createElement)(y.ToggleControl,{label:Object(l.__)("Drop shadow","crowdsignal-forms"),checked:n.hasBoxShadow,onChange:function(e){o({hasBoxShadow:e})}})),Object(a.createElement)(E.PanelColorSettings,{title:Object(l.__)("Button styling","crowdsignal-forms"),initialOpen:!1,colorSettings:[{value:n.submitButtonTextColor,onChange:function(e){return o({submitButtonTextColor:e})},label:Object(l.__)("Text color","crowdsignal-forms")},{value:n.submitButtonBackgroundColor,onChange:function(e){return o({submitButtonBackgroundColor:e})},label:Object(l.__)("Background color","crowdsignal-forms")}]},Object(a.createElement)(E.ContrastChecker,{textColor:n.submitButtonTextColor,backgroundColor:n.submitButtonBackgroundColor,fallbackBackgroundColor:i,fallbackTextColor:u}),pe.BUTTON===g&&Object(a.createElement)(y.SelectControl,{value:n.buttonAlignment,label:Object(l.__)("Alignment","crowdsignal-forms"),options:[{value:ge.LIST,label:Object(l.__)("List","crowdsignal-forms")},{value:ge.INLINE,label:Object(l.__)("Inline","crowdsignal-forms")}],onChange:function(e){return o({buttonAlignment:e})}})),Object(a.createElement)(y.PanelBody,{title:Object(l.__)("Answer settings","crowdsignal-forms"),initialOpen:!0},Object(a.createElement)(y.CheckboxControl,{checked:n.hasOneResponsePerComputer,label:Object(l.__)("One response per computer","crowdsignal-forms"),onChange:function(e){return o({hasOneResponsePerComputer:e})}}),Object(a.createElement)(y.CheckboxControl,{checked:n.randomizeAnswers,label:Object(l.__)("Randomize answer order","crowdsignal-forms"),onChange:function(e){return o({randomizeAnswers:e})}})))};function Ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Qe=[{icon:function(){return Object(a.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)("path",{d:"M20 6.75H12V5.25H20V6.75Z"}),Object(a.createElement)("path",{d:"M20 12.5H12V11H20V12.5Z"}),Object(a.createElement)("path",{d:"M20 18.75H12V17.25H20V18.75Z"}),Object(a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 7C6.55228 7 7 6.55228 7 6C7 5.44772 6.55228 5 6 5C5.44772 5 5 5.44772 5 6C5 6.55228 5.44772 7 6 7ZM6 8C7.10457 8 8 7.10457 8 6C8 4.89543 7.10457 4 6 4C4.89543 4 4 4.89543 4 6C4 7.10457 4.89543 8 6 8Z"}),Object(a.createElement)("path",{d:"M6 12.75C6.55228 12.75 7 12.3023 7 11.75C7 11.1977 6.55228 10.75 6 10.75C5.44772 10.75 5 11.1977 5 11.75C5 12.3023 5.44772 12.75 6 12.75ZM6 13.75C7.10457 13.75 8 12.8546 8 11.75C8 10.6454 7.10457 9.75 6 9.75C4.89543 9.75 4 10.6454 4 11.75C4 12.8546 4.89543 13.75 6 13.75Z"}),Object(a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 19C6.55228 19 7 18.5523 7 18C7 17.4477 6.55228 17 6 17C5.44772 17 5 17.4477 5 18C5 18.5523 5.44772 19 6 19ZM6 20C7.10457 20 8 19.1046 8 18C8 16.8954 7.10457 16 6 16C4.89543 16 4 16.8954 4 18C4 19.1046 4.89543 20 6 20Z"}))},title:Object(l.__)("Choose one answer","crowdsignal-forms"),value:!1},{icon:function(){return Object(a.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 10.75H5V12.75H7V10.75ZM4 9.75V13.75H8V9.75H4Z"}),Object(a.createElement)("path",{d:"M4 4H8V8H4V4Z"}),Object(a.createElement)("path",{d:"M4 16H8V20H4V16Z"}),Object(a.createElement)("path",{d:"M20 6.75H12V5.25H20V6.75Z"}),Object(a.createElement)("path",{d:"M20 12.5H12V11H20V12.5Z"}),Object(a.createElement)("path",{d:"M20 18.75H12V17.25H20V18.75Z"}))},title:Object(l.__)("Choose multiple answers","crowdsignal-forms"),value:!0}],Je=function(e){var t=e.attributes,n=e.setAttributes,r=Object(f.map)(Qe,(function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ye(Object(n),!0).forEach((function(t){d()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ye(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{isActive:e.value===t.isMultipleChoice,onClick:function(){n({isMultipleChoice:e.value}),qe(e.value)}})}));return Object(a.createElement)(E.BlockControls,null,Object(a.createElement)(y.Toolbar,{controls:r}))},Xe=function(e){var t=e.children;return Object(a.createElement)("div",{className:"crowdsignal-forms-poll__error-banner"},t)},$e="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),et=new Uint8Array(16);function tt(){if(!$e)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return $e(et)}for(var nt=[],rt=0;rt<256;++rt)nt.push((rt+256).toString(16).substr(1));var ot=function(e,t){var n=t||0;return(nt[e[n+0]]+nt[e[n+1]]+nt[e[n+2]]+nt[e[n+3]]+"-"+nt[e[n+4]]+nt[e[n+5]]+"-"+nt[e[n+6]]+nt[e[n+7]]+"-"+nt[e[n+8]]+nt[e[n+9]]+"-"+nt[e[n+10]]+nt[e[n+11]]+nt[e[n+12]]+nt[e[n+13]]+nt[e[n+14]]+nt[e[n+15]]).toLowerCase()};var at=function(e,t,n){var r=(e=e||{}).random||(e.rng||tt)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return ot(r)},lt=function(e){var t=e.onEditClick;return Object(a.createElement)("div",{className:"crowdsignal-forms-poll__edit-bar"},Object(a.createElement)("div",{className:"crowdsignal-forms-poll__edit-bar-message"},Object(l.__)("Warning! This poll is published. Deleting or reordering answers may cause the loss of existing responses.","crowdsignal-forms")),Object(a.createElement)("button",{className:"crowdsignal-forms-poll__edit-bar-button",onClick:function(){t()}},Object(l.__)("Edit","crowdsignal-forms")))},ct=function(e){var t=e.blockIcon,n=e.blockName,r=e.children,o=function(){var e=Object(C.useState)(!0),t=_()(e,2),n=t[0],r=t[1],o=Object(C.useState)(!0),a=_()(o,2),l=a[0],c=a[1],s=function(){var e=D()(I.a.mark((function e(){var t,n,o;return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ae();case 2:return t=e.sent,n=me.CONNECTED===t||me.NOT_VERIFIED===t,o=me.CONNECTED===t,r(n),c(o),e.abrupt("return",{isNowConnected:n,isNowVerified:o});case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return Object(C.useEffect)((function(){s()}),[]),{isConnected:n,isAccountVerified:l,checkIsConnected:s}}(),c=o.isConnected,s=o.isAccountVerified,i=o.checkIsConnected,u=function(){var e=D()(I.a.mark((function e(){var t,n,r,o;return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=c,e.next=3,i();case 3:n=e.sent,r=n.isNowConnected,o=n.isNowVerified,r||window.open("/wp-admin/admin.php?page=crowdsignal-forms-setup"),t&&!o&&window.open("https://wordpress.com/me/account");case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();if(c&&s)return r;var d=!c,b=c&&!s;return Object(a.createElement)("div",{className:"crowdsignal-forms__connect-to-crowdsignal"},Object(a.createElement)("div",{className:"crowdsignal-forms__connect-to-crowdsignal-header"},t,Object(a.createElement)("div",{className:"crowdsignal-forms__connect-to-crowdsignal-title"},n)),Object(a.createElement)("div",{className:"crowdsignal-forms__connect-to-crowdsignal-body"},d&&Object(l.__)("You need to connect to a Crowdsignal account to collect and manage your results.","crowdsignal-forms"),b&&Object(l.__)("Please verify your WordPress.com email address in order to publish your poll.","crowdsignal-forms")),Object(a.createElement)(y.Button,{isPrimary:!0,onClick:u},d&&Object(l.__)("Connect to Crowdsignal","crowdsignal-forms"),b&&Object(l.__)("Verify or Change your Email Address","crowdsignal-forms")))};function st(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function it(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?st(Object(n),!0).forEach((function(t){d()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):st(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ut=function(e){return"crowdsignal-forms/poll"===e.name||"crowdsignal-forms/applause"===e.name||"crowdsignal-forms/vote"===e.name},dt=!1,bt=!1;!function(){if(!dt){dt=!0;var e=Object(b.select)("core/editor"),t=e.isEditedPostDirty,n=e.isEditedPostNew,r=e.isSavingPost,o=e.isCleanNewPost,a=e.getCurrentPostId,l=Object(b.dispatch)("crowdsignal-forms/polls"),c=l.setTryFetchPollData,s=l.setPollApiDataForClientId,i=l.setIsFetchingPollData,u=Object(b.select)("crowdsignal-forms/polls"),d=u.shouldTryFetchingPollData,m=u.getPollDataByClientId,p=u.isFetchingPollData;Object(b.subscribe)((function(){var e=Object(f.filter)(Object(b.select)("core/block-editor").getBlocks(),ut);if(!(e.length<1)&&(!p()&&!(o()||n()||r()||t())&&a())){var l=Object(f.filter)(e,(function(e){var t=e.attributes;return t.pollId&&null===m(t.pollId)}));l.length<1||(d()?p()||(i(!0),Promise.all(Object(f.map)(l,(function(e){var t=e.attributes.pollId;return Q()({path:"/crowdsignal-forms/v1/polls/".concat(t,"?cached=1"),method:"GET"}).then((function(e){return s(t,it({},e,{viewResultsUrl:"https://app.crowdsignal.com/polls/".concat(e.id,"/results")}))}),(function(){return s(t,null)}))}))).finally((function(){return i(!1)}))):c(!0))}}))}}();var ft=function(e){return function(t){var n=t.attributes,r=t.setAttributes,o=t.addPollClientId,l=t.removePollClientId;return Object(C.useEffect)((function(){return("p2tenberg"in window||"p2editor"in window)&&function(){if(!bt){bt=!0;var e=null,t=function(){null!==e&&clearTimeout(e),e=setTimeout((function(){return n()}),1e3+1e3*Math.random())},n=function(){var e=Object(b.select)("crowdsignal-forms/polls"),n=e.getPollClientIds,r=e.getPollDataByClientId,o=e.shouldTryFetchingPollData,a=e.isFetchingPollData,l=Object(f.filter)(n(),(function(e){return null===r(e)}));if(l.length<1)return t();var c=Object(b.dispatch)("crowdsignal-forms/polls"),s=c.setTryFetchPollData,i=c.setPollApiDataForClientId,u=c.setIsFetchingPollData;return o()?a()||(u(!0),Promise.all(Object(f.map)(l,(function(e){return Q()({path:"/crowdsignal-forms/v1/polls/".concat(e,"?cached=1"),method:"GET"}).then((function(t){return i(e,it({},t,{viewResultsUrl:"https://app.crowdsignal.com/polls/".concat(t.id,"/results")}))}),(function(){return i(e,null)}))}))).finally((function(){return u(!1)}))):s(!0),t()};n()}}(),n.pollId&&o(n.pollId),function(){n.pollId&&l(n.pollId)}}),[]),function(e,t,n,r){Object(C.useEffect)((function(){if(!Object(f.isEmpty)(t))if(window.csPolls||(window.csPolls={}),window.csPolls[t])if(window.csPolls[t].indexOf(e)>-1);else{var o=Object(f.map)(n,(function(e){return Object(f.omit)(e,["answerId"])}));r({pollId:null,answers:o})}else window.csPolls[t]=[e]}),[t])}(t.clientId,n.pollId,n.answers,r),Object(a.createElement)(e,t)}},mt=function(e){return Object(k.compose)([Object(b.withSelect)((function(e,t){var n=e("crowdsignal-forms/polls"),r=n.getPollDataByClientId,o=n.shouldTryFetchingPollData,a=n.isFetchingPollData,l=t.attributes;return{pollDataFromApi:l.pollId?r(l.pollId):null,getPollDataByClientId:r,shouldTryFetchingPollData:o,isFetchingPollData:a}})),Object(b.withDispatch)((function(e){var t=e("crowdsignal-forms/polls");return{setTryFetchPollData:t.setTryFetchPollData,setPollApiDataForClientId:t.setPollApiDataForClientId,setIsFetchingPollData:t.setIsFetchingPollData,addPollClientId:t.addPollClientId,removePollClientId:t.removePollClientId}})),ft])(e)},pt=function(e){var t=e.icon,n=e.children,r=e.componentActions,o=void 0===r?[]:r,l=Ne()(e,["icon","children","componentActions"]);return Object(a.createElement)(y.Notice,h()({className:"crowdsignal-forms__editor-notice"},l),t&&Object(a.createElement)("div",{className:"crowdsignal-forms__editor-notice-icon"},Object(a.createElement)(y.Icon,{icon:t})),Object(a.createElement)("div",{className:"crowdsignal-forms__editor-notice-text"},n),o.map((function(e){return e})))},gt=function(){return Object(a.createElement)(pt,{icon:"warning",status:"warn",isDismissible:!1,actions:[{label:Object(l.__)("Please upgrade","crowdsignal-forms"),url:"https://crowdsignal.com/pricing",className:"is-secondary",noDefaultClasses:!0}]},Object(l.__)("Your free Crowdsignal account has ","crowdsignal-forms"),Object(a.createElement)(y.ExternalLink,{href:"https://crowdsignal.com/support/what-is-a-signal/"},Object(l.__)("exceeded 2500 signals.","crowdsignal-forms")))};function Ot(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var wt=Object(k.compose)([Ie,mt,function(e){return function(t){var n=t.attributes,r=t.setAttributes;return Object(C.useEffect)((function(){if(!n.pollId){var e=at();r({pollId:e})}if(Object(f.some)(n.answers,(function(e){return!e.answerId&&e.text}))){var t=Object(f.map)(n.answers,(function(e){return e.answerId||!e.text?e:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ot(Object(n),!0).forEach((function(t){d()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ot(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{answerId:at()})}));r({answers:t})}})),Object(a.createElement)(e,t)}}])((function(e){var t=e.attributes,n=e.className,r=e.fallbackStyles,o=e.isSelected,s=e.setAttributes,i=e.renderStyleProbe,u=e.pollDataFromApi,d=Object(C.useState)(!0),b=_()(d,2),m=b[0],p=b[1],g=Object(C.useState)(""),O=_()(g,2),w=O[0],j=O[1],v=!Object(f.isEmpty)(u),k=u?u.viewResultsUrl:"",S=u?u.id:null,T={};u&&Object(f.map)(u.answers,(function(e){T[e.client_id]=e.id}));var L=o&&"full"!==t.align,P="full"!==t.align?"".concat(t.width,"%"):"auto",R=ze(t.pollStatus,t.closedAfterDateTime),I=t.note||o&&m,A=R&&fe.SHOW_RESULTS===t.closedPollState,D=R&&fe.HIDDEN===t.closedPollState,B=he(),F=Object(f.get)(B,"capabilities").includes("hide-branding");Object(C.useEffect)((function(){return p(!v)}),[o]),Object(C.useEffect)((function(){o&&qe(!t.isMultipleChoice)}),[t.isMultipleChoice,o]);var M=o&&v&&!m,H=Ze(t,n);t.fontFamily&&function(e){if(!Object(f.isEmpty)(e)&&ie.THEME_DEFAULT!==e&&-1!==ue.indexOf(e)){var t="https://fonts.googleapis.com/css2?family=".concat(e,":wght@400;600;700&display=swap");0===Object(f.filter)(Array.from(document.head.childNodes),(function(e){return"link"===e.nodeName.toLowerCase()&&e.href===t})).length&&document.head.appendChild(Object(f.tap)(document.createElement("link"),(function(e){e.type="text/css",e.rel="stylesheet",e.href=t})))}}(t.fontFamily);var V=Object(f.get)(B,["signalCount","shouldDisplay"]),U=V&&Object(f.get)(B,["signalCount","count"])>=Object(f.get)(B,["signalCount","userLimit"]);return Object(a.createElement)(ct,{blockIcon:Object(a.createElement)(c,null),blockName:Object(l.__)("Crowdsignal Poll","crowdsignal-forms")},Object(a.createElement)(Je,e),Object(a.createElement)(Ke,h()({},e,{viewResultsUrl:k,shouldPromote:V,signalWarning:U})),U&&Object(a.createElement)(gt,null),Object(a.createElement)(y.ResizableBox,{className:"crowdsignal-forms-poll__resize-wrapper",size:{height:"auto",width:P},minWidth:"25%",maxWidth:"100%",enable:{left:!0,right:!0},onResizeStop:function(e,t,n){"right"!==t&&"left"!==t||s({width:Object(f.round)(n.offsetWidth/n.parentNode.offsetWidth*100)})},showHandle:L,resizeRatio:2},Object(a.createElement)("div",{className:We(t,n,{"is-selected-in-editor":o,"is-closed":R,"is-hidden":D},"crowdsignal-forms-poll"),style:He(t,r)},M&&Object(a.createElement)(lt,{onEditClick:function(){p(!0)}}),w&&Object(a.createElement)(Xe,null,w),Object(a.createElement)("div",{className:"crowdsignal-forms-poll__content"},m?Object(a.createElement)(E.RichText,{tagName:"h3",className:"crowdsignal-forms-poll__question",placeholder:Object(l.__)("Enter your question","crowdsignal-forms"),onChange:function(e){return s({question:e})},value:t.question,allowedFormats:[]}):Object(a.createElement)(E.RichText.Content,{tagName:"h3",className:"crowdsignal-forms-poll__question",placeholder:Object(l.__)("Enter your question","crowdsignal-forms"),value:Object(x.decodeEntities)(t.question)}),I&&(m?Object(a.createElement)(E.RichText,{tagName:"p",className:"crowdsignal-forms-poll__note",placeholder:Object(l.__)("Add a note (optional)","crowdsignal-forms"),onChange:function(e){return s({note:e})},value:t.note,allowedFormats:[]}):Object(a.createElement)(E.RichText.Content,{tagName:"div",className:"crowdsignal-forms-poll__note",placeholder:Object(l.__)("Add a note (optional)","crowdsignal-forms"),value:Object(x.decodeEntities)(t.note)})),!A&&Object(a.createElement)(Fe,h()({},e,{setAttributes:s,disabled:!m,answerStyle:H,buttonAlignment:t.buttonAlignment})),A&&Object(a.createElement)(Se,{answers:ye(Object(f.filter)(t.answers,(function(e){return!xe(e)})),T),pollIdFromApi:S,hideBranding:F,setErrorMessage:j}),!F&&Object(a.createElement)(ve,{editing:!0})),R&&Object(a.createElement)(N,{isPollHidden:D,isPollClosed:R}),i())))})),ht={pollId:{type:"string",default:null},isMultipleChoice:{type:"boolean",default:!1},title:{type:"string",default:null},question:{type:"string",default:""},note:{type:"string",default:""},answers:{type:"array",default:[{},{},{}],items:{type:"object",properties:{answerId:{type:"string",default:null},text:{type:"string",default:""}}}},submitButtonLabel:{type:"string",default:Object(l.__)("Submit","crowdsignal-forms")},submitButtonTextColor:{type:"string"},submitButtonBackgroundColor:{type:"string"},confirmMessageType:{type:"string",default:se.RESULTS},customConfirmMessage:{type:"string"},redirectAddress:{type:"string"},textColor:{type:"string"},backgroundColor:{type:"string"},borderColor:{type:"string"},borderWidth:{type:"number",default:2},borderRadius:{type:"number",default:0},hasBoxShadow:{type:"boolean",default:!1},fontFamily:{type:"string",default:ie.THEME_DEFAULT},hasOneResponsePerComputer:{type:"boolean",default:!1},randomizeAnswers:{type:"boolean",default:!1},align:{type:"string"},width:{type:"number",default:100},pollStatus:{type:"string",default:be.OPEN},closedPollState:{type:"string",default:fe.SHOW_RESULTS},closedAfterDateTime:{type:"string",default:null},hideBranding:{type:"boolean",default:!1},buttonAlignment:{type:"string",default:ge.LIST}},jt={title:Object(l.__)("Poll","crowdsignal-forms"),description:Object(l.__)("Create polls and get your audience’s opinion — powered by Crowdsignal.","crowdsignal-forms"),category:"crowdsignal-forms",keywords:[Object(l.__)("ask","crowdsignal-forms"),"crowdsignal",Object(l.__)("feedback","crowdsignal-forms"),Object(l.__)("form","crowdsignal-forms"),Object(l.__)("opinion","crowdsignal-forms"),Object(l.__)("poll","crowdsignal-forms"),Object(l.__)("pop","crowdsignal-forms"),Object(l.__)("question","crowdsignal-forms"),Object(l.__)("quiz","crowdsignal-forms"),Object(l.__)("research","crowdsignal-forms"),Object(l.__)("survey","crowdsignal-forms"),Object(l.__)("vote","crowdsignal-forms")],icon:Object(a.createElement)(c,null),edit:wt,attributes:ht,supports:{align:["center","wide","full"]},getEditWrapperProps:function(e){return{"data-align":e.align}},example:{attributes:{question:Object(l.__)("How did you hear about us?","crowdsignal-forms"),answers:[{text:Object(l.__)("Search","crowdsignal-forms")},{text:Object(l.__)("Friend","crowdsignal-forms")},{text:Object(l.__)("Email","crowdsignal-forms")}]}},styles:[{name:"default",label:Object(l.__)("Default","crowdsignal-forms"),isDefault:!0}]},_t=function(){return Object(a.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)("mask",{id:"maskVote","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"3",y:"3",width:"18",height:"18"},Object(a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.5999 9.525H13.3942L14.1779 5.75475L14.2027 5.49075C14.2027 5.1525 14.0624 4.839 13.8397 4.61625L12.9652 3.75L7.53666 9.18675C7.23142 9.48374 7.04992 9.89621 7.04991 10.3499H3.75V18.6824H7.05V18.6178C7.05963 19.5172 7.79834 20.25 8.69991 20.25H16.1249C16.8097 20.25 17.3954 19.8375 17.6429 19.2435L20.1344 13.4273C20.2087 13.2375 20.2499 13.0395 20.2499 12.825V11.175C20.2499 10.2675 19.5074 9.525 18.5999 9.525ZM7.05 18.6178V10.3499H7.04991C7.04991 10.35 7.04991 10.35 7.04991 10.35V18.6C7.04991 18.6059 7.04994 18.6119 7.05 18.6178ZM18.5999 12.825L16.1249 18.6H8.69986V10.35L12.2804 6.76952L11.3646 11.175H18.5999V12.825Z",fill:"white"})),Object(a.createElement)("g",{mask:"url(#maskVote)"},Object(a.createElement)("rect",{x:"1.00024",y:"1.25",width:"22",height:"22"})))},Ct=Object.freeze({OPEN:"open",CLOSED:"closed",CLOSED_AFTER:"closed-after"}),vt=(Object.freeze({CONNECTED:"connected",NOT_CONNECTED:"not-connected",NOT_VERIFIED:"not-verified"}),[{title:Object(l.__)("Small","crowdsignal-forms"),size:"small"},{title:Object(l.__)("Medium","crowdsignal-forms"),size:"medium"},{title:Object(l.__)("Large","crowdsignal-forms"),size:"large"}]),Et={position:"bottom right",isAlternate:!0,className:"crowdsignal-forms-vote__size-dropdown"},yt=function(e){var t=e.attributes,n=e.setAttributes,r=e.viewResultsUrl,o=e.signalWarning,c=e.shouldPromote,s=""!==r;return Object(a.createElement)(E.InspectorControls,null,Object(a.createElement)(y.PanelBody,{title:Object(l.__)("Results","crowdsignal-forms"),initialOpen:!0},Object(a.createElement)("p",null,s?Object(l.__)("Manage results on ","crowdsignal-forms"):Object(l.__)("Publish this post to enable results on ","crowdsignal-forms"),Object(a.createElement)(y.ExternalLink,{href:"https://www.crowdsignal.com"},"crowdsignal.com")),Object(a.createElement)("p",null,Object(a.createElement)(y.Button,{href:r,isSecondary:!0,target:"_blank",disabled:!s},Object(l.__)("View results","crowdsignal-forms"))),Object(a.createElement)(y.TextControl,{value:t.title,label:Object(l.__)("Title of the vote block","crowdsignal-forms"),onChange:function(e){return n({title:e})}}),c&&Object(a.createElement)(Ge,{signalWarning:o})),Object(a.createElement)(y.PanelBody,{title:Object(l.__)("Status","crowdsignal-forms")},Object(a.createElement)(y.SelectControl,{value:t.pollStatus,label:Object(l.__)("Currently","crowdsignal-forms"),options:[{label:Object(l.__)("Open","crowdsignal-forms"),value:Ct.OPEN},{label:Object(l.__)("Closed after","crowdsignal-forms"),value:Ct.CLOSED_AFTER},{label:Object(l.__)("Closed","crowdsignal-forms"),value:Ct.CLOSED}],onChange:function(e){Object(f.includes)(Ct,e)&&n({closedAfterDateTime:e===Ct.CLOSED_AFTER?new Date((new Date).getTime()+864e5).toISOString():null,pollStatus:e})}}),Ct.CLOSED_AFTER===t.pollStatus&&Object(a.createElement)(y.TimePicker,{currentTime:t.closedAfterDateTime,label:Object(l.__)("Close vote block on","crowdsignal-forms"),onChange:function(e){var t=new Date(e);n({closedAfterDateTime:t.toISOString()})},is12Hour:!0})))},xt=function(){return Object(a.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.1894 5.75L13.6668 5.75L13.6668 4.25H19.0002H19.7502L19.7502 5V10.3333H18.2502V6.81054L6.81072 18.25L10.3333 18.25V19.75L5 19.75H4.25V19V13.6666L5.75 13.6666L5.75 17.1894L17.1894 5.75Z"}))},kt=function(){return Object(a.createElement)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)("line",{x1:"8",y1:"8.5",x2:"24",y2:"8.5",stroke:"currentColor"}),Object(a.createElement)("line",{x1:"8",y1:"15",x2:"24",y2:"15",stroke:"currentColor",strokeWidth:"2"}),Object(a.createElement)("line",{x1:"8",y1:"22.5",x2:"24",y2:"22.5",stroke:"currentColor",strokeWidth:"3"}))},St=function(){return Object(a.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)("path",{d:"M12.0078 18.2266C14.7656 18.2266 16.4062 15.9531 16.4062 12.3438C16.4062 8.73438 14.75 6.5 12.0078 6.5C9.25781 6.5 7.59375 8.75 7.59375 12.3516C7.59375 15.9688 9.24219 18.2266 12.0078 18.2266ZM12.0078 16.5781C10.5078 16.5781 9.625 15 9.625 12.3438C9.625 9.73438 10.5234 8.14844 12.0078 8.14844C13.4844 8.14844 14.3672 9.71875 14.3672 12.3516C14.3672 15.0078 13.5 16.5781 12.0078 16.5781Z"}))};function Tt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Nt=function(e){var t=e.attributes,n=e.setAttributes,r=Object(f.get)(t,"size","medium"),o=vt,c=Object(C.useState)(!1),s=_()(c,2),i=s[0],u=s[1],b=function(){return u(!i)},m=t.hideResults?Object(l.__)("Show vote counters","crowdsignal-forms"):Object(l.__)("Hide vote counters","crowdsignal-forms");return Object(a.createElement)(E.BlockControls,null,Object(a.createElement)(y.ToolbarGroup,{isCollapsed:!0,icon:xt,label:Object(l.__)("Change block size","crowdsignal-forms"),popoverProps:Et,controls:o.map((function(e){var t=e.size;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tt(Object(n),!0).forEach((function(t){d()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{isActive:r===t,role:"menuitemradio",onClick:function(){return n({size:t})}})}))}),Object(a.createElement)(y.Toolbar,{controls:[{icon:kt,onClick:b},{icon:St,label:m,onClick:function(){return n({hideResults:!t.hideResults})},isActive:!t.hideResults,isPressed:!t.hideResults}]}),i&&Object(a.createElement)(y.Popover,{className:"crowdsignal-forms__border-popover",onFocusOutside:b},Object(a.createElement)("div",{className:"crowdsignal-forms__row"},Object(a.createElement)(y.TextControl,{label:Object(l.__)("Border thickness","crowdsignal-forms"),type:"number",className:"crowdsignal-forms__small-text-input",onChange:function(e){n({borderWidth:parseInt(e,10)||0})},value:t.borderWidth||0}),Object(a.createElement)(y.TextControl,{label:Object(l.__)("Corner radius","crowdsignal-forms"),type:"number",className:"crowdsignal-forms__small-text-input",onChange:function(e){n({borderRadius:parseInt(e,10)||0})},value:t.borderRadius||0}))))},Lt=function(e){return function(t){return function(n){var r=n.attributes,o=n.setAttributes;return Object(C.useEffect)((function(){Object(f.forEach)(e,(function(e){r[e]||o(d()({},e,at()))}))}),[]),Object(a.createElement)(t,n)}}},Pt=function(e,t,n,r){return Object(C.useEffect)((function(){Object(f.isEmpty)(window.csBlockTypeCount)&&(window.csBlockTypeCount={}),Object(f.isNil)(window.csBlockTypeCount[e])&&(window.csBlockTypeCount[e]=0),window.csBlockTypeCount[e]++,null===n.title&&(1===window.csBlockTypeCount[e]?r({title:t}):r({title:"".concat(t," ").concat(window.csBlockTypeCount[e])}))}),[])},Rt=Object(k.compose)([mt,Lt(["pollId"])])((function(e){var t=e.attributes,n=e.setAttributes,r=e.className,o=e.pollDataFromApi;Pt(e.name,Object(l.__)("Untitled Vote","crowdsignal-forms"),t,n);var c=o?o.viewResultsUrl:"",s=ze(t.pollStatus,t.closedAfterDateTime),i=T()(r,"crowdsignal-forms-vote","size-".concat(t.size),{"no-results":t.hideResults,"is-closed":s}),u=function(e){return Object(f.mapKeys)({borderRadius:"".concat(e.borderRadius,"px"),borderWidth:"".concat(e.borderWidth,"px")},(function(e,t){return"--crowdsignal-forms-vote-".concat(Object(f.kebabCase)(t))}))}(t),d=he(),b=Object(f.get)(d,["signalCount","shouldDisplay"]),m=b&&Object(f.get)(d,["signalCount","count"])>=Object(f.get)(d,["signalCount","userLimit"]);return Object(a.createElement)(ct,{blockIcon:null,blockName:Object(l.__)("Crowdsignal Vote","crowdsignal-forms")},Object(a.createElement)(yt,h()({},e,{shouldPromote:b,signalWarning:m,viewResultsUrl:c})),Object(a.createElement)(Nt,e),Object(a.createElement)("div",{className:i,style:u},Object(a.createElement)("div",{className:"crowdsignal-forms-vote__items"},Object(a.createElement)(E.InnerBlocks,{template:[["crowdsignal-forms/vote-item",{type:"up"}],["crowdsignal-forms/vote-item",{type:"down"}]],templateInsertUpdatesSelection:!1,templateLock:"insert",allowedBlocks:["crowdsignal-forms/vote-item"],orientation:"horizontal",__experimentalMoverDirection:"horizontal"}))))})),It={pollId:{type:"string",default:null},hideBranding:{type:"boolean",default:!1},title:{type:"string",default:null},pollStatus:{type:"string",default:Ct.OPEN},closedAfterDateTime:{type:"string",default:null},size:{type:"string",default:"medium"},borderWidth:{type:"number",default:1},borderRadius:{type:"number",default:5},hideResults:{type:"boolean",default:!1}},At={title:Object(l.__)("Vote","crowdsignal-forms"),description:Object(l.__)("Allow your audience to rate your work or express their opinion — powered by Crowdsignal.","crowdsignal-forms"),category:"crowdsignal-forms",keywords:[Object(l.__)("ballot","crowdsignal-forms"),Object(l.__)("button","crowdsignal-forms"),Object(l.__)("count","crowdsignal-forms"),"crowdsignal",Object(l.__)("deciding","crowdsignal-forms"),Object(l.__)("decision","crowdsignal-forms"),Object(l.__)("elect","crowdsignal-forms"),Object(l.__)("election","crowdsignal-forms"),Object(l.__)("feedback","crowdsignal-forms"),Object(l.__)("form","crowdsignal-forms"),Object(l.__)("like","crowdsignal-forms"),Object(l.__)("nero","crowdsignal-forms"),Object(l.__)("opinion","crowdsignal-forms"),Object(l.__)("poll","crowdsignal-forms"),Object(l.__)("polling","crowdsignal-forms"),Object(l.__)("rate","crowdsignal-forms"),Object(l.__)("rating","crowdsignal-forms"),Object(l.__)("research","crowdsignal-forms"),Object(l.__)("survey","crowdsignal-forms"),Object(l.__)("thumb down","crowdsignal-forms"),Object(l.__)("thumb up","crowdsignal-forms"),Object(l.__)("thumbs","crowdsignal-forms"),Object(l.__)("vote","crowdsignal-forms"),Object(l.__)("voting","crowdsignal-forms")],icon:Object(a.createElement)(_t,null),edit:Rt,save:function(){return Object(a.createElement)(E.InnerBlocks.Content,null)},attributes:It,example:{attributes:{className:"crowdsignal-forms-vote__example",size:"large"}}},Dt=function(e){var t=e.attributes,n=e.setAttributes;return Object(a.createElement)(E.InspectorControls,null,Object(a.createElement)(E.PanelColorSettings,{title:Object(l.__)("Styling","crowdsignal-forms"),initialOpen:!0,colorSettings:[{value:t.textColor,onChange:function(e){return n({textColor:e})},label:Object(l.__)("Text color","crowdsignal-forms")},{value:t.backgroundColor,onChange:function(e){return n({backgroundColor:e})},label:Object(l.__)("Background color","crowdsignal-forms")},{value:t.borderColor,onChange:function(e){return n({borderColor:e})},label:Object(l.__)("Border color","crowdsignal-forms")}]}))};function Bt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Ft(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var Mt=n(22),Ht=n.n(Mt),Vt=!1,Ut=v.a.createContext(null),Wt="entering",zt="entered",Zt=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,a=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(o="exited",r.appearStatus=Wt):o=zt:o=t.unmountOnExit||t.mountOnEnter?"unmounted":"exited",r.state={status:o},r.nextCallback=null,r}Bt(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:"exited"}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Wt&&n!==zt&&(t=Wt):n!==Wt&&n!==zt||(t="exiting")}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===Wt?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[Ht.a.findDOMNode(this),r],a=o[0],l=o[1],c=this.getTimeouts(),s=r?c.appear:c.enter;!e&&!n||Vt?this.safeSetState({status:zt},(function(){t.props.onEntered(a)})):(this.props.onEnter(a,l),this.safeSetState({status:Wt},(function(){t.props.onEntering(a,l),t.onTransitionEnd(s,(function(){t.safeSetState({status:zt},(function(){t.props.onEntered(a,l)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Ht.a.findDOMNode(this);t&&!Vt?(this.props.onExit(r),this.safeSetState({status:"exiting"},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:"exited"},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:"exited"},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Ht.a.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=o[0],l=o[1];this.props.addEndListener(a,l)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if("unmounted"===e)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,Ft(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return v.a.createElement(Ut.Provider,{value:null},"function"==typeof n?n(e,r):v.a.cloneElement(v.a.Children.only(n),r))},t}(v.a.Component);function qt(){}Zt.contextType=Ut,Zt.propTypes={},Zt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:qt,onEntering:qt,onEntered:qt,onExit:qt,onExiting:qt,onExited:qt},Zt.UNMOUNTED="unmounted",Zt.EXITED="exited",Zt.ENTERING=Wt,Zt.ENTERED=zt,Zt.EXITING="exiting";var Gt,Kt,Yt=Zt;var Qt="out-in",Jt="in-out",Xt=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},$t=((Gt={})[Qt]=function(e){var t=e.current,n=e.changeState;return v.a.cloneElement(t,{in:!1,onExited:Xt(t,"onExited",(function(){n(Wt,null)}))})},Gt[Jt]=function(e){var t=e.current,n=e.changeState,r=e.children;return[t,v.a.cloneElement(r,{in:!0,onEntered:Xt(r,"onEntered",(function(){n(Wt)}))})]},Gt),en=((Kt={})[Qt]=function(e){var t=e.children,n=e.changeState;return v.a.cloneElement(t,{in:!0,onEntered:Xt(t,"onEntered",(function(){n(zt,v.a.cloneElement(t,{in:!0}))}))})},Kt[Jt]=function(e){var t=e.current,n=e.children,r=e.changeState;return[v.a.cloneElement(t,{in:!1,onExited:Xt(t,"onExited",(function(){r(zt,v.a.cloneElement(n,{in:!0}))}))}),v.a.cloneElement(n,{in:!0})]},Kt),tn=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={status:zt,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}Bt(t,e);var n=t.prototype;return n.componentDidMount=function(){this.appeared=!0},t.getDerivedStateFromProps=function(e,t){return null==e.children?{current:null}:t.status===Wt&&e.mode===Jt?{status:Wt}:!t.current||(n=t.current,r=e.children,n===r||v.a.isValidElement(n)&&v.a.isValidElement(r)&&null!=n.key&&n.key===r.key)?{current:v.a.cloneElement(e.children,{in:!0})}:{status:"exiting"};var n,r},n.render=function(){var e,t=this.props,n=t.children,r=t.mode,o=this.state,a=o.status,l=o.current,c={children:n,current:l,changeState:this.changeState,status:a};switch(a){case Wt:e=en[r](c);break;case"exiting":e=$t[r](c);break;case zt:e=l}return v.a.createElement(Ut.Provider,{value:{isMounting:!this.appeared}},e)},t}(v.a.Component);tn.propTypes={},tn.defaultProps={mode:Qt};var nn=tn;function rn(){return(rn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function on(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var an=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=on(n.className,r):n.setAttribute("class",on(n.className&&n.className.baseVal||"",r)));var n,r}))},ln=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),o=r[0],a=r[1];t.removeClasses(o,"exit"),t.addClass(o,a?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),o=r[0],a=r[1]?"appear":"enter";t.addClass(o,a,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),o=r[0],a=r[1]?"appear":"enter";t.removeClasses(o,a),t.addClass(o,a,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}Bt(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(r+=" "+o),"active"===n&&e&&e.scrollTop,r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))}(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,a=n.done;this.appliedClasses[t]={},r&&an(e,r),o&&an(e,o),a&&an(e,a)},n.render=function(){var e=this.props,t=(e.classNames,Ft(e,["classNames"]));return v.a.createElement(Yt,rn({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(v.a.Component);ln.defaultProps={classNames:""},ln.propTypes={};var cn=ln,sn=function(e){var t=e.className,n=e.fillColor,r=void 0===n?"black":n;return Object(a.createElement)("svg",{className:t,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)("g",{clipPath:"url(#clipThumbsUp)"},Object(a.createElement)("mask",{id:"maskThumbsUp","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"2",y:"-1",width:"20",height:"20"},Object(a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.35 6.24998H13.5658L14.4366 2.06081L14.4641 1.76748C14.4641 1.39165 14.3083 1.04331 14.0608 0.795813L13.0891 -0.166687L7.05748 5.87415C6.71831 6.20415 6.51664 6.66248 6.51664 7.16665L2.84998 7.16665V16.425H6.51664V16.3333C6.51664 17.3416 7.34164 18.1666 8.34998 18.1666H16.6C17.3608 18.1666 18.0116 17.7083 18.2866 17.0483L21.055 10.5858C21.1375 10.375 21.1833 10.155 21.1833 9.91665V8.08331C21.1833 7.07498 20.3583 6.24998 19.35 6.24998ZM19.35 9.91665L16.6 16.3333H8.34998V7.16665L12.3283 3.18831L11.3108 8.08331H19.35V9.91665Z",fill:"white"})),Object(a.createElement)("g",{mask:"url(#maskThumbsUp)"},Object(a.createElement)("rect",{x:"0.999878",y:"-3.05176e-05",width:"22",height:"22",fill:r}))),Object(a.createElement)("defs",null,Object(a.createElement)("clipPath",{id:"clipThumbsUp"},Object(a.createElement)("rect",{width:"24",height:"24",fill:"white"}))))},un=function(e){var t=e.className,n=e.fillColor,r=void 0===n?"black":n;return Object(a.createElement)("svg",{className:t,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)("g",{clipPath:"url(#clipThumbsDown)"},Object(a.createElement)("mask",{id:"maskThumbsDown","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"2",y:"5",width:"20",height:"20"},Object(a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.65002 17.75H10.4342L9.56336 21.9392L9.53586 22.2325C9.53586 22.6083 9.69169 22.9567 9.93919 23.2042L10.9109 24.1667L16.9425 18.1258C17.2817 17.7958 17.4834 17.3375 17.4834 16.8333L21.15 16.8333L21.15 7.57499H17.4834V7.66666C17.4834 6.65832 16.6584 5.83332 15.65 5.83332H7.40003C6.63919 5.83332 5.98836 6.29165 5.71336 6.95166L2.94503 13.4142C2.86253 13.625 2.81669 13.845 2.81669 14.0833V15.9167C2.81669 16.925 3.64169 17.75 4.65002 17.75ZM4.65002 14.0833L7.40002 7.66666H15.65L15.65 16.8333L11.6717 20.8117L12.6892 15.9167H4.65002V14.0833Z",fill:"white"})),Object(a.createElement)("g",{mask:"url(#maskThumbsDown)"},Object(a.createElement)("rect",{x:"23.0001",y:"24",width:"22",height:"22",transform:"rotate(-180 23.0001 24)",fill:r}))),Object(a.createElement)("defs",null,Object(a.createElement)("clipPath",{id:"clipThumbsDown"},Object(a.createElement)("rect",{width:"24",height:"24",fill:"white"}))))},dn=function(e){return e?e>=1e7?"".concat(Object(f.round)(e/1e6),"M"):e>=1e6?"".concat((e/1e6).toFixed(1),"M"):e>=1e4?"".concat(Object(f.round)(e/1e3),"K"):e>=1e3?"".concat((e/1e3).toFixed(1),"K"):e.toString():"0"},bn=function(e){var t=e.attributes,n=e.voteCount,r=e.apiAnswerId,o=e.onVote,l=e.disabled,c=e.isVotedOn,s=e.hideCount,i=e.fallbackStyles,u=e.isInEditor,d=t.className,b=t.type,m=Object(C.useState)(0),p=_()(m,2),g=p[0],O=p[1],w=function(){!l&&o&&(O(1),o(r))},h="up"===b?sn:un,j="is-type-".concat(b),v=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return T()({"has-bg-color":e.backgroundColor,"has-text-color":e.textColor,"has-border-color":e.borderColor},n)}(t,"crowdsignal-forms-vote-item",d,{"is-voted-on":c,"is-disabled":l,"is-in-editor":u},j),E=function(e,t){var n=Object(f.isEmpty)(e.textColor)?t.textColor:e.textColor,r=Object(f.isEmpty)(e.backgroundColor)?t.backgroundColor:e.backgroundColor;return Object(f.mapKeys)({borderColor:e.borderColor,bgColor:r,textColor:n,votedColor:t.accentColor},(function(e,t){return"--crowdsignal-forms-vote-".concat(Object(f.kebabCase)(t))}))}(t,i),y=n+g;return Object(a.createElement)("div",{className:v,onClick:w,onKeyPress:w,role:"button",style:E,tabIndex:0},Object(a.createElement)(h,{className:"crowdsignal-forms-vote-item__icon",fillColor:"currentColor"}),!s&&Object(a.createElement)(nn,{mode:"in-out"},Object(a.createElement)(cn,{key:g,classNames:"crowdsignal-forms-vote-item__count",timeout:300},Object(a.createElement)("div",{className:"crowdsignal-forms-vote-item__count"},dn(y)))))};bn.propTypes={apiAnswerId:P.a.number,className:P.a.string,disabled:P.a.bool,isVotedOn:P.a.bool,onVote:P.a.func,type:P.a.string.isRequired,voteCount:P.a.number.isRequired};var fn=bn,mn=Object(k.compose)([Ie,Lt(["answerId"])])((function(e){var t=e.attributes,n=e.className,r=e.fallbackStyles,o=e.renderStyleProbe;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(Dt,e),Object(a.createElement)(fn,{attributes:t,fallbackStyles:r,className:n,voteCount:0,isInEditor:!0,type:t.type}),o())})),pn={title:Object(l.__)("Vote Item","crowdsignal-forms"),description:Object(l.__)("Allow your audience to rate your work or express their opinion — powered by Crowdsignal.","crowdsignal-forms"),category:"crowdsignal-forms",parent:["crowdsignal-forms/vote"],icon:Object(a.createElement)(_t,null),edit:mn,attributes:{answerId:{type:"string",default:null},type:{type:"string"},textColor:{type:"string"},backgroundColor:{type:"string"},borderColor:{type:"string"}}},gn=function(e){var t=e.showBranding,n=e.referralCode;return Object(a.createElement)("div",{className:"crowdsignal-forms__branding"},t&&Object(a.createElement)("a",{className:"crowdsignal-forms__branding-link with-external-icon",href:"https://crowdsignal.com?ref=".concat(n),target:"blank",rel:"noopener noreferrer"},Object(l.__)("Powered by Crowdsignal","crowdsignal-forms")),!t&&Object(a.createElement)("span",{className:"crowdsignal-forms__branding-link"}," "))};gn.propTypes={showBranding:P.a.bool,referralCode:P.a.string.isRequired};var On=gn,wn=function(e){var t=e.active,n=e.className,r=T()("crowdsignal-forms-applause__animation",n,{"is-active":t});return Object(a.createElement)("svg",{className:r,width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)("g",{className:"crowdsignal-forms-applause__animation-right"},Object(a.createElement)("path",{className:"crowdsignal-forms-applause__animation-inner-fill",fillRule:"evenodd",clipRule:"evenodd",d:"M24.5287 18.5813L21.719 22.432C20.771 23.7312 18.9509 24.0157 17.6517 23.0676L9.50948 17.1265C8.6982 16.5345 8.52021 15.3957 9.11218 14.5844C9.18511 14.4845 9.26979 14.3931 9.35606 14.3119L9.19145 14.1918C8.38017 13.5998 8.20218 12.461 8.79415 11.6497C8.93571 11.4557 9.10825 11.2933 9.30319 11.1743C9.10822 10.6266 9.17716 10.0013 9.54606 9.49567C10.1123 8.71967 11.1811 8.52659 11.9839 9.03133C12.0392 8.91852 12.1004 8.81 12.1733 8.71006C12.7653 7.89878 13.9042 7.72079 14.7154 8.31276L20.3297 12.4094L20.611 10.4435C20.6949 9.84704 21.1499 9.35925 21.7392 9.23069L23.703 8.79878L25.0454 16.3547C25.1822 17.1302 24.992 17.9464 24.5287 18.5813Z"}),Object(a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24.5287 18.5813L21.719 22.432C20.771 23.7312 18.9509 24.0157 17.6517 23.0676L9.50948 17.1265C8.6982 16.5345 8.52021 15.3957 9.11218 14.5844C9.18511 14.4845 9.26979 14.3931 9.35606 14.3119L9.19145 14.1918C8.38017 13.5998 8.20218 12.461 8.79415 11.6497C8.93571 11.4557 9.10825 11.2933 9.30319 11.1743C9.10822 10.6266 9.17716 10.0013 9.54606 9.49567C10.1123 8.71967 11.1811 8.52659 11.9839 9.03133C12.0392 8.91852 12.1004 8.81 12.1733 8.71006C12.7653 7.89878 13.9042 7.72079 14.7154 8.31276L20.3297 12.4094L20.611 10.4435C20.6949 9.84704 21.1499 9.35925 21.7392 9.23069L23.703 8.79878L25.0454 16.3547C25.1822 17.1302 24.992 17.9464 24.5287 18.5813ZM23.6104 16.605L22.538 10.5434L22.0547 10.6502L21.4234 15.0093L13.8574 9.48855C13.8574 9.48855 13.4691 9.4034 13.349 9.56801C13.2288 9.73262 13.2638 9.95632 13.4284 10.0764L17.667 13.1693L16.8091 14.345L11.2301 10.2742C11.0655 10.1541 10.8418 10.189 10.7217 10.3536C10.6016 10.5182 10.6365 10.7419 10.8012 10.862L16.3802 14.9329L15.5222 16.1087L10.4782 12.4282C10.3136 12.3081 10.0899 12.343 9.96978 12.5076C9.84967 12.6722 9.88463 12.8959 10.0492 13.0161L15.0933 16.6966L14.2353 17.8723L10.7962 15.3629C10.6316 15.2428 10.4079 15.2777 10.2878 15.4423C10.1677 15.607 10.2027 15.8307 10.3673 15.9508L18.5094 21.8919C19.1561 22.3638 20.0713 22.2207 20.5431 21.5741L23.3571 17.7175C23.5888 17.4001 23.6766 16.9957 23.6104 16.605Z"})),Object(a.createElement)("g",{className:"crowdsignal-forms-applause__animation-left"},Object(a.createElement)("path",{className:"crowdsignal-forms-applause__animation-inner-fill",fillRule:"evenodd",clipRule:"evenodd",d:"M21.2292 18.7813L18.4195 22.632C17.4715 23.9312 15.6513 24.2157 14.3521 23.2676L6.20992 17.3265C5.39864 16.7345 5.22065 15.5957 5.81262 14.7844C5.88554 14.6845 5.97023 14.5931 6.0565 14.5119L5.89189 14.3918C5.08061 13.7998 4.90262 12.661 5.49459 11.8497C5.63615 11.6557 5.80869 11.4933 6.00363 11.3743C5.80866 10.8266 5.8776 10.2013 6.2465 9.69567C6.81274 8.91967 7.88153 8.72658 8.68439 9.23133C8.73968 9.11852 8.80084 9.01 8.87377 8.91006C9.46573 8.09878 10.6046 7.92079 11.4159 8.51276L17.0302 12.6094L17.3115 10.6435C17.3953 10.047 17.8504 9.55925 18.4397 9.43069L20.4034 8.99877L21.7458 16.5547C21.8826 17.3302 21.6925 18.1464 21.2292 18.7813Z"}),Object(a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.2292 18.7813L18.4195 22.632C17.4715 23.9312 15.6513 24.2157 14.3521 23.2676L6.20992 17.3265C5.39864 16.7345 5.22065 15.5957 5.81262 14.7844C5.88554 14.6845 5.97023 14.5931 6.0565 14.5119L5.89189 14.3918C5.08061 13.7998 4.90262 12.661 5.49459 11.8497C5.63615 11.6557 5.80869 11.4933 6.00363 11.3743C5.80866 10.8266 5.8776 10.2013 6.2465 9.69567C6.81274 8.91967 7.88153 8.72658 8.68439 9.23133C8.73968 9.11852 8.80084 9.01 8.87377 8.91006C9.46573 8.09878 10.6046 7.92079 11.4159 8.51276L17.0302 12.6094L17.3115 10.6435C17.3953 10.047 17.8504 9.55925 18.4397 9.43069L20.4034 8.99877L21.7458 16.5547C21.8826 17.3302 21.6925 18.1464 21.2292 18.7813ZM20.3108 16.805L19.2384 10.7434L18.7551 10.8502L18.1239 15.2093L10.5578 9.68854C10.5578 9.68854 10.1695 9.6034 10.0494 9.76801C9.92928 9.93261 9.96425 10.1563 10.1289 10.2764L14.3675 13.3692L13.5096 14.545L7.93056 10.4742C7.76595 10.354 7.54224 10.389 7.42213 10.5536C7.30202 10.7182 7.33699 10.9419 7.50159 11.062L13.0806 15.1329L12.2227 16.3087L7.17864 12.6282C7.01403 12.5081 6.79033 12.543 6.67022 12.7076C6.55011 12.8722 6.58507 13.0959 6.74968 13.216L11.7937 16.8965L10.9358 18.0723L7.49667 15.5629C7.33206 15.4428 7.10836 15.4777 6.98825 15.6423C6.86814 15.8069 6.9031 16.0307 7.06771 16.1508L15.2099 22.0919C15.8566 22.5638 16.7717 22.4207 17.2436 21.7741L20.0576 17.9175C20.2892 17.6001 20.3771 17.1957 20.3108 16.805Z"})),Object(a.createElement)("g",{className:"crowdsignal-forms-applause__animation-wave-small"},Object(a.createElement)("rect",{x:"15.4854",y:"4.42176",width:"1.5",height:"3",transform:"rotate(8 15.4854 4.42176)"}),Object(a.createElement)("rect",{x:"19.9369",y:"5.15548",width:"1.5",height:"3",transform:"rotate(43 19.9369 5.15548)"}),Object(a.createElement)("rect",{x:"11.1523",y:"4.78963",width:"1.5",height:"3",transform:"rotate(-27 11.1523 4.78963)"})),Object(a.createElement)("g",{className:"crowdsignal-forms-applause__animation-wave-large"},Object(a.createElement)("rect",{x:"23.453",y:"2.41095",width:"1.5",height:"3",transform:"rotate(38 23.453 2.41095)"}),Object(a.createElement)("rect",{x:"26.9413",y:"5.27211",width:"1.5",height:"3",transform:"rotate(73 26.9413 5.27211)"}),Object(a.createElement)("rect",{x:"19.5165",y:"0.562988",width:"1.5",height:"3",transform:"rotate(3 19.5165 0.562988)"}),Object(a.createElement)("rect",{width:"1.5",height:"3",transform:"matrix(-0.788011 0.615662 0.615662 0.788011 8.52597 2.41095)"}),Object(a.createElement)("rect",{width:"1.5",height:"3",transform:"matrix(-0.292372 0.956305 0.956305 0.292372 5.03775 5.27211)"}),Object(a.createElement)("rect",{width:"1.5",height:"3",transform:"matrix(-0.99863 0.052336 0.052336 0.99863 12.4625 0.562988)"})))},hn=function(e){var t=e.attributes,n=e.fallbackStyles,r=e.renderStyleProbe,o=t.apiPollData?t.apiPollData.id:null,l=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r="cs-poll-".concat(e),o=Object(C.useState)(!1),a=_()(o,2),l=a[0],c=a[1],s=Object(C.useState)(!1),i=_()(s,2),u=i[0],d=i[1],b=Object(C.useState)(""),f=_()(b,2),m=f[0],p=f[1];Object(C.useEffect)((function(){t&&void 0!==F.a.get(r)&&(d(!0),p(F.a.get(r)))}),[]);var g=function(){var o=D()(I.a.mark((function o(a){var l,s,i,u=arguments;return I.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return l=u.length>1&&void 0!==u[1]?u[1]:1,o.prev=1,c(!0),o.next=5,te(e);case 5:return s=o.sent,o.next=8,ne(s,e,a,l);case 8:d(!0),t&&(i=n?a.join(","):(new Date).getTime(),F.a.set(r,i,{sameSite:"Strict",expires:365}),p(i));case 10:return o.prev=10,c(!1),o.finish(10);case 13:case"end":return o.stop()}}),o,null,[[1,,10,13]])})));return function(e){return o.apply(this,arguments)}}();return{hasVoted:u,isVoting:l,vote:g,storedCookieValue:m}}(o,!0),c=l.hasVoted,s=l.vote,i=Object(C.useState)(0),u=_()(i,2),d=u[0],b=u[1],m=Object(C.useState)(0),p=_()(m,2),g=p[0],O=p[1],w=Object(C.useState)(null),h=_()(w,2),j=h[0],v=h[1],E=Object(C.useState)(!1),y=_()(E,2),x=y[0],k=y[1],S=Object(C.useState)(null),N=_()(S,2),L=N[0],P=N[1],R=Oe(o).results,A=ze(t.pollStatus,t.closedAfterDateTime),B=function(){if(null!==o&&!A){L&&clearTimeout(L),k(!0),P(setTimeout((function(){k(!1)}),200));var e=g+1;O(e),b(d+1);var n=t.apiPollData.answers[0].id;null!==j&&clearTimeout(j);var r=setTimeout((function(){s([n],e),v(null),O(0)}),1e3);v(r)}},M=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return T()({"has-bg-color":e.backgroundColor,"has-text-color":e.textColor,"has-border-color":e.borderColor},n)}(t,"crowdsignal-forms-applause",t.className,"size-".concat(t.size),{"is-closed":A}),H=function(e,t){var n=Object(f.isEmpty)(e.textColor)?t.textColor:e.textColor;return Object(f.mapKeys)({bgColor:e.backgroundColor||t.backgroundColor,textColor:n,hoverColor:t.accentColor,borderRadius:"".concat(e.borderRadius||0,"px"),borderWidth:"".concat(e.borderWidth||0,"px"),borderColor:e.borderColor},(function(e,t){return"--crowdsignal-forms-applause-".concat(Object(f.kebabCase)(t))}))}(t,n),V=(null!==R?Object(f.values)(R)[0]:0)+d;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)("div",{className:M,style:H,onClick:B,onKeyPress:B,role:"button",tabIndex:0},Object(a.createElement)(wn,{active:x}),Object(a.createElement)("p",{className:"crowdsignal-forms-applause__count"},dn(V)," Claps"),r()),Object(a.createElement)(On,{showBranding:c&&!t.hideBranding,referralCode:"cs-forms-applause"}))};hn.propTypes={className:P.a.string};var jn=Ie(hn),_n=Object.freeze({OPEN:"open",CLOSED:"closed",CLOSED_AFTER:"closed-after"}),Cn=[{title:Object(l.__)("Small","crowdsignal-forms"),size:"small"},{title:Object(l.__)("Medium","crowdsignal-forms"),size:"medium"},{title:Object(l.__)("Large","crowdsignal-forms"),size:"large"}],vn={position:"bottom right",isAlternate:!0,className:"crowdsignal-forms-vote__size-dropdown"};function En(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var yn=function(e){var t=e.attributes,n=e.setAttributes,r=Object(f.get)(t,"size","medium"),o=Cn,c=Object(C.useState)(!1),s=_()(c,2),i=s[0],u=s[1],b=function(){return u(!i)};return Object(a.createElement)(E.BlockControls,null,Object(a.createElement)(y.ToolbarGroup,{isCollapsed:!0,icon:xt,label:Object(l.__)("Change block size","crowdsignal-forms"),popoverProps:vn,controls:o.map((function(e){var t=e.size;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?En(Object(n),!0).forEach((function(t){d()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):En(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{isActive:r===t,role:"menuitemradio",onClick:function(){return n({size:t})}})}))}),Object(a.createElement)(y.Toolbar,{controls:[{icon:kt,onClick:b}]}),i&&Object(a.createElement)(y.Popover,{className:"crowdsignal-forms__border-popover",onFocusOutside:b},Object(a.createElement)("div",{className:"crowdsignal-forms__row"},Object(a.createElement)(y.TextControl,{label:Object(l.__)("Border thickness","crowdsignal-forms"),type:"number",className:"crowdsignal-forms__small-text-input",onChange:function(e){n({borderWidth:parseInt(e,10)||0})},value:t.borderWidth}),Object(a.createElement)(y.TextControl,{label:Object(l.__)("Corner radius","crowdsignal-forms"),type:"number",className:"crowdsignal-forms__small-text-input",onChange:function(e){n({borderRadius:parseInt(e,10)||0})},value:t.borderRadius}))))},xn=function(e){var t=e.attributes,n=e.setAttributes,r=e.viewResultsUrl,o=e.shouldPromote,c=e.signalWarning,s=""!==r;return Object(a.createElement)(E.InspectorControls,null,Object(a.createElement)(y.PanelBody,{title:Object(l.__)("Results","crowdsignal-forms"),initialOpen:!0},Object(a.createElement)("p",null,s?Object(l.__)("Manage results on ","crowdsignal-forms"):Object(l.__)("Publish this post to enable results on ","crowdsignal-forms"),Object(a.createElement)(y.ExternalLink,{href:"https://www.crowdsignal.com"},"crowdsignal.com")),Object(a.createElement)("p",null,Object(a.createElement)(y.Button,{href:r,isSecondary:!0,target:"_blank",disabled:!s},Object(l.__)("View results","crowdsignal-forms"))),Object(a.createElement)(y.TextControl,{value:t.title,label:Object(l.__)("Title of the applause block","crowdsignal-forms"),onChange:function(e){return n({title:e})}}),o&&Object(a.createElement)(Ge,{signalWarning:c})),Object(a.createElement)(y.PanelBody,{title:Object(l.__)("Status","crowdsignal-forms")},Object(a.createElement)(y.SelectControl,{value:t.pollStatus,label:Object(l.__)("Currently","crowdsignal-forms"),options:[{label:Object(l.__)("Open","crowdsignal-forms"),value:_n.OPEN},{label:Object(l.__)("Closed after","crowdsignal-forms"),value:_n.CLOSED_AFTER},{label:Object(l.__)("Closed","crowdsignal-forms"),value:_n.CLOSED}],onChange:function(e){Object(f.includes)(_n,e)&&n({closedAfterDateTime:e===_n.CLOSED_AFTER?new Date((new Date).getTime()+864e5).toISOString():null,pollStatus:e})}}),_n.CLOSED_AFTER===t.pollStatus&&Object(a.createElement)(y.TimePicker,{currentTime:t.closedAfterDateTime,label:Object(l.__)("Close applause block on","crowdsignal-forms"),onChange:function(e){var t=new Date(e);n({closedAfterDateTime:t.toISOString()})},is12Hour:!0})),Object(a.createElement)(E.PanelColorSettings,{title:Object(l.__)("Styling","crowdsignal-forms"),initialOpen:!0,colorSettings:[{value:t.textColor,onChange:function(e){return n({textColor:e})},label:Object(l.__)("Text color","crowdsignal-forms")},{value:t.backgroundColor,onChange:function(e){return n({backgroundColor:e})},label:Object(l.__)("Background color","crowdsignal-forms")},{value:t.borderColor,onChange:function(e){return n({borderColor:e})},label:Object(l.__)("Border color","crowdsignal-forms")}]}))},kn=Object(k.compose)([mt,Lt(["pollId","answerId"])])((function(e){var t=e.attributes,n=e.setAttributes,r=e.pollDataFromApi,o=r?r.viewResultsUrl:"";Pt(e.name,Object(l.__)("Untitled Applause","crowdsignal-forms"),t,n);var c=he(),s=Object(f.get)(c,["signalCount","shouldDisplay"]),i=s&&Object(f.get)(c,["signalCount","count"])>=Object(f.get)(c,["signalCount","userLimit"]);return Object(a.createElement)(ct,{blockIcon:null,blockName:Object(l.__)("Crowdsignal Applause","crowdsignal-forms")},Object(a.createElement)(xn,h()({},e,{shouldPromote:s,signalWarning:i,viewResultsUrl:o})),Object(a.createElement)(yn,e),Object(a.createElement)(jn,e))})),Sn={pollId:{type:"string",default:null},hideBranding:{type:"boolean",default:!1},title:{type:"string",default:null},answerId:{type:"string",default:null},size:{type:"string",default:"medium"},pollStatus:{type:"string",default:_n.OPEN},closedAfterDateTime:{type:"string",default:null},textColor:{type:"string"},backgroundColor:{type:"string"},borderColor:{type:"string"},borderWidth:{type:"number",default:0},borderRadius:{type:"number",default:0}},Tn={title:Object(l.__)("Applause","crowdsignal-forms"),description:Object(l.__)("Let your audience cheer with a big round of applause — powered by Crowdsignal.","crowdsignal-forms"),category:"crowdsignal-forms",keywords:["crowdsignal",Object(l.__)("applause","crowdsignal-forms"),Object(l.__)("cheer","crowdsignal-forms"),Object(l.__)("cheering","crowdsignal-forms"),Object(l.__)("clap","crowdsignal-forms"),Object(l.__)("feedback","crowdsignal-forms"),Object(l.__)("kudos","crowdsignal-forms"),Object(l.__)("like","crowdsignal-forms"),Object(l.__)("opinion","crowdsignal-forms"),Object(l.__)("praise","crowdsignal-forms"),Object(l.__)("rating","crowdsignal-forms"),Object(l.__)("upvote","crowdsignal-forms"),Object(l.__)("upvoting","crowdsignal-forms"),Object(l.__)("votes","crowdsignal-forms"),Object(l.__)("voting","crowdsignal-forms")],icon:Object(a.createElement)((function(){return Object(a.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)("g",{clipPath:"url(#clip0)"},Object(a.createElement)("rect",{width:"24",height:"24",fill:"white"}),Object(a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.5284 16.5813L18.7187 20.432C17.7707 21.7312 15.9506 22.0157 14.6513 21.0676L6.50915 15.1265C5.69788 14.5345 5.51988 13.3957 6.11185 12.5844C6.18478 12.4845 6.26946 12.3931 6.35573 12.3119L6.19112 12.1918C5.37984 11.5998 5.20185 10.461 5.79382 9.64968C5.93538 9.45568 6.10792 9.29329 6.30287 9.17428C6.1079 8.62662 6.17683 8.00125 6.54574 7.49567C7.11197 6.71967 8.18077 6.52659 8.98362 7.03133C9.03891 6.91852 9.10007 6.81 9.173 6.71006C9.76497 5.89878 10.9038 5.72079 11.7151 6.31276L17.3294 10.4094L17.6107 8.44349C17.6946 7.84704 18.1496 7.35925 18.7389 7.23069L20.7027 6.79878L22.045 14.3547C22.1819 15.1302 21.9917 15.9464 21.5284 16.5813ZM20.61 14.605L19.5377 8.54337L19.0543 8.65016L18.4231 13.0093L10.857 7.48855C10.857 7.48855 10.4687 7.4034 10.3486 7.56801C10.2285 7.73262 10.2635 7.95632 10.4281 8.07643L14.6667 11.1693L13.8088 12.345L8.22979 8.27416C8.06518 8.15405 7.84147 8.18902 7.72136 8.35362C7.60126 8.51823 7.63622 8.74194 7.80082 8.86204L13.3798 12.9329L12.5219 14.1087L7.47787 10.4282C7.31327 10.3081 7.08956 10.343 6.96945 10.5076C6.84934 10.6722 6.8843 10.8959 7.04891 11.0161L12.0929 14.6966L11.235 15.8723L7.7959 13.3629C7.6313 13.2428 7.40759 13.2777 7.28748 13.4423C7.16737 13.607 7.20233 13.8307 7.36694 13.9508L15.5091 19.8919C16.1558 20.3638 17.0709 20.2207 17.5428 19.5741L20.3568 15.7175C20.5884 15.4001 20.6763 14.9957 20.61 14.605Z"}),Object(a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.2289 16.7813L15.4192 20.632C14.4711 21.9312 12.651 22.2157 11.3518 21.2676L3.20959 15.3265C2.39831 14.7345 2.22032 13.5957 2.81229 12.7844C2.88522 12.6845 2.9699 12.5931 3.05617 12.5119L2.89156 12.3918C2.08028 11.7998 1.90229 10.661 2.49426 9.84968C2.63582 9.65567 2.80836 9.49329 3.0033 9.37428C2.80834 8.82662 2.87727 8.20125 3.24618 7.69567C3.81241 6.91967 4.88121 6.72658 5.68406 7.23133C5.73935 7.11852 5.80051 7.01 5.87344 6.91006C6.46541 6.09878 7.60427 5.92079 8.41555 6.51276L14.0298 10.6094L14.3111 8.64348C14.395 8.04703 14.85 7.55925 15.4393 7.43069L17.4031 6.99877L18.7455 14.5547C18.8823 15.3302 18.6921 16.1464 18.2289 16.7813Z",fill:"white"}),Object(a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.2289 16.7813L15.4192 20.632C14.4711 21.9312 12.651 22.2157 11.3518 21.2676L3.20959 15.3265C2.39831 14.7345 2.22032 13.5957 2.81229 12.7844C2.88522 12.6845 2.9699 12.5931 3.05617 12.5119L2.89156 12.3918C2.08028 11.7998 1.90229 10.661 2.49426 9.84968C2.63582 9.65567 2.80836 9.49329 3.0033 9.37428C2.80834 8.82662 2.87727 8.20125 3.24618 7.69567C3.81241 6.91967 4.88121 6.72658 5.68406 7.23133C5.73935 7.11852 5.80051 7.01 5.87344 6.91006C6.46541 6.09878 7.60427 5.92079 8.41555 6.51276L14.0298 10.6094L14.3111 8.64348C14.395 8.04703 14.85 7.55925 15.4393 7.43069L17.4031 6.99877L18.7455 14.5547C18.8823 15.3302 18.6921 16.1464 18.2289 16.7813ZM17.3105 14.805L16.2381 8.74337L15.7548 8.85016L15.1235 13.2093L7.55749 7.68854C7.55749 7.68854 7.16918 7.6034 7.04907 7.76801C6.92896 7.93261 6.96392 8.15632 7.12853 8.27643L11.3672 11.3692L10.5092 12.545L4.93023 8.47416C4.76562 8.35405 4.54191 8.38901 4.4218 8.55362C4.3017 8.71823 4.33666 8.94193 4.50126 9.06204L10.0803 13.1329L9.22235 14.3087L4.17831 10.6282C4.0137 10.5081 3.79 10.543 3.66989 10.7076C3.54978 10.8722 3.58474 11.0959 3.74935 11.216L8.79338 14.8965L7.93546 16.0723L4.49634 13.5629C4.33173 13.4428 4.10803 13.4777 3.98792 13.6423C3.86781 13.8069 3.90277 14.0307 4.06738 14.1508L12.2096 20.0919C12.8562 20.5638 13.7714 20.4207 14.2432 19.7741L17.0572 15.9175C17.2889 15.6001 17.3767 15.1957 17.3105 14.805Z"}),Object(a.createElement)("rect",{x:"12.4851",y:"1.42175",width:"1.5",height:"3",transform:"rotate(8 12.4851 1.42175)"}),Object(a.createElement)("rect",{x:"16.9365",y:"2.15547",width:"1.5",height:"3",transform:"rotate(43 16.9365 2.15547)"}),Object(a.createElement)("rect",{x:"8.15195",y:"1.78963",width:"1.5",height:"3",transform:"rotate(-27 8.15195 1.78963)"})),Object(a.createElement)("defs",null,Object(a.createElement)("clipPath",{id:"clip0"},Object(a.createElement)("rect",{width:"24",height:"24",fill:"white"}))))}),null),edit:kn,attributes:Sn,example:{attributes:{size:"large"}}},Nn="rating",Ln="feedback",Pn=Object.freeze({OPEN:"open",CLOSED:"closed",CLOSED_AFTER:"closed-after"}),Rn={backgroundColor:{type:"string"},buttonColor:{type:"string"},buttonTextColor:{type:"string"},feedbackPlaceholder:{type:"string",default:Object(l.__)("Please help us understand your rating","crowdsignal-forms")},feedbackQuestion:{type:"string",default:Object(l.__)("Thanks so much for your response! How could we do better?","crowdsignal-forms")},hideBranding:{type:"boolean",default:!1},highRatingLabel:{type:"string",default:Object(l.__)("Extremely likely","crowdsignal-forms")},lowRatingLabel:{type:"string",default:Object(l.__)("Not likely at all","crowdsignal-forms")},ratingQuestion:{type:"string",default:Object(l.__)("How likely is it that you would recommend this project to a friend or colleague?","crowdsignal-forms")},submitButtonLabel:{type:"string",default:Object(l.__)("Submit","crowdsignal-forms")},surveyId:{type:"number",default:null},textColor:{type:"string"},title:{type:"string",default:""},viewThreshold:{type:"string",default:2},status:{type:"string",default:Pn.OPEN},closedAfterDateTime:{type:"string",default:null},isExample:{type:"boolean",default:!1}},In=n(31),An=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object(C.useState)(!1),r=_()(n,2),o=r[0],a=r[1],l=Object(C.useRef)(0),c=Object(C.useCallback)(Object(f.debounce)((function(t,n){return e(t).catch(n)}),1500),[]),s=Object(C.useCallback)((function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;a(!1),c(t,(function(){e===l.current&&(n<3?s(e,n+1):a(!0))}))}),Object(f.values)(t));return Object(C.useEffect)((function(){0!=l.current++&&s(l.current)}),Object(f.values)(t)),{error:o,save:function(){return s(l.current)}}},Dn=function(e){return new Promise((function(t,n){var r=setTimeout((function(){return n(new Error("Request timed out"))}),1e4);e.then(t,n).finally((function(){return clearTimeout(r)}))}))},Bn=function(e){return Dn(Q()({path:Object(f.trimEnd)("/crowdsignal-forms/v1/nps/".concat(e.surveyId||""),"/"),method:"POST",data:e}))},Fn=function(e){var t=e.attributes,n=e.setAttributes,r=e.shouldPromote,o=e.signalWarning,c="https://app.crowdsignal.com/surveys/".concat(t.surveyId,"/report/overview"),s=function(e){return function(t){return n(d()({},e,t))}};return Object(a.createElement)(E.InspectorControls,null,Object(a.createElement)(y.PanelBody,{title:Object(l.__)("Results","crowdsignal-forms"),initialOpen:!0},Object(a.createElement)("p",null,t.surveyId?Object(l.__)("Manage results on ","crowdsignal-forms"):Object(l.__)("Save the block to track results on ","crowdsignal-forms"),Object(a.createElement)(y.ExternalLink,{href:"https://www.crowdsignal.com"},"crowdsignal.com")),Object(a.createElement)("p",null,Object(a.createElement)(y.Button,{isSecondary:!0,disabled:!t.surveyId,href:c,target:"blank"},Object(l.__)("View results","crowdsignal-forms"))),Object(a.createElement)(y.TextControl,{label:Object(l.__)("Title (optional)","crowdsignal-forms"),onChange:function(e){return n({title:e})},value:Object(x.decodeEntities)(t.title)}),r&&Object(a.createElement)(Ge,{signalWarning:o})),Object(a.createElement)(E.PanelColorSettings,{title:Object(l.__)("Block styling","crowdsignal-forms"),initialOpen:!1,colorSettings:[{label:Object(l.__)("Background color","crowdsignal-forms"),onChange:s("backgroundColor"),value:t.backgroundColor},{label:Object(l.__)("Text color","crowdsignal-forms"),onChange:s("textColor"),value:t.textColor},{label:Object(l.__)("Button color","crowdsignal-forms"),onChange:s("buttonColor"),value:t.buttonColor},{label:Object(l.__)("Button text color","crowdsignal-forms"),onChange:s("buttonTextColor"),value:t.buttonTextColor}]}),Object(a.createElement)(y.PanelBody,{title:Object(l.__)("Settings","crowdsignal-forms"),initialOpen:!1},Object(a.createElement)(y.SelectControl,{value:t.status,label:Object(l.__)("Survey Status","crowdsignal-forms"),options:[{label:Object(l.__)("Open","crowdsignal-forms"),value:Pn.OPEN},{label:Object(l.__)("Closed after","crowdsignal-forms"),value:Pn.CLOSED_AFTER},{label:Object(l.__)("Closed","crowdsignal-forms"),value:Pn.CLOSED}],onChange:function(e){return n({status:e})},help:Pn.CLOSED_AFTER===t.status&&null!==t.closedAfterDateTime&&(new Date).toISOString()>t.closedAfterDateTime?"Currently closed as date has passed":""}),Pn.CLOSED_AFTER===t.status&&Object(a.createElement)(y.DateTimePicker,{currentDate:t.closedAfterDateTime&&new Date(t.closedAfterDateTime)||new Date,label:Object(l.__)("Close on","crowdsignal-forms"),onChange:function(e){var t=new Date(e);n({closedAfterDateTime:t.toISOString()})},is12Hour:!0})))},Mn=function(e){var t=e.attributes,n=e.currentView,r=e.onViewChange,o=e.setAttributes,c=Object(C.useState)(!1),s=_()(c,2),i=s[0],u=s[1],d=function(e){return function(){return r(e)}};return Object(a.createElement)(E.BlockControls,null,Object(a.createElement)(y.ToolbarGroup,{label:Object(l.__)("Current view","crowdsignal-forms")},Object(a.createElement)(y.ToolbarButton,{className:"crowdsignal-forms-nps__toolbar-toggle",isActive:n===Nn,label:Object(l.__)("Rating","crowdsignal-forms"),onClick:d(Nn)},Object(l.__)("Rating","crowdsignal-forms")),Object(a.createElement)(y.ToolbarButton,{className:"crowdsignal-forms-nps__toolbar-toggle",isActive:n===Ln,label:Object(l.__)("Feedback","crowdsignal-forms"),onClick:d(Ln)},Object(l.__)("Feedback","crowdsignal-forms"))),Object(a.createElement)(y.ToolbarGroup,null,Object(a.createElement)(y.ToolbarButton,{className:"crowdsignal-forms-nps__toolbar-popover-button",icon:"visibility",label:Object(l.__)("Set view threshold","crowdsignal-forms"),onClick:function(){return u(!0)}},i&&Object(a.createElement)(y.Popover,{onClose:function(){return u(!1)}},Object(a.createElement)("div",{className:"crowdsignal-forms-nps__toolbar-popover"},Object(a.createElement)(y.TextControl,{label:Object(l.__)("Show this block after __ visits:","crowdsignal-forms"),value:t.viewThreshold,onChange:function(e){return o({viewThreshold:e})},type:"number",min:"1"}))))))},Hn=function(e,t){return Object(f.mapKeys)({backgroundColor:e.backgroundColor||"#ffffff",buttonColor:e.buttonColor||t.accentColor,buttonTextColor:e.buttonTextColor||t.textColorInverted,textColor:e.textColor||t.textColor,textSize:t.textSize},(function(e,t){return"--crowdsignal-forms-".concat(Object(f.kebabCase)(t))}))},Vn=function(e){var t=e.retryHandler;return Object(a.createElement)(pt,{status:"error",icon:"warning",isDismissible:!1,actions:[{className:"is-destructive",label:Object(l.__)("Retry","crowdsignal-forms"),onClick:t}]},Object(l.__)("Unfortunately, the block couldn't be saved to Crowdsignal.com.","crowdsignal-forms"))},Un=Object(k.compose)([Object(b.withSelect)((function(e){return{sourceLink:e("core/editor").getPermalink()}})),Ie])((function(e){var t=Object(C.useState)(Nn),n=_()(t,2),r=n[0],o=n[1],c=e.attributes,s=e.clientId,i=e.fallbackStyles,u=e.isSelected,m=e.setAttributes,p=e.renderStyleProbe,g=e.sourceLink,O=c.feedbackQuestion,w=c.ratingQuestion,j=c.surveyId,v=c.title,x=c.isExample,k=c.viewThreshold,S=An(function(){var e=D()(I.a.mark((function e(t){var n;return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Object(b.dispatch)("core/editor").lockPostSaving(s),e.prev=1,e.next=4,Bn({feedbackQuestion:t.feedbackQuestion,ratingQuestion:t.ratingQuestion,sourceLink:t.sourceLink,surveyId:t.surveyId,title:t.title||t.ratingQuestion});case 4:n=e.sent,t.surveyId||m({surveyId:n.surveyId});case 6:return e.prev=6,Object(b.dispatch)("core/editor").unlockPostSaving(s),e.finish(6);case 9:case"end":return e.stop()}}),e,null,[[1,,6,9]])})));return function(t){return e.apply(this,arguments)}}(),{feedbackQuestion:O,ratingQuestion:w,sourceLink:g,surveyId:j,title:v}),N=S.error,L=S.save;Object(C.useEffect)((function(){x||c.surveyId||L()}),[]),Object(C.useEffect)((function(){u||o(Nn)}),[u]);var P=function(e){return function(t){return m(d()({},e,t))}},R=T()("crowdsignal-forms-nps",{"is-inactive":!x&&!u}),A=he(),B=Object(f.get)(A,"capabilities").includes("hide-branding"),F=Object(f.get)(A,["signalCount","shouldDisplay"]),M=F&&Object(f.get)(A,["signalCount","count"])>=Object(f.get)(A,["signalCount","userLimit"]);return Object(a.createElement)(ct,{blockIcon:null,blockName:Object(l.__)("Crowdsignal NPS","crowdsignal-forms")},Object(a.createElement)(Mn,h()({currentView:r,onViewChange:o},e)),Object(a.createElement)(Fn,h()({shouldPromote:F,signalWarning:M},e)),!x&&M&&Object(a.createElement)(gt,null),!x&&N&&Object(a.createElement)(Vn,{retryHandler:L}),!x&&Object(a.createElement)(pt,{isDismissible:!1,icon:"visibility",componentActions:[Object(a.createElement)(In.PostPreviewButton,{key:1,className:["is-secondary","components-notice__action","crowdsignal-forms-nps__preview-button",c.surveyId?"":"is-disabled"],textContent:Object(l.__)("Preview","crowdsignal-forms")})]},Object(l.sprintf)(Object(l._n)("This block will appear as a popup window to people who have visited this page at least %d time.","This block will appear as a popup window to people who have visited this page at least %d times.",k,"crowdsignal-forms"),k)),(r===Nn||!u)&&Object(a.createElement)("div",{className:R,style:Hn(c,i)},Object(a.createElement)(E.RichText,{tagName:"h3",className:"crowdsignal-forms-nps__question",placeholder:Object(l.__)("Enter your rating question","crowdsignal-forms"),onChange:P("ratingQuestion"),value:w,allowedFormats:[]}),Object(a.createElement)("div",{className:"crowdsignal-forms-nps__rating"},Object(a.createElement)("div",{className:"crowdsignal-forms-nps__rating-labels"},Object(a.createElement)(E.RichText,{tagName:"span",placeholder:Object(l.__)("Not likely","crowdsignal-forms"),onChange:P("lowRatingLabel"),value:c.lowRatingLabel,allowedFormats:[],multiline:!1,disableLineBreaks:!0}),Object(a.createElement)(E.RichText,{tagName:"span",placeholder:Object(l.__)("Very likely","crowdsignal-forms"),onChange:P("highRatingLabel"),value:c.highRatingLabel,allowedFormats:[],multiline:!1,disableLineBreaks:!0})),Object(a.createElement)("div",{className:"crowdsignal-forms-nps__rating-scale"},Object(f.times)(11,(function(e){return Object(a.createElement)("div",{key:"rating-".concat(e),className:"crowdsignal-forms-nps__rating-button"},e)}))),!B&&Object(a.createElement)(ve,{trackRef:"cs-forms-nps",editing:!0,message:Object(l.__)("Collect your own feedback with Crowdsignal","crowdsignal-forms")}))),r===Ln&&u&&Object(a.createElement)("div",{className:R,style:Hn(c,i)},Object(a.createElement)("div",{className:"crowdsignal-forms-nps__feedback"},Object(a.createElement)(E.RichText,{tagName:"h3",className:"crowdsignal-forms-nps__question",placeholder:Object(l.__)("Enter your feedback question","crowdsignal-forms"),onChange:P("feedbackQuestion"),value:O,allowedFormats:[]}),Object(a.createElement)(y.TextareaControl,{className:"crowdsignal-forms-nps__feedback-text",rows:6,onChange:P("feedbackPlaceholder"),value:c.feedbackPlaceholder}),Object(a.createElement)("div",{className:"wp-block-button crowdsignal-forms-nps__feedback-button-wrapper"},Object(a.createElement)(E.RichText,{className:"wp-block-button__link crowdsignal-forms-nps__feedback-button",onChange:P("submitButtonLabel"),value:c.submitButtonLabel,allowedFormats:[],multiline:!1,disableLineBreaks:!0})),!B&&Object(a.createElement)(ve,{trackRef:"cs-forms-nps",editing:!0,message:Object(l.__)("Collect your own feedback with Crowdsignal","crowdsignal-forms")}))),p())})),Wn={title:Object(l.__)("Measure NPS","crowdsignal-forms"),description:Object(l.__)("Calculate your Net Promoter Score! Collect feedback and track customer satisfaction over time. — powered by Crowdsignal.","crowdsignal-forms"),category:"crowdsignal-forms",attributes:Rn,supports:{multiple:!1,html:!1,reusable:!1},icon:Object(a.createElement)((function(){return Object(a.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)("path",{d:"M4.49707 15V10.3857H4.54102L7.83691 15H9.05762V7.9541H7.64648V12.5439H7.60742L4.31641 7.9541H3.08594V15H4.49707ZM9.73438 7.9541V15H11.209V12.7783H12.5273C14.0117 12.7783 15.042 11.8115 15.042 10.3662C15.042 8.91602 14.0459 7.9541 12.6006 7.9541H9.73438ZM11.209 9.12109H12.21C13.0547 9.12109 13.543 9.57031 13.543 10.3711C13.543 11.1768 13.0498 11.626 12.2051 11.626H11.209V9.12109ZM15.1523 12.9932C15.1963 14.3164 16.2754 15.1221 17.9697 15.1221C19.7178 15.1221 20.8262 14.2578 20.8262 12.8906C20.8262 11.8164 20.2109 11.2109 18.7998 10.9082L17.9453 10.7275C17.1348 10.542 16.793 10.2979 16.793 9.86328C16.793 9.34082 17.2812 8.99414 18.0088 8.99414C18.7461 8.99414 19.2686 9.35547 19.3174 9.95117H20.6992C20.6748 8.67676 19.6445 7.83203 18.0039 7.83203C16.4316 7.83203 15.3086 8.69141 15.3086 9.99023C15.3086 11.0205 15.9482 11.6797 17.2471 11.958L18.165 12.1582C19.0146 12.3486 19.3516 12.6025 19.3516 13.0615C19.3516 13.5791 18.8145 13.9551 18.0283 13.9551C17.2471 13.9551 16.6416 13.5742 16.5732 12.9932H15.1523Z"}))}),null),edit:Un,keywords:[Object(l.__)("ask","crowdsignal-forms"),"crowdsignal",Object(l.__)("CSAT","crowdsignal-forms"),Object(l.__)("customer experience","crowdsignal-forms"),Object(l.__)("customer satisfaction","crowdsignal-forms"),Object(l.__)("feedback","crowdsignal-forms"),Object(l.__)("form","crowdsignal-forms"),Object(l.__)("loyalty","crowdsignal-forms"),Object(l.__)("net promoter score","crowdsignal-forms"),Object(l.__)("nps","crowdsignal-forms"),Object(l.__)("opinion","crowdsignal-forms"),Object(l.__)("poll","crowdsignal-forms"),Object(l.__)("promoter","crowdsignal-forms"),Object(l.__)("research","crowdsignal-forms"),Object(l.__)("rating","crowdsignal-forms"),Object(l.__)("review","crowdsignal-forms"),Object(l.__)("score","crowdsignal-forms"),Object(l.__)("survey","crowdsignal-forms")],example:{attributes:{isExample:!0,ratingQuestion:Object(l.__)("How satisfied are you with the content of the site?","crowdsignal-forms"),feedbackQuestion:Object(l.__)("Any advise on how we could improve your experience?","crowdsignal-forms"),lowRatingLabel:Object(l.__)("Not satisfied","crowdsignal-forms"),highRatingLabel:Object(l.__)("Very satisfied","crowdsignal-forms")}}},zn="question",Zn="submit",qn=Object.freeze({OPEN:"open",CLOSED:"closed",CLOSED_AFTER:"closed-after"}),Gn={backgroundColor:{type:"string"},buttonColor:{type:"string"},buttonTextColor:{type:"string"},emailPlaceholder:{type:"string",default:Object(l.__)("Your Email (optional)","crowdsignal-forms")},feedbackPlaceholder:{type:"string",default:Object(l.__)("Please let us know how we can do better…","crowdsignal-forms")},header:{type:"string",default:Object(l.__)("👋 Hey there!","crowdsignal-forms")},hideBranding:{type:"boolean",default:!1},hideTriggerShadow:{type:"boolean",default:!1},submitButtonLabel:{type:"string",default:Object(l.__)("Submit","crowdsignal-forms")},submitText:{type:"string",default:Object(l.__)("Thanks for letting us know!","crowdsignal-forms")},surveyId:{type:"number",default:null},textColor:{type:"string"},triggerLabel:{type:"string",default:Object(l.__)("Feedback","crowdsignal-forms")},triggerBackgroundColor:{type:"string"},triggerTextColor:{type:"string"},title:{type:"string",default:""},x:{type:"string",default:"left"},y:{type:"string",default:"bottom"},status:{type:"string",default:qn.OPEN},closedAfterDateTime:{type:"string",default:null},emailResponses:{type:"boolean",default:!0},isExample:{type:"boolean",default:!1}};function Kn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kn(Object(n),!0).forEach((function(t){d()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Qn=function(e,t){return{left:e.left+t.x+window.scrollX,right:e.right+(window.innerWidth>t.left+t.width?window.innerWidth-t.left-t.width:0),top:e.top+t.y+window.scrollY,bottom:e.bottom+(window.innerHeight>t.top+t.height?window.innerHeight-t.top-t.height:0)}},Jn=function(e,t,n){return{left:"left"===e?n.left:null,right:"right"===e?n.right:null}},Xn=function(e,t,n){return{top:"top"===e?n.top:null,bottom:"bottom"===e?n.bottom:null}},$n=function(e){var t=e.attributes,n=e.setAttributes,r=e.shouldPromote,o=e.signalWarning,c=e.email,s="https://app.crowdsignal.com/surveys/".concat(t.surveyId,"/report/overview"),i=function(e){return function(t){return n(d()({},e,t))}};return Object(a.createElement)(E.InspectorControls,null,Object(a.createElement)(y.PanelBody,{title:Object(l.__)("Results","crowdsignal-forms"),initialOpen:!0},Object(a.createElement)("p",null,t.surveyId?Object(l.__)("Manage results on ","crowdsignal-forms"):Object(l.__)("Save the block to track results on ","crowdsignal-forms"),Object(a.createElement)(y.ExternalLink,{href:"https://www.crowdsignal.com"},"crowdsignal.com")),Object(a.createElement)("p",null,Object(a.createElement)(y.Button,{isSecondary:!0,disabled:!t.surveyId,href:s,target:"blank"},Object(l.__)("View results","crowdsignal-forms"))),Object(a.createElement)(y.TextControl,{label:Object(l.__)("Title (optional)","crowdsignal-forms"),onChange:function(e){return n({title:e})},value:Object(x.decodeEntities)(t.title)}),Object(a.createElement)(y.ToggleControl,{label:Object(l.__)("Send me responses via email","crowdsignal-forms"),checked:t.emailResponses,onChange:i("emailResponses"),help:t.emailResponses&&c&&Object(l.sprintf)(Object(l.__)("Responses will be sent to %s","crowdsignal-forms"),c)}),r&&Object(a.createElement)(Ge,{signalWarning:o})),Object(a.createElement)(E.PanelColorSettings,{title:Object(l.__)("Feedback Button","crowdsignal-forms"),initialOpen:!1,colorSettings:[{label:Object(l.__)("Background color","crowdsignal-forms"),onChange:i("triggerBackgroundColor"),value:t.triggerBackgroundColor},{label:Object(l.__)("Text color","crowdsignal-forms"),onChange:i("triggerTextColor"),value:t.triggerTextColor}]},Object(a.createElement)(y.ToggleControl,{label:Object(l.__)("Hide Shadow","crowdsignal-forms"),checked:t.hideTriggerShadow,onChange:i("hideTriggerShadow")})),Object(a.createElement)(E.PanelColorSettings,{title:Object(l.__)("Block styling","crowdsignal-forms"),initialOpen:!1,colorSettings:[{label:Object(l.__)("Background color","crowdsignal-forms"),onChange:i("backgroundColor"),value:t.backgroundColor},{label:Object(l.__)("Text color","crowdsignal-forms"),onChange:i("textColor"),value:t.textColor},{label:Object(l.__)("Button color","crowdsignal-forms"),onChange:i("buttonColor"),value:t.buttonColor},{label:Object(l.__)("Button text color","crowdsignal-forms"),onChange:i("buttonTextColor"),value:t.buttonTextColor}]}),Object(a.createElement)(y.PanelBody,{title:Object(l.__)("Settings","crowdsignal-forms"),initialOpen:!1},Object(a.createElement)(y.SelectControl,{value:t.status,label:Object(l.__)("Status","crowdsignal-forms"),options:[{label:Object(l.__)("Open","crowdsignal-forms"),value:qn.OPEN},{label:Object(l.__)("Closed after","crowdsignal-forms"),value:qn.CLOSED_AFTER},{label:Object(l.__)("Closed","crowdsignal-forms"),value:qn.CLOSED}],onChange:function(e){return n({status:e})},help:qn.CLOSED_AFTER===t.status&&null!==t.closedAfterDateTime&&(new Date).toISOString()>t.closedAfterDateTime?"Currently closed as date has passed":""}),qn.CLOSED_AFTER===t.status&&Object(a.createElement)(y.DateTimePicker,{currentDate:t.closedAfterDateTime&&new Date(t.closedAfterDateTime)||new Date,label:Object(l.__)("Close on","crowdsignal-forms"),onChange:function(e){var t=new Date(e);n({closedAfterDateTime:t.toISOString()})},is12Hour:!0})))},er=function(){return Object(a.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)("rect",{x:"2.25",y:"2.25",width:"6",height:"6",fill:"black"}),Object(a.createElement)("rect",{x:"17.75",y:"4.25",width:"2",height:"2",fill:"black"}),Object(a.createElement)("rect",{x:"17.75",y:"17.75",width:"2",height:"2",fill:"black"}),Object(a.createElement)("rect",{x:"4.25",y:"17.75",width:"2",height:"2",fill:"black"}))},tr=[{x:"left",y:"top"},{x:"right",y:"top"},{x:"left",y:"bottom"},{x:"right",y:"bottom"}],nr=function(e){var t=e.attributes,n=e.currentView,r=e.onViewChange,o=e.setAttributes,c=function(e){return function(){return r(e)}};return Object(a.createElement)(E.BlockControls,null,Object(a.createElement)(y.ToolbarGroup,{label:Object(l.__)("Current view","crowdsignal-forms")},Object(a.createElement)(y.ToolbarButton,{className:"crowdsignal-forms-feedback__toolbar-toggle",isActive:n===zn,label:Object(l.__)("Question","crowdsignal-forms"),onClick:c(zn)},Object(l.__)("Question","crowdsignal-forms")),Object(a.createElement)(y.ToolbarButton,{className:"crowdsignal-forms-feedback__toolbar-toggle",isActive:n===Zn,label:Object(l.__)("Submit","crowdsignal-forms"),onClick:c(Zn)},Object(l.__)("Submit","crowdsignal-forms"))),Object(a.createElement)(y.ToolbarGroup,null,Object(a.createElement)("div",{className:"crowdsignal-forms-feedback__toolbar-position-toggle-wrapper"},Object(a.createElement)(y.Dropdown,{popoverProps:{className:"crowdsignal-forms-feedback__toolbar-popover-wrapper"},renderToggle:function(e){var n=e.onToggle;return Object(a.createElement)(y.Tooltip,{text:Object(l.__)("Change button position","crowdsignal-forms")},Object(a.createElement)(y.ToolbarButton,{className:"crowdsignal-forms-feedback__toolbar-position-toggle ".concat(t.y,"-").concat(t.x),onClick:n,icon:er}))},renderContent:function(e){var n=e.onClose;return Object(a.createElement)("div",{className:"crowdsignal-forms-feedback__toolbar-popover"},Object(f.map)(tr,(function(e){var r=e.x,l=e.y,c=T()("crowdsignal-forms-feedback__position-button",{"is-active":t.x===r&&t.y===l});return Object(a.createElement)(y.Button,{className:c,onClick:function(){!function(e,t){o({x:e,y:t})}(r,l),n()}})})))}}))))},rr=function(e,t){return Object(f.mapKeys)({backgroundColor:e.backgroundColor||"#ffffff",buttonColor:e.buttonColor||t.accentColor,buttonTextColor:e.buttonTextColor||t.textColorInverted,textColor:e.textColor||t.textColor,textSize:t.textSize,triggerBackgroundColor:e.triggerBackgroundColor||t.accentColor,triggerTextColor:e.triggerTextColor||t.textColorInverted},(function(e,t){return"--crowdsignal-forms-".concat(Object(f.kebabCase)(t))}))},or=function(e){return Dn(Q()({path:Object(f.trimEnd)("/crowdsignal-forms/v1/feedback/".concat(e.surveyId||""),"/"),method:"POST",data:e}))},ar=Object(k.compose)([Object(b.withSelect)((function(e){return{activeSidebar:e("core/edit-post").getActiveGeneralSidebarName(),editorFeatures:e("core/edit-post").getPreference("features"),sourceLink:e("core/editor").getPermalink()}})),Ie])((function(e){var t=Object(C.useState)(zn),n=_()(t,2),r=n[0],o=n[1],c=Object(C.useState)(null),s=_()(c,2),i=s[0],u=s[1],m=Object(C.useState)({}),p=_()(m,2),g=p[0],O=p[1],w=e.attributes,j=e.activeSidebar,v=e.editorFeatures,x=e.fallbackStyles,k=e.isSelected,S=e.setAttributes,N=e.clientId,L=e.sourceLink,P=e.setPosition,R=w.isExample,A=w.feedbackPlaceholder,B=w.emailPlaceholder,F=w.surveyId,M=w.title,H=w.header,V=w.emailResponses,U=w.triggerLabel,W=Object(C.useRef)(null),z=Object(C.useRef)(null),Z=he(),q=An(function(){var e=D()(I.a.mark((function e(t){var n;return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Object(b.dispatch)("core/editor").lockPostSaving(N),e.prev=1,e.next=4,or({feedbackPlaceholder:t.feedbackPlaceholder,emailPlaceholder:t.emailPlaceholder,sourceLink:t.sourceLink,surveyId:t.surveyId,title:t.title||t.header,emailResponses:t.emailResponses});case 4:n=e.sent,t.surveyId||S({surveyId:n.surveyId});case 6:return e.prev=6,Object(b.dispatch)("core/editor").unlockPostSaving(N),e.finish(6);case 9:case"end":return e.stop()}}),e,null,[[1,,6,9]])})));return function(t){return e.apply(this,arguments)}}(),{feedbackPlaceholder:A,emailPlaceholder:B,sourceLink:L,surveyId:F,title:M,header:H,emailResponses:V}),G=q.error,K=q.save;Object(C.useEffect)((function(){R||w.surveyId||K()}),[]),Object(C.useEffect)((function(){k||o(zn)}),[k]),Object(C.useLayoutEffect)((function(){R||P(function(e,t,n,r,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,l={left:Object(f.isObject)(o)?o.left:o,right:Object(f.isObject)(o)?o.right:o,top:Object(f.isObject)(o)?o.top:o,bottom:Object(f.isObject)(o)?o.bottom:o};return a&&(l=Qn(l,a.getBoundingClientRect())),Yn({},Jn(e,0,l),{},Xn(t,0,l))}(w.x,w.y,W.current.offsetWidth,W.current.offsetHeight,{left:20,right:20,top:k?80:20,bottom:20},document.getElementsByClassName("interface-interface-skeleton__content")[0]))}),[j,v.fullscreenMode,k,P,w.x,w.y,W.current]),Object(C.useLayoutEffect)((function(){z.current&&u(z.current.offsetHeight)}),[w.header,z.current,k]),Object(C.useLayoutEffect)((function(){var e=document.getElementsByClassName("interface-interface-skeleton__content")[0].getBoundingClientRect();O({bottom:window.innerHeight-(e.top+e.height),left:e.left,right:window.innerWidth-(e.left+e.width),top:e.top})}),[j,v.fullscreenMode,k]);var Y=function(e){return function(t){return S(d()({},e,t))}},Q=Object(f.get)(Z,["signalCount","shouldDisplay"]),J=Q&&Object(f.get)(Z,["signalCount","count"])>=Object(f.get)(Z,["signalCount","userLimit"]),X=Object(f.get)(Z,["account","email"]),$=T()("crowdsignal-forms-feedback","align-".concat(w.x),"vertical-align-".concat(w.y),{"no-shadow":w.hideTriggerShadow,"is-active":k}),ee={height:i},te=qn.CLOSED===w.status||qn.CLOSED_AFTER===w.status&&null!==w.closedAfterDateTime&&(new Date).toISOString()>w.closedAfterDateTime,ne=Object(f.get)(Z,"capabilities").includes("hide-branding");return Object(a.createElement)(ct,null,Object(a.createElement)(nr,h()({currentView:r,onViewChange:o},e)),Object(a.createElement)($n,h()({shouldPromote:Q,signalWarning:J,email:X},e)),Object(a.createElement)("div",{className:$,style:rr(w,x)},Object(a.createElement)("div",{className:"wp-block-button crowdsignal-forms-feedback__trigger-wrapper"},Object(a.createElement)(E.RichText,{ref:W,className:"wp-block-button__link crowdsignal-forms-feedback__trigger",onChange:Y("triggerLabel"),value:U,allowedFormats:[],multiline:!1,disableLineBreaks:!0})),(R||k)&&Object(a.createElement)(a.Fragment,null,Object(a.createElement)("div",{"aria-modal":"true",role:"dialog",className:"crowdsignal-forms-feedback__popover-overlay",onClick:function(){Object(b.dispatch)("core/block-editor").clearSelectedBlock(),W.current.parentElement.parentElement.parentElement.blur()},style:g}),!R&&J&&Object(a.createElement)(gt,null),!R&&G&&Object(a.createElement)(Vn,{retryHandler:K}),r===zn&&Object(a.createElement)("div",{ref:z,className:"crowdsignal-forms-feedback__popover"},Object(a.createElement)(E.RichText,{tagName:"h3",className:"crowdsignal-forms-feedback__header",onChange:Y("header"),value:w.header,allowedFormats:[]}),Object(a.createElement)(y.TextareaControl,{className:"crowdsignal-forms-feedback__input",rows:6,onChange:Y("feedbackPlaceholder"),value:w.feedbackPlaceholder}),Object(a.createElement)(y.TextControl,{className:"crowdsignal-forms-feedback__input",onChange:Y("emailPlaceholder"),value:w.emailPlaceholder}),Object(a.createElement)("div",{className:"wp-block-button crowdsignal-forms-feedback__button-wrapper"},Object(a.createElement)(E.RichText,{className:"wp-block-button__link crowdsignal-forms-feedback__feedback-button",onChange:Y("submitButtonLabel"),value:w.submitButtonLabel,allowedFormats:[],multiline:!1,disableLineBreaks:!0})),!ne&&Object(a.createElement)(ve,{editing:!0,trackRef:"cs-forms-feedback",message:Object(l.__)("Collect your own feedback with Crowdsignal","crowdsignal-forms")})),r===Zn&&Object(a.createElement)("div",{className:"crowdsignal-forms-feedback__popover",style:ee},Object(a.createElement)(E.RichText,{tagName:"h3",className:"crowdsignal-forms-feedback__header",onChange:Y("submitText"),value:w.submitText,allowedFormats:[]}),!ne&&Object(a.createElement)(ve,{editing:!0,trackRef:"cs-forms-feedback",message:Object(l.__)("Collect your own feedback with Crowdsignal","crowdsignal-forms")})),te&&Object(a.createElement)("div",{className:"crowdsignal-forms-feedback__closed-notice"},Object(l.__)("This Feedback Form is Closed","crowdsignal-forms")))),e.renderStyleProbe())})),lr={title:Object(l.__)("Feedback Button","crowdsignal-forms"),description:Object(l.__)("Add an always visible button that allows your audience to share feedback anytime.","crowdsignal-forms"),category:"crowdsignal-forms",keywords:["crowdsignal",Object(l.__)("feedback","crowdsignal-forms"),Object(l.__)("floating","crowdsignal-forms"),Object(l.__)("contact","crowdsignal-forms"),Object(l.__)("call to action","crowdsignal-forms"),Object(l.__)("cta","crowdsignal-forms"),Object(l.__)("button","crowdsignal-forms"),Object(l.__)("subscribe","crowdsignal-forms"),Object(l.__)("form","crowdsignal-forms"),Object(l.__)("email","crowdsignal-forms"),Object(l.__)("message","crowdsignal-forms")],icon:Object(a.createElement)((function(){return Object(a.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 5.25V17.6893L6.42678 16.2626C6.75497 15.9344 7.20008 15.75 7.66421 15.75H18.75C18.8881 15.75 19 15.6381 19 15.5V5.5C19 5.36193 18.8881 5.25 18.75 5.25H5ZM3.5 5C3.5 4.30965 4.05964 3.75 4.75 3.75H18.75C19.7165 3.75 20.5 4.5335 20.5 5.5V15.5C20.5 16.4665 19.7165 17.25 18.75 17.25H7.66421C7.59791 17.25 7.53432 17.2763 7.48744 17.3232L3.5 21.3107V5Z"}),Object(a.createElement)("rect",{x:"7",y:"9.75",width:"1.5",height:"1.5"}),Object(a.createElement)("rect",{x:"11.25",y:"9.75",width:"1.5",height:"1.5"}),Object(a.createElement)("rect",{x:"15.5",y:"9.75",width:"1.5",height:"1.5"}))}),null),edit:ar,supports:{multiple:!1,html:!1,reusable:!1},attributes:Gn,example:{attributes:{isExample:!0}}};function cr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cr(Object(n),!0).forEach((function(t){d()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ir={},ur=["crowdsignal-forms/feedback"];Object(r.registerBlockType)("crowdsignal-forms/poll",jt),Object(r.registerBlockType)("crowdsignal-forms/vote",At),Object(r.registerBlockType)("crowdsignal-forms/vote-item",pn),Object(r.registerBlockType)("crowdsignal-forms/applause",Tn),Object(r.registerBlockType)("crowdsignal-forms/nps",Wn),Object(r.registerBlockType)("crowdsignal-forms/feedback",lr),Object(o.addFilter)("editor.BlockListBlock","crowdsignal-forms/with-fixed-position",(function(e){return function(t){if(!Object(f.includes)(ur,t.name))return Object(a.createElement)(e,t);var n=Object(C.useState)({}),r=_()(n,2),o=r[0],l=r[1];ir[t.clientId]=l,Object(C.useEffect)((function(){return function(){ir[t.clientId]=null}}),[ir,t.clientId]);var c=sr({},Object(f.get)(t,["wrapperProps","style"],{}),{},o,{position:Object(f.isEmpty)(o)?null:"fixed",margin:0}),s=sr({},t.wrapperProps,{style:c});return Object(a.createElement)(e,h()({},t,{wrapperProps:s}))}})),Object(o.addFilter)("editor.BlockEdit","crowdsignal-forms/with-fixed-position-control",(function(e){return function(t){if(!Object(f.includes)(ur,t.name))return Object(a.createElement)(e,t);var n=Object(C.useCallback)((function(e){ir[t.clientId](Object(f.pick)(e,["top","left","right","bottom"]))}),[t.clientId]);return Object(a.createElement)(e,h()({},t,{setPosition:n}))}}))}]));
1
+ !function(e,t){for(var n in t)e[n]=t[n]}(window,function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=51)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.React}()},function(e,t){!function(){e.exports=this.lodash}()},function(e,t){!function(){e.exports=this.wp.components}()},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){!function(){e.exports=this.wp.blockEditor}()},function(e,t,n){var r=n(40),o=n(41),a=n(29),l=n(42);e.exports=function(e,t){return r(e)||o(e,t)||a(e,t)||l()}},function(e,t,n){e.exports=n(43)()},function(e,t,n){var r;
2
  /*!
3
  Copyright (c) 2017 Jed Watson.
4
  Licensed under the MIT License (MIT), see
5
  http://jedwatson.github.io/classnames
6
+ */!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)&&r.length){var l=o.apply(null,r);l&&e.push(l)}else if("object"===a)for(var c in r)n.call(r,c)&&r[c]&&e.push(c)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t){!function(){e.exports=this.regeneratorRuntime}()},function(e,t){!function(){e.exports=this.wp.data}()},function(e,t){!function(){e.exports=this.wp.compose}()},function(e,t){function n(e,t,n,r,o,a,l){try{var c=e[a](l),i=c.value}catch(s){return void n(s)}c.done?t(i):Promise.resolve(i).then(r,o)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(o,a){var l=e.apply(t,r);function c(e){n(l,o,a,c,i,"next",e)}function i(e){n(l,o,a,c,i,"throw",e)}c(void 0)}))}}},function(e,t){!function(){e.exports=this.wp.htmlEntities}()},function(e,t){!function(){e.exports=this.wp.apiFetch}()},function(e,t){!function(){e.exports=this.wp.blocks}()},function(e,t,n){var r=n(37),o=n(38),a=n(29),l=n(39);e.exports=function(e){return r(e)||o(e)||a(e)||l()}},function(e,t,n){var r=n(50);e.exports=function(e,t){if(null==e)return{};var n,o,a=r(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)n=l[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t,n){var r,o;
7
  /*!
8
  * JavaScript Cookie v2.2.1
9
  * https://github.com/js-cookie/js-cookie
10
  *
11
  * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
12
  * Released under the MIT license
13
+ */!function(a){if(void 0===(o="function"==typeof(r=a)?r.call(t,n,t,e):r)||(e.exports=o),!0,e.exports=a(),!!0){var l=window.Cookies,c=window.Cookies=a();c.noConflict=function(){return window.Cookies=l,c}}}((function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(r){function o(){}function a(t,n,a){if("undefined"!=typeof document){"number"==typeof(a=e({path:"/"},o.defaults,a)).expires&&(a.expires=new Date(1*new Date+864e5*a.expires)),a.expires=a.expires?a.expires.toUTCString():"";try{var l=JSON.stringify(n);/^[\{\[]/.test(l)&&(n=l)}catch(s){}n=r.write?r.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var c="";for(var i in a)a[i]&&(c+="; "+i,!0!==a[i]&&(c+="="+a[i].split(";")[0]));return document.cookie=t+"="+n+c}}function l(e,n){if("undefined"!=typeof document){for(var o={},a=document.cookie?document.cookie.split("; "):[],l=0;l<a.length;l++){var c=a[l].split("="),i=c.slice(1).join("=");n||'"'!==i.charAt(0)||(i=i.slice(1,-1));try{var s=t(c[0]);if(i=(r.read||r)(i,s)||t(i),n)try{i=JSON.parse(i)}catch(u){}if(o[s]=i,e===s)break}catch(u){}}return e?o[e]:o}}return o.set=a,o.get=function(e){return l(e,!1)},o.getJSON=function(e){return l(e,!0)},o.remove=function(t,n){a(t,"",e(n,{expires:-1}))},o.defaults={},o.withConverter=n,o}((function(){}))}))},function(e,t){!function(){e.exports=this.ReactDOM}()},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t){!function(){e.exports=this.wp.hooks}()},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){var r=n(23);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},,function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t,n){var r=n(28);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t,n){var r=n(45),o=n(46);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?o(e):t}},function(e,t,n){var r=n(20),o=n(23),a=n(47),l=n(48);function c(t){var n="function"==typeof Map?new Map:void 0;return e.exports=c=function(e){if(null===e||!a(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return l(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),o(t,e)},c(t)}e.exports=c},function(e,t){!function(){e.exports=this.wp.editor}()},function(e,t){!function(){e.exports=this.wp.keycodes}()},,,,function(e,t,n){var r=n(28);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,a=void 0;try{for(var l,c=e[Symbol.iterator]();!(r=(l=c.next()).done)&&(n.push(l.value),!t||n.length!==t);r=!0);}catch(i){o=!0,a=i}finally{try{r||null==c.return||c.return()}finally{if(o)throw a}}return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){"use strict";var r=n(44);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,l){if(l!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){e.exports=function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}},function(e,t,n){var r=n(23),o=n(49);function a(t,n,l){return o()?e.exports=a=Reflect.construct:e.exports=a=function(e,t,n){var o=[null];o.push.apply(o,t);var a=new(Function.bind.apply(e,o));return n&&r(a,n.prototype),a},a.apply(null,arguments)}e.exports=a},function(e,t){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}},function(e,t,n){"use strict";n.r(t);var r=n(17),o=n(24),a=n(0),l=n(1),c=function(){return Object(a.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5 6L5.5 18C5.5 18.2761 5.72386 18.5 6 18.5L18 18.5C18.2761 18.5 18.5 18.2761 18.5 18L18.5 6C18.5 5.72386 18.2761 5.5 18 5.5L6 5.5C5.72386 5.5 5.5 5.72386 5.5 6ZM4 18L4 6C4 4.89543 4.89543 4 6 4L18 4C19.1046 4 20 4.89543 20 6L20 18C20 19.1046 19.1046 20 18 20L6 20C4.89543 20 4 19.1046 4 18Z"}),Object(a.createElement)("rect",{x:"15",y:"17",width:"6",height:"1.5",transform:"rotate(-90 15 17)"}),Object(a.createElement)("rect",{x:"11.5",y:"17",width:"9",height:"1.5",transform:"rotate(-90 11.5 17)"}),Object(a.createElement)("rect",{x:"8",y:"17",width:"5",height:"1.5",transform:"rotate(-90 8 17)"}))},i=n(18),s=n.n(i),u=n(5),d=n.n(u),f=n(12),b=n(3);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){d()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var g={tryFetch:!1,isFetching:!1,pollsByClientId:{},pollClientIds:[]},O={setTryFetchPollData:function(e){return{type:"SET_TRY_FETCH",tryFetch:e}},setIsFetchingPollData:function(e){return{type:"IS_FETCHING",isFetching:e}},setPollApiDataForClientId:function(e,t){return{type:"SET_POLL",clientId:e,pollData:t}},addPollClientId:function(e){return{type:"ADD_POLL_CLIENT_ID",clientId:e}},removePollClientId:function(e){return{type:"REMOVE_POLL_CLIENT_ID",clientId:e}}},v=(Object(f.registerStore)("crowdsignal-forms/polls",{reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_TRY_FETCH":return p({},e,{tryFetch:!!t.tryFetch});case"IS_FETCHING":return p({},e,{isFetching:!!t.isFetching});case"SET_POLL":return p({},e,{pollsByClientId:p({},e.pollsByClientId,d()({},t.clientId,t.pollData))});case"ADD_POLL_CLIENT_ID":return p({},e,{pollClientIds:e.pollClientIds.indexOf(t.clientId)<0?[].concat(s()(e.pollClientIds),[t.clientId]):e.pollClientIds});case"REMOVE_POLL_CLIENT_ID":return p({},e,{pollClientIds:Object(b.filter)(e.pollClientIds,(function(e){return e!==t.clientId}))});default:return e}},actions:O,selectors:{shouldTryFetchingPollData:function(e){return!!e.tryFetch},getPollDataByClientId:function(e,t){return e.pollsByClientId[t]||null},getPollClientIds:function(e){return e.pollClientIds},isFetchingPollData:function(e){return!!e.isFetching}},controls:{},resolvers:{}}),n(10)),w=n.n(v),h=n(7),j=n.n(h),_=n(2),C=n.n(_),y=n(6),E=n(4),k=n(15),x=n(13),S=n(9),T=n.n(S),I=function(e){var t=e.hasVoted,n=e.isPollClosed,r=e.isPollHidden,o=e.showSubmitMessage,c=T()({"is-transparent":o},"crowdsignal-forms-poll__closed-banner");return Object(a.createElement)("div",{className:c},r&&Object(l.__)("This Poll is Hidden","crowdsignal-forms"),n&&!r&&Object(l.__)("This Poll is Closed","crowdsignal-forms"),t&&Object(l.__)("Thanks For Voting!","crowdsignal-forms"))},P=n(8),N=n.n(P),L=n(11),A=n.n(L),R=n(14),D=n.n(R),B=n(21),F=n.n(B),M=n(25),H=n.n(M),V=n(26),U=n.n(V),W=n(30),z=n.n(W),K=n(20),q=n.n(K),G=n(31),Z=n.n(G),Y=n(16),Q=n.n(Y);function J(e){return function(){var t,n=q()(e);if(X()){var r=q()(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return z()(this,t)}}function X(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var $,ee=function(){var e=D()(A.a.mark((function e(t){var n,r,o=arguments;return A.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=!(o.length>1&&void 0!==o[1])||o[1],r="https://api.crowdsignal.com/v3/polls",n){e.next=4;break}return e.abrupt("return",null);case 4:return e.abrupt("return",window.fetch("".concat(r,"/").concat(t,"/results"),{method:"GET",headers:{"content-type":"application/json"}}).then((function(e){if(e.status>=200&&e.status<300)return e.json();throw e})).then((function(e){if(404===e.status)return{};if(e.error)throw new Error(e.message);return e.results.votes_by_answer})));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),te=function(){var e=D()(A.a.mark((function e(t){var n,r,o;return A.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"5430eeac3911395001d731d9702fc38b",n=(new Date).getTime(),e.next=4,window.fetch("https://polldaddy.com/n/".concat("5430eeac3911395001d731d9702fc38b","/").concat(t,"?").concat(n,"&format=json"));case 4:if((r=e.sent).ok){e.next=7;break}throw new oe;case 7:return e.next=9,r.json();case 9:if((o=e.sent).nonce){e.next=12;break}throw new oe;case 12:return e.abrupt("return",o.nonce);case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ne=function(){var e=D()(A.a.mark((function e(t,n,r,o){var a,l,c;return A.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=r.join(","),e.next=3,window.fetch("https://polls.polldaddy.com/vote-js.php?format=json&p=".concat(n,"&b=1&a=").concat(a,"&o=&va=16&cookie=0&n=").concat(t,"&url=").concat(encodeURIComponent(window.location),"&vi=").concat(o));case 3:if((l=e.sent).ok){e.next=6;break}throw new oe;case 6:return e.next=8,l.json();case 8:if("error"!==(c=e.sent).status){e.next=11;break}throw new re(c.error);case 11:case"end":return e.stop()}}),e)})));return function(t,n,r,o){return e.apply(this,arguments)}}(),re=function(e){U()(n,e);var t=J(n);function n(){return H()(this,n),t.apply(this,arguments)}return n}(Z()(Error)),oe=function(e){U()(n,e);var t=J(n);function n(){return H()(this,n),t.call(this,Object(l.__)("Server error. Please try again.","crowdsignal-forms"))}return n}(re),ae=function(){var e=D()(A.a.mark((function e(){return A.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Q()({path:"/crowdsignal-forms/v1/account/connected",method:"GET"});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),le=function(){var e=D()(A.a.mark((function e(){return A.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Q()({path:"/crowdsignal-forms/v1/account/info",method:"GET"});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ce=function(e,t){var n=Object(_.useState)(null),r=j()(n,2),o=r[0],a=r[1],l=Object(_.useState)(null),c=j()(l,2),i=c[0],s=c[1],u=Object(_.useState)(!0),d=j()(u,2),f=d[0],b=d[1];return Object(_.useEffect)((function(){b(!0),s(null),a(null),e().then(a).catch(s).finally((function(){return b(!1)}))}),t),{data:o,error:i,loading:f}},ie=Object.freeze({THANK_YOU:"thank-you",CUSTOM_TEXT:"custom-text",REDIRECT:"redirect",RESULTS:"results"}),se=Object.freeze({THEME_DEFAULT:"theme-default",GEORGIA:"georgia",PALATINO:"palatino",TIMES_NEW_ROMAN:"times-new-roman",ARIAL:"arial",IMPACT:"impact",LUCIDA:"lucida",TAHOMA:"tahoma",TREBUCHET:"trebuchet",VERDANA:"verdana",COURIER:"courier",CABIN:"Cabin",CHIVO:"Chivo",OPEN_SANS:"Open+Sans",FIRA_SANS:"Fira+Sans",ROBOTO:"Roboto",NUNITO:"Nunito",OVERPASS:"Overpass",LATO:"Lato",LIBRE_FRANKLIN:"Libre+Franklin",MONTSERRAT:"Montserrat",POPPINS:"Poppins",RUBIK:"Rubik",RALEWAY:"Raleway",JOSEFIN_SANS:"Josefin+Sans",ALEGREYA_SANS:"Alegreya+Sans",OSWALD:"Oswald"}),ue=Object.freeze([se.CABIN,se.CHIVO,se.OPEN_SANS,se.FIRA_SANS,se.ROBOTO,se.NUNITO,se.OVERPASS,se.LATO,se.LIBRE_FRANKLIN,se.MONTSERRAT,se.POPPINS,se.RUBIK,se.RALEWAY,se.JOSEFIN_SANS,se.ALEGREYA_SANS,se.OSWALD]),de=Object.freeze(($={},d()($,se.THEME_DEFAULT,null),d()($,se.GEORGIA,"Georgia, serif"),d()($,se.PALATINO,'"Palatino Linotype", "Book Antiqua", Palatino, serif'),d()($,se.TIMES_NEW_ROMAN,'"Times New Roman", Times, serif'),d()($,se.ARIAL,"Arial, Helvetica, sans-serif"),d()($,se.IMPACT,"Impact, Charcoal, sans-serif"),d()($,se.LUCIDA,'"Lucida Sans Unicode", "Lucida Grande", sans-serif'),d()($,se.TAHOMA,"Tahoma, Geneva, sans-serif"),d()($,se.TREBUCHET,'"Trebuchet MS", Helvetica, sans-serif'),d()($,se.VERDANA,"Verdana, Geneva, sans-serif"),d()($,se.COURIER,'"Courier New", Courier, monospace'),d()($,se.CABIN,'"Cabin", sans-serif'),d()($,se.CHIVO,'"Chivo", sans-serif'),d()($,se.OPEN_SANS,'"Open Sans", sans-serif'),d()($,se.FIRA_SANS,'"Fira Sans", sans-serif'),d()($,se.ROBOTO,'"Roboto", sans-serif'),d()($,se.NUNITO,'"Nunito", sans-serif'),d()($,se.OVERPASS,'"Overpass", sans-serif'),d()($,se.LATO,'"Lato", sans-serif'),d()($,se.LIBRE_FRANKLIN,'"Libre Franklin", sans-serif'),d()($,se.MONTSERRAT,'"Montserrat", sans-serif'),d()($,se.POPPINS,'"Poppins", sans-serif'),d()($,se.RUBIK,'"Rubik", sans-serif'),d()($,se.RALEWAY,'"Raleway", sans-serif'),d()($,se.JOSEFIN_SANS,'"Josefin Sans", sans-serif'),d()($,se.ALEGREYA_SANS,'"Alegreya Sans", sans-serif'),d()($,se.OSWALD,'"Oswald", sans-serif'),$)),fe=Object.freeze({OPEN:"open",CLOSED:"closed",CLOSED_AFTER:"closed-after"}),be=Object.freeze({SHOW_RESULTS:"show-results",SHOW_CLOSED_BANNER:"show-closed-banner",HIDDEN:"hidden"}),me=Object.freeze({CONNECTED:"connected",NOT_CONNECTED:"not-connected",NOT_VERIFIED:"not-verified"}),pe=Object.freeze({RADIO:"radio",BUTTON:"button"}),ge=Object.freeze({LIST:"list",INLINE:"inline"}),Oe=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=ce((function(){return ee(e,t)}),[e]),r=n.data,o=n.error,a=n.loading;return{error:o,loading:a,results:r}},ve={is_verified:!0,capabilities:["hide-branding"],signal_count:{count:0,userLimit:2500,shouldDisplay:!1}},we=function(){var e=Object(_.useState)(ve),t=j()(e,2),n=t[0],r=t[1],o=function(){var e=D()(A.a.mark((function e(){var t;return A.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,le();case 2:t=e.sent,r(t);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return Object(_.useEffect)((function(){o()}),[]),n},he=function(e){var t=e.error,n=e.loading,r=e.text,o=e.totalVotes,c=e.votes,i=T()("crowdsignal-forms-poll__answer-results",{"is-error":t,"is-loading":n}),s=!n&&!t,u=0===o?0:100*c/o,d={width:"".concat(parseInt(u,10),"%")};return Object(a.createElement)("div",{className:i},Object(a.createElement)("div",{className:"crowdsignal-forms-poll__answer-results-labels"},Object(a.createElement)("span",{className:"crowdsignal-forms-poll__answer-results-answer"},Object(k.decodeEntities)(r)),Object(a.createElement)("span",{className:"crowdsignal-forms-poll__answer-results-votes"},s&&Object(l.sprintf)(Object(l._n)("%s vote","%s votes",c,"crowdsignal-forms"),c.toLocaleString())),Object(a.createElement)("span",{className:"crowdsignal-forms-poll__answer-results-percent"},s&&"".concat(u.toFixed(2),"%"))),Object(a.createElement)("div",{className:"crowdsignal-forms-poll__answer-results-progress-track"},Object(a.createElement)("div",{className:"crowdsignal-forms-poll__answer-results-progress-bar",style:d})))};he.propTypes={loading:N.a.bool,text:N.a.string.isRequired,totalVotes:N.a.number,votes:N.a.number};var je=he,_e=Object(a.createElement)("span",null,"Hide Crowdsignal ads",Object(a.createElement)("br",null),"and get unlimited",Object(a.createElement)("br",null),"signals -"," ",Object(a.createElement)("a",{href:"https://crowdsignal.com/pricing",target:"_blank",rel:"noopener noreferrer"},"Upgrade")),Ce=function(e){var t=e.showLogo,n=e.editing,r=e.message,o=e.trackRef,c=void 0===o?"cs-forms-poll":o;return Object(a.createElement)("div",{className:"crowdsignal-forms__footer-branding"},Object(a.createElement)("a",{className:"crowdsignal-forms__footer-cs-link",href:"https://crowdsignal.com?ref="+c,target:"_blank",rel:"noopener noreferrer"},r||Object(l.__)("Create your own poll with Crowdsignal","crowdsignal-forms")),n&&Object(a.createElement)(E.Tooltip,{text:_e,position:"top center"},Object(a.createElement)("a",{href:"https://crowdsignal.com/pricing",target:"_blank",rel:"noopener noreferrer",className:"crowdsignal-forms__branding-promote"},Object(l.__)("Hide","crowdsignal-forms"))),t&&Object(a.createElement)("a",{href:"https://crowdsignal.com?ref="+c,target:"_blank",rel:"noopener noreferrer"},Object(a.createElement)("img",{className:"crowdsignal-forms__footer-branding-logo",src:"https://app.crowdsignal.com/images/svg/cs-logo-dots.svg",alt:"Crowdsignal sticker"})))};function ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Ee=function(e,t){return Object(b.map)(e,(function(e){return void 0!==e.answerIdFromApi?e:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ye(Object(n),!0).forEach((function(t){d()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ye(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{answerIdFromApi:t[e.answerId]})}))},ke=function(e){return Object(b.isEmpty)(e)||void 0===e.text||null===e.text||""===e.text},xe=function(e){var t=e.answers,n=e.pollIdFromApi,r=e.setErrorMessage,o=e.hideBranding,c=Oe(n),i=c.error,s=c.loading,u=c.results;Object(_.useEffect)((function(){r(i?Object(l.__)("Unfortunately, we're having some trouble retrieving the results for this poll at this time.","crowdsignal-forms"):"")}),[i]);var d=T()("crowdsignal-forms-poll__results",{"is-error":!!i,"is-loading":s}),f=Object(b.sum)(Object(b.values)(u));return Object(a.createElement)("div",{className:d},Object(a.createElement)("div",{className:"crowdsignal-forms-poll__results-list"},Object(b.map)(t,(function(e){var t;return!ke(e)&&Object(a.createElement)(je,{key:e.answerId,error:!!i,loading:s,text:e.text,totalVotes:f,votes:u&&null!==(t=u[e.answerIdFromApi])&&void 0!==t?t:0})}))),Object(a.createElement)("div",{className:"crowdsignal-forms-poll__results-footer"},Object(a.createElement)("span",{className:"crowdsignal-forms-poll__results-total"},Object(l.sprintf)(Object(l._n)("%s total vote","%s total votes",f,"crowdsignal-forms"),f?f.toLocaleString():0)),!o&&Object(a.createElement)(Ce,null)))};xe.propTypes={pollIdFromApi:N.a.number,answers:N.a.arrayOf(N.a.shape({answerId:N.a.string.isRequired,answerIdFromApi:N.a.number,text:N.a.string})).isRequired,setErrorMessage:N.a.func.isRequired,hideBranding:N.a.bool};var Se=xe,Te=n(19),Ie=n.n(Te),Pe=function(e){for(var t=window.getComputedStyle(e).backgroundColor;"rgba(0, 0, 0, 0)"===t&&e.parentNode&&e.parentNode.nodeType===window.Node.ELEMENT_NODE;)e=e.parentNode,t=window.getComputedStyle(e).backgroundColor;return t},Ne=function(){return Object(a.createElement)("div",{className:"crowdsignal-forms__style-probe"},Object(a.createElement)("p",null),Object(a.createElement)("h3",null,"Text"),Object(a.createElement)("div",{className:"wp-block-button"},Object(a.createElement)("div",{className:"wp-block-button__link"})),Object(a.createElement)("div",{className:"entry-content"},Object(a.createElement)("div",{className:"alignwide"})))},Le=function(e){if(null===e)return{};var t,n=e.querySelector(".wp-block-button__link"),r=e.querySelector("p"),o=e.querySelector("h3"),a=e.querySelector(".alignwide"),l=Pe(n),c=Pe(r),i=window.getComputedStyle(r).color;if(l===c){var s=(t=n,"0px"!==window.getComputedStyle(t).borderBlockStartWidth?window.getComputedStyle(t).borderBlockStartColor:null);l=s||i}return{accentColor:l,backgroundColor:c,textColor:i,textColorInverted:window.getComputedStyle(n).color,textFont:window.getComputedStyle(r).fontFamily,textSize:window.getComputedStyle(r).fontSize,headingFont:window.getComputedStyle(o).fontFamily,contentWideWidth:window.getComputedStyle(a).maxWidth}},Ae=function(e){return Object(E.withFallbackStyles)((function(e){return{fallbackStyles:Le(e.querySelector(".crowdsignal-forms__style-probe"))}}))((function(t){var n=t.fallbackStyles,r=Ie()(t,["fallbackStyles"]);return Object(a.createElement)(e,w()({fallbackStyles:n||{},renderStyleProbe:function(){return n?null:Object(a.createElement)(Ne,null)}},r))}))};function Re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var De=function(e){var t=e.answer,n=e.answerStyle,r=e.index,o=e.isMultipleChoice,c=e.onChange,i=e.onDelete,s=e.onNewAnswer,u=e.disabled,f=function(e){return c(r,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Re(Object(n),!0).forEach((function(t){d()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Re(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{text:e}))},m=function(){return i(r)},p=function(){return s(r+1)},g=T()("crowdsignal-forms-poll__answer",{"is-multiple-choice":o,"is-button":pe.BUTTON===n});return Object(a.createElement)("div",{className:g},pe.RADIO===n&&Object(a.createElement)(a.Fragment,null,Object(a.createElement)("span",{className:"crowdsignal-forms-poll__check"}),Object(a.createElement)("div",{className:"crowdsignal-forms-poll__answer-label-wrapper"},u?Object(a.createElement)("span",{className:"crowdsignal-forms-poll__answer-label"},t.text?Object(k.decodeEntities)(t.text):Object(l.__)("Enter an answer","crowdsignal-forms")):Object(a.createElement)(y.RichText,{className:"crowdsignal-forms-poll__answer-label",tagName:"span",placeholder:Object(l.__)("Enter an answer","crowdsignal-forms"),multiline:!1,preserveWhiteSpace:!1,onChange:f,onSplit:p,onReplace:b.noop,onRemove:m,value:t.text,allowedFormats:[],withoutInteractiveFormatting:!0}))),pe.BUTTON===n&&Object(a.createElement)("div",{className:"wp-block-button crowdsignal-forms-poll__block-button"},u?Object(a.createElement)("div",{className:"wp-block-button__link crowdsignal-forms-poll__submit-button"},t.text?Object(k.decodeEntities)(t.text):Object(l.__)("Enter an answer","crowdsignal-forms")):Object(a.createElement)(y.RichText,{className:"wp-block-button__link crowdsignal-forms-poll__submit-button",placeholder:Object(l.__)("Enter an answer","crowdsignal-forms"),multiline:!1,preserveWhiteSpace:!1,onChange:f,onSplit:p,onReplace:b.noop,onRemove:m,value:t.text,allowedFormats:[],withoutInteractiveFormatting:!0,keepPlaceholderOnFocus:!0})))},Be=function(e,t){return Object(b.tap)(e.querySelectorAll("[role=textbox]")[t],(function(e){return e&&e.focus()}))},Fe=function(e){var t=e.attributes,n=e.isSelected,r=e.setAttributes,o=e.disabled,l=e.answerStyle,c=e.buttonAlignment,i=Object(_.useRef)(),u=function(e,n){return r({answers:Object(b.tap)(s()(t.answers),(function(t){t[e]=n}))})},d=function(e){Be(i.current,Math.max(e-1,0)),r({answers:Object(b.filter)(t.answers,(function(n){return t.answers.length<=2||n!==t.answers[e]}))})},f=function(e){e<t.answers.length&&r({answers:[].concat(s()(Object(b.slice)(t.answers,0,e)),[{}],s()(Object(b.slice)(t.answers,e,t.answers.length)))}),Be(i.current,Math.min(e,t.answers.length))},m=n&&Object(b.last)(t.answers).text?[].concat(s()(t.answers),[{}]):t.answers,p=T()({"is-button":pe.BUTTON===l,"is-inline-button-alignment":ge.INLINE===c},"crowdsignal-forms-poll__options"),g=pe.RADIO===l;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)("div",{ref:i,className:p},Object(b.map)(m,(function(e,r){return function(e){return n&&!o||!ke(e)}(e)&&Object(a.createElement)(De,{key:"poll-answer-".concat(r),answer:e,answerStyle:l,index:r,isMultipleChoice:t.isMultipleChoice,onChange:u,onDelete:d,onNewAnswer:f,disabled:o})}))),g&&Object(a.createElement)("div",{className:"crowdsignal-forms-poll__actions"},Object(a.createElement)("div",{className:"wp-block-button crowdsignal-forms-poll__block-button"},o?Object(a.createElement)("div",{className:"wp-block-button__link crowdsignal-forms-poll__submit-button"},t.submitButtonLabel):Object(a.createElement)(y.RichText,{className:"wp-block-button__link crowdsignal-forms-poll__submit-button",onChange:function(e){return r({submitButtonLabel:e})},value:t.submitButtonLabel,allowedFormats:[],multiline:!1,disableLineBreaks:!0}))))},Me=function(e){return Object(b.includes)(se,e)?de[e]:null},He=function(e,t){var n,r,o,a,l=Object(b.isEmpty)(e.textColor)?t.textColor:e.textColor;return Object(b.mapKeys)({borderColor:null!==(n=e.borderColor)&&void 0!==n?n:t.accentColor,borderRadius:"".concat(e.borderRadius,"px"),borderWidth:"".concat(e.borderWidth,"px"),bgColor:e.backgroundColor,bodyFontFamily:null!==(r=Me(e.fontFamily))&&void 0!==r?r:t.textFont,questionFontFamily:null!==(o=Me(e.fontFamily))&&void 0!==o?o:t.headingFont,submitButtonBgColor:e.submitButtonBackgroundColor||t.accentColor,submitButtonTextColor:e.submitButtonTextColor||t.textColorInverted,textColor:l,textColorProperties:null!==(a=Ve(l))&&void 0!==a?a:"0, 0, 0",contentWideWidth:t.contentWideWidth},(function(e,t){return"--crowdsignal-forms-".concat(Object(b.kebabCase)(t))}))},Ve=function(e){return!e||"string"!=typeof e||-1===e.indexOf("rgb")&&0!==e.indexOf("#")||-1<e.indexOf("rgba")?null:(0===e.indexOf("#")&&(e=Ue(e)),e.match(/\((.*?)\)/)[1])},Ue=function(e){var t=0,n=0,r=0,o=4===e.length?"#".concat(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]):e;return 7===o.length&&(t=parseInt(o.substr(1,2),16)||0,n=parseInt(o.substr(3,2),16)||0,r=parseInt(o.substr(5,2),16)||0),"rgb(".concat(t,", ").concat(n,", ").concat(r,")")},We=function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return T()({"has-bg-color":e.backgroundColor,"has-text-color":e.textColor,"has-submit-button-bg-color":e.submitButtonBackgroundColor,"has-submit-button-text-color":e.submitButtonTextColor,"has-border-radius":null!==(t=e.borderRadius)&&void 0!==t&&t,"has-box-shadow":e.hasBoxShadow},r)},ze=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Date;if(fe.CLOSED===e)return!0;if(fe.CLOSED_AFTER===e){var r=new Date(t);return r<n}return!1},Ke=function(e,t){return e.isMultipleChoice?pe.RADIO:!Object(b.isEmpty)(t)&&t.indexOf("is-style-buttons")>-1?pe.BUTTON:pe.RADIO},qe=function(e){e?Object(r.registerBlockStyle)("crowdsignal-forms/poll",{name:"buttons",label:Object(l.__)("Buttons","crowdsignal-forms")}):Object(r.unregisterBlockStyle)("crowdsignal-forms/poll","buttons")},Ge=function(e){var t=e.signalWarning;return Object(a.createElement)("div",{className:"crowdsignal-forms__row"},Object(a.createElement)(E.Button,{href:"https://crowdsignal.com/pricing",isSecondary:!0,target:"_blank"},Object(l.__)("Upgrade","crowdsignal-forms")),t?Object(a.createElement)("div",{className:"crowdsignal-forms__sidebar-promote"},Object(a.createElement)("em",null,Object(l.__)("Your free Crowdsignal account has ","crowdsignal-forms"),Object(a.createElement)("strong",null,Object(a.createElement)(E.ExternalLink,{href:"https://crowdsignal.com/support/what-is-a-signal/"},Object(l.__)("reached the signals limit.","crowdsignal-forms"))))):Object(a.createElement)("div",{className:"crowdsignal-forms__sidebar-promote"},Object(a.createElement)("em",null,Object(l.__)("Hide Crowdsignal branding and get ","crowdsignal-forms"),Object(a.createElement)(E.ExternalLink,{href:"https://crowdsignal.com/support/what-is-a-signal/"},Object(l.__)("unlimited signals","crowdsignal-forms")))))},Ze=function(e){var t,n=e.attributes,r=e.className,o=e.setAttributes,c=e.fallbackBackgroundColor,i=e.fallbackTextColor,s=e.fallbackSubmitButtonBackgroundColor,u=e.fallbackSubmitButtonTextColor,d=e.viewResultsUrl,f=e.shouldPromote,m=e.signalWarning,p=""!==d,g=Ke(n,r);return ie.REDIRECT===n.confirmMessageType&&(n.confirmMessageType=ie.THANK_YOU),Object(a.createElement)(y.InspectorControls,null,Object(a.createElement)(E.PanelBody,{title:Object(l.__)("Results","crowdsignal-forms"),initialOpen:!0},Object(a.createElement)("p",null,p?Object(l.__)("Manage results on ","crowdsignal-forms"):Object(l.__)("Publish this post to enable results on ","crowdsignal-forms"),Object(a.createElement)(E.ExternalLink,{href:"https://www.crowdsignal.com"},"crowdsignal.com")),Object(a.createElement)("p",null,Object(a.createElement)(E.Button,{href:d,isSecondary:!0,target:"_blank",disabled:!p},Object(l.__)("View results","crowdsignal-forms"))),Object(a.createElement)(E.TextControl,{value:Object(k.decodeEntities)(null!==(t=n.title)&&void 0!==t?t:n.question),label:Object(l.__)("Title of the poll block","crowdsignal-forms"),onChange:function(e){return o({title:e})}}),f&&Object(a.createElement)(Ge,{signalWarning:m})),Object(a.createElement)(E.PanelBody,{title:Object(l.__)("Confirmation message","crowdsignal-forms"),initialOpen:!1},Object(a.createElement)(E.SelectControl,{value:n.confirmMessageType,label:Object(l.__)("On submission","crowdsignal-forms"),options:[{label:Object(l.__)("Show results","crowdsignal-forms"),value:ie.RESULTS},{label:Object(l.__)('Show "Thank You" message',"crowdsignal-forms"),value:ie.THANK_YOU},{label:Object(l.__)("Show a custom text message","crowdsignal-forms"),value:ie.CUSTOM_TEXT}],onChange:function(e){return Object(b.includes)(ie,e)&&o({confirmMessageType:e})}}),ie.CUSTOM_TEXT===n.confirmMessageType&&Object(a.createElement)(E.TextareaControl,{value:n.customConfirmMessage,label:Object(l.__)("Message text","crowdsignal-forms"),placeholder:Object(l.__)("Thanks for voting!","crowdsignal-forms"),onChange:function(e){return o({customConfirmMessage:e})}}),ie.REDIRECT===n.confirmMessageType&&Object(a.createElement)(y.URLInput,{className:"crowdsignal-forms__redirect-url",value:n.redirectAddress,label:Object(l.__)("Redirect address","crowdsignal-forms"),onChange:function(e){return o({redirectAddress:e})}})),Object(a.createElement)(E.PanelBody,{title:Object(l.__)("Settings","crowdsignal-forms"),initialOpen:!1},Object(a.createElement)(E.SelectControl,{value:n.pollStatus,label:Object(l.__)("Status","crowdsignal-forms"),options:[{label:Object(l.__)("Open","crowdsignal-forms"),value:fe.OPEN},{label:Object(l.__)("Closed after","crowdsignal-forms"),value:fe.CLOSED_AFTER},{label:Object(l.__)("Closed","crowdsignal-forms"),value:fe.CLOSED}],onChange:function(e){Object(b.includes)(fe,e)&&o({closedAfterDateTime:e===fe.CLOSED_AFTER?new Date((new Date).getTime()+864e5).toISOString():null,pollStatus:e})}}),fe.CLOSED_AFTER===n.pollStatus&&Object(a.createElement)(E.TimePicker,{currentTime:n.closedAfterDateTime,label:Object(l.__)("Close poll on","crowdsignal-forms"),onChange:function(e){var t=new Date(e);o({closedAfterDateTime:t.toISOString()})},is12Hour:!0}),fe.OPEN!==n.pollStatus&&Object(a.createElement)(E.SelectControl,{value:n.closedPollState,label:Object(l.__)("When poll is closed","crowdsignal-forms"),options:[{label:Object(l.__)("Show results","crowdsignal-forms"),value:be.SHOW_RESULTS},{label:Object(l.__)('Show poll with "Closed" banner',"crowdsignal-forms"),value:be.SHOW_CLOSED_BANNER},{label:Object(l.__)("Hide poll","crowdsignal-forms"),value:be.HIDDEN}],onChange:function(e){return Object(b.includes)(be,e)&&o({closedPollState:e})}})),Object(a.createElement)(y.PanelColorSettings,{title:Object(l.__)("Block styling","crowdsignal-forms"),initialOpen:!1,colorSettings:[{value:n.textColor,onChange:function(e){return o({textColor:e})},label:Object(l.__)("Text color","crowdsignal-forms")},{value:n.backgroundColor,onChange:function(e){return o({backgroundColor:e})},label:Object(l.__)("Background color","crowdsignal-forms")},{value:n.borderColor,onChange:function(e){return o({borderColor:e})},label:Object(l.__)("Border color","crowdsignal-forms")}]},Object(a.createElement)(y.ContrastChecker,{textColor:n.textColor,backgroundColor:n.backgroundColor,fallbackBackgroundColor:c,fallbackTextColor:i}),Object(a.createElement)(E.SelectControl,{value:n.fontFamily,label:Object(l.__)("Choose font","crowdsignal-forms"),options:[{label:Object(l.__)("Default theme font","crowdsignal-forms"),value:se.THEME_DEFAULT},{label:"Alegreya Sans",value:se.ALEGREYA_SANS},{label:"Arial",value:se.ARIAL},{label:"Cabin",value:se.CABIN},{label:"Chivo",value:se.CHIVO},{label:"Courier",value:se.COURIER},{label:"Fira Sans",value:se.FIRA_SANS},{label:"Georgia",value:se.GEORGIA},{label:"Impact",value:se.IMPACT},{label:"Josefin Sans",value:se.JOSEFIN_SANS},{label:"Lato",value:se.LATO},{label:"Libre Franklin",value:se.LIBRE_FRANKLIN},{label:"Lucida",value:se.LUCIDA},{label:"Montserrat",value:se.MONTSERRAT},{label:"Nunito",value:se.NUNITO},{label:"Open Sans",value:se.OPEN_SANS},{label:"Oswald",value:se.OSWALD},{label:"Overpass",value:se.OVERPASS},{label:"Palatino",value:se.PALATINO},{label:"Poppins",value:se.POPPINS},{label:"Raleway",value:se.RALEWAY},{label:"Roboto",value:se.ROBOTO},{label:"Rubik",value:se.RUBIK},{label:"Tahoma",value:se.TAHOMA},{label:"Times New Roman",value:se.TIMES_NEW_ROMAN},{label:"Trebuchet",value:se.TREBUCHET},{label:"Verdana",value:se.VERDANA}],onChange:function(e){return Object(b.includes)(se,e)&&o({fontFamily:e})}}),"full"!==n.align&&Object(a.createElement)("div",{className:"crowdsignal-forms__row"},Object(a.createElement)(E.TextControl,{type:"number",label:Object(l.__)("Width (%)","crowdsignal-forms"),value:n.width,onChange:function(e){return o({width:parseInt(e,10)})}}),Object(a.createElement)(E.Button,{isSmall:!0,className:"crowdsignal-forms__reset-width-button",onClick:function(){return o({width:100})}},Object(l.__)("Reset","crowdsignal-forms"))),Object(a.createElement)("div",{className:"crowdsignal-forms__row"},Object(a.createElement)(E.TextControl,{label:Object(l.__)("Border thickness","crowdsignal-forms"),value:n.borderWidth,onChange:function(e){o({borderWidth:parseInt(e,10)||0})},type:"number",className:"crowdsignal-forms__small-text-input"}),Object(a.createElement)(E.TextControl,{label:Object(l.__)("Corner radius","crowdsignal-forms"),value:n.borderRadius,onChange:function(e){o({borderRadius:parseInt(e,10)||0})},type:"number",className:"crowdsignal-forms__small-text-input"})),Object(a.createElement)(E.ToggleControl,{label:Object(l.__)("Drop shadow","crowdsignal-forms"),checked:n.hasBoxShadow,onChange:function(e){o({hasBoxShadow:e})}})),Object(a.createElement)(y.PanelColorSettings,{title:Object(l.__)("Button styling","crowdsignal-forms"),initialOpen:!1,colorSettings:[{value:n.submitButtonTextColor,onChange:function(e){return o({submitButtonTextColor:e})},label:Object(l.__)("Text color","crowdsignal-forms")},{value:n.submitButtonBackgroundColor,onChange:function(e){return o({submitButtonBackgroundColor:e})},label:Object(l.__)("Background color","crowdsignal-forms")}]},Object(a.createElement)(y.ContrastChecker,{textColor:n.submitButtonTextColor,backgroundColor:n.submitButtonBackgroundColor,fallbackBackgroundColor:s,fallbackTextColor:u}),pe.BUTTON===g&&Object(a.createElement)(E.SelectControl,{value:n.buttonAlignment,label:Object(l.__)("Alignment","crowdsignal-forms"),options:[{value:ge.LIST,label:Object(l.__)("List","crowdsignal-forms")},{value:ge.INLINE,label:Object(l.__)("Inline","crowdsignal-forms")}],onChange:function(e){return o({buttonAlignment:e})}})),Object(a.createElement)(E.PanelBody,{title:Object(l.__)("Answer settings","crowdsignal-forms"),initialOpen:!0},Object(a.createElement)(E.CheckboxControl,{checked:n.hasOneResponsePerComputer,label:Object(l.__)("One response per computer","crowdsignal-forms"),onChange:function(e){return o({hasOneResponsePerComputer:e})}}),Object(a.createElement)(E.CheckboxControl,{checked:n.randomizeAnswers,label:Object(l.__)("Randomize answer order","crowdsignal-forms"),onChange:function(e){return o({randomizeAnswers:e})}})))};function Ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Qe=[{icon:function(){return Object(a.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)("path",{d:"M20 6.75H12V5.25H20V6.75Z"}),Object(a.createElement)("path",{d:"M20 12.5H12V11H20V12.5Z"}),Object(a.createElement)("path",{d:"M20 18.75H12V17.25H20V18.75Z"}),Object(a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 7C6.55228 7 7 6.55228 7 6C7 5.44772 6.55228 5 6 5C5.44772 5 5 5.44772 5 6C5 6.55228 5.44772 7 6 7ZM6 8C7.10457 8 8 7.10457 8 6C8 4.89543 7.10457 4 6 4C4.89543 4 4 4.89543 4 6C4 7.10457 4.89543 8 6 8Z"}),Object(a.createElement)("path",{d:"M6 12.75C6.55228 12.75 7 12.3023 7 11.75C7 11.1977 6.55228 10.75 6 10.75C5.44772 10.75 5 11.1977 5 11.75C5 12.3023 5.44772 12.75 6 12.75ZM6 13.75C7.10457 13.75 8 12.8546 8 11.75C8 10.6454 7.10457 9.75 6 9.75C4.89543 9.75 4 10.6454 4 11.75C4 12.8546 4.89543 13.75 6 13.75Z"}),Object(a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 19C6.55228 19 7 18.5523 7 18C7 17.4477 6.55228 17 6 17C5.44772 17 5 17.4477 5 18C5 18.5523 5.44772 19 6 19ZM6 20C7.10457 20 8 19.1046 8 18C8 16.8954 7.10457 16 6 16C4.89543 16 4 16.8954 4 18C4 19.1046 4.89543 20 6 20Z"}))},title:Object(l.__)("Choose one answer","crowdsignal-forms"),value:!1},{icon:function(){return Object(a.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 10.75H5V12.75H7V10.75ZM4 9.75V13.75H8V9.75H4Z"}),Object(a.createElement)("path",{d:"M4 4H8V8H4V4Z"}),Object(a.createElement)("path",{d:"M4 16H8V20H4V16Z"}),Object(a.createElement)("path",{d:"M20 6.75H12V5.25H20V6.75Z"}),Object(a.createElement)("path",{d:"M20 12.5H12V11H20V12.5Z"}),Object(a.createElement)("path",{d:"M20 18.75H12V17.25H20V18.75Z"}))},title:Object(l.__)("Choose multiple answers","crowdsignal-forms"),value:!0}],Je=function(e){var t=e.attributes,n=e.setAttributes,r=Object(b.map)(Qe,(function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ye(Object(n),!0).forEach((function(t){d()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ye(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{isActive:e.value===t.isMultipleChoice,onClick:function(){n({isMultipleChoice:e.value}),qe(e.value)}})}));return Object(a.createElement)(y.BlockControls,null,Object(a.createElement)(E.Toolbar,{controls:r}))},Xe=function(e){var t=e.children;return Object(a.createElement)("div",{className:"crowdsignal-forms-poll__error-banner"},t)},$e="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),et=new Uint8Array(16);function tt(){if(!$e)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return $e(et)}for(var nt=[],rt=0;rt<256;++rt)nt.push((rt+256).toString(16).substr(1));var ot=function(e,t){var n=t||0;return(nt[e[n+0]]+nt[e[n+1]]+nt[e[n+2]]+nt[e[n+3]]+"-"+nt[e[n+4]]+nt[e[n+5]]+"-"+nt[e[n+6]]+nt[e[n+7]]+"-"+nt[e[n+8]]+nt[e[n+9]]+"-"+nt[e[n+10]]+nt[e[n+11]]+nt[e[n+12]]+nt[e[n+13]]+nt[e[n+14]]+nt[e[n+15]]).toLowerCase()};var at=function(e,t,n){var r=(e=e||{}).random||(e.rng||tt)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return ot(r)},lt=function(e){var t=e.onEditClick;return Object(a.createElement)("div",{className:"crowdsignal-forms-poll__edit-bar"},Object(a.createElement)("div",{className:"crowdsignal-forms-poll__edit-bar-message"},Object(l.__)("Warning! This poll is published. Deleting or reordering answers may cause the loss of existing responses.","crowdsignal-forms")),Object(a.createElement)("button",{className:"crowdsignal-forms-poll__edit-bar-button",onClick:function(){t()}},Object(l.__)("Edit","crowdsignal-forms")))},ct=function(e){var t=e.blockIcon,n=e.blockName,r=e.children,o=function(){var e=Object(_.useState)(!0),t=j()(e,2),n=t[0],r=t[1],o=Object(_.useState)(!0),a=j()(o,2),l=a[0],c=a[1],i=function(){var e=D()(A.a.mark((function e(){var t,n,o;return A.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ae();case 2:return t=e.sent,n=me.CONNECTED===t||me.NOT_VERIFIED===t,o=me.CONNECTED===t,r(n),c(o),e.abrupt("return",{isNowConnected:n,isNowVerified:o});case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return Object(_.useEffect)((function(){i()}),[]),{isConnected:n,isAccountVerified:l,checkIsConnected:i}}(),c=o.isConnected,i=o.isAccountVerified,s=o.checkIsConnected,u=function(){var e=D()(A.a.mark((function e(){var t,n,r,o;return A.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=c,e.next=3,s();case 3:n=e.sent,r=n.isNowConnected,o=n.isNowVerified,r||window.open("/wp-admin/admin.php?page=crowdsignal-forms-setup"),t&&!o&&window.open("https://wordpress.com/me/account");case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();if(c&&i)return r;var d=!c,f=c&&!i;return Object(a.createElement)("div",{className:"crowdsignal-forms__connect-to-crowdsignal"},Object(a.createElement)("div",{className:"crowdsignal-forms__connect-to-crowdsignal-header"},t,Object(a.createElement)("div",{className:"crowdsignal-forms__connect-to-crowdsignal-title"},n)),Object(a.createElement)("div",{className:"crowdsignal-forms__connect-to-crowdsignal-body"},d&&Object(l.__)("You need to connect to a Crowdsignal account to collect and manage your results.","crowdsignal-forms"),f&&Object(l.__)("Please verify your WordPress.com email address in order to publish your poll.","crowdsignal-forms")),Object(a.createElement)(E.Button,{isPrimary:!0,onClick:u},d&&Object(l.__)("Connect to Crowdsignal","crowdsignal-forms"),f&&Object(l.__)("Verify or Change your Email Address","crowdsignal-forms")))};function it(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function st(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?it(Object(n),!0).forEach((function(t){d()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):it(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ut=function(e){return"crowdsignal-forms/poll"===e.name||"crowdsignal-forms/applause"===e.name||"crowdsignal-forms/vote"===e.name},dt=!1,ft=!1;!function(){if(!dt){dt=!0;var e=Object(f.select)("core/editor"),t=e.isEditedPostDirty,n=e.isEditedPostNew,r=e.isSavingPost,o=e.isCleanNewPost,a=e.getCurrentPostId,l=Object(f.dispatch)("crowdsignal-forms/polls"),c=l.setTryFetchPollData,i=l.setPollApiDataForClientId,s=l.setIsFetchingPollData,u=Object(f.select)("crowdsignal-forms/polls"),d=u.shouldTryFetchingPollData,m=u.getPollDataByClientId,p=u.isFetchingPollData;Object(f.subscribe)((function(){var e=Object(b.filter)(Object(f.select)("core/block-editor").getBlocks(),ut);if(!(e.length<1)&&(!p()&&!(o()||n()||r()||t())&&a())){var l=Object(b.filter)(e,(function(e){var t=e.attributes;return t.pollId&&null===m(t.pollId)}));l.length<1||(d()?p()||(s(!0),Promise.all(Object(b.map)(l,(function(e){var t=e.attributes.pollId;return Q()({path:"/crowdsignal-forms/v1/polls/".concat(t,"?cached=1"),method:"GET"}).then((function(e){return i(t,st({},e,{viewResultsUrl:"https://app.crowdsignal.com/polls/".concat(e.id,"/results")}))}),(function(){return i(t,null)}))}))).finally((function(){return s(!1)}))):c(!0))}}))}}();var bt=function(e){return function(t){var n=t.attributes,r=t.setAttributes,o=t.addPollClientId,l=t.removePollClientId;return Object(_.useEffect)((function(){return("p2tenberg"in window||"p2editor"in window)&&function(){if(!ft){ft=!0;var e=null,t=function(){null!==e&&clearTimeout(e),e=setTimeout((function(){return n()}),1e3+1e3*Math.random())},n=function(){var e=Object(f.select)("crowdsignal-forms/polls"),n=e.getPollClientIds,r=e.getPollDataByClientId,o=e.shouldTryFetchingPollData,a=e.isFetchingPollData,l=Object(b.filter)(n(),(function(e){return null===r(e)}));if(l.length<1)return t();var c=Object(f.dispatch)("crowdsignal-forms/polls"),i=c.setTryFetchPollData,s=c.setPollApiDataForClientId,u=c.setIsFetchingPollData;return o()?a()||(u(!0),Promise.all(Object(b.map)(l,(function(e){return Q()({path:"/crowdsignal-forms/v1/polls/".concat(e,"?cached=1"),method:"GET"}).then((function(t){return s(e,st({},t,{viewResultsUrl:"https://app.crowdsignal.com/polls/".concat(t.id,"/results")}))}),(function(){return s(e,null)}))}))).finally((function(){return u(!1)}))):i(!0),t()};n()}}(),n.pollId&&o(n.pollId),function(){n.pollId&&l(n.pollId)}}),[]),function(e,t,n,r){Object(_.useEffect)((function(){if(!Object(b.isEmpty)(t))if(window.csPolls||(window.csPolls={}),window.csPolls[t])if(window.csPolls[t].indexOf(e)>-1);else{var o=Object(b.map)(n,(function(e){return Object(b.omit)(e,["answerId"])}));r({pollId:null,answers:o})}else window.csPolls[t]=[e]}),[t])}(t.clientId,n.pollId,n.answers,r),Object(a.createElement)(e,t)}},mt=function(e){return Object(x.compose)([Object(f.withSelect)((function(e,t){var n=e("crowdsignal-forms/polls"),r=n.getPollDataByClientId,o=n.shouldTryFetchingPollData,a=n.isFetchingPollData,l=t.attributes;return{pollDataFromApi:l.pollId?r(l.pollId):null,getPollDataByClientId:r,shouldTryFetchingPollData:o,isFetchingPollData:a}})),Object(f.withDispatch)((function(e){var t=e("crowdsignal-forms/polls");return{setTryFetchPollData:t.setTryFetchPollData,setPollApiDataForClientId:t.setPollApiDataForClientId,setIsFetchingPollData:t.setIsFetchingPollData,addPollClientId:t.addPollClientId,removePollClientId:t.removePollClientId}})),bt])(e)},pt=function(e){var t=e.icon,n=e.children,r=e.componentActions,o=void 0===r?[]:r,l=Ie()(e,["icon","children","componentActions"]);return Object(a.createElement)(E.Notice,w()({className:"crowdsignal-forms__editor-notice"},l),t&&Object(a.createElement)("div",{className:"crowdsignal-forms__editor-notice-icon"},Object(a.createElement)(E.Icon,{icon:t})),Object(a.createElement)("div",{className:"crowdsignal-forms__editor-notice-text"},n),o.map((function(e){return e})))},gt=function(){return Object(a.createElement)(pt,{icon:"warning",status:"warn",isDismissible:!1,actions:[{label:Object(l.__)("Please upgrade","crowdsignal-forms"),url:"https://crowdsignal.com/pricing",className:"is-secondary",noDefaultClasses:!0}]},Object(l.__)("Your free Crowdsignal account has ","crowdsignal-forms"),Object(a.createElement)(E.ExternalLink,{href:"https://crowdsignal.com/support/what-is-a-signal/"},Object(l.__)("exceeded 2500 signals.","crowdsignal-forms")))};function Ot(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var vt=Object(x.compose)([Ae,mt,function(e){return function(t){var n=t.attributes,r=t.setAttributes;return Object(_.useEffect)((function(){if(!n.pollId){var e=at();r({pollId:e})}if(Object(b.some)(n.answers,(function(e){return!e.answerId&&e.text}))){var t=Object(b.map)(n.answers,(function(e){return e.answerId||!e.text?e:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ot(Object(n),!0).forEach((function(t){d()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ot(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{answerId:at()})}));r({answers:t})}})),Object(a.createElement)(e,t)}}])((function(e){var t=e.attributes,n=e.className,r=e.fallbackStyles,o=e.isSelected,i=e.setAttributes,s=e.renderStyleProbe,u=e.pollDataFromApi,d=Object(_.useState)(!0),f=j()(d,2),m=f[0],p=f[1],g=Object(_.useState)(""),O=j()(g,2),v=O[0],h=O[1],C=!Object(b.isEmpty)(u),x=u?u.viewResultsUrl:"",S=u?u.id:null,T={};u&&Object(b.map)(u.answers,(function(e){T[e.client_id]=e.id}));var P=o&&"full"!==t.align,N="full"!==t.align?"".concat(t.width,"%"):"auto",L=ze(t.pollStatus,t.closedAfterDateTime),A=t.note||o&&m,R=L&&be.SHOW_RESULTS===t.closedPollState,D=L&&be.HIDDEN===t.closedPollState,B=we(),F=Object(b.get)(B,"capabilities").includes("hide-branding");Object(_.useEffect)((function(){return p(!C)}),[o]),Object(_.useEffect)((function(){o&&qe(!t.isMultipleChoice)}),[t.isMultipleChoice,o]);var M=o&&C&&!m,H=Ke(t,n);t.fontFamily&&function(e){if(!Object(b.isEmpty)(e)&&se.THEME_DEFAULT!==e&&-1!==ue.indexOf(e)){var t="https://fonts.googleapis.com/css2?family=".concat(e,":wght@400;600;700&display=swap");0===Object(b.filter)(Array.from(document.head.childNodes),(function(e){return"link"===e.nodeName.toLowerCase()&&e.href===t})).length&&document.head.appendChild(Object(b.tap)(document.createElement("link"),(function(e){e.type="text/css",e.rel="stylesheet",e.href=t})))}}(t.fontFamily);var V=Object(b.get)(B,["signalCount","shouldDisplay"]),U=V&&Object(b.get)(B,["signalCount","count"])>=Object(b.get)(B,["signalCount","userLimit"]);return Object(a.createElement)(ct,{blockIcon:Object(a.createElement)(c,null),blockName:Object(l.__)("Crowdsignal Poll","crowdsignal-forms")},Object(a.createElement)(Je,e),Object(a.createElement)(Ze,w()({},e,{viewResultsUrl:x,shouldPromote:V,signalWarning:U})),U&&Object(a.createElement)(gt,null),Object(a.createElement)(E.ResizableBox,{className:"crowdsignal-forms-poll__resize-wrapper",size:{height:"auto",width:N},minWidth:"25%",maxWidth:"100%",enable:{left:!0,right:!0},onResizeStop:function(e,t,n){"right"!==t&&"left"!==t||i({width:Object(b.round)(n.offsetWidth/n.parentNode.offsetWidth*100)})},showHandle:P,resizeRatio:2},Object(a.createElement)("div",{className:We(t,n,{"is-selected-in-editor":o,"is-closed":L,"is-hidden":D},"crowdsignal-forms-poll"),style:He(t,r)},M&&Object(a.createElement)(lt,{onEditClick:function(){p(!0)}}),v&&Object(a.createElement)(Xe,null,v),Object(a.createElement)("div",{className:"crowdsignal-forms-poll__content"},m?Object(a.createElement)(y.RichText,{tagName:"h3",className:"crowdsignal-forms-poll__question",placeholder:Object(l.__)("Enter your question","crowdsignal-forms"),onChange:function(e){return i({question:e})},value:t.question,allowedFormats:[]}):Object(a.createElement)(y.RichText.Content,{tagName:"h3",className:"crowdsignal-forms-poll__question",placeholder:Object(l.__)("Enter your question","crowdsignal-forms"),value:Object(k.decodeEntities)(t.question)}),A&&(m?Object(a.createElement)(y.RichText,{tagName:"p",className:"crowdsignal-forms-poll__note",placeholder:Object(l.__)("Add a note (optional)","crowdsignal-forms"),onChange:function(e){return i({note:e})},value:t.note,allowedFormats:[]}):Object(a.createElement)(y.RichText.Content,{tagName:"div",className:"crowdsignal-forms-poll__note",placeholder:Object(l.__)("Add a note (optional)","crowdsignal-forms"),value:Object(k.decodeEntities)(t.note)})),!R&&Object(a.createElement)(Fe,w()({},e,{setAttributes:i,disabled:!m,answerStyle:H,buttonAlignment:t.buttonAlignment})),R&&Object(a.createElement)(Se,{answers:Ee(Object(b.filter)(t.answers,(function(e){return!ke(e)})),T),pollIdFromApi:S,hideBranding:F,setErrorMessage:h}),!F&&Object(a.createElement)(Ce,{editing:!0})),L&&Object(a.createElement)(I,{isPollHidden:D,isPollClosed:L}),s())))})),wt={pollId:{type:"string",default:null},isMultipleChoice:{type:"boolean",default:!1},title:{type:"string",default:null},question:{type:"string",default:""},note:{type:"string",default:""},answers:{type:"array",default:[{},{},{}],items:{type:"object",properties:{answerId:{type:"string",default:null},text:{type:"string",default:""}}}},submitButtonLabel:{type:"string",default:Object(l.__)("Submit","crowdsignal-forms")},submitButtonTextColor:{type:"string"},submitButtonBackgroundColor:{type:"string"},confirmMessageType:{type:"string",default:ie.RESULTS},customConfirmMessage:{type:"string"},redirectAddress:{type:"string"},textColor:{type:"string"},backgroundColor:{type:"string"},borderColor:{type:"string"},borderWidth:{type:"number",default:2},borderRadius:{type:"number",default:0},hasBoxShadow:{type:"boolean",default:!1},fontFamily:{type:"string",default:se.THEME_DEFAULT},hasOneResponsePerComputer:{type:"boolean",default:!1},randomizeAnswers:{type:"boolean",default:!1},align:{type:"string"},width:{type:"number",default:100},pollStatus:{type:"string",default:fe.OPEN},closedPollState:{type:"string",default:be.SHOW_RESULTS},closedAfterDateTime:{type:"string",default:null},hideBranding:{type:"boolean",default:!1},buttonAlignment:{type:"string",default:ge.LIST}},ht={title:Object(l.__)("Poll","crowdsignal-forms"),description:Object(l.__)("Create polls and get your audience’s opinion — powered by Crowdsignal.","crowdsignal-forms"),category:"crowdsignal-forms",keywords:[Object(l.__)("ask","crowdsignal-forms"),"crowdsignal",Object(l.__)("feedback","crowdsignal-forms"),Object(l.__)("form","crowdsignal-forms"),Object(l.__)("opinion","crowdsignal-forms"),Object(l.__)("poll","crowdsignal-forms"),Object(l.__)("pop","crowdsignal-forms"),Object(l.__)("question","crowdsignal-forms"),Object(l.__)("quiz","crowdsignal-forms"),Object(l.__)("research","crowdsignal-forms"),Object(l.__)("survey","crowdsignal-forms"),Object(l.__)("vote","crowdsignal-forms")],icon:Object(a.createElement)(c,null),edit:vt,attributes:wt,supports:{align:["center","wide","full"]},getEditWrapperProps:function(e){return{"data-align":e.align}},example:{attributes:{question:Object(l.__)("How did you hear about us?","crowdsignal-forms"),answers:[{text:Object(l.__)("Search","crowdsignal-forms")},{text:Object(l.__)("Friend","crowdsignal-forms")},{text:Object(l.__)("Email","crowdsignal-forms")}]}},styles:[{name:"default",label:Object(l.__)("Default","crowdsignal-forms"),isDefault:!0}]},jt=function(){return Object(a.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)("mask",{id:"maskVote","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"3",y:"3",width:"18",height:"18"},Object(a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.5999 9.525H13.3942L14.1779 5.75475L14.2027 5.49075C14.2027 5.1525 14.0624 4.839 13.8397 4.61625L12.9652 3.75L7.53666 9.18675C7.23142 9.48374 7.04992 9.89621 7.04991 10.3499H3.75V18.6824H7.05V18.6178C7.05963 19.5172 7.79834 20.25 8.69991 20.25H16.1249C16.8097 20.25 17.3954 19.8375 17.6429 19.2435L20.1344 13.4273C20.2087 13.2375 20.2499 13.0395 20.2499 12.825V11.175C20.2499 10.2675 19.5074 9.525 18.5999 9.525ZM7.05 18.6178V10.3499H7.04991C7.04991 10.35 7.04991 10.35 7.04991 10.35V18.6C7.04991 18.6059 7.04994 18.6119 7.05 18.6178ZM18.5999 12.825L16.1249 18.6H8.69986V10.35L12.2804 6.76952L11.3646 11.175H18.5999V12.825Z",fill:"white"})),Object(a.createElement)("g",{mask:"url(#maskVote)"},Object(a.createElement)("rect",{x:"1.00024",y:"1.25",width:"22",height:"22"})))},_t=Object.freeze({OPEN:"open",CLOSED:"closed",CLOSED_AFTER:"closed-after"}),Ct=(Object.freeze({CONNECTED:"connected",NOT_CONNECTED:"not-connected",NOT_VERIFIED:"not-verified"}),[{title:Object(l.__)("Small","crowdsignal-forms"),size:"small"},{title:Object(l.__)("Medium","crowdsignal-forms"),size:"medium"},{title:Object(l.__)("Large","crowdsignal-forms"),size:"large"}]),yt={position:"bottom right",isAlternate:!0,className:"crowdsignal-forms-vote__size-dropdown"},Et=function(e){var t=e.attributes,n=e.setAttributes,r=e.viewResultsUrl,o=e.signalWarning,c=e.shouldPromote,i=""!==r;return Object(a.createElement)(y.InspectorControls,null,Object(a.createElement)(E.PanelBody,{title:Object(l.__)("Results","crowdsignal-forms"),initialOpen:!0},Object(a.createElement)("p",null,i?Object(l.__)("Manage results on ","crowdsignal-forms"):Object(l.__)("Publish this post to enable results on ","crowdsignal-forms"),Object(a.createElement)(E.ExternalLink,{href:"https://www.crowdsignal.com"},"crowdsignal.com")),Object(a.createElement)("p",null,Object(a.createElement)(E.Button,{href:r,isSecondary:!0,target:"_blank",disabled:!i},Object(l.__)("View results","crowdsignal-forms"))),Object(a.createElement)(E.TextControl,{value:t.title,label:Object(l.__)("Title of the vote block","crowdsignal-forms"),onChange:function(e){return n({title:e})}}),c&&Object(a.createElement)(Ge,{signalWarning:o})),Object(a.createElement)(E.PanelBody,{title:Object(l.__)("Settings","crowdsignal-forms")},Object(a.createElement)(E.SelectControl,{value:t.pollStatus,label:Object(l.__)("Status","crowdsignal-forms"),options:[{label:Object(l.__)("Open","crowdsignal-forms"),value:_t.OPEN},{label:Object(l.__)("Closed after","crowdsignal-forms"),value:_t.CLOSED_AFTER},{label:Object(l.__)("Closed","crowdsignal-forms"),value:_t.CLOSED}],onChange:function(e){Object(b.includes)(_t,e)&&n({closedAfterDateTime:e===_t.CLOSED_AFTER?new Date((new Date).getTime()+864e5).toISOString():null,pollStatus:e})}}),_t.CLOSED_AFTER===t.pollStatus&&Object(a.createElement)(E.TimePicker,{currentTime:t.closedAfterDateTime,label:Object(l.__)("Close vote block on","crowdsignal-forms"),onChange:function(e){var t=new Date(e);n({closedAfterDateTime:t.toISOString()})},is12Hour:!0})))},kt=function(){return Object(a.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.1894 5.75L13.6668 5.75L13.6668 4.25H19.0002H19.7502L19.7502 5V10.3333H18.2502V6.81054L6.81072 18.25L10.3333 18.25V19.75L5 19.75H4.25V19V13.6666L5.75 13.6666L5.75 17.1894L17.1894 5.75Z"}))},xt=function(){return Object(a.createElement)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)("line",{x1:"8",y1:"8.5",x2:"24",y2:"8.5",stroke:"currentColor"}),Object(a.createElement)("line",{x1:"8",y1:"15",x2:"24",y2:"15",stroke:"currentColor",strokeWidth:"2"}),Object(a.createElement)("line",{x1:"8",y1:"22.5",x2:"24",y2:"22.5",stroke:"currentColor",strokeWidth:"3"}))},St=function(){return Object(a.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)("path",{d:"M12.0078 18.2266C14.7656 18.2266 16.4062 15.9531 16.4062 12.3438C16.4062 8.73438 14.75 6.5 12.0078 6.5C9.25781 6.5 7.59375 8.75 7.59375 12.3516C7.59375 15.9688 9.24219 18.2266 12.0078 18.2266ZM12.0078 16.5781C10.5078 16.5781 9.625 15 9.625 12.3438C9.625 9.73438 10.5234 8.14844 12.0078 8.14844C13.4844 8.14844 14.3672 9.71875 14.3672 12.3516C14.3672 15.0078 13.5 16.5781 12.0078 16.5781Z"}))};function Tt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var It=function(e){var t=e.attributes,n=e.setAttributes,r=Object(b.get)(t,"size","medium"),o=Ct,c=Object(_.useState)(!1),i=j()(c,2),s=i[0],u=i[1],f=function(){return u(!s)},m=t.hideResults?Object(l.__)("Show vote counters","crowdsignal-forms"):Object(l.__)("Hide vote counters","crowdsignal-forms");return Object(a.createElement)(y.BlockControls,null,Object(a.createElement)(E.ToolbarGroup,{isCollapsed:!0,icon:kt,label:Object(l.__)("Change block size","crowdsignal-forms"),popoverProps:yt,controls:o.map((function(e){var t=e.size;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tt(Object(n),!0).forEach((function(t){d()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{isActive:r===t,role:"menuitemradio",onClick:function(){return n({size:t})}})}))}),Object(a.createElement)(E.Toolbar,{controls:[{icon:xt,onClick:f},{icon:St,label:m,onClick:function(){return n({hideResults:!t.hideResults})},isActive:!t.hideResults,isPressed:!t.hideResults}]}),s&&Object(a.createElement)(E.Popover,{className:"crowdsignal-forms__border-popover",onFocusOutside:f},Object(a.createElement)("div",{className:"crowdsignal-forms__row"},Object(a.createElement)(E.TextControl,{label:Object(l.__)("Border thickness","crowdsignal-forms"),type:"number",className:"crowdsignal-forms__small-text-input",onChange:function(e){n({borderWidth:parseInt(e,10)||0})},value:t.borderWidth||0}),Object(a.createElement)(E.TextControl,{label:Object(l.__)("Corner radius","crowdsignal-forms"),type:"number",className:"crowdsignal-forms__small-text-input",onChange:function(e){n({borderRadius:parseInt(e,10)||0})},value:t.borderRadius||0}))))},Pt=function(e){return function(t){return function(n){var r=n.attributes,o=n.setAttributes;return Object(_.useEffect)((function(){Object(b.forEach)(e,(function(e){r[e]||o(d()({},e,at()))}))}),[]),Object(a.createElement)(t,n)}}},Nt=function(e,t,n,r){return Object(_.useEffect)((function(){Object(b.isEmpty)(window.csBlockTypeCount)&&(window.csBlockTypeCount={}),Object(b.isNil)(window.csBlockTypeCount[e])&&(window.csBlockTypeCount[e]=0),window.csBlockTypeCount[e]++,null===n.title&&(1===window.csBlockTypeCount[e]?r({title:t}):r({title:"".concat(t," ").concat(window.csBlockTypeCount[e])}))}),[])},Lt=Object(x.compose)([mt,Pt(["pollId"])])((function(e){var t=e.attributes,n=e.setAttributes,r=e.className,o=e.pollDataFromApi;Nt(e.name,Object(l.__)("Untitled Vote","crowdsignal-forms"),t,n);var c=o?o.viewResultsUrl:"",i=ze(t.pollStatus,t.closedAfterDateTime),s=T()(r,"crowdsignal-forms-vote","size-".concat(t.size),{"no-results":t.hideResults,"is-closed":i}),u=function(e){return Object(b.mapKeys)({borderRadius:"".concat(e.borderRadius,"px"),borderWidth:"".concat(e.borderWidth,"px")},(function(e,t){return"--crowdsignal-forms-vote-".concat(Object(b.kebabCase)(t))}))}(t),d=we(),f=Object(b.get)(d,["signalCount","shouldDisplay"]),m=f&&Object(b.get)(d,["signalCount","count"])>=Object(b.get)(d,["signalCount","userLimit"]);return Object(a.createElement)(ct,{blockIcon:null,blockName:Object(l.__)("Crowdsignal Vote","crowdsignal-forms")},Object(a.createElement)(Et,w()({},e,{shouldPromote:f,signalWarning:m,viewResultsUrl:c})),Object(a.createElement)(It,e),Object(a.createElement)("div",{className:s,style:u},Object(a.createElement)("div",{className:"crowdsignal-forms-vote__items"},Object(a.createElement)(y.InnerBlocks,{template:[["crowdsignal-forms/vote-item",{type:"up"}],["crowdsignal-forms/vote-item",{type:"down"}]],templateInsertUpdatesSelection:!1,templateLock:"insert",allowedBlocks:["crowdsignal-forms/vote-item"],orientation:"horizontal",__experimentalMoverDirection:"horizontal"}))))})),At={pollId:{type:"string",default:null},hideBranding:{type:"boolean",default:!1},title:{type:"string",default:null},pollStatus:{type:"string",default:_t.OPEN},closedAfterDateTime:{type:"string",default:null},size:{type:"string",default:"medium"},borderWidth:{type:"number",default:1},borderRadius:{type:"number",default:5},hideResults:{type:"boolean",default:!1}},Rt={title:Object(l.__)("Vote","crowdsignal-forms"),description:Object(l.__)("Allow your audience to rate your work or express their opinion — powered by Crowdsignal.","crowdsignal-forms"),category:"crowdsignal-forms",keywords:[Object(l.__)("ballot","crowdsignal-forms"),Object(l.__)("button","crowdsignal-forms"),Object(l.__)("count","crowdsignal-forms"),"crowdsignal",Object(l.__)("deciding","crowdsignal-forms"),Object(l.__)("decision","crowdsignal-forms"),Object(l.__)("elect","crowdsignal-forms"),Object(l.__)("election","crowdsignal-forms"),Object(l.__)("feedback","crowdsignal-forms"),Object(l.__)("form","crowdsignal-forms"),Object(l.__)("like","crowdsignal-forms"),Object(l.__)("nero","crowdsignal-forms"),Object(l.__)("opinion","crowdsignal-forms"),Object(l.__)("poll","crowdsignal-forms"),Object(l.__)("polling","crowdsignal-forms"),Object(l.__)("rate","crowdsignal-forms"),Object(l.__)("rating","crowdsignal-forms"),Object(l.__)("research","crowdsignal-forms"),Object(l.__)("survey","crowdsignal-forms"),Object(l.__)("thumb down","crowdsignal-forms"),Object(l.__)("thumb up","crowdsignal-forms"),Object(l.__)("thumbs","crowdsignal-forms"),Object(l.__)("vote","crowdsignal-forms"),Object(l.__)("voting","crowdsignal-forms")],icon:Object(a.createElement)(jt,null),edit:Lt,save:function(){return Object(a.createElement)(y.InnerBlocks.Content,null)},attributes:At,example:{attributes:{className:"crowdsignal-forms-vote__example",size:"large"}}},Dt=function(e){var t=e.attributes,n=e.setAttributes;return Object(a.createElement)(y.InspectorControls,null,Object(a.createElement)(y.PanelColorSettings,{title:Object(l.__)("Styling","crowdsignal-forms"),initialOpen:!0,colorSettings:[{value:t.textColor,onChange:function(e){return n({textColor:e})},label:Object(l.__)("Text color","crowdsignal-forms")},{value:t.backgroundColor,onChange:function(e){return n({backgroundColor:e})},label:Object(l.__)("Background color","crowdsignal-forms")},{value:t.borderColor,onChange:function(e){return n({borderColor:e})},label:Object(l.__)("Border color","crowdsignal-forms")}]}))};function Bt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Ft(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var Mt=n(22),Ht=n.n(Mt),Vt=!1,Ut=C.a.createContext(null),Wt="entering",zt="entered",Kt=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,a=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(o="exited",r.appearStatus=Wt):o=zt:o=t.unmountOnExit||t.mountOnEnter?"unmounted":"exited",r.state={status:o},r.nextCallback=null,r}Bt(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:"exited"}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Wt&&n!==zt&&(t=Wt):n!==Wt&&n!==zt||(t="exiting")}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===Wt?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[Ht.a.findDOMNode(this),r],a=o[0],l=o[1],c=this.getTimeouts(),i=r?c.appear:c.enter;!e&&!n||Vt?this.safeSetState({status:zt},(function(){t.props.onEntered(a)})):(this.props.onEnter(a,l),this.safeSetState({status:Wt},(function(){t.props.onEntering(a,l),t.onTransitionEnd(i,(function(){t.safeSetState({status:zt},(function(){t.props.onEntered(a,l)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Ht.a.findDOMNode(this);t&&!Vt?(this.props.onExit(r),this.safeSetState({status:"exiting"},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:"exited"},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:"exited"},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Ht.a.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=o[0],l=o[1];this.props.addEndListener(a,l)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if("unmounted"===e)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,Ft(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return C.a.createElement(Ut.Provider,{value:null},"function"==typeof n?n(e,r):C.a.cloneElement(C.a.Children.only(n),r))},t}(C.a.Component);function qt(){}Kt.contextType=Ut,Kt.propTypes={},Kt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:qt,onEntering:qt,onEntered:qt,onExit:qt,onExiting:qt,onExited:qt},Kt.UNMOUNTED="unmounted",Kt.EXITED="exited",Kt.ENTERING=Wt,Kt.ENTERED=zt,Kt.EXITING="exiting";var Gt,Zt,Yt=Kt;var Qt="out-in",Jt="in-out",Xt=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},$t=((Gt={})[Qt]=function(e){var t=e.current,n=e.changeState;return C.a.cloneElement(t,{in:!1,onExited:Xt(t,"onExited",(function(){n(Wt,null)}))})},Gt[Jt]=function(e){var t=e.current,n=e.changeState,r=e.children;return[t,C.a.cloneElement(r,{in:!0,onEntered:Xt(r,"onEntered",(function(){n(Wt)}))})]},Gt),en=((Zt={})[Qt]=function(e){var t=e.children,n=e.changeState;return C.a.cloneElement(t,{in:!0,onEntered:Xt(t,"onEntered",(function(){n(zt,C.a.cloneElement(t,{in:!0}))}))})},Zt[Jt]=function(e){var t=e.current,n=e.children,r=e.changeState;return[C.a.cloneElement(t,{in:!1,onExited:Xt(t,"onExited",(function(){r(zt,C.a.cloneElement(n,{in:!0}))}))}),C.a.cloneElement(n,{in:!0})]},Zt),tn=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={status:zt,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}Bt(t,e);var n=t.prototype;return n.componentDidMount=function(){this.appeared=!0},t.getDerivedStateFromProps=function(e,t){return null==e.children?{current:null}:t.status===Wt&&e.mode===Jt?{status:Wt}:!t.current||(n=t.current,r=e.children,n===r||C.a.isValidElement(n)&&C.a.isValidElement(r)&&null!=n.key&&n.key===r.key)?{current:C.a.cloneElement(e.children,{in:!0})}:{status:"exiting"};var n,r},n.render=function(){var e,t=this.props,n=t.children,r=t.mode,o=this.state,a=o.status,l=o.current,c={children:n,current:l,changeState:this.changeState,status:a};switch(a){case Wt:e=en[r](c);break;case"exiting":e=$t[r](c);break;case zt:e=l}return C.a.createElement(Ut.Provider,{value:{isMounting:!this.appeared}},e)},t}(C.a.Component);tn.propTypes={},tn.defaultProps={mode:Qt};var nn=tn;function rn(){return(rn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function on(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var an=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=on(n.className,r):n.setAttribute("class",on(n.className&&n.className.baseVal||"",r)));var n,r}))},ln=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),o=r[0],a=r[1];t.removeClasses(o,"exit"),t.addClass(o,a?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),o=r[0],a=r[1]?"appear":"enter";t.addClass(o,a,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),o=r[0],a=r[1]?"appear":"enter";t.removeClasses(o,a),t.addClass(o,a,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}Bt(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(r+=" "+o),"active"===n&&e&&e.scrollTop,r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))}(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,a=n.done;this.appliedClasses[t]={},r&&an(e,r),o&&an(e,o),a&&an(e,a)},n.render=function(){var e=this.props,t=(e.classNames,Ft(e,["classNames"]));return C.a.createElement(Yt,rn({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(C.a.Component);ln.defaultProps={classNames:""},ln.propTypes={};var cn=ln,sn=function(e){var t=e.className,n=e.fillColor,r=void 0===n?"black":n;return Object(a.createElement)("svg",{className:t,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)("g",{clipPath:"url(#clipThumbsUp)"},Object(a.createElement)("mask",{id:"maskThumbsUp","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"2",y:"-1",width:"20",height:"20"},Object(a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.35 6.24998H13.5658L14.4366 2.06081L14.4641 1.76748C14.4641 1.39165 14.3083 1.04331 14.0608 0.795813L13.0891 -0.166687L7.05748 5.87415C6.71831 6.20415 6.51664 6.66248 6.51664 7.16665L2.84998 7.16665V16.425H6.51664V16.3333C6.51664 17.3416 7.34164 18.1666 8.34998 18.1666H16.6C17.3608 18.1666 18.0116 17.7083 18.2866 17.0483L21.055 10.5858C21.1375 10.375 21.1833 10.155 21.1833 9.91665V8.08331C21.1833 7.07498 20.3583 6.24998 19.35 6.24998ZM19.35 9.91665L16.6 16.3333H8.34998V7.16665L12.3283 3.18831L11.3108 8.08331H19.35V9.91665Z",fill:"white"})),Object(a.createElement)("g",{mask:"url(#maskThumbsUp)"},Object(a.createElement)("rect",{x:"0.999878",y:"-3.05176e-05",width:"22",height:"22",fill:r}))),Object(a.createElement)("defs",null,Object(a.createElement)("clipPath",{id:"clipThumbsUp"},Object(a.createElement)("rect",{width:"24",height:"24",fill:"white"}))))},un=function(e){var t=e.className,n=e.fillColor,r=void 0===n?"black":n;return Object(a.createElement)("svg",{className:t,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)("g",{clipPath:"url(#clipThumbsDown)"},Object(a.createElement)("mask",{id:"maskThumbsDown","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"2",y:"5",width:"20",height:"20"},Object(a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.65002 17.75H10.4342L9.56336 21.9392L9.53586 22.2325C9.53586 22.6083 9.69169 22.9567 9.93919 23.2042L10.9109 24.1667L16.9425 18.1258C17.2817 17.7958 17.4834 17.3375 17.4834 16.8333L21.15 16.8333L21.15 7.57499H17.4834V7.66666C17.4834 6.65832 16.6584 5.83332 15.65 5.83332H7.40003C6.63919 5.83332 5.98836 6.29165 5.71336 6.95166L2.94503 13.4142C2.86253 13.625 2.81669 13.845 2.81669 14.0833V15.9167C2.81669 16.925 3.64169 17.75 4.65002 17.75ZM4.65002 14.0833L7.40002 7.66666H15.65L15.65 16.8333L11.6717 20.8117L12.6892 15.9167H4.65002V14.0833Z",fill:"white"})),Object(a.createElement)("g",{mask:"url(#maskThumbsDown)"},Object(a.createElement)("rect",{x:"23.0001",y:"24",width:"22",height:"22",transform:"rotate(-180 23.0001 24)",fill:r}))),Object(a.createElement)("defs",null,Object(a.createElement)("clipPath",{id:"clipThumbsDown"},Object(a.createElement)("rect",{width:"24",height:"24",fill:"white"}))))},dn=function(e){return e?e>=1e7?"".concat(Object(b.round)(e/1e6),"M"):e>=1e6?"".concat((e/1e6).toFixed(1),"M"):e>=1e4?"".concat(Object(b.round)(e/1e3),"K"):e>=1e3?"".concat((e/1e3).toFixed(1),"K"):e.toString():"0"},fn=function(e){var t=e.attributes,n=e.voteCount,r=e.apiAnswerId,o=e.onVote,l=e.disabled,c=e.isVotedOn,i=e.hideCount,s=e.fallbackStyles,u=e.isInEditor,d=t.className,f=t.type,m=Object(_.useState)(0),p=j()(m,2),g=p[0],O=p[1],v=function(){!l&&o&&(O(1),o(r))},w="up"===f?sn:un,h="is-type-".concat(f),C=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return T()({"has-bg-color":e.backgroundColor,"has-text-color":e.textColor,"has-border-color":e.borderColor},n)}(t,"crowdsignal-forms-vote-item",d,{"is-voted-on":c,"is-disabled":l,"is-in-editor":u},h),y=function(e,t){var n=Object(b.isEmpty)(e.textColor)?t.textColor:e.textColor,r=Object(b.isEmpty)(e.backgroundColor)?t.backgroundColor:e.backgroundColor;return Object(b.mapKeys)({borderColor:e.borderColor,bgColor:r,textColor:n,votedColor:t.accentColor},(function(e,t){return"--crowdsignal-forms-vote-".concat(Object(b.kebabCase)(t))}))}(t,s),E=n+g;return Object(a.createElement)("div",{className:C,onClick:v,onKeyPress:v,role:"button",style:y,tabIndex:0},Object(a.createElement)(w,{className:"crowdsignal-forms-vote-item__icon",fillColor:"currentColor"}),!i&&Object(a.createElement)(nn,{mode:"in-out"},Object(a.createElement)(cn,{key:g,classNames:"crowdsignal-forms-vote-item__count",timeout:300},Object(a.createElement)("div",{className:"crowdsignal-forms-vote-item__count"},dn(E)))))};fn.propTypes={apiAnswerId:N.a.number,className:N.a.string,disabled:N.a.bool,isVotedOn:N.a.bool,onVote:N.a.func,type:N.a.string.isRequired,voteCount:N.a.number.isRequired};var bn=fn,mn=Object(x.compose)([Ae,Pt(["answerId"])])((function(e){var t=e.attributes,n=e.className,r=e.fallbackStyles,o=e.renderStyleProbe;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)(Dt,e),Object(a.createElement)(bn,{attributes:t,fallbackStyles:r,className:n,voteCount:0,isInEditor:!0,type:t.type}),o())})),pn={title:Object(l.__)("Vote Item","crowdsignal-forms"),description:Object(l.__)("Allow your audience to rate your work or express their opinion — powered by Crowdsignal.","crowdsignal-forms"),category:"crowdsignal-forms",parent:["crowdsignal-forms/vote"],icon:Object(a.createElement)(jt,null),edit:mn,attributes:{answerId:{type:"string",default:null},type:{type:"string"},textColor:{type:"string"},backgroundColor:{type:"string"},borderColor:{type:"string"}}},gn=function(e){var t=e.showBranding,n=e.referralCode;return Object(a.createElement)("div",{className:"crowdsignal-forms__branding"},t&&Object(a.createElement)("a",{className:"crowdsignal-forms__branding-link with-external-icon",href:"https://crowdsignal.com?ref=".concat(n),target:"blank",rel:"noopener noreferrer"},Object(l.__)("Powered by Crowdsignal","crowdsignal-forms")),!t&&Object(a.createElement)("span",{className:"crowdsignal-forms__branding-link"}," "))};gn.propTypes={showBranding:N.a.bool,referralCode:N.a.string.isRequired};var On=gn,vn=function(e){var t=e.active,n=e.className,r=T()("crowdsignal-forms-applause__animation",n,{"is-active":t});return Object(a.createElement)("svg",{className:r,width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)("g",{className:"crowdsignal-forms-applause__animation-right"},Object(a.createElement)("path",{className:"crowdsignal-forms-applause__animation-inner-fill",fillRule:"evenodd",clipRule:"evenodd",d:"M24.5287 18.5813L21.719 22.432C20.771 23.7312 18.9509 24.0157 17.6517 23.0676L9.50948 17.1265C8.6982 16.5345 8.52021 15.3957 9.11218 14.5844C9.18511 14.4845 9.26979 14.3931 9.35606 14.3119L9.19145 14.1918C8.38017 13.5998 8.20218 12.461 8.79415 11.6497C8.93571 11.4557 9.10825 11.2933 9.30319 11.1743C9.10822 10.6266 9.17716 10.0013 9.54606 9.49567C10.1123 8.71967 11.1811 8.52659 11.9839 9.03133C12.0392 8.91852 12.1004 8.81 12.1733 8.71006C12.7653 7.89878 13.9042 7.72079 14.7154 8.31276L20.3297 12.4094L20.611 10.4435C20.6949 9.84704 21.1499 9.35925 21.7392 9.23069L23.703 8.79878L25.0454 16.3547C25.1822 17.1302 24.992 17.9464 24.5287 18.5813Z"}),Object(a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24.5287 18.5813L21.719 22.432C20.771 23.7312 18.9509 24.0157 17.6517 23.0676L9.50948 17.1265C8.6982 16.5345 8.52021 15.3957 9.11218 14.5844C9.18511 14.4845 9.26979 14.3931 9.35606 14.3119L9.19145 14.1918C8.38017 13.5998 8.20218 12.461 8.79415 11.6497C8.93571 11.4557 9.10825 11.2933 9.30319 11.1743C9.10822 10.6266 9.17716 10.0013 9.54606 9.49567C10.1123 8.71967 11.1811 8.52659 11.9839 9.03133C12.0392 8.91852 12.1004 8.81 12.1733 8.71006C12.7653 7.89878 13.9042 7.72079 14.7154 8.31276L20.3297 12.4094L20.611 10.4435C20.6949 9.84704 21.1499 9.35925 21.7392 9.23069L23.703 8.79878L25.0454 16.3547C25.1822 17.1302 24.992 17.9464 24.5287 18.5813ZM23.6104 16.605L22.538 10.5434L22.0547 10.6502L21.4234 15.0093L13.8574 9.48855C13.8574 9.48855 13.4691 9.4034 13.349 9.56801C13.2288 9.73262 13.2638 9.95632 13.4284 10.0764L17.667 13.1693L16.8091 14.345L11.2301 10.2742C11.0655 10.1541 10.8418 10.189 10.7217 10.3536C10.6016 10.5182 10.6365 10.7419 10.8012 10.862L16.3802 14.9329L15.5222 16.1087L10.4782 12.4282C10.3136 12.3081 10.0899 12.343 9.96978 12.5076C9.84967 12.6722 9.88463 12.8959 10.0492 13.0161L15.0933 16.6966L14.2353 17.8723L10.7962 15.3629C10.6316 15.2428 10.4079 15.2777 10.2878 15.4423C10.1677 15.607 10.2027 15.8307 10.3673 15.9508L18.5094 21.8919C19.1561 22.3638 20.0713 22.2207 20.5431 21.5741L23.3571 17.7175C23.5888 17.4001 23.6766 16.9957 23.6104 16.605Z"})),Object(a.createElement)("g",{className:"crowdsignal-forms-applause__animation-left"},Object(a.createElement)("path",{className:"crowdsignal-forms-applause__animation-inner-fill",fillRule:"evenodd",clipRule:"evenodd",d:"M21.2292 18.7813L18.4195 22.632C17.4715 23.9312 15.6513 24.2157 14.3521 23.2676L6.20992 17.3265C5.39864 16.7345 5.22065 15.5957 5.81262 14.7844C5.88554 14.6845 5.97023 14.5931 6.0565 14.5119L5.89189 14.3918C5.08061 13.7998 4.90262 12.661 5.49459 11.8497C5.63615 11.6557 5.80869 11.4933 6.00363 11.3743C5.80866 10.8266 5.8776 10.2013 6.2465 9.69567C6.81274 8.91967 7.88153 8.72658 8.68439 9.23133C8.73968 9.11852 8.80084 9.01 8.87377 8.91006C9.46573 8.09878 10.6046 7.92079 11.4159 8.51276L17.0302 12.6094L17.3115 10.6435C17.3953 10.047 17.8504 9.55925 18.4397 9.43069L20.4034 8.99877L21.7458 16.5547C21.8826 17.3302 21.6925 18.1464 21.2292 18.7813Z"}),Object(a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.2292 18.7813L18.4195 22.632C17.4715 23.9312 15.6513 24.2157 14.3521 23.2676L6.20992 17.3265C5.39864 16.7345 5.22065 15.5957 5.81262 14.7844C5.88554 14.6845 5.97023 14.5931 6.0565 14.5119L5.89189 14.3918C5.08061 13.7998 4.90262 12.661 5.49459 11.8497C5.63615 11.6557 5.80869 11.4933 6.00363 11.3743C5.80866 10.8266 5.8776 10.2013 6.2465 9.69567C6.81274 8.91967 7.88153 8.72658 8.68439 9.23133C8.73968 9.11852 8.80084 9.01 8.87377 8.91006C9.46573 8.09878 10.6046 7.92079 11.4159 8.51276L17.0302 12.6094L17.3115 10.6435C17.3953 10.047 17.8504 9.55925 18.4397 9.43069L20.4034 8.99877L21.7458 16.5547C21.8826 17.3302 21.6925 18.1464 21.2292 18.7813ZM20.3108 16.805L19.2384 10.7434L18.7551 10.8502L18.1239 15.2093L10.5578 9.68854C10.5578 9.68854 10.1695 9.6034 10.0494 9.76801C9.92928 9.93261 9.96425 10.1563 10.1289 10.2764L14.3675 13.3692L13.5096 14.545L7.93056 10.4742C7.76595 10.354 7.54224 10.389 7.42213 10.5536C7.30202 10.7182 7.33699 10.9419 7.50159 11.062L13.0806 15.1329L12.2227 16.3087L7.17864 12.6282C7.01403 12.5081 6.79033 12.543 6.67022 12.7076C6.55011 12.8722 6.58507 13.0959 6.74968 13.216L11.7937 16.8965L10.9358 18.0723L7.49667 15.5629C7.33206 15.4428 7.10836 15.4777 6.98825 15.6423C6.86814 15.8069 6.9031 16.0307 7.06771 16.1508L15.2099 22.0919C15.8566 22.5638 16.7717 22.4207 17.2436 21.7741L20.0576 17.9175C20.2892 17.6001 20.3771 17.1957 20.3108 16.805Z"})),Object(a.createElement)("g",{className:"crowdsignal-forms-applause__animation-wave-small"},Object(a.createElement)("rect",{x:"15.4854",y:"4.42176",width:"1.5",height:"3",transform:"rotate(8 15.4854 4.42176)"}),Object(a.createElement)("rect",{x:"19.9369",y:"5.15548",width:"1.5",height:"3",transform:"rotate(43 19.9369 5.15548)"}),Object(a.createElement)("rect",{x:"11.1523",y:"4.78963",width:"1.5",height:"3",transform:"rotate(-27 11.1523 4.78963)"})),Object(a.createElement)("g",{className:"crowdsignal-forms-applause__animation-wave-large"},Object(a.createElement)("rect",{x:"23.453",y:"2.41095",width:"1.5",height:"3",transform:"rotate(38 23.453 2.41095)"}),Object(a.createElement)("rect",{x:"26.9413",y:"5.27211",width:"1.5",height:"3",transform:"rotate(73 26.9413 5.27211)"}),Object(a.createElement)("rect",{x:"19.5165",y:"0.562988",width:"1.5",height:"3",transform:"rotate(3 19.5165 0.562988)"}),Object(a.createElement)("rect",{width:"1.5",height:"3",transform:"matrix(-0.788011 0.615662 0.615662 0.788011 8.52597 2.41095)"}),Object(a.createElement)("rect",{width:"1.5",height:"3",transform:"matrix(-0.292372 0.956305 0.956305 0.292372 5.03775 5.27211)"}),Object(a.createElement)("rect",{width:"1.5",height:"3",transform:"matrix(-0.99863 0.052336 0.052336 0.99863 12.4625 0.562988)"})))},wn=function(e){var t=e.attributes,n=e.fallbackStyles,r=e.renderStyleProbe,o=t.apiPollData?t.apiPollData.id:null,l=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r="cs-poll-".concat(e),o=Object(_.useState)(!1),a=j()(o,2),l=a[0],c=a[1],i=Object(_.useState)(!1),s=j()(i,2),u=s[0],d=s[1],f=Object(_.useState)(""),b=j()(f,2),m=b[0],p=b[1];Object(_.useEffect)((function(){t&&void 0!==F.a.get(r)&&(d(!0),p(F.a.get(r)))}),[]);var g=function(){var o=D()(A.a.mark((function o(a){var l,i,s,u=arguments;return A.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return l=u.length>1&&void 0!==u[1]?u[1]:1,o.prev=1,c(!0),o.next=5,te(e);case 5:return i=o.sent,o.next=8,ne(i,e,a,l);case 8:d(!0),t&&(s=n?a.join(","):(new Date).getTime(),F.a.set(r,s,{sameSite:"Strict",expires:365}),p(s));case 10:return o.prev=10,c(!1),o.finish(10);case 13:case"end":return o.stop()}}),o,null,[[1,,10,13]])})));return function(e){return o.apply(this,arguments)}}();return{hasVoted:u,isVoting:l,vote:g,storedCookieValue:m}}(o,!0),c=l.hasVoted,i=l.vote,s=Object(_.useState)(0),u=j()(s,2),d=u[0],f=u[1],m=Object(_.useState)(0),p=j()(m,2),g=p[0],O=p[1],v=Object(_.useState)(null),w=j()(v,2),h=w[0],C=w[1],y=Object(_.useState)(!1),E=j()(y,2),k=E[0],x=E[1],S=Object(_.useState)(null),I=j()(S,2),P=I[0],N=I[1],L=Oe(o).results,R=ze(t.pollStatus,t.closedAfterDateTime),B=function(){if(null!==o&&!R){P&&clearTimeout(P),x(!0),N(setTimeout((function(){x(!1)}),200));var e=g+1;O(e),f(d+1);var n=t.apiPollData.answers[0].id;null!==h&&clearTimeout(h);var r=setTimeout((function(){i([n],e),C(null),O(0)}),1e3);C(r)}},M=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return T()({"has-bg-color":e.backgroundColor,"has-text-color":e.textColor,"has-border-color":e.borderColor},n)}(t,"crowdsignal-forms-applause",t.className,"size-".concat(t.size),{"is-closed":R}),H=function(e,t){var n=Object(b.isEmpty)(e.textColor)?t.textColor:e.textColor;return Object(b.mapKeys)({bgColor:e.backgroundColor||t.backgroundColor,textColor:n,hoverColor:t.accentColor,borderRadius:"".concat(e.borderRadius||0,"px"),borderWidth:"".concat(e.borderWidth||0,"px"),borderColor:e.borderColor},(function(e,t){return"--crowdsignal-forms-applause-".concat(Object(b.kebabCase)(t))}))}(t,n),V=(null!==L?Object(b.values)(L)[0]:0)+d;return Object(a.createElement)(a.Fragment,null,Object(a.createElement)("div",{className:M,style:H,onClick:B,onKeyPress:B,role:"button",tabIndex:0},Object(a.createElement)(vn,{active:k}),Object(a.createElement)("p",{className:"crowdsignal-forms-applause__count"},dn(V)," Claps"),r()),Object(a.createElement)(On,{showBranding:c&&!t.hideBranding,referralCode:"cs-forms-applause"}))};wn.propTypes={className:N.a.string};var hn=Ae(wn),jn=Object.freeze({OPEN:"open",CLOSED:"closed",CLOSED_AFTER:"closed-after"}),_n=[{title:Object(l.__)("Small","crowdsignal-forms"),size:"small"},{title:Object(l.__)("Medium","crowdsignal-forms"),size:"medium"},{title:Object(l.__)("Large","crowdsignal-forms"),size:"large"}],Cn={position:"bottom right",isAlternate:!0,className:"crowdsignal-forms-vote__size-dropdown"};function yn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var En=function(e){var t=e.attributes,n=e.setAttributes,r=Object(b.get)(t,"size","medium"),o=_n,c=Object(_.useState)(!1),i=j()(c,2),s=i[0],u=i[1],f=function(){return u(!s)};return Object(a.createElement)(y.BlockControls,null,Object(a.createElement)(E.ToolbarGroup,{isCollapsed:!0,icon:kt,label:Object(l.__)("Change block size","crowdsignal-forms"),popoverProps:Cn,controls:o.map((function(e){var t=e.size;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yn(Object(n),!0).forEach((function(t){d()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{isActive:r===t,role:"menuitemradio",onClick:function(){return n({size:t})}})}))}),Object(a.createElement)(E.Toolbar,{controls:[{icon:xt,onClick:f}]}),s&&Object(a.createElement)(E.Popover,{className:"crowdsignal-forms__border-popover",onFocusOutside:f},Object(a.createElement)("div",{className:"crowdsignal-forms__row"},Object(a.createElement)(E.TextControl,{label:Object(l.__)("Border thickness","crowdsignal-forms"),type:"number",className:"crowdsignal-forms__small-text-input",onChange:function(e){n({borderWidth:parseInt(e,10)||0})},value:t.borderWidth}),Object(a.createElement)(E.TextControl,{label:Object(l.__)("Corner radius","crowdsignal-forms"),type:"number",className:"crowdsignal-forms__small-text-input",onChange:function(e){n({borderRadius:parseInt(e,10)||0})},value:t.borderRadius}))))},kn=function(e){var t=e.attributes,n=e.setAttributes,r=e.viewResultsUrl,o=e.shouldPromote,c=e.signalWarning,i=""!==r;return Object(a.createElement)(y.InspectorControls,null,Object(a.createElement)(E.PanelBody,{title:Object(l.__)("Results","crowdsignal-forms"),initialOpen:!0},Object(a.createElement)("p",null,i?Object(l.__)("Manage results on ","crowdsignal-forms"):Object(l.__)("Publish this post to enable results on ","crowdsignal-forms"),Object(a.createElement)(E.ExternalLink,{href:"https://www.crowdsignal.com"},"crowdsignal.com")),Object(a.createElement)("p",null,Object(a.createElement)(E.Button,{href:r,isSecondary:!0,target:"_blank",disabled:!i},Object(l.__)("View results","crowdsignal-forms"))),Object(a.createElement)(E.TextControl,{value:t.title,label:Object(l.__)("Title of the applause block","crowdsignal-forms"),onChange:function(e){return n({title:e})}}),o&&Object(a.createElement)(Ge,{signalWarning:c})),Object(a.createElement)(E.PanelBody,{title:Object(l.__)("Settings","crowdsignal-forms")},Object(a.createElement)(E.SelectControl,{value:t.pollStatus,label:Object(l.__)("Status","crowdsignal-forms"),options:[{label:Object(l.__)("Open","crowdsignal-forms"),value:jn.OPEN},{label:Object(l.__)("Closed after","crowdsignal-forms"),value:jn.CLOSED_AFTER},{label:Object(l.__)("Closed","crowdsignal-forms"),value:jn.CLOSED}],onChange:function(e){Object(b.includes)(jn,e)&&n({closedAfterDateTime:e===jn.CLOSED_AFTER?new Date((new Date).getTime()+864e5).toISOString():null,pollStatus:e})}}),jn.CLOSED_AFTER===t.pollStatus&&Object(a.createElement)(E.TimePicker,{currentTime:t.closedAfterDateTime,label:Object(l.__)("Close applause block on","crowdsignal-forms"),onChange:function(e){var t=new Date(e);n({closedAfterDateTime:t.toISOString()})},is12Hour:!0})),Object(a.createElement)(y.PanelColorSettings,{title:Object(l.__)("Styling","crowdsignal-forms"),initialOpen:!0,colorSettings:[{value:t.textColor,onChange:function(e){return n({textColor:e})},label:Object(l.__)("Text color","crowdsignal-forms")},{value:t.backgroundColor,onChange:function(e){return n({backgroundColor:e})},label:Object(l.__)("Background color","crowdsignal-forms")},{value:t.borderColor,onChange:function(e){return n({borderColor:e})},label:Object(l.__)("Border color","crowdsignal-forms")}]}))},xn=Object(x.compose)([mt,Pt(["pollId","answerId"])])((function(e){var t=e.attributes,n=e.setAttributes,r=e.pollDataFromApi,o=r?r.viewResultsUrl:"";Nt(e.name,Object(l.__)("Untitled Applause","crowdsignal-forms"),t,n);var c=we(),i=Object(b.get)(c,["signalCount","shouldDisplay"]),s=i&&Object(b.get)(c,["signalCount","count"])>=Object(b.get)(c,["signalCount","userLimit"]);return Object(a.createElement)(ct,{blockIcon:null,blockName:Object(l.__)("Crowdsignal Applause","crowdsignal-forms")},Object(a.createElement)(kn,w()({},e,{shouldPromote:i,signalWarning:s,viewResultsUrl:o})),Object(a.createElement)(En,e),Object(a.createElement)(hn,e))})),Sn={pollId:{type:"string",default:null},hideBranding:{type:"boolean",default:!1},title:{type:"string",default:null},answerId:{type:"string",default:null},size:{type:"string",default:"medium"},pollStatus:{type:"string",default:jn.OPEN},closedAfterDateTime:{type:"string",default:null},textColor:{type:"string"},backgroundColor:{type:"string"},borderColor:{type:"string"},borderWidth:{type:"number",default:0},borderRadius:{type:"number",default:0}},Tn={title:Object(l.__)("Applause","crowdsignal-forms"),description:Object(l.__)("Let your audience cheer with a big round of applause — powered by Crowdsignal.","crowdsignal-forms"),category:"crowdsignal-forms",keywords:["crowdsignal",Object(l.__)("applause","crowdsignal-forms"),Object(l.__)("cheer","crowdsignal-forms"),Object(l.__)("cheering","crowdsignal-forms"),Object(l.__)("clap","crowdsignal-forms"),Object(l.__)("feedback","crowdsignal-forms"),Object(l.__)("kudos","crowdsignal-forms"),Object(l.__)("like","crowdsignal-forms"),Object(l.__)("opinion","crowdsignal-forms"),Object(l.__)("praise","crowdsignal-forms"),Object(l.__)("rating","crowdsignal-forms"),Object(l.__)("upvote","crowdsignal-forms"),Object(l.__)("upvoting","crowdsignal-forms"),Object(l.__)("votes","crowdsignal-forms"),Object(l.__)("voting","crowdsignal-forms")],icon:Object(a.createElement)((function(){return Object(a.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)("g",{clipPath:"url(#clip0)"},Object(a.createElement)("rect",{width:"24",height:"24",fill:"white"}),Object(a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.5284 16.5813L18.7187 20.432C17.7707 21.7312 15.9506 22.0157 14.6513 21.0676L6.50915 15.1265C5.69788 14.5345 5.51988 13.3957 6.11185 12.5844C6.18478 12.4845 6.26946 12.3931 6.35573 12.3119L6.19112 12.1918C5.37984 11.5998 5.20185 10.461 5.79382 9.64968C5.93538 9.45568 6.10792 9.29329 6.30287 9.17428C6.1079 8.62662 6.17683 8.00125 6.54574 7.49567C7.11197 6.71967 8.18077 6.52659 8.98362 7.03133C9.03891 6.91852 9.10007 6.81 9.173 6.71006C9.76497 5.89878 10.9038 5.72079 11.7151 6.31276L17.3294 10.4094L17.6107 8.44349C17.6946 7.84704 18.1496 7.35925 18.7389 7.23069L20.7027 6.79878L22.045 14.3547C22.1819 15.1302 21.9917 15.9464 21.5284 16.5813ZM20.61 14.605L19.5377 8.54337L19.0543 8.65016L18.4231 13.0093L10.857 7.48855C10.857 7.48855 10.4687 7.4034 10.3486 7.56801C10.2285 7.73262 10.2635 7.95632 10.4281 8.07643L14.6667 11.1693L13.8088 12.345L8.22979 8.27416C8.06518 8.15405 7.84147 8.18902 7.72136 8.35362C7.60126 8.51823 7.63622 8.74194 7.80082 8.86204L13.3798 12.9329L12.5219 14.1087L7.47787 10.4282C7.31327 10.3081 7.08956 10.343 6.96945 10.5076C6.84934 10.6722 6.8843 10.8959 7.04891 11.0161L12.0929 14.6966L11.235 15.8723L7.7959 13.3629C7.6313 13.2428 7.40759 13.2777 7.28748 13.4423C7.16737 13.607 7.20233 13.8307 7.36694 13.9508L15.5091 19.8919C16.1558 20.3638 17.0709 20.2207 17.5428 19.5741L20.3568 15.7175C20.5884 15.4001 20.6763 14.9957 20.61 14.605Z"}),Object(a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.2289 16.7813L15.4192 20.632C14.4711 21.9312 12.651 22.2157 11.3518 21.2676L3.20959 15.3265C2.39831 14.7345 2.22032 13.5957 2.81229 12.7844C2.88522 12.6845 2.9699 12.5931 3.05617 12.5119L2.89156 12.3918C2.08028 11.7998 1.90229 10.661 2.49426 9.84968C2.63582 9.65567 2.80836 9.49329 3.0033 9.37428C2.80834 8.82662 2.87727 8.20125 3.24618 7.69567C3.81241 6.91967 4.88121 6.72658 5.68406 7.23133C5.73935 7.11852 5.80051 7.01 5.87344 6.91006C6.46541 6.09878 7.60427 5.92079 8.41555 6.51276L14.0298 10.6094L14.3111 8.64348C14.395 8.04703 14.85 7.55925 15.4393 7.43069L17.4031 6.99877L18.7455 14.5547C18.8823 15.3302 18.6921 16.1464 18.2289 16.7813Z",fill:"white"}),Object(a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.2289 16.7813L15.4192 20.632C14.4711 21.9312 12.651 22.2157 11.3518 21.2676L3.20959 15.3265C2.39831 14.7345 2.22032 13.5957 2.81229 12.7844C2.88522 12.6845 2.9699 12.5931 3.05617 12.5119L2.89156 12.3918C2.08028 11.7998 1.90229 10.661 2.49426 9.84968C2.63582 9.65567 2.80836 9.49329 3.0033 9.37428C2.80834 8.82662 2.87727 8.20125 3.24618 7.69567C3.81241 6.91967 4.88121 6.72658 5.68406 7.23133C5.73935 7.11852 5.80051 7.01 5.87344 6.91006C6.46541 6.09878 7.60427 5.92079 8.41555 6.51276L14.0298 10.6094L14.3111 8.64348C14.395 8.04703 14.85 7.55925 15.4393 7.43069L17.4031 6.99877L18.7455 14.5547C18.8823 15.3302 18.6921 16.1464 18.2289 16.7813ZM17.3105 14.805L16.2381 8.74337L15.7548 8.85016L15.1235 13.2093L7.55749 7.68854C7.55749 7.68854 7.16918 7.6034 7.04907 7.76801C6.92896 7.93261 6.96392 8.15632 7.12853 8.27643L11.3672 11.3692L10.5092 12.545L4.93023 8.47416C4.76562 8.35405 4.54191 8.38901 4.4218 8.55362C4.3017 8.71823 4.33666 8.94193 4.50126 9.06204L10.0803 13.1329L9.22235 14.3087L4.17831 10.6282C4.0137 10.5081 3.79 10.543 3.66989 10.7076C3.54978 10.8722 3.58474 11.0959 3.74935 11.216L8.79338 14.8965L7.93546 16.0723L4.49634 13.5629C4.33173 13.4428 4.10803 13.4777 3.98792 13.6423C3.86781 13.8069 3.90277 14.0307 4.06738 14.1508L12.2096 20.0919C12.8562 20.5638 13.7714 20.4207 14.2432 19.7741L17.0572 15.9175C17.2889 15.6001 17.3767 15.1957 17.3105 14.805Z"}),Object(a.createElement)("rect",{x:"12.4851",y:"1.42175",width:"1.5",height:"3",transform:"rotate(8 12.4851 1.42175)"}),Object(a.createElement)("rect",{x:"16.9365",y:"2.15547",width:"1.5",height:"3",transform:"rotate(43 16.9365 2.15547)"}),Object(a.createElement)("rect",{x:"8.15195",y:"1.78963",width:"1.5",height:"3",transform:"rotate(-27 8.15195 1.78963)"})),Object(a.createElement)("defs",null,Object(a.createElement)("clipPath",{id:"clip0"},Object(a.createElement)("rect",{width:"24",height:"24",fill:"white"}))))}),null),edit:xn,attributes:Sn,example:{attributes:{size:"large"}}},In="rating",Pn="feedback",Nn=Object.freeze({OPEN:"open",CLOSED:"closed",CLOSED_AFTER:"closed-after"}),Ln={backgroundColor:{type:"string"},buttonColor:{type:"string"},buttonTextColor:{type:"string"},feedbackPlaceholder:{type:"string",default:Object(l.__)("Please help us understand your rating","crowdsignal-forms")},feedbackQuestion:{type:"string",default:Object(l.__)("Thanks so much for your response! How could we do better?","crowdsignal-forms")},hideBranding:{type:"boolean",default:!1},highRatingLabel:{type:"string",default:Object(l.__)("Extremely likely","crowdsignal-forms")},lowRatingLabel:{type:"string",default:Object(l.__)("Not likely at all","crowdsignal-forms")},ratingQuestion:{type:"string",default:Object(l.__)("How likely is it that you would recommend this project to a friend or colleague?","crowdsignal-forms")},submitButtonLabel:{type:"string",default:Object(l.__)("Submit","crowdsignal-forms")},surveyId:{type:"number",default:null},textColor:{type:"string"},title:{type:"string",default:""},viewThreshold:{type:"string",default:2},status:{type:"string",default:Nn.OPEN},closedAfterDateTime:{type:"string",default:null},isExample:{type:"boolean",default:!1}},An=n(32),Rn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object(_.useState)(!1),r=j()(n,2),o=r[0],a=r[1],l=Object(_.useRef)(0),c=Object(_.useCallback)(Object(b.debounce)((function(t,n){return e(t).catch(n)}),1500),[]),i=Object(_.useCallback)((function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;a(!1),c(t,(function(){e===l.current&&(n<3?i(e,n+1):a(!0))}))}),Object(b.values)(t));return Object(_.useEffect)((function(){0!=l.current++&&i(l.current)}),Object(b.values)(t)),{error:o,save:function(){return i(l.current)}}},Dn=function(e){return new Promise((function(t,n){var r=setTimeout((function(){return n(new Error("Request timed out"))}),1e4);e.then(t,n).finally((function(){return clearTimeout(r)}))}))},Bn=function(e){return Dn(Q()({path:Object(b.trimEnd)("/crowdsignal-forms/v1/nps/".concat(e.surveyId||""),"/"),method:"POST",data:e}))},Fn=function(e){var t=e.attributes,n=e.setAttributes,r=e.shouldPromote,o=e.signalWarning,c="https://app.crowdsignal.com/surveys/".concat(t.surveyId,"/report/overview"),i=function(e){return function(t){return n(d()({},e,t))}};return Object(a.createElement)(y.InspectorControls,null,Object(a.createElement)(E.PanelBody,{title:Object(l.__)("Results","crowdsignal-forms"),initialOpen:!0},Object(a.createElement)("p",null,t.surveyId?Object(l.__)("Manage results on ","crowdsignal-forms"):Object(l.__)("Save the block to track results on ","crowdsignal-forms"),Object(a.createElement)(E.ExternalLink,{href:"https://www.crowdsignal.com"},"crowdsignal.com")),Object(a.createElement)("p",null,Object(a.createElement)(E.Button,{isSecondary:!0,disabled:!t.surveyId,href:c,target:"blank"},Object(l.__)("View results","crowdsignal-forms"))),Object(a.createElement)(E.TextControl,{label:Object(l.__)("Title (optional)","crowdsignal-forms"),onChange:function(e){return n({title:e})},value:Object(k.decodeEntities)(t.title)}),r&&Object(a.createElement)(Ge,{signalWarning:o})),Object(a.createElement)(y.PanelColorSettings,{title:Object(l.__)("Block styling","crowdsignal-forms"),initialOpen:!1,colorSettings:[{label:Object(l.__)("Background color","crowdsignal-forms"),onChange:i("backgroundColor"),value:t.backgroundColor},{label:Object(l.__)("Text color","crowdsignal-forms"),onChange:i("textColor"),value:t.textColor},{label:Object(l.__)("Button color","crowdsignal-forms"),onChange:i("buttonColor"),value:t.buttonColor},{label:Object(l.__)("Button text color","crowdsignal-forms"),onChange:i("buttonTextColor"),value:t.buttonTextColor}]}),Object(a.createElement)(E.PanelBody,{title:Object(l.__)("Settings","crowdsignal-forms"),initialOpen:!1},Object(a.createElement)(E.SelectControl,{value:t.status,label:Object(l.__)("Status","crowdsignal-forms"),options:[{label:Object(l.__)("Open","crowdsignal-forms"),value:Nn.OPEN},{label:Object(l.__)("Closed after","crowdsignal-forms"),value:Nn.CLOSED_AFTER},{label:Object(l.__)("Closed","crowdsignal-forms"),value:Nn.CLOSED}],onChange:function(e){return n({status:e})},help:Nn.CLOSED_AFTER===t.status&&null!==t.closedAfterDateTime&&(new Date).toISOString()>t.closedAfterDateTime?"Currently closed as date has passed":""}),Nn.CLOSED_AFTER===t.status&&Object(a.createElement)(E.DateTimePicker,{currentDate:t.closedAfterDateTime&&new Date(t.closedAfterDateTime)||new Date,label:Object(l.__)("Close on","crowdsignal-forms"),onChange:function(e){var t=new Date(e);n({closedAfterDateTime:t.toISOString()})},is12Hour:!0})))},Mn=function(e){var t=e.attributes,n=e.currentView,r=e.onViewChange,o=e.setAttributes,c=Object(_.useState)(!1),i=j()(c,2),s=i[0],u=i[1],d=function(e){return function(){return r(e)}};return Object(a.createElement)(y.BlockControls,null,Object(a.createElement)(E.ToolbarGroup,{label:Object(l.__)("Current view","crowdsignal-forms")},Object(a.createElement)(E.ToolbarButton,{className:"crowdsignal-forms-nps__toolbar-toggle",isActive:n===In,label:Object(l.__)("Rating","crowdsignal-forms"),onClick:d(In)},Object(l.__)("Rating","crowdsignal-forms")),Object(a.createElement)(E.ToolbarButton,{className:"crowdsignal-forms-nps__toolbar-toggle",isActive:n===Pn,label:Object(l.__)("Feedback","crowdsignal-forms"),onClick:d(Pn)},Object(l.__)("Feedback","crowdsignal-forms"))),Object(a.createElement)(E.ToolbarGroup,null,Object(a.createElement)(E.ToolbarButton,{className:"crowdsignal-forms-nps__toolbar-popover-button",icon:"visibility",label:Object(l.__)("Set view threshold","crowdsignal-forms"),onClick:function(){return u(!0)}},s&&Object(a.createElement)(E.Popover,{onClose:function(){return u(!1)}},Object(a.createElement)("div",{className:"crowdsignal-forms-nps__toolbar-popover"},Object(a.createElement)(E.TextControl,{label:Object(l.__)("Show this block after __ visits:","crowdsignal-forms"),value:t.viewThreshold,onChange:function(e){return o({viewThreshold:e})},type:"number",min:"1"}))))))},Hn=function(e,t){return Object(b.mapKeys)({backgroundColor:e.backgroundColor||"#ffffff",buttonColor:e.buttonColor||t.accentColor,buttonTextColor:e.buttonTextColor||t.textColorInverted,textColor:e.textColor||t.textColor,textSize:t.textSize},(function(e,t){return"--crowdsignal-forms-".concat(Object(b.kebabCase)(t))}))},Vn=function(e){var t=e.retryHandler;return Object(a.createElement)(pt,{status:"error",icon:"warning",isDismissible:!1,actions:[{className:"is-destructive",label:Object(l.__)("Retry","crowdsignal-forms"),onClick:t}]},Object(l.__)("Unfortunately, the block couldn't be saved to Crowdsignal.com.","crowdsignal-forms"))},Un=Object(x.compose)([Object(f.withSelect)((function(e){return{sourceLink:e("core/editor").getPermalink()}})),Ae])((function(e){var t=Object(_.useState)(In),n=j()(t,2),r=n[0],o=n[1],c=e.attributes,i=e.clientId,s=e.fallbackStyles,u=e.isSelected,m=e.setAttributes,p=e.renderStyleProbe,g=e.sourceLink,O=c.feedbackQuestion,v=c.ratingQuestion,h=c.surveyId,C=c.title,k=c.isExample,x=c.viewThreshold,S=Rn(function(){var e=D()(A.a.mark((function e(t){var n;return A.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Object(f.dispatch)("core/editor").lockPostSaving(i),e.prev=1,e.next=4,Bn({feedbackQuestion:t.feedbackQuestion,ratingQuestion:t.ratingQuestion,sourceLink:t.sourceLink,surveyId:t.surveyId,title:t.title||t.ratingQuestion});case 4:n=e.sent,t.surveyId||m({surveyId:n.surveyId});case 6:return e.prev=6,Object(f.dispatch)("core/editor").unlockPostSaving(i),e.finish(6);case 9:case"end":return e.stop()}}),e,null,[[1,,6,9]])})));return function(t){return e.apply(this,arguments)}}(),{feedbackQuestion:O,ratingQuestion:v,sourceLink:g,surveyId:h,title:C}),I=S.error,P=S.save;Object(_.useEffect)((function(){k||c.surveyId||P()}),[]),Object(_.useEffect)((function(){u||o(In)}),[u]);var N=function(e){return function(t){return m(d()({},e,t))}},L=T()("crowdsignal-forms-nps",{"is-inactive":!k&&!u}),R=we(),B=Object(b.get)(R,"capabilities").includes("hide-branding"),F=Object(b.get)(R,["signalCount","shouldDisplay"]),M=F&&Object(b.get)(R,["signalCount","count"])>=Object(b.get)(R,["signalCount","userLimit"]);return Object(a.createElement)(ct,{blockIcon:null,blockName:Object(l.__)("Crowdsignal NPS","crowdsignal-forms")},Object(a.createElement)(Mn,w()({currentView:r,onViewChange:o},e)),Object(a.createElement)(Fn,w()({shouldPromote:F,signalWarning:M},e)),!k&&M&&Object(a.createElement)(gt,null),!k&&I&&Object(a.createElement)(Vn,{retryHandler:P}),!k&&Object(a.createElement)(pt,{isDismissible:!1,icon:"visibility",componentActions:[Object(a.createElement)(An.PostPreviewButton,{key:1,className:["is-secondary","components-notice__action","crowdsignal-forms-nps__preview-button",c.surveyId?"":"is-disabled"],textContent:Object(l.__)("Preview","crowdsignal-forms")})]},Object(l.sprintf)(Object(l._n)("This block will appear as a popup window to people who have visited this page at least %d time.","This block will appear as a popup window to people who have visited this page at least %d times.",x,"crowdsignal-forms"),x)),(r===In||!u)&&Object(a.createElement)("div",{className:L,style:Hn(c,s)},Object(a.createElement)(y.RichText,{tagName:"h3",className:"crowdsignal-forms-nps__question",placeholder:Object(l.__)("Enter your rating question","crowdsignal-forms"),onChange:N("ratingQuestion"),value:v,allowedFormats:[]}),Object(a.createElement)("div",{className:"crowdsignal-forms-nps__rating"},Object(a.createElement)("div",{className:"crowdsignal-forms-nps__rating-labels"},Object(a.createElement)(y.RichText,{tagName:"span",placeholder:Object(l.__)("Not likely","crowdsignal-forms"),onChange:N("lowRatingLabel"),value:c.lowRatingLabel,allowedFormats:[],multiline:!1,disableLineBreaks:!0}),Object(a.createElement)(y.RichText,{tagName:"span",placeholder:Object(l.__)("Very likely","crowdsignal-forms"),onChange:N("highRatingLabel"),value:c.highRatingLabel,allowedFormats:[],multiline:!1,disableLineBreaks:!0})),Object(a.createElement)("div",{className:"crowdsignal-forms-nps__rating-scale"},Object(b.times)(11,(function(e){return Object(a.createElement)("div",{key:"rating-".concat(e),className:"crowdsignal-forms-nps__rating-button"},e)}))),!B&&Object(a.createElement)(Ce,{trackRef:"cs-forms-nps",editing:!0,message:Object(l.__)("Collect your own feedback with Crowdsignal","crowdsignal-forms")}))),r===Pn&&u&&Object(a.createElement)("div",{className:L,style:Hn(c,s)},Object(a.createElement)("div",{className:"crowdsignal-forms-nps__feedback"},Object(a.createElement)(y.RichText,{tagName:"h3",className:"crowdsignal-forms-nps__question",placeholder:Object(l.__)("Enter your feedback question","crowdsignal-forms"),onChange:N("feedbackQuestion"),value:O,allowedFormats:[]}),Object(a.createElement)(E.TextareaControl,{className:"crowdsignal-forms-nps__feedback-text",rows:6,onChange:N("feedbackPlaceholder"),value:c.feedbackPlaceholder}),Object(a.createElement)("div",{className:"wp-block-button crowdsignal-forms-nps__feedback-button-wrapper"},Object(a.createElement)(y.RichText,{className:"wp-block-button__link crowdsignal-forms-nps__feedback-button",onChange:N("submitButtonLabel"),value:c.submitButtonLabel,allowedFormats:[],multiline:!1,disableLineBreaks:!0})),!B&&Object(a.createElement)(Ce,{trackRef:"cs-forms-nps",editing:!0,message:Object(l.__)("Collect your own feedback with Crowdsignal","crowdsignal-forms")}))),p())})),Wn={title:Object(l.__)("Measure NPS","crowdsignal-forms"),description:Object(l.__)("Calculate your Net Promoter Score! Collect feedback and track customer satisfaction over time. — powered by Crowdsignal.","crowdsignal-forms"),category:"crowdsignal-forms",attributes:Ln,supports:{multiple:!1,html:!1,reusable:!1},icon:Object(a.createElement)((function(){return Object(a.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)("path",{d:"M4.49707 15V10.3857H4.54102L7.83691 15H9.05762V7.9541H7.64648V12.5439H7.60742L4.31641 7.9541H3.08594V15H4.49707ZM9.73438 7.9541V15H11.209V12.7783H12.5273C14.0117 12.7783 15.042 11.8115 15.042 10.3662C15.042 8.91602 14.0459 7.9541 12.6006 7.9541H9.73438ZM11.209 9.12109H12.21C13.0547 9.12109 13.543 9.57031 13.543 10.3711C13.543 11.1768 13.0498 11.626 12.2051 11.626H11.209V9.12109ZM15.1523 12.9932C15.1963 14.3164 16.2754 15.1221 17.9697 15.1221C19.7178 15.1221 20.8262 14.2578 20.8262 12.8906C20.8262 11.8164 20.2109 11.2109 18.7998 10.9082L17.9453 10.7275C17.1348 10.542 16.793 10.2979 16.793 9.86328C16.793 9.34082 17.2812 8.99414 18.0088 8.99414C18.7461 8.99414 19.2686 9.35547 19.3174 9.95117H20.6992C20.6748 8.67676 19.6445 7.83203 18.0039 7.83203C16.4316 7.83203 15.3086 8.69141 15.3086 9.99023C15.3086 11.0205 15.9482 11.6797 17.2471 11.958L18.165 12.1582C19.0146 12.3486 19.3516 12.6025 19.3516 13.0615C19.3516 13.5791 18.8145 13.9551 18.0283 13.9551C17.2471 13.9551 16.6416 13.5742 16.5732 12.9932H15.1523Z"}))}),null),edit:Un,keywords:[Object(l.__)("ask","crowdsignal-forms"),"crowdsignal",Object(l.__)("CSAT","crowdsignal-forms"),Object(l.__)("customer experience","crowdsignal-forms"),Object(l.__)("customer satisfaction","crowdsignal-forms"),Object(l.__)("feedback","crowdsignal-forms"),Object(l.__)("form","crowdsignal-forms"),Object(l.__)("loyalty","crowdsignal-forms"),Object(l.__)("net promoter score","crowdsignal-forms"),Object(l.__)("nps","crowdsignal-forms"),Object(l.__)("opinion","crowdsignal-forms"),Object(l.__)("poll","crowdsignal-forms"),Object(l.__)("promoter","crowdsignal-forms"),Object(l.__)("research","crowdsignal-forms"),Object(l.__)("rating","crowdsignal-forms"),Object(l.__)("review","crowdsignal-forms"),Object(l.__)("score","crowdsignal-forms"),Object(l.__)("survey","crowdsignal-forms")],example:{attributes:{isExample:!0,ratingQuestion:Object(l.__)("How satisfied are you with the content of the site?","crowdsignal-forms"),feedbackQuestion:Object(l.__)("Any advise on how we could improve your experience?","crowdsignal-forms"),lowRatingLabel:Object(l.__)("Not satisfied","crowdsignal-forms"),highRatingLabel:Object(l.__)("Very satisfied","crowdsignal-forms")}}},zn="question",Kn="submit",qn=Object.freeze({OPEN:"open",CLOSED:"closed",CLOSED_AFTER:"closed-after"}),Gn=Object.freeze({CLICK:"click",HOVER:"hover",PAGE_LOAD:"load"}),Zn={backgroundColor:{type:"string"},buttonColor:{type:"string"},buttonTextColor:{type:"string"},emailPlaceholder:{type:"string",default:Object(l.__)("Your Email","crowdsignal-forms")},emailRequired:{type:"boolean",default:!1},feedbackPlaceholder:{type:"string",default:Object(l.__)("Please let us know how we can do better…","crowdsignal-forms")},header:{type:"string",default:Object(l.__)("👋 Hey there!","crowdsignal-forms")},hideBranding:{type:"boolean",default:!1},hideTriggerShadow:{type:"boolean",default:!1},submitButtonLabel:{type:"string",default:Object(l.__)("Submit","crowdsignal-forms")},submitText:{type:"string",default:Object(l.__)("Thanks for letting us know!","crowdsignal-forms")},surveyId:{type:"number",default:null},textColor:{type:"string"},toggleOn:{type:"string",default:Gn.CLICK},triggerLabel:{type:"string",default:Object(l.__)("Feedback","crowdsignal-forms")},triggerBackgroundColor:{type:"string"},triggerTextColor:{type:"string"},title:{type:"string",default:""},x:{type:"string",default:"left"},y:{type:"string",default:"bottom"},status:{type:"string",default:qn.OPEN},closedAfterDateTime:{type:"string",default:null},emailResponses:{type:"boolean",default:!0},isExample:{type:"boolean",default:!1}};function Yn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yn(Object(n),!0).forEach((function(t){d()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Jn,Xn=function(e,t){return{left:e.left+t.x+window.scrollX,right:e.right+(window.innerWidth>t.left+t.width?window.innerWidth-t.left-t.width:0),top:e.top+t.y+window.scrollY,bottom:e.bottom+(window.innerHeight>t.top+t.height?window.innerHeight-t.top-t.height:0)}},$n=function(e,t,n){return{left:"left"===e?n.left:null,right:"right"===e?n.right:null}},er=function(e,t,n){return"center"===e?{top:(window.innerHeight-t)/2,bottom:null}:{top:"top"===e?n.top:null,bottom:"bottom"===e?n.bottom:null}},tr=function(e){var t=e.attributes,n=e.setAttributes,r=e.shouldPromote,o=e.signalWarning,c=e.email,i="https://app.crowdsignal.com/surveys/".concat(t.surveyId,"/report/overview"),s=function(e){return function(t){return n(d()({},e,t))}};return Object(a.createElement)(y.InspectorControls,null,Object(a.createElement)(E.PanelBody,{title:Object(l.__)("Results","crowdsignal-forms"),initialOpen:!0},Object(a.createElement)("p",null,t.surveyId?Object(l.__)("Manage results on ","crowdsignal-forms"):Object(l.__)("Save the block to track results on ","crowdsignal-forms"),Object(a.createElement)(E.ExternalLink,{href:"https://www.crowdsignal.com"},"crowdsignal.com")),Object(a.createElement)("p",null,Object(a.createElement)(E.Button,{isSecondary:!0,disabled:!t.surveyId,href:i,target:"blank"},Object(l.__)("View results","crowdsignal-forms"))),Object(a.createElement)(E.TextControl,{label:Object(l.__)("Title (optional)","crowdsignal-forms"),onChange:function(e){return n({title:e})},value:Object(k.decodeEntities)(t.title)}),Object(a.createElement)(E.ToggleControl,{label:Object(l.__)("Send me responses via email","crowdsignal-forms"),checked:t.emailResponses,onChange:s("emailResponses"),help:t.emailResponses&&c&&Object(l.sprintf)(Object(l.__)("Responses will be sent to %s","crowdsignal-forms"),c)}),r&&Object(a.createElement)(Ge,{signalWarning:o})),Object(a.createElement)(y.PanelColorSettings,{title:Object(l.__)("Feedback Button","crowdsignal-forms"),initialOpen:!1,colorSettings:[{label:Object(l.__)("Background color","crowdsignal-forms"),onChange:s("triggerBackgroundColor"),value:t.triggerBackgroundColor},{label:Object(l.__)("Text color","crowdsignal-forms"),onChange:s("triggerTextColor"),value:t.triggerTextColor}]},Object(a.createElement)(E.ToggleControl,{label:Object(l.__)("Hide Shadow","crowdsignal-forms"),checked:t.hideTriggerShadow,onChange:s("hideTriggerShadow")})),Object(a.createElement)(y.PanelColorSettings,{title:Object(l.__)("Block styling","crowdsignal-forms"),initialOpen:!1,colorSettings:[{label:Object(l.__)("Background color","crowdsignal-forms"),onChange:s("backgroundColor"),value:t.backgroundColor},{label:Object(l.__)("Text color","crowdsignal-forms"),onChange:s("textColor"),value:t.textColor},{label:Object(l.__)("Button color","crowdsignal-forms"),onChange:s("buttonColor"),value:t.buttonColor},{label:Object(l.__)("Button text color","crowdsignal-forms"),onChange:s("buttonTextColor"),value:t.buttonTextColor}]}),Object(a.createElement)(E.PanelBody,{title:Object(l.__)("Settings","crowdsignal-forms"),initialOpen:!1},Object(a.createElement)(E.SelectControl,{value:t.status,label:Object(l.__)("Status","crowdsignal-forms"),options:[{label:Object(l.__)("Open","crowdsignal-forms"),value:qn.OPEN},{label:Object(l.__)("Closed after","crowdsignal-forms"),value:qn.CLOSED_AFTER},{label:Object(l.__)("Closed","crowdsignal-forms"),value:qn.CLOSED}],onChange:function(e){return n({status:e})},help:qn.CLOSED_AFTER===t.status&&null!==t.closedAfterDateTime&&(new Date).toISOString()>t.closedAfterDateTime?"Currently closed as date has passed":""}),qn.CLOSED_AFTER===t.status&&Object(a.createElement)(E.DateTimePicker,{currentDate:t.closedAfterDateTime&&new Date(t.closedAfterDateTime)||new Date,label:Object(l.__)("Close on","crowdsignal-forms"),onChange:function(e){var t=new Date(e);n({closedAfterDateTime:t.toISOString()})},is12Hour:!0}),Object(a.createElement)(E.SelectControl,{value:t.toggleOn,label:Object(l.__)("Show feedback form on:","crowdsignal-forms"),options:[{label:Object(l.__)("Click","crowdsignal-forms"),value:Gn.CLICK},{label:Object(l.__)("Hover","crowdsignal-forms"),value:Gn.HOVER},{label:Object(l.__)("Page load","crowdsignal-forms"),value:Gn.PAGE_LOAD}],onChange:s("toggleOn")}),Object(a.createElement)(E.ToggleControl,{label:Object(l.__)("Require email address","crowdsignal-forms"),checked:t.emailRequired,onChange:s("emailRequired")})))},nr=n(33);function rr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function or(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ar(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?or(Object(n),!0).forEach((function(t){rr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):or(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lr(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function cr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ir(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return cr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?cr(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function sr(e){return e?e.ownerDocument||e:document}try{Jn=window}catch(fa){}function ur(e){return e&&sr(e).defaultView||Jn}var dr,fr=(dr=ur(),Boolean(void 0!==dr&&dr.document&&dr.document.createElement)),br=fr?_.useLayoutEffect:_.useEffect;function mr(e){return Object(_.useState)(e)[0]}function pr(e){for(var t,n=[[]],r=function(){var e=t.value,r=n.find((function(t){return!t[0]||t[0].groupId===e.groupId}));r?r.push(e):n.push([e])},o=ir(e);!(t=o()).done;)r();return n}function gr(e){for(var t,n=[],r=ir(e);!(t=r()).done;){var o=t.value;n.push.apply(n,o)}return n}function Or(e){return e.slice().reverse()}function vr(e,t){return t?e.find((function(e){return!e.disabled&&e.id!==t})):e.find((function(e){return!e.disabled}))}function wr(e,t){var n;return t||null===t?t:e.currentId||null===e.currentId?e.currentId:null===(n=vr(e.items||[]))||void 0===n?void 0:n.id}function hr(e,t){if(t)return null==e?void 0:e.find((function(e){return e.id===t&&!e.disabled}))}function jr(e,t){return function(e){return"function"==typeof e}(e)?e(t):e}function _r(e){return void 0===e&&(e="id"),(e?e+"-":"")+Math.random().toString(32).substr(2,6)}var Cr=Object(_.createContext)(_r);function yr(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function Er(e,t){return e.findIndex((function(e){return!(!e.ref.current||!t.ref.current)&&yr(t.ref.current,e.ref.current)}))}function kr(e){for(var t,n=0,r=ir(e);!(t=r()).done;){var o=t.value.length;o>n&&(n=o)}return n}function xr(e){for(var t=pr(e),n=kr(t),r=[],o=0;o<n;o+=1)for(var a,l=ir(t);!(a=l()).done;){var c=a.value;c[o]&&r.push(ar(ar({},c[o]),{},{groupId:c[o].groupId?""+o:void 0}))}return r}function Sr(e,t,n){for(var r,o=kr(e),a=ir(e);!(r=a()).done;)for(var l=r.value,c=0;c<o;c+=1){var i=l[c];if(!i||n&&i.disabled){var s=0===c&&n?vr(l):l[c-1];l[c]=s&&t!==(null==s?void 0:s.id)&&n?s:{id:"__EMPTY_ITEM__",disabled:!0,ref:{current:null},groupId:null==s?void 0:s.groupId}}}return e}var Tr={id:null,ref:{current:null}};function Ir(e,t){return e.filter((function(e){return e.groupId===t}))}var Pr={horizontal:"vertical",vertical:"horizontal"};function Nr(e,t,n){return n in e?[].concat(e.slice(0,n),[t],e.slice(n)):[].concat(e,[t])}function Lr(e){var t=e.map((function(e,t){return[t,e]})),n=!1;return t.sort((function(e,t){var r=e[0],o=e[1],a=t[0],l=t[1],c=o.ref.current,i=l.ref.current;return c&&i?yr(c,i)?(r>a&&(n=!0),-1):(r<a&&(n=!0),1):0})),n?t.map((function(e){e[0];return e[1]})):e}function Ar(e,t){var n=Lr(e);e!==n&&t(n)}function Rr(e,t){var n=Object(_.useRef)([]);Object(_.useEffect)((function(){for(var r,o=function(e){for(var t,n=e[0],r=e.slice(1),o=null==n||null===(t=n.ref.current)||void 0===t?void 0:t.parentElement,a=function(){var e=o;if(r.every((function(t){return e.contains(t.ref.current)})))return{v:o};o=o.parentElement};o;){var l=a();if("object"==typeof l)return l.v}return sr(o).body}(e),a=new IntersectionObserver((function(){!!n.current.length&&Ar(e,t),n.current=e}),{root:o}),l=ir(e);!(r=l()).done;){var c=r.value;c.ref.current&&a.observe(c.ref.current)}return function(){a.disconnect()}}),[e])}function Dr(e,t){"function"==typeof IntersectionObserver?Rr(e,t):function(e,t){Object(_.useEffect)((function(){var n=setTimeout((function(){return Ar(e,t)}),250);return function(){return clearTimeout(n)}}))}(e,t)}function Br(e,t){var n=e.unstable_virtual,r=e.rtl,o=e.orientation,a=e.items,l=e.groups,c=e.currentId,i=e.loop,s=e.wrap,u=e.pastIds,d=e.shift,f=e.unstable_moves,b=e.unstable_includesBaseElement,m=e.initialVirtual,p=e.initialRTL,g=e.initialOrientation,O=e.initialCurrentId,v=e.initialLoop,w=e.initialWrap,h=e.initialShift,j=e.hasSetCurrentId;switch(t.type){case"registerGroup":var _=t.group;if(0===l.length)return ar(ar({},e),{},{groups:[_]});var C=Er(l,_);return ar(ar({},e),{},{groups:Nr(l,_,C)});case"unregisterGroup":var y=t.id,E=l.filter((function(e){return e.id!==y}));return E.length===l.length?e:ar(ar({},e),{},{groups:E});case"registerItem":var k,x=t.item,S=l.find((function(e){var t;return null===(t=e.ref.current)||void 0===t?void 0:t.contains(x.ref.current)})),T=ar({groupId:null==S?void 0:S.id},x),I=Er(a,T),P=ar(ar({},e),{},{items:Nr(a,T,I)});return j||f||void 0!==O?P:ar(ar({},P),{},{currentId:null===(k=vr(P.items))||void 0===k?void 0:k.id});case"unregisterItem":var N=t.id,L=a.filter((function(e){return e.id!==N}));if(L.length===a.length)return e;var A=u.filter((function(e){return e!==N})),R=ar(ar({},e),{},{pastIds:A,items:L});if(c&&c===N){var D=b?null:wr(ar(ar({},R),{},{currentId:A[0]}));return ar(ar({},R),{},{currentId:D})}return R;case"move":var B=t.id;if(void 0===B)return e;var F=u.filter((function(e){return e!==c&&e!==B})),M=c?[c].concat(F):F,H=ar(ar({},e),{},{pastIds:M});if(null===B)return ar(ar({},H),{},{unstable_moves:f+1,currentId:wr(H,B)});var V=hr(a,B);return ar(ar({},H),{},{unstable_moves:V?f+1:f,currentId:wr(H,null==V?void 0:V.id)});case"next":if(null==c)return Br(e,ar(ar({},t),{},{type:"first"}));var U=r&&"vertical"!==o,W=U?Or(a):a,z=W.find((function(e){return e.id===c}));if(!z)return Br(e,ar(ar({},t),{},{type:"first"}));var K=!!z.groupId,q=W.indexOf(z),G=W.slice(q+1),Z=Ir(G,z.groupId);if(t.allTheWay){var Y=vr(U?Ir(W,z.groupId):Or(Z));return Br(e,ar(ar({},t),{},{type:"move",id:null==Y?void 0:Y.id}))}var Q=function(e){return e&&Pr[e]}(K?o||"horizontal":o),J=i&&i!==Q,X=K&&s&&s!==Q,$=t.hasNullItem||!K&&J&&b;if(J){var ee=vr(function(e,t,n){var r=e.findIndex((function(e){return e.id===t}));return[].concat(e.slice(r+1),n?[Tr]:[],e.slice(0,r))}(X&&!$?W:Ir(W,z.groupId),c,$),c);return Br(e,ar(ar({},t),{},{type:"move",id:null==ee?void 0:ee.id}))}if(X){var te=vr($?Z:G,c),ne=$?(null==te?void 0:te.id)||null:null==te?void 0:te.id;return Br(e,ar(ar({},t),{},{type:"move",id:ne}))}var re=vr(Z,c);return Br(e,!re&&$?ar(ar({},t),{},{type:"move",id:null}):ar(ar({},t),{},{type:"move",id:null==re?void 0:re.id}));case"previous":var oe=!!!l.length&&b,ae=Br(ar(ar({},e),{},{items:Or(a)}),ar(ar({},t),{},{type:"next",hasNullItem:oe}));return ar(ar({},ae),{},{items:a});case"down":var le=d&&!t.allTheWay,ce=xr(gr(Sr(pr(a),c,le))),ie=i&&"horizontal"!==i&&b,se=Br(ar(ar({},e),{},{orientation:"vertical",items:ce}),ar(ar({},t),{},{type:"next",hasNullItem:ie}));return ar(ar({},se),{},{orientation:o,items:a});case"up":var ue=d&&!t.allTheWay,de=xr(Or(gr(Sr(pr(a),c,ue)))),fe=b,be=Br(ar(ar({},e),{},{orientation:"vertical",items:de}),ar(ar({},t),{},{type:"next",hasNullItem:fe}));return ar(ar({},be),{},{orientation:o,items:a});case"first":var me=vr(a);return Br(e,ar(ar({},t),{},{type:"move",id:null==me?void 0:me.id}));case"last":var pe=Br(ar(ar({},e),{},{items:Or(a)}),ar(ar({},t),{},{type:"first"}));return ar(ar({},pe),{},{items:a});case"sort":return ar(ar({},e),{},{items:Lr(a),groups:Lr(l)});case"setVirtual":return ar(ar({},e),{},{unstable_virtual:jr(t.virtual,n)});case"setRTL":return ar(ar({},e),{},{rtl:jr(t.rtl,r)});case"setOrientation":return ar(ar({},e),{},{orientation:jr(t.orientation,o)});case"setCurrentId":var ge=wr(ar(ar({},e),{},{currentId:jr(t.currentId,c)}));return ar(ar({},e),{},{currentId:ge,hasSetCurrentId:!0});case"setLoop":return ar(ar({},e),{},{loop:jr(t.loop,i)});case"setWrap":return ar(ar({},e),{},{wrap:jr(t.wrap,s)});case"setShift":return ar(ar({},e),{},{shift:jr(t.shift,d)});case"setIncludesBaseElement":return ar(ar({},e),{},{unstable_includesBaseElement:jr(t.includesBaseElement,b)});case"reset":return ar(ar({},e),{},{unstable_virtual:m,rtl:p,orientation:g,currentId:wr(ar(ar({},e),{},{currentId:O})),loop:v,wrap:w,shift:h,unstable_moves:0,pastIds:[]});case"setItems":return ar(ar({},e),{},{items:t.items});default:throw new Error}}function Fr(e){return Object(_.useCallback)(e,[])}function Mr(e){void 0===e&&(e={});var t=mr(e),n=t.unstable_virtual,r=void 0!==n&&n,o=t.rtl,a=void 0!==o&&o,l=t.orientation,c=t.currentId,i=t.loop,s=void 0!==i&&i,u=t.wrap,d=void 0!==u&&u,f=t.shift,b=void 0!==f&&f,m=t.unstable_includesBaseElement,p=function(e){void 0===e&&(e={});var t=mr(e).baseId,n=Object(_.useContext)(Cr),r=Object(_.useRef)(0),o=Object(_.useState)((function(){return t||n()}));return{baseId:o[0],setBaseId:o[1],unstable_idCountRef:r}}(lr(t,["unstable_virtual","rtl","orientation","currentId","loop","wrap","shift","unstable_includesBaseElement"])),g=Object(_.useReducer)(Br,{unstable_virtual:r,rtl:a,orientation:l,items:[],groups:[],currentId:c,loop:s,wrap:d,shift:b,unstable_moves:0,pastIds:[],unstable_includesBaseElement:null!=m?m:null===c,initialVirtual:r,initialRTL:a,initialOrientation:l,initialCurrentId:c,initialLoop:s,initialWrap:d,initialShift:b}),O=g[0],v=(O.pastIds,O.initialVirtual,O.initialRTL,O.initialOrientation,O.initialCurrentId,O.initialLoop,O.initialWrap,O.initialShift,O.hasSetCurrentId,lr(O,["pastIds","initialVirtual","initialRTL","initialOrientation","initialCurrentId","initialLoop","initialWrap","initialShift","hasSetCurrentId"])),w=g[1],h=Object(_.useState)(!1),j=h[0],C=h[1],y=function(){var e=Object(_.useRef)(!1);return br((function(){return function(){e.current=!0}}),[]),e}(),E=Object(_.useCallback)((function(e){return w({type:"setItems",items:e})}),[]);return Dr(v.items,E),ar(ar(ar({},p),v),{},{unstable_hasActiveWidget:j,unstable_setHasActiveWidget:C,registerItem:Fr((function(e){y.current||w({type:"registerItem",item:e})})),unregisterItem:Fr((function(e){y.current||w({type:"unregisterItem",id:e})})),registerGroup:Fr((function(e){y.current||w({type:"registerGroup",group:e})})),unregisterGroup:Fr((function(e){y.current||w({type:"unregisterGroup",id:e})})),move:Fr((function(e){return w({type:"move",id:e})})),next:Fr((function(e){return w({type:"next",allTheWay:e})})),previous:Fr((function(e){return w({type:"previous",allTheWay:e})})),up:Fr((function(e){return w({type:"up",allTheWay:e})})),down:Fr((function(e){return w({type:"down",allTheWay:e})})),first:Fr((function(){return w({type:"first"})})),last:Fr((function(){return w({type:"last"})})),sort:Fr((function(){return w({type:"sort"})})),unstable_setVirtual:Fr((function(e){return w({type:"setVirtual",virtual:e})})),setRTL:Fr((function(e){return w({type:"setRTL",rtl:e})})),setOrientation:Fr((function(e){return w({type:"setOrientation",orientation:e})})),setCurrentId:Fr((function(e){return w({type:"setCurrentId",currentId:e})})),setLoop:Fr((function(e){return w({type:"setLoop",loop:e})})),setWrap:Fr((function(e){return w({type:"setWrap",wrap:e})})),setShift:Fr((function(e){return w({type:"setShift",shift:e})})),unstable_setIncludesBaseElement:Fr((function(e){return w({type:"setIncludesBaseElement",includesBaseElement:e})})),reset:Fr((function(){return w({type:"reset"})}))})}function Hr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ur(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vr(Object(n),!0).forEach((function(t){Hr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wr(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function zr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Kr(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return zr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zr(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}var qr=Object(_.createContext)({});var Gr=function(e,t,n){void 0===n&&(n=t.children);var r=Object(_.useContext)(qr);if(r.useCreateElement)return r.useCreateElement(e,t,n);if("string"==typeof e&&function(e){return"function"==typeof e}(n)){t.children;return n(Wr(t,["children"]))}return Object(_.createElement)(e,t,n)};function Zr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yr(Object(n),!0).forEach((function(t){Zr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Jr(e){return"object"==typeof e&&null!=e}function Xr(e){var t;if(!Jr(e))return!1;var n=Object.getPrototypeOf(e);return null==n||(null===(t=n.constructor)||void 0===t?void 0:t.toString())===Object.toString()}function $r(e,t){for(var n={},r={},o=0,a=Object.keys(e);o<a.length;o++){var l=a[o];t.indexOf(l)>=0?n[l]=e[l]:r[l]=e[l]}return[n,r]}function eo(e,t){if(void 0===t&&(t=[]),!Xr(e.state))return $r(e,t);var n=$r(e,[].concat(t,["state"])),r=n[0],o=n[1],a=r.state,l=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(r,["state"]);return[Qr(Qr({},a),l),o]}function to(e,t){if(e===t)return!0;if(!e)return!1;if(!t)return!1;if("object"!=typeof e)return!1;if("object"!=typeof t)return!1;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var a=0,l=n;a<l.length;a++){var c=l[a];if(e[c]!==t[c])return!1}return!0}function no(e){return"normalizePropsAreEqualInner"===e.name?e:function(t,n){return Xr(t.state)&&Xr(n.state)?e(Qr(Qr({},t.state),t),Qr(Qr({},n.state),n)):e(t,n)}}function ro(e){var t,n=e.as,r=e.useHook,o=e.memo,a=e.propsAreEqual,l=void 0===a?null==r?void 0:r.unstable_propsAreEqual:a,c=e.keys,i=void 0===c?(null==r?void 0:r.__keys)||[]:c,s=e.useCreateElement,u=void 0===s?Gr:s,d=function(e,t){var o=e.as,a=void 0===o?n:o,l=Wr(e,["as"]);if(r){var c,s=eo(l,i),d=s[0],f=s[1],b=r(d,Ur({ref:t},f)),m=b.wrapElement,p=Wr(b,["wrapElement"]),g=(null===(c=a.render)||void 0===c?void 0:c.__keys)||a.__keys,O=g&&eo(l,g)[0],v=O?Ur(Ur({},p),O):p,w=u(a,v);return m?m(w):w}return u(a,Ur({ref:t},l))};return t=d,d=Object(_.forwardRef)(t),o&&(d=function(e,t){return Object(_.memo)(e,t)}(d,l&&no(l))),d.__keys=i,d.unstable_propsAreEqual=no(l||to),d}function oo(e,t){Object(_.useDebugValue)(e);var n=Object(_.useContext)(qr);return null!=n[e]?n[e]:t}function ao(e){var t,n,r,o=(r=e.compose,Array.isArray(r)?r:void 0!==r?[r]:[]),a=function(t,n){if(e.useOptions&&(t=e.useOptions(t,n)),e.name&&(t=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var r="use"+e+"Options";Object(_.useDebugValue)(r);var o=oo(r);return o?Ur(Ur({},t),o(t,n)):t}(e.name,t,n)),e.compose)for(var r,a=Kr(o);!(r=a()).done;){t=r.value.__useOptions(t,n)}return t},l=function(t,n,r){if(void 0===t&&(t={}),void 0===n&&(n={}),void 0===r&&(r=!1),r||(t=a(t,n)),e.useProps&&(n=e.useProps(t,n)),e.name&&(n=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var r="use"+e+"Props";Object(_.useDebugValue)(r);var o=oo(r);return o?o(t,n):n}(e.name,t,n)),e.compose)if(e.useComposeOptions&&(t=e.useComposeOptions(t,n)),e.useComposeProps)n=e.useComposeProps(t,n);else for(var l,c=Kr(o);!(l=c()).done;){n=(0,l.value)(t,n,!0)}var i={},s=n||{};for(var u in s)void 0!==s[u]&&(i[u]=s[u]);return i};l.__useOptions=a;var c=o.reduce((function(e,t){return e.push.apply(e,t.__keys||[]),e}),[]);return l.__keys=[].concat(c,(null===(t=e.useState)||void 0===t?void 0:t.__keys)||[],e.keys||[]),l.unstable_propsAreEqual=e.propsAreEqual||(null===(n=o[0])||void 0===n?void 0:n.unstable_propsAreEqual)||to,l}function lo(e,t){void 0===t&&(t=null),e&&("function"==typeof e?e(t):e.current=t)}function co(e,t){return Object(_.useMemo)((function(){return null==e&&null==t?null:function(n){lo(e,n),lo(t,n)}}),[e,t])}function io(e){var t=Object(_.useRef)(e);return br((function(){t.current=e})),t}function so(e){return e.target===e.currentTarget}var uo=ao({name:"Role",keys:["unstable_system"],propsAreEqual:function(e,t){var n=e.unstable_system,r=lr(e,["unstable_system"]),o=t.unstable_system,a=lr(t,["unstable_system"]);return!(n!==o&&!to(n,o))&&to(r,a)}}),fo=(ro({as:"div",useHook:uo}),["button","color","file","image","reset","submit"]);function bo(e){if("BUTTON"===e.tagName)return!0;if("INPUT"===e.tagName){var t=e;return-1!==fo.indexOf(t.type)}return!1}function mo(e){var t=sr(e).activeElement;return null!=t&&t.nodeName?t:null}function po(e,t){return e===t||e.contains(t)}function go(e){var t=mo(e);if(!t)return!1;if(po(e,t))return!0;var n=t.getAttribute("aria-activedescendant");return!!n&&(n===e.id||!!e.querySelector("#"+n))}function Oo(e){return!po(e.currentTarget,e.target)}function vo(e){return!!fr&&-1!==window.navigator.userAgent.indexOf(e)}function wo(e,t){return"matches"in e?e.matches(t):"msMatchesSelector"in e?e.msMatchesSelector(t):e.webkitMatchesSelector(t)}var ho="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";function jo(e){return wo(e,ho)&&function(e){var t=e;return t.offsetWidth>0||t.offsetHeight>0||e.getClientRects().length>0}(e)}var _o=vo("Mac")&&!vo("Chrome")&&(vo("Safari")||vo("Firefox"));function Co(e){!go(e)&&jo(e)&&e.focus()}function yo(e,t,n,r){return e?t&&!n?-1:void 0:t?r:r||0}function Eo(e,t){return Object(_.useCallback)((function(n){var r;null===(r=e.current)||void 0===r||r.call(e,n),n.defaultPrevented||t&&(n.stopPropagation(),n.preventDefault())}),[e,t])}var ko=ao({name:"Tabbable",compose:uo,keys:["disabled","focusable"],useOptions:function(e,t){return ar({disabled:t.disabled},e)},useProps:function(e,t){var n=t.ref,r=t.tabIndex,o=t.onClickCapture,a=t.onMouseDownCapture,l=t.onMouseDown,c=t.onKeyPressCapture,i=t.style,s=lr(t,["ref","tabIndex","onClickCapture","onMouseDownCapture","onMouseDown","onKeyPressCapture","style"]),u=Object(_.useRef)(null),d=io(o),f=io(a),b=io(l),m=io(c),p=!!e.disabled&&!e.focusable,g=Object(_.useState)(!0),O=g[0],v=g[1],w=Object(_.useState)(!0),h=w[0],j=w[1],C=e.disabled?ar({pointerEvents:"none"},i):i;br((function(){var e,t=u.current;t&&("BUTTON"!==(e=t).tagName&&"INPUT"!==e.tagName&&"SELECT"!==e.tagName&&"TEXTAREA"!==e.tagName&&"A"!==e.tagName&&v(!1),function(e){return"BUTTON"===e.tagName||"INPUT"===e.tagName||"SELECT"===e.tagName||"TEXTAREA"===e.tagName}(t)||j(!1))}),[]);var y=Eo(d,e.disabled),E=Eo(f,e.disabled),k=Eo(m,e.disabled),x=Object(_.useCallback)((function(e){var t;null===(t=b.current)||void 0===t||t.call(b,e);var n=e.currentTarget;if(!e.defaultPrevented&&_o&&!Oo(e)&&bo(n)){var r=requestAnimationFrame((function(){n.removeEventListener("mouseup",o,!0),Co(n)})),o=function(){cancelAnimationFrame(r),Co(n)};n.addEventListener("mouseup",o,{once:!0,capture:!0})}}),[]);return ar({ref:co(u,n),style:C,tabIndex:yo(p,O,h,r),disabled:!(!p||!h)||void 0,"aria-disabled":!!e.disabled||void 0,onClickCapture:y,onMouseDownCapture:E,onMouseDown:x,onKeyPressCapture:k},s)}});ro({as:"div",useHook:ko});function xo(e,t,n){if("function"==typeof Event)return new Event(t,n);var r=sr(e).createEvent("Event");return r.initEvent(t,null==n?void 0:n.bubbles,null==n?void 0:n.cancelable),r}function So(e,t,n){return void 0===n&&(n={}),"function"==typeof FocusEvent?new FocusEvent(t,n):xo(e,t,n)}function To(e,t){var n=So(e,"blur",t),r=e.dispatchEvent(n),o=Qr(Qr({},t),{},{bubbles:!0});return e.dispatchEvent(So(e,"focusout",o)),r}function Io(e,t,n){return e.dispatchEvent(function(e,t,n){if(void 0===n&&(n={}),"function"==typeof KeyboardEvent)return new KeyboardEvent(t,n);var r=sr(e).createEvent("KeyboardEvent");return r.initKeyboardEvent(t,n.bubbles,n.cancelable,ur(e),n.key,n.location,n.ctrlKey,n.altKey,n.shiftKey,n.metaKey),r}(e,t,n))}var Po=fr&&"msCrypto"in window;var No=["baseId","unstable_idCountRef","setBaseId","unstable_virtual","rtl","orientation","items","groups","currentId","loop","wrap","shift","unstable_moves","unstable_hasActiveWidget","unstable_includesBaseElement","registerItem","unregisterItem","registerGroup","unregisterGroup","move","next","previous","up","down","first","last","sort","unstable_setVirtual","setRTL","setOrientation","setCurrentId","setLoop","setWrap","setShift","reset","unstable_setIncludesBaseElement","unstable_setHasActiveWidget"],Lo=No,Ao=Lo;function Ro(e){e.userFocus=!0,e.focus(),e.userFocus=!1}function Do(e,t){e.userFocus=t}var Bo=fr&&"msCrypto"in window;function Fo(e,t,n){var r=io(n);return Object(_.useCallback)((function(n){var o;if(null===(o=r.current)||void 0===o||o.call(r,n),!n.defaultPrevented&&e&&function(e){return!!so(e)&&(!e.metaKey&&"Tab"!==e.key)}(n)){var a=null==t?void 0:t.ref.current;a&&(Io(a,n.type,n)||n.preventDefault(),n.currentTarget.contains(a)&&n.stopPropagation())}}),[e,t])}function Mo(e,t){return null==e?void 0:e.some((function(e){return!!t&&e.ref.current===t}))}var Ho=ro({as:"div",useHook:ao({name:"Composite",compose:[ko],keys:No,useOptions:function(e){return ar(ar({},e),{},{currentId:wr(e)})},useProps:function(e,t){var n=t.ref,r=t.onFocusCapture,o=t.onFocus,a=t.onBlurCapture,l=t.onKeyDown,c=t.onKeyDownCapture,i=t.onKeyUpCapture,s=lr(t,["ref","onFocusCapture","onFocus","onBlurCapture","onKeyDown","onKeyDownCapture","onKeyUpCapture"]),u=Object(_.useRef)(null),d=hr(e.items,e.currentId),f=Object(_.useRef)(null),b=io(r),m=io(o),p=io(a),g=io(l),O=function(e){var t=io(e),n=Object(_.useReducer)((function(e){return e+1}),0),r=n[0],o=n[1];return Object(_.useEffect)((function(){var e,n=null===(e=t.current)||void 0===e?void 0:e.ref.current;r&&n&&Ro(n)}),[r]),o}(d),v=Bo?function(e){var t=Object(_.useRef)(null);return Object(_.useEffect)((function(){var n=sr(e.current),r=function(e){var n=e.target;t.current=n};return n.addEventListener("focus",r,!0),function(){n.removeEventListener("focus",r,!0)}}),[]),t}(u):void 0;Object(_.useEffect)((function(){var t=u.current;e.unstable_moves&&!d&&(null==t||t.focus())}),[e.unstable_moves,d]);var w=Fo(e.unstable_virtual,d,c),h=Fo(e.unstable_virtual,d,i),j=Object(_.useCallback)((function(t){var n;if(null===(n=b.current)||void 0===n||n.call(b,t),!t.defaultPrevented&&e.unstable_virtual){var r=(null==v?void 0:v.current)||t.relatedTarget,o=Mo(e.items,r);so(t)&&o&&(t.stopPropagation(),f.current=r)}}),[e.unstable_virtual,e.items]),C=Object(_.useCallback)((function(t){var n;if(null===(n=m.current)||void 0===n||n.call(m,t),!t.defaultPrevented)if(e.unstable_virtual)so(t)&&O();else if(so(t)){var r;null===(r=e.setCurrentId)||void 0===r||r.call(e,null)}}),[e.unstable_virtual,e.setCurrentId]),y=Object(_.useCallback)((function(t){var n;if(null===(n=p.current)||void 0===n||n.call(p,t),!t.defaultPrevented&&e.unstable_virtual){var r=(null==d?void 0:d.ref.current)||null,o=function(e){return Po?mo(e.currentTarget):e.relatedTarget}(t),a=Mo(e.items,o);if(so(t)&&a)o===r?f.current&&f.current!==o&&To(f.current,t):r&&To(r,t),t.stopPropagation();else!Mo(e.items,t.target)&&r&&To(r,t)}}),[e.unstable_virtual,e.items,d]),E=Object(_.useCallback)((function(t){var n,r;if(null===(n=g.current)||void 0===n||n.call(g,t),!t.defaultPrevented&&null===e.currentId&&so(t)){var o="horizontal"!==e.orientation,a="vertical"!==e.orientation,l=!(null===(r=e.groups)||void 0===r||!r.length),c={ArrowUp:(l||o)&&function(){if(l){var t,n=vr(gr(Or(pr(e.items))));if(null!=n&&n.id)null===(t=e.move)||void 0===t||t.call(e,n.id)}else{var r;null===(r=e.last)||void 0===r||r.call(e)}},ArrowRight:(l||a)&&e.first,ArrowDown:(l||o)&&e.first,ArrowLeft:(l||a)&&e.last,Home:e.first,End:e.last,PageUp:e.first,PageDown:e.last}[t.key];c&&(t.preventDefault(),c())}}),[e.currentId,e.orientation,e.groups,e.items,e.move,e.last,e.first]);return ar({ref:co(u,n),id:e.baseId,onFocus:C,onFocusCapture:j,onBlurCapture:y,onKeyDownCapture:w,onKeyDown:E,onKeyUpCapture:h,"aria-activedescendant":e.unstable_virtual&&(null==d?void 0:d.id)||void 0},s)},useComposeProps:function(e,t){t=uo(e,t,!0);var n=ko(e,t,!0);return e.unstable_virtual||null===e.currentId?ar({tabIndex:0},n):ar(ar({},t),{},{ref:n.ref})}}),useCreateElement:function(e,t,n){return Gr(e,t,n)}}),Vo=ao({keys:[].concat(["baseId","unstable_idCountRef","setBaseId"],["id"]),useOptions:function(e,t){var n=Object(_.useContext)(Cr),r=Object(_.useState)((function(){return e.unstable_idCountRef?(e.unstable_idCountRef.current+=1,"-"+e.unstable_idCountRef.current):e.baseId?"-"+n(""):""}))[0],o=Object(_.useMemo)((function(){return e.baseId||n()}),[e.baseId,n]),a=t.id||e.id||""+o+r;return ar(ar({},e),{},{id:a})},useProps:function(e,t){return ar({id:e.id},t)}}),Uo=(ro({as:"div",useHook:Vo}),ao({name:"Group",compose:uo,keys:[],useProps:function(e,t){return ar({role:"group"},t)}})),Wo=(ro({as:"div",useHook:Uo}),ro({as:"div",useHook:ao({name:"CompositeGroup",compose:[Uo,Vo],keys:Lo,propsAreEqual:function(e,t){if(!t.id||e.id!==t.id)return Uo.unstable_propsAreEqual(e,t);var n=e.currentId,r=(e.unstable_moves,lr(e,["currentId","unstable_moves"])),o=t.currentId,a=(t.unstable_moves,lr(t,["currentId","unstable_moves"]));if(e.items&&t.items){var l=hr(e.items,n),c=hr(t.items,o),i=null==l?void 0:l.groupId,s=null==c?void 0:c.groupId;if(t.id===s||t.id===i)return!1}return Uo.unstable_propsAreEqual(r,a)},useProps:function(e,t){var n=t.ref,r=lr(t,["ref"]),o=Object(_.useRef)(null),a=e.id;return br((function(){var t;if(a)return null===(t=e.registerGroup)||void 0===t||t.call(e,{id:a,ref:o}),function(){var t;null===(t=e.unregisterGroup)||void 0===t||t.call(e,a)}}),[a,e.registerGroup,e.unregisterGroup]),ar({ref:co(o,n)},r)}})}));var zo=ao({name:"Clickable",compose:ko,keys:["unstable_clickOnEnter","unstable_clickOnSpace"],useOptions:function(e){var t=e.unstable_clickOnEnter,n=void 0===t||t,r=e.unstable_clickOnSpace;return ar({unstable_clickOnEnter:n,unstable_clickOnSpace:void 0===r||r},lr(e,["unstable_clickOnEnter","unstable_clickOnSpace"]))},useProps:function(e,t){var n=t.onKeyDown,r=t.onKeyUp,o=lr(t,["onKeyDown","onKeyUp"]),a=Object(_.useState)(!1),l=a[0],c=a[1],i=io(n),s=io(r),u=Object(_.useCallback)((function(t){var n;if(null===(n=i.current)||void 0===n||n.call(i,t),!t.defaultPrevented&&!e.disabled&&!t.metaKey&&so(t)){var r=e.unstable_clickOnEnter&&"Enter"===t.key,o=e.unstable_clickOnSpace&&" "===t.key;if(r||o){if(function(e){var t=e.currentTarget;return!!e.isTrusted&&(bo(t)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||"A"===t.tagName||"SELECT"===t.tagName)}(t))return;t.preventDefault(),r?t.currentTarget.click():o&&c(!0)}}}),[e.disabled,e.unstable_clickOnEnter,e.unstable_clickOnSpace]),d=Object(_.useCallback)((function(t){var n;if(null===(n=s.current)||void 0===n||n.call(s,t),!t.defaultPrevented&&!e.disabled&&!t.metaKey){var r=e.unstable_clickOnSpace&&" "===t.key;l&&r&&(c(!1),t.currentTarget.click())}}),[e.disabled,e.unstable_clickOnSpace,l]);return ar({"data-active":l||void 0,onKeyDown:u,onKeyUp:d},o)}});ro({as:"button",memo:!0,useHook:zo});function Ko(e){try{var t=e instanceof HTMLInputElement&&null!==e.selectionStart,n="TEXTAREA"===e.tagName,r="true"===e.contentEditable;return t||n||r||!1}catch(o){return!1}}function qo(e){var t=mo(e);if(!t)return!1;if(t===e)return!0;var n=t.getAttribute("aria-activedescendant");return!!n&&n===e.id}function Go(e,t){if(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement){var n,r=Object.getPrototypeOf(e),o=null===(n=Object.getOwnPropertyDescriptor(r,"value"))||void 0===n?void 0:n.set;o&&(o.call(e,t),function(e,t,n){e.dispatchEvent(xo(e,t,n))}(e,"input",{bubbles:!0}))}}function Zo(e){return e.querySelector("[data-composite-item-widget]")}var Yo=ro({as:"button",memo:!0,useHook:ao({name:"CompositeItem",compose:[zo,Vo],keys:Ao,propsAreEqual:function(e,t){if(!t.id||e.id!==t.id)return zo.unstable_propsAreEqual(e,t);var n=e.currentId,r=e.unstable_moves,o=lr(e,["currentId","unstable_moves"]),a=t.currentId,l=t.unstable_moves,c=lr(t,["currentId","unstable_moves"]);if(a!==n){if(t.id===a||t.id===n)return!1}else if(r!==l)return!1;return zo.unstable_propsAreEqual(o,c)},useOptions:function(e){return ar(ar({},e),{},{id:e.id,currentId:wr(e),unstable_clickOnSpace:!e.unstable_hasActiveWidget&&e.unstable_clickOnSpace})},useProps:function(e,t){var n,r=t.ref,o=t.tabIndex,a=void 0===o?0:o,l=t.onMouseDown,c=t.onFocus,i=t.onBlurCapture,s=t.onKeyDown,u=t.onClick,d=lr(t,["ref","tabIndex","onMouseDown","onFocus","onBlurCapture","onKeyDown","onClick"]),f=Object(_.useRef)(null),b=e.id,m=e.disabled&&!e.focusable,p=e.currentId===b,g=io(p),O=Object(_.useRef)(!1),v=function(e){return Object(_.useMemo)((function(){var t;return null===(t=e.items)||void 0===t?void 0:t.find((function(t){return e.id&&t.id===e.id}))}),[e.items,e.id])}(e),w=io(l),h=io(c),j=io(i),C=io(s),y=io(u),E=!e.unstable_virtual&&!e.unstable_hasActiveWidget&&p||!(null!==(n=e.items)&&void 0!==n&&n.length);Object(_.useEffect)((function(){var t;if(b)return null===(t=e.registerItem)||void 0===t||t.call(e,{id:b,ref:f,disabled:!!m}),function(){var t;null===(t=e.unregisterItem)||void 0===t||t.call(e,b)}}),[b,m,e.registerItem,e.unregisterItem]),Object(_.useEffect)((function(){var t=f.current;t&&e.unstable_moves&&g.current&&Ro(t)}),[e.unstable_moves]);var k=Object(_.useCallback)((function(e){var t;null===(t=w.current)||void 0===t||t.call(w,e),Do(e.currentTarget,!0)}),[]),x=Object(_.useCallback)((function(t){var n,r,o=!!t.currentTarget.userFocus;if(Do(t.currentTarget,!1),null===(n=h.current)||void 0===n||n.call(h,t),!t.defaultPrevented&&!Oo(t)&&b&&!function(e,t){if(so(e))return!1;for(var n,r=ir(t);!(n=r()).done;){if(n.value.ref.current===e.target)return!0}return!1}(t,e.items)&&(null===(r=e.setCurrentId)||void 0===r||r.call(e,b),o&&e.unstable_virtual&&e.baseId&&so(t))){var a=sr(t.target).getElementById(e.baseId);a&&(O.current=!0,function(e,t){var n=void 0===t?{}:t,r=n.preventScroll,o=n.isActive,a=void 0===o?qo:o;a(e)||(e.focus({preventScroll:r}),a(e)||requestAnimationFrame((function(){e.focus({preventScroll:r})})))}(a))}}),[b,e.items,e.setCurrentId,e.unstable_virtual,e.baseId]),S=Object(_.useCallback)((function(t){var n;null===(n=j.current)||void 0===n||n.call(j,t),t.defaultPrevented||e.unstable_virtual&&O.current&&(O.current=!1,t.preventDefault(),t.stopPropagation())}),[e.unstable_virtual]),T=Object(_.useCallback)((function(t){var n;if(so(t)){var r="horizontal"!==e.orientation,o="vertical"!==e.orientation,a=!(null==v||!v.groupId),l={ArrowUp:(a||r)&&e.up,ArrowRight:(a||o)&&e.next,ArrowDown:(a||r)&&e.down,ArrowLeft:(a||o)&&e.previous,Home:function(){var n,r;!a||t.ctrlKey?null===(n=e.first)||void 0===n||n.call(e):null===(r=e.previous)||void 0===r||r.call(e,!0)},End:function(){var n,r;!a||t.ctrlKey?null===(n=e.last)||void 0===n||n.call(e):null===(r=e.next)||void 0===r||r.call(e,!0)},PageUp:function(){var t,n;a?null===(t=e.up)||void 0===t||t.call(e,!0):null===(n=e.first)||void 0===n||n.call(e)},PageDown:function(){var t,n;a?null===(t=e.down)||void 0===t||t.call(e,!0):null===(n=e.last)||void 0===n||n.call(e)}}[t.key];if(l)return t.preventDefault(),void l();if(null===(n=C.current)||void 0===n||n.call(C,t),!t.defaultPrevented)if(1===t.key.length&&" "!==t.key){var c=Zo(t.currentTarget);c&&Ko(c)&&(c.focus(),Go(c,""))}else if("Delete"===t.key||"Backspace"===t.key){var i=Zo(t.currentTarget);i&&Ko(i)&&(t.preventDefault(),Go(i,""))}}}),[e.orientation,v,e.up,e.next,e.down,e.previous,e.first,e.last]),I=Object(_.useCallback)((function(e){var t;if(null===(t=y.current)||void 0===t||t.call(y,e),!e.defaultPrevented){var n=Zo(e.currentTarget);n&&!go(n)&&n.focus()}}),[]);return ar({ref:co(f,r),id:b,tabIndex:E?a:-1,"aria-selected":!(!e.unstable_virtual||!p)||void 0,onMouseDown:k,onFocus:x,onBlurCapture:S,onKeyDown:T,onClick:I},d)}})}),Qo=function(e){var t=e.isActive,n=e.column,r=e.onSelect,o=e.row,l=Ie()(e,["isActive","column","onSelect","row"]),c="".concat(o.label," ").concat(n.label),i=Object(_.useCallback)((function(){r(o.value,n.value)}),[r,o.value,n.value]),s=T()("crowdsignal-forms__block-alignment-control-button",{"is-active":t});return Object(a.createElement)(E.Tooltip,{text:c},Object(a.createElement)(Yo,w()({className:s,role:"gridcell",onFocus:i},l),Object(a.createElement)(E.VisuallyHidden,null,c)))},Jo=function(e,t,n){return"".concat(e,"-").concat(t,"-").concat(n)};var Xo=function e(t){var n=t.columns,r=t.onChange,o=t.rows,c=t.value,i=Object(x.useInstanceId)(e,"block-alignment-control-grid"),s=Mr({baseId:i,currentId:Jo(i,c.row,c.column),rtl:Object(l.isRTL)()});return Object(_.useEffect)((function(){s.setCurrentId(Jo(i,c.row,c.column))}),[c,s.setCurrentId]),Object(a.createElement)(Ho,w()({},s,{className:"crowdsignal-forms__block-alignment-control-grid"}),Object(b.map)(o,(function(e){return Object(a.createElement)(Wo,w()({},s,{key:"".concat(i,"-").concat(e.value),role:"row",className:"crowdsignal-forms__block-alignment-control-row"}),Object(b.map)(n,(function(t){var n=Jo(i,e.value,t.value),o=s.currentId===Jo(i,e.value,t.value);return Object(a.createElement)(Qo,w()({},s,{id:n,key:n,isActive:o,row:e,column:t,onSelect:r,tabIndex:o?0:-1}))})))})))},$o=function(e){var t=e.rows,n=e.columns,r=e.value;return Object(a.createElement)("div",{className:"crowdsignal-forms__block-alignment-control-icon"},Object(b.map)(t,(function(e){return Object(a.createElement)("div",{className:"crowdsignal-forms__block-alignment-control-icon-row"},Object(b.map)(n,(function(t){var n=e.value===r.row&&t.value===r.column,o=T()("crowdsignal-forms__block-alignment-control-icon-dot",{"is-active":n});return Object(a.createElement)("span",{className:o})})))})))},ea={"2x2":{rows:[{label:Object(l.__)("Top","crowdsignal-forms"),value:"top"},{label:Object(l.__)("Bottom","crowdsignal-forms"),value:"bottom"}],columns:[{label:Object(l.__)("Left","crowdsignal-forms"),value:"left"},{label:Object(l.__)("Right","crowdsignal-forms"),value:"right"}]},"2x3":{rows:[{label:Object(l.__)("Top","crowdsignal-forms"),value:"top"},{label:Object(l.__)("Center","crowdsignal-forms"),value:"center"},{label:Object(l.__)("Bottom","crowdsignal-forms"),value:"bottom"}],columns:[{label:Object(l.__)("Left","crowdsignal-forms"),value:"left"},{label:Object(l.__)("Right","crowdsignal-forms"),value:"right"}]}},ta=function(e){var t=e.closeOnSelectionChanged,n=e.disabled,r=e.label,o=e.onChange,l=e.rows,c=e.columns,i=e.value,s=Object(a.createElement)($o,{rows:l,columns:c,value:i});return Object(a.createElement)(E.Dropdown,{className:"crowdsignal-forms__block-alignment-control",popoverProps:{className:"crowdsignal-forms__block-alignment-control-popover"},renderToggle:function(e){var t=e.onToggle,o=e.isOpen;return Object(a.createElement)(E.Tooltip,{text:r},Object(a.createElement)(E.ToolbarButton,{showTooltip:!0,"aria-haspopup":"true","aria-expanded":o,disabled:n,icon:s,onClick:t,onKeyDown:function(e){o||e.keyCode!==nr.DOWN||(e.preventDefault(),e.stopPropagation(),t())}}))},renderContent:function(e){var n=e.onClose;return Object(a.createElement)(Xo,{onChange:function(e,r){o(e,r),!t||i.row===e&&i.column===r||n()},rows:l,columns:c,value:i})}})};ta.defaultProps={closeOnSelectionChanged:!1,label:Object(l.__)("Change block position","crowdsignal-forms"),onChange:b.noop};var na=ta,ra=function(e){var t=e.attributes,n=e.currentView,r=e.onViewChange,o=e.setAttributes,c=function(e){return function(){return r(e)}};return Object(a.createElement)(y.BlockControls,null,Object(a.createElement)(E.ToolbarGroup,{label:Object(l.__)("Current view","crowdsignal-forms")},Object(a.createElement)(E.ToolbarButton,{className:"crowdsignal-forms-feedback__toolbar-toggle",isActive:n===zn,label:Object(l.__)("Question","crowdsignal-forms"),onClick:c(zn)},Object(l.__)("Question","crowdsignal-forms")),Object(a.createElement)(E.ToolbarButton,{className:"crowdsignal-forms-feedback__toolbar-toggle",isActive:n===Kn,label:Object(l.__)("Submit","crowdsignal-forms"),onClick:c(Kn)},Object(l.__)("Submit","crowdsignal-forms"))),Object(a.createElement)(E.ToolbarGroup,null,Object(a.createElement)(na,w()({closeOnSelectionChanged:!0,onChange:function(e,t){return o({x:t,y:e})},label:Object(l.__)("Change button position","crowdsignal-forms"),value:{row:t.y,column:t.x}},ea["2x3"]))))},oa=function(e){return Dn(Q()({path:Object(b.trimEnd)("/crowdsignal-forms/v1/feedback/".concat(e.surveyId||""),"/"),method:"POST",data:e}))};function aa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var la=Object(x.compose)([Object(f.withSelect)((function(e){return{activeSidebar:e("core/edit-post").getActiveGeneralSidebarName(),editorFeatures:e("core/edit-post").getPreference("features"),sourceLink:e("core/editor").getPermalink()}})),Ae])((function(e){var t=Object(_.useState)(zn),n=j()(t,2),r=n[0],o=n[1],c=Object(_.useState)(null),i=j()(c,2),s=i[0],u=i[1],m=Object(_.useState)({}),p=j()(m,2),g=p[0],O=p[1],v=e.attributes,h=e.activeSidebar,C=e.editorFeatures,k=e.fallbackStyles,x=e.isSelected,S=e.setAttributes,I=e.clientId,P=e.sourceLink,N=e.setPosition,L=v.isExample,R=v.feedbackPlaceholder,B=v.emailPlaceholder,F=v.surveyId,M=v.title,H=v.header,V=v.emailResponses,U=v.triggerLabel,W=Object(_.useState)({}),z=j()(W,2),K=z[0],q=z[1],G=Object(_.useRef)(null),Z=Object(_.useRef)(null),Y=Object(_.useRef)(null),Q=we(),J=Rn(function(){var e=D()(A.a.mark((function e(t){var n;return A.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Object(f.dispatch)("core/editor").lockPostSaving(I),e.prev=1,e.next=4,oa({feedbackPlaceholder:t.feedbackPlaceholder,emailPlaceholder:t.emailPlaceholder,sourceLink:t.sourceLink,surveyId:t.surveyId,title:t.title||t.header,emailResponses:t.emailResponses});case 4:n=e.sent,t.surveyId||S({surveyId:n.surveyId});case 6:return e.prev=6,Object(f.dispatch)("core/editor").unlockPostSaving(I),e.finish(6);case 9:case"end":return e.stop()}}),e,null,[[1,,6,9]])})));return function(t){return e.apply(this,arguments)}}(),{feedbackPlaceholder:R,emailPlaceholder:B,sourceLink:P,surveyId:F,title:M,header:H,emailResponses:V}),X=J.error,$=J.save;Object(_.useEffect)((function(){L||v.surveyId||$()}),[]),Object(_.useEffect)((function(){x||o(zn)}),[x]),Object(_.useLayoutEffect)((function(){if(!L){N(function(e,t,n,r,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,l={left:Object(b.isObject)(o)?o.left:o,right:Object(b.isObject)(o)?o.right:o,top:Object(b.isObject)(o)?o.top:o,bottom:Object(b.isObject)(o)?o.bottom:o};return a&&(l=Xn(l,a.getBoundingClientRect())),Qn({},$n(e,0,l),{},er(t,r,l))}(v.x,v.y,G.current.offsetWidth,G.current.offsetHeight,{left:"center"===v.y?10:20,right:"center"===v.y?10:20,top:x?80:20,bottom:20},document.getElementsByClassName("interface-interface-skeleton__content")[0]),Z.current.offsetWidth,Z.current.offsetHeight);var e=(Object(b.max)([Z.current.offsetWidth,G.current.offsetHeight])-Z.current.offsetWidth)/2;q({"--crowdsignal-forms-feedback__toggle-padding":"".concat(e,"px"),minHeight:"center"===v.y?Z.current.offsetWidth:0,marginLeft:"center"===v.y&&"left"===v.x?Z.current.offsetHeight-Z.current.offsetWidth-10:0,marginRight:"center"===v.y&&"right"===v.x?Z.current.offsetHeight-Z.current.offsetWidth-10:0})}}),[h,C.fullscreenMode,x,N,v.x,v.y,Z.current,G.current,U]),Object(_.useLayoutEffect)((function(){Y.current&&u(Y.current.offsetHeight)}),[v.header,Y.current,x]),Object(_.useLayoutEffect)((function(){var e=document.getElementsByClassName("interface-interface-skeleton__content")[0].getBoundingClientRect();O({bottom:window.innerHeight-(e.top+e.height),left:e.left,right:window.innerWidth-(e.left+e.width),top:e.top})}),[h,C.fullscreenMode,x]);var ee=function(e){return function(t){return S(d()({},e,t))}},te=Object(b.get)(Q,["signalCount","shouldDisplay"]),ne=te&&Object(b.get)(Q,["signalCount","count"])>=Object(b.get)(Q,["signalCount","userLimit"]),re=Object(b.get)(Q,["account","email"]),oe=T()("crowdsignal-forms-feedback","align-".concat(v.x),"vertical-align-".concat(v.y),{"no-shadow":v.hideTriggerShadow,"is-active":x,"is-vertical":"center"===v.y}),ae=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aa(Object(n),!0).forEach((function(t){d()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},function(e,t){return Object(b.mapKeys)({backgroundColor:e.backgroundColor||"#ffffff",buttonColor:e.buttonColor||t.accentColor,buttonTextColor:e.buttonTextColor||t.textColorInverted,textColor:e.textColor||t.textColor,textSize:t.textSize,triggerBackgroundColor:e.triggerBackgroundColor||t.accentColor,triggerTextColor:e.triggerTextColor||t.textColorInverted},(function(e,t){return"--crowdsignal-forms-".concat(Object(b.kebabCase)(t))}))}(v,k),{},K),le={height:s},ce=qn.CLOSED===v.status||qn.CLOSED_AFTER===v.status&&null!==v.closedAfterDateTime&&(new Date).toISOString()>v.closedAfterDateTime,ie=Object(b.get)(Q,"capabilities").includes("hide-branding");return Object(a.createElement)(ct,null,Object(a.createElement)(ra,w()({currentView:r,onViewChange:o},e)),Object(a.createElement)(tr,w()({shouldPromote:te,signalWarning:ne,email:re},e)),Object(a.createElement)("div",{ref:G,className:oe,style:ae},Object(a.createElement)("div",{className:"crowdsignal-forms-feedback__trigger-preview"},Object(a.createElement)("div",{className:"wp-block-button crowdsignal-forms-feedback__trigger-wrapper"},Object(a.createElement)(y.RichText,{ref:Z,className:"wp-block-button__link crowdsignal-forms-feedback__trigger",onChange:ee("triggerLabel"),value:U,allowedFormats:[],multiline:!1,disableLineBreaks:!0}))),Object(a.createElement)("div",{className:"crowdsignal-forms-feedback__popover-preview"},(L||x)&&Object(a.createElement)(a.Fragment,null,Object(a.createElement)("div",{"aria-modal":"true",role:"dialog",className:"crowdsignal-forms-feedback__popover-overlay",onClick:function(){Object(f.dispatch)("core/block-editor").clearSelectedBlock(),Z.current.parentElement.parentElement.parentElement.blur()},style:g}),!L&&ne&&Object(a.createElement)(gt,null),!L&&X&&Object(a.createElement)(Vn,{retryHandler:$}),r===zn&&Object(a.createElement)("div",{ref:Y,className:"crowdsignal-forms-feedback__popover"},Object(a.createElement)(y.RichText,{tagName:"h3",className:"crowdsignal-forms-feedback__header",onChange:ee("header"),value:v.header,allowedFormats:[]}),Object(a.createElement)(E.TextareaControl,{className:"crowdsignal-forms-feedback__input",rows:6,onChange:ee("feedbackPlaceholder"),value:v.feedbackPlaceholder}),Object(a.createElement)(E.TextControl,{className:"crowdsignal-forms-feedback__input",onChange:ee("emailPlaceholder"),value:v.emailPlaceholder}),Object(a.createElement)("div",{className:"wp-block-button crowdsignal-forms-feedback__button-wrapper"},Object(a.createElement)(y.RichText,{className:"wp-block-button__link crowdsignal-forms-feedback__feedback-button",onChange:ee("submitButtonLabel"),value:v.submitButtonLabel,allowedFormats:[],multiline:!1,disableLineBreaks:!0})),!ie&&Object(a.createElement)(Ce,{editing:!0,trackRef:"cs-forms-feedback",message:Object(l.__)("Collect your own feedback with Crowdsignal","crowdsignal-forms")})),r===Kn&&Object(a.createElement)("div",{className:"crowdsignal-forms-feedback__popover",style:le},Object(a.createElement)(y.RichText,{tagName:"h3",className:"crowdsignal-forms-feedback__header",onChange:ee("submitText"),value:v.submitText,allowedFormats:[]}),!ie&&Object(a.createElement)(Ce,{editing:!0,trackRef:"cs-forms-feedback",message:Object(l.__)("Collect your own feedback with Crowdsignal","crowdsignal-forms")})),ce&&Object(a.createElement)("div",{className:"crowdsignal-forms-feedback__closed-notice"},Object(l.__)("This Feedback Form is Closed","crowdsignal-forms"))))),e.renderStyleProbe())})),ca={title:Object(l.__)("Feedback Button","crowdsignal-forms"),description:Object(l.__)("Add an always visible button that allows your audience to share feedback anytime.","crowdsignal-forms"),category:"crowdsignal-forms",keywords:["crowdsignal",Object(l.__)("feedback","crowdsignal-forms"),Object(l.__)("floating","crowdsignal-forms"),Object(l.__)("contact","crowdsignal-forms"),Object(l.__)("call to action","crowdsignal-forms"),Object(l.__)("cta","crowdsignal-forms"),Object(l.__)("button","crowdsignal-forms"),Object(l.__)("subscribe","crowdsignal-forms"),Object(l.__)("form","crowdsignal-forms"),Object(l.__)("email","crowdsignal-forms"),Object(l.__)("message","crowdsignal-forms")],icon:Object(a.createElement)((function(){return Object(a.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 5.25V17.6893L6.42678 16.2626C6.75497 15.9344 7.20008 15.75 7.66421 15.75H18.75C18.8881 15.75 19 15.6381 19 15.5V5.5C19 5.36193 18.8881 5.25 18.75 5.25H5ZM3.5 5C3.5 4.30965 4.05964 3.75 4.75 3.75H18.75C19.7165 3.75 20.5 4.5335 20.5 5.5V15.5C20.5 16.4665 19.7165 17.25 18.75 17.25H7.66421C7.59791 17.25 7.53432 17.2763 7.48744 17.3232L3.5 21.3107V5Z"}),Object(a.createElement)("rect",{x:"7",y:"9.75",width:"1.5",height:"1.5"}),Object(a.createElement)("rect",{x:"11.25",y:"9.75",width:"1.5",height:"1.5"}),Object(a.createElement)("rect",{x:"15.5",y:"9.75",width:"1.5",height:"1.5"}))}),null),edit:la,supports:{multiple:!1,html:!1,reusable:!1},attributes:Zn,example:{attributes:{isExample:!0}}};function ia(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ia(Object(n),!0).forEach((function(t){d()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ia(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ua={},da=["crowdsignal-forms/feedback"];Object(r.registerBlockType)("crowdsignal-forms/poll",ht),Object(r.registerBlockType)("crowdsignal-forms/vote",Rt),Object(r.registerBlockType)("crowdsignal-forms/vote-item",pn),Object(r.registerBlockType)("crowdsignal-forms/applause",Tn),Object(r.registerBlockType)("crowdsignal-forms/nps",Wn),Object(r.registerBlockType)("crowdsignal-forms/feedback",ca),Object(o.addFilter)("editor.BlockListBlock","crowdsignal-forms/with-fixed-position",(function(e){return function(t){if(!Object(b.includes)(da,t.name))return Object(a.createElement)(e,t);var n=Object(_.useState)({}),r=j()(n,2),o=r[0],l=r[1];ua[t.clientId]=l,Object(_.useEffect)((function(){return function(){ua[t.clientId]=null}}),[ua,t.clientId]);var c=sa({},Object(b.get)(t,["wrapperProps","style"],{}),{},o,{position:Object(b.isEmpty)(o)?null:"fixed",margin:0}),i=sa({},t.wrapperProps,{style:c});return Object(a.createElement)(e,w()({},t,{wrapperProps:i}))}})),Object(o.addFilter)("editor.BlockEdit","crowdsignal-forms/with-fixed-position-control",(function(e){return function(t){if(!Object(b.includes)(da,t.name))return Object(a.createElement)(e,t);var n=Object(_.useCallback)((function(e){ua[t.clientId](Object(b.pick)(e,["top","left","right","bottom"]))}),[t.clientId]);return Object(a.createElement)(e,w()({},t,{setPosition:n}))}}))}]));
build/feedback.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('crowdsignal-forms-apifetch', 'lodash', 'react', 'react-dom', 'wp-block-editor', 'wp-components', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '58c5418ca47ac1ca610540710f15f033');
1
+ <?php return array('dependencies' => array('crowdsignal-forms-apifetch', 'lodash', 'react', 'react-dom', 'wp-block-editor', 'wp-components', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '8b19594fa09f8d5f901eb798951ba1f2');
build/feedback.css CHANGED
@@ -1 +1 @@
1
- @keyframes crowdsignal-forms-animation__pop{0%{transform:scale(0)}50%{transform:scale(1.2)}100%{transform:scale(1)}}@keyframes crowdsignal-forms-animation__pulse{0%{opacity:0.4}50%{opacity:0.7}100%{opacity:0.4}}@keyframes crowdsignal-forms-animation__grow{0%{transform:scale(1)}50%{transform:scale(1.4)}100%{transform:scale(1)}}@keyframes crowdsignal-forms-animation__fade-in{0%{opacity:0}100%{opacity:1}}@keyframes crowdsignal-forms-animation__fade-out{0%{opacity:1}100%{opacity:0}}.crowdsignal-forms-feedback{display:flex;position:fixed;z-index:100}.crowdsignal-forms-feedback>div:last-child:not(.crowdsignal-forms-feedback__trigger){border-bottom-left-radius:10px;border-bottom-right-radius:10px}.crowdsignal-forms-feedback .crowdsignal-forms__footer-branding{margin-top:24px;font-size:12px;line-height:1.25}.crowdsignal-forms-feedback__trigger-wrapper{margin:0 !important}.crowdsignal-forms-feedback__trigger{box-shadow:1px 1px 7px rgba(0,0,0,0.3);cursor:pointer;background-color:var(--crowdsignal-forms-trigger-background-color) !important;color:var(--crowdsignal-forms-trigger-text-color) !important;display:flex !important;align-items:center;font-size:16px !important;line-height:1.5 !important;padding:10px 16px !important}.crowdsignal-forms-feedback__trigger>svg{fill:currentColor}.crowdsignal-forms-feedback__trigger.is-active{background:var(--crowdsignal-forms-trigger-background-color) !important;padding-left:12px !important}.crowdsignal-forms-feedback.no-shadow .crowdsignal-forms-feedback__trigger{box-shadow:none}.crowdsignal-forms-feedback__popover-wrapper.components-popover .components-popover__content{background-color:transparent;border:0;box-shadow:none;outline:0;overflow:visible}.crowdsignal-forms-feedback__popover{background-color:var(--crowdsignal-forms-background-color);border-top:10px solid var(--crowdsignal-forms-button-color);box-shadow:1px 1px 7px rgba(0,0,0,0.3);color:var(--crowdsignal-forms-text-color);outline:0;padding:24px;width:380px;text-align:left;z-index:100;display:flex;flex-direction:column}.crowdsignal-forms-feedback__header{color:var(--crowdsignal-forms-text-color);margin-top:0 !important;margin-bottom:32px !important;flex-grow:1}.crowdsignal-forms-feedback__input{margin-top:16px;width:100%}.crowdsignal-forms-feedback__input input,.crowdsignal-forms-feedback__input textarea{box-sizing:border-box;font-size:var(--crowdsignal-forms-text-size) !important;padding:16px !important}.crowdsignal-forms-feedback__button-wrapper{display:flex;justify-content:flex-end;margin-top:24px;margin-bottom:0;width:100%}.crowdsignal-forms-feedback__button-wrapper:hover{color:var(--crowdsignal-forms-button-color)}.crowdsignal-forms-feedback__feedback-button{background-color:var(--crowdsignal-forms-button-color) !important;color:var(--crowdsignal-forms-button-text-color) !important}.crowdsignal-forms__footer-branding{align-items:center;display:flex;margin-top:16px;width:100%}.crowdsignal-forms__footer-branding img.crowdsignal-forms__footer-branding-logo{height:50px;margin-left:auto;margin-right:0;width:50px}.crowdsignal-forms__footer-branding .crowdsignal-forms__branding-promote{display:inline-flex;font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;font-size:10px;text-decoration:none !important;box-shadow:none;border:0;background-color:#a4a4a4a4;color:#fff;cursor:pointer;padding-right:8px;padding-left:8px;margin-left:16px;border-radius:2px;padding-top:2px;padding-bottom:2px;vertical-align:middle}.crowdsignal-forms__footer-cs-link{display:inline-flex;font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;font-size:inherit;line-height:inherit;text-decoration:none;text-transform:uppercase;vertical-align:middle;border-bottom:0 solid var(--crowdsignal-forms-text-color) !important}.crowdsignal-forms__footer-cs-link:not(:hover){color:var(--crowdsignal-forms-text-color);opacity:0.4}.has-default-thankyou .crowdsignal-forms__footer-cs-link{color:#333}
1
+ @keyframes crowdsignal-forms-animation__pop{0%{transform:scale(0)}50%{transform:scale(1.2)}100%{transform:scale(1)}}@keyframes crowdsignal-forms-animation__pulse{0%{opacity:0.4}50%{opacity:0.7}100%{opacity:0.4}}@keyframes crowdsignal-forms-animation__grow{0%{transform:scale(1)}50%{transform:scale(1.4)}100%{transform:scale(1)}}@keyframes crowdsignal-forms-animation__fade-in{0%{opacity:0}100%{opacity:1}}@keyframes crowdsignal-forms-animation__fade-out{0%{opacity:1}100%{opacity:0}}.crowdsignal-forms-feedback{display:flex;position:fixed;z-index:9999999}.crowdsignal-forms-feedback>div:last-child:not(.crowdsignal-forms-feedback__trigger){border-bottom-left-radius:10px;border-bottom-right-radius:10px}.crowdsignal-forms-feedback .crowdsignal-forms__footer-branding{margin-top:24px;font-size:12px;line-height:1.25}.crowdsignal-forms-feedback__trigger-wrapper{margin:0 !important}.crowdsignal-forms-feedback.is-vertical .crowdsignal-forms-feedback__trigger-wrapper{margin-top:-50%;transform-origin:top right;transform:rotateZ(270deg) translateY(-100%)}.crowdsignal-forms-feedback.is-vertical.align-right .crowdsignal-forms-feedback__trigger-wrapper{transform-origin:top left;transform:rotateZ(270deg) translateX(-100%)}.crowdsignal-forms-feedback__trigger{box-shadow:1px 1px 7px rgba(0,0,0,0.3);cursor:pointer;background-color:var(--crowdsignal-forms-trigger-background-color) !important;color:var(--crowdsignal-forms-trigger-text-color) !important;display:flex !important;align-items:center;font-size:16px !important;line-height:1.5 !important;padding:10px 16px !important;white-space:nowrap !important}.crowdsignal-forms-feedback__trigger>svg{fill:currentColor}.crowdsignal-forms-feedback__trigger.is-active{background:var(--crowdsignal-forms-trigger-background-color) !important;padding-left:12px !important}.crowdsignal-forms-feedback.no-shadow .crowdsignal-forms-feedback__trigger{box-shadow:none}.crowdsignal-forms-feedback.is-vertical.align-left .crowdsignal-forms-feedback__trigger{border-top-left-radius:0 !important;border-top-right-radius:0 !important}.crowdsignal-forms-feedback.is-vertical.align-right .crowdsignal-forms-feedback__trigger{border-bottom-left-radius:0 !important;border-bottom-right-radius:0 !important}.crowdsignal-forms-feedback__popover-wrapper.components-popover .components-popover__content{background-color:transparent;border:0;box-shadow:none;outline:0;overflow:visible}.crowdsignal-forms-feedback__popover{background-color:var(--crowdsignal-forms-background-color);border-top:10px solid var(--crowdsignal-forms-button-color);box-shadow:1px 1px 7px rgba(0,0,0,0.3);color:var(--crowdsignal-forms-text-color);max-height:480px;outline:0;overflow-y:scroll;padding:24px;width:240px;text-align:left;z-index:100;display:flex;flex-direction:column}@media screen and (min-width: 360px){.crowdsignal-forms-feedback__popover{max-height:640px;width:300px}}@media screen and (min-width: 480px){.crowdsignal-forms-feedback__popover{max-height:auto;width:380px}}.crowdsignal-forms-feedback__header{color:var(--crowdsignal-forms-text-color);margin-top:0 !important;margin-bottom:32px !important;flex-grow:1}.crowdsignal-forms-feedback__input{margin-top:16px;position:relative;width:100%;z-index:1}.crowdsignal-forms-feedback__input.is-error::before{border:3px solid #d63638;box-sizing:border-box;content:"";display:block;position:absolute;top:-4px;left:-4px;bottom:-4px;right:-4px;z-index:-1}.crowdsignal-forms-feedback__input input,.crowdsignal-forms-feedback__input textarea{box-sizing:border-box;font-size:var(--crowdsignal-forms-text-size) !important;padding:16px !important}.crowdsignal-forms-feedback__button-wrapper{display:flex;justify-content:flex-end;margin-top:24px;margin-bottom:0;width:100%}.crowdsignal-forms-feedback__button-wrapper:hover{color:var(--crowdsignal-forms-button-color)}.crowdsignal-forms-feedback__feedback-button{background-color:var(--crowdsignal-forms-button-color) !important;color:var(--crowdsignal-forms-button-text-color) !important}.crowdsignal-forms__footer-branding{align-items:center;display:flex;margin-top:16px;width:100%}.crowdsignal-forms__footer-branding img.crowdsignal-forms__footer-branding-logo{height:50px;margin-left:auto;margin-right:0;width:50px}.crowdsignal-forms__footer-branding .crowdsignal-forms__branding-promote{display:inline-flex;font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;font-size:10px;text-decoration:none !important;box-shadow:none;border:0;background-color:#a4a4a4a4;color:#fff;cursor:pointer;padding-right:8px;padding-left:8px;margin-left:16px;border-radius:2px;padding-top:2px;padding-bottom:2px;vertical-align:middle}.crowdsignal-forms__footer-cs-link{display:inline-flex;font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;font-size:inherit;line-height:inherit;text-decoration:none;text-transform:uppercase;vertical-align:middle;border-bottom:0 solid var(--crowdsignal-forms-text-color) !important}.crowdsignal-forms__footer-cs-link:not(:hover){color:var(--crowdsignal-forms-text-color);opacity:0.4}.has-default-thankyou .crowdsignal-forms__footer-cs-link{color:#333}
build/feedback.js CHANGED
@@ -1,6 +1,6 @@
1
- !function(e,t){for(var r in t)e[r]=t[r]}(window,function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=21)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.lodash}()},function(e,t){!function(){e.exports=this.React}()},function(e,t){!function(){e.exports=this.wp.components}()},function(e,t,r){var n=r(15),o=r(16),c=r(17),a=r(19);e.exports=function(e,t){return n(e)||o(e,t)||c(e,t)||a()}},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.wp.blockEditor}()},function(e,t){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},function(e,t,r){var n;
2
  /*!
3
  Copyright (c) 2017 Jed Watson.
4
  Licensed under the MIT License (MIT), see
5
  http://jedwatson.github.io/classnames
6
- */!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var c=typeof n;if("string"===c||"number"===c)e.push(n);else if(Array.isArray(n)&&n.length){var a=o.apply(null,n);a&&e.push(a)}else if("object"===c)for(var i in n)r.call(n,i)&&n[i]&&e.push(i)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},function(e,t){!function(){e.exports=this.regeneratorRuntime}()},function(e,t){function r(){return e.exports=r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},r.apply(this,arguments)}e.exports=r},function(e,t,r){var n=r(20);e.exports=function(e,t){if(null==e)return{};var r,o,c=n(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(c[r]=e[r])}return c}},function(e,t){function r(e,t,r,n,o,c,a){try{var i=e[c](a),l=i.value}catch(u){return void r(u)}i.done?t(l):Promise.resolve(l).then(n,o)}e.exports=function(e){return function(){var t=this,n=arguments;return new Promise((function(o,c){var a=e.apply(t,n);function i(e){r(a,o,c,i,l,"next",e)}function l(e){r(a,o,c,i,l,"throw",e)}i(void 0)}))}}},function(e,t){!function(){e.exports=this.crowdsignalForms.apiFetch}()},function(e,t){!function(){e.exports=this.ReactDOM}()},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,c=void 0;try{for(var a,i=e[Symbol.iterator]();!(n=(a=i.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(l){o=!0,c=l}finally{try{n||null==i.return||i.return()}finally{if(o)throw c}}return r}}},function(e,t,r){var n=r(18);e.exports=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t){e.exports=function(e,t){if(null==e)return{};var r,n,o={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}},function(e,t,r){"use strict";r.r(t);var n=r(0),o=r(2),c=r(7),a=r.n(c),i=r(4),l=r.n(i),u=r(8),s=r.n(u),f=r(3),b=r(1),d=r(10),p=r.n(d),m=r(11),g=r.n(m),w=function(e){for(var t=window.getComputedStyle(e).backgroundColor;"rgba(0, 0, 0, 0)"===t&&e.parentNode&&e.parentNode.nodeType===window.Node.ELEMENT_NODE;)e=e.parentNode,t=window.getComputedStyle(e).backgroundColor;return t},O=function(){return Object(n.createElement)("div",{className:"crowdsignal-forms__style-probe"},Object(n.createElement)("p",null),Object(n.createElement)("h3",null,"Text"),Object(n.createElement)("div",{className:"wp-block-button"},Object(n.createElement)("div",{className:"wp-block-button__link"})),Object(n.createElement)("div",{className:"entry-content"},Object(n.createElement)("div",{className:"alignwide"})))},y=function(e){if(null===e)return{};var t,r=e.querySelector(".wp-block-button__link"),n=e.querySelector("p"),o=e.querySelector("h3"),c=e.querySelector(".alignwide"),a=w(r),i=w(n),l=window.getComputedStyle(n).color;if(a===i){var u=(t=r,"0px"!==window.getComputedStyle(t).borderBlockStartWidth?window.getComputedStyle(t).borderBlockStartColor:null);a=u||l}return{accentColor:a,backgroundColor:i,textColor:l,textColorInverted:window.getComputedStyle(r).color,textFont:window.getComputedStyle(n).fontFamily,textSize:window.getComputedStyle(n).fontSize,headingFont:window.getComputedStyle(o).fontFamily,contentWideWidth:window.getComputedStyle(c).maxWidth}},h=r(5),j=r(6),v=function(){return Object(n.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(n.createElement)("path",{d:"M17.7049 7.70504L16.2949 6.29504L11.9999 10.59L7.70492 6.29504L6.29492 7.70504L10.5899 12L6.29492 16.295L7.70492 17.705L11.9999 13.41L16.2949 17.705L17.7049 16.295L13.4099 12L17.7049 7.70504Z"}))},E=function(){return Object(n.createElement)(n.Fragment,null,Object(n.createElement)(v,null),Object(h.__)("Close","crowdsignal-forms"))},x=Object(o.forwardRef)((function(e,t){var r=e.attributes,o=e.className,c=e.isOpen,a=e.onClick,i=s()("crowdsignal-forms-feedback__trigger","wp-block-button__link",o,{"is-active":c});return Object(n.createElement)("div",{className:"wp-block-button crowdsignal-forms-feedback__trigger-wrapper"},Object(n.createElement)("button",{ref:t,className:i,onClick:a},c?Object(n.createElement)(E,null):Object(n.createElement)(j.RichText.Content,{value:r.triggerLabel})))})),C="question",k="submit",S=(Object.freeze({OPEN:"open",CLOSED:"closed",CLOSED_AFTER:"closed-after"}),r(9)),_=r.n(S),P=r(12),N=r.n(P),T=r(13),L=r.n(T),F=function(e,t){return r=L()({path:Object(b.trimEnd)("/crowdsignal-forms/v1/feedback/".concat(e||"","/response")),method:"POST",data:t}),new Promise((function(e,t){var n=setTimeout((function(){return t(new Error("Request timed out"))}),1e4);r.then(e,t).finally((function(){return clearTimeout(n)}))}));var r},M=function(e){var t=e.attributes,r=e.onSubmit,c=Object(o.useState)(""),a=l()(c,2),i=a[0],u=a[1],s=Object(o.useState)(""),d=l()(s,2),p=d[0],m=d[1],g=function(){var e=N()(_.a.mark((function e(){return _.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Object(b.isEmpty)(i)){e.next=2;break}return e.abrupt("return");case 2:F(t.surveyId,{nonce:t.nonce,feedback:i,email:p}),r();case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return Object(n.createElement)(n.Fragment,null,Object(n.createElement)(j.RichText.Content,{tagName:"h3",className:"crowdsignal-forms-feedback__header",value:t.header}),Object(n.createElement)(f.TextareaControl,{className:"crowdsignal-forms-feedback__input",rows:6,placeholder:t.feedbackPlaceholder,value:i,onChange:u}),Object(n.createElement)(f.TextControl,{className:"crowdsignal-forms-feedback__input",placeholder:t.emailPlaceholder,value:p,onChange:m}),Object(n.createElement)("div",{className:"wp-block-button crowdsignal-forms-feedback__button-wrapper"},Object(n.createElement)("button",{className:"wp-block-button__link crowdsignal-forms-feedback__feedback-button",type:"button",onClick:g},t.submitButtonLabel)))},R=function(e){var t=e.attributes;return Object(n.createElement)(j.RichText.Content,{tagName:"h3",className:"crowdsignal-forms-feedback__header",value:t.submitText})},D=Object(n.createElement)("span",null,"Hide Crowdsignal ads",Object(n.createElement)("br",null),"and get unlimited",Object(n.createElement)("br",null),"signals -"," ",Object(n.createElement)("a",{href:"https://crowdsignal.com/pricing",target:"_blank",rel:"noopener noreferrer"},"Upgrade")),A=function(e){var t=e.showLogo,r=e.editing,o=e.message,c=e.trackRef,a=void 0===c?"cs-forms-poll":c;return Object(n.createElement)("div",{className:"crowdsignal-forms__footer-branding"},Object(n.createElement)("a",{className:"crowdsignal-forms__footer-cs-link",href:"https://crowdsignal.com?ref="+a,target:"_blank",rel:"noopener noreferrer"},o||Object(h.__)("Create your own poll with Crowdsignal","crowdsignal-forms")),r&&Object(n.createElement)(f.Tooltip,{text:D,position:"top center"},Object(n.createElement)("a",{href:"https://crowdsignal.com/pricing",target:"_blank",rel:"noopener noreferrer",className:"crowdsignal-forms__branding-promote"},Object(h.__)("Hide","crowdsignal-forms"))),t&&Object(n.createElement)("a",{href:"https://crowdsignal.com?ref="+a,target:"_blank",rel:"noopener noreferrer"},Object(n.createElement)("img",{className:"crowdsignal-forms__footer-branding-logo",src:"https://app.crowdsignal.com/images/svg/cs-logo-dots.svg",alt:"Crowdsignal sticker"})))},q=function(e){var t=e.attributes,r=Object(o.useState)(C),c=l()(r,2),a=c[0],i=c[1],u=Object(o.useState)("auto"),s=l()(u,2),f=s[0],b=s[1],d=Object(o.useRef)(null),p={height:f};return Object(n.createElement)("div",{ref:d,className:"crowdsignal-forms-feedback__popover",style:p},a===C&&Object(n.createElement)(M,{attributes:t,onSubmit:function(){b(d.current.offsetHeight),i(k)}}),a===k&&Object(n.createElement)(R,{attributes:t}),!t.hideBranding&&Object(n.createElement)(A,{trackRef:"cs-forms-feedback",showLogo:!0,message:Object(h.__)("Collect your own feedback with Crowdsignal","crowdsignal-forms")}))};function B(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function I(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?B(Object(r),!0).forEach((function(t){a()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):B(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var W=function(e,t){return{left:e.left+t.x+window.scrollX,right:e.right+(window.innerWidth>t.left+t.width?window.innerWidth-t.left-t.width:0),top:e.top+t.y+window.scrollY,bottom:e.bottom+(window.innerHeight>t.top+t.height?window.innerHeight-t.top-t.height:0)}},H=function(e,t,r){return{left:"left"===e?r.left:null,right:"right"===e?r.right:null}},z=function(e,t,r){return{top:"top"===e?r.top:null,bottom:"bottom"===e?r.bottom:null}};function U(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var J,K=(J=function(e){var t=e.attributes,r=e.fallbackStyles,c=e.renderStyleProbe,i=Object(o.useState)({}),u=l()(i,2),d=u[0],p=u[1],m=Object(o.useRef)(null);Object(o.useLayoutEffect)((function(){p(function(e,t,r,n,o){var c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,a={left:Object(b.isObject)(o)?o.left:o,right:Object(b.isObject)(o)?o.right:o,top:Object(b.isObject)(o)?o.top:o,bottom:Object(b.isObject)(o)?o.bottom:o};return c&&(a=W(a,c.getBoundingClientRect())),I({},H(e,0,a),{},z(t,0,a))}(t.x,t.y,m.current.offsetWidth,m.current.offsetHeight,20,document.body))}),[t.x,t.y,m.current]);var g=s()("crowdsignal-forms-feedback",{"no-shadow":t.hideTriggerShadow}),w=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?U(Object(r),!0).forEach((function(t){a()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):U(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},d,{},function(e,t){return Object(b.mapKeys)({backgroundColor:e.backgroundColor||"#ffffff",buttonColor:e.buttonColor||t.accentColor,buttonTextColor:e.buttonTextColor||t.textColorInverted,textColor:e.textColor||t.textColor,textSize:t.textSize,triggerBackgroundColor:e.triggerBackgroundColor||t.accentColor,triggerTextColor:e.triggerTextColor||t.textColorInverted},(function(e,t){return"--crowdsignal-forms-".concat(Object(b.kebabCase)(t))}))}(t,r));return Object(n.createElement)(n.Fragment,null,Object(n.createElement)("div",{className:g,style:w},Object(n.createElement)(f.Dropdown,{popoverProps:{className:"crowdsignal-forms-feedback__popover-wrapper"},renderToggle:function(e){var r=e.isOpen,o=e.onToggle;return Object(n.createElement)(x,{ref:m,isOpen:r,onClick:o,attributes:t})},renderContent:function(){return Object(n.createElement)(q,{attributes:t})}})),c())},Object(f.withFallbackStyles)((function(e){return{fallbackStyles:y(e.querySelector(".crowdsignal-forms__style-probe"))}}))((function(e){var t=e.fallbackStyles,r=g()(e,["fallbackStyles"]);return Object(n.createElement)(J,p()({fallbackStyles:t||{},renderStyleProbe:function(){return t?null:Object(n.createElement)(O,null)}},r))}))),X=r(14),Y=function(e,t){return Object(b.forEach)(document.querySelectorAll("div[".concat(e,"]")),(function(r){try{var n=JSON.parse(r.dataset[Object(b.camelCase)(e.substr("data-".length))]),o=t(n,r);r.removeAttribute(e),Object(X.render)(o,r)}catch(c){console.error("Crowdsignal Forms: Failed to parse block data for: %s",e)}}))},Z=function(e,t){(Object(b.isEmpty)(window.CrowdsignalMutationObservers)||!0!==window.CrowdsignalMutationObservers[e])&&(new window.MutationObserver((function(){return Y(e,t)})).observe(document.body,{attributes:!0,attributeFilter:[e],childList:!0,subtree:!0}),Object(b.isEmpty)(window.CrowdsignalMutationObservers)&&(window.CrowdsignalMutationObservers=[]),window.CrowdsignalMutationObservers[e]=!0,Y(e,t))};(function(e,t){if("complete"===document.readyState)return Z(e,t);window.addEventListener("load",(function(){return Z(e,t)}))})("data-crowdsignal-feedback",(function(e){return Object(n.createElement)(K,{attributes:e})}))}]));
1
+ !function(e,t){for(var r in t)e[r]=t[r]}(window,function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=21)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.React}()},function(e,t){!function(){e.exports=this.lodash}()},function(e,t){!function(){e.exports=this.wp.components}()},function(e,t,r){var n=r(15),o=r(16),c=r(17),i=r(19);e.exports=function(e,t){return n(e)||o(e,t)||c(e,t)||i()}},function(e,t,r){var n;
2
  /*!
3
  Copyright (c) 2017 Jed Watson.
4
  Licensed under the MIT License (MIT), see
5
  http://jedwatson.github.io/classnames
6
+ */!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var c=typeof n;if("string"===c||"number"===c)e.push(n);else if(Array.isArray(n)&&n.length){var i=o.apply(null,n);i&&e.push(i)}else if("object"===c)for(var a in n)r.call(n,a)&&n[a]&&e.push(a)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.wp.blockEditor}()},function(e,t){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},function(e,t){!function(){e.exports=this.regeneratorRuntime}()},function(e,t){function r(){return e.exports=r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},r.apply(this,arguments)}e.exports=r},function(e,t,r){var n=r(20);e.exports=function(e,t){if(null==e)return{};var r,o,c=n(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(c[r]=e[r])}return c}},function(e,t){function r(e,t,r,n,o,c,i){try{var a=e[c](i),l=a.value}catch(u){return void r(u)}a.done?t(l):Promise.resolve(l).then(n,o)}e.exports=function(e){return function(){var t=this,n=arguments;return new Promise((function(o,c){var i=e.apply(t,n);function a(e){r(i,o,c,a,l,"next",e)}function l(e){r(i,o,c,a,l,"throw",e)}a(void 0)}))}}},function(e,t){!function(){e.exports=this.crowdsignalForms.apiFetch}()},function(e,t){!function(){e.exports=this.ReactDOM}()},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,c=void 0;try{for(var i,a=e[Symbol.iterator]();!(n=(i=a.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(l){o=!0,c=l}finally{try{n||null==a.return||a.return()}finally{if(o)throw c}}return r}}},function(e,t,r){var n=r(18);e.exports=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t){e.exports=function(e,t){if(null==e)return{};var r,n,o={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}},function(e,t,r){"use strict";r.r(t);var n=r(0),o=r(1),c=r(4),i=r.n(c),a=r(8),l=r.n(a),u=r(5),s=r.n(u),f=r(3),b=r(2),d=r(10),p=r.n(d),m=r(11),g=r.n(m),O=function(e){for(var t=window.getComputedStyle(e).backgroundColor;"rgba(0, 0, 0, 0)"===t&&e.parentNode&&e.parentNode.nodeType===window.Node.ELEMENT_NODE;)e=e.parentNode,t=window.getComputedStyle(e).backgroundColor;return t},w=function(){return Object(n.createElement)("div",{className:"crowdsignal-forms__style-probe"},Object(n.createElement)("p",null),Object(n.createElement)("h3",null,"Text"),Object(n.createElement)("div",{className:"wp-block-button"},Object(n.createElement)("div",{className:"wp-block-button__link"})),Object(n.createElement)("div",{className:"entry-content"},Object(n.createElement)("div",{className:"alignwide"})))},h=function(e){if(null===e)return{};var t,r=e.querySelector(".wp-block-button__link"),n=e.querySelector("p"),o=e.querySelector("h3"),c=e.querySelector(".alignwide"),i=O(r),a=O(n),l=window.getComputedStyle(n).color;if(i===a){var u=(t=r,"0px"!==window.getComputedStyle(t).borderBlockStartWidth?window.getComputedStyle(t).borderBlockStartColor:null);i=u||l}return{accentColor:i,backgroundColor:a,textColor:l,textColorInverted:window.getComputedStyle(r).color,textFont:window.getComputedStyle(n).fontFamily,textSize:window.getComputedStyle(n).fontSize,headingFont:window.getComputedStyle(o).fontFamily,contentWideWidth:window.getComputedStyle(c).maxWidth}},y=r(6),j=r(7),v=function(){return Object(n.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Object(n.createElement)("path",{d:"M17.7049 7.70504L16.2949 6.29504L11.9999 10.59L7.70492 6.29504L6.29492 7.70504L10.5899 12L6.29492 16.295L7.70492 17.705L11.9999 13.41L16.2949 17.705L17.7049 16.295L13.4099 12L17.7049 7.70504Z"}))},E="question",k="submit",x=(Object.freeze({OPEN:"open",CLOSED:"closed",CLOSED_AFTER:"closed-after"}),Object.freeze({CLICK:"click",HOVER:"hover",PAGE_LOAD:"load"})),C=Object(o.forwardRef)((function(e,t){var r=e.attributes,c=e.className,i=e.isOpen,a=e.onClick,l=e.onToggle;Object(o.useLayoutEffect)(l,[i]),Object(o.useEffect)((function(){i||r.toggleOn!==x.PAGE_LOAD||a()}),[]);var u=Object(o.useCallback)((function(){i||r.toggleOn!==x.HOVER||a()}),[r.toggleOn,i]),f=s()("crowdsignal-forms-feedback__trigger","wp-block-button__link",c,{"is-active":i});return Object(n.createElement)("div",{className:"wp-block-button crowdsignal-forms-feedback__trigger-wrapper"},!i&&Object(n.createElement)("button",{ref:t,className:f,onClick:a,onMouseEnter:u},Object(n.createElement)(j.RichText.Content,{className:"crowdsignal-forms-feedback__trigger-text",value:r.triggerLabel})),i&&Object(n.createElement)("button",{ref:t,className:f,onClick:a},Object(n.createElement)(v,null),Object(y.__)("Close","crowdsignal-forms")))})),_=r(9),S=r.n(_),P=r(12),N=r.n(P),L=r(13),T=r.n(L),R=function(e,t){return r=T()({path:Object(b.trimEnd)("/crowdsignal-forms/v1/feedback/".concat(e||"","/response")),method:"POST",data:t}),new Promise((function(e,t){var n=setTimeout((function(){return t(new Error("Request timed out"))}),1e4);r.then(e,t).finally((function(){return clearTimeout(n)}))}));var r},D=function(e){var t=e.attributes,r=e.onSubmit,c=Object(o.useState)(""),a=i()(c,2),l=a[0],u=a[1],d=Object(o.useState)(""),p=i()(d,2),m=p[0],g=p[1],O=Object(o.useState)({}),w=i()(O,2),h=w[0],y=w[1],v=function(){var e=N()(S.a.mark((function e(n){var o;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.preventDefault(),o={feedback:Object(b.isEmpty)(l),email:t.emailRequired&&(Object(b.isEmpty)(m)||m.match(/^\s+@\s+$/))},y(o),!o.feedback&&!o.email){e.next=5;break}return e.abrupt("return");case 5:R(t.surveyId,{nonce:t.nonce,feedback:l,email:m}),r();case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),E=s()("crowdsignal-forms-feedback__input",{"is-error":h.feedback}),k=s()("crowdsignal-forms-feedback__input",{"is-error":h.email});return Object(n.createElement)("form",{onSubmit:v},Object(n.createElement)(j.RichText.Content,{tagName:"h3",className:"crowdsignal-forms-feedback__header",value:t.header}),Object(n.createElement)(f.TextareaControl,{className:E,rows:6,placeholder:t.feedbackPlaceholder,value:l,onChange:u}),Object(n.createElement)(f.TextControl,{className:k,placeholder:t.emailPlaceholder,value:m,onChange:g}),Object(n.createElement)("div",{className:"wp-block-button crowdsignal-forms-feedback__button-wrapper"},Object(n.createElement)("button",{className:"wp-block-button__link crowdsignal-forms-feedback__feedback-button",type:"submit"},t.submitButtonLabel)))},A=function(e){var t=e.attributes;return Object(n.createElement)(j.RichText.Content,{tagName:"h3",className:"crowdsignal-forms-feedback__header",value:t.submitText})},M=Object(n.createElement)("span",null,"Hide Crowdsignal ads",Object(n.createElement)("br",null),"and get unlimited",Object(n.createElement)("br",null),"signals -"," ",Object(n.createElement)("a",{href:"https://crowdsignal.com/pricing",target:"_blank",rel:"noopener noreferrer"},"Upgrade")),F=function(e){var t=e.showLogo,r=e.editing,o=e.message,c=e.trackRef,i=void 0===c?"cs-forms-poll":c;return Object(n.createElement)("div",{className:"crowdsignal-forms__footer-branding"},Object(n.createElement)("a",{className:"crowdsignal-forms__footer-cs-link",href:"https://crowdsignal.com?ref="+i,target:"_blank",rel:"noopener noreferrer"},o||Object(y.__)("Create your own poll with Crowdsignal","crowdsignal-forms")),r&&Object(n.createElement)(f.Tooltip,{text:M,position:"top center"},Object(n.createElement)("a",{href:"https://crowdsignal.com/pricing",target:"_blank",rel:"noopener noreferrer",className:"crowdsignal-forms__branding-promote"},Object(y.__)("Hide","crowdsignal-forms"))),t&&Object(n.createElement)("a",{href:"https://crowdsignal.com?ref="+i,target:"_blank",rel:"noopener noreferrer"},Object(n.createElement)("img",{className:"crowdsignal-forms__footer-branding-logo",src:"https://app.crowdsignal.com/images/svg/cs-logo-dots.svg",alt:"Crowdsignal sticker"})))},H=function(e){var t=e.attributes,r=Object(o.useState)(E),c=i()(r,2),a=c[0],l=c[1],u=Object(o.useState)("auto"),s=i()(u,2),f=s[0],b=s[1],d=Object(o.useRef)(null),p={height:f};return Object(n.createElement)("div",{ref:d,className:"crowdsignal-forms-feedback__popover",style:p},a===E&&Object(n.createElement)(D,{attributes:t,onSubmit:function(){b(d.current.offsetHeight),l(k)}}),a===k&&Object(n.createElement)(A,{attributes:t}),!t.hideBranding&&Object(n.createElement)(F,{trackRef:"cs-forms-feedback",showLogo:a===k,message:Object(y.__)("Collect your own feedback with Crowdsignal","crowdsignal-forms")}))};function q(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function I(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?q(Object(r),!0).forEach((function(t){l()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):q(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var W=function(e,t){return{left:e.left+t.x+window.scrollX,right:e.right+(window.innerWidth>t.left+t.width?window.innerWidth-t.left-t.width:0),top:e.top+t.y+window.scrollY,bottom:e.bottom+(window.innerHeight>t.top+t.height?window.innerHeight-t.top-t.height:0)}},B=function(e,t,r){return{left:"left"===e?r.left:null,right:"right"===e?r.right:null}},z=function(e,t,r){return"center"===e?{top:(window.innerHeight-t)/2,bottom:null}:{top:"top"===e?r.top:null,bottom:"bottom"===e?r.bottom:null}};function G(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function K(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?G(Object(r),!0).forEach((function(t){l()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):G(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var U,V=(U=function(e){var t=e.attributes,r=e.fallbackStyles,c=e.renderStyleProbe,a=Object(o.useState)({}),l=i()(a,2),u=l[0],d=l[1],p=Object(o.useRef)(null),m=Object(o.useCallback)((function(){d(function(e,t,r,n){return"center"!==t?e:K({},e,{left:null!==e.left?e.left-r+n:null,right:null!==e.right?e.right-r+n:null})}(function(e,t,r,n,o){var c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,i={left:Object(b.isObject)(o)?o.left:o,right:Object(b.isObject)(o)?o.right:o,top:Object(b.isObject)(o)?o.top:o,bottom:Object(b.isObject)(o)?o.bottom:o};return c&&(i=W(i,c.getBoundingClientRect())),I({},B(e,0,i),{},z(t,n,i))}(t.x,t.y,p.current.offsetWidth,"center"===t.y?p.current.offsetWidth:p.current.offsetHeight,{top:20,bottom:20,left:"center"===t.y?0:20,right:"center"===t.y?0:20},document.body),t.y,p.current.offsetWidth,p.current.offsetHeight))}),[t.x,t.y,p.current]);Object(o.useLayoutEffect)((function(){m()}),[t.x,t.y,m]);var g,O,w=s()("crowdsignal-forms-feedback","align-".concat(t.x),{"no-shadow":t.hideTriggerShadow,"is-vertical":"center"===t.y}),h=K({},u,{},function(e,t){return Object(b.mapKeys)({backgroundColor:e.backgroundColor||"#ffffff",buttonColor:e.buttonColor||t.accentColor,buttonTextColor:e.buttonTextColor||t.textColorInverted,textColor:e.textColor||t.textColor,textSize:t.textSize,triggerBackgroundColor:e.triggerBackgroundColor||t.accentColor,triggerTextColor:e.triggerTextColor||t.textColorInverted},(function(e,t){return"--crowdsignal-forms-".concat(Object(b.kebabCase)(t))}))}(t,r));return Object(n.createElement)(n.Fragment,null,Object(n.createElement)("div",{className:w,style:h},Object(n.createElement)(f.Dropdown,{popoverProps:{className:"crowdsignal-forms-feedback__popover-wrapper",position:(g=t.x,O=t.y,"center"!==O?"":"left"===g?"middle right":"middle left")},renderToggle:function(e){var r=e.isOpen,o=e.onToggle;return Object(n.createElement)(C,{ref:p,isOpen:r,onClick:o,onToggle:m,attributes:t})},renderContent:function(){return Object(n.createElement)(H,{attributes:t})}})),c())},Object(f.withFallbackStyles)((function(e){return{fallbackStyles:h(e.querySelector(".crowdsignal-forms__style-probe"))}}))((function(e){var t=e.fallbackStyles,r=g()(e,["fallbackStyles"]);return Object(n.createElement)(U,p()({fallbackStyles:t||{},renderStyleProbe:function(){return t?null:Object(n.createElement)(w,null)}},r))}))),$=r(14),J=function(e,t){return Object(b.forEach)(document.querySelectorAll("div[".concat(e,"]")),(function(r){try{var n=JSON.parse(r.dataset[Object(b.camelCase)(e.substr("data-".length))]),o=t(n,r);r.removeAttribute(e),Object($.render)(o,r)}catch(c){console.error("Crowdsignal Forms: Failed to parse block data for: %s",e)}}))},X=function(e,t){(Object(b.isEmpty)(window.CrowdsignalMutationObservers)||!0!==window.CrowdsignalMutationObservers[e])&&(new window.MutationObserver((function(){return J(e,t)})).observe(document.body,{attributes:!0,attributeFilter:[e],childList:!0,subtree:!0}),Object(b.isEmpty)(window.CrowdsignalMutationObservers)&&(window.CrowdsignalMutationObservers=[]),window.CrowdsignalMutationObservers[e]=!0,J(e,t))};(function(e,t){if("complete"===document.readyState)return X(e,t);window.addEventListener("load",(function(){return X(e,t)}))})("data-crowdsignal-feedback",(function(e){return Object(n.createElement)(V,{attributes:e})}))}]));
build/poll.css CHANGED
@@ -1 +1 @@
1
- @keyframes crowdsignal-forms-animation__pop{0%{transform:scale(0)}50%{transform:scale(1.2)}100%{transform:scale(1)}}@keyframes crowdsignal-forms-animation__pulse{0%{opacity:0.4}50%{opacity:0.7}100%{opacity:0.4}}@keyframes crowdsignal-forms-animation__grow{0%{transform:scale(1)}50%{transform:scale(1.4)}100%{transform:scale(1)}}@keyframes crowdsignal-forms-animation__fade-in{0%{opacity:0}100%{opacity:1}}@keyframes crowdsignal-forms-animation__fade-out{0%{opacity:1}100%{opacity:0}}.crowdsignal-poll-wrapper:not(:first-child),[data-type="crowdsignal-forms/poll"]:not(:first-child){margin-top:3em}.crowdsignal-poll-wrapper:not(:last-child),[data-type="crowdsignal-forms/poll"]:not(:last-child){margin-bottom:3em}.crowdsignal-forms-poll{border-color:var(--crowdsignal-forms-border-color);border-style:solid;border-width:var(--crowdsignal-forms-border-width);margin-left:auto;margin-right:auto;margin-top:5px;position:relative;text-align:left}.entry-content .alignfull.crowdsignal-poll-wrapper .crowdsignal-forms-poll{border-left-width:0;border-right-width:0}.crowdsignal-forms-poll h3.crowdsignal-forms-poll__question{margin:0 0 28px}.crowdsignal-forms-poll h3.crowdsignal-forms-poll__question:first-child{margin-top:0}.crowdsignal-forms-poll .crowdsignal-forms-poll__note{font-style:italic;margin:0 0 32px}.crowdsignal-forms-poll .crowdsignal-forms-poll__content{padding:40px 24px 16px 24px}.crowdsignal-forms-poll .crowdsignal-forms-poll__content .crowdsignal-forms-poll__question{font-family:var(--crowdsignal-forms-question-font-family)}.crowdsignal-forms-poll .crowdsignal-forms-poll__content .crowdsignal-forms-poll__answer-label,.crowdsignal-forms-poll .crowdsignal-forms-poll__content .crowdsignal-forms-poll__answer-results-answer,.crowdsignal-forms-poll .crowdsignal-forms-poll__content .crowdsignal-forms-poll__note{font-family:var(--crowdsignal-forms-body-font-family)}.entry-content .alignfull.crowdsignal-poll-wrapper .crowdsignal-forms-poll .crowdsignal-forms-poll__content{margin:0 auto;max-width:var(--crowdsignal-forms-content-wide-width)}@media screen and (min-width: 660px){.alignwide.crowdsignal-poll-wrapper .crowdsignal-forms-poll .crowdsignal-forms-poll__content,.alignfull.crowdsignal-poll-wrapper .crowdsignal-forms-poll .crowdsignal-forms-poll__content{padding:80px}}.crowdsignal-forms-poll.is-closed .crowdsignal-forms-poll__form{opacity:0.5}.crowdsignal-forms-poll.is-hidden{opacity:0.5}.crowdsignal-forms-poll.has-text-color{color:var(--crowdsignal-forms-text-color)}.crowdsignal-forms-poll.has-bg-color{background-color:var(--crowdsignal-forms-bg-color)}.crowdsignal-forms-poll.has-border-radius{border-radius:var(--crowdsignal-forms-border-radius);overflow:hidden}.crowdsignal-forms-poll.has-box-shadow{box-shadow:0 3px 6px rgba(0,0,0,0.16),0 3px 6px rgba(0,0,0,0.23)}.crowdsignal-forms-poll .is-transparent{opacity:0;pointer-events:none}.crowdsignal-forms-poll__block-button .crowdsignal-forms-poll__submit-button{-webkit-appearance:initial}.crowdsignal-forms-poll__block-button .crowdsignal-forms-poll__submit-button:disabled{opacity:0.7}.crowdsignal-forms-poll.has-submit-button-text-color .crowdsignal-forms-poll__block-button .crowdsignal-forms-poll__submit-button.wp-block-button__link{color:var(--crowdsignal-forms-submit-button-text-color)}.crowdsignal-forms-poll.has-submit-button-bg-color .crowdsignal-forms-poll__block-button .crowdsignal-forms-poll__submit-button.wp-block-button__link{background-color:var(--crowdsignal-forms-submit-button-bg-color)}.crowdsignal-forms-poll.has-submit-button-bg-color .crowdsignal-forms-poll__block-button .crowdsignal-forms-poll__submit-button.wp-block-button__link:hover{opacity:0.9}.crowdsignal-forms-poll__options.is-button{display:flex;flex-direction:column;flex-wrap:wrap}.crowdsignal-forms-poll__options.is-button.is-inline-button-alignment{flex-direction:row}.crowdsignal-forms-poll__answer{cursor:pointer;display:flex;font-size:inherit;font-weight:600;margin:0;padding:0 2px;position:relative}.crowdsignal-forms-poll__answer.is-button{margin-inline-end:20px;margin-block-end:20px;max-width:100%}.crowdsignal-forms-poll__answer.is-button .wp-block-button.crowdsignal-forms-poll__block-button,.crowdsignal-forms-poll__answer.is-button .crowdsignal-forms-poll__submit-button{max-width:100%}.crowdsignal-forms-poll__answer.is-button .crowdsignal-forms-poll__submit-button{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.crowdsignal-forms-poll__answer:not(.is-button){margin-block-end:16px}.crowdsignal-forms-poll__answer:hover,.crowdsignal-forms-poll__answer.is-focused{color:var(--crowdsignal-forms-submit-button-bg-color)}.has-voted .crowdsignal-forms-poll__answer{opacity:0.5}input[type="checkbox"].crowdsignal-forms-poll__input,input[type="radio"].crowdsignal-forms-poll__input{height:0;opacity:0;position:absolute;width:0}.crowdsignal-forms-poll__check{display:inline-block;height:1em;margin:0 10px 0 0;position:relative;width:1em}.crowdsignal-forms-poll__check::before{background-color:transparent;border:1.5px solid var(--crowdsignal-forms-text-color);border-radius:50%;box-sizing:border-box;content:"";display:block;height:100%;transition:background-color 0.3s, border-color 0.3s;width:100%}.crowdsignal-forms-poll__answer.is-multiple-choice .crowdsignal-forms-poll__check::before{border-radius:3px}.crowdsignal-forms-poll__answer.is-multiple-choice.is-selected .crowdsignal-forms-poll__check::before{border-color:var(--crowdsignal-forms-text-color);background-color:var(--crowdsignal-forms-text-color)}.crowdsignal-forms-poll__answer.is-selected:not(.is-multiple-choice) .crowdsignal-forms-poll__check::after{animation-duration:0.3s;animation-name:crowdsignal-forms-animation__pop;animation-iteration-count:1;background-clip:padding-box;background-color:var(--crowdsignal-forms-text-color);border:4.5px solid transparent;border-radius:50%;box-sizing:border-box;content:"";display:block;height:100%;position:absolute;left:0;top:0;width:100%}.crowdsignal-forms-poll__answer.is-selected.is-multiple-choice .crowdsignal-forms-poll__check::after{border-color:var(--crowdsignal-forms-submit-button-text-color);border-style:solid;border-width:0 0 2px 2px;box-sizing:border-box;content:"";display:block;height:25%;margin:-0.1em 0 0 -0.2em;position:absolute;left:50%;top:50%;transform:rotateZ(-45deg);width:50%}div.crowdsignal-forms-poll__answer-label-wrapper{flex:1;word-break:break-word}div.crowdsignal-forms-poll__answer-label-wrapper span.crowdsignal-forms-poll__answer-label{line-height:1;vertical-align:top}div.crowdsignal-forms-poll__answer-label-wrapper span.crowdsignal-forms-poll__answer-label span::after{vertical-align:top}.crowdsignal-forms-poll__button{border:0;padding:0}.crowdsignal-forms-poll__actions .wp-block-button,.crowdsignal-forms-poll__options .wp-block-button{margin:0}.crowdsignal-forms-poll__actions{display:flex;justify-content:flex-end}.editor-styles-wrapper .crowdsignal-forms-poll .crowdsignal-forms-poll__actions .wp-block-button.crowdsignal-forms-poll__block-button,.editor-styles-wrapper .crowdsignal-forms-poll .crowdsignal-forms-poll__options .wp-block-button.crowdsignal-forms-poll__block-button{margin:0}.crowdsignal-forms-poll__closed-banner{background-color:var(--crowdsignal-forms-border-color);box-sizing:border-box;display:flex;color:var(--crowdsignal-forms-submit-button-text-color);font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;justify-content:center;padding:calc(var(--crowdsignal-forms-border-width) + 0.2em) 0 0.2em;width:100%}.is-hidden .crowdsignal-forms-poll__closed-banner{font-style:italic}.crowdsignal-forms-poll__error{color:red}.crowdsignal-forms-poll__results-list{margin:0 0 1em;position:relative}.crowdsignal-forms-poll__answer-results{display:flex;flex-direction:column;margin:0 0 16px;width:100%}.crowdsignal-forms-poll__answer-results:last-child{margin:0}.crowdsignal-forms-poll__answer-results-labels{align-items:flex-end;display:flex;margin:0 0 8px;width:100%;word-break:break-word}.crowdsignal-forms-poll__answer-results-answer{flex:1;font-size:1em;font-weight:600}.crowdsignal-forms-poll__answer-results-votes{font-size:0.75em;line-height:2}.crowdsignal-forms-poll__answer-results-percent{font-weight:600;line-height:1.6}.crowdsignal-forms-poll__answer-results-votes,.crowdsignal-forms-poll__answer-results-percent{font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;margin-left:20px;transition:opacity 0.3s}.crowdsignal-forms-poll__answer-results.is-error .crowdsignal-forms-poll__answer-results-votes,.crowdsignal-forms-poll__answer-results.is-error .crowdsignal-forms-poll__answer-results-percent{display:none}.crowdsignal-forms-poll__answer-results.is-loading .crowdsignal-forms-poll__answer-results-votes,.crowdsignal-forms-poll__answer-results.is-loading .crowdsignal-forms-poll__answer-results-percent{animation-duration:1.5s;animation-iteration-count:infinite;animation-name:crowdsignal-forms-animation__pulse;background-color:var(--crowdsignal-forms-text-color);font-size:0.7em;height:1em;width:50px}.crowdsignal-forms-poll__answer-results.is-loading .crowdsignal-forms-poll__answer-results-votes:last-child,.crowdsignal-forms-poll__answer-results.is-loading .crowdsignal-forms-poll__answer-results-percent:last-child{width:40px}.crowdsignal-forms-poll__answer-results-progress-track{border:1px solid;border-color:rgba(var(--crowdsignal-forms-text-color-properties), 0.3);box-sizing:border-box;height:1em;width:100%}.crowdsignal-forms-poll__answer-results.is-loading .crowdsignal-forms-poll__answer-results-progress-track{animation-duration:1.5s;animation-iteration-count:infinite;animation-name:crowdsignal-forms-animation__pulse}.crowdsignal-forms-poll__answer-results-progress-bar{animation-fill-mode:forwards;background-color:var(--crowdsignal-forms-submit-button-bg-color);height:100%;transition:background-color 0.3s, width 0.3s}.crowdsignal-forms-poll__answer-results.is-error .crowdsignal-forms-poll__answer-results-progress-bar{width:0}.crowdsignal-forms-poll__answer-results.is-loading .crowdsignal-forms-poll__answer-results-progress-bar{background-color:var(--crowdsignal-forms-text-color);width:25%}.crowdsignal-forms-poll__answer-results.is-loading:nth-child(5n+1) .crowdsignal-forms-poll__answer-results-progress-bar{width:40%}.crowdsignal-forms-poll__answer-results.is-loading:nth-child(5n+2) .crowdsignal-forms-poll__answer-results-progress-bar{width:75%}.crowdsignal-forms-poll__answer-results.is-loading:nth-child(5n+3) .crowdsignal-forms-poll__answer-results-progress-bar{width:50%}.crowdsignal-forms-poll__answer-results.is-loading:nth-child(5n+4) .crowdsignal-forms-poll__answer-results-progress-bar{width:60%}.crowdsignal-forms-poll__results-footer{display:flex;flex-direction:column;justify-content:space-between;width:100%;font-size:0.9em}.crowdsignal-forms-poll__results-total{font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;position:relative;text-align:right;width:100%;margin-bottom:1em}.crowdsignal-forms-poll__results.is-loading .crowdsignal-forms-poll__results-total{color:transparent}.crowdsignal-forms-poll__results.is-loading .crowdsignal-forms-poll__results-total::before{animation-name:crowdsignal-forms-animation__pulse;animation-duration:1.5s;animation-iteration-count:infinite;background-color:var(--crowdsignal-forms-text-color);content:"";display:block;position:absolute;right:0;height:1em;width:150px}.crowdsignal-forms-poll__error-banner{font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;font-size:13px;margin-top:24px;padding:18px 24px;color:#d82e20;border-left:4px solid #d82e20;background:#f8dad8}.crowdsignal-forms-poll__submit-message-container{position:absolute;background-color:var(--crowdsignal-forms-bg-color);left:0;top:0;width:100%;height:100%;overflow:hidden}.has-default-thankyou .crowdsignal-forms-poll__submit-message-container{background-color:#fff}.crowdsignal-forms-poll__submit-message{position:relative}.crowdsignal-forms-poll__submit-message button.crowdsignal-forms-poll__dismiss-submit-message{position:absolute;right:0;top:0;background-color:transparent;color:#000;text-decoration:none;border:none}.crowdsignal-forms-poll__submit-message button.crowdsignal-forms-poll__dismiss-submit-message:hover{background:inherit}.crowdsignal-forms-poll__submit-message-footer{position:absolute;bottom:0;left:0;padding:16px 24px;width:100%;background-color:inherit}.crowdsignal-forms-poll__thank-you-cs-sticker{right:25px;top:66px}.crowdsignal-forms-poll__thank-you-sticker{right:132px;top:12px}.crowdsignal-forms-poll__thank-you-cs-sticker,.crowdsignal-forms-poll__thank-you-sticker{filter:drop-shadow(0 1px 2px rgba(0,0,0,0.2));width:100px;height:100px;position:absolute}.crowdsignal-forms-poll__custom-message-check{color:var(--crowdsignal-forms-text-color);padding-left:24px;padding-top:24px}.crowdsignal-forms-poll__custom-message{font-family:var(--crowdsignal-forms-question-font-family);font-weight:600;padding:16px 24px}.wp_block-crowdsignal-forms-poll__vote-branding{margin-top:16px}.crowdsignal-forms__style-probe{display:none}.crowdsignal-forms__footer-branding{align-items:center;display:flex;margin-top:16px;width:100%}.crowdsignal-forms__footer-branding img.crowdsignal-forms__footer-branding-logo{height:50px;margin-left:auto;margin-right:0;width:50px}.crowdsignal-forms__footer-branding .crowdsignal-forms__branding-promote{display:inline-flex;font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;font-size:10px;text-decoration:none !important;box-shadow:none;border:0;background-color:#a4a4a4a4;color:#fff;cursor:pointer;padding-right:8px;padding-left:8px;margin-left:16px;border-radius:2px;padding-top:2px;padding-bottom:2px;vertical-align:middle}.crowdsignal-forms__footer-cs-link{display:inline-flex;font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;font-size:inherit;line-height:inherit;text-decoration:none;text-transform:uppercase;vertical-align:middle;border-bottom:0 solid var(--crowdsignal-forms-text-color) !important}.crowdsignal-forms__footer-cs-link:not(:hover){color:var(--crowdsignal-forms-text-color);opacity:0.4}.has-default-thankyou .crowdsignal-forms__footer-cs-link{color:#333}
1
+ @keyframes crowdsignal-forms-animation__pop{0%{transform:scale(0)}50%{transform:scale(1.2)}100%{transform:scale(1)}}@keyframes crowdsignal-forms-animation__pulse{0%{opacity:0.4}50%{opacity:0.7}100%{opacity:0.4}}@keyframes crowdsignal-forms-animation__grow{0%{transform:scale(1)}50%{transform:scale(1.4)}100%{transform:scale(1)}}@keyframes crowdsignal-forms-animation__fade-in{0%{opacity:0}100%{opacity:1}}@keyframes crowdsignal-forms-animation__fade-out{0%{opacity:1}100%{opacity:0}}.crowdsignal-poll-wrapper:not(:first-child),[data-type="crowdsignal-forms/poll"]:not(:first-child){margin-top:3em}.crowdsignal-poll-wrapper:not(:last-child),[data-type="crowdsignal-forms/poll"]:not(:last-child){margin-bottom:3em}.crowdsignal-forms-poll{border-color:var(--crowdsignal-forms-border-color);border-style:solid;border-width:var(--crowdsignal-forms-border-width);margin-left:auto;margin-right:auto;margin-top:5px;position:relative;text-align:left}.entry-content .alignfull.crowdsignal-poll-wrapper .crowdsignal-forms-poll{border-left-width:0;border-right-width:0}.crowdsignal-forms-poll h3.crowdsignal-forms-poll__question{margin:0 0 44px}.crowdsignal-forms-poll h3.crowdsignal-forms-poll__question:first-child{margin-top:0}.crowdsignal-forms-poll .crowdsignal-forms-poll__note{font-style:italic;margin:0 0 32px}.crowdsignal-forms-poll .crowdsignal-forms-poll__content{padding:40px 24px 16px 24px}.crowdsignal-forms-poll .crowdsignal-forms-poll__content .crowdsignal-forms-poll__question{font-family:var(--crowdsignal-forms-question-font-family);line-height:1.4}.crowdsignal-forms-poll .crowdsignal-forms-poll__content .crowdsignal-forms-poll__answer-label,.crowdsignal-forms-poll .crowdsignal-forms-poll__content .crowdsignal-forms-poll__answer-results-answer,.crowdsignal-forms-poll .crowdsignal-forms-poll__content .crowdsignal-forms-poll__note{font-family:var(--crowdsignal-forms-body-font-family)}.entry-content .alignfull.crowdsignal-poll-wrapper .crowdsignal-forms-poll .crowdsignal-forms-poll__content{margin:0 auto;max-width:var(--crowdsignal-forms-content-wide-width)}@media screen and (min-width: 660px){.alignwide.crowdsignal-poll-wrapper .crowdsignal-forms-poll .crowdsignal-forms-poll__content,.alignfull.crowdsignal-poll-wrapper .crowdsignal-forms-poll .crowdsignal-forms-poll__content{padding:80px}}.crowdsignal-forms-poll.is-closed .crowdsignal-forms-poll__form{opacity:0.5}.crowdsignal-forms-poll.is-hidden{opacity:0.5}.crowdsignal-forms-poll.has-text-color{color:var(--crowdsignal-forms-text-color)}.crowdsignal-forms-poll.has-bg-color{background-color:var(--crowdsignal-forms-bg-color)}.crowdsignal-forms-poll.has-border-radius{border-radius:var(--crowdsignal-forms-border-radius);overflow:hidden}.crowdsignal-forms-poll.has-box-shadow{box-shadow:0 3px 6px rgba(0,0,0,0.16),0 3px 6px rgba(0,0,0,0.23)}.crowdsignal-forms-poll .is-transparent{opacity:0;pointer-events:none}.crowdsignal-forms-poll__block-button .crowdsignal-forms-poll__submit-button{-webkit-appearance:initial}.crowdsignal-forms-poll__block-button .crowdsignal-forms-poll__submit-button:disabled{opacity:0.7}.crowdsignal-forms-poll.has-submit-button-text-color .crowdsignal-forms-poll__block-button .crowdsignal-forms-poll__submit-button.wp-block-button__link{color:var(--crowdsignal-forms-submit-button-text-color)}.crowdsignal-forms-poll.has-submit-button-bg-color .crowdsignal-forms-poll__block-button .crowdsignal-forms-poll__submit-button.wp-block-button__link{background-color:var(--crowdsignal-forms-submit-button-bg-color)}.crowdsignal-forms-poll.has-submit-button-bg-color .crowdsignal-forms-poll__block-button .crowdsignal-forms-poll__submit-button.wp-block-button__link:hover{opacity:0.9}.crowdsignal-forms-poll__options.is-button{display:flex;flex-direction:column;flex-wrap:wrap}.crowdsignal-forms-poll__options.is-button.is-inline-button-alignment{flex-direction:row}.crowdsignal-forms-poll__answer{display:flex;font-size:inherit;font-weight:600;margin:0;padding:0 2px;position:relative}.crowdsignal-forms-poll__answer.is-button{margin-inline-end:20px;margin-block-end:20px;max-width:100%}.crowdsignal-forms-poll__answer.is-button .wp-block-button.crowdsignal-forms-poll__block-button,.crowdsignal-forms-poll__answer.is-button .crowdsignal-forms-poll__submit-button{max-width:100%}.crowdsignal-forms-poll__answer.is-button .crowdsignal-forms-poll__submit-button{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.crowdsignal-forms-poll__answer:not(.is-button){cursor:pointer;margin-block-end:12px;width:100%}.crowdsignal-forms-poll__answer>.crowdsignal-forms-poll__answer{margin-block-end:0}.crowdsignal-forms-poll__answer:hover,.crowdsignal-forms-poll__answer.is-focused{color:var(--crowdsignal-forms-submit-button-bg-color)}.has-voted .crowdsignal-forms-poll__answer{opacity:0.5}input[type="checkbox"].crowdsignal-forms-poll__input,input[type="radio"].crowdsignal-forms-poll__input{height:0;opacity:0;position:absolute;width:0}.crowdsignal-forms-poll__check{display:inline-block;height:1em;margin:0 10px 0 0;position:relative;width:1em}.crowdsignal-forms-poll__check::before{background-color:transparent;border:1.5px solid var(--crowdsignal-forms-text-color);border-radius:50%;box-sizing:border-box;content:"";display:block;height:100%;transition:background-color 0.3s, border-color 0.3s;width:100%}.crowdsignal-forms-poll__answer.is-multiple-choice .crowdsignal-forms-poll__check::before{border-radius:3px}.crowdsignal-forms-poll__answer.is-multiple-choice.is-selected .crowdsignal-forms-poll__check::before{border-color:var(--crowdsignal-forms-text-color);background-color:var(--crowdsignal-forms-text-color)}.crowdsignal-forms-poll__answer.is-selected:not(.is-multiple-choice) .crowdsignal-forms-poll__check::after{animation-duration:0.3s;animation-name:crowdsignal-forms-animation__pop;animation-iteration-count:1;background-clip:padding-box;background-color:var(--crowdsignal-forms-text-color);border:4.5px solid transparent;border-radius:50%;box-sizing:border-box;content:"";display:block;height:100%;position:absolute;left:0;top:0;width:100%}.crowdsignal-forms-poll__answer.is-selected.is-multiple-choice .crowdsignal-forms-poll__check::after{border-color:var(--crowdsignal-forms-submit-button-text-color);border-style:solid;border-width:0 0 2px 2px;box-sizing:border-box;content:"";display:block;height:25%;margin:-0.1em 0 0 -0.2em;position:absolute;left:50%;top:50%;transform:rotateZ(-45deg);width:50%}div.crowdsignal-forms-poll__answer-label-wrapper{flex:1;word-break:break-word}div.crowdsignal-forms-poll__answer-label-wrapper span.crowdsignal-forms-poll__answer-label{line-height:1;vertical-align:top}div.crowdsignal-forms-poll__answer-label-wrapper span.crowdsignal-forms-poll__answer-label span::after{vertical-align:top}.crowdsignal-forms-poll__button{border:0;padding:0}.crowdsignal-forms-poll__actions .wp-block-button,.crowdsignal-forms-poll__options .wp-block-button{margin:0}.crowdsignal-forms-poll__actions{display:flex;justify-content:flex-end;margin-top:32px;margin-bottom:16px}.editor-styles-wrapper .crowdsignal-forms-poll .crowdsignal-forms-poll__actions .wp-block-button.crowdsignal-forms-poll__block-button,.editor-styles-wrapper .crowdsignal-forms-poll .crowdsignal-forms-poll__options .wp-block-button.crowdsignal-forms-poll__block-button{margin:0;line-height:0}.crowdsignal-forms-poll__closed-banner{background-color:var(--crowdsignal-forms-border-color);box-sizing:border-box;display:flex;color:var(--crowdsignal-forms-submit-button-text-color);font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;justify-content:center;padding:calc(var(--crowdsignal-forms-border-width) + 0.2em) 0 0.2em;width:100%}.is-hidden .crowdsignal-forms-poll__closed-banner{font-style:italic}.crowdsignal-forms-poll__error{color:red}.crowdsignal-forms-poll__results-list{margin:0 0 1em;position:relative}.crowdsignal-forms-poll__answer-results{display:flex;flex-direction:column;margin:0 0 16px;width:100%}.crowdsignal-forms-poll__answer-results:last-child{margin:0}.crowdsignal-forms-poll__answer-results-labels{align-items:flex-end;display:flex;margin:0 0 8px;width:100%;word-break:break-word}.crowdsignal-forms-poll__answer-results-answer{flex:1;font-size:1em;font-weight:600}.crowdsignal-forms-poll__answer-results-votes{font-size:0.75em;line-height:2}.crowdsignal-forms-poll__answer-results-percent{font-weight:600;line-height:1.6}.crowdsignal-forms-poll__answer-results-votes,.crowdsignal-forms-poll__answer-results-percent{font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;margin-left:20px;transition:opacity 0.3s}.crowdsignal-forms-poll__answer-results.is-error .crowdsignal-forms-poll__answer-results-votes,.crowdsignal-forms-poll__answer-results.is-error .crowdsignal-forms-poll__answer-results-percent{display:none}.crowdsignal-forms-poll__answer-results.is-loading .crowdsignal-forms-poll__answer-results-votes,.crowdsignal-forms-poll__answer-results.is-loading .crowdsignal-forms-poll__answer-results-percent{animation-duration:1.5s;animation-iteration-count:infinite;animation-name:crowdsignal-forms-animation__pulse;background-color:var(--crowdsignal-forms-text-color);font-size:0.7em;height:1em;width:50px}.crowdsignal-forms-poll__answer-results.is-loading .crowdsignal-forms-poll__answer-results-votes:last-child,.crowdsignal-forms-poll__answer-results.is-loading .crowdsignal-forms-poll__answer-results-percent:last-child{width:40px}.crowdsignal-forms-poll__answer-results-progress-track{border:1px solid;border-color:rgba(var(--crowdsignal-forms-text-color-properties), 0.3);box-sizing:border-box;height:1em;width:100%}.crowdsignal-forms-poll__answer-results.is-loading .crowdsignal-forms-poll__answer-results-progress-track{animation-duration:1.5s;animation-iteration-count:infinite;animation-name:crowdsignal-forms-animation__pulse}.crowdsignal-forms-poll__answer-results-progress-bar{animation-fill-mode:forwards;background-color:var(--crowdsignal-forms-submit-button-bg-color);height:100%;transition:background-color 0.3s, width 0.3s}.crowdsignal-forms-poll__answer-results.is-error .crowdsignal-forms-poll__answer-results-progress-bar{width:0}.crowdsignal-forms-poll__answer-results.is-loading .crowdsignal-forms-poll__answer-results-progress-bar{background-color:var(--crowdsignal-forms-text-color);width:25%}.crowdsignal-forms-poll__answer-results.is-loading:nth-child(5n+1) .crowdsignal-forms-poll__answer-results-progress-bar{width:40%}.crowdsignal-forms-poll__answer-results.is-loading:nth-child(5n+2) .crowdsignal-forms-poll__answer-results-progress-bar{width:75%}.crowdsignal-forms-poll__answer-results.is-loading:nth-child(5n+3) .crowdsignal-forms-poll__answer-results-progress-bar{width:50%}.crowdsignal-forms-poll__answer-results.is-loading:nth-child(5n+4) .crowdsignal-forms-poll__answer-results-progress-bar{width:60%}.crowdsignal-forms-poll__results-footer{display:flex;flex-direction:column;justify-content:space-between;width:100%;font-size:0.9em}.crowdsignal-forms-poll__results-total{font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;position:relative;text-align:right;width:100%;margin-bottom:1em}.crowdsignal-forms-poll__results.is-loading .crowdsignal-forms-poll__results-total{color:transparent}.crowdsignal-forms-poll__results.is-loading .crowdsignal-forms-poll__results-total::before{animation-name:crowdsignal-forms-animation__pulse;animation-duration:1.5s;animation-iteration-count:infinite;background-color:var(--crowdsignal-forms-text-color);content:"";display:block;position:absolute;right:0;height:1em;width:150px}.crowdsignal-forms-poll__error-banner{font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;font-size:13px;margin-top:24px;padding:18px 24px;color:#d82e20;border-left:4px solid #d82e20;background:#f8dad8}.crowdsignal-forms-poll__submit-message-container{position:absolute;background-color:var(--crowdsignal-forms-bg-color);left:0;top:0;width:100%;height:100%;overflow:hidden}.has-default-thankyou .crowdsignal-forms-poll__submit-message-container{background-color:#fff}.crowdsignal-forms-poll__submit-message{position:relative}.crowdsignal-forms-poll__submit-message button.crowdsignal-forms-poll__dismiss-submit-message{position:absolute;right:0;top:0;background-color:transparent;color:#000;text-decoration:none;border:none}.crowdsignal-forms-poll__submit-message button.crowdsignal-forms-poll__dismiss-submit-message:hover{background:inherit}.crowdsignal-forms-poll__submit-message-footer{position:absolute;bottom:0;left:0;padding:16px 24px;width:100%;background-color:inherit}.crowdsignal-forms-poll__thank-you-cs-sticker{right:25px;top:66px}.crowdsignal-forms-poll__thank-you-sticker{right:132px;top:12px}.crowdsignal-forms-poll__thank-you-cs-sticker,.crowdsignal-forms-poll__thank-you-sticker{filter:drop-shadow(0 1px 2px rgba(0,0,0,0.2));width:100px;height:100px;position:absolute}.crowdsignal-forms-poll__custom-message-check{color:var(--crowdsignal-forms-text-color);padding-left:24px;padding-top:24px}.crowdsignal-forms-poll__custom-message{font-family:var(--crowdsignal-forms-question-font-family);font-weight:600;padding:16px 24px}.wp_block-crowdsignal-forms-poll__vote-branding{margin-top:16px}.crowdsignal-forms__style-probe{display:none}.crowdsignal-forms__footer-branding{align-items:center;display:flex;margin-top:16px;width:100%}.crowdsignal-forms__footer-branding img.crowdsignal-forms__footer-branding-logo{height:50px;margin-left:auto;margin-right:0;width:50px}.crowdsignal-forms__footer-branding .crowdsignal-forms__branding-promote{display:inline-flex;font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;font-size:10px;text-decoration:none !important;box-shadow:none;border:0;background-color:#a4a4a4a4;color:#fff;cursor:pointer;padding-right:8px;padding-left:8px;margin-left:16px;border-radius:2px;padding-top:2px;padding-bottom:2px;vertical-align:middle}.crowdsignal-forms__footer-cs-link{display:inline-flex;font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;font-size:inherit;line-height:inherit;text-decoration:none;text-transform:uppercase;vertical-align:middle;border-bottom:0 solid var(--crowdsignal-forms-text-color) !important}.crowdsignal-forms__footer-cs-link:not(:hover){color:var(--crowdsignal-forms-text-color);opacity:0.4}.has-default-thankyou .crowdsignal-forms__footer-cs-link{color:#333}
build/rtl/editor-rtl.css CHANGED
@@ -1,3 +1,3 @@
1
- /* This file was automatically generated on May 05 2021 14:54:14 */
2
 
3
- .crowdsignal-forms__connect-to-crowdsignal{border:1px solid #000;font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;padding:24px;text-align:initial}.crowdsignal-forms__connect-to-crowdsignal-header{display:flex;flex-direction:row;align-items:center}.crowdsignal-forms__connect-to-crowdsignal-body{font-size:13px;margin-top:24px;margin-bottom:16px}.crowdsignal-forms__connect-to-crowdsignal-title{font-size:24pt;margin-inline-start:16px}.crowdsignal-forms__editor-notice{margin:0 0 15px !important}.crowdsignal-forms__editor-notice .components-notice__content{display:flex;flex-direction:row;align-items:center}.crowdsignal-forms__editor-notice-icon{line-height:0;padding:8px 8px 8px 16px}.is-warn .crowdsignal-forms__editor-notice-icon{color:var(--wp-admin-theme-color)}.crowdsignal-forms__editor-notice-text{flex-grow:1;color:var(--crowdsignal-forms-text-color)}.crowdsignal-forms__editor-notice-text a{text-decoration:underline}.crowdsignal-forms__sidebar-promote{margin-right:16px;flex-grow:1}.crowdsignal-forms__footer-branding{align-items:center;display:flex;margin-top:16px;width:100%}.crowdsignal-forms__footer-branding img.crowdsignal-forms__footer-branding-logo{height:50px;margin-right:auto;margin-left:0;width:50px}.crowdsignal-forms__footer-branding .crowdsignal-forms__branding-promote{display:inline-flex;font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;font-size:10px;text-decoration:none !important;box-shadow:none;border:0;background-color:#a4a4a4a4;color:#fff;cursor:pointer;padding-left:8px;padding-right:8px;margin-right:16px;border-radius:2px;padding-top:2px;padding-bottom:2px;vertical-align:middle}.crowdsignal-forms__footer-cs-link{display:inline-flex;font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;font-size:inherit;line-height:inherit;text-decoration:none;text-transform:uppercase;vertical-align:middle;border-bottom:0 solid var(--crowdsignal-forms-text-color) !important}.crowdsignal-forms__footer-cs-link:not(:hover){color:var(--crowdsignal-forms-text-color);opacity:0.4}.has-default-thankyou .crowdsignal-forms__footer-cs-link{color:#333}#editor .editor-styles-wrapper .crowdsignal-forms-poll{margin-right:0;margin-left:0}#editor .editor-styles-wrapper .block-editor-block-list__block[data-type="crowdsignal-forms/poll"][data-align="full"] .crowdsignal-forms-poll{border-right-width:0;border-left-width:0}@media screen and (min-width: 660px){#editor .editor-styles-wrapper .block-editor-block-list__block[data-type="crowdsignal-forms/poll"][data-align="wide"] .crowdsignal-forms-poll__content,#editor .editor-styles-wrapper .block-editor-block-list__block[data-type="crowdsignal-forms/poll"][data-align="full"] .crowdsignal-forms-poll__content{padding:80px}}#editor .editor-styles-wrapper .crowdsignal-forms-poll__answer{cursor:text}#editor .editor-styles-wrapper .crowdsignal-forms-poll__answer:hover,#editor .editor-styles-wrapper .crowdsignal-forms-poll__answer.is-focused{color:inherit}#editor .editor-styles-wrapper .wp-block-button .crowdsignal-forms-poll__submit-button.wp-block-button__link{cursor:text}#editor .editor-styles-wrapper .wp-block-button .crowdsignal-forms-poll__submit-button.wp-block-button__link:hover{opacity:inherit}.crowdsignal-forms-poll__resize-wrapper{margin-right:auto;margin-left:auto}.crowdsignal-forms__redirect-url input[type="text"]{width:100%}.crowdsignal-forms__redirect-url__suggestions{width:260px}.crowdsignal-forms__row{display:flex;flex-direction:row}.crowdsignal-forms__row .crowdsignal-forms__small-text-input input[type="text"]{width:40px}.crowdsignal-forms__row .crowdsignal-forms__small-text-input input[type="number"]{width:50px}.crowdsignal-forms__reset-width-button{margin-right:auto;margin-top:25px}.crowdsignal-forms-poll__edit-bar{font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;font-size:13px;margin-top:24px;padding:18px 24px;color:#d82e20;border-right:4px solid #d82e20;background:#f8dad8;display:flex;flex-direction:row;justify-content:space-between;align-items:center}.crowdsignal-forms-poll__edit-bar .crowdsignal-forms-poll__edit-bar-message{padding-inline-end:24px}.crowdsignal-forms-poll__edit-bar button.crowdsignal-forms-poll__edit-bar-button{border:2px solid #d82e20;border-radius:4px;color:#d82e20;background:transparent;padding:8px 16px;cursor:pointer}.crowdsignal-poll-wrapper:not(:first-child),[data-type="crowdsignal-forms/poll"]:not(:first-child){margin-top:3em}.crowdsignal-poll-wrapper:not(:last-child),[data-type="crowdsignal-forms/poll"]:not(:last-child){margin-bottom:3em}.crowdsignal-forms-poll{border-color:var(--crowdsignal-forms-border-color);border-style:solid;border-width:var(--crowdsignal-forms-border-width);margin-right:auto;margin-left:auto;margin-top:5px;position:relative;text-align:right}.entry-content .alignfull.crowdsignal-poll-wrapper .crowdsignal-forms-poll{border-right-width:0;border-left-width:0}.crowdsignal-forms-poll h3.crowdsignal-forms-poll__question{margin:0 0 28px}.crowdsignal-forms-poll h3.crowdsignal-forms-poll__question:first-child{margin-top:0}.crowdsignal-forms-poll .crowdsignal-forms-poll__note{font-style:italic;margin:0 0 32px}.crowdsignal-forms-poll .crowdsignal-forms-poll__content{padding:40px 24px 16px 24px}.crowdsignal-forms-poll .crowdsignal-forms-poll__content .crowdsignal-forms-poll__question{font-family:var(--crowdsignal-forms-question-font-family)}.crowdsignal-forms-poll .crowdsignal-forms-poll__content .crowdsignal-forms-poll__answer-label,.crowdsignal-forms-poll .crowdsignal-forms-poll__content .crowdsignal-forms-poll__answer-results-answer,.crowdsignal-forms-poll .crowdsignal-forms-poll__content .crowdsignal-forms-poll__note{font-family:var(--crowdsignal-forms-body-font-family)}.entry-content .alignfull.crowdsignal-poll-wrapper .crowdsignal-forms-poll .crowdsignal-forms-poll__content{margin:0 auto;max-width:var(--crowdsignal-forms-content-wide-width)}@media screen and (min-width: 660px){.alignwide.crowdsignal-poll-wrapper .crowdsignal-forms-poll .crowdsignal-forms-poll__content,.alignfull.crowdsignal-poll-wrapper .crowdsignal-forms-poll .crowdsignal-forms-poll__content{padding:80px}}.crowdsignal-forms-poll.is-closed .crowdsignal-forms-poll__form{opacity:0.5}.crowdsignal-forms-poll.is-hidden{opacity:0.5}.crowdsignal-forms-poll.has-text-color{color:var(--crowdsignal-forms-text-color)}.crowdsignal-forms-poll.has-bg-color{background-color:var(--crowdsignal-forms-bg-color)}.crowdsignal-forms-poll.has-border-radius{border-radius:var(--crowdsignal-forms-border-radius);overflow:hidden}.crowdsignal-forms-poll.has-box-shadow{box-shadow:0 3px 6px rgba(0,0,0,0.16),0 3px 6px rgba(0,0,0,0.23)}.crowdsignal-forms-poll .is-transparent{opacity:0;pointer-events:none}.crowdsignal-forms-poll__block-button .crowdsignal-forms-poll__submit-button{-webkit-appearance:initial}.crowdsignal-forms-poll__block-button .crowdsignal-forms-poll__submit-button:disabled{opacity:0.7}.crowdsignal-forms-poll.has-submit-button-text-color .crowdsignal-forms-poll__block-button .crowdsignal-forms-poll__submit-button.wp-block-button__link{color:var(--crowdsignal-forms-submit-button-text-color)}.crowdsignal-forms-poll.has-submit-button-bg-color .crowdsignal-forms-poll__block-button .crowdsignal-forms-poll__submit-button.wp-block-button__link{background-color:var(--crowdsignal-forms-submit-button-bg-color)}.crowdsignal-forms-poll.has-submit-button-bg-color .crowdsignal-forms-poll__block-button .crowdsignal-forms-poll__submit-button.wp-block-button__link:hover{opacity:0.9}.crowdsignal-forms-poll__options.is-button{display:flex;flex-direction:column;flex-wrap:wrap}.crowdsignal-forms-poll__options.is-button.is-inline-button-alignment{flex-direction:row}.crowdsignal-forms-poll__answer{cursor:pointer;display:flex;font-size:inherit;font-weight:600;margin:0;padding:0 2px;position:relative}.crowdsignal-forms-poll__answer.is-button{margin-inline-end:20px;margin-block-end:20px;max-width:100%}.crowdsignal-forms-poll__answer.is-button .wp-block-button.crowdsignal-forms-poll__block-button,.crowdsignal-forms-poll__answer.is-button .crowdsignal-forms-poll__submit-button{max-width:100%}.crowdsignal-forms-poll__answer.is-button .crowdsignal-forms-poll__submit-button{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.crowdsignal-forms-poll__answer:not(.is-button){margin-block-end:16px}.crowdsignal-forms-poll__answer:hover,.crowdsignal-forms-poll__answer.is-focused{color:var(--crowdsignal-forms-submit-button-bg-color)}.has-voted .crowdsignal-forms-poll__answer{opacity:0.5}input[type="checkbox"].crowdsignal-forms-poll__input,input[type="radio"].crowdsignal-forms-poll__input{height:0;opacity:0;position:absolute;width:0}.crowdsignal-forms-poll__check{display:inline-block;height:1em;margin:0 0 0 10px;position:relative;width:1em}.crowdsignal-forms-poll__check::before{background-color:transparent;border:1.5px solid var(--crowdsignal-forms-text-color);border-radius:50%;box-sizing:border-box;content:"";display:block;height:100%;transition:background-color 0.3s, border-color 0.3s;width:100%}.crowdsignal-forms-poll__answer.is-multiple-choice .crowdsignal-forms-poll__check::before{border-radius:3px}.crowdsignal-forms-poll__answer.is-multiple-choice.is-selected .crowdsignal-forms-poll__check::before{border-color:var(--crowdsignal-forms-text-color);background-color:var(--crowdsignal-forms-text-color)}.crowdsignal-forms-poll__answer.is-selected:not(.is-multiple-choice) .crowdsignal-forms-poll__check::after{animation-duration:0.3s;animation-name:crowdsignal-forms-animation__pop;animation-iteration-count:1;background-clip:padding-box;background-color:var(--crowdsignal-forms-text-color);border:4.5px solid transparent;border-radius:50%;box-sizing:border-box;content:"";display:block;height:100%;position:absolute;right:0;top:0;width:100%}.crowdsignal-forms-poll__answer.is-selected.is-multiple-choice .crowdsignal-forms-poll__check::after{border-color:var(--crowdsignal-forms-submit-button-text-color);border-style:solid;border-width:0 2px 2px 0;box-sizing:border-box;content:"";display:block;height:25%;margin:-0.1em -0.2em 0 0;position:absolute;right:50%;top:50%;transform:rotateZ(45deg);width:50%}div.crowdsignal-forms-poll__answer-label-wrapper{flex:1;word-break:break-word}div.crowdsignal-forms-poll__answer-label-wrapper span.crowdsignal-forms-poll__answer-label{line-height:1;vertical-align:top}div.crowdsignal-forms-poll__answer-label-wrapper span.crowdsignal-forms-poll__answer-label span::after{vertical-align:top}.crowdsignal-forms-poll__button{border:0;padding:0}.crowdsignal-forms-poll__actions .wp-block-button,.crowdsignal-forms-poll__options .wp-block-button{margin:0}.crowdsignal-forms-poll__actions{display:flex;justify-content:flex-end}.editor-styles-wrapper .crowdsignal-forms-poll .crowdsignal-forms-poll__actions .wp-block-button.crowdsignal-forms-poll__block-button,.editor-styles-wrapper .crowdsignal-forms-poll .crowdsignal-forms-poll__options .wp-block-button.crowdsignal-forms-poll__block-button{margin:0}.crowdsignal-forms-poll__closed-banner{background-color:var(--crowdsignal-forms-border-color);box-sizing:border-box;display:flex;color:var(--crowdsignal-forms-submit-button-text-color);font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;justify-content:center;padding:calc(var(--crowdsignal-forms-border-width) + 0.2em) 0 0.2em;width:100%}.is-hidden .crowdsignal-forms-poll__closed-banner{font-style:italic}.crowdsignal-forms-poll__error{color:red}.crowdsignal-forms-poll__results-list{margin:0 0 1em;position:relative}.crowdsignal-forms-poll__answer-results{display:flex;flex-direction:column;margin:0 0 16px;width:100%}.crowdsignal-forms-poll__answer-results:last-child{margin:0}.crowdsignal-forms-poll__answer-results-labels{align-items:flex-end;display:flex;margin:0 0 8px;width:100%;word-break:break-word}.crowdsignal-forms-poll__answer-results-answer{flex:1;font-size:1em;font-weight:600}.crowdsignal-forms-poll__answer-results-votes{font-size:0.75em;line-height:2}.crowdsignal-forms-poll__answer-results-percent{font-weight:600;line-height:1.6}.crowdsignal-forms-poll__answer-results-votes,.crowdsignal-forms-poll__answer-results-percent{font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;margin-right:20px;transition:opacity 0.3s}.crowdsignal-forms-poll__answer-results.is-error .crowdsignal-forms-poll__answer-results-votes,.crowdsignal-forms-poll__answer-results.is-error .crowdsignal-forms-poll__answer-results-percent{display:none}.crowdsignal-forms-poll__answer-results.is-loading .crowdsignal-forms-poll__answer-results-votes,.crowdsignal-forms-poll__answer-results.is-loading .crowdsignal-forms-poll__answer-results-percent{animation-duration:1.5s;animation-iteration-count:infinite;animation-name:crowdsignal-forms-animation__pulse;background-color:var(--crowdsignal-forms-text-color);font-size:0.7em;height:1em;width:50px}.crowdsignal-forms-poll__answer-results.is-loading .crowdsignal-forms-poll__answer-results-votes:last-child,.crowdsignal-forms-poll__answer-results.is-loading .crowdsignal-forms-poll__answer-results-percent:last-child{width:40px}.crowdsignal-forms-poll__answer-results-progress-track{border:1px solid;border-color:rgba(var(--crowdsignal-forms-text-color-properties), 0.3);box-sizing:border-box;height:1em;width:100%}.crowdsignal-forms-poll__answer-results.is-loading .crowdsignal-forms-poll__answer-results-progress-track{animation-duration:1.5s;animation-iteration-count:infinite;animation-name:crowdsignal-forms-animation__pulse}.crowdsignal-forms-poll__answer-results-progress-bar{animation-fill-mode:forwards;background-color:var(--crowdsignal-forms-submit-button-bg-color);height:100%;transition:background-color 0.3s, width 0.3s}.crowdsignal-forms-poll__answer-results.is-error .crowdsignal-forms-poll__answer-results-progress-bar{width:0}.crowdsignal-forms-poll__answer-results.is-loading .crowdsignal-forms-poll__answer-results-progress-bar{background-color:var(--crowdsignal-forms-text-color);width:25%}.crowdsignal-forms-poll__answer-results.is-loading:nth-child(5n+1) .crowdsignal-forms-poll__answer-results-progress-bar{width:40%}.crowdsignal-forms-poll__answer-results.is-loading:nth-child(5n+2) .crowdsignal-forms-poll__answer-results-progress-bar{width:75%}.crowdsignal-forms-poll__answer-results.is-loading:nth-child(5n+3) .crowdsignal-forms-poll__answer-results-progress-bar{width:50%}.crowdsignal-forms-poll__answer-results.is-loading:nth-child(5n+4) .crowdsignal-forms-poll__answer-results-progress-bar{width:60%}.crowdsignal-forms-poll__results-footer{display:flex;flex-direction:column;justify-content:space-between;width:100%;font-size:0.9em}.crowdsignal-forms-poll__results-total{font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;position:relative;text-align:left;width:100%;margin-bottom:1em}.crowdsignal-forms-poll__results.is-loading .crowdsignal-forms-poll__results-total{color:transparent}.crowdsignal-forms-poll__results.is-loading .crowdsignal-forms-poll__results-total::before{animation-name:crowdsignal-forms-animation__pulse;animation-duration:1.5s;animation-iteration-count:infinite;background-color:var(--crowdsignal-forms-text-color);content:"";display:block;position:absolute;left:0;height:1em;width:150px}.crowdsignal-forms-poll__error-banner{font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;font-size:13px;margin-top:24px;padding:18px 24px;color:#d82e20;border-right:4px solid #d82e20;background:#f8dad8}.crowdsignal-forms-poll__submit-message-container{position:absolute;background-color:var(--crowdsignal-forms-bg-color);right:0;top:0;width:100%;height:100%;overflow:hidden}.has-default-thankyou .crowdsignal-forms-poll__submit-message-container{background-color:#fff}.crowdsignal-forms-poll__submit-message{position:relative}.crowdsignal-forms-poll__submit-message button.crowdsignal-forms-poll__dismiss-submit-message{position:absolute;left:0;top:0;background-color:transparent;color:#000;text-decoration:none;border:none}.crowdsignal-forms-poll__submit-message button.crowdsignal-forms-poll__dismiss-submit-message:hover{background:inherit}.crowdsignal-forms-poll__submit-message-footer{position:absolute;bottom:0;right:0;padding:16px 24px;width:100%;background-color:inherit}.crowdsignal-forms-poll__thank-you-cs-sticker{left:25px;top:66px}.crowdsignal-forms-poll__thank-you-sticker{left:132px;top:12px}.crowdsignal-forms-poll__thank-you-cs-sticker,.crowdsignal-forms-poll__thank-you-sticker{filter:drop-shadow(0 1px 2px rgba(0,0,0,0.2));width:100px;height:100px;position:absolute}.crowdsignal-forms-poll__custom-message-check{color:var(--crowdsignal-forms-text-color);padding-right:24px;padding-top:24px}.crowdsignal-forms-poll__custom-message{font-family:var(--crowdsignal-forms-question-font-family);font-weight:600;padding:16px 24px}.wp_block-crowdsignal-forms-poll__vote-branding{margin-top:16px}.crowdsignal-forms__style-probe{display:none}.crowdsignal-forms-vote .block-editor-block-list__layout{display:flex;flex-direction:row}.crowdsignal-forms__border-popover .crowdsignal-forms__row{padding:10px}.crowdsignal-forms-vote.no-results .crowdsignal-forms-vote-item__count{display:none}.crowdsignal-forms-vote__size-dropdown .components-button.components-dropdown-menu__menu-item.is-active::after{content:"\2713";margin-inline-start:auto;margin-inline-end:0}.crowdsignal-vote-wrapper:not(:first-child),[data-type="crowdsignal-forms/vote"]:not(:first-child){margin-top:3em}.crowdsignal-vote-wrapper:not(:last-child),[data-type="crowdsignal-forms/vote"]:not(:last-child){margin-bottom:3em}.crowdsignal-forms-vote{align-items:center;display:inline-flex;flex-direction:column}.crowdsignal-forms-vote.crowdsignal-forms-vote__example{align-items:center}[data-type="crowdsignal-forms/vote-item"]{margin-top:28px !important;margin-bottom:0 !important}.crowdsignal-forms-vote__items{display:flex;flex-direction:row}.crowdsignal-forms-vote-item{border:var(--crowdsignal-forms-vote-border-width) solid #d2d2d2;border-radius:var(--crowdsignal-forms-vote-border-radius);cursor:pointer;display:flex;flex-direction:row;align-items:center;position:relative;user-select:none;-webkit-user-select:none}.crowdsignal-forms-vote-item:not(:last-child){margin-inline-end:8px !important}.crowdsignal-forms-vote-item.has-bg-color{background-color:var(--crowdsignal-forms-vote-bg-color)}.crowdsignal-forms-vote-item.has-border-color{border-color:var(--crowdsignal-forms-vote-border-color)}.crowdsignal-forms-vote-item.has-text-color{color:var(--crowdsignal-forms-vote-text-color)}.is-closed .crowdsignal-forms-vote-item,.crowdsignal-forms-vote-item.is-disabled{cursor:inherit}.is-closed .crowdsignal-forms-vote-item,.crowdsignal-forms-vote-item.is-disabled:not(.is-voted-on){opacity:0.5}.size-small .crowdsignal-forms-vote-item{padding:18px 10px;height:0.7em}.size-small .crowdsignal-forms-vote-item.is-type-down{padding-right:9px}.size-medium .crowdsignal-forms-vote-item{height:1em;padding:20px 10px}.size-medium .crowdsignal-forms-vote-item.is-type-down{padding-right:9px}.size-large .crowdsignal-forms-vote-item{height:1.2em;padding:22px 16px}.size-large .crowdsignal-forms-vote-item:not(:last-child){margin-inline-end:16px !important}.size-large .crowdsignal-forms-vote-item.is-type-down{padding-right:15px}.crowdsignal-forms-vote-item.is-voted-on,.crowdsignal-forms-vote-item:hover:not(.is-disabled),.crowdsignal-forms-vote-item:focus:not(.is-disabled):not(.is-in-editor){border-color:var(--crowdsignal-forms-vote-voted-color);color:var(--crowdsignal-forms-vote-voted-color)}.crowdsignal-forms-vote-item.is-voted-on.has-bg-color,.crowdsignal-forms-vote-item.is-voted-on.has-text-color,.crowdsignal-forms-vote-item:hover:not(.is-disabled).has-bg-color,.crowdsignal-forms-vote-item:hover:not(.is-disabled).has-text-color,.crowdsignal-forms-vote-item:focus:not(.is-disabled):not(.is-in-editor).has-bg-color,.crowdsignal-forms-vote-item:focus:not(.is-disabled):not(.is-in-editor).has-text-color{background-color:var(--crowdsignal-forms-vote-text-color);border-color:var(--crowdsignal-forms-vote-bg-color);color:var(--crowdsignal-forms-vote-bg-color)}.size-small .crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__icon{width:0.7em;height:0.7em;max-height:0.7em}.size-medium .crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__icon{width:1em;height:1em;max-height:1em}.size-large .crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__icon{width:1.2em;height:1.2em;max-height:1.2em}.crowdsignal-forms-vote-item.is-voted-on .crowdsignal-forms-vote-item__icon{animation-duration:0.4s;animation-name:crowdsignal-forms-animation__grow;animation-iteration-count:1;animation-timing-function:ease-out}.crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__count{font-size:14pt;font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;margin-inline-start:10px;font-variant-numeric:tabular-nums;transform:rotateX(0deg);transform-origin:50% 50% 10px;transition:transform 0.3s}.size-small .crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__count{font-size:0.6em}.size-medium .crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__count{font-size:0.8em}.size-large .crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__count{font-size:1em}.crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__count-enter,.crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__count-enter-active{margin:0;position:absolute;left:0}.crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__count-enter{transform:rotateX(-90deg)}.crowdsignal-forms-vote-item.is-voted-on .crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__count-enter{transform:rotateX(90deg)}.crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__count-exit,.crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__count-exit-active{margin:0;position:absolute;left:10px;top:4px;transform:rotateX(90deg)}.crowdsignal-forms-vote-item.is-voted-on .crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__count-exit,.crowdsignal-forms-vote-item.is-voted-on .crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__count-exit-active{transform:rotateX(-90deg)}.crowdsignal-forms-vote__branding{display:flex}.crowdsignal-forms-vote__branding .crowdsignal-forms-vote__branding-link{font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;font-size:8px;padding:8px 4px 0;text-decoration:none !important;text-transform:uppercase;border:0 !important}.crowdsignal-forms-vote__branding .crowdsignal-forms-vote__branding-link.with-external-icon::after{content:"\2197";display:inline;font-size:6px;vertical-align:super}.crowdsignal-forms-vote__branding .crowdsignal-forms-vote__branding-link:not(:hover){color:var(--crowdsignal-forms-text-color)}.crowdsignal-applause-wrapper{margin-bottom:3em}.crowdsignal-forms-applause{display:flex;flex-direction:row;align-items:center;outline:0;width:max-content;cursor:pointer;border:var(--crowdsignal-forms-applause-border-width) solid #d2d2d2;border-radius:var(--crowdsignal-forms-applause-border-radius);user-select:none;--webkit-user-select: none}.crowdsignal-forms-applause .crowdsignal-forms-applause__count{margin:unset !important}.crowdsignal-forms-applause.size-small{padding:20px 12px 18px 16px;height:0.7em}.crowdsignal-forms-applause.size-small .crowdsignal-forms-applause__count{font-size:14px;padding-bottom:2px}.crowdsignal-forms-applause.size-medium{height:1em;padding:24px 8px 20px 16px}.crowdsignal-forms-applause.size-medium .crowdsignal-forms-applause__count{font-size:16px;padding-bottom:4px}.crowdsignal-forms-applause.size-large{height:1.2em;padding:28px 8px 22px 18px}.crowdsignal-forms-applause.size-large .crowdsignal-forms-applause__count{font-size:19px;padding-bottom:6px}.crowdsignal-forms-applause.is-closed{opacity:0.5}.crowdsignal-forms-applause.has-text-color{color:var(--crowdsignal-forms-applause-text-color)}.crowdsignal-forms-applause.has-border-color{border:var(--crowdsignal-forms-applause-border-width) solid var(--crowdsignal-forms-applause-border-color)}.crowdsignal-forms-applause.has-bg-color{background-color:var(--crowdsignal-forms-applause-bg-color)}.crowdsignal-forms-applause:not(.is-closed):hover{color:var(--crowdsignal-forms-applause-hover-color);border-color:var(--crowdsignal-forms-applause-hover-color)}.crowdsignal-forms-applause:not(.is-closed):hover.has-bg-color{color:var(--crowdsignal-forms-applause-bg-color);background-color:var(--crowdsignal-forms-applause-text-color);border-color:var(--crowdsignal-forms-applause-bg-color)}.crowdsignal-forms-applause__animation{fill:var(--crowdsignal-forms-applause-text-color);margin-inline-end:5px}.crowdsignal-forms-applause.size-small .crowdsignal-forms-applause__animation{width:33px;height:33px;max-height:33px}.crowdsignal-forms-applause.size-medium .crowdsignal-forms-applause__animation{width:50px;height:50px;max-height:50px}.crowdsignal-forms-applause.size-large .crowdsignal-forms-applause__animation{width:60px;height:60px;max-height:60px}.crowdsignal-forms-applause__animation .crowdsignal-forms-applause__animation-inner-fill{fill:var(--crowdsignal-forms-applause-bg-color)}.crowdsignal-forms-applause:not(.is-closed):hover .crowdsignal-forms-applause__animation{fill:var(--crowdsignal-forms-applause-hover-color)}.crowdsignal-forms-applause.has-bg-color:not(.is-closed):hover .crowdsignal-forms-applause__animation{fill:var(--crowdsignal-forms-applause-bg-color)}.crowdsignal-forms-applause.has-bg-color:not(.is-closed):hover .crowdsignal-forms-applause__animation .crowdsignal-forms-applause__animation-inner-fill{fill:var(--crowdsignal-forms-applause-text-color)}.crowdsignal-forms-applause__animation-right{transition:transform 0.3s}.crowdsignal-forms-applause:not(.is-closed):hover .crowdsignal-forms-applause__animation-right{transform:translateX(-3%) translateY(-3%)}.crowdsignal-forms-applause__animation-left{transition:transform 0.3s}.crowdsignal-forms-applause:not(.is-closed):hover .crowdsignal-forms-applause__animation-left{transform:translateX(3%) translateY(0)}.crowdsignal-forms-applause__animation-wave-small{opacity:1}.crowdsignal-forms-applause:not(.is-closed):hover .crowdsignal-forms-applause__animation-wave-small{animation:crowdsignal-forms-animation__fade-out 0.3s forwards;transform:translateY(-5%);transition:transform 0.3s}.crowdsignal-forms-applause__animation-wave-large{opacity:0}.crowdsignal-forms-applause .crowdsignal-forms-applause__animation.is-active .crowdsignal-forms-applause__animation-right{transform:translateX(3%) translateY(0);transition:transform 0.1s}.crowdsignal-forms-applause .crowdsignal-forms-applause__animation.is-active .crowdsignal-forms-applause__animation-left{transform:translateX(-3%) translateY(0);transition:transform 0.1s}.crowdsignal-forms-applause .crowdsignal-forms-applause__animation.is-active .crowdsignal-forms-applause__animation-wave-small{animation:crowdsignal-forms-animation__fade-out 0.3s forwards;transform:translateY(-5%);transition:transform 0.3s}.crowdsignal-forms-applause .crowdsignal-forms-applause__animation.is-active .crowdsignal-forms-applause__animation-wave-large{animation:crowdsignal-forms-animation__fade-in 0.03s forwards;animation-delay:0.07s}.crowdsignal-forms-nps.is-inactive{opacity:0.6}.crowdsignal-forms-nps__toolbar-toggle{font-weight:600;padding-right:16px !important;padding-left:16px !important}.crowdsignal-forms-nps__toolbar-popover{padding:15px;min-width:300px}.crowdsignal-forms-nps__toolbar-popover .components-base-control__field{display:flex;flex-direction:row;align-items:center;margin-bottom:0}.crowdsignal-forms-nps__toolbar-popover .components-base-control__label{display:block;flex-grow:1;line-height:30px;margin-bottom:0}.crowdsignal-forms-nps__toolbar-popover .components-text-control__input{width:5em}.crowdsignal-forms-nps__toolbar-popover-button svg{margin-left:0 !important}.crowdsignal-forms-nps__toolbar-popover-button.components-button.has-icon .dashicon{margin-left:2px}.crowdsignal-forms-nps__rating-button:hover{background-color:var(--crowdsignal-forms-button-text-color);border-color:var(--crowdsignal-forms-button-color);color:var(--crowdsignal-forms-button-color)}.editor-styles-wrapper .components-button.is-secondary.crowdsignal-forms-nps__preview-button{text-decoration:none}.editor-styles-wrapper .components-button.is-secondary.crowdsignal-forms-nps__preview-button.is-disabled{display:none}.editor-styles-wrapper .crowdsignal-forms-feedback__header{color:var(--crowdsignal-forms-text-color)}.crowdsignal-forms-nps{border:0;border-top:10px solid var(--crowdsignal-forms-button-color);background-color:var(--crowdsignal-forms-background-color);color:var(--crowdsignal-forms-text-color);height:auto;padding:24px 16px;position:relative}@media screen and (min-width: 670px){.crowdsignal-forms-nps{padding:32px 32px 24px 32px}}.crowdsignal-forms-nps .crowdsignal-forms__footer-branding{margin-top:40px;font-size:16px}.crowdsignal-forms-nps__close-button{align-items:center;background-color:var(--crowdsignal-forms-button-color);border:0;border-radius:20px;color:var(--crowdsignal-forms-button-text-color);display:flex;height:40px;justify-content:center;outline:0;padding:0;position:absolute;left:-20px;top:-25px;width:40px}.crowdsignal-forms-nps__close-button:hover{background-color:var(--crowdsignal-forms-button-text-color);color:var(--crowdsignal-forms-button-color)}.crowdsignal-forms-nps__question{margin-top:0 !important;margin-bottom:32px !important}.crowdsignal-forms-nps__rating{display:flex;flex-direction:column}.crowdsignal-forms-nps__rating-labels{display:flex;flex-direction:row;font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;font-size:14px;justify-content:space-between;margin-top:8px}.crowdsignal-forms-nps__rating-scale{display:flex;margin:10px auto 0;width:100%}.crowdsignal-forms-nps__rating-button{background-color:var(--crowdsignal-forms-button-color);border:1px solid var(--crowdsignal-forms-button-color);border-radius:2px;color:var(--crowdsignal-forms-button-text-color);cursor:pointer;display:inline-flex;flex:1;font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;font-size:15px;font-weight:600;height:50px;justify-content:center;line-height:50px;margin:0 0.4em 0 0;padding:0;text-align:center;text-decoration:none;transition:background-color 0.2s, color 0.2s}.crowdsignal-forms-nps__rating-button:first-child{margin:0}.crowdsignal-forms-nps__rating-button:hover:enabled{background-color:var(--crowdsignal-forms-button-text-color);color:var(--crowdsignal-forms-button-color);text-decoration:none}.crowdsignal-forms-nps__rating-button:disabled:not(.is-active){background-color:transparent;color:var(--crowdsignal-forms-button-color)}@media screen and (min-width: 670px){.crowdsignal-forms-nps__rating-button{margin:0 0.7em 0 0}}.crowdsignal-forms-nps__feedback{display:flex;flex-direction:column}.crowdsignal-forms-nps__feedback-text{margin-top:16px;margin-bottom:25px;width:100%}.crowdsignal-forms-nps__feedback-text textarea{font-size:var(--crowdsignal-forms-text-size)}.crowdsignal-forms-nps__feedback-button-wrapper{align-self:flex-end}.crowdsignal-forms-nps__feedback-button{align-self:flex-end;background-color:var(--crowdsignal-forms-button-color) !important;border:1px solid var(--crowdsignal-forms-button-color);color:var(--crowdsignal-forms-button-text-color) !important;text-decoration:none}.crowdsignal-forms-nps__feedback-button:hover{background-color:var(--crowdsignal-forms-button-text-color) !important;color:var(--crowdsignal-forms-button-color) !important;text-decoration:none}.editor-styles-wrapper .wp-block[data-type="crowdsignal-forms/feedback"]{width:auto;z-index:10}.editor-styles-wrapper .wp-block[data-type="crowdsignal-forms/feedback"]::after{display:none}.editor-styles-wrapper .crowdsignal-forms-feedback__popover-overlay{background-color:rgba(0,0,0,0.3);content:"";display:block;position:fixed;bottom:25px;right:0;left:0;top:0;z-index:-1}.editor-styles-wrapper .crowdsignal-forms-feedback{display:flex;flex-direction:column;justify-content:center;margin:0 !important;position:relative}.editor-styles-wrapper .crowdsignal-forms-feedback.is-active .crowdsignal-forms-feedback__trigger{cursor:text !important}.editor-styles-wrapper .crowdsignal-forms-feedback.align-left{align-items:flex-start}.editor-styles-wrapper .crowdsignal-forms-feedback.align-right{align-items:flex-end}.editor-styles-wrapper .crowdsignal-forms-feedback.vertical-align-top{justify-content:flex-start}.editor-styles-wrapper .crowdsignal-forms-feedback.vertical-align-top .crowdsignal-forms-feedback__trigger-wrapper{margin-bottom:15px !important;margin-top:0 !important}.editor-styles-wrapper .crowdsignal-forms-feedback.vertical-align-bottom{justify-content:flex-end}.editor-styles-wrapper .crowdsignal-forms-feedback.vertical-align-bottom .crowdsignal-forms-feedback__trigger-wrapper{order:99;margin-bottom:0 !important;margin-top:15px !important}.editor-styles-wrapper .crowdsignal-forms-feedback .crowdsignal-forms__editor-notice{width:380px}.editor-styles-wrapper .crowdsignal-forms-feedback__input input,.editor-styles-wrapper .crowdsignal-forms-feedback__input textarea{color:#757575}.editor-styles-wrapper .crowdsignal-forms-feedback__button-wrapper{margin-top:24px !important;margin-bottom:0 !important}.crowdsignal-forms-feedback__toolbar-toggle{font-weight:600;padding-right:16px !important;padding-left:16px !important}.crowdsignal-forms-feedback__toolbar-toggle.is-pressed::before{right:8px !important;left:8px !important}.crowdsignal-forms-feedback__toolbar-popover-wrapper .components-popover__content{min-width:auto !important}.crowdsignal-forms-feedback__toolbar-popover{display:grid;grid-template-columns:min-content min-content;grid-template-rows:auto auto}.crowdsignal-forms-feedback__toolbar-position-toggle.top-right svg{transform:rotate(-90deg)}.crowdsignal-forms-feedback__toolbar-position-toggle.bottom-right svg{transform:rotate(-180deg)}.crowdsignal-forms-feedback__toolbar-position-toggle.bottom-left svg{transform:rotate(-270deg)}.crowdsignal-forms-feedback__position-button{align-items:center;box-shadow:none !important;display:flex;height:30px;justify-content:center;outline:0;transition:all 120ms linear 0s;width:30px}.crowdsignal-forms-feedback__position-button::before{background-color:#b5bcc2;display:block;content:"";height:6px;width:6px}.crowdsignal-forms-feedback__position-button:hover::before{background-color:#007cba}.crowdsignal-forms-feedback__position-button.is-active::before{background-color:#000;box-shadow:#000 0 0 0 2px}.crowdsignal-forms-feedback__trigger-settings{align-items:center;display:flex;margin-bottom:24px}.crowdsignal-forms-feedback__trigger-settings-trigger{background-size:cover;border:1px solid #c4c4c4;border-radius:50%;height:70px;margin-left:12px;overflow:hidden;padding:0;width:70px}.crowdsignal-forms-feedback__closed-notice{background-color:#1e1e1e;color:#fff;text-align:center;width:100%;font-size:14px;line-height:1.5;padding:6px}.crowdsignal-forms-feedback{display:flex;position:fixed;z-index:100}.crowdsignal-forms-feedback>div:last-child:not(.crowdsignal-forms-feedback__trigger){border-bottom-right-radius:10px;border-bottom-left-radius:10px}.crowdsignal-forms-feedback .crowdsignal-forms__footer-branding{margin-top:24px;font-size:12px;line-height:1.25}.crowdsignal-forms-feedback__trigger-wrapper{margin:0 !important}.crowdsignal-forms-feedback__trigger{box-shadow:-1px 1px 7px rgba(0,0,0,0.3);cursor:pointer;background-color:var(--crowdsignal-forms-trigger-background-color) !important;color:var(--crowdsignal-forms-trigger-text-color) !important;display:flex !important;align-items:center;font-size:16px !important;line-height:1.5 !important;padding:10px 16px !important}.crowdsignal-forms-feedback__trigger>svg{fill:currentColor}.crowdsignal-forms-feedback__trigger.is-active{background:var(--crowdsignal-forms-trigger-background-color) !important;padding-right:12px !important}.crowdsignal-forms-feedback.no-shadow .crowdsignal-forms-feedback__trigger{box-shadow:none}.crowdsignal-forms-feedback__popover-wrapper.components-popover .components-popover__content{background-color:transparent;border:0;box-shadow:none;outline:0;overflow:visible}.crowdsignal-forms-feedback__popover{background-color:var(--crowdsignal-forms-background-color);border-top:10px solid var(--crowdsignal-forms-button-color);box-shadow:-1px 1px 7px rgba(0,0,0,0.3);color:var(--crowdsignal-forms-text-color);outline:0;padding:24px;width:380px;text-align:right;z-index:100;display:flex;flex-direction:column}.crowdsignal-forms-feedback__header{color:var(--crowdsignal-forms-text-color);margin-top:0 !important;margin-bottom:32px !important;flex-grow:1}.crowdsignal-forms-feedback__input{margin-top:16px;width:100%}.crowdsignal-forms-feedback__input input,.crowdsignal-forms-feedback__input textarea{box-sizing:border-box;font-size:var(--crowdsignal-forms-text-size) !important;padding:16px !important}.crowdsignal-forms-feedback__button-wrapper{display:flex;justify-content:flex-end;margin-top:24px;margin-bottom:0;width:100%}.crowdsignal-forms-feedback__button-wrapper:hover{color:var(--crowdsignal-forms-button-color)}.crowdsignal-forms-feedback__feedback-button{background-color:var(--crowdsignal-forms-button-color) !important;color:var(--crowdsignal-forms-button-text-color) !important}
1
+ /* This file was automatically generated on May 14 2021 17:07:17 */
2
 
3
+ .crowdsignal-forms__block-alignment-control-popover .components-popover__content{min-width:auto !important}.crowdsignal-forms__block-alignment-control-grid{display:flex;flex-direction:column}.crowdsignal-forms__block-alignment-control-row{display:flex}.crowdsignal-forms__block-alignment-control-button{align-items:center;border:0;background:transparent;cursor:pointer;display:flex;height:30px;justify-content:center;width:30px}.crowdsignal-forms__block-alignment-control-button::before{background-color:#b5bcc2;display:block;content:"";height:6px;width:6px}.crowdsignal-forms__block-alignment-control-button:hover::before{background-color:#007cba}.crowdsignal-forms__block-alignment-control-button.is-active::before{background-color:#000;box-shadow:#000 0 0 0 2px}.crowdsignal-forms__block-alignment-control-icon{display:flex;flex-direction:column;height:24px;justify-content:space-between;width:24px}.crowdsignal-forms__block-alignment-control-icon-row{display:flex;justify-content:space-between;width:100%}.crowdsignal-forms__block-alignment-control-icon-dot{display:flex;padding:2px}.crowdsignal-forms__block-alignment-control-icon-dot::before{background-color:#000;content:"";display:block;height:2px;width:2px}.crowdsignal-forms__block-alignment-control-icon-dot.is-active::before{box-shadow:#000 0 0 0 2px}.crowdsignal-forms__connect-to-crowdsignal{border:1px solid #000;font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;padding:24px;text-align:initial}.crowdsignal-forms__connect-to-crowdsignal-header{display:flex;flex-direction:row;align-items:center}.crowdsignal-forms__connect-to-crowdsignal-body{font-size:13px;margin-top:24px;margin-bottom:16px}.crowdsignal-forms__connect-to-crowdsignal-title{font-size:24pt;margin-inline-start:16px}.crowdsignal-forms__editor-notice{margin:0 0 15px !important}.crowdsignal-forms__editor-notice .components-notice__content{display:flex;flex-direction:row;align-items:center}.crowdsignal-forms__editor-notice-icon{line-height:0;padding:8px 8px 8px 16px}.is-warn .crowdsignal-forms__editor-notice-icon{color:var(--wp-admin-theme-color)}.crowdsignal-forms__editor-notice-text{flex-grow:1;color:var(--crowdsignal-forms-text-color)}.crowdsignal-forms__editor-notice-text a{text-decoration:underline}.crowdsignal-forms__sidebar-promote{margin-right:16px;flex-grow:1}.crowdsignal-forms__footer-branding{align-items:center;display:flex;margin-top:16px;width:100%}.crowdsignal-forms__footer-branding img.crowdsignal-forms__footer-branding-logo{height:50px;margin-right:auto;margin-left:0;width:50px}.crowdsignal-forms__footer-branding .crowdsignal-forms__branding-promote{display:inline-flex;font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;font-size:10px;text-decoration:none !important;box-shadow:none;border:0;background-color:#a4a4a4a4;color:#fff;cursor:pointer;padding-left:8px;padding-right:8px;margin-right:16px;border-radius:2px;padding-top:2px;padding-bottom:2px;vertical-align:middle}.crowdsignal-forms__footer-cs-link{display:inline-flex;font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;font-size:inherit;line-height:inherit;text-decoration:none;text-transform:uppercase;vertical-align:middle;border-bottom:0 solid var(--crowdsignal-forms-text-color) !important}.crowdsignal-forms__footer-cs-link:not(:hover){color:var(--crowdsignal-forms-text-color);opacity:0.4}.has-default-thankyou .crowdsignal-forms__footer-cs-link{color:#333}#editor .editor-styles-wrapper .crowdsignal-forms-poll{margin-right:0;margin-left:0}#editor .editor-styles-wrapper .block-editor-block-list__block[data-type="crowdsignal-forms/poll"][data-align="full"] .crowdsignal-forms-poll{border-right-width:0;border-left-width:0}@media screen and (min-width: 660px){#editor .editor-styles-wrapper .block-editor-block-list__block[data-type="crowdsignal-forms/poll"][data-align="wide"] .crowdsignal-forms-poll__content,#editor .editor-styles-wrapper .block-editor-block-list__block[data-type="crowdsignal-forms/poll"][data-align="full"] .crowdsignal-forms-poll__content{padding:80px}}#editor .editor-styles-wrapper .crowdsignal-forms-poll__answer{cursor:text}#editor .editor-styles-wrapper .crowdsignal-forms-poll__answer:hover,#editor .editor-styles-wrapper .crowdsignal-forms-poll__answer.is-focused{color:inherit}#editor .editor-styles-wrapper .wp-block-button .crowdsignal-forms-poll__submit-button.wp-block-button__link{cursor:text}#editor .editor-styles-wrapper .wp-block-button .crowdsignal-forms-poll__submit-button.wp-block-button__link:hover{opacity:inherit}.crowdsignal-forms-poll__resize-wrapper{margin-right:auto;margin-left:auto}.crowdsignal-forms__redirect-url input[type="text"]{width:100%}.crowdsignal-forms__redirect-url__suggestions{width:260px}.crowdsignal-forms__row{display:flex;flex-direction:row}.crowdsignal-forms__row .crowdsignal-forms__small-text-input input[type="text"]{width:40px}.crowdsignal-forms__row .crowdsignal-forms__small-text-input input[type="number"]{width:50px}.crowdsignal-forms__reset-width-button{margin-right:auto;margin-top:25px}.crowdsignal-forms-poll__edit-bar{font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;font-size:13px;margin-top:24px;padding:18px 24px;color:#d82e20;border-right:4px solid #d82e20;background:#f8dad8;display:flex;flex-direction:row;justify-content:space-between;align-items:center}.crowdsignal-forms-poll__edit-bar .crowdsignal-forms-poll__edit-bar-message{padding-inline-end:24px}.crowdsignal-forms-poll__edit-bar button.crowdsignal-forms-poll__edit-bar-button{border:2px solid #d82e20;border-radius:4px;color:#d82e20;background:transparent;padding:8px 16px;cursor:pointer}.crowdsignal-poll-wrapper:not(:first-child),[data-type="crowdsignal-forms/poll"]:not(:first-child){margin-top:3em}.crowdsignal-poll-wrapper:not(:last-child),[data-type="crowdsignal-forms/poll"]:not(:last-child){margin-bottom:3em}.crowdsignal-forms-poll{border-color:var(--crowdsignal-forms-border-color);border-style:solid;border-width:var(--crowdsignal-forms-border-width);margin-right:auto;margin-left:auto;margin-top:5px;position:relative;text-align:right}.entry-content .alignfull.crowdsignal-poll-wrapper .crowdsignal-forms-poll{border-right-width:0;border-left-width:0}.crowdsignal-forms-poll h3.crowdsignal-forms-poll__question{margin:0 0 44px}.crowdsignal-forms-poll h3.crowdsignal-forms-poll__question:first-child{margin-top:0}.crowdsignal-forms-poll .crowdsignal-forms-poll__note{font-style:italic;margin:0 0 32px}.crowdsignal-forms-poll .crowdsignal-forms-poll__content{padding:40px 24px 16px 24px}.crowdsignal-forms-poll .crowdsignal-forms-poll__content .crowdsignal-forms-poll__question{font-family:var(--crowdsignal-forms-question-font-family);line-height:1.4}.crowdsignal-forms-poll .crowdsignal-forms-poll__content .crowdsignal-forms-poll__answer-label,.crowdsignal-forms-poll .crowdsignal-forms-poll__content .crowdsignal-forms-poll__answer-results-answer,.crowdsignal-forms-poll .crowdsignal-forms-poll__content .crowdsignal-forms-poll__note{font-family:var(--crowdsignal-forms-body-font-family)}.entry-content .alignfull.crowdsignal-poll-wrapper .crowdsignal-forms-poll .crowdsignal-forms-poll__content{margin:0 auto;max-width:var(--crowdsignal-forms-content-wide-width)}@media screen and (min-width: 660px){.alignwide.crowdsignal-poll-wrapper .crowdsignal-forms-poll .crowdsignal-forms-poll__content,.alignfull.crowdsignal-poll-wrapper .crowdsignal-forms-poll .crowdsignal-forms-poll__content{padding:80px}}.crowdsignal-forms-poll.is-closed .crowdsignal-forms-poll__form{opacity:0.5}.crowdsignal-forms-poll.is-hidden{opacity:0.5}.crowdsignal-forms-poll.has-text-color{color:var(--crowdsignal-forms-text-color)}.crowdsignal-forms-poll.has-bg-color{background-color:var(--crowdsignal-forms-bg-color)}.crowdsignal-forms-poll.has-border-radius{border-radius:var(--crowdsignal-forms-border-radius);overflow:hidden}.crowdsignal-forms-poll.has-box-shadow{box-shadow:0 3px 6px rgba(0,0,0,0.16),0 3px 6px rgba(0,0,0,0.23)}.crowdsignal-forms-poll .is-transparent{opacity:0;pointer-events:none}.crowdsignal-forms-poll__block-button .crowdsignal-forms-poll__submit-button{-webkit-appearance:initial}.crowdsignal-forms-poll__block-button .crowdsignal-forms-poll__submit-button:disabled{opacity:0.7}.crowdsignal-forms-poll.has-submit-button-text-color .crowdsignal-forms-poll__block-button .crowdsignal-forms-poll__submit-button.wp-block-button__link{color:var(--crowdsignal-forms-submit-button-text-color)}.crowdsignal-forms-poll.has-submit-button-bg-color .crowdsignal-forms-poll__block-button .crowdsignal-forms-poll__submit-button.wp-block-button__link{background-color:var(--crowdsignal-forms-submit-button-bg-color)}.crowdsignal-forms-poll.has-submit-button-bg-color .crowdsignal-forms-poll__block-button .crowdsignal-forms-poll__submit-button.wp-block-button__link:hover{opacity:0.9}.crowdsignal-forms-poll__options.is-button{display:flex;flex-direction:column;flex-wrap:wrap}.crowdsignal-forms-poll__options.is-button.is-inline-button-alignment{flex-direction:row}.crowdsignal-forms-poll__answer{display:flex;font-size:inherit;font-weight:600;margin:0;padding:0 2px;position:relative}.crowdsignal-forms-poll__answer.is-button{margin-inline-end:20px;margin-block-end:20px;max-width:100%}.crowdsignal-forms-poll__answer.is-button .wp-block-button.crowdsignal-forms-poll__block-button,.crowdsignal-forms-poll__answer.is-button .crowdsignal-forms-poll__submit-button{max-width:100%}.crowdsignal-forms-poll__answer.is-button .crowdsignal-forms-poll__submit-button{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.crowdsignal-forms-poll__answer:not(.is-button){cursor:pointer;margin-block-end:12px;width:100%}.crowdsignal-forms-poll__answer>.crowdsignal-forms-poll__answer{margin-block-end:0}.crowdsignal-forms-poll__answer:hover,.crowdsignal-forms-poll__answer.is-focused{color:var(--crowdsignal-forms-submit-button-bg-color)}.has-voted .crowdsignal-forms-poll__answer{opacity:0.5}input[type="checkbox"].crowdsignal-forms-poll__input,input[type="radio"].crowdsignal-forms-poll__input{height:0;opacity:0;position:absolute;width:0}.crowdsignal-forms-poll__check{display:inline-block;height:1em;margin:0 0 0 10px;position:relative;width:1em}.crowdsignal-forms-poll__check::before{background-color:transparent;border:1.5px solid var(--crowdsignal-forms-text-color);border-radius:50%;box-sizing:border-box;content:"";display:block;height:100%;transition:background-color 0.3s, border-color 0.3s;width:100%}.crowdsignal-forms-poll__answer.is-multiple-choice .crowdsignal-forms-poll__check::before{border-radius:3px}.crowdsignal-forms-poll__answer.is-multiple-choice.is-selected .crowdsignal-forms-poll__check::before{border-color:var(--crowdsignal-forms-text-color);background-color:var(--crowdsignal-forms-text-color)}.crowdsignal-forms-poll__answer.is-selected:not(.is-multiple-choice) .crowdsignal-forms-poll__check::after{animation-duration:0.3s;animation-name:crowdsignal-forms-animation__pop;animation-iteration-count:1;background-clip:padding-box;background-color:var(--crowdsignal-forms-text-color);border:4.5px solid transparent;border-radius:50%;box-sizing:border-box;content:"";display:block;height:100%;position:absolute;right:0;top:0;width:100%}.crowdsignal-forms-poll__answer.is-selected.is-multiple-choice .crowdsignal-forms-poll__check::after{border-color:var(--crowdsignal-forms-submit-button-text-color);border-style:solid;border-width:0 2px 2px 0;box-sizing:border-box;content:"";display:block;height:25%;margin:-0.1em -0.2em 0 0;position:absolute;right:50%;top:50%;transform:rotateZ(45deg);width:50%}div.crowdsignal-forms-poll__answer-label-wrapper{flex:1;word-break:break-word}div.crowdsignal-forms-poll__answer-label-wrapper span.crowdsignal-forms-poll__answer-label{line-height:1;vertical-align:top}div.crowdsignal-forms-poll__answer-label-wrapper span.crowdsignal-forms-poll__answer-label span::after{vertical-align:top}.crowdsignal-forms-poll__button{border:0;padding:0}.crowdsignal-forms-poll__actions .wp-block-button,.crowdsignal-forms-poll__options .wp-block-button{margin:0}.crowdsignal-forms-poll__actions{display:flex;justify-content:flex-end;margin-top:32px;margin-bottom:16px}.editor-styles-wrapper .crowdsignal-forms-poll .crowdsignal-forms-poll__actions .wp-block-button.crowdsignal-forms-poll__block-button,.editor-styles-wrapper .crowdsignal-forms-poll .crowdsignal-forms-poll__options .wp-block-button.crowdsignal-forms-poll__block-button{margin:0;line-height:0}.crowdsignal-forms-poll__closed-banner{background-color:var(--crowdsignal-forms-border-color);box-sizing:border-box;display:flex;color:var(--crowdsignal-forms-submit-button-text-color);font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;justify-content:center;padding:calc(var(--crowdsignal-forms-border-width) + 0.2em) 0 0.2em;width:100%}.is-hidden .crowdsignal-forms-poll__closed-banner{font-style:italic}.crowdsignal-forms-poll__error{color:red}.crowdsignal-forms-poll__results-list{margin:0 0 1em;position:relative}.crowdsignal-forms-poll__answer-results{display:flex;flex-direction:column;margin:0 0 16px;width:100%}.crowdsignal-forms-poll__answer-results:last-child{margin:0}.crowdsignal-forms-poll__answer-results-labels{align-items:flex-end;display:flex;margin:0 0 8px;width:100%;word-break:break-word}.crowdsignal-forms-poll__answer-results-answer{flex:1;font-size:1em;font-weight:600}.crowdsignal-forms-poll__answer-results-votes{font-size:0.75em;line-height:2}.crowdsignal-forms-poll__answer-results-percent{font-weight:600;line-height:1.6}.crowdsignal-forms-poll__answer-results-votes,.crowdsignal-forms-poll__answer-results-percent{font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;margin-right:20px;transition:opacity 0.3s}.crowdsignal-forms-poll__answer-results.is-error .crowdsignal-forms-poll__answer-results-votes,.crowdsignal-forms-poll__answer-results.is-error .crowdsignal-forms-poll__answer-results-percent{display:none}.crowdsignal-forms-poll__answer-results.is-loading .crowdsignal-forms-poll__answer-results-votes,.crowdsignal-forms-poll__answer-results.is-loading .crowdsignal-forms-poll__answer-results-percent{animation-duration:1.5s;animation-iteration-count:infinite;animation-name:crowdsignal-forms-animation__pulse;background-color:var(--crowdsignal-forms-text-color);font-size:0.7em;height:1em;width:50px}.crowdsignal-forms-poll__answer-results.is-loading .crowdsignal-forms-poll__answer-results-votes:last-child,.crowdsignal-forms-poll__answer-results.is-loading .crowdsignal-forms-poll__answer-results-percent:last-child{width:40px}.crowdsignal-forms-poll__answer-results-progress-track{border:1px solid;border-color:rgba(var(--crowdsignal-forms-text-color-properties), 0.3);box-sizing:border-box;height:1em;width:100%}.crowdsignal-forms-poll__answer-results.is-loading .crowdsignal-forms-poll__answer-results-progress-track{animation-duration:1.5s;animation-iteration-count:infinite;animation-name:crowdsignal-forms-animation__pulse}.crowdsignal-forms-poll__answer-results-progress-bar{animation-fill-mode:forwards;background-color:var(--crowdsignal-forms-submit-button-bg-color);height:100%;transition:background-color 0.3s, width 0.3s}.crowdsignal-forms-poll__answer-results.is-error .crowdsignal-forms-poll__answer-results-progress-bar{width:0}.crowdsignal-forms-poll__answer-results.is-loading .crowdsignal-forms-poll__answer-results-progress-bar{background-color:var(--crowdsignal-forms-text-color);width:25%}.crowdsignal-forms-poll__answer-results.is-loading:nth-child(5n+1) .crowdsignal-forms-poll__answer-results-progress-bar{width:40%}.crowdsignal-forms-poll__answer-results.is-loading:nth-child(5n+2) .crowdsignal-forms-poll__answer-results-progress-bar{width:75%}.crowdsignal-forms-poll__answer-results.is-loading:nth-child(5n+3) .crowdsignal-forms-poll__answer-results-progress-bar{width:50%}.crowdsignal-forms-poll__answer-results.is-loading:nth-child(5n+4) .crowdsignal-forms-poll__answer-results-progress-bar{width:60%}.crowdsignal-forms-poll__results-footer{display:flex;flex-direction:column;justify-content:space-between;width:100%;font-size:0.9em}.crowdsignal-forms-poll__results-total{font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;position:relative;text-align:left;width:100%;margin-bottom:1em}.crowdsignal-forms-poll__results.is-loading .crowdsignal-forms-poll__results-total{color:transparent}.crowdsignal-forms-poll__results.is-loading .crowdsignal-forms-poll__results-total::before{animation-name:crowdsignal-forms-animation__pulse;animation-duration:1.5s;animation-iteration-count:infinite;background-color:var(--crowdsignal-forms-text-color);content:"";display:block;position:absolute;left:0;height:1em;width:150px}.crowdsignal-forms-poll__error-banner{font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;font-size:13px;margin-top:24px;padding:18px 24px;color:#d82e20;border-right:4px solid #d82e20;background:#f8dad8}.crowdsignal-forms-poll__submit-message-container{position:absolute;background-color:var(--crowdsignal-forms-bg-color);right:0;top:0;width:100%;height:100%;overflow:hidden}.has-default-thankyou .crowdsignal-forms-poll__submit-message-container{background-color:#fff}.crowdsignal-forms-poll__submit-message{position:relative}.crowdsignal-forms-poll__submit-message button.crowdsignal-forms-poll__dismiss-submit-message{position:absolute;left:0;top:0;background-color:transparent;color:#000;text-decoration:none;border:none}.crowdsignal-forms-poll__submit-message button.crowdsignal-forms-poll__dismiss-submit-message:hover{background:inherit}.crowdsignal-forms-poll__submit-message-footer{position:absolute;bottom:0;right:0;padding:16px 24px;width:100%;background-color:inherit}.crowdsignal-forms-poll__thank-you-cs-sticker{left:25px;top:66px}.crowdsignal-forms-poll__thank-you-sticker{left:132px;top:12px}.crowdsignal-forms-poll__thank-you-cs-sticker,.crowdsignal-forms-poll__thank-you-sticker{filter:drop-shadow(0 1px 2px rgba(0,0,0,0.2));width:100px;height:100px;position:absolute}.crowdsignal-forms-poll__custom-message-check{color:var(--crowdsignal-forms-text-color);padding-right:24px;padding-top:24px}.crowdsignal-forms-poll__custom-message{font-family:var(--crowdsignal-forms-question-font-family);font-weight:600;padding:16px 24px}.wp_block-crowdsignal-forms-poll__vote-branding{margin-top:16px}.crowdsignal-forms__style-probe{display:none}.crowdsignal-forms-vote .block-editor-block-list__layout{display:flex;flex-direction:row}.crowdsignal-forms__border-popover .crowdsignal-forms__row{padding:10px}.crowdsignal-forms-vote.no-results .crowdsignal-forms-vote-item__count{display:none}.crowdsignal-forms-vote__size-dropdown .components-button.components-dropdown-menu__menu-item.is-active::after{content:"\2713";margin-inline-start:auto;margin-inline-end:0}.crowdsignal-vote-wrapper:not(:first-child),[data-type="crowdsignal-forms/vote"]:not(:first-child){margin-top:3em}.crowdsignal-vote-wrapper:not(:last-child),[data-type="crowdsignal-forms/vote"]:not(:last-child){margin-bottom:3em}.crowdsignal-forms-vote{align-items:center;display:inline-flex;flex-direction:column}.crowdsignal-forms-vote.crowdsignal-forms-vote__example{align-items:center}[data-type="crowdsignal-forms/vote-item"]{margin-top:28px !important;margin-bottom:0 !important}.crowdsignal-forms-vote__items{display:flex;flex-direction:row}.crowdsignal-forms-vote-item{border:var(--crowdsignal-forms-vote-border-width) solid #d2d2d2;border-radius:var(--crowdsignal-forms-vote-border-radius);cursor:pointer;display:flex;flex-direction:row;align-items:center;position:relative;user-select:none;-webkit-user-select:none}.crowdsignal-forms-vote-item:not(:last-child){margin-inline-end:8px !important}.crowdsignal-forms-vote-item.has-bg-color{background-color:var(--crowdsignal-forms-vote-bg-color)}.crowdsignal-forms-vote-item.has-border-color{border-color:var(--crowdsignal-forms-vote-border-color)}.crowdsignal-forms-vote-item.has-text-color{color:var(--crowdsignal-forms-vote-text-color)}.is-closed .crowdsignal-forms-vote-item,.crowdsignal-forms-vote-item.is-disabled{cursor:inherit}.is-closed .crowdsignal-forms-vote-item,.crowdsignal-forms-vote-item.is-disabled:not(.is-voted-on){opacity:0.5}.size-small .crowdsignal-forms-vote-item{padding:18px 10px;height:0.7em}.size-small .crowdsignal-forms-vote-item.is-type-down{padding-right:9px}.size-medium .crowdsignal-forms-vote-item{height:1em;padding:20px 10px}.size-medium .crowdsignal-forms-vote-item.is-type-down{padding-right:9px}.size-large .crowdsignal-forms-vote-item{height:1.2em;padding:22px 16px}.size-large .crowdsignal-forms-vote-item:not(:last-child){margin-inline-end:16px !important}.size-large .crowdsignal-forms-vote-item.is-type-down{padding-right:15px}.crowdsignal-forms-vote-item.is-voted-on,.crowdsignal-forms-vote-item:hover:not(.is-disabled),.crowdsignal-forms-vote-item:focus:not(.is-disabled):not(.is-in-editor){border-color:var(--crowdsignal-forms-vote-voted-color);color:var(--crowdsignal-forms-vote-voted-color)}.crowdsignal-forms-vote-item.is-voted-on.has-bg-color,.crowdsignal-forms-vote-item.is-voted-on.has-text-color,.crowdsignal-forms-vote-item:hover:not(.is-disabled).has-bg-color,.crowdsignal-forms-vote-item:hover:not(.is-disabled).has-text-color,.crowdsignal-forms-vote-item:focus:not(.is-disabled):not(.is-in-editor).has-bg-color,.crowdsignal-forms-vote-item:focus:not(.is-disabled):not(.is-in-editor).has-text-color{background-color:var(--crowdsignal-forms-vote-text-color);border-color:var(--crowdsignal-forms-vote-bg-color);color:var(--crowdsignal-forms-vote-bg-color)}.size-small .crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__icon{width:0.7em;height:0.7em;max-height:0.7em}.size-medium .crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__icon{width:1em;height:1em;max-height:1em}.size-large .crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__icon{width:1.2em;height:1.2em;max-height:1.2em}.crowdsignal-forms-vote-item.is-voted-on .crowdsignal-forms-vote-item__icon{animation-duration:0.4s;animation-name:crowdsignal-forms-animation__grow;animation-iteration-count:1;animation-timing-function:ease-out}.crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__count{font-size:14pt;font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;margin-inline-start:10px;font-variant-numeric:tabular-nums;transform:rotateX(0deg);transform-origin:50% 50% 10px;transition:transform 0.3s}.size-small .crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__count{font-size:0.6em}.size-medium .crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__count{font-size:0.8em}.size-large .crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__count{font-size:1em}.crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__count-enter,.crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__count-enter-active{margin:0;position:absolute;left:0}.crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__count-enter{transform:rotateX(-90deg)}.crowdsignal-forms-vote-item.is-voted-on .crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__count-enter{transform:rotateX(90deg)}.crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__count-exit,.crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__count-exit-active{margin:0;position:absolute;left:10px;top:4px;transform:rotateX(90deg)}.crowdsignal-forms-vote-item.is-voted-on .crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__count-exit,.crowdsignal-forms-vote-item.is-voted-on .crowdsignal-forms-vote-item .crowdsignal-forms-vote-item__count-exit-active{transform:rotateX(-90deg)}.crowdsignal-forms-vote__branding{display:flex}.crowdsignal-forms-vote__branding .crowdsignal-forms-vote__branding-link{font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;font-size:8px;padding:8px 4px 0;text-decoration:none !important;text-transform:uppercase;border:0 !important}.crowdsignal-forms-vote__branding .crowdsignal-forms-vote__branding-link.with-external-icon::after{content:"\2197";display:inline;font-size:6px;vertical-align:super}.crowdsignal-forms-vote__branding .crowdsignal-forms-vote__branding-link:not(:hover){color:var(--crowdsignal-forms-text-color)}.crowdsignal-applause-wrapper{margin-bottom:3em}.crowdsignal-forms-applause{display:flex;flex-direction:row;align-items:center;outline:0;width:max-content;cursor:pointer;border:var(--crowdsignal-forms-applause-border-width) solid #d2d2d2;border-radius:var(--crowdsignal-forms-applause-border-radius);user-select:none;--webkit-user-select: none}.crowdsignal-forms-applause .crowdsignal-forms-applause__count{margin:unset !important}.crowdsignal-forms-applause.size-small{padding:20px 12px 18px 16px;height:0.7em}.crowdsignal-forms-applause.size-small .crowdsignal-forms-applause__count{font-size:14px;padding-bottom:2px}.crowdsignal-forms-applause.size-medium{height:1em;padding:24px 8px 20px 16px}.crowdsignal-forms-applause.size-medium .crowdsignal-forms-applause__count{font-size:16px;padding-bottom:4px}.crowdsignal-forms-applause.size-large{height:1.2em;padding:28px 8px 22px 18px}.crowdsignal-forms-applause.size-large .crowdsignal-forms-applause__count{font-size:19px;padding-bottom:6px}.crowdsignal-forms-applause.is-closed{opacity:0.5}.crowdsignal-forms-applause.has-text-color{color:var(--crowdsignal-forms-applause-text-color)}.crowdsignal-forms-applause.has-border-color{border:var(--crowdsignal-forms-applause-border-width) solid var(--crowdsignal-forms-applause-border-color)}.crowdsignal-forms-applause.has-bg-color{background-color:var(--crowdsignal-forms-applause-bg-color)}.crowdsignal-forms-applause:not(.is-closed):hover{color:var(--crowdsignal-forms-applause-hover-color);border-color:var(--crowdsignal-forms-applause-hover-color)}.crowdsignal-forms-applause:not(.is-closed):hover.has-bg-color{color:var(--crowdsignal-forms-applause-bg-color);background-color:var(--crowdsignal-forms-applause-text-color);border-color:var(--crowdsignal-forms-applause-bg-color)}.crowdsignal-forms-applause__animation{fill:var(--crowdsignal-forms-applause-text-color);margin-inline-end:5px}.crowdsignal-forms-applause.size-small .crowdsignal-forms-applause__animation{width:33px;height:33px;max-height:33px}.crowdsignal-forms-applause.size-medium .crowdsignal-forms-applause__animation{width:50px;height:50px;max-height:50px}.crowdsignal-forms-applause.size-large .crowdsignal-forms-applause__animation{width:60px;height:60px;max-height:60px}.crowdsignal-forms-applause__animation .crowdsignal-forms-applause__animation-inner-fill{fill:var(--crowdsignal-forms-applause-bg-color)}.crowdsignal-forms-applause:not(.is-closed):hover .crowdsignal-forms-applause__animation{fill:var(--crowdsignal-forms-applause-hover-color)}.crowdsignal-forms-applause.has-bg-color:not(.is-closed):hover .crowdsignal-forms-applause__animation{fill:var(--crowdsignal-forms-applause-bg-color)}.crowdsignal-forms-applause.has-bg-color:not(.is-closed):hover .crowdsignal-forms-applause__animation .crowdsignal-forms-applause__animation-inner-fill{fill:var(--crowdsignal-forms-applause-text-color)}.crowdsignal-forms-applause__animation-right{transition:transform 0.3s}.crowdsignal-forms-applause:not(.is-closed):hover .crowdsignal-forms-applause__animation-right{transform:translateX(-3%) translateY(-3%)}.crowdsignal-forms-applause__animation-left{transition:transform 0.3s}.crowdsignal-forms-applause:not(.is-closed):hover .crowdsignal-forms-applause__animation-left{transform:translateX(3%) translateY(0)}.crowdsignal-forms-applause__animation-wave-small{opacity:1}.crowdsignal-forms-applause:not(.is-closed):hover .crowdsignal-forms-applause__animation-wave-small{animation:crowdsignal-forms-animation__fade-out 0.3s forwards;transform:translateY(-5%);transition:transform 0.3s}.crowdsignal-forms-applause__animation-wave-large{opacity:0}.crowdsignal-forms-applause .crowdsignal-forms-applause__animation.is-active .crowdsignal-forms-applause__animation-right{transform:translateX(3%) translateY(0);transition:transform 0.1s}.crowdsignal-forms-applause .crowdsignal-forms-applause__animation.is-active .crowdsignal-forms-applause__animation-left{transform:translateX(-3%) translateY(0);transition:transform 0.1s}.crowdsignal-forms-applause .crowdsignal-forms-applause__animation.is-active .crowdsignal-forms-applause__animation-wave-small{animation:crowdsignal-forms-animation__fade-out 0.3s forwards;transform:translateY(-5%);transition:transform 0.3s}.crowdsignal-forms-applause .crowdsignal-forms-applause__animation.is-active .crowdsignal-forms-applause__animation-wave-large{animation:crowdsignal-forms-animation__fade-in 0.03s forwards;animation-delay:0.07s}.crowdsignal-forms-nps.is-inactive{opacity:0.6}.crowdsignal-forms-nps__toolbar-toggle{font-weight:600;padding-right:16px !important;padding-left:16px !important}.crowdsignal-forms-nps__toolbar-popover{padding:15px;min-width:300px}.crowdsignal-forms-nps__toolbar-popover .components-base-control__field{display:flex;flex-direction:row;align-items:center;margin-bottom:0}.crowdsignal-forms-nps__toolbar-popover .components-base-control__label{display:block;flex-grow:1;line-height:30px;margin-bottom:0}.crowdsignal-forms-nps__toolbar-popover .components-text-control__input{width:5em}.crowdsignal-forms-nps__toolbar-popover-button svg{margin-left:0 !important}.crowdsignal-forms-nps__toolbar-popover-button.components-button.has-icon .dashicon{margin-left:2px}.crowdsignal-forms-nps__rating-button:hover{background-color:var(--crowdsignal-forms-button-text-color);border-color:var(--crowdsignal-forms-button-color);color:var(--crowdsignal-forms-button-color)}.editor-styles-wrapper .components-button.is-secondary.crowdsignal-forms-nps__preview-button{text-decoration:none}.editor-styles-wrapper .components-button.is-secondary.crowdsignal-forms-nps__preview-button.is-disabled{display:none}.editor-styles-wrapper .crowdsignal-forms-feedback__header{color:var(--crowdsignal-forms-text-color)}.crowdsignal-forms-nps{border:0;border-top:10px solid var(--crowdsignal-forms-button-color);background-color:var(--crowdsignal-forms-background-color);color:var(--crowdsignal-forms-text-color);height:auto;padding:24px 16px;position:relative}@media screen and (min-width: 670px){.crowdsignal-forms-nps{padding:32px 32px 24px 32px}}.crowdsignal-forms-nps .crowdsignal-forms__footer-branding{margin-top:40px;font-size:16px}.crowdsignal-forms-nps__close-button{align-items:center;background-color:var(--crowdsignal-forms-button-color);border:0;border-radius:20px;color:var(--crowdsignal-forms-button-text-color);display:flex;height:40px;justify-content:center;outline:0;padding:0;position:absolute;left:-20px;top:-25px;width:40px}.crowdsignal-forms-nps__close-button:hover{background-color:var(--crowdsignal-forms-button-text-color);color:var(--crowdsignal-forms-button-color)}.crowdsignal-forms-nps__question{margin-top:0 !important;margin-bottom:32px !important}.crowdsignal-forms-nps__rating{display:flex;flex-direction:column}.crowdsignal-forms-nps__rating-labels{display:flex;flex-direction:row;font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;font-size:14px;justify-content:space-between;margin-top:8px}.crowdsignal-forms-nps__rating-scale{display:flex;margin:10px auto 0;width:100%}.crowdsignal-forms-nps__rating-button{background-color:var(--crowdsignal-forms-button-color);border:1px solid var(--crowdsignal-forms-button-color);border-radius:2px;color:var(--crowdsignal-forms-button-text-color);cursor:pointer;display:inline-flex;flex:1;font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;font-size:15px;font-weight:600;height:50px;justify-content:center;line-height:50px;margin:0 0.4em 0 0;padding:0;text-align:center;text-decoration:none;transition:background-color 0.2s, color 0.2s}.crowdsignal-forms-nps__rating-button:first-child{margin:0}.crowdsignal-forms-nps__rating-button:hover:enabled{background-color:var(--crowdsignal-forms-button-text-color);color:var(--crowdsignal-forms-button-color);text-decoration:none}.crowdsignal-forms-nps__rating-button:disabled:not(.is-active){background-color:transparent;color:var(--crowdsignal-forms-button-color)}@media screen and (min-width: 670px){.crowdsignal-forms-nps__rating-button{margin:0 0.7em 0 0}}.crowdsignal-forms-nps__feedback{display:flex;flex-direction:column}.crowdsignal-forms-nps__feedback-text{margin-top:16px;margin-bottom:25px;width:100%}.crowdsignal-forms-nps__feedback-text textarea{font-size:var(--crowdsignal-forms-text-size)}.crowdsignal-forms-nps__feedback-button-wrapper{align-self:flex-end}.crowdsignal-forms-nps__feedback-button{align-self:flex-end;background-color:var(--crowdsignal-forms-button-color) !important;border:1px solid var(--crowdsignal-forms-button-color);color:var(--crowdsignal-forms-button-text-color) !important;text-decoration:none}.crowdsignal-forms-nps__feedback-button:hover{background-color:var(--crowdsignal-forms-button-text-color) !important;color:var(--crowdsignal-forms-button-color) !important;text-decoration:none}.crowdsignal-forms-feedback__trigger-preview{display:flex}.crowdsignal-forms-feedback.align-right .crowdsignal-forms-feedback__trigger-preview{justify-content:flex-end}.crowdsignal-forms-feedback.vertical-align-top .crowdsignal-forms-feedback__trigger-preview{margin-bottom:15px !important;margin-top:0 !important}.crowdsignal-forms-feedback.vertical-align-bottom .crowdsignal-forms-feedback__trigger-preview{order:99;margin-bottom:0 !important;margin-top:15px !important}.crowdsignal-forms-feedback.is-vertical .crowdsignal-forms-feedback__trigger-preview{align-items:flex-start;padding:var(--crowdsignal-forms-feedback__toggle-padding) 0;margin-left:20px}.crowdsignal-forms-feedback.is-vertical.align-right .crowdsignal-forms-feedback__trigger-preview{margin-right:20px;margin-left:0}.crowdsignal-forms-feedback__popover-preview{display:flex;flex-direction:column;justify-content:center;margin:0 !important;position:relative}.crowdsignal-forms-feedback.align-left .crowdsignal-forms-feedback__popover-preview{align-items:flex-start}.crowdsignal-forms-feedback.align-right .crowdsignal-forms-feedback__popover-preview{align-items:flex-end}.editor-styles-wrapper .wp-block[data-type="crowdsignal-forms/feedback"]{width:auto;z-index:10}.editor-styles-wrapper .wp-block[data-type="crowdsignal-forms/feedback"]::after{display:none}.editor-styles-wrapper .crowdsignal-forms-feedback__popover-overlay{background-color:rgba(0,0,0,0.3);content:"";display:block;position:fixed;bottom:25px;right:0;left:0;top:0;z-index:-1}.editor-styles-wrapper .crowdsignal-forms-feedback{display:flex;flex-direction:column;justify-content:center;margin-top:0 !important;margin-bottom:0 !important;position:relative}.editor-styles-wrapper .crowdsignal-forms-feedback.is-active .crowdsignal-forms-feedback__trigger{cursor:text !important}.editor-styles-wrapper .crowdsignal-forms-feedback.is-vertical{flex-direction:row}.editor-styles-wrapper .crowdsignal-forms-feedback.is-vertical .crowdsignal-forms-feedback__trigger-wrapper{transform-origin:top left;transform:rotateZ(-270deg) translateY(-100%)}.editor-styles-wrapper .crowdsignal-forms-feedback.is-vertical.align-right{flex-direction:row-reverse}.editor-styles-wrapper .crowdsignal-forms-feedback.is-vertical.align-right .crowdsignal-forms-feedback__trigger-wrapper{transform-origin:top right;transform:rotateZ(-270deg) translateX(100%)}.editor-styles-wrapper .crowdsignal-forms-feedback .crowdsignal-forms__editor-notice{width:380px}.editor-styles-wrapper .crowdsignal-forms-feedback__input input,.editor-styles-wrapper .crowdsignal-forms-feedback__input textarea{color:#757575}.editor-styles-wrapper .crowdsignal-forms-feedback__button-wrapper{margin-top:24px !important;margin-bottom:0 !important}.crowdsignal-forms-feedback__toolbar-toggle{font-weight:600;padding-right:16px !important;padding-left:16px !important}.crowdsignal-forms-feedback__toolbar-toggle.is-pressed::before{right:8px !important;left:8px !important}.crowdsignal-forms-feedback__trigger-settings{align-items:center;display:flex;margin-bottom:24px}.crowdsignal-forms-feedback__trigger-settings-trigger{background-size:cover;border:1px solid #c4c4c4;border-radius:50%;height:70px;margin-left:12px;overflow:hidden;padding:0;width:70px}.crowdsignal-forms-feedback__closed-notice{background-color:#1e1e1e;color:#fff;text-align:center;width:100%;font-size:14px;line-height:1.5;padding:6px}.crowdsignal-forms-feedback{display:flex;position:fixed;z-index:9999999}.crowdsignal-forms-feedback>div:last-child:not(.crowdsignal-forms-feedback__trigger){border-bottom-right-radius:10px;border-bottom-left-radius:10px}.crowdsignal-forms-feedback .crowdsignal-forms__footer-branding{margin-top:24px;font-size:12px;line-height:1.25}.crowdsignal-forms-feedback__trigger-wrapper{margin:0 !important}.crowdsignal-forms-feedback.is-vertical .crowdsignal-forms-feedback__trigger-wrapper{margin-top:-50%;transform-origin:top left;transform:rotateZ(-270deg) translateY(-100%)}.crowdsignal-forms-feedback.is-vertical.align-right .crowdsignal-forms-feedback__trigger-wrapper{transform-origin:top right;transform:rotateZ(-270deg) translateX(100%)}.crowdsignal-forms-feedback__trigger{box-shadow:-1px 1px 7px rgba(0,0,0,0.3);cursor:pointer;background-color:var(--crowdsignal-forms-trigger-background-color) !important;color:var(--crowdsignal-forms-trigger-text-color) !important;display:flex !important;align-items:center;font-size:16px !important;line-height:1.5 !important;padding:10px 16px !important;white-space:nowrap !important}.crowdsignal-forms-feedback__trigger>svg{fill:currentColor}.crowdsignal-forms-feedback__trigger.is-active{background:var(--crowdsignal-forms-trigger-background-color) !important;padding-right:12px !important}.crowdsignal-forms-feedback.no-shadow .crowdsignal-forms-feedback__trigger{box-shadow:none}.crowdsignal-forms-feedback.is-vertical.align-left .crowdsignal-forms-feedback__trigger{border-top-right-radius:0 !important;border-top-left-radius:0 !important}.crowdsignal-forms-feedback.is-vertical.align-right .crowdsignal-forms-feedback__trigger{border-bottom-right-radius:0 !important;border-bottom-left-radius:0 !important}.crowdsignal-forms-feedback__popover-wrapper.components-popover .components-popover__content{background-color:transparent;border:0;box-shadow:none;outline:0;overflow:visible}.crowdsignal-forms-feedback__popover{background-color:var(--crowdsignal-forms-background-color);border-top:10px solid var(--crowdsignal-forms-button-color);box-shadow:-1px 1px 7px rgba(0,0,0,0.3);color:var(--crowdsignal-forms-text-color);max-height:480px;outline:0;overflow-y:scroll;padding:24px;width:240px;text-align:right;z-index:100;display:flex;flex-direction:column}@media screen and (min-width: 360px){.crowdsignal-forms-feedback__popover{max-height:640px;width:300px}}@media screen and (min-width: 480px){.crowdsignal-forms-feedback__popover{max-height:auto;width:380px}}.crowdsignal-forms-feedback__header{color:var(--crowdsignal-forms-text-color);margin-top:0 !important;margin-bottom:32px !important;flex-grow:1}.crowdsignal-forms-feedback__input{margin-top:16px;position:relative;width:100%;z-index:1}.crowdsignal-forms-feedback__input.is-error::before{border:3px solid #d63638;box-sizing:border-box;content:"";display:block;position:absolute;top:-4px;right:-4px;bottom:-4px;left:-4px;z-index:-1}.crowdsignal-forms-feedback__input input,.crowdsignal-forms-feedback__input textarea{box-sizing:border-box;font-size:var(--crowdsignal-forms-text-size) !important;padding:16px !important}.crowdsignal-forms-feedback__button-wrapper{display:flex;justify-content:flex-end;margin-top:24px;margin-bottom:0;width:100%}.crowdsignal-forms-feedback__button-wrapper:hover{color:var(--crowdsignal-forms-button-color)}.crowdsignal-forms-feedback__feedback-button{background-color:var(--crowdsignal-forms-button-color) !important;color:var(--crowdsignal-forms-button-text-color) !important}
build/rtl/feedback-rtl.css CHANGED
@@ -1,3 +1,3 @@
1
- /* This file was automatically generated on May 05 2021 14:54:13 */
2
 
3
- @keyframes crowdsignal-forms-animation__pop{0%{transform:scale(0)}50%{transform:scale(1.2)}100%{transform:scale(1)}}@keyframes crowdsignal-forms-animation__pulse{0%{opacity:0.4}50%{opacity:0.7}100%{opacity:0.4}}@keyframes crowdsignal-forms-animation__grow{0%{transform:scale(1)}50%{transform:scale(1.4)}100%{transform:scale(1)}}@keyframes crowdsignal-forms-animation__fade-in{0%{opacity:0}100%{opacity:1}}@keyframes crowdsignal-forms-animation__fade-out{0%{opacity:1}100%{opacity:0}}.crowdsignal-forms-feedback{display:flex;position:fixed;z-index:100}.crowdsignal-forms-feedback>div:last-child:not(.crowdsignal-forms-feedback__trigger){border-bottom-right-radius:10px;border-bottom-left-radius:10px}.crowdsignal-forms-feedback .crowdsignal-forms__footer-branding{margin-top:24px;font-size:12px;line-height:1.25}.crowdsignal-forms-feedback__trigger-wrapper{margin:0 !important}.crowdsignal-forms-feedback__trigger{box-shadow:-1px 1px 7px rgba(0,0,0,0.3);cursor:pointer;background-color:var(--crowdsignal-forms-trigger-background-color) !important;color:var(--crowdsignal-forms-trigger-text-color) !important;display:flex !important;align-items:center;font-size:16px !important;line-height:1.5 !important;padding:10px 16px !important}.crowdsignal-forms-feedback__trigger>svg{fill:currentColor}.crowdsignal-forms-feedback__trigger.is-active{background:var(--crowdsignal-forms-trigger-background-color) !important;padding-right:12px !important}.crowdsignal-forms-feedback.no-shadow .crowdsignal-forms-feedback__trigger{box-shadow:none}.crowdsignal-forms-feedback__popover-wrapper.components-popover .components-popover__content{background-color:transparent;border:0;box-shadow:none;outline:0;overflow:visible}.crowdsignal-forms-feedback__popover{background-color:var(--crowdsignal-forms-background-color);border-top:10px solid var(--crowdsignal-forms-button-color);box-shadow:-1px 1px 7px rgba(0,0,0,0.3);color:var(--crowdsignal-forms-text-color);outline:0;padding:24px;width:380px;text-align:right;z-index:100;display:flex;flex-direction:column}.crowdsignal-forms-feedback__header{color:var(--crowdsignal-forms-text-color);margin-top:0 !important;margin-bottom:32px !important;flex-grow:1}.crowdsignal-forms-feedback__input{margin-top:16px;width:100%}.crowdsignal-forms-feedback__input input,.crowdsignal-forms-feedback__input textarea{box-sizing:border-box;font-size:var(--crowdsignal-forms-text-size) !important;padding:16px !important}.crowdsignal-forms-feedback__button-wrapper{display:flex;justify-content:flex-end;margin-top:24px;margin-bottom:0;width:100%}.crowdsignal-forms-feedback__button-wrapper:hover{color:var(--crowdsignal-forms-button-color)}.crowdsignal-forms-feedback__feedback-button{background-color:var(--crowdsignal-forms-button-color) !important;color:var(--crowdsignal-forms-button-text-color) !important}.crowdsignal-forms__footer-branding{align-items:center;display:flex;margin-top:16px;width:100%}.crowdsignal-forms__footer-branding img.crowdsignal-forms__footer-branding-logo{height:50px;margin-right:auto;margin-left:0;width:50px}.crowdsignal-forms__footer-branding .crowdsignal-forms__branding-promote{display:inline-flex;font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;font-size:10px;text-decoration:none !important;box-shadow:none;border:0;background-color:#a4a4a4a4;color:#fff;cursor:pointer;padding-left:8px;padding-right:8px;margin-right:16px;border-radius:2px;padding-top:2px;padding-bottom:2px;vertical-align:middle}.crowdsignal-forms__footer-cs-link{display:inline-flex;font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;font-size:inherit;line-height:inherit;text-decoration:none;text-transform:uppercase;vertical-align:middle;border-bottom:0 solid var(--crowdsignal-forms-text-color) !important}.crowdsignal-forms__footer-cs-link:not(:hover){color:var(--crowdsignal-forms-text-color);opacity:0.4}.has-default-thankyou .crowdsignal-forms__footer-cs-link{color:#333}
1
+ /* This file was automatically generated on May 14 2021 17:07:16 */
2
 
3
+ @keyframes crowdsignal-forms-animation__pop{0%{transform:scale(0)}50%{transform:scale(1.2)}100%{transform:scale(1)}}@keyframes crowdsignal-forms-animation__pulse{0%{opacity:0.4}50%{opacity:0.7}100%{opacity:0.4}}@keyframes crowdsignal-forms-animation__grow{0%{transform:scale(1)}50%{transform:scale(1.4)}100%{transform:scale(1)}}@keyframes crowdsignal-forms-animation__fade-in{0%{opacity:0}100%{opacity:1}}@keyframes crowdsignal-forms-animation__fade-out{0%{opacity:1}100%{opacity:0}}.crowdsignal-forms-feedback{display:flex;position:fixed;z-index:9999999}.crowdsignal-forms-feedback>div:last-child:not(.crowdsignal-forms-feedback__trigger){border-bottom-right-radius:10px;border-bottom-left-radius:10px}.crowdsignal-forms-feedback .crowdsignal-forms__footer-branding{margin-top:24px;font-size:12px;line-height:1.25}.crowdsignal-forms-feedback__trigger-wrapper{margin:0 !important}.crowdsignal-forms-feedback.is-vertical .crowdsignal-forms-feedback__trigger-wrapper{margin-top:-50%;transform-origin:top left;transform:rotateZ(-270deg) translateY(-100%)}.crowdsignal-forms-feedback.is-vertical.align-right .crowdsignal-forms-feedback__trigger-wrapper{transform-origin:top right;transform:rotateZ(-270deg) translateX(100%)}.crowdsignal-forms-feedback__trigger{box-shadow:-1px 1px 7px rgba(0,0,0,0.3);cursor:pointer;background-color:var(--crowdsignal-forms-trigger-background-color) !important;color:var(--crowdsignal-forms-trigger-text-color) !important;display:flex !important;align-items:center;font-size:16px !important;line-height:1.5 !important;padding:10px 16px !important;white-space:nowrap !important}.crowdsignal-forms-feedback__trigger>svg{fill:currentColor}.crowdsignal-forms-feedback__trigger.is-active{background:var(--crowdsignal-forms-trigger-background-color) !important;padding-right:12px !important}.crowdsignal-forms-feedback.no-shadow .crowdsignal-forms-feedback__trigger{box-shadow:none}.crowdsignal-forms-feedback.is-vertical.align-left .crowdsignal-forms-feedback__trigger{border-top-right-radius:0 !important;border-top-left-radius:0 !important}.crowdsignal-forms-feedback.is-vertical.align-right .crowdsignal-forms-feedback__trigger{border-bottom-right-radius:0 !important;border-bottom-left-radius:0 !important}.crowdsignal-forms-feedback__popover-wrapper.components-popover .components-popover__content{background-color:transparent;border:0;box-shadow:none;outline:0;overflow:visible}.crowdsignal-forms-feedback__popover{background-color:var(--crowdsignal-forms-background-color);border-top:10px solid var(--crowdsignal-forms-button-color);box-shadow:-1px 1px 7px rgba(0,0,0,0.3);color:var(--crowdsignal-forms-text-color);max-height:480px;outline:0;overflow-y:scroll;padding:24px;width:240px;text-align:right;z-index:100;display:flex;flex-direction:column}@media screen and (min-width: 360px){.crowdsignal-forms-feedback__popover{max-height:640px;width:300px}}@media screen and (min-width: 480px){.crowdsignal-forms-feedback__popover{max-height:auto;width:380px}}.crowdsignal-forms-feedback__header{color:var(--crowdsignal-forms-text-color);margin-top:0 !important;margin-bottom:32px !important;flex-grow:1}.crowdsignal-forms-feedback__input{margin-top:16px;position:relative;width:100%;z-index:1}.crowdsignal-forms-feedback__input.is-error::before{border:3px solid #d63638;box-sizing:border-box;content:"";display:block;position:absolute;top:-4px;right:-4px;bottom:-4px;left:-4px;z-index:-1}.crowdsignal-forms-feedback__input input,.crowdsignal-forms-feedback__input textarea{box-sizing:border-box;font-size:var(--crowdsignal-forms-text-size) !important;padding:16px !important}.crowdsignal-forms-feedback__button-wrapper{display:flex;justify-content:flex-end;margin-top:24px;margin-bottom:0;width:100%}.crowdsignal-forms-feedback__button-wrapper:hover{color:var(--crowdsignal-forms-button-color)}.crowdsignal-forms-feedback__feedback-button{background-color:var(--crowdsignal-forms-button-color) !important;color:var(--crowdsignal-forms-button-text-color) !important}.crowdsignal-forms__footer-branding{align-items:center;display:flex;margin-top:16px;width:100%}.crowdsignal-forms__footer-branding img.crowdsignal-forms__footer-branding-logo{height:50px;margin-right:auto;margin-left:0;width:50px}.crowdsignal-forms__footer-branding .crowdsignal-forms__branding-promote{display:inline-flex;font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;font-size:10px;text-decoration:none !important;box-shadow:none;border:0;background-color:#a4a4a4a4;color:#fff;cursor:pointer;padding-left:8px;padding-right:8px;margin-right:16px;border-radius:2px;padding-top:2px;padding-bottom:2px;vertical-align:middle}.crowdsignal-forms__footer-cs-link{display:inline-flex;font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;font-size:inherit;line-height:inherit;text-decoration:none;text-transform:uppercase;vertical-align:middle;border-bottom:0 solid var(--crowdsignal-forms-text-color) !important}.crowdsignal-forms__footer-cs-link:not(:hover){color:var(--crowdsignal-forms-text-color);opacity:0.4}.has-default-thankyou .crowdsignal-forms__footer-cs-link{color:#333}
build/rtl/poll-rtl.css CHANGED
@@ -1,3 +1,3 @@
1
- /* This file was automatically generated on May 05 2021 14:54:13 */
2
 
3
- @keyframes crowdsignal-forms-animation__pop{0%{transform:scale(0)}50%{transform:scale(1.2)}100%{transform:scale(1)}}@keyframes crowdsignal-forms-animation__pulse{0%{opacity:0.4}50%{opacity:0.7}100%{opacity:0.4}}@keyframes crowdsignal-forms-animation__grow{0%{transform:scale(1)}50%{transform:scale(1.4)}100%{transform:scale(1)}}@keyframes crowdsignal-forms-animation__fade-in{0%{opacity:0}100%{opacity:1}}@keyframes crowdsignal-forms-animation__fade-out{0%{opacity:1}100%{opacity:0}}.crowdsignal-poll-wrapper:not(:first-child),[data-type="crowdsignal-forms/poll"]:not(:first-child){margin-top:3em}.crowdsignal-poll-wrapper:not(:last-child),[data-type="crowdsignal-forms/poll"]:not(:last-child){margin-bottom:3em}.crowdsignal-forms-poll{border-color:var(--crowdsignal-forms-border-color);border-style:solid;border-width:var(--crowdsignal-forms-border-width);margin-right:auto;margin-left:auto;margin-top:5px;position:relative;text-align:right}.entry-content .alignfull.crowdsignal-poll-wrapper .crowdsignal-forms-poll{border-right-width:0;border-left-width:0}.crowdsignal-forms-poll h3.crowdsignal-forms-poll__question{margin:0 0 28px}.crowdsignal-forms-poll h3.crowdsignal-forms-poll__question:first-child{margin-top:0}.crowdsignal-forms-poll .crowdsignal-forms-poll__note{font-style:italic;margin:0 0 32px}.crowdsignal-forms-poll .crowdsignal-forms-poll__content{padding:40px 24px 16px 24px}.crowdsignal-forms-poll .crowdsignal-forms-poll__content .crowdsignal-forms-poll__question{font-family:var(--crowdsignal-forms-question-font-family)}.crowdsignal-forms-poll .crowdsignal-forms-poll__content .crowdsignal-forms-poll__answer-label,.crowdsignal-forms-poll .crowdsignal-forms-poll__content .crowdsignal-forms-poll__answer-results-answer,.crowdsignal-forms-poll .crowdsignal-forms-poll__content .crowdsignal-forms-poll__note{font-family:var(--crowdsignal-forms-body-font-family)}.entry-content .alignfull.crowdsignal-poll-wrapper .crowdsignal-forms-poll .crowdsignal-forms-poll__content{margin:0 auto;max-width:var(--crowdsignal-forms-content-wide-width)}@media screen and (min-width: 660px){.alignwide.crowdsignal-poll-wrapper .crowdsignal-forms-poll .crowdsignal-forms-poll__content,.alignfull.crowdsignal-poll-wrapper .crowdsignal-forms-poll .crowdsignal-forms-poll__content{padding:80px}}.crowdsignal-forms-poll.is-closed .crowdsignal-forms-poll__form{opacity:0.5}.crowdsignal-forms-poll.is-hidden{opacity:0.5}.crowdsignal-forms-poll.has-text-color{color:var(--crowdsignal-forms-text-color)}.crowdsignal-forms-poll.has-bg-color{background-color:var(--crowdsignal-forms-bg-color)}.crowdsignal-forms-poll.has-border-radius{border-radius:var(--crowdsignal-forms-border-radius);overflow:hidden}.crowdsignal-forms-poll.has-box-shadow{box-shadow:0 3px 6px rgba(0,0,0,0.16),0 3px 6px rgba(0,0,0,0.23)}.crowdsignal-forms-poll .is-transparent{opacity:0;pointer-events:none}.crowdsignal-forms-poll__block-button .crowdsignal-forms-poll__submit-button{-webkit-appearance:initial}.crowdsignal-forms-poll__block-button .crowdsignal-forms-poll__submit-button:disabled{opacity:0.7}.crowdsignal-forms-poll.has-submit-button-text-color .crowdsignal-forms-poll__block-button .crowdsignal-forms-poll__submit-button.wp-block-button__link{color:var(--crowdsignal-forms-submit-button-text-color)}.crowdsignal-forms-poll.has-submit-button-bg-color .crowdsignal-forms-poll__block-button .crowdsignal-forms-poll__submit-button.wp-block-button__link{background-color:var(--crowdsignal-forms-submit-button-bg-color)}.crowdsignal-forms-poll.has-submit-button-bg-color .crowdsignal-forms-poll__block-button .crowdsignal-forms-poll__submit-button.wp-block-button__link:hover{opacity:0.9}.crowdsignal-forms-poll__options.is-button{display:flex;flex-direction:column;flex-wrap:wrap}.crowdsignal-forms-poll__options.is-button.is-inline-button-alignment{flex-direction:row}.crowdsignal-forms-poll__answer{cursor:pointer;display:flex;font-size:inherit;font-weight:600;margin:0;padding:0 2px;position:relative}.crowdsignal-forms-poll__answer.is-button{margin-inline-end:20px;margin-block-end:20px;max-width:100%}.crowdsignal-forms-poll__answer.is-button .wp-block-button.crowdsignal-forms-poll__block-button,.crowdsignal-forms-poll__answer.is-button .crowdsignal-forms-poll__submit-button{max-width:100%}.crowdsignal-forms-poll__answer.is-button .crowdsignal-forms-poll__submit-button{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.crowdsignal-forms-poll__answer:not(.is-button){margin-block-end:16px}.crowdsignal-forms-poll__answer:hover,.crowdsignal-forms-poll__answer.is-focused{color:var(--crowdsignal-forms-submit-button-bg-color)}.has-voted .crowdsignal-forms-poll__answer{opacity:0.5}input[type="checkbox"].crowdsignal-forms-poll__input,input[type="radio"].crowdsignal-forms-poll__input{height:0;opacity:0;position:absolute;width:0}.crowdsignal-forms-poll__check{display:inline-block;height:1em;margin:0 0 0 10px;position:relative;width:1em}.crowdsignal-forms-poll__check::before{background-color:transparent;border:1.5px solid var(--crowdsignal-forms-text-color);border-radius:50%;box-sizing:border-box;content:"";display:block;height:100%;transition:background-color 0.3s, border-color 0.3s;width:100%}.crowdsignal-forms-poll__answer.is-multiple-choice .crowdsignal-forms-poll__check::before{border-radius:3px}.crowdsignal-forms-poll__answer.is-multiple-choice.is-selected .crowdsignal-forms-poll__check::before{border-color:var(--crowdsignal-forms-text-color);background-color:var(--crowdsignal-forms-text-color)}.crowdsignal-forms-poll__answer.is-selected:not(.is-multiple-choice) .crowdsignal-forms-poll__check::after{animation-duration:0.3s;animation-name:crowdsignal-forms-animation__pop;animation-iteration-count:1;background-clip:padding-box;background-color:var(--crowdsignal-forms-text-color);border:4.5px solid transparent;border-radius:50%;box-sizing:border-box;content:"";display:block;height:100%;position:absolute;right:0;top:0;width:100%}.crowdsignal-forms-poll__answer.is-selected.is-multiple-choice .crowdsignal-forms-poll__check::after{border-color:var(--crowdsignal-forms-submit-button-text-color);border-style:solid;border-width:0 2px 2px 0;box-sizing:border-box;content:"";display:block;height:25%;margin:-0.1em -0.2em 0 0;position:absolute;right:50%;top:50%;transform:rotateZ(45deg);width:50%}div.crowdsignal-forms-poll__answer-label-wrapper{flex:1;word-break:break-word}div.crowdsignal-forms-poll__answer-label-wrapper span.crowdsignal-forms-poll__answer-label{line-height:1;vertical-align:top}div.crowdsignal-forms-poll__answer-label-wrapper span.crowdsignal-forms-poll__answer-label span::after{vertical-align:top}.crowdsignal-forms-poll__button{border:0;padding:0}.crowdsignal-forms-poll__actions .wp-block-button,.crowdsignal-forms-poll__options .wp-block-button{margin:0}.crowdsignal-forms-poll__actions{display:flex;justify-content:flex-end}.editor-styles-wrapper .crowdsignal-forms-poll .crowdsignal-forms-poll__actions .wp-block-button.crowdsignal-forms-poll__block-button,.editor-styles-wrapper .crowdsignal-forms-poll .crowdsignal-forms-poll__options .wp-block-button.crowdsignal-forms-poll__block-button{margin:0}.crowdsignal-forms-poll__closed-banner{background-color:var(--crowdsignal-forms-border-color);box-sizing:border-box;display:flex;color:var(--crowdsignal-forms-submit-button-text-color);font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;justify-content:center;padding:calc(var(--crowdsignal-forms-border-width) + 0.2em) 0 0.2em;width:100%}.is-hidden .crowdsignal-forms-poll__closed-banner{font-style:italic}.crowdsignal-forms-poll__error{color:red}.crowdsignal-forms-poll__results-list{margin:0 0 1em;position:relative}.crowdsignal-forms-poll__answer-results{display:flex;flex-direction:column;margin:0 0 16px;width:100%}.crowdsignal-forms-poll__answer-results:last-child{margin:0}.crowdsignal-forms-poll__answer-results-labels{align-items:flex-end;display:flex;margin:0 0 8px;width:100%;word-break:break-word}.crowdsignal-forms-poll__answer-results-answer{flex:1;font-size:1em;font-weight:600}.crowdsignal-forms-poll__answer-results-votes{font-size:0.75em;line-height:2}.crowdsignal-forms-poll__answer-results-percent{font-weight:600;line-height:1.6}.crowdsignal-forms-poll__answer-results-votes,.crowdsignal-forms-poll__answer-results-percent{font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;margin-right:20px;transition:opacity 0.3s}.crowdsignal-forms-poll__answer-results.is-error .crowdsignal-forms-poll__answer-results-votes,.crowdsignal-forms-poll__answer-results.is-error .crowdsignal-forms-poll__answer-results-percent{display:none}.crowdsignal-forms-poll__answer-results.is-loading .crowdsignal-forms-poll__answer-results-votes,.crowdsignal-forms-poll__answer-results.is-loading .crowdsignal-forms-poll__answer-results-percent{animation-duration:1.5s;animation-iteration-count:infinite;animation-name:crowdsignal-forms-animation__pulse;background-color:var(--crowdsignal-forms-text-color);font-size:0.7em;height:1em;width:50px}.crowdsignal-forms-poll__answer-results.is-loading .crowdsignal-forms-poll__answer-results-votes:last-child,.crowdsignal-forms-poll__answer-results.is-loading .crowdsignal-forms-poll__answer-results-percent:last-child{width:40px}.crowdsignal-forms-poll__answer-results-progress-track{border:1px solid;border-color:rgba(var(--crowdsignal-forms-text-color-properties), 0.3);box-sizing:border-box;height:1em;width:100%}.crowdsignal-forms-poll__answer-results.is-loading .crowdsignal-forms-poll__answer-results-progress-track{animation-duration:1.5s;animation-iteration-count:infinite;animation-name:crowdsignal-forms-animation__pulse}.crowdsignal-forms-poll__answer-results-progress-bar{animation-fill-mode:forwards;background-color:var(--crowdsignal-forms-submit-button-bg-color);height:100%;transition:background-color 0.3s, width 0.3s}.crowdsignal-forms-poll__answer-results.is-error .crowdsignal-forms-poll__answer-results-progress-bar{width:0}.crowdsignal-forms-poll__answer-results.is-loading .crowdsignal-forms-poll__answer-results-progress-bar{background-color:var(--crowdsignal-forms-text-color);width:25%}.crowdsignal-forms-poll__answer-results.is-loading:nth-child(5n+1) .crowdsignal-forms-poll__answer-results-progress-bar{width:40%}.crowdsignal-forms-poll__answer-results.is-loading:nth-child(5n+2) .crowdsignal-forms-poll__answer-results-progress-bar{width:75%}.crowdsignal-forms-poll__answer-results.is-loading:nth-child(5n+3) .crowdsignal-forms-poll__answer-results-progress-bar{width:50%}.crowdsignal-forms-poll__answer-results.is-loading:nth-child(5n+4) .crowdsignal-forms-poll__answer-results-progress-bar{width:60%}.crowdsignal-forms-poll__results-footer{display:flex;flex-direction:column;justify-content:space-between;width:100%;font-size:0.9em}.crowdsignal-forms-poll__results-total{font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;position:relative;text-align:left;width:100%;margin-bottom:1em}.crowdsignal-forms-poll__results.is-loading .crowdsignal-forms-poll__results-total{color:transparent}.crowdsignal-forms-poll__results.is-loading .crowdsignal-forms-poll__results-total::before{animation-name:crowdsignal-forms-animation__pulse;animation-duration:1.5s;animation-iteration-count:infinite;background-color:var(--crowdsignal-forms-text-color);content:"";display:block;position:absolute;left:0;height:1em;width:150px}.crowdsignal-forms-poll__error-banner{font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;font-size:13px;margin-top:24px;padding:18px 24px;color:#d82e20;border-right:4px solid #d82e20;background:#f8dad8}.crowdsignal-forms-poll__submit-message-container{position:absolute;background-color:var(--crowdsignal-forms-bg-color);right:0;top:0;width:100%;height:100%;overflow:hidden}.has-default-thankyou .crowdsignal-forms-poll__submit-message-container{background-color:#fff}.crowdsignal-forms-poll__submit-message{position:relative}.crowdsignal-forms-poll__submit-message button.crowdsignal-forms-poll__dismiss-submit-message{position:absolute;left:0;top:0;background-color:transparent;color:#000;text-decoration:none;border:none}.crowdsignal-forms-poll__submit-message button.crowdsignal-forms-poll__dismiss-submit-message:hover{background:inherit}.crowdsignal-forms-poll__submit-message-footer{position:absolute;bottom:0;right:0;padding:16px 24px;width:100%;background-color:inherit}.crowdsignal-forms-poll__thank-you-cs-sticker{left:25px;top:66px}.crowdsignal-forms-poll__thank-you-sticker{left:132px;top:12px}.crowdsignal-forms-poll__thank-you-cs-sticker,.crowdsignal-forms-poll__thank-you-sticker{filter:drop-shadow(0 1px 2px rgba(0,0,0,0.2));width:100px;height:100px;position:absolute}.crowdsignal-forms-poll__custom-message-check{color:var(--crowdsignal-forms-text-color);padding-right:24px;padding-top:24px}.crowdsignal-forms-poll__custom-message{font-family:var(--crowdsignal-forms-question-font-family);font-weight:600;padding:16px 24px}.wp_block-crowdsignal-forms-poll__vote-branding{margin-top:16px}.crowdsignal-forms__style-probe{display:none}.crowdsignal-forms__footer-branding{align-items:center;display:flex;margin-top:16px;width:100%}.crowdsignal-forms__footer-branding img.crowdsignal-forms__footer-branding-logo{height:50px;margin-right:auto;margin-left:0;width:50px}.crowdsignal-forms__footer-branding .crowdsignal-forms__branding-promote{display:inline-flex;font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;font-size:10px;text-decoration:none !important;box-shadow:none;border:0;background-color:#a4a4a4a4;color:#fff;cursor:pointer;padding-left:8px;padding-right:8px;margin-right:16px;border-radius:2px;padding-top:2px;padding-bottom:2px;vertical-align:middle}.crowdsignal-forms__footer-cs-link{display:inline-flex;font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;font-size:inherit;line-height:inherit;text-decoration:none;text-transform:uppercase;vertical-align:middle;border-bottom:0 solid var(--crowdsignal-forms-text-color) !important}.crowdsignal-forms__footer-cs-link:not(:hover){color:var(--crowdsignal-forms-text-color);opacity:0.4}.has-default-thankyou .crowdsignal-forms__footer-cs-link{color:#333}
1
+ /* This file was automatically generated on May 14 2021 17:07:17 */
2
 
3
+ @keyframes crowdsignal-forms-animation__pop{0%{transform:scale(0)}50%{transform:scale(1.2)}100%{transform:scale(1)}}@keyframes crowdsignal-forms-animation__pulse{0%{opacity:0.4}50%{opacity:0.7}100%{opacity:0.4}}@keyframes crowdsignal-forms-animation__grow{0%{transform:scale(1)}50%{transform:scale(1.4)}100%{transform:scale(1)}}@keyframes crowdsignal-forms-animation__fade-in{0%{opacity:0}100%{opacity:1}}@keyframes crowdsignal-forms-animation__fade-out{0%{opacity:1}100%{opacity:0}}.crowdsignal-poll-wrapper:not(:first-child),[data-type="crowdsignal-forms/poll"]:not(:first-child){margin-top:3em}.crowdsignal-poll-wrapper:not(:last-child),[data-type="crowdsignal-forms/poll"]:not(:last-child){margin-bottom:3em}.crowdsignal-forms-poll{border-color:var(--crowdsignal-forms-border-color);border-style:solid;border-width:var(--crowdsignal-forms-border-width);margin-right:auto;margin-left:auto;margin-top:5px;position:relative;text-align:right}.entry-content .alignfull.crowdsignal-poll-wrapper .crowdsignal-forms-poll{border-right-width:0;border-left-width:0}.crowdsignal-forms-poll h3.crowdsignal-forms-poll__question{margin:0 0 44px}.crowdsignal-forms-poll h3.crowdsignal-forms-poll__question:first-child{margin-top:0}.crowdsignal-forms-poll .crowdsignal-forms-poll__note{font-style:italic;margin:0 0 32px}.crowdsignal-forms-poll .crowdsignal-forms-poll__content{padding:40px 24px 16px 24px}.crowdsignal-forms-poll .crowdsignal-forms-poll__content .crowdsignal-forms-poll__question{font-family:var(--crowdsignal-forms-question-font-family);line-height:1.4}.crowdsignal-forms-poll .crowdsignal-forms-poll__content .crowdsignal-forms-poll__answer-label,.crowdsignal-forms-poll .crowdsignal-forms-poll__content .crowdsignal-forms-poll__answer-results-answer,.crowdsignal-forms-poll .crowdsignal-forms-poll__content .crowdsignal-forms-poll__note{font-family:var(--crowdsignal-forms-body-font-family)}.entry-content .alignfull.crowdsignal-poll-wrapper .crowdsignal-forms-poll .crowdsignal-forms-poll__content{margin:0 auto;max-width:var(--crowdsignal-forms-content-wide-width)}@media screen and (min-width: 660px){.alignwide.crowdsignal-poll-wrapper .crowdsignal-forms-poll .crowdsignal-forms-poll__content,.alignfull.crowdsignal-poll-wrapper .crowdsignal-forms-poll .crowdsignal-forms-poll__content{padding:80px}}.crowdsignal-forms-poll.is-closed .crowdsignal-forms-poll__form{opacity:0.5}.crowdsignal-forms-poll.is-hidden{opacity:0.5}.crowdsignal-forms-poll.has-text-color{color:var(--crowdsignal-forms-text-color)}.crowdsignal-forms-poll.has-bg-color{background-color:var(--crowdsignal-forms-bg-color)}.crowdsignal-forms-poll.has-border-radius{border-radius:var(--crowdsignal-forms-border-radius);overflow:hidden}.crowdsignal-forms-poll.has-box-shadow{box-shadow:0 3px 6px rgba(0,0,0,0.16),0 3px 6px rgba(0,0,0,0.23)}.crowdsignal-forms-poll .is-transparent{opacity:0;pointer-events:none}.crowdsignal-forms-poll__block-button .crowdsignal-forms-poll__submit-button{-webkit-appearance:initial}.crowdsignal-forms-poll__block-button .crowdsignal-forms-poll__submit-button:disabled{opacity:0.7}.crowdsignal-forms-poll.has-submit-button-text-color .crowdsignal-forms-poll__block-button .crowdsignal-forms-poll__submit-button.wp-block-button__link{color:var(--crowdsignal-forms-submit-button-text-color)}.crowdsignal-forms-poll.has-submit-button-bg-color .crowdsignal-forms-poll__block-button .crowdsignal-forms-poll__submit-button.wp-block-button__link{background-color:var(--crowdsignal-forms-submit-button-bg-color)}.crowdsignal-forms-poll.has-submit-button-bg-color .crowdsignal-forms-poll__block-button .crowdsignal-forms-poll__submit-button.wp-block-button__link:hover{opacity:0.9}.crowdsignal-forms-poll__options.is-button{display:flex;flex-direction:column;flex-wrap:wrap}.crowdsignal-forms-poll__options.is-button.is-inline-button-alignment{flex-direction:row}.crowdsignal-forms-poll__answer{display:flex;font-size:inherit;font-weight:600;margin:0;padding:0 2px;position:relative}.crowdsignal-forms-poll__answer.is-button{margin-inline-end:20px;margin-block-end:20px;max-width:100%}.crowdsignal-forms-poll__answer.is-button .wp-block-button.crowdsignal-forms-poll__block-button,.crowdsignal-forms-poll__answer.is-button .crowdsignal-forms-poll__submit-button{max-width:100%}.crowdsignal-forms-poll__answer.is-button .crowdsignal-forms-poll__submit-button{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.crowdsignal-forms-poll__answer:not(.is-button){cursor:pointer;margin-block-end:12px;width:100%}.crowdsignal-forms-poll__answer>.crowdsignal-forms-poll__answer{margin-block-end:0}.crowdsignal-forms-poll__answer:hover,.crowdsignal-forms-poll__answer.is-focused{color:var(--crowdsignal-forms-submit-button-bg-color)}.has-voted .crowdsignal-forms-poll__answer{opacity:0.5}input[type="checkbox"].crowdsignal-forms-poll__input,input[type="radio"].crowdsignal-forms-poll__input{height:0;opacity:0;position:absolute;width:0}.crowdsignal-forms-poll__check{display:inline-block;height:1em;margin:0 0 0 10px;position:relative;width:1em}.crowdsignal-forms-poll__check::before{background-color:transparent;border:1.5px solid var(--crowdsignal-forms-text-color);border-radius:50%;box-sizing:border-box;content:"";display:block;height:100%;transition:background-color 0.3s, border-color 0.3s;width:100%}.crowdsignal-forms-poll__answer.is-multiple-choice .crowdsignal-forms-poll__check::before{border-radius:3px}.crowdsignal-forms-poll__answer.is-multiple-choice.is-selected .crowdsignal-forms-poll__check::before{border-color:var(--crowdsignal-forms-text-color);background-color:var(--crowdsignal-forms-text-color)}.crowdsignal-forms-poll__answer.is-selected:not(.is-multiple-choice) .crowdsignal-forms-poll__check::after{animation-duration:0.3s;animation-name:crowdsignal-forms-animation__pop;animation-iteration-count:1;background-clip:padding-box;background-color:var(--crowdsignal-forms-text-color);border:4.5px solid transparent;border-radius:50%;box-sizing:border-box;content:"";display:block;height:100%;position:absolute;right:0;top:0;width:100%}.crowdsignal-forms-poll__answer.is-selected.is-multiple-choice .crowdsignal-forms-poll__check::after{border-color:var(--crowdsignal-forms-submit-button-text-color);border-style:solid;border-width:0 2px 2px 0;box-sizing:border-box;content:"";display:block;height:25%;margin:-0.1em -0.2em 0 0;position:absolute;right:50%;top:50%;transform:rotateZ(45deg);width:50%}div.crowdsignal-forms-poll__answer-label-wrapper{flex:1;word-break:break-word}div.crowdsignal-forms-poll__answer-label-wrapper span.crowdsignal-forms-poll__answer-label{line-height:1;vertical-align:top}div.crowdsignal-forms-poll__answer-label-wrapper span.crowdsignal-forms-poll__answer-label span::after{vertical-align:top}.crowdsignal-forms-poll__button{border:0;padding:0}.crowdsignal-forms-poll__actions .wp-block-button,.crowdsignal-forms-poll__options .wp-block-button{margin:0}.crowdsignal-forms-poll__actions{display:flex;justify-content:flex-end;margin-top:32px;margin-bottom:16px}.editor-styles-wrapper .crowdsignal-forms-poll .crowdsignal-forms-poll__actions .wp-block-button.crowdsignal-forms-poll__block-button,.editor-styles-wrapper .crowdsignal-forms-poll .crowdsignal-forms-poll__options .wp-block-button.crowdsignal-forms-poll__block-button{margin:0;line-height:0}.crowdsignal-forms-poll__closed-banner{background-color:var(--crowdsignal-forms-border-color);box-sizing:border-box;display:flex;color:var(--crowdsignal-forms-submit-button-text-color);font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;justify-content:center;padding:calc(var(--crowdsignal-forms-border-width) + 0.2em) 0 0.2em;width:100%}.is-hidden .crowdsignal-forms-poll__closed-banner{font-style:italic}.crowdsignal-forms-poll__error{color:red}.crowdsignal-forms-poll__results-list{margin:0 0 1em;position:relative}.crowdsignal-forms-poll__answer-results{display:flex;flex-direction:column;margin:0 0 16px;width:100%}.crowdsignal-forms-poll__answer-results:last-child{margin:0}.crowdsignal-forms-poll__answer-results-labels{align-items:flex-end;display:flex;margin:0 0 8px;width:100%;word-break:break-word}.crowdsignal-forms-poll__answer-results-answer{flex:1;font-size:1em;font-weight:600}.crowdsignal-forms-poll__answer-results-votes{font-size:0.75em;line-height:2}.crowdsignal-forms-poll__answer-results-percent{font-weight:600;line-height:1.6}.crowdsignal-forms-poll__answer-results-votes,.crowdsignal-forms-poll__answer-results-percent{font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;margin-right:20px;transition:opacity 0.3s}.crowdsignal-forms-poll__answer-results.is-error .crowdsignal-forms-poll__answer-results-votes,.crowdsignal-forms-poll__answer-results.is-error .crowdsignal-forms-poll__answer-results-percent{display:none}.crowdsignal-forms-poll__answer-results.is-loading .crowdsignal-forms-poll__answer-results-votes,.crowdsignal-forms-poll__answer-results.is-loading .crowdsignal-forms-poll__answer-results-percent{animation-duration:1.5s;animation-iteration-count:infinite;animation-name:crowdsignal-forms-animation__pulse;background-color:var(--crowdsignal-forms-text-color);font-size:0.7em;height:1em;width:50px}.crowdsignal-forms-poll__answer-results.is-loading .crowdsignal-forms-poll__answer-results-votes:last-child,.crowdsignal-forms-poll__answer-results.is-loading .crowdsignal-forms-poll__answer-results-percent:last-child{width:40px}.crowdsignal-forms-poll__answer-results-progress-track{border:1px solid;border-color:rgba(var(--crowdsignal-forms-text-color-properties), 0.3);box-sizing:border-box;height:1em;width:100%}.crowdsignal-forms-poll__answer-results.is-loading .crowdsignal-forms-poll__answer-results-progress-track{animation-duration:1.5s;animation-iteration-count:infinite;animation-name:crowdsignal-forms-animation__pulse}.crowdsignal-forms-poll__answer-results-progress-bar{animation-fill-mode:forwards;background-color:var(--crowdsignal-forms-submit-button-bg-color);height:100%;transition:background-color 0.3s, width 0.3s}.crowdsignal-forms-poll__answer-results.is-error .crowdsignal-forms-poll__answer-results-progress-bar{width:0}.crowdsignal-forms-poll__answer-results.is-loading .crowdsignal-forms-poll__answer-results-progress-bar{background-color:var(--crowdsignal-forms-text-color);width:25%}.crowdsignal-forms-poll__answer-results.is-loading:nth-child(5n+1) .crowdsignal-forms-poll__answer-results-progress-bar{width:40%}.crowdsignal-forms-poll__answer-results.is-loading:nth-child(5n+2) .crowdsignal-forms-poll__answer-results-progress-bar{width:75%}.crowdsignal-forms-poll__answer-results.is-loading:nth-child(5n+3) .crowdsignal-forms-poll__answer-results-progress-bar{width:50%}.crowdsignal-forms-poll__answer-results.is-loading:nth-child(5n+4) .crowdsignal-forms-poll__answer-results-progress-bar{width:60%}.crowdsignal-forms-poll__results-footer{display:flex;flex-direction:column;justify-content:space-between;width:100%;font-size:0.9em}.crowdsignal-forms-poll__results-total{font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;position:relative;text-align:left;width:100%;margin-bottom:1em}.crowdsignal-forms-poll__results.is-loading .crowdsignal-forms-poll__results-total{color:transparent}.crowdsignal-forms-poll__results.is-loading .crowdsignal-forms-poll__results-total::before{animation-name:crowdsignal-forms-animation__pulse;animation-duration:1.5s;animation-iteration-count:infinite;background-color:var(--crowdsignal-forms-text-color);content:"";display:block;position:absolute;left:0;height:1em;width:150px}.crowdsignal-forms-poll__error-banner{font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;font-size:13px;margin-top:24px;padding:18px 24px;color:#d82e20;border-right:4px solid #d82e20;background:#f8dad8}.crowdsignal-forms-poll__submit-message-container{position:absolute;background-color:var(--crowdsignal-forms-bg-color);right:0;top:0;width:100%;height:100%;overflow:hidden}.has-default-thankyou .crowdsignal-forms-poll__submit-message-container{background-color:#fff}.crowdsignal-forms-poll__submit-message{position:relative}.crowdsignal-forms-poll__submit-message button.crowdsignal-forms-poll__dismiss-submit-message{position:absolute;left:0;top:0;background-color:transparent;color:#000;text-decoration:none;border:none}.crowdsignal-forms-poll__submit-message button.crowdsignal-forms-poll__dismiss-submit-message:hover{background:inherit}.crowdsignal-forms-poll__submit-message-footer{position:absolute;bottom:0;right:0;padding:16px 24px;width:100%;background-color:inherit}.crowdsignal-forms-poll__thank-you-cs-sticker{left:25px;top:66px}.crowdsignal-forms-poll__thank-you-sticker{left:132px;top:12px}.crowdsignal-forms-poll__thank-you-cs-sticker,.crowdsignal-forms-poll__thank-you-sticker{filter:drop-shadow(0 1px 2px rgba(0,0,0,0.2));width:100px;height:100px;position:absolute}.crowdsignal-forms-poll__custom-message-check{color:var(--crowdsignal-forms-text-color);padding-right:24px;padding-top:24px}.crowdsignal-forms-poll__custom-message{font-family:var(--crowdsignal-forms-question-font-family);font-weight:600;padding:16px 24px}.wp_block-crowdsignal-forms-poll__vote-branding{margin-top:16px}.crowdsignal-forms__style-probe{display:none}.crowdsignal-forms__footer-branding{align-items:center;display:flex;margin-top:16px;width:100%}.crowdsignal-forms__footer-branding img.crowdsignal-forms__footer-branding-logo{height:50px;margin-right:auto;margin-left:0;width:50px}.crowdsignal-forms__footer-branding .crowdsignal-forms__branding-promote{display:inline-flex;font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;font-size:10px;text-decoration:none !important;box-shadow:none;border:0;background-color:#a4a4a4a4;color:#fff;cursor:pointer;padding-left:8px;padding-right:8px;margin-right:16px;border-radius:2px;padding-top:2px;padding-bottom:2px;vertical-align:middle}.crowdsignal-forms__footer-cs-link{display:inline-flex;font-family:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;font-size:inherit;line-height:inherit;text-decoration:none;text-transform:uppercase;vertical-align:middle;border-bottom:0 solid var(--crowdsignal-forms-text-color) !important}.crowdsignal-forms__footer-cs-link:not(:hover){color:var(--crowdsignal-forms-text-color);opacity:0.4}.has-default-thankyou .crowdsignal-forms__footer-cs-link{color:#333}
changelog.txt CHANGED
@@ -1,126 +1,139 @@
1
- = 1.5.1 =
2
- * Finetune footer branding (#115)
3
- * New Feedback block added (#110)
4
- * Use 'crowdsignal_forms_translations_path' filter to load translations (#61)
5
- * Action: Use make command to build all blocks (#74)
6
- * Get rid of docker step for pot file (#65)
7
- * Add Github action for nightly builds
8
- * Fix double entry (no uses and run on same step) (#70)
9
- * Back to basic syntax
10
- * More action debugging
11
- * Simpler syntax, no inputs (#67)
12
- * move syntax, debugging error on L1 (#66)
13
-
14
- = 1.4.5 =
15
- * Fix preview button causing the NPS block to break when creating a new block
16
- * Fix linter errors
17
- * Update the NPS preview button to behave identically to the editor's one
18
- * Change translations pipeline (#57)
19
- * Add UA and X-Forwarded-For headers for proper response results tracking (#53)
20
- * Use RichText.Content component on frontend (#55)
21
- * Use optimistic requests for submitting NPS block results
22
- * Change copy edits (#56)
23
- * Disable HTML editing and block reusability
24
-
25
- = 1.4.3 =
26
- * Add NPS block
27
- * Fixed redirect logic for the poll block
28
-
29
- = 1.3.5 =
30
- * Show branding on editor and a message when free signals are exhausted (#11)
31
- * Remove redirect URL feature (#12)
32
-
33
- = 1.3.4 =
34
- * Escape the redirect address to avoid XSS. (#7)
35
- * Bump tested version to 5.6 (#8)
36
- * Unset margins on applause count container (#6)
37
-
38
- = 1.3.3 =
39
- * Unwrap all i18n calls (#1)
40
- * Use default theme font for Applause count (#3)
41
- * Fix applause branding styles (#4)
42
-
43
- = 1.3.0 =
44
- * Track vote to be able to tell when user has already "clapped" (#355)
45
- * Fix undefined warnings (#349)
46
- * Fix applause icon sizes (#352)
47
- * Update hover effects (#353)
48
- * Fixes for missing vote props (#348)
49
- * Update Applause block meta (#341)
50
- * Make disabled state not react to hover nor click (#345)
51
- * Fix block paddings (#346)
52
- * Add border controls for applause block (#344)
53
- * Update composer libs (#347)
54
- * Pass required attribute to vote-item component (#343)
55
- * Add correct applause icon & animation (#337)
56
- * Update/referral link applause block (#333)
57
- * Update applause count parameter (#331)
58
- * Make clap text and count not selectable (#327)
59
- * Allow the colours of the applause block to be changed (#322)
60
- * Add branding to Applause Block (#326)
61
- * Display the applause claps from the API (#325)
62
- * Queue Claps On Click (#324)
63
- * Check for applause block when deciding if a poll block
64
- * Add close status to sidebar and close visual effect.
65
- * Add/block sizes (#316)
66
- * Add a thumbs up icon (placeholder) and some margin around it.
67
- * add support for syncing applause block type to crowdsignal (#318)
68
- * Add skeleton of applause block (#314)
69
-
70
- = 1.2.1 =
71
- * Center brand link with vote items (#336)
72
- * Fix CSS Animation for Voting Thumbs (#332)
73
- * Vote Block: Set focus Styling to hover styling (#329)
74
- * clean up attribute passing to vote-item (#323)
75
- * Add referral code to public Crowdsignal links (#330)
76
-
77
- = 1.2.0 =
78
- * add more keywords to vote and poll block (#310)
79
- * Show current account info on API key selection screen (#317)
80
- * refactor common code for poll based blocks (#311)
81
- * set mappings for missing meta values (#309)
82
- * Fix Default Title not syncing to platform (#253)
83
- * Consolidate Custom Mutation Observers Into Library Function (#244)
84
- * change Block interface into abstract class, move common helpers there. (#243)
85
- * Add Crowdsignal block category to house all blocks within the plugin (#246)
86
- * Vote block
87
- * Update admin notices style (#305)
88
- * Check API key is not empty before attempting to update connection settings
89
- * Adding a slight opacity change when hovering a button that has a custom bg color set. (#303)
90
- * Update/security fixes (#302)
91
-
92
- = 1.1.1 =
93
- * Don't Request User Code on Save if there is nothing to save (#284)
94
- * Skip the setup screen if a user code is saved (#282)
95
-
96
- = 1.1.0 =
97
- * Implement a poll width setting (#255)
98
- * fix method used when updating poll ids in post meta (#257)
99
- * Fix archiving of poll blocks in comments (#256)
100
- * Address the comments from the p2tenberg compatibility pr. (#252)
101
- * P2tenberg: Get The Edit Bar To Display in p2tenberg (#254)
102
- * keep button placeholder on focus of button answers for a less jarring editing experience (#242)
103
- * P2tenberg compatibility (#175)
104
- * Change radio/checkbox fill colour to text colour (#241)
105
- * Add release preparation script (#240)
106
- * Add Button Answer Type (with actual buttons) (#230)
107
- * Add a link for crowdsignal.com In Sidebar for an Unpublished Poll (#239)
108
- * remove ios styling from submit button (#225)
109
- * Move asset definitions to the `block` class to simplify adding new blocks (#224)
110
- * update branches that travis will build (#233)
111
- * Add wp-editor dependency
112
-
113
- = 1.0 =
114
- * Update default sidebar status
115
- * Increase Default Poll Margins
116
- * Test suite for admin hooks
117
- * Copy text reviews
118
- * Added support for loading curated list of google fonts
119
- * Normalize "thanks you" message
120
- * Fix display of "thank you" message (custom and default) on dark backgrounds
121
- * Add Separate Question and Body Font Family fallbacks
122
- * Fix styles on wp-admin not honoring margins
123
- * Fix submit button styling for themes with very specific selectors (ex TwentyNineteen theme)
124
- * Add Unverified Account Check
125
- * Code cleanup
126
- * Update translations
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ = 1.5.3 =
2
+ * Remove the filter as it either turns problematic or doesn't solve the issue at all (#146)
3
+ * Fix feedback form rendering issues on mobile screens (#143)
4
+ * Add filter to control transform behavior (#142)
5
+ * Add different toggle settings for the feedback button block (#139)
6
+ * Implement a toggle for making feedback email mandatory (#138)
7
+ * Add a vertical middle position for the feedback block (#140)
8
+ * Make branding enabled by default on atomic sites (#134)
9
+ * Fix poll styling issues (#135)
10
+ * Hide CS logo on the popup form (#136)
11
+ * Consistently name panel section "Settings" and subsection "Status" (#133)
12
+ * Refresh readme (#112)
13
+
14
+ = 1.5.1 =
15
+ * Finetune footer branding (#115)
16
+ * New Feedback block added (#110)
17
+ * Use 'crowdsignal_forms_translations_path' filter to load translations (#61)
18
+ * Action: Use make command to build all blocks (#74)
19
+ * Get rid of docker step for pot file (#65)
20
+ * Add Github action for nightly builds
21
+ * Fix double entry (no uses and run on same step) (#70)
22
+ * Back to basic syntax
23
+ * More action debugging
24
+ * Simpler syntax, no inputs (#67)
25
+ * move syntax, debugging error on L1 (#66)
26
+
27
+ = 1.4.5 =
28
+ * Fix preview button causing the NPS block to break when creating a new block
29
+ * Fix linter errors
30
+ * Update the NPS preview button to behave identically to the editor's one
31
+ * Change translations pipeline (#57)
32
+ * Add UA and X-Forwarded-For headers for proper response results tracking (#53)
33
+ * Use RichText.Content component on frontend (#55)
34
+ * Use optimistic requests for submitting NPS block results
35
+ * Change copy edits (#56)
36
+ * Disable HTML editing and block reusability
37
+
38
+ = 1.4.3 =
39
+ * Add NPS block
40
+ * Fixed redirect logic for the poll block
41
+
42
+ = 1.3.5 =
43
+ * Show branding on editor and a message when free signals are exhausted (#11)
44
+ * Remove redirect URL feature (#12)
45
+
46
+ = 1.3.4 =
47
+ * Escape the redirect address to avoid XSS. (#7)
48
+ * Bump tested version to 5.6 (#8)
49
+ * Unset margins on applause count container (#6)
50
+
51
+ = 1.3.3 =
52
+ * Unwrap all i18n calls (#1)
53
+ * Use default theme font for Applause count (#3)
54
+ * Fix applause branding styles (#4)
55
+
56
+ = 1.3.0 =
57
+ * Track vote to be able to tell when user has already "clapped" (#355)
58
+ * Fix undefined warnings (#349)
59
+ * Fix applause icon sizes (#352)
60
+ * Update hover effects (#353)
61
+ * Fixes for missing vote props (#348)
62
+ * Update Applause block meta (#341)
63
+ * Make disabled state not react to hover nor click (#345)
64
+ * Fix block paddings (#346)
65
+ * Add border controls for applause block (#344)
66
+ * Update composer libs (#347)
67
+ * Pass required attribute to vote-item component (#343)
68
+ * Add correct applause icon & animation (#337)
69
+ * Update/referral link applause block (#333)
70
+ * Update applause count parameter (#331)
71
+ * Make clap text and count not selectable (#327)
72
+ * Allow the colours of the applause block to be changed (#322)
73
+ * Add branding to Applause Block (#326)
74
+ * Display the applause claps from the API (#325)
75
+ * Queue Claps On Click (#324)
76
+ * Check for applause block when deciding if a poll block
77
+ * Add close status to sidebar and close visual effect.
78
+ * Add/block sizes (#316)
79
+ * Add a thumbs up icon (placeholder) and some margin around it.
80
+ * add support for syncing applause block type to crowdsignal (#318)
81
+ * Add skeleton of applause block (#314)
82
+
83
+ = 1.2.1 =
84
+ * Center brand link with vote items (#336)
85
+ * Fix CSS Animation for Voting Thumbs (#332)
86
+ * Vote Block: Set focus Styling to hover styling (#329)
87
+ * clean up attribute passing to vote-item (#323)
88
+ * Add referral code to public Crowdsignal links (#330)
89
+
90
+ = 1.2.0 =
91
+ * add more keywords to vote and poll block (#310)
92
+ * Show current account info on API key selection screen (#317)
93
+ * refactor common code for poll based blocks (#311)
94
+ * set mappings for missing meta values (#309)
95
+ * Fix Default Title not syncing to platform (#253)
96
+ * Consolidate Custom Mutation Observers Into Library Function (#244)
97
+ * change Block interface into abstract class, move common helpers there. (#243)
98
+ * Add Crowdsignal block category to house all blocks within the plugin (#246)
99
+ * Vote block
100
+ * Update admin notices style (#305)
101
+ * Check API key is not empty before attempting to update connection settings
102
+ * Adding a slight opacity change when hovering a button that has a custom bg color set. (#303)
103
+ * Update/security fixes (#302)
104
+
105
+ = 1.1.1 =
106
+ * Don't Request User Code on Save if there is nothing to save (#284)
107
+ * Skip the setup screen if a user code is saved (#282)
108
+
109
+ = 1.1.0 =
110
+ * Implement a poll width setting (#255)
111
+ * fix method used when updating poll ids in post meta (#257)
112
+ * Fix archiving of poll blocks in comments (#256)
113
+ * Address the comments from the p2tenberg compatibility pr. (#252)
114
+ * P2tenberg: Get The Edit Bar To Display in p2tenberg (#254)
115
+ * keep button placeholder on focus of button answers for a less jarring editing experience (#242)
116
+ * P2tenberg compatibility (#175)
117
+ * Change radio/checkbox fill colour to text colour (#241)
118
+ * Add release preparation script (#240)
119
+ * Add Button Answer Type (with actual buttons) (#230)
120
+ * Add a link for crowdsignal.com In Sidebar for an Unpublished Poll (#239)
121
+ * remove ios styling from submit button (#225)
122
+ * Move asset definitions to the `block` class to simplify adding new blocks (#224)
123
+ * update branches that travis will build (#233)
124
+ * Add wp-editor dependency
125
+
126
+ = 1.0 =
127
+ * Update default sidebar status
128
+ * Increase Default Poll Margins
129
+ * Test suite for admin hooks
130
+ * Copy text reviews
131
+ * Added support for loading curated list of google fonts
132
+ * Normalize "thanks you" message
133
+ * Fix display of "thank you" message (custom and default) on dark backgrounds
134
+ * Add Separate Question and Body Font Family fallbacks
135
+ * Fix styles on wp-admin not honoring margins
136
+ * Fix submit button styling for themes with very specific selectors (ex TwentyNineteen theme)
137
+ * Add Unverified Account Check
138
+ * Code cleanup
139
+ * Update translations
crowdsignal-forms.php CHANGED
@@ -15,7 +15,7 @@
15
  * Plugin Name: Crowdsignal Forms
16
  * Plugin URI: https://crowdsignal.com/crowdsignal-forms/
17
  * Description: Crowdsignal Form Blocks
18
- * Version: 1.5.1
19
  * Author: Automattic
20
  * Author URI: https://automattic.com/
21
  * License: GPL-2.0+
@@ -28,7 +28,7 @@ if ( ! defined( 'ABSPATH' ) ) {
28
  die;
29
  }
30
 
31
- define( 'CROWDSIGNAL_FORMS_VERSION', '1.5.1' );
32
  define( 'CROWDSIGNAL_FORMS_PLUGIN_FILE', __FILE__ );
33
  define( 'CROWDSIGNAL_FORMS_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
34
 
15
  * Plugin Name: Crowdsignal Forms
16
  * Plugin URI: https://crowdsignal.com/crowdsignal-forms/
17
  * Description: Crowdsignal Form Blocks
18
+ * Version: 1.5.3
19
  * Author: Automattic
20
  * Author URI: https://automattic.com/
21
  * License: GPL-2.0+
28
  die;
29
  }
30
 
31
+ define( 'CROWDSIGNAL_FORMS_VERSION', '1.5.3' );
32
  define( 'CROWDSIGNAL_FORMS_PLUGIN_FILE', __FILE__ );
33
  define( 'CROWDSIGNAL_FORMS_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
34
 
includes/admin/class-crowdsignal-forms-settings.php CHANGED
@@ -42,7 +42,7 @@ class Crowdsignal_Forms_Settings {
42
  * Enqueues scripts for setup page.
43
  */
44
  public function admin_enqueue_scripts() {
45
- wp_enqueue_style( 'admin-styles', plugin_dir_url( __FILE__ ) . '/admin-styles.css', array(), '1.5.1' );
46
  }
47
 
48
  /**
42
  * Enqueues scripts for setup page.
43
  */
44
  public function admin_enqueue_scripts() {
45
+ wp_enqueue_style( 'admin-styles', plugin_dir_url( __FILE__ ) . '/admin-styles.css', array(), '1.5.3' );
46
  }
47
 
48
  /**
includes/admin/class-crowdsignal-forms-setup.php CHANGED
@@ -65,7 +65,7 @@ class Crowdsignal_Forms_Setup {
65
  * Enqueues scripts for setup page.
66
  */
67
  public function admin_enqueue_scripts() {
68
- wp_enqueue_style( 'admin-styles', plugin_dir_url( __FILE__ ) . '/admin-styles.css', array(), '1.5.1' );
69
  wp_enqueue_script( 'videopress', 'https://videopress.com/videopress-iframe.js', array(), '1.0', false );
70
  }
71
 
65
  * Enqueues scripts for setup page.
66
  */
67
  public function admin_enqueue_scripts() {
68
+ wp_enqueue_style( 'admin-styles', plugin_dir_url( __FILE__ ) . '/admin-styles.css', array(), '1.5.3' );
69
  wp_enqueue_script( 'videopress', 'https://videopress.com/videopress-iframe.js', array(), '1.0', false );
70
  }
71
 
includes/frontend/blocks/class-crowdsignal-forms-feedback-block.php CHANGED
@@ -140,6 +140,10 @@ class Crowdsignal_Forms_Feedback_Block extends Crowdsignal_Forms_Block {
140
  'type' => 'string',
141
  'default' => __( 'Your Email (optional)', 'crowdsignal-forms' ),
142
  ),
 
 
 
 
143
  'feedbackPlaceholder' => array(
144
  'type' => 'string',
145
  'default' => __( 'Please let us know how we can do better…', 'crowdsignal-forms' ),
@@ -171,6 +175,10 @@ class Crowdsignal_Forms_Feedback_Block extends Crowdsignal_Forms_Block {
171
  'textColor' => array(
172
  'type' => 'string',
173
  ),
 
 
 
 
174
  'triggerLabel' => array(
175
  'type' => 'string',
176
  'default' => __( 'Feedback', 'crowdsignal-forms' ),
140
  'type' => 'string',
141
  'default' => __( 'Your Email (optional)', 'crowdsignal-forms' ),
142
  ),
143
+ 'emailRequired' => array(
144
+ 'type' => 'boolean',
145
+ 'default' => false,
146
+ ),
147
  'feedbackPlaceholder' => array(
148
  'type' => 'string',
149
  'default' => __( 'Please let us know how we can do better…', 'crowdsignal-forms' ),
175
  'textColor' => array(
176
  'type' => 'string',
177
  ),
178
+ 'toggleOn' => array(
179
+ 'type' => 'string',
180
+ 'default' => 'click',
181
+ ),
182
  'triggerLabel' => array(
183
  'type' => 'string',
184
  'default' => __( 'Feedback', 'crowdsignal-forms' ),
includes/frontend/class-crowdsignal-forms-block.php CHANGED
@@ -68,7 +68,8 @@ abstract class Crowdsignal_Forms_Block {
68
  * @return bool
69
  */
70
  protected function should_hide_branding() {
71
- $enable_branding = apply_filters( 'crowdsignal_forms_branding_enabled', false );
 
72
  if ( ! $enable_branding ) {
73
  return true;
74
  }
68
  * @return bool
69
  */
70
  protected function should_hide_branding() {
71
+ $enable_branding = defined( 'IS_ATOMIC' ) && IS_ATOMIC;
72
+ $enable_branding = apply_filters( 'crowdsignal_forms_branding_enabled', $enable_branding );
73
  if ( ! $enable_branding ) {
74
  return true;
75
  }
languages/crowdsignal-forms.pot CHANGED
@@ -2,14 +2,14 @@
2
  # This file is distributed under the GPL-2.0+.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Crowdsignal Forms 1.5.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/crowdsignal-forms\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "POT-Creation-Date: 2021-05-06T13:56:15+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.4.0\n"
15
  "X-Domain: crowdsignal-forms\n"
@@ -183,33 +183,32 @@ msgid "<a href=\"%1s\" target=\"_blank\">Read more about us here.</a>"
183
  msgstr ""
184
 
185
  #: includes/frontend/blocks/class-crowdsignal-forms-feedback-block.php:141
186
- #: build/editor.js:13
187
  msgid "Your Email (optional)"
188
  msgstr ""
189
 
190
- #: includes/frontend/blocks/class-crowdsignal-forms-feedback-block.php:145
191
  #: build/editor.js:13
192
  msgid "Please let us know how we can do better…"
193
  msgstr ""
194
 
195
- #: includes/frontend/blocks/class-crowdsignal-forms-feedback-block.php:149
196
  #: build/editor.js:13
197
  msgid "👋 Hey there!"
198
  msgstr ""
199
 
200
- #: includes/frontend/blocks/class-crowdsignal-forms-feedback-block.php:161
201
  #: includes/frontend/blocks/class-crowdsignal-forms-nps-block.php:154
202
  #: includes/frontend/blocks/class-crowdsignal-forms-poll-block.php:155
203
  #: build/editor.js:13
204
  msgid "Submit"
205
  msgstr ""
206
 
207
- #: includes/frontend/blocks/class-crowdsignal-forms-feedback-block.php:165
208
  #: build/editor.js:13
209
  msgid "Thanks for letting us know!"
210
  msgstr ""
211
 
212
- #: includes/frontend/blocks/class-crowdsignal-forms-feedback-block.php:176
213
  #: build/editor.js:13
214
  msgid "Feedback"
215
  msgstr ""
@@ -405,11 +404,7 @@ msgid "Redirect address"
405
  msgstr ""
406
 
407
  #: build/editor.js:13
408
- msgid "Poll status"
409
- msgstr ""
410
-
411
- #: build/editor.js:13
412
- msgid "Currently"
413
  msgstr ""
414
 
415
  #: build/editor.js:13
@@ -652,10 +647,6 @@ msgstr ""
652
  msgid "Title of the vote block"
653
  msgstr ""
654
 
655
- #: build/editor.js:13
656
- msgid "Status"
657
- msgstr ""
658
-
659
  #: build/editor.js:13
660
  msgid "Close vote block on"
661
  msgstr ""
@@ -836,10 +827,6 @@ msgstr ""
836
  msgid "Button text color"
837
  msgstr ""
838
 
839
- #: build/editor.js:13
840
- msgid "Survey Status"
841
- msgstr ""
842
-
843
  #: build/editor.js:13
844
  msgid "Close on"
845
  msgstr ""
@@ -964,6 +951,10 @@ msgstr ""
964
  msgid "Very satisfied"
965
  msgstr ""
966
 
 
 
 
 
967
  #: build/editor.js:13
968
  msgid "Send me responses via email"
969
  msgstr ""
@@ -980,6 +971,50 @@ msgstr ""
980
  msgid "Hide Shadow"
981
  msgstr ""
982
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
983
  #: build/editor.js:13
984
  msgid "Question"
985
  msgstr ""
2
  # This file is distributed under the GPL-2.0+.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Crowdsignal Forms 1.5.3\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/crowdsignal-forms\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "POT-Creation-Date: 2021-05-17T20:50:47+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.4.0\n"
15
  "X-Domain: crowdsignal-forms\n"
183
  msgstr ""
184
 
185
  #: includes/frontend/blocks/class-crowdsignal-forms-feedback-block.php:141
 
186
  msgid "Your Email (optional)"
187
  msgstr ""
188
 
189
+ #: includes/frontend/blocks/class-crowdsignal-forms-feedback-block.php:149
190
  #: build/editor.js:13
191
  msgid "Please let us know how we can do better…"
192
  msgstr ""
193
 
194
+ #: includes/frontend/blocks/class-crowdsignal-forms-feedback-block.php:153
195
  #: build/editor.js:13
196
  msgid "👋 Hey there!"
197
  msgstr ""
198
 
199
+ #: includes/frontend/blocks/class-crowdsignal-forms-feedback-block.php:165
200
  #: includes/frontend/blocks/class-crowdsignal-forms-nps-block.php:154
201
  #: includes/frontend/blocks/class-crowdsignal-forms-poll-block.php:155
202
  #: build/editor.js:13
203
  msgid "Submit"
204
  msgstr ""
205
 
206
+ #: includes/frontend/blocks/class-crowdsignal-forms-feedback-block.php:169
207
  #: build/editor.js:13
208
  msgid "Thanks for letting us know!"
209
  msgstr ""
210
 
211
+ #: includes/frontend/blocks/class-crowdsignal-forms-feedback-block.php:184
212
  #: build/editor.js:13
213
  msgid "Feedback"
214
  msgstr ""
404
  msgstr ""
405
 
406
  #: build/editor.js:13
407
+ msgid "Status"
 
 
 
 
408
  msgstr ""
409
 
410
  #: build/editor.js:13
647
  msgid "Title of the vote block"
648
  msgstr ""
649
 
 
 
 
 
650
  #: build/editor.js:13
651
  msgid "Close vote block on"
652
  msgstr ""
827
  msgid "Button text color"
828
  msgstr ""
829
 
 
 
 
 
830
  #: build/editor.js:13
831
  msgid "Close on"
832
  msgstr ""
951
  msgid "Very satisfied"
952
  msgstr ""
953
 
954
+ #: build/editor.js:13
955
+ msgid "Your Email"
956
+ msgstr ""
957
+
958
  #: build/editor.js:13
959
  msgid "Send me responses via email"
960
  msgstr ""
971
  msgid "Hide Shadow"
972
  msgstr ""
973
 
974
+ #: build/editor.js:13
975
+ msgid "Show feedback form on:"
976
+ msgstr ""
977
+
978
+ #: build/editor.js:13
979
+ msgid "Click"
980
+ msgstr ""
981
+
982
+ #: build/editor.js:13
983
+ msgid "Hover"
984
+ msgstr ""
985
+
986
+ #: build/editor.js:13
987
+ msgid "Page load"
988
+ msgstr ""
989
+
990
+ #: build/editor.js:13
991
+ msgid "Require email address"
992
+ msgstr ""
993
+
994
+ #: build/editor.js:13
995
+ msgid "Top"
996
+ msgstr ""
997
+
998
+ #: build/editor.js:13
999
+ msgid "Bottom"
1000
+ msgstr ""
1001
+
1002
+ #: build/editor.js:13
1003
+ msgid "Left"
1004
+ msgstr ""
1005
+
1006
+ #: build/editor.js:13
1007
+ msgid "Right"
1008
+ msgstr ""
1009
+
1010
+ #: build/editor.js:13
1011
+ msgid "Center"
1012
+ msgstr ""
1013
+
1014
+ #: build/editor.js:13
1015
+ msgid "Change block position"
1016
+ msgstr ""
1017
+
1018
  #: build/editor.js:13
1019
  msgid "Question"
1020
  msgstr ""