Version Description
- 2021-05-20 =
- Fixed support for checkbox, radio and select fields added by other plugins
- Added support for WooCommerce 5.3
Download this release
Release Info
Developer | wpdesk |
Plugin | Flexible Checkout Fields for WooCommerce – WooCommerce Checkout Manager |
Version | 3.0.10 |
Comparing to | |
See all releases |
Code changes from version 3.0.9 to 3.0.10
- assets/css/new-admin.css +1 -1
- assets/js/admin-notice.js +21 -20
- assets/js/admin-notice.min.js +4 -4
- assets/js/new-admin.js +1 -1
- flexible-checkout-fields.php +4 -4
- lang/flexible-checkout-fields.pot +9 -5
- readme.txt +4 -0
- src/Field/Type/DefaultType.php +10 -10
- src/Settings/Form/EditFieldsForm.php +13 -0
- src/Settings/Option/CustomFieldDisabledOption.php +25 -0
- src/Settings/Page.php +1 -0
- templates/notices/review.php +2 -2
- vendor/autoload.php +1 -1
- vendor/composer/autoload_classmap.php +1 -0
- vendor/composer/autoload_real.php +4 -4
- vendor/composer/autoload_static.php +5 -4
- vendor/composer/installed.json +11 -8
- vendor/psr/log/Psr/Log/AbstractLogger.php +16 -16
- vendor/psr/log/Psr/Log/LoggerAwareTrait.php +1 -1
- vendor/psr/log/composer.json +1 -1
- vendor_prefixed/monolog/monolog/src/Monolog/ErrorHandler.php +1 -1
- vendor_prefixed/monolog/monolog/src/Monolog/Utils.php +1 -1
- vendor_prefixed/wpdesk/wp-code-sniffer/composer.json +2 -2
- vendor_prefixed/wpdesk/wp-codeception/composer.json +1 -1
- vendor_prefixed/wpdesk/wp-codeception/src/WPDesk/Composer/Plugin.php +16 -0
assets/css/new-admin.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
@keyframes rotate{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@font-face{font-family:fcf-icomoon;src:url(../fonts/icons/icomoon.eot);src:url(../fonts/icons/icomoon.woff) format("woff"),url(../fonts/icons/icomoon.eot#iefix) format("embedded-opentype"),url(../fonts/icons/icomoon.ttf) format("truetype"),url(../fonts/icons/icomoon.svg#icomoon) format("svg");font-weight:400;font-style:normal}.icon-align-left:before{content:"\E900"!important}.icon-align-left:before,.icon-bookmark:before{font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-bookmark:before{content:"\E920"!important}.icon-brush:before{content:"\E901"!important}.icon-brush:before,.icon-calendar-alt:before{font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-calendar-alt:before{content:"\E902"!important}.icon-caret-down:before{content:"\E903"!important}.icon-caret-down:before,.icon-caret-left:before{font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-caret-left:before{content:"\E904"!important}.icon-caret-right:before{content:"\E905"!important}.icon-caret-right:before,.icon-caret-up:before{font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-caret-up:before{content:"\E906"!important}.icon-check:before{content:"\E907"!important}.icon-check-square:before,.icon-check:before{font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-check-square:before{content:"\E908"!important}.icon-clock:before{content:"\E909"!important}.icon-clock:before,.icon-code:before{font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-code:before{content:"\E90A"!important}.icon-cog:before{content:"\E90B"!important}.icon-cog:before,.icon-cogs:before{font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-cogs:before{content:"\E90C"!important}.icon-dollar-sign:before{content:"\E90D"!important}.icon-dollar-sign:before,.icon-ellipsis-v:before{font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-ellipsis-v:before{content:"\E90E"!important}.icon-exchange-alt:before{content:"\E90F"!important}.icon-exchange-alt:before,.icon-exclamation-triangle:before{font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-exclamation-triangle:before{content:"\E926"!important}.icon-eye:before{content:"\E910"!important}.icon-eye:before,.icon-font:before{font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-font:before{content:"\E911"!important}.icon-heading:before{content:"\E912"!important}.icon-heading:before,.icon-heart:before{font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-heart:before{content:"\E921"!important}.icon-list-ul:before{content:"\E913"!important}.icon-list-ul:before,.icon-long-arrow-alt-down:before{font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-long-arrow-alt-down:before{content:"\E914"!important}.icon-long-arrow-alt-left:before{content:"\E915"!important}.icon-long-arrow-alt-left:before,.icon-long-arrow-alt-right:before{font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-long-arrow-alt-right:before{content:"\E916"!important}.icon-long-arrow-alt-up:before{content:"\E917"!important}.icon-long-arrow-alt-up:before,.icon-magic:before{font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-magic:before{content:"\E918"!important}.icon-palette:before{content:"\E919"!important}.icon-palette:before,.icon-plugin-symbol:before{font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-plugin-symbol:before{content:"\E923"!important}.icon-plus:before{content:"\E91A"!important}.icon-plus:before,.icon-question-circle:before{font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-question-circle:before{content:"\E91B"!important}.icon-spinner:before{content:"\E925"!important}.icon-spinner:before,.icon-star:before{font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-star:before{content:"\E922"!important}.icon-tasks:before{content:"\E91D"!important}.icon-tasks-alt:before,.icon-tasks:before{font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-tasks-alt:before{content:"\E91C"!important}.icon-times:before{content:"\E91E"!important}.icon-times:before,.icon-trash-alt:before{font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-trash-alt:before{content:"\E924"!important}.icon-upload:before{content:"\E91F"!important;font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fcfSettings,.fcfSettings *,.fcfSettings :after,.fcfSettings :before{margin:0;padding:0;box-sizing:border-box;box-shadow:none;text-decoration:none}.fcfSettings a,.fcfSettings a:focus{box-shadow:none;outline:0}.fcfSettings__headline{position:relative;padding:2px 0 2px 50px;font-weight:400;font-size:24px;line-height:1.375;color:#1e1e1e}.fcfSettings__headline:before{position:absolute;top:50%;left:0;transform:translateY(-50%);font-size:30px;line-height:1;color:#2271b1;content:"\E923"!important;font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fcfSettings__footer{padding:2px 0;font-size:14px;line-height:1.8571428571;text-align:center}.fcfSettings__footer a{font-weight:500;color:inherit}.fcfSettings__footerIcon{display:inline-block;padding:0 3px}.fcfSettings__footerIcon+.fcfSettings__footerIcon{margin-left:-6px}.fcfSettings__footerIcon--heart:before{color:#dc3232;content:"\E921"!important;font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fcfSettings__footerIcon--star:before{color:#ffb900;content:"\E922"!important;font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fcfSettings__columns{display:flex;flex-wrap:wrap;width:calc(100% + 20px);margin:0 -10px}.fcfSettings__columns--reverse{flex-direction:row-reverse}.fcfSettings__columns--margin{margin-top:20px}.fcfSettings__column{width:40%;padding:10px}.fcfSettings__column--wide,.fcfSettings__column:first-child:last-child{flex:1}.fcfButton{position:relative;display:inline-block;padding:7px 20px;font-weight:500;font-size:14px;line-height:1.8571428571;color:#1e1e1e;text-align:center;background:none;border:1px solid transparent;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;overflow:hidden;transition:color .3s;z-index:1}.fcfButton[disabled]{pointer-events:none}.fcfButton:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;transition:opacity .3s;z-index:-1}.fcfButton--bg:after{opacity:1}.fcfButton--bg:hover:after{opacity:0}.fcfButton--border:hover:after{opacity:1}.fcfButton--wide{width:100%}.fcfButton--small{padding:2px 20px}.fcfButton--bg{color:#fff}.fcfButton--border:hover{color:#fff!important}.fcfButton--green{border-color:#46b450}.fcfButton--green:after{background-color:#46b450}.fcfButton--green.fcfButton--bg:hover,.fcfButton--green.fcfButton--border{color:#46b450}.fcfButton--blue{border-color:#2271b1}.fcfButton--blue:after{background-color:#2271b1}.fcfButton--blue.fcfButton--bg:hover,.fcfButton--blue.fcfButton--border{color:#2271b1}.fcfButton--red{border-color:#dc3232}.fcfButton--red:after{background-color:#dc3232}.fcfButton--red.fcfButton--bg:hover,.fcfButton--red.fcfButton--border{color:#dc3232}.fcfFields__items{padding:10px}.fcfFields__item{margin:0;padding:10px;outline:none;pointer-events:none}.fcfFields__itemInner{background-color:#fff;border:1px solid #e2e4e7;pointer-events:auto}.fcfFields__itemHeader{position:relative}.fcfFields__itemHeader:before{position:absolute;top:50%;left:20px;transform:translateY(-50%);font-size:16px;line-height:1;color:rgba(30,30,30,.25);content:"\E90F"!important;font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fcfFields__itemHeaderOuter{display:flex;align-items:center;justify-content:space-between;padding:0 20px 0 56px}.fcfFields__itemHeaderInner{display:flex;align-items:center;flex:1}.fcfFields__itemHeaderTitle{flex:1;padding:12px 20px 12px 0;font-weight:500;font-size:14px;line-height:1.8571428571;color:#1e1e1e}.fcfFields__item--disabled .fcfFields__itemHeaderTitle{color:rgba(30,30,30,.25);font-style:italic}.fcfFields__itemHeaderDesc{padding:12px 0;font-size:12px;line-height:1.8571428571;color:rgba(30,30,30,.5)}.fcfFields__itemHeaderDesc--flag{position:relative;padding-left:30px}.fcfFields__itemHeaderDesc--flag:before{position:absolute;top:50%;left:0;transform:translateY(-50%);margin-top:1px;font-size:16px;line-height:1;color:#2271b1;content:"\E923"!important;font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fcfFields__itemHeaderButtons{display:flex;padding-left:20px}.fcfFields__itemHeaderButton{position:relative}.fcfFields__itemHeaderButtonInner{position:relative;width:36px;height:36px;padding:10px;line-height:0;text-align:center;border:0;outline:0;background:none;cursor:pointer;z-index:1}.fcfFields__itemHeaderButtonInner:before{content:"";font-size:16px;line-height:1;color:#1e1e1e}.fcfFields__itemHeaderButtonInner:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:#f0f0f0;border-radius:50%;opacity:0;transition:opacity .3s;z-index:-1}.fcfFields__item--disabled .fcfFields__itemHeaderButtonInner:after{background-color:#fff}.fcfFields__itemHeaderButtonInner--open:before{font-size:6px;content:"\E903"!important;font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fcfFields__itemHeaderButtonInner--close:before{font-size:6px;content:"\E906"!important;font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fcfFields__itemHeaderButtonInner--remove:before{color:#dc3232;content:"\E924"!important;font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fcfFields__itemHeaderButtonInner:hover:after{opacity:1}.fcfFields__itemContent{border-top:1px solid #f0f0f0}.fcfFields__itemTabs{background-color:rgba(0,0,0,.025);border-bottom:1px solid #f0f0f0}.fcfOptions__rows{padding:5px 20px}.fcfOptions__column .fcfOptions__rows{padding:0}.fcfOptions__row{padding:5px 0}.fcfOptions__column .fcfOptions__row{padding:0}.fcfOptions__row--padding{padding:15px 0}.fcfOptions__row--sub{padding-left:30px}.fcfOptions__columns{position:relative;display:flex;flex-wrap:wrap}.fcfOptions__columns--button{padding-right:30px}.fcfOptions__columns--button+.fcfOptions__columns--button:before{content:"";position:absolute;top:0;left:50%;transform:translateX(-50%);width:calc(100% - 20px);height:1px;background-color:#e2e4e7}.fcfOptions__column{position:relative;flex:1;max-width:100%;padding:0 10px}.fcfOptions__column--small{position:absolute;top:50%;right:0;transform:translateY(-50%);min-width:auto!important;padding:0!important}.fcfOptions__column--center{padding:5px 0 10px;text-align:center}.fcfOptions__columnButton{position:relative;margin-top:20px;padding:10px;font-size:0;border:0;outline:0;background:none;cursor:pointer;z-index:1}.fcfOptions__columnButton:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:#f0f0f0;border-radius:50%;opacity:0;transition:opacity .3s;z-index:-1}.fcfOptions__columnButton:hover:after{opacity:1}.fcfOptions__columnButton--remove:before{font-size:10px;line-height:1;color:#dc3232;content:"\E91E"!important;font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fcfOptions__error,.fcfOptions__label,.fcfOptions__labelInner,.fcfOptions__rowLabel{display:block;padding:2px 0;font-size:14px;line-height:1.8571428571;color:#1e1e1e}.fcfOptions__label{position:relative;display:inline-block;font-weight:500;z-index:1}.fcfOptions__label--line{display:block;font-size:0;overflow:hidden}.fcfOptions__labelInner{display:inline-block;max-width:calc(100% - 30px);margin-left:20px;padding:0 10px;color:#1e1e1e;background-color:#fff;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.fcfOptions__labelInner:before{content:"";position:absolute;top:50%;left:0;width:100%;height:1px;background-color:rgba(226,228,231,.75);z-index:-1}.fcfOptions__error{position:relative;margin-bottom:10px;padding-left:36px;padding-right:10px;font-weight:500;color:#fff;background-color:#dc3232}.fcfOptions__checkbox~.fcfOptions__error{margin-top:5px}.fcfOptions__error:before{position:absolute;top:50%;left:10px;transform:translateY(-50%);font-size:16px;line-height:1;content:"\E926"!important;font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fcfOptions__labelHelp,.fcfOptions__labelHelpIcon{position:relative;display:inline-block}.fcfOptions__labelHelpIcon{padding:0 10px;z-index:1}.fcfOptions__labelHelpIcon:before{display:block;font-size:14px;line-height:1.8571428571;color:#2271b1;transition:transform .3s;content:"\E91B"!important;font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fcfOptions__labelHelpIcon:hover:before{transform:scale(1.5)}.fcfOptions__input,.fcfOptions__select,.fcfOptions__textarea{margin-bottom:10px}.fcfSettings .fcfOptions__input,.fcfSettings .fcfOptions__textarea{display:block;width:100%;max-width:none;padding:7px 10px;font-size:14px;line-height:1.8571428571;color:#1e1e1e;border:1px solid #e2e4e7;border-radius:0}.fcfSettings .fcfOptions__input:focus,.fcfSettings .fcfOptions__textarea:focus{border-color:#e2e4e7;box-shadow:none;outline:0;color:#1e1e1e}.fcfSettings .fcfOptions__input[disabled],.fcfSettings .fcfOptions__textarea[disabled]{color:#1e1e1e;border-color:#e2e4e7;background-color:rgba(226,228,231,.5);text-shadow:none}.fcfSettings .fcfOptions__checkbox,.fcfSettings .fcfOptions__radio{display:none}.fcfOptions__checkbox+.fcfOptions__label,.fcfOptions__radio+.fcfOptions__label{padding-left:30px;transition:color .3s}.fcfOptions__checkbox+.fcfOptions__label:after,.fcfOptions__checkbox+.fcfOptions__label:before,.fcfOptions__radio+.fcfOptions__label:after,.fcfOptions__radio+.fcfOptions__label:before{content:"";position:absolute;top:calc(50% - 10px);left:0;width:20px;height:20px}.fcfOptions__checkbox+.fcfOptions__label:before,.fcfOptions__radio+.fcfOptions__label:before{border:1px solid #e2e4e7}.fcfOptions__checkbox+.fcfOptions__label:after,.fcfOptions__radio+.fcfOptions__label:after{font-size:10px;line-height:2;text-align:center;color:#46b450;transform:scale(0);transition:transform .3s}.fcfOptions__checkbox:hover+.fcfOptions__label,.fcfOptions__radio:hover+.fcfOptions__label{color:rgba(30,30,30,.5)}.fcfOptions__checkbox[disabled]+.fcfOptions__label:before,.fcfOptions__radio[disabled]+.fcfOptions__label:before{background-color:rgba(226,228,231,.5);border-color:#e2e4e7}.fcfOptions__checkbox+.fcfOptions__label:after{content:"\E907"!important}.fcfOptions__checkbox+.fcfOptions__label:after,.fcfOptions__radio+.fcfOptions__label:after{font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fcfOptions__radio+.fcfOptions__label:after{content:"\E91E"!important}.fcfOptions__checkbox[checked]+.fcfOptions__label:after,.fcfOptions__radio[checked]+.fcfOptions__label:after{transform:scale(1)}.fcfOptions__boxes{padding-bottom:10px}.fcfOptions__boxesItems{display:flex;flex-wrap:wrap;margin:-5px}.fcfOptions__boxesItem{width:50%;padding:5px}.fcfSettings .fcfOptions__boxesItemInput{display:none}.fcfOptions__boxesItemLabel{position:relative;display:flex;justify-content:center;align-items:center;min-height:100%;padding:7px 10px 7px 42px;font-size:14px;line-height:1.8571428571;color:#1e1e1e;text-align:center;border:1px solid #e2e4e7;transition:color .3s}.fcfOptions__boxesItemLabel:hover{color:rgba(30,30,30,.5)}.fcfOptions__boxesItemLabel:before{position:absolute;top:calc(50% - 11px);left:10px;font-size:22px;line-height:1;color:rgba(30,30,30,.75)!important}.fcfOptions__boxesItemLabel:after{content:"";position:absolute;top:-1px;left:-1px;width:calc(100% + 2px);height:calc(100% + 2px);border:2px solid #2271b1;opacity:0;transition:opacity .3s}.fcfOptions__boxesItemInput:checked+.fcfOptions__boxesItemLabel{color:#1e1e1e}.fcfOptions__boxesItemInput:checked+.fcfOptions__boxesItemLabel:after{opacity:1}.fcfOptions__info{margin:0 -20px;padding:10px 0}.fcfOptions__row:first-child .fcfOptions__info{margin-top:-20px}.fcfOptions__row:last-child .fcfOptions__info{margin-bottom:-20px}.fcfOptions__infoInner{padding:12px 20px;font-size:14px;line-height:1.8571428571;color:#fff;background-color:#2271b1}.fcfOptions__info--green .fcfOptions__infoInner{background-color:#46b450}.fcfOptions__info--yellow .fcfOptions__infoInner{background-color:#dba617}.fcfOptions__infoInner a{position:relative;display:inline-block;font-weight:500;color:inherit;white-space:nowrap;transition:opacity .3s}.fcfOptions__infoInner a:hover{opacity:.5}.fcfOptions__infoInner a:after{content:"";position:absolute;bottom:0;left:0;width:100%;height:1px;background-color:#fff}.fcfOptions__infoInner a.fcfArrowLink{padding-right:18px;text-transform:uppercase;letter-spacing:1px;opacity:1}.fcfOptions__infoInner a.fcfArrowLink:after{width:0;transition:width .3s}.fcfOptions__infoInner a.fcfArrowLink:hover:after{width:100%}.fcfOptions__infoInner a.fcfArrowLink:before{position:absolute;top:50%;right:0;transform:translateY(-50%);font-size:6px;line-height:1;content:"\E916"!important;font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fcfOptions__infoInner p{font-size:14px;line-height:1.8571428571}.fcfOptions__infoInner p strong{font-weight:400;font-size:20px;line-height:1.75}.fcfOptions__infoInner ul{padding-left:10px}.fcfOptions__infoInner ul li{position:relative;padding-left:20px}.fcfOptions__infoInner ul li:before{position:absolute;top:50%;left:0;transform:translateY(-50%);font-size:10px;line-height:1;content:"\E907"!important;font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fcfOptions__infoInner p,.fcfOptions__infoInner ul{margin-top:10px}.fcfOptions__infoInner p:first-child,.fcfOptions__infoInner ul:first-child{margin-top:0}.fcfTabs__items{display:flex;flex-wrap:wrap;margin:0;padding:0}.fcfTabs--lines .fcfTabs__items{margin-top:10px;margin-bottom:-10px}.fcfTabs__item{position:relative;margin:0 0 -1px;padding:0;border-bottom:1px solid #f0f0f0}.fcfTabs--lines .fcfTabs__item{padding-right:3px}.fcfTabs--lines .fcfTabs__item:after{content:"";position:absolute;top:calc(50% - 3px);right:0;width:6px;height:6px;background-color:#2271b1;border-radius:50%}.fcfTabs__item:last-child:after{display:none}.fcfTabs__itemLink{position:relative;display:block;padding:12px 20px;font-weight:500;font-size:16px;line-height:1.75;text-align:center;color:#1e1e1e;transition:color .3s}.fcfTabs--small .fcfTabs__itemLink{font-size:14px}.fcfTabs--lines .fcfTabs__itemLink{padding:2px 20px;font-weight:400}.fcfTabs__itemLink:after{content:"";position:absolute;bottom:0;left:50%;transform:translateX(-50%);width:0;height:3px;background-color:#2271b1;transition:width .3s}.fcfTabs--lines .fcfTabs__itemLink:after{display:none}.fcfTabs__itemLink[class*=icon-]{padding:12px 15px 12px 41px}.fcfTabs__itemLink[class*=icon-]:before{position:absolute;top:calc(50% - 8px);left:15px;font-size:16px;line-height:1;color:rgba(30,30,30,.5);transition:color .3s}.fcfTabs__itemLink:hover,.fcfTabs__itemLink:hover:before{color:#2271b1}.fcfTabs__itemLink--active{pointer-events:none}.fcfTabs__itemLink--active:after{width:100%}.fcfTabs--lines .fcfTabs__itemLink--active{font-weight:500;color:#2271b1}.fcfTooltip{cursor:default}.fcfTooltip__outer{bottom:calc(100% + 10px);z-index:10000}.fcfTooltip__outer,.fcfTooltip__outer:before{position:absolute;left:50%;transform:translateX(-50%)}.fcfTooltip__outer:before{content:"";top:100%;width:0;height:0;border-color:#1e1e1e transparent transparent;border-style:solid;border-width:5px 5px 0}.fcfTooltip__inner{width:400px;max-width:calc(100vw - 40px);background-color:#1e1e1e}.fcfTooltip__text{padding:5px 10px;font-weight:400;font-size:14px;line-height:1.4285714286;color:#fff;text-align:center}.fcfTooltip__buttons{display:flex;justify-content:center;padding:5px}.fcfTooltip__button{padding:5px}.fcfWidget+.fcfWidget{margin-top:30px}.fcfWidget__inner{background-color:#fff;border:1px solid #e2e4e7;border-radius:3px}.fcfWidget__header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;border-bottom:1px solid #e2e4e7}.fcfWidget__headerTitle{padding:12px 20px;font-weight:400;font-size:20px;line-height:1.75;color:#1e1e1e}.fcfWidget__headerButtons{padding:0 10px}.fcfWidget__contentPlaceholder{padding:12px 20px;font-weight:500;font-size:14px;line-height:1.8571428571;color:#1e1e1e;text-align:center}.fcfWidget__footer{padding:10px;border-top:1px solid #f0f0f0}.fcfWidget__buttons{display:flex;flex-wrap:wrap;justify-content:space-between}.fcfWidget__button{position:relative;min-width:250px;padding:10px}.fcfWidget__buttonIcon{position:absolute;top:50%;transform:translateY(-50%);z-index:1}.fcfWidget__buttonIcon:first-child{right:calc(100% + 10px)}.fcfWidget__buttonIcon:last-child{left:calc(100% + 10px)}.fcfWidget__buttonIconInner:before{display:block;font-size:20px;line-height:1}.fcfWidget__buttonIcon--loading .fcfWidget__buttonIconInner:before{color:#1e1e1e;animation:rotate 1s ease-out infinite;content:"\E925"!important;font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fcfWidget__buttonIcon--success .fcfWidget__buttonIconInner:before{color:#46b450;content:"\E907"!important;font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fcfWidget__buttonIcon--error .fcfWidget__buttonIconInner:before{color:#dc3232;content:"\E926"!important;font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.reactSelect__control{min-height:42px!important;background:none!important;border:1px solid #e2e4e7!important;border-radius:0!important;box-shadow:none!important}.reactSelect__indicators{position:relative;width:42px;border-left:1px solid #e2e4e7!important}.reactSelect__indicators:after{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:6px;line-height:1;color:#1e1e1e;content:"\E903"!important}.reactSelect__control--menu-is-open .reactSelect__indicators:after,.reactSelect__indicators:after{font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.reactSelect__control--menu-is-open .reactSelect__indicators:after{content:"\E906"!important}.reactSelect__indicators *{display:none!important}.reactSelect__value-container{padding:4px 10px!important}.reactSelect__input input{margin:0 2px!important;min-height:0!important;font-size:14px!important;line-height:1.5714285714!important;color:#1e1e1e!important;box-shadow:none!important}.reactSelect__single-value{max-width:calc(100% - 20px)!important}.reactSelect__multi-value{border-radius:0!important;background-color:#e2e4e7!important}.reactSelect__multi-value__label{padding:2px 0 2px 10px!important;font-size:12px!important;line-height:2!important;color:#1e1e1e!important}.reactSelect__multi-value__remove{position:relative;width:30px;background:none!important;cursor:pointer}.reactSelect__multi-value__remove:after{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:10px;line-height:1;color:#1e1e1e;transition:color .3s;content:"\E91E"!important;font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.reactSelect__multi-value__remove:hover:after{color:#dc3232}.reactSelect__multi-value__remove *{display:none!important}.reactSelect__menu{margin:0!important;border-radius:0!important;box-shadow:none!important;z-index:10!important}.reactSelect__menu-notice{padding:7px 10px!important;font-size:14px!important;line-height:1.8571428571!important;color:#fff!important;background-color:#1e1e1e!important}.reactSelect__menu-list{padding:0!important}.reactSelect__option{position:relative;padding:7px 10px!important;font-size:14px!important;line-height:1.8571428571!important;color:#fff!important;border:1px solid #1e1e1e;background-color:#1e1e1e!important;cursor:pointer!important;transition:background-color .3s}.reactSelect__option+.reactSelect__option{margin-top:-1px;border-top:1px solid hsla(0,0%,100%,.25)}.reactSelect__option--is-focused{background-color:#2271b1!important}.reactSelect__option--is-selected{padding-right:42px!important;background-color:#1e1e1e!important;cursor:auto!important}.reactSelect__option--is-selected:before{position:absolute;top:50%;right:0;width:42px;transform:translateY(-50%);font-size:16px;line-height:1;text-align:center;color:#46b450;content:"\E907"!important;font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:1366px){.fcfSettings__column{width:100%}.fcfSettings__column+.fcfSettings__column{margin-top:10px}.fcfFields__items{padding:0}}@media (max-width:768px){.fcfOptions__columns{display:block}}@media (max-width:600px){.fcfFields__itemHeaderInner{display:block}.fcfFields__itemHeaderDesc{margin-top:-20px}.fcfOptions__boxesItem{width:100%}.fcfWidget__header{display:block}.fcfWidget__button{width:100%;padding:10px 40px}.fcfWidget__buttonIcon:first-child{right:0}.fcfWidget__buttonIcon:last-child{left:0}}@media (max-width:1024px),(min-width:1367px) and (max-width:1600px){.fcfOptions__row--sub{padding-left:0}.fcfOptions__columns--button{padding-right:35px}.fcfOptions__column{min-width:50%}}
|
1 |
+
@keyframes rotate{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@font-face{font-family:fcf-icomoon;src:url(../fonts/icons/icomoon.eot);src:url(../fonts/icons/icomoon.woff) format("woff"),url(../fonts/icons/icomoon.eot#iefix) format("embedded-opentype"),url(../fonts/icons/icomoon.ttf) format("truetype"),url(../fonts/icons/icomoon.svg#icomoon) format("svg");font-weight:400;font-style:normal}.icon-align-left:before{content:"\E900"!important}.icon-align-left:before,.icon-bookmark:before{font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-bookmark:before{content:"\E920"!important}.icon-brush:before{content:"\E901"!important}.icon-brush:before,.icon-calendar-alt:before{font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-calendar-alt:before{content:"\E902"!important}.icon-caret-down:before{content:"\E903"!important}.icon-caret-down:before,.icon-caret-left:before{font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-caret-left:before{content:"\E904"!important}.icon-caret-right:before{content:"\E905"!important}.icon-caret-right:before,.icon-caret-up:before{font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-caret-up:before{content:"\E906"!important}.icon-check:before{content:"\E907"!important}.icon-check-square:before,.icon-check:before{font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-check-square:before{content:"\E908"!important}.icon-clock:before{content:"\E909"!important}.icon-clock:before,.icon-code:before{font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-code:before{content:"\E90A"!important}.icon-cog:before{content:"\E90B"!important}.icon-cog:before,.icon-cogs:before{font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-cogs:before{content:"\E90C"!important}.icon-dollar-sign:before{content:"\E90D"!important}.icon-dollar-sign:before,.icon-ellipsis-v:before{font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-ellipsis-v:before{content:"\E90E"!important}.icon-exchange-alt:before{content:"\E90F"!important}.icon-exchange-alt:before,.icon-exclamation-triangle:before{font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-exclamation-triangle:before{content:"\E926"!important}.icon-eye:before{content:"\E910"!important}.icon-eye:before,.icon-font:before{font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-font:before{content:"\E911"!important}.icon-heading:before{content:"\E912"!important}.icon-heading:before,.icon-heart:before{font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-heart:before{content:"\E921"!important}.icon-list-ul:before{content:"\E913"!important}.icon-list-ul:before,.icon-long-arrow-alt-down:before{font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-long-arrow-alt-down:before{content:"\E914"!important}.icon-long-arrow-alt-left:before{content:"\E915"!important}.icon-long-arrow-alt-left:before,.icon-long-arrow-alt-right:before{font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-long-arrow-alt-right:before{content:"\E916"!important}.icon-long-arrow-alt-up:before{content:"\E917"!important}.icon-long-arrow-alt-up:before,.icon-magic:before{font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-magic:before{content:"\E918"!important}.icon-palette:before{content:"\E919"!important}.icon-palette:before,.icon-plugin-symbol:before{font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-plugin-symbol:before{content:"\E923"!important}.icon-plus:before{content:"\E91A"!important}.icon-plus:before,.icon-question-circle:before{font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-question-circle:before{content:"\E91B"!important}.icon-spinner:before{content:"\E925"!important}.icon-spinner:before,.icon-star:before{font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-star:before{content:"\E922"!important}.icon-tasks:before{content:"\E91D"!important}.icon-tasks-alt:before,.icon-tasks:before{font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-tasks-alt:before{content:"\E91C"!important}.icon-times:before{content:"\E91E"!important}.icon-times:before,.icon-trash-alt:before{font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-trash-alt:before{content:"\E924"!important}.icon-upload:before{content:"\E91F"!important;font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fcfSettings{padding:0 10px;margin:0 -10px;overflow-x:hidden}.fcfSettings,.fcfSettings *,.fcfSettings :after,.fcfSettings :before{box-sizing:border-box;box-shadow:none;text-decoration:none}.fcfSettings *,.fcfSettings :after,.fcfSettings :before{margin:0;padding:0}.fcfSettings a,.fcfSettings a:focus{box-shadow:none;outline:0}.fcfSettings__headline{position:relative;padding:2px 0 2px 50px;font-weight:400;font-size:24px;line-height:1.375;color:#1e1e1e}.fcfSettings__headline:before{position:absolute;top:50%;left:0;transform:translateY(-50%);font-size:30px;line-height:1;color:#2271b1;content:"\E923"!important;font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fcfSettings__footer{padding:2px 0;font-size:14px;line-height:1.8571428571;text-align:center}.fcfSettings__footer a{font-weight:500;color:inherit}.fcfSettings__footerIcon{display:inline-block;padding:0 3px}.fcfSettings__footerIcon+.fcfSettings__footerIcon{margin-left:-6px}.fcfSettings__footerIcon--heart:before{color:#dc3232;content:"\E921"!important;font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fcfSettings__footerIcon--star:before{color:#ffb900;content:"\E922"!important;font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fcfSettings__columns{display:flex;flex-wrap:wrap;width:calc(100% + 20px);margin:0 -10px}.fcfSettings__columns--reverse{flex-direction:row-reverse}.fcfSettings__columns--margin{margin-top:20px}.fcfSettings__column{width:40%;padding:10px}.fcfSettings__column--wide,.fcfSettings__column:first-child:last-child{flex:1}.fcfButton{position:relative;display:inline-block;padding:7px 20px;font-weight:500;font-size:14px;line-height:1.8571428571;color:#1e1e1e;text-align:center;background:none;border:1px solid transparent;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;overflow:hidden;transition:color .3s;z-index:1}.fcfButton[disabled]{pointer-events:none}.fcfButton:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;transition:opacity .3s;z-index:-1}.fcfButton--bg:after{opacity:1}.fcfButton--bg:hover:after{opacity:0}.fcfButton--border:hover:after{opacity:1}.fcfButton--wide{width:100%}.fcfButton--small{padding:2px 20px}.fcfButton--bg{color:#fff}.fcfButton--border:hover{color:#fff!important}.fcfButton--green{border-color:#46b450}.fcfButton--green:after{background-color:#46b450}.fcfButton--green.fcfButton--bg:hover,.fcfButton--green.fcfButton--border{color:#46b450}.fcfButton--blue{border-color:#2271b1}.fcfButton--blue:after{background-color:#2271b1}.fcfButton--blue.fcfButton--bg:hover,.fcfButton--blue.fcfButton--border{color:#2271b1}.fcfButton--red{border-color:#dc3232}.fcfButton--red:after{background-color:#dc3232}.fcfButton--red.fcfButton--bg:hover,.fcfButton--red.fcfButton--border{color:#dc3232}.fcfFields__items{padding:10px}.fcfFields__item{margin:0;padding:10px;outline:none;pointer-events:none}.fcfFields__itemInner{background-color:#fff;border:1px solid #e2e4e7;pointer-events:auto}.fcfFields__itemHeader{position:relative}.fcfFields__itemHeader:before{position:absolute;top:50%;left:20px;transform:translateY(-50%);font-size:16px;line-height:1;color:rgba(30,30,30,.25);content:"\E90F"!important;font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fcfFields__itemHeaderOuter{display:flex;align-items:center;justify-content:space-between;padding:0 20px 0 56px}.fcfFields__itemHeaderInner{display:flex;align-items:center;flex:1}.fcfFields__itemHeaderTitle{flex:1;padding:12px 20px 12px 0;font-weight:500;font-size:14px;line-height:1.8571428571;color:#1e1e1e}.fcfFields__item--disabled .fcfFields__itemHeaderTitle{color:rgba(30,30,30,.25);font-style:italic}.fcfFields__itemHeaderDesc{padding:12px 0;font-size:12px;line-height:1.8571428571;color:rgba(30,30,30,.5)}.fcfFields__itemHeaderDesc--flag{position:relative;padding-left:30px}.fcfFields__itemHeaderDesc--flag:before{position:absolute;top:50%;left:0;transform:translateY(-50%);margin-top:1px;font-size:16px;line-height:1;color:#2271b1;content:"\E923"!important;font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fcfFields__itemHeaderButtons{display:flex;padding-left:20px}.fcfFields__itemHeaderButton{position:relative}.fcfFields__itemHeaderButtonInner{position:relative;width:36px;height:36px;padding:10px;line-height:0;text-align:center;border:0;outline:0;background:none;cursor:pointer;z-index:1}.fcfFields__itemHeaderButtonInner:before{content:"";font-size:16px;line-height:1;color:#1e1e1e}.fcfFields__itemHeaderButtonInner:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:#f0f0f0;border-radius:50%;opacity:0;transition:opacity .3s;z-index:-1}.fcfFields__item--disabled .fcfFields__itemHeaderButtonInner:after{background-color:#fff}.fcfFields__itemHeaderButtonInner--open:before{font-size:6px;content:"\E903"!important;font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fcfFields__itemHeaderButtonInner--close:before{font-size:6px;content:"\E906"!important;font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fcfFields__itemHeaderButtonInner--remove:before{color:#dc3232;content:"\E924"!important;font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fcfFields__itemHeaderButtonInner:hover:after{opacity:1}.fcfFields__itemContent{border-top:1px solid #f0f0f0}.fcfFields__itemTabs{background-color:rgba(0,0,0,.025);border-bottom:1px solid #f0f0f0}.fcfOptions__rows{padding:5px 20px}.fcfOptions__column .fcfOptions__rows{padding:0}.fcfOptions__row{padding:5px 0}.fcfOptions__column .fcfOptions__row{padding:0}.fcfOptions__row--padding{padding:15px 0}.fcfOptions__row--sub{padding-left:30px}.fcfOptions__columns{position:relative;display:flex;flex-wrap:wrap}.fcfOptions__columns--button{padding-right:30px}.fcfOptions__columns--button+.fcfOptions__columns--button:before{content:"";position:absolute;top:0;left:50%;transform:translateX(-50%);width:calc(100% - 20px);height:1px;background-color:#e2e4e7}.fcfOptions__column{position:relative;flex:1;max-width:100%;padding:0 10px}.fcfOptions__column--small{position:absolute;top:50%;right:0;transform:translateY(-50%);min-width:auto!important;padding:0!important}.fcfOptions__column--center{padding:5px 0 10px;text-align:center}.fcfOptions__columnButton{position:relative;margin-top:20px;padding:10px;font-size:0;border:0;outline:0;background:none;cursor:pointer;z-index:1}.fcfOptions__columnButton:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:#f0f0f0;border-radius:50%;opacity:0;transition:opacity .3s;z-index:-1}.fcfOptions__columnButton:hover:after{opacity:1}.fcfOptions__columnButton--remove:before{font-size:10px;line-height:1;color:#dc3232;content:"\E91E"!important;font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fcfOptions__error,.fcfOptions__label,.fcfOptions__labelInner,.fcfOptions__rowLabel{display:block;padding:2px 0;font-size:14px;line-height:1.8571428571;color:#1e1e1e}.fcfOptions__label{position:relative;display:inline-block;font-weight:500;z-index:1}.fcfOptions__label--line{display:block;font-size:0;overflow:hidden}.fcfOptions__labelInner{display:inline-block;max-width:calc(100% - 30px);margin-left:20px;padding:0 10px;color:#1e1e1e;background-color:#fff;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.fcfOptions__labelInner:before{content:"";position:absolute;top:50%;left:0;width:100%;height:1px;background-color:rgba(226,228,231,.75);z-index:-1}.fcfOptions__error{position:relative;margin-bottom:10px;padding-left:36px;padding-right:10px;font-weight:500;color:#fff;background-color:#dc3232}.fcfOptions__checkbox~.fcfOptions__error{margin-top:5px}.fcfOptions__error:before{position:absolute;top:50%;left:10px;transform:translateY(-50%);font-size:16px;line-height:1;content:"\E926"!important;font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fcfOptions__labelHelp,.fcfOptions__labelHelpIcon{position:relative;display:inline-block}.fcfOptions__labelHelpIcon{padding:0 10px;z-index:1}.fcfOptions__labelHelpIcon:before{display:block;font-size:14px;line-height:1.8571428571;color:#2271b1;transition:transform .3s;content:"\E91B"!important;font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fcfOptions__labelHelpIcon:hover:before{transform:scale(1.5)}.fcfOptions__input,.fcfOptions__select,.fcfOptions__textarea{margin-bottom:10px}.fcfSettings .fcfOptions__input,.fcfSettings .fcfOptions__textarea{display:block;width:100%;max-width:none;padding:7px 10px;font-size:14px;line-height:1.8571428571;color:#1e1e1e;border:1px solid #e2e4e7;border-radius:0}.fcfSettings .fcfOptions__input:focus,.fcfSettings .fcfOptions__textarea:focus{border-color:#e2e4e7;box-shadow:none;outline:0;color:#1e1e1e}.fcfSettings .fcfOptions__input[disabled],.fcfSettings .fcfOptions__textarea[disabled]{color:#1e1e1e;border-color:#e2e4e7;background-color:rgba(226,228,231,.5);text-shadow:none}.fcfSettings .fcfOptions__checkbox,.fcfSettings .fcfOptions__radio{display:none}.fcfOptions__checkbox+.fcfOptions__label,.fcfOptions__radio+.fcfOptions__label{padding-left:30px;transition:color .3s}.fcfOptions__checkbox+.fcfOptions__label:after,.fcfOptions__checkbox+.fcfOptions__label:before,.fcfOptions__radio+.fcfOptions__label:after,.fcfOptions__radio+.fcfOptions__label:before{content:"";position:absolute;top:calc(50% - 10px);left:0;width:20px;height:20px}.fcfOptions__checkbox+.fcfOptions__label:before,.fcfOptions__radio+.fcfOptions__label:before{border:1px solid #e2e4e7}.fcfOptions__checkbox+.fcfOptions__label:after,.fcfOptions__radio+.fcfOptions__label:after{font-size:10px;line-height:2;text-align:center;color:#46b450;transform:scale(0);transition:transform .3s}.fcfOptions__checkbox:hover+.fcfOptions__label,.fcfOptions__radio:hover+.fcfOptions__label{color:rgba(30,30,30,.5)}.fcfOptions__checkbox[disabled]+.fcfOptions__label:before,.fcfOptions__radio[disabled]+.fcfOptions__label:before{background-color:rgba(226,228,231,.5);border-color:#e2e4e7}.fcfOptions__checkbox+.fcfOptions__label:after{content:"\E907"!important}.fcfOptions__checkbox+.fcfOptions__label:after,.fcfOptions__radio+.fcfOptions__label:after{font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fcfOptions__radio+.fcfOptions__label:after{content:"\E91E"!important}.fcfOptions__checkbox[checked]+.fcfOptions__label:after,.fcfOptions__radio[checked]+.fcfOptions__label:after{transform:scale(1)}.fcfOptions__boxes{padding-bottom:10px}.fcfOptions__boxesItems{display:flex;flex-wrap:wrap;margin:-5px}.fcfOptions__boxesItem{width:50%;padding:5px}.fcfSettings .fcfOptions__boxesItemInput{display:none}.fcfOptions__boxesItemLabel{position:relative;display:flex;justify-content:center;align-items:center;min-height:100%;padding:7px 10px 7px 42px;font-size:14px;line-height:1.8571428571;color:#1e1e1e;text-align:center;border:1px solid #e2e4e7;transition:color .3s}.fcfOptions__boxesItemLabel:hover{color:rgba(30,30,30,.5)}.fcfOptions__boxesItemLabel:before{position:absolute;top:calc(50% - 11px);left:10px;font-size:22px;line-height:1;color:rgba(30,30,30,.75)!important}.fcfOptions__boxesItemLabel:after{content:"";position:absolute;top:-1px;left:-1px;width:calc(100% + 2px);height:calc(100% + 2px);border:2px solid #2271b1;opacity:0;transition:opacity .3s}.fcfOptions__boxesItemInput:checked+.fcfOptions__boxesItemLabel{color:#1e1e1e}.fcfOptions__boxesItemInput:checked+.fcfOptions__boxesItemLabel:after{opacity:1}.fcfOptions__info{margin:0 -20px;padding:10px 0}.fcfOptions__row:first-child .fcfOptions__info{margin-top:-20px}.fcfOptions__row:last-child .fcfOptions__info{margin-bottom:-20px}.fcfOptions__infoInner{padding:12px 20px;font-size:14px;line-height:1.8571428571;color:#fff;background-color:#2271b1}.fcfOptions__info--green .fcfOptions__infoInner{background-color:#46b450}.fcfOptions__info--yellow .fcfOptions__infoInner{background-color:#dba617}.fcfOptions__infoInner a{position:relative;display:inline-block;font-weight:500;color:inherit;white-space:nowrap;transition:opacity .3s}.fcfOptions__infoInner a:hover{opacity:.5}.fcfOptions__infoInner a:after{content:"";position:absolute;bottom:0;left:0;width:100%;height:1px;background-color:#fff}.fcfOptions__infoInner a.fcfArrowLink{padding-right:18px;text-transform:uppercase;letter-spacing:1px;opacity:1}.fcfOptions__infoInner a.fcfArrowLink:after{width:0;transition:width .3s}.fcfOptions__infoInner a.fcfArrowLink:hover:after{width:100%}.fcfOptions__infoInner a.fcfArrowLink:before{position:absolute;top:50%;right:0;transform:translateY(-50%);font-size:6px;line-height:1;content:"\E916"!important;font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fcfOptions__infoInner p{font-size:14px;line-height:1.8571428571}.fcfOptions__infoInner p strong{font-weight:400;font-size:20px;line-height:1.75}.fcfOptions__infoInner ul{padding-left:10px}.fcfOptions__infoInner ul li{position:relative;padding-left:20px}.fcfOptions__infoInner ul li:before{position:absolute;top:50%;left:0;transform:translateY(-50%);font-size:10px;line-height:1;content:"\E907"!important;font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fcfOptions__infoInner p,.fcfOptions__infoInner ul{margin-top:10px}.fcfOptions__infoInner p:first-child,.fcfOptions__infoInner ul:first-child{margin-top:0}.fcfTabs__items{display:flex;flex-wrap:wrap;margin:0;padding:0}.fcfTabs--lines .fcfTabs__items{margin-top:10px;margin-bottom:-10px}.fcfTabs__item{position:relative;margin:0 0 -1px;padding:0;border-bottom:1px solid #f0f0f0}.fcfTabs--lines .fcfTabs__item{padding-right:3px}.fcfTabs--lines .fcfTabs__item:after{content:"";position:absolute;top:calc(50% - 3px);right:0;width:6px;height:6px;background-color:#2271b1;border-radius:50%}.fcfTabs__item:last-child:after{display:none}.fcfTabs__itemLink{position:relative;display:block;padding:12px 20px;font-weight:500;font-size:16px;line-height:1.75;text-align:center;color:#1e1e1e;transition:color .3s}.fcfTabs--small .fcfTabs__itemLink{font-size:14px}.fcfTabs--lines .fcfTabs__itemLink{padding:2px 20px;font-weight:400}.fcfTabs__itemLink:after{content:"";position:absolute;bottom:0;left:50%;transform:translateX(-50%);width:0;height:3px;background-color:#2271b1;transition:width .3s}.fcfTabs--lines .fcfTabs__itemLink:after{display:none}.fcfTabs__itemLink[class*=icon-]{padding:12px 15px 12px 41px}.fcfTabs__itemLink[class*=icon-]:before{position:absolute;top:calc(50% - 8px);left:15px;font-size:16px;line-height:1;color:rgba(30,30,30,.5);transition:color .3s}.fcfTabs__itemLink:hover,.fcfTabs__itemLink:hover:before{color:#2271b1}.fcfTabs__itemLink--active{pointer-events:none}.fcfTabs__itemLink--active:after{width:100%}.fcfTabs--lines .fcfTabs__itemLink--active{font-weight:500;color:#2271b1}.fcfTooltip{cursor:default;opacity:0;transition:opacity .3s}.fcfTooltip--open{opacity:1}.fcfTooltip__outer{bottom:calc(100% + 10px);z-index:10000}.fcfTooltip__outer,.fcfTooltip__outer:before{position:absolute;left:50%;transform:translateX(-50%)}.fcfTooltip__outer:before{content:"";top:100%;width:0;height:0;border-color:#1e1e1e transparent transparent;border-style:solid;border-width:5px 5px 0}.fcfTooltip__inner{width:400px;max-width:calc(100vw - 40px);background-color:#1e1e1e}.fcfTooltip__text{padding:5px 10px;font-weight:400;font-size:14px;line-height:1.4285714286;color:#fff;text-align:center}.fcfTooltip__buttons{display:flex;justify-content:center;padding:5px}.fcfTooltip__button{padding:5px}.fcfWidget+.fcfWidget{margin-top:30px}.fcfWidget__inner{background-color:#fff;border:1px solid #e2e4e7;border-radius:3px}.fcfWidget__header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;border-bottom:1px solid #e2e4e7}.fcfWidget__headerTitle{padding:12px 20px;font-weight:400;font-size:20px;line-height:1.75;color:#1e1e1e}.fcfWidget__headerButtons{padding:0 10px}.fcfWidget__contentPlaceholder{padding:12px 20px;font-weight:500;font-size:14px;line-height:1.8571428571;color:#1e1e1e;text-align:center}.fcfWidget__footer{padding:10px;border-top:1px solid #f0f0f0}.fcfWidget__buttons{display:flex;flex-wrap:wrap;justify-content:space-between}.fcfWidget__button{position:relative;min-width:250px;padding:10px}.fcfWidget__buttonIcon{position:absolute;top:50%;transform:translateY(-50%);z-index:1}.fcfWidget__buttonIcon:first-child{right:calc(100% + 10px)}.fcfWidget__buttonIcon:last-child{left:calc(100% + 10px)}.fcfWidget__buttonIconInner:before{display:block;font-size:20px;line-height:1}.fcfWidget__buttonIcon--loading .fcfWidget__buttonIconInner:before{color:#1e1e1e;animation:rotate 1s ease-out infinite;content:"\E925"!important;font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fcfWidget__buttonIcon--success .fcfWidget__buttonIconInner:before{color:#46b450;content:"\E907"!important;font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fcfWidget__buttonIcon--error .fcfWidget__buttonIconInner:before{color:#dc3232;content:"\E926"!important;font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.reactSelect__control{min-height:42px!important;background:none!important;border:1px solid #e2e4e7!important;border-radius:0!important;box-shadow:none!important}.reactSelect__indicators{position:relative;width:42px;border-left:1px solid #e2e4e7!important}.reactSelect__indicators:after{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:6px;line-height:1;color:#1e1e1e;content:"\E903"!important}.reactSelect__control--menu-is-open .reactSelect__indicators:after,.reactSelect__indicators:after{font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.reactSelect__control--menu-is-open .reactSelect__indicators:after{content:"\E906"!important}.reactSelect__indicators *{display:none!important}.reactSelect__value-container{padding:4px 10px!important}.reactSelect__input input{margin:0 2px!important;min-height:0!important;font-size:14px!important;line-height:1.5714285714!important;color:#1e1e1e!important;box-shadow:none!important}.reactSelect__single-value{max-width:calc(100% - 20px)!important}.reactSelect__multi-value{border-radius:0!important;background-color:#e2e4e7!important}.reactSelect__multi-value__label{padding:2px 0 2px 10px!important;font-size:12px!important;line-height:2!important;color:#1e1e1e!important}.reactSelect__multi-value__remove{position:relative;width:30px;background:none!important;cursor:pointer}.reactSelect__multi-value__remove:after{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:10px;line-height:1;color:#1e1e1e;transition:color .3s;content:"\E91E"!important;font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.reactSelect__multi-value__remove:hover:after{color:#dc3232}.reactSelect__multi-value__remove *{display:none!important}.reactSelect__menu{margin:0!important;border-radius:0!important;box-shadow:none!important;z-index:10!important}.reactSelect__menu-notice{padding:7px 10px!important;font-size:14px!important;line-height:1.8571428571!important;color:#fff!important;background-color:#1e1e1e!important}.reactSelect__menu-list{padding:0!important}.reactSelect__option{position:relative;padding:7px 10px!important;font-size:14px!important;line-height:1.8571428571!important;color:#fff!important;border:1px solid #1e1e1e;background-color:#1e1e1e!important;cursor:pointer!important;transition:background-color .3s}.reactSelect__option+.reactSelect__option{margin-top:-1px;border-top:1px solid hsla(0,0%,100%,.25)}.reactSelect__option--is-focused{background-color:#2271b1!important}.reactSelect__option--is-selected{padding-right:42px!important;background-color:#1e1e1e!important;cursor:auto!important}.reactSelect__option--is-selected:before{position:absolute;top:50%;right:0;width:42px;transform:translateY(-50%);font-size:16px;line-height:1;text-align:center;color:#46b450;content:"\E907"!important;font-family:fcf-icomoon!important;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:1366px){.fcfSettings__column{width:100%}.fcfSettings__column+.fcfSettings__column{margin-top:10px}.fcfFields__items{padding:0}}@media (max-width:768px){.fcfOptions__columns{display:block}}@media (max-width:600px){.fcfFields__itemHeaderInner{display:block}.fcfFields__itemHeaderDesc{margin-top:-20px}.fcfOptions__boxesItem{width:100%}.fcfWidget__header{display:block}.fcfWidget__button{width:100%;padding:10px 40px}.fcfWidget__buttonIcon:first-child{right:0}.fcfWidget__buttonIcon:last-child{left:0}}@media (max-width:1024px),(min-width:1367px) and (max-width:1600px){.fcfOptions__row--sub{padding-left:0}.fcfOptions__columns--button{padding-right:35px}.fcfOptions__column{min-width:50%}}
|
assets/js/admin-notice.js
CHANGED
@@ -1,40 +1,41 @@
|
|
1 |
jQuery( document ).ready( function() {
|
2 |
|
3 |
var notice_selector = '[data-notice="fcf-admin-notice"]';
|
4 |
-
var button_close_selector =
|
5 |
-
var button_hide_selector =
|
6 |
|
7 |
-
var
|
8 |
-
if ( !
|
9 |
return;
|
10 |
}
|
11 |
|
12 |
-
var close_notice = function(
|
13 |
-
e.preventDefault();
|
14 |
-
window.removeEventListener( 'click', close_event );
|
15 |
-
|
16 |
jQuery.ajax(
|
17 |
-
|
18 |
{
|
19 |
type: 'POST',
|
20 |
data: {
|
21 |
-
action:
|
22 |
is_permanently: ( is_permanently ) ? 1 : 0,
|
23 |
},
|
24 |
}
|
25 |
);
|
|
|
|
|
|
|
|
|
26 |
}
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
}
|
37 |
|
38 |
-
|
39 |
|
40 |
} );
|
1 |
jQuery( document ).ready( function() {
|
2 |
|
3 |
var notice_selector = '[data-notice="fcf-admin-notice"]';
|
4 |
+
var button_close_selector = '.notice-dismiss';
|
5 |
+
var button_hide_selector = '[data-notice-button]';
|
6 |
|
7 |
+
var notice_wrapper = document.querySelector( notice_selector );
|
8 |
+
if ( ! notice_wrapper ) {
|
9 |
return;
|
10 |
}
|
11 |
|
12 |
+
var close_notice = function ( is_permanently ) {
|
|
|
|
|
|
|
13 |
jQuery.ajax(
|
14 |
+
notice_wrapper.getAttribute( 'data-notice-url' ),
|
15 |
{
|
16 |
type: 'POST',
|
17 |
data: {
|
18 |
+
action: notice_wrapper.getAttribute( 'data-notice-action' ),
|
19 |
is_permanently: ( is_permanently ) ? 1 : 0,
|
20 |
},
|
21 |
}
|
22 |
);
|
23 |
+
|
24 |
+
if ( is_permanently ) {
|
25 |
+
notice_wrapper.querySelector( button_close_selector ).click();
|
26 |
+
}
|
27 |
}
|
28 |
+
|
29 |
+
var click_on_close = function( e ) {
|
30 |
+
notice_wrapper.removeEventListener( 'click', click_on_close );
|
31 |
+
|
32 |
+
if ( e.target.matches( button_close_selector ) ) {
|
33 |
+
close_notice( false );
|
34 |
+
} else if ( e.target.matches( button_hide_selector ) ) {
|
35 |
+
close_notice( true );
|
36 |
+
}
|
37 |
}
|
38 |
|
39 |
+
notice_wrapper.addEventListener( 'click', click_on_close );
|
40 |
|
41 |
} );
|
assets/js/admin-notice.min.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
jQuery(document).ready(function(){var notice_selector='[data-notice="fcf-admin-notice"]';var button_close_selector=
|
2 |
-
var close_notice=function(
|
3 |
-
var
|
4 |
-
|
1 |
+
jQuery(document).ready(function(){var notice_selector='[data-notice="fcf-admin-notice"]';var button_close_selector='.notice-dismiss';var button_hide_selector='[data-notice-button]';var notice_wrapper=document.querySelector(notice_selector);if(!notice_wrapper){return}
|
2 |
+
var close_notice=function(is_permanently){jQuery.ajax(notice_wrapper.getAttribute('data-notice-url'),{type:'POST',data:{action:notice_wrapper.getAttribute('data-notice-action'),is_permanently:(is_permanently)?1:0,},});if(is_permanently){notice_wrapper.querySelector(button_close_selector).click()}}
|
3 |
+
var click_on_close=function(e){notice_wrapper.removeEventListener('click',click_on_close);if(e.target.matches(button_close_selector)){close_notice(!1)}else if(e.target.matches(button_hide_selector)){close_notice(!0)}}
|
4 |
+
notice_wrapper.addEventListener('click',click_on_close)})
|
assets/js/new-admin.js
CHANGED
@@ -35,4 +35,4 @@ object-assign
|
|
35 |
*
|
36 |
* This source code is licensed under the MIT license found in the
|
37 |
* LICENSE file in the root directory of this source tree.
|
38 |
-
*/var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,a=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,l=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,s=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,m=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,v=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,b=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,_=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case f:case d:case i:case u:case l:case m:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case v:case s:return e;default:return t}}case a:return t}}}function S(e){return E(e)===d}t.AsyncMode=f,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=s,t.Element=o,t.ForwardRef=p,t.Fragment=i,t.Lazy=g,t.Memo=v,t.Portal=a,t.Profiler=u,t.StrictMode=l,t.Suspense=m,t.isAsyncMode=function(e){return S(e)||E(e)===f},t.isConcurrentMode=S,t.isContextConsumer=function(e){return E(e)===c},t.isContextProvider=function(e){return E(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return E(e)===p},t.isFragment=function(e){return E(e)===i},t.isLazy=function(e){return E(e)===g},t.isMemo=function(e){return E(e)===v},t.isPortal=function(e){return E(e)===a},t.isProfiler=function(e){return E(e)===u},t.isStrictMode=function(e){return E(e)===l},t.isSuspense=function(e){return E(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===u||e===l||e===m||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===v||e.$$typeof===s||e.$$typeof===c||e.$$typeof===p||e.$$typeof===y||e.$$typeof===_||e.$$typeof===w||e.$$typeof===b)},t.typeOf=E},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"CheckboxField",(function(){return Y})),n.d(r,"CheckboxListField",(function(){return ne})),n.d(r,"GroupField",(function(){return ce})),n.d(r,"HiddenField",(function(){return be})),n.d(r,"InfoField",(function(){return Ce})),n.d(r,"InfoAdvField",(function(){return Le})),n.d(r,"InfoNoticeField",(function(){return ze})),n.d(r,"NumberField",(function(){return Ke})),n.d(r,"RadioField",(function(){return ot})),n.d(r,"RadioListField",(function(){return dt})),n.d(r,"RepeaterField",(function(){return _t})),n.d(r,"SelectField",(function(){return ra})),n.d(r,"SelectMultiField",(function(){return fa})),n.d(r,"TextareaField",(function(){return ya})),n.d(r,"TextField",(function(){return ka}));var o=n(0),a=n.n(o),i=n(2),l=n.n(i),u=n(6),s=n.n(u);function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var f=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.api_url=t,this.header_nonce=n,this.requests={}}var t,n,r;return t=e,(n=[{key:"connect",value:function(e,t,n){var r=this;this.requests[n]&&this.requests[n].cancel();var o=s.a.CancelToken;this.requests[n]=o.source();var a={method:"POST",url:"".concat(this.api_url,"/").concat(e),headers:{"X-WP-Nonce":this.header_nonce},data:t,cancelToken:this.requests[n].token};return s()(a).then((function(e){var t={status:!0,response:e.data};return"get"===e.config.method&&(r.cache[cache_key]=t),t})).catch((function(e){return{status:!1,response:e.response?e.response.data.message:null}}))}}])&&c(t.prototype,n),r&&c(t,r),e}();function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var p=function(){function e(t,n,r,o,a,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.api_loader=t,this.field_data=n,this.form_values=r,this.section_fields=o,this.onUpdateStatus=a,this.onUpdateItems=i,this.cache={}}var t,n,r;return t=e,(n=[{key:"refreshItems",value:function(e,t,n,r){var o=this.field_data,a=this.form_values,i=o.endpoint_route,l=o.endpoint_params,u=this.getParamsForApi(l,a);(r||JSON.stringify(u)!==this.cache)&&(this.cache=JSON.stringify(u),this.loadItemsFromApi(i,u,t,n,e))}},{key:"getParamsForApi",value:function(e,t){for(var n={},r=e.length,o=0;o<r;o++)n[e[o]]=t[e[o]];return n}},{key:"loadItemsFromApi",value:function(e,t,n,r,o){var a=this.api_loader,i=this.section_fields,l=this.onUpdateStatus,u=this.onUpdateItems;l(!0),a.connect(e,{form_values:t,form_field_name:n,form_section:r,form_fields:i},o).then((function(e){l(!1),e.status&&null!==e.response&&u(e.response)}))}}])&&d(t.prototype,n),r&&d(t,r),e}();function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var h=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,(n=[{key:"generateSlug",value:function(e){var t=e,n=this.getLettersToReplace();for(var r in n)t=t.replace(new RegExp(r,"g"),n[r]);return t=(t=(t=(t=t.replace(/\s/g,"_")).toLowerCase()).replace(/[^a-z0-9_]/gi,"")).replace(/[/_]{2,}/g,"_")}},{key:"getLettersToReplace",value:function(){return{"-":"_","/":"_",",":"_",":":"_",";":"_","ª":"a","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"s","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ø":"O","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","ĝ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","Ŋ":"N","ŋ":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","Ș":"S","ș":"s","Ț":"T","ț":"t","€":"E","£":"","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Ầ":"A","ầ":"a","Ằ":"A","ằ":"a","Ề":"E","ề":"e","Ồ":"O","ồ":"o","Ờ":"O","ờ":"o","Ừ":"U","ừ":"u","Ỳ":"Y","ỳ":"y","Ả":"A","ả":"a","Ẩ":"A","ẩ":"a","Ẳ":"A","ẳ":"a","Ẻ":"E","ẻ":"e","Ể":"E","ể":"e","Ỉ":"I","ỉ":"i","Ỏ":"O","ỏ":"o","Ổ":"O","ổ":"o","Ở":"O","ở":"o","Ủ":"U","ủ":"u","Ử":"U","ử":"u","Ỷ":"Y","ỷ":"y","Ẫ":"A","ẫ":"a","Ẵ":"A","ẵ":"a","Ẽ":"E","ẽ":"e","Ễ":"E","ễ":"e","Ỗ":"O","ỗ":"o","Ỡ":"O","ỡ":"o","Ữ":"U","ữ":"u","Ỹ":"Y","ỹ":"y","Ấ":"A","ấ":"a","Ắ":"A","ắ":"a","Ế":"E","ế":"e","Ố":"O","ố":"o","Ớ":"O","ớ":"o","Ứ":"U","ứ":"u","Ạ":"A","ạ":"a","Ậ":"A","ậ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ệ":"E","ệ":"e","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ộ":"O","ộ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ự":"U","ự":"u","Ỵ":"Y","ỵ":"y","ɑ":"a","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u"}}}])&&m(t.prototype,n),r&&m(t,r),e}();function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var g=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,(n=[{key:"validateValue",value:function(e,t,n){var r=e.name,o=e.validation_rules,a=null;for(var i in o)if(!new RegExp(i,"s").test(t[r]||"")){a=o[i];break}n(a)}}])&&v(t.prototype,n),r&&v(t,r),e}();function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var y=function(){function e(t,n,r,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.api_handler=t,this.api_route=n,this._form_validation=r,this.onUpdateStatus=o}var t,n,r;return t=e,(n=[{key:"onSubmit",value:function(e,t){var n=this;this.onUpdateStatus("".concat(e,"_loading")),this._form_validation.onSubmit().then((function(){n.saveSettings(e,t).then((function(){n.onUpdateStatus("".concat(e,"_success")),setTimeout(n.onUpdateStatus,1e3)}),(function(t){n.onUpdateStatus("".concat(e,"_error"),t)}))}),(function(){n.onUpdateStatus()}))}},{key:"saveSettings",value:function(e,t){var n=this.api_handler,r=this.api_route;return new Promise((function(e,o){n.connect(r,t,"POST").then((function(t){t.status?e():o(t.response)}))}))}},{key:"onReset",value:function(e,t){var n=this;this.onUpdateStatus("".concat(e,"_loading")),this.saveSettings(e,t).then((function(){n.onUpdateStatus("".concat(e,"_success")),window.location.reload(!0)}),(function(t){n.onUpdateStatus("".concat(e,"_error"),t)}))}}])&&b(t.prototype,n),r&&b(t,r),e}();function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var E=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;_(this,e),this.validation_event=t,this.validation_type=n,this.max_iteration=r,this.validation_errors={}}var t,n,r;return t=e,(n=[{key:"onValidationInit",value:function(e,t,n){this.validation_errors[e]=n,t&&delete this.validation_errors[e]}},{key:"clearValidationHandlers",value:function(){this.validation_errors={}}},{key:"onSubmit",value:function(){var e=this,t=this.validation_event,n=this.validation_type,r=this.max_iteration;return window.dispatchEvent(new CustomEvent(t,{detail:n})),new Promise((function(t,n){var o=0,a=setInterval((function(){var i=e.getFirstEvent();i&&(clearInterval(a),i(),n()),++o===r&&(clearInterval(a),t())}),100)}))}},{key:"getFirstEvent",value:function(){var e=Object.keys(this.validation_errors);return e.length>0?this.validation_errors[e[0]]:null}}])&&w(t.prototype,n),r&&w(t,r),e}();function S(e){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function O(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function x(e,t){return(x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function C(e){var t=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}}();return function(){var n,r=P(e);if(t){var o=P(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return k(this,n)}}function k(e,t){return!t||"object"!==S(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function P(e){return(P=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var I=function(e){!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&&x(e,t)}(i,e);var t,n,r,o=C(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).state={settings:e.settings,form_settings:e.form_settings,events:{onChangeValue:e.onChangeValue,onChangeState:e.onChangeState,onRefreshForm:e.onRefreshForm,onValidationInit:e.onValidationInit},handlers:{api_loader:e.settings.handlers.api_loader},validation_types:e.validation_types},t._field_validation=new g,t.setDefaultValue(),t.onChangeState("unique_id",t.generateUniqueId(32)),t.onChangeState("ref_wrapper",a.a.createRef()),t.onChangeState("ref_input",a.a.createRef()),t}return t=i,(n=[{key:"componentDidMount",value:function(){var e=this;this._isMounted=!0;var t=this.state,n=t.settings,r=t.validation_types;window.addEventListener(n.events.validate_field,(function(t){null!==t.detail&&r.indexOf(t.detail)>-1&&e._isMounted&&e.validateValue()}))}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.onValidationError(null)}},{key:"onChangeValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.props.field_data,n=this.state.events,r=this.getValue(e);n.onChangeValue(t.name,r,t.refresh_trigger),this.validateValue()}},{key:"onChangeState",value:function(e,t){var n=this.props.state_name;this.state.events.onChangeState(n,e,t)}},{key:"onValidationError",value:function(e){var t=this.props,n=t.form_states,r=t.state_name,o=this.state.events;n[r]&&(this.onChangeState("validation_error",e),o.onValidationInit(n[r].unique_id,null===e,(function(){n[r].ref_wrapper.current.scrollIntoView(!1)})))}},{key:"setDefaultValue",value:function(){var e=this.state.events,t=this.props,n=t.field_data,r=t.form_values,o=void 0!==r[n.name]?r[n.name]:JSON.parse(JSON.stringify(n.default_value||""));e.onChangeValue(n.name,o)}},{key:"isFieldVisible",value:function(e,t){for(var n in e)if(!new RegExp(e[n]).test(t[n]))return!1;return!0}},{key:"getFieldValue",value:function(){var e=this.props,t=e.field_data,n=e.form_values;return t.display_pattern?t.display_pattern.replace("%s",n[t.name]||""):n[t.name]||""}},{key:"validateValue",value:function(){var e=this.props,t=e.field_data,n=e.form_values;this._field_validation.validateValue(t,n,this.onValidationError.bind(this))}},{key:"generateUniqueId",value:function(e){for(var t="abcdefghijklmnopqrstuvwxyz0123456789",n="",r=t.length,o=0;o<e;o++)n+=t.charAt(Math.floor(Math.random()*r));return n}}])&&O(t.prototype,n),r&&O(t,r),i}(a.a.Component);function D(e){var t=e.button_classes,n=e.button_alignment,r=e.button_label,o=e.loading_type,i=e.loading_message,l=e.tooltip_text,u=e.settings,s=e.onSubmit,c=(e.loading_status||"").replace("".concat(o,"_"),""),f="loading"===(e.loading_status||"").substr(-7);return a.a.createElement(a.a.Fragment,null,"left"===n?l?a.a.createElement(B,{text:l,onAccept:s,settings:u},a.a.createElement("button",{type:"button",className:t,disabled:f},r)):a.a.createElement("button",{type:"button",className:t,onClick:s,disabled:f},r):null,"loading"===c?a.a.createElement("div",{className:"fcfWidget__buttonIcon fcfWidget__buttonIcon--loading"},a.a.createElement("div",{className:"fcfWidget__buttonIconInner"})):null,"success"===c?a.a.createElement("div",{className:"fcfWidget__buttonIcon fcfWidget__buttonIcon--success"},a.a.createElement("div",{className:"fcfWidget__buttonIconInner"})):null,"error"===c?a.a.createElement("div",{className:"fcfWidget__buttonIcon fcfWidget__buttonIcon--error"},a.a.createElement(B,{text:i,is_open:!0,settings:u},a.a.createElement("div",{className:"fcfWidget__buttonIconInner"}))):null,"right"===n?l?a.a.createElement(B,{text:l,onAccept:s,settings:u},a.a.createElement("button",{type:"button",className:t,disabled:f},r)):a.a.createElement("button",{type:"button",className:t,onClick:s,disabled:f},r):null)}function R(e){var t=e.field_data,n=e.unique_id,r=e.is_group_label,o=e.settings,i=r?"".concat(t.label,":"):t.label;return r?a.a.createElement("div",{className:"fcfOptions__rowLabel"},i,t.label_tooltip?a.a.createElement("span",{className:"fcfOptions__labelHelp"},a.a.createElement(B,{text:t.label_tooltip,button_url:t.label_tooltip_url,settings:o},a.a.createElement("span",{className:"fcfOptions__labelHelpIcon"}))):null):a.a.createElement("label",{className:"fcfOptions__label",htmlFor:n},i,t.label_tooltip?a.a.createElement("span",{className:"fcfOptions__labelHelp"},a.a.createElement(B,{text:t.label_tooltip,button_url:t.label_tooltip_url,settings:o},a.a.createElement("span",{className:"fcfOptions__labelHelpIcon"}))):null)}function N(e){return(N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function T(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function L(e,t){return(L=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function A(e){var t=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}}();return function(){var n,r=F(e);if(t){var o=F(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return j(this,n)}}function j(e,t){return!t||"object"!==N(t)&&"function"!=typeof t?M(e):t}function M(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F(e){return(F=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var B=function(e){!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&&L(e,t)}(i,e);var t,n,r,o=A(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).state={text:e.text,button_url:e.button_url,status:{is_open:!0===e.is_open},settings:e.settings,events:{onClose:t.closePopup.bind(M(t)),onAccept:e.onAccept},refs:{wrapper:a.a.createRef()}},t._isMounted=!1,t}return t=i,(n=[{key:"render",value:function(){var e=this.state,t=e.text,n=e.button_url,r=e.status,o=e.settings,i=e.events,l=e.refs,u=a.a.Children.toArray(this.props.children);return this.setStyles(),a.a.createElement(a.a.Fragment,null,a.a.cloneElement(u[0],{onClick:this.openPopup.bind(this)}),r.is_open?a.a.createElement("div",{className:"fcfTooltip"},a.a.createElement("div",{className:"fcfTooltip__outer"},a.a.createElement("div",{className:"fcfTooltip__inner",ref:l.wrapper,onClick:this.preventClosePopup.bind(this)},a.a.createElement("div",{className:"fcfTooltip__text"},t),n?a.a.createElement("ul",{className:"fcfTooltip__buttons"},a.a.createElement("li",{className:"fcfTooltip__button"},a.a.createElement("a",{href:n,target:"_blank",className:"fcfButton fcfButton--small fcfButton--border fcfButton--blue"},o.i18n.button_read_more))):null,i.onAccept?a.a.createElement("ul",{className:"fcfTooltip__buttons"},a.a.createElement("li",{className:"fcfTooltip__button"},a.a.createElement("button",{type:"button",className:"fcfButton fcfButton--small fcfButton--border fcfButton--green",onClick:this.acceptPopup.bind(this)},o.i18n.button_yes)),a.a.createElement("li",{className:"fcfTooltip__button"},a.a.createElement("button",{type:"button",className:"fcfButton fcfButton--small fcfButton--border fcfButton--red",onClick:this.closePopup.bind(this)},o.i18n.button_no))):null))):null)}},{key:"componentDidMount",value:function(){this._isMounted=!0,this.state.status.is_open&&setTimeout(this.loadPopup.bind(this),0)}},{key:"componentWillUnmount",value:function(){this._isMounted=!1}},{key:"openPopup",value:function(e){e&&(e.preventDefault(),e.stopPropagation());var t=this.state.status;t.is_open||(t.is_open=!0,this._isMounted&&this.setState({status:t}),this.loadPopup())}},{key:"loadPopup",value:function(){var e=this,t=this.state.events;window.addEventListener("click",t.onClose),window.dispatchEvent(new CustomEvent("fcf-popup-open")),setTimeout((function(){window.addEventListener("fcf-popup-open",t.onClose),e.setStyles()}),0)}},{key:"acceptPopup",value:function(e){e.preventDefault(),e.stopPropagation(),this.state.events.onAccept(),this.closePopup()}},{key:"closePopup",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;null!==e&&e.stopPropagation();var t=this.state,n=t.status,r=t.events;n.is_open=!1,this._isMounted&&this.setState({status:n}),window.removeEventListener("click",r.onClose),window.removeEventListener("fcf-popup-open",r.onClose)}},{key:"preventClosePopup",value:function(e){e.stopPropagation()}},{key:"setStyles",value:function(){var e=this.state.refs;if(e.wrapper.current){e.wrapper.current.style.marginLeft="";var t=document.body.offsetWidth||document.documentElement.offsetWidth,n=e.wrapper.current.getBoundingClientRect(),r=n.left,o=2*(t-n.right);r<0&&(e.wrapper.current.style.marginLeft="".concat(-2*r+20,"px")),o<0&&(e.wrapper.current.style.marginLeft="".concat(o-20,"px"))}}}])&&T(t.prototype,n),r&&T(t,r),i}(a.a.Component);function V(e){var t=e.validation_error;return t?a.a.createElement("div",{className:"fcfOptions__error"},t):null}function U(e){return(U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function z(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function H(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function W(e,t){return(W=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function G(e){var t=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}}();return function(){var n,r=$(e);if(t){var o=$(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return q(this,n)}}function q(e,t){return!t||"object"!==U(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function $(e){return($=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Y=function(e){!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&&W(e,t)}(i,e);var t,n,r,o=G(i);function i(){return z(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=e.form_states,o=e.state_name,i=e.show_if_regexes,l=this.state.settings;return r[o]&&this.isFieldVisible(i,n)?a.a.createElement(a.a.Fragment,null,a.a.createElement("li",{className:"fcfOptions__row",ref:r[o].ref_wrapper},a.a.createElement("input",{type:"checkbox",className:"fcfOptions__checkbox",id:r[o].unique_id,ref:r[o].ref_input,name:t.name,defaultChecked:n[t.name]&&"1"===n[t.name].toString(),onChange:t.readonly?null:this.onChangeValue.bind(this),disabled:t.readonly}),a.a.createElement(R,{unique_id:r[o].unique_id,field_data:t,settings:l}),a.a.createElement(V,{validation_error:r[o].validation_error}))):null}},{key:"getValue",value:function(){var e=this.props;return e.form_states[e.state_name].ref_input.current.checked?"1":"0"}}])&&H(t.prototype,n),r&&H(t,r),i}(I);function Q(e){return(Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function K(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function X(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function J(e,t){return(J=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Z(e){var t=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}}();return function(){var n,r=te(e);if(t){var o=te(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ee(this,n)}}function ee(e,t){return!t||"object"!==Q(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function te(e){return(te=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ne=function(e){!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&&J(e,t)}(i,e);var t,n,r,o=Z(i);function i(){return K(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=e.form_states,o=e.state_name,i=e.state_field_name,l=e.section_fields,u=e.show_if_regexes,s=this.state,c=s.events,f=s.settings,d=s.form_settings,p=s.validation_types;return r[o]&&this.isFieldVisible(u,n)?a.a.createElement(a.a.Fragment,null,a.a.createElement("li",{className:"fcfOptions__row"},a.a.createElement(R,{unique_id:r[o].unique_id,field_data:t,is_group_label:!0,settings:f})),t.items.map((function(e,t){return a.a.createElement(Y,{key:t,field_data:e,form_values:n,form_states:r,state_name:e.name,state_field_name:i,section_fields:l,onChangeValue:c.onChangeValue,onChangeState:c.onChangeState,onRefreshForm:c.onRefreshForm,onValidationInit:c.onValidationInit,validation_types:p,settings:f,form_settings:d})}))):null}}])&&X(t.prototype,n),r&&X(t,r),i}(I);function re(e){return(re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function oe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ae(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ie(e,t){return(ie=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function le(e){var t=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}}();return function(){var n,r=se(e);if(t){var o=se(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ue(this,n)}}function ue(e,t){return!t||"object"!==re(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function se(e){return(se=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ce=function(e){!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&&ie(e,t)}(l,e);var t,n,o,i=le(l);function l(){return oe(this,l),i.apply(this,arguments)}return t=l,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.field_data,o=t.form_values,i=t.form_states,l=t.state_name,u=t.state_field_name,s=t.section_fields,c=t.show_if_regexes,f=this.state,d=f.api_loader,p=f.events,m=f.settings,h=f.form_settings,v=f.validation_types;return i[l]&&this.isFieldVisible(c,o)?a.a.createElement(a.a.Fragment,null,a.a.createElement("li",{className:"fcfOptions__row fcfOptions__row--sub"},a.a.createElement("ul",{className:"fcfOptions__columns"},n.items.map((function(t,n){var l=r[t.type],c=t.show_if_regexes;return e.isFieldVisible(c,o)?a.a.createElement("li",{className:"fcfOptions__column",key:n},a.a.createElement("ul",{className:"fcfOptions__rows"},a.a.createElement(l,{field_data:t,form_values:o,form_states:i,state_name:t.name,state_field_name:u,section_fields:s,api_loader:d,onChangeValue:p.onChangeValue,onChangeState:p.onChangeState,onRefreshForm:p.onRefreshForm,onValidationInit:p.onValidationInit,validation_types:v,settings:m,form_settings:h}))):null}))))):null}}])&&ae(t.prototype,n),o&&ae(t,o),l}(I);function fe(e){return(fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function de(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function me(e,t){return(me=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function he(e){var t=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}}();return function(){var n,r=ge(e);if(t){var o=ge(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ve(this,n)}}function ve(e,t){return!t||"object"!==fe(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ge(e){return(ge=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var be=function(e){!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&&me(e,t)}(i,e);var t,n,r,o=he(i);function i(){return de(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=e.show_if_regexes;return this.isFieldVisible(r,n)?a.a.createElement(a.a.Fragment,null,a.a.createElement("input",{type:"hidden",name:t.name,value:n[t.name]||""})):null}}])&&pe(t.prototype,n),r&&pe(t,r),i}(I);function ye(e){return(ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function we(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ee(e,t){return(Ee=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Se(e){var t=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}}();return function(){var n,r=xe(e);if(t){var o=xe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Oe(this,n)}}function Oe(e,t){return!t||"object"!==ye(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function xe(e){return(xe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ce=function(e){!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&&Ee(e,t)}(i,e);var t,n,r,o=Se(i);function i(){return _e(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=e.show_if_regexes;return this.isFieldVisible(r,n)?a.a.createElement(a.a.Fragment,null,a.a.createElement("li",{className:"fcfOptions__row"},a.a.createElement("div",{className:"fcfOptions__info"},a.a.createElement("div",{className:"fcfOptions__infoInner",dangerouslySetInnerHTML:{__html:t.label}})))):null}}])&&we(t.prototype,n),r&&we(t,r),i}(I);function ke(e){return(ke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Pe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ie(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function De(e,t){return(De=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Re(e){var t=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}}();return function(){var n,r=Te(e);if(t){var o=Te(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ne(this,n)}}function Ne(e,t){return!t||"object"!==ke(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Te(e){return(Te=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Le=function(e){!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&&De(e,t)}(i,e);var t,n,r,o=Re(i);function i(){return Pe(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=e.show_if_regexes;return this.isFieldVisible(r,n)?a.a.createElement(a.a.Fragment,null,a.a.createElement("li",{className:"fcfOptions__row"},a.a.createElement("div",{className:"fcfOptions__info fcfOptions__info--green"},a.a.createElement("div",{className:"fcfOptions__infoInner",dangerouslySetInnerHTML:{__html:t.label}})))):null}}])&&Ie(t.prototype,n),r&&Ie(t,r),i}(I);function Ae(e){return(Ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function je(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Me(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Fe(e,t){return(Fe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Be(e){var t=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}}();return function(){var n,r=Ue(e);if(t){var o=Ue(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ve(this,n)}}function Ve(e,t){return!t||"object"!==Ae(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ue(e){return(Ue=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ze=function(e){!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&&Fe(e,t)}(i,e);var t,n,r,o=Be(i);function i(){return je(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=e.show_if_regexes;return this.isFieldVisible(r,n)?a.a.createElement(a.a.Fragment,null,a.a.createElement("li",{className:"fcfOptions__row"},a.a.createElement("div",{className:"fcfOptions__info fcfOptions__info--yellow"},a.a.createElement("div",{className:"fcfOptions__infoInner",dangerouslySetInnerHTML:{__html:t.label}})))):null}}])&&Me(t.prototype,n),r&&Me(t,r),i}(I);function He(e){return(He="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function We(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ge(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function qe(e,t){return(qe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function $e(e){var t=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}}();return function(){var n,r=Qe(e);if(t){var o=Qe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ye(this,n)}}function Ye(e,t){return!t||"object"!==He(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Qe(e){return(Qe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ke=function(e){!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&&qe(e,t)}(i,e);var t,n,r,o=$e(i);function i(){return We(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=e.form_states,o=e.state_name,i=e.show_if_regexes,l=this.state.settings;return r[o]&&this.isFieldVisible(i,n)?a.a.createElement(a.a.Fragment,null,a.a.createElement("li",{className:"fcfOptions__row",ref:r[o].ref_wrapper},a.a.createElement(R,{unique_id:r[o].unique_id,field_data:t,settings:l}),a.a.createElement(V,{validation_error:r[o].validation_error}),a.a.createElement("input",{type:"number",id:r[o].unique_id,ref:r[o].ref_input,name:t.name,min:t.html_atts.min||"",max:t.html_atts.max||"",step:t.html_atts.step||"1",className:"fcfOptions__input",value:n[t.name],onChange:t.readonly?null:this.onChangeValue.bind(this),disabled:t.readonly}))):null}},{key:"getValue",value:function(e){var t=this.props,n=t.form_states,r=t.state_name;return""===e.currentTarget.value?(e.currentTarget.value="",null):n[r].ref_input.current.value}}])&&Ge(t.prototype,n),r&&Ge(t,r),i}(I);function Xe(e){return(Xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Je(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ze(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function et(e,t){return(et=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function tt(e){var t=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}}();return function(){var n,r=rt(e);if(t){var o=rt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return nt(this,n)}}function nt(e,t){return!t||"object"!==Xe(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function rt(e){return(rt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ot=function(e){!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&&et(e,t)}(i,e);var t,n,r,o=tt(i);function i(){return Je(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.field_data,r=t.form_values,o=t.form_states,i=t.state_name,l=t.show_if_regexes,u=this.state.settings;return o[i]&&this.isFieldVisible(l,r)?a.a.createElement(a.a.Fragment,null,a.a.createElement("li",{className:"fcfOptions__row",ref:o[i].ref_wrapper},a.a.createElement(R,{unique_id:o[i].unique_id,field_data:n,is_group_label:!0,settings:u}),a.a.createElement(V,{validation_error:o[i].validation_error})),Object.keys(n.items).map((function(t,l){return a.a.createElement("li",{className:"fcfOptions__row",key:l},a.a.createElement("input",{type:"radio",className:"fcfOptions__radio",id:"".concat(o[i].unique_id,"-").concat(l),ref:o[i].ref_input,name:n.name,value:t,defaultChecked:r[n.name]===t,onChange:e.onChangeValue.bind(e),disabled:n.readonly?null:n.readonly}),a.a.createElement("label",{htmlFor:"".concat(o[i].unique_id,"-").concat(l),className:"fcfOptions__label"},n.items[t]))}))):null}},{key:"getValue",value:function(e){return e.currentTarget.value}}])&&Ze(t.prototype,n),r&&Ze(t,r),i}(I);function at(e){return(at="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function it(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ut(e,t){return(ut=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function st(e){var t=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}}();return function(){var n,r=ft(e);if(t){var o=ft(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ct(this,n)}}function ct(e,t){return!t||"object"!==at(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ft(e){return(ft=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var dt=function(e){!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&&ut(e,t)}(i,e);var t,n,r,o=st(i);function i(){return it(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.field_data,r=t.form_values,o=t.form_states,i=t.state_name,l=t.show_if_regexes,u=this.state.settings;return o[i]&&this.isFieldVisible(l,r)?a.a.createElement(a.a.Fragment,null,a.a.createElement("li",{className:"fcfOptions__row",ref:o[i].ref_wrapper},a.a.createElement(R,{unique_id:o[i].unique_id,field_data:n,settings:u}),a.a.createElement(V,{validation_error:o[i].validation_error}),a.a.createElement("div",{className:"fcfOptions__boxes"},a.a.createElement("ul",{className:"fcfOptions__boxesItems"},n.items.map((function(t,l){return a.a.createElement("li",{className:"fcfOptions__boxesItem",key:l},a.a.createElement("input",{type:"radio",className:"fcfOptions__boxesItemInput",id:"".concat(o[i].unique_id,"-").concat(l),ref:o[i].ref_input,name:n.name,value:t.type,checked:r[n.name]===t.type,onChange:n.readonly?null:e.onChangeValue.bind(e),disabled:n.readonly}),a.a.createElement("label",{className:"fcfOptions__boxesItemLabel ".concat(t.icon),htmlFor:"".concat(o[i].unique_id,"-").concat(l)},t.label))})))))):null}},{key:"getValue",value:function(e){return e.currentTarget.value}}])&<(t.prototype,n),r&<(t,r),i}(I);function pt(e){return(pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ht(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vt(e,t){return(vt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function gt(e){var t=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}}();return function(){var n,r=yt(e);if(t){var o=yt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return bt(this,n)}}function bt(e,t){return!t||"object"!==pt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function yt(e){return(yt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _t=function(e){!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&&vt(e,t)}(l,e);var t,n,o,i=gt(l);function l(){return mt(this,l),i.apply(this,arguments)}return t=l,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.field_data,o=t.form_values,i=t.form_states,l=t.state_name,u=t.state_field_name,s=t.section_fields,c=t.show_if_regexes,f=this.state,d=f.events,p=f.settings,m=f.form_settings,h=f.validation_types,v=this.getRows();return i[l]&&this.isFieldVisible(c,o)?a.a.createElement(a.a.Fragment,null,n.label?a.a.createElement("li",{className:"fcfOptions__row"},a.a.createElement(R,{field_data:n,settings:p})):null,a.a.createElement("li",{className:"fcfOptions__row fcfOptions__row--lines fcfOptions__row--sub"},v.map((function(t){var l=!n.option_name_rows&&v.length>1;return a.a.createElement(a.a.Fragment,{key:t.key},a.a.createElement("ul",{className:"fcfOptions__columns"},a.a.createElement("li",{className:"fcfOptions__column"},a.a.createElement("div",{className:"fcfOptions__label fcfOptions__label--line"},a.a.createElement("div",{className:"fcfOptions__labelInner"},t.label)))),a.a.createElement("ul",{className:"fcfOptions__columns ".concat(l?"fcfOptions__columns--button":"")},n.items.map((function(l,c){var f=r[l.type],v=l.show_if_regexes,g=o[n.name][t.key]?o[n.name][t.key]:JSON.parse(JSON.stringify(l.default_value));return e.isFieldVisible(v,g)?a.a.createElement("li",{className:"fcfOptions__column",key:c},a.a.createElement("ul",{className:"fcfOptions__rows"},a.a.createElement(f,{field_data:l,form_values:g,form_states:i,state_name:"".concat(n.name,"_").concat(t.key,"_").concat(l.name),state_field_name:u,section_fields:s,onChangeValue:e.onChangeValue.bind(e,t.key),onChangeState:d.onChangeState,onRefreshForm:d.onRefreshForm,onValidationInit:d.onValidationInit,validation_types:h,settings:p,form_settings:m}))):null})),l?a.a.createElement("li",{className:"fcfOptions__column fcfOptions__column--small"},a.a.createElement("button",{type:"button",className:"fcfOptions__columnButton fcfOptions__columnButton--remove",onClick:e.removeRow.bind(e,t.key)})):null))})),n.option_name_rows?null:a.a.createElement("ul",{className:"fcfOptions__columns"},a.a.createElement("li",{className:"fcfOptions__column fcfOptions__column--center"},a.a.createElement("button",{type:"button",className:"fcfButton fcfButton--small fcfButton--border fcfButton--blue",onClick:this.addNewRow.bind(this)},p.i18n.button_add_row))))):null}},{key:"onChangeValue",value:function(e,t,n){var r=this.props,o=r.field_data,a=r.form_values,i=this.state.events,l=a[o.name];void 0===l[e]&&(l[e]={}),l[e][t]=n,i.onChangeValue(o.name,l,o.refresh_trigger)}},{key:"onChangeOptionState",value:function(e,t,n,r){var o=this.props.state_name;this.state.events.onChangeState(o,n,r)}},{key:"getRows",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=t.option_name_rows;return r&&void 0!==n[r]?this.getRowsByFieldValue():this.getRowsByAddedValues()}},{key:"getRowsByAddedValues",value:function(){for(var e=this.props,t=e.field_data,n=e.form_values,r=t.label_row,o=Object.keys(n[t.name]),a=[],i=o.length,l=0;l<i;l++)a.push({key:o[l],label:r.replace("%s",l+1)});return a}},{key:"getRowsByFieldValue",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=t.option_name_rows,o=t.label_row,a=[];if(Array.isArray(n[r]))for(var i=n[r].length,l=0;l<i;l++)n[r][l]&&a.push({key:n[r][l].key,label:o.replace("%s",n[r][l].value)});else a.push({key:Object.keys(t.default_value)[0],label:o.replace("%s",n[r])});return a}},{key:"addNewRow",value:function(){var e=this.props.field_data,t=this.state.events,n=Object.values(this.props.form_values[e.name]),r=Object.keys(e.default_value);n.push(JSON.parse(JSON.stringify(e.default_value[r[0]]))),t.onChangeValue(e.name,n)}},{key:"removeRow",value:function(e){var t=this.props.field_data,n=this.state.events,r=JSON.parse(JSON.stringify(this.props.form_values[t.name]));delete r[e],r=r.filter((function(e){return null!==e})),n.onChangeValue(t.name,r,!0)}}])&&ht(t.prototype,n),o&&ht(t,o),l}(I);function wt(){return(wt=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)}var Et=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),St="-ms-",Ot="-moz-",xt="-webkit-",Ct="comm",kt="decl",Pt=Math.abs,It=String.fromCharCode;function Dt(e){return e.trim()}function Rt(e,t,n){return e.replace(t,n)}function Nt(e,t){return e.indexOf(t)}function Tt(e,t){return 0|e.charCodeAt(t)}function Lt(e,t,n){return e.slice(t,n)}function At(e){return e.length}function jt(e){return e.length}function Mt(e,t){return t.push(e),e}function Ft(e,t){return e.map(t).join("")}var Bt=1,Vt=1,Ut=0,zt=0,Ht=0,Wt="";function Gt(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:Bt,column:Vt,length:i,return:""}}function qt(e,t,n){return Gt(e,t.root,t.parent,n,t.props,t.children,0)}function $t(){return Ht=zt<Ut?Tt(Wt,zt++):0,Vt++,10===Ht&&(Vt=1,Bt++),Ht}function Yt(){return Tt(Wt,zt)}function Qt(){return zt}function Kt(e,t){return Lt(Wt,e,t)}function Xt(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Jt(e){return Bt=Vt=1,Ut=At(Wt=e),zt=0,[]}function Zt(e){return Wt="",e}function en(e){return Dt(Kt(zt-1,function e(t){for(;$t();)switch(Ht){case t:return zt;case 34:case 39:return e(34===t||39===t?t:Ht);case 40:41===t&&e(t);break;case 92:$t()}return zt}(91===e?e+2:40===e?e+1:e)))}function tn(e){for(;(Ht=Yt())&&Ht<33;)$t();return Xt(e)>2||Xt(Ht)>3?"":" "}function nn(e,t){for(;$t()&&e+Ht!==57&&(e+Ht!==84||47!==Yt()););return"/*"+Kt(t,zt-1)+"*"+It(47===e?e:$t())}function rn(e){for(;!Xt(Yt());)$t();return Kt(e,zt)}function on(e){return Zt(function e(t,n,r,o,a,i,l,u,s){var c=0,f=0,d=l,p=0,m=0,h=0,v=1,g=1,b=1,y=0,_="",w=a,E=i,S=o,O=_;for(;g;)switch(h=y,y=$t()){case 34:case 39:case 91:case 40:O+=en(y);break;case 9:case 10:case 13:case 32:O+=tn(h);break;case 47:switch(Yt()){case 42:case 47:Mt(ln(nn($t(),Qt()),n,r),s);break;default:O+="/"}break;case 123*v:u[c++]=At(O)*b;case 125*v:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+f:m>0&&At(O)-d&&Mt(m>32?un(O+";",o,r,d-1):un(Rt(O," ","")+";",o,r,d-2),s);break;case 59:O+=";";default:if(Mt(S=an(O,n,r,c,f,a,u,_,w=[],E=[],d),i),123===y)if(0===f)e(O,n,S,S,w,i,d,u,E);else switch(p){case 100:case 109:case 115:e(t,S,S,o&&Mt(an(t,S,S,0,0,a,u,_,a,w=[],d),E),a,E,d,u,o?w:E);break;default:e(O,S,S,S,[""],E,d,u,E)}}c=f=m=0,v=b=1,_=O="",d=l;break;case 58:d=1+At(O),m=h;default:switch(O+=It(y),y*v){case 38:b=f>0?1:(O+="\f",-1);break;case 44:u[c++]=(At(O)-1)*b,b=1;break;case 64:45===Yt()&&(O+=en($t())),p=Yt(),f=At(_=O+=rn(Qt())),y++;break;case 45:45===h&&2==At(O)&&(v=0)}}return i}("",null,null,null,[""],e=Jt(e),0,[0],e))}function an(e,t,n,r,o,a,i,l,u,s,c){for(var f=o-1,d=0===o?a:[""],p=jt(d),m=0,h=0,v=0;m<r;++m)for(var g=0,b=Lt(e,f+1,f=Pt(h=i[m])),y=e;g<p;++g)(y=Dt(h>0?d[g]+" "+b:Rt(b,/&\f/g,d[g])))&&(u[v++]=y);return Gt(e,t,n,0===o?"rule":l,u,s,c)}function ln(e,t,n){return Gt(e,t,n,Ct,It(Ht),Lt(e,2,-2),0)}function un(e,t,n,r){return Gt(e,t,n,kt,Lt(e,0,r),Lt(e,r+1,-1),r)}function sn(e,t){switch(function(e,t){return(((t<<2^Tt(e,0))<<2^Tt(e,1))<<2^Tt(e,2))<<2^Tt(e,3)}(e,t)){case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return xt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return xt+e+Ot+e+St+e+e;case 6828:case 4268:return xt+e+St+e+e;case 6165:return xt+e+St+"flex-"+e+e;case 5187:return xt+e+Rt(e,/(\w+).+(:[^]+)/,xt+"box-$1$2"+St+"flex-$1$2")+e;case 5443:return xt+e+St+"flex-item-"+Rt(e,/flex-|-self/,"")+e;case 4675:return xt+e+St+"flex-line-pack"+Rt(e,/align-content|flex-|-self/,"")+e;case 5548:return xt+e+St+Rt(e,"shrink","negative")+e;case 5292:return xt+e+St+Rt(e,"basis","preferred-size")+e;case 6060:return xt+"box-"+Rt(e,"-grow","")+xt+e+St+Rt(e,"grow","positive")+e;case 4554:return xt+Rt(e,/([^-])(transform)/g,"$1"+xt+"$2")+e;case 6187:return Rt(Rt(Rt(e,/(zoom-|grab)/,xt+"$1"),/(image-set)/,xt+"$1"),e,"")+e;case 5495:case 3959:return Rt(e,/(image-set\([^]*)/,xt+"$1$`$1");case 4968:return Rt(Rt(e,/(.+:)(flex-)?(.*)/,xt+"box-pack:$3"+St+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+xt+e+e;case 4095:case 3583:case 4068:case 2532:return Rt(e,/(.+)-inline(.+)/,xt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(At(e)-1-t>6)switch(Tt(e,t+1)){case 102:t=Tt(e,t+3);case 109:return Rt(e,/(.+:)(.+)-([^]+)/,"$1"+xt+"$2-$3$1"+Ot+(108==t?"$3":"$2-$3"))+e;case 115:return~Nt(e,"stretch")?sn(Rt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Tt(e,t+1))break;case 6444:switch(Tt(e,At(e)-3-(~Nt(e,"!important")&&10))){case 107:case 111:return Rt(e,e,xt+e)+e;case 101:return Rt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+xt+(45===Tt(e,14)?"inline-":"")+"box$3$1"+xt+"$2$3$1"+St+"$2box$3")+e}break;case 5936:switch(Tt(e,t+11)){case 114:return xt+e+St+Rt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return xt+e+St+Rt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return xt+e+St+Rt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return xt+e+St+e+e}return e}function cn(e,t){for(var n="",r=jt(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function fn(e,t,n,r){switch(e.type){case"@import":case kt:return e.return=e.return||e.value;case Ct:return"";case"rule":e.value=e.props.join(",")}return At(n=cn(e.children,r))?e.return=e.value+"{"+n+"}":""}function dn(e){return function(t){t.root||(t=t.return)&&e(t)}}var pn=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}},mn=function(e,t){return Zt(function(e,t){var n=-1,r=44;do{switch(Xt(r)){case 0:38===r&&12===Yt()&&(t[n]=1),e[n]+=rn(zt-1);break;case 2:e[n]+=en(r);break;case 4:if(44===r){e[++n]=58===Yt()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=It(r)}}while(r=$t());return e}(Jt(e),t))},hn=new WeakMap,vn=function(e){if("rule"===e.type&&e.parent&&e.length){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||hn.get(n))&&!r){hn.set(e,!0);for(var o=[],a=mn(t,o),i=n.props,l=0,u=0;l<a.length;l++)for(var s=0;s<i.length;s++,u++)e.props[u]=o[l]?a[l].replace(/&\f/g,i[s]):i[s]+" "+a[l]}}},gn=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},bn=[function(e,t,n,r){if(!e.return)switch(e.type){case kt:e.return=sn(e.value,e.length);break;case"@keyframes":return cn([qt(Rt(e.value,"@","@"+xt),e,"")],r);case"rule":if(e.length)return Ft(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return cn([qt(Rt(t,/:(read-\w+)/,":-moz-$1"),e,"")],r);case"::placeholder":return cn([qt(Rt(t,/:(plac\w+)/,":"+xt+"input-$1"),e,""),qt(Rt(t,/:(plac\w+)/,":-moz-$1"),e,""),qt(Rt(t,/:(plac\w+)/,St+"input-$1"),e,"")],r)}return""}))}}],yn=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){document.head.appendChild(e),e.setAttribute("data-s","")}))}var r=e.stylisPlugins||bn;var o,a,i={},l=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll("style[data-emotion]"),(function(e){var n=e.getAttribute("data-emotion").split(" ");if(n[0]===t){for(var r=1;r<n.length;r++)i[n[r]]=!0;l.push(e)}}));var u=[vn,gn];var s,c=[fn,dn((function(e){s.insert(e)}))],f=function(e){var t=jt(e);return function(n,r,o,a){for(var i="",l=0;l<t;l++)i+=e[l](n,r,o,a)||"";return i}}(u.concat(r,c));a=function(e,t,n,r){s=n,cn(on(e?e+"{"+t.styles+"}":t.styles),f),r&&(d.inserted[t.name]=!0)};var d={key:t,sheet:new Et({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend}),nonce:e.nonce,inserted:i,registered:{},insert:a};return d.sheet.hydrate(l),d},_n=n(3),wn=n.n(_n);function En(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var Sn=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0);o=o.next}while(void 0!==o)}};var On=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},xn={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Cn=/[A-Z]|^ms/g,kn=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Pn=function(e){return 45===e.charCodeAt(1)},In=function(e){return null!=e&&"boolean"!=typeof e},Dn=pn((function(e){return Pn(e)?e:e.replace(Cn,"-$&").toLowerCase()})),Rn=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(kn,(function(e,t,n){return Tn={name:t,styles:n,next:Tn},t}))}return 1===xn[e]||Pn(e)||"number"!=typeof t||0===t?t:t+"px"};function Nn(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Tn={name:n.name,styles:n.styles,next:Tn},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Tn={name:r.name,styles:r.styles,next:Tn},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Nn(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=a+"{"+t[i]+"}":In(i)&&(r+=Dn(a)+":"+Rn(a,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var l=Nn(e,t,i);switch(a){case"animation":case"animationName":r+=Dn(a)+":"+l+";";break;default:r+=a+"{"+l+"}"}}else for(var u=0;u<i.length;u++)In(i[u])&&(r+=Dn(a)+":"+Rn(a,i[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=Tn,a=n(e);return Tn=o,Nn(e,t,a)}break;case"string":}if(null==t)return n;var i=t[n];return void 0!==i?i:n}var Tn,Ln=/label:\s*([^\s;\n{]+)\s*;/g;var An=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Tn=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=Nn(n,t,a)):o+=a[0];for(var i=1;i<e.length;i++)o+=Nn(n,t,e[i]),r&&(o+=a[i]);Ln.lastIndex=0;for(var l,u="";null!==(l=Ln.exec(o));)u+="-"+l[1];return{name:On(o)+u,styles:o,next:Tn}},jn=Object.prototype.hasOwnProperty,Mn=Object(o.createContext)("undefined"!=typeof HTMLElement?yn({key:"css"}):null),Fn=Mn.Provider,Bn=function(e){return Object(o.forwardRef)((function(t,n){var r=Object(o.useContext)(Mn);return e(t,r,n)}))},Vn=Object(o.createContext)({});var Un="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",zn=function(e,t){var n={};for(var r in t)jn.call(t,r)&&(n[r]=t[r]);return n[Un]=e,n},Hn=Bn((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var a=e[Un],i=[r],l="";"string"==typeof e.className?l=En(t.registered,i,e.className):null!=e.className&&(l=e.className+" ");var u=An(i,void 0,"function"==typeof r||Array.isArray(r)?Object(o.useContext)(Vn):void 0);Sn(t,u,"string"==typeof a);l+=t.key+"-"+u.name;var s={};for(var c in e)jn.call(e,c)&&"css"!==c&&c!==Un&&(s[c]=e[c]);return s.ref=n,s.className=l,Object(o.createElement)(a,s)}));n(17);var Wn=function(e,t){var n=arguments;if(null==t||!jn.call(t,"css"))return o.createElement.apply(void 0,n);var r=n.length,a=new Array(r);a[0]=Hn,a[1]=zn(e,t);for(var i=2;i<r;i++)a[i]=n[i];return o.createElement.apply(null,a)};function Gn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return An(t)}var qn=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var a=t[r];if(null!=a){var i=void 0;switch(typeof a){case"boolean":break;case"object":if(Array.isArray(a))i=e(a);else for(var l in i="",a)a[l]&&l&&(i&&(i+=" "),i+=l);break;default:i=a}i&&(o&&(o+=" "),o+=i)}}return o};function $n(e,t,n){var r=[],o=En(e,r,n);return r.length<2?n:o+t(r)}var Yn=Bn((function(e,t){var n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=An(n,t.registered);return Sn(t,o,!1),t.key+"-"+o.name},r={css:n,cx:function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return $n(t.registered,n,qn(r))},theme:Object(o.useContext)(Vn)},a=e.children(r);return!0,a}));function Qn(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 Kn(e,t){if(null==e)return{};var n,r,o=Qn(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Xn=n(4),Jn=n.n(Xn);function Zn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function er(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function tr(e,t,n){return t&&er(e.prototype,t),n&&er(e,n),e}function nr(e,t){return(nr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function rr(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&&nr(e,t)}function or(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ar(e){return(ar="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ir(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lr(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?lr(Object(n),!0).forEach((function(t){ir(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sr(e){return(sr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function cr(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function fr(e){var t=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}}();return function(){var n,r=sr(e);if(t){var o=sr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return cr(this,n)}}var dr=function(){};function pr(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function mr(e,t,n){var r=[n];if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&r.push("".concat(pr(e,o)));return r.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var hr=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===ar(e)&&null!==e?[e]:[]};function vr(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function gr(e){return vr(e)?window.pageYOffset:e.scrollTop}function br(e,t){vr(e)?window.scrollTo(0,t):e.scrollTop=t}function yr(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function _r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:dr,o=gr(e),a=t-o,i=10,l=0;function u(){var t=yr(l+=i,o,a,n);br(e,t),l<n?window.requestAnimationFrame(u):r(e)}u()}function wr(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}function Er(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,a=e.shouldScroll,i=e.isFixedPosition,l=e.theme.spacing,u=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/,o=document.documentElement;if("fixed"===t.position)return o;for(var a=e;a=a.parentElement;)if(t=getComputedStyle(a),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return a;return o}(n),s={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return s;var c=u.getBoundingClientRect().height,f=n.getBoundingClientRect(),d=f.bottom,p=f.height,m=f.top,h=n.offsetParent.getBoundingClientRect().top,v=window.innerHeight,g=gr(u),b=parseInt(getComputedStyle(n).marginBottom,10),y=parseInt(getComputedStyle(n).marginTop,10),_=h-y,w=v-m,E=_+g,S=c-g-m,O=d-v+g+b,x=g+m-y;switch(o){case"auto":case"bottom":if(w>=p)return{placement:"bottom",maxHeight:t};if(S>=p&&!i)return a&&_r(u,O,160),{placement:"bottom",maxHeight:t};if(!i&&S>=r||i&&w>=r)return a&&_r(u,O,160),{placement:"bottom",maxHeight:i?w-b:S-b};if("auto"===o||i){var C=t,k=i?_:E;return k>=r&&(C=Math.min(k-b-l.controlHeight,t)),{placement:"top",maxHeight:C}}if("bottom"===o)return br(u,O),{placement:"bottom",maxHeight:t};break;case"top":if(_>=p)return{placement:"top",maxHeight:t};if(E>=p&&!i)return a&&_r(u,x,160),{placement:"top",maxHeight:t};if(!i&&E>=r||i&&_>=r){var P=t;return(!i&&E>=r||i&&_>=r)&&(P=i?_-y:E-y),a&&_r(u,x,160),{placement:"top",maxHeight:P}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return s}var Sr=function(e){return"auto"===e?"bottom":e},Or=Object(o.createContext)({getPortalPlacement:null}),xr=function(e){rr(n,e);var t=fr(n);function n(){var e;Zn(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).state={maxHeight:e.props.maxMenuHeight,placement:null},e.getPlacement=function(t){var n=e.props,r=n.minMenuHeight,o=n.maxMenuHeight,a=n.menuPlacement,i=n.menuPosition,l=n.menuShouldScrollIntoView,u=n.theme;if(t){var s="fixed"===i,c=Er({maxHeight:o,menuEl:t,minHeight:r,placement:a,shouldScroll:l&&!s,isFixedPosition:s,theme:u}),f=e.context.getPortalPlacement;f&&f(c),e.setState(c)}},e.getUpdatedProps=function(){var t=e.props.menuPlacement,n=e.state.placement||Sr(t);return ur(ur({},e.props),{},{placement:n,maxHeight:e.state.maxHeight})},e}return tr(n,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),n}(o.Component);xr.contextType=Or;var Cr=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px"),textAlign:"center"}},kr=Cr,Pr=Cr,Ir=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return Wn("div",wt({css:o("noOptionsMessage",e),className:r({"menu-notice":!0,"menu-notice--no-options":!0},n)},a),t)};Ir.defaultProps={children:"No options"};var Dr=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return Wn("div",wt({css:o("loadingMessage",e),className:r({"menu-notice":!0,"menu-notice--loading":!0},n)},a),t)};Dr.defaultProps={children:"Loading..."};var Rr,Nr=function(e){rr(n,e);var t=fr(n);function n(){var e;Zn(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).state={placement:null},e.getPortalPlacement=function(t){var n=t.placement;n!==Sr(e.props.menuPlacement)&&e.setState({placement:n})},e}return tr(n,[{key:"render",value:function(){var e=this.props,t=e.appendTo,n=e.children,r=e.className,o=e.controlElement,a=e.cx,l=e.innerProps,u=e.menuPlacement,s=e.menuPosition,c=e.getStyles,f="fixed"===s;if(!t&&!f||!o)return null;var d=this.state.placement||Sr(u),p=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(o),m=f?0:window.pageYOffset,h=p[d]+m,v=Wn("div",wt({css:c("menuPortal",{offset:h,position:s,rect:p}),className:a({"menu-portal":!0},r)},l),n);return Wn(Or.Provider,{value:{getPortalPlacement:this.getPortalPlacement}},t?Object(i.createPortal)(v,t):v)}}]),n}(o.Component);var Tr,Lr,Ar={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},jr=function(e){var t=e.size,n=Kn(e,["size"]);return Wn("svg",wt({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Ar},n))},Mr=function(e){return Wn(jr,wt({size:20},e),Wn("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Fr=function(e){return Wn(jr,wt({size:20},e),Wn("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Br=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorContainer",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?o.neutral80:o.neutral40}}},Vr=Br,Ur=Br,zr=function(){var e=Gn.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(Rr||(Tr=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Lr||(Lr=Tr.slice(0)),Rr=Object.freeze(Object.defineProperties(Tr,{raw:{value:Object.freeze(Lr)}})))),Hr=function(e){var t=e.delay,n=e.offset;return Wn("span",{css:Gn({animation:"".concat(zr," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":null,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Wr=function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps,a=e.isRtl;return Wn("div",wt({css:r("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)},o),Wn(Hr,{delay:0,offset:a}),Wn(Hr,{delay:160,offset:!0}),Wn(Hr,{delay:320,offset:!a}))};Wr.defaultProps={size:4};var Gr=function(e){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:e?0:1,outline:0,padding:0,color:"inherit"}},qr=function(e){var t=e.children,n=e.innerProps;return Wn("div",n,t)},$r=qr,Yr=qr;var Qr=function(e){var t=e.children,n=e.className,r=e.components,o=e.cx,a=e.data,i=e.getStyles,l=e.innerProps,u=e.isDisabled,s=e.removeProps,c=e.selectProps,f=r.Container,d=r.Label,p=r.Remove;return Wn(Yn,null,(function(r){var m=r.css,h=r.cx;return Wn(f,{data:a,innerProps:ur({className:h(m(i("multiValue",e)),o({"multi-value":!0,"multi-value--is-disabled":u},n))},l),selectProps:c},Wn(d,{data:a,innerProps:{className:h(m(i("multiValueLabel",e)),o({"multi-value__label":!0},n))},selectProps:c},t),Wn(p,{data:a,innerProps:ur({className:h(m(i("multiValueRemove",e)),o({"multi-value__remove":!0},n))},s),selectProps:c}))}))};Qr.defaultProps={cropWithEllipsis:!0};var Kr={ClearIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return Wn("div",wt({css:o("clearIndicator",e),className:r({indicator:!0,"clear-indicator":!0},n)},a),t||Wn(Mr,null))},Control:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.className,a=e.isDisabled,i=e.isFocused,l=e.innerRef,u=e.innerProps,s=e.menuIsOpen;return Wn("div",wt({ref:l,css:r("control",e),className:n({control:!0,"control--is-disabled":a,"control--is-focused":i,"control--menu-is-open":s},o)},u),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return Wn("div",wt({css:o("dropdownIndicator",e),className:r({indicator:!0,"dropdown-indicator":!0},n)},a),t||Wn(Fr,null))},DownChevron:Fr,CrossIcon:Mr,Group:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.Heading,i=e.headingProps,l=e.innerProps,u=e.label,s=e.theme,c=e.selectProps;return Wn("div",wt({css:o("group",e),className:r({group:!0},n)},l),Wn(a,wt({},i,{selectProps:c,theme:s,getStyles:o,cx:r}),u),Wn("div",null,t))},GroupHeading:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.theme;e.selectProps;var a=Kn(e,["className","cx","getStyles","theme","selectProps"]);return Wn("div",wt({css:r("groupHeading",ur({theme:o},a)),className:n({"group-heading":!0},t)},a))},IndicatorsContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.innerProps,a=e.getStyles;return Wn("div",wt({css:a("indicatorsContainer",e),className:r({indicators:!0},n)},o),t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps;return Wn("span",wt({},o,{css:r("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerRef,a=e.isHidden,i=e.isDisabled,l=e.theme;e.selectProps;var u=Kn(e,["className","cx","getStyles","innerRef","isHidden","isDisabled","theme","selectProps"]);return Wn("div",{css:r("input",ur({theme:l},u))},Wn(Jn.a,wt({className:n({input:!0},t),inputRef:o,inputStyle:Gr(a),disabled:i},u)))},LoadingIndicator:Wr,Menu:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerRef,i=e.innerProps;return Wn("div",wt({css:o("menu",e),className:r({menu:!0},n),ref:a},i),t)},MenuList:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps,i=e.innerRef,l=e.isMulti;return Wn("div",wt({css:o("menuList",e),className:r({"menu-list":!0,"menu-list--is-multi":l},n),ref:i},a),t)},MenuPortal:Nr,LoadingMessage:Dr,NoOptionsMessage:Ir,MultiValue:Qr,MultiValueContainer:$r,MultiValueLabel:Yr,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Wn("div",n,t||Wn(Mr,{size:14}))},Option:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.isDisabled,i=e.isFocused,l=e.isSelected,u=e.innerRef,s=e.innerProps;return Wn("div",wt({css:o("option",e),className:r({option:!0,"option--is-disabled":a,"option--is-focused":i,"option--is-selected":l},n),ref:u},s),t)},Placeholder:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return Wn("div",wt({css:o("placeholder",e),className:r({placeholder:!0},n)},a),t)},SelectContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps,i=e.isDisabled,l=e.isRtl;return Wn("div",wt({css:o("container",e),className:r({"--is-disabled":i,"--is-rtl":l},n)},a),t)},SingleValue:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.isDisabled,i=e.innerProps;return Wn("div",wt({css:o("singleValue",e),className:r({"single-value":!0,"single-value--is-disabled":a},n)},i),t)},ValueContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.innerProps,a=e.isMulti,i=e.getStyles,l=e.hasValue;return Wn("div",wt({css:i("valueContainer",e),className:r({"value-container":!0,"value-container--is-multi":a,"value-container--has-value":l},n)},o),t)}};function Xr(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 Jr(e){return function(e){if(Array.isArray(e))return Xr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Xr(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)?Xr(e,t):void 0}}(e)||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.")}()}for(var Zr=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],eo=new RegExp("["+Zr.map((function(e){return e.letters})).join("")+"]","g"),to={},no=0;no<Zr.length;no++)for(var ro=Zr[no],oo=0;oo<ro.letters.length;oo++)to[ro.letters[oo]]=ro.base;var ao=function(e){return e.replace(eo,(function(e){return to[e]}))},io=function(e){return e.replace(/^\s+|\s+$/g,"")},lo=function(e){return"".concat(e.label," ").concat(e.value)};var uo={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},so=function(e){return Wn("span",wt({css:uo},e))};function co(e){e.in,e.out,e.onExited,e.appear,e.enter,e.exit;var t=e.innerRef;e.emotion;var n=Kn(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]);return Wn("input",wt({ref:t},n,{css:Gn({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"},"","")}))}var fo=["boxSizing","height","overflow","paddingRight","position"],po={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function mo(e){e.preventDefault()}function ho(e){e.stopPropagation()}function vo(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function go(){return"ontouchstart"in window||navigator.maxTouchPoints}var bo=!(!window.document||!window.document.createElement),yo=0,_o={capture:!1,passive:!1};var wo=function(){return document.activeElement&&document.activeElement.blur()},Eo={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function So(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,a=e.onTopArrive,i=e.onTopLeave,l=Object(o.useRef)(!1),u=Object(o.useRef)(!1),s=Object(o.useRef)(0),c=Object(o.useRef)(null),f=Object(o.useCallback)((function(e,t){if(null!==c.current){var o=c.current,s=o.scrollTop,f=o.scrollHeight,d=o.clientHeight,p=c.current,m=t>0,h=f-d-s,v=!1;h>t&&l.current&&(r&&r(e),l.current=!1),m&&u.current&&(i&&i(e),u.current=!1),m&&t>h?(n&&!l.current&&n(e),p.scrollTop=f,v=!0,l.current=!0):!m&&-t>s&&(a&&!u.current&&a(e),p.scrollTop=0,v=!0,u.current=!0),v&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[]),d=Object(o.useCallback)((function(e){f(e,e.deltaY)}),[f]),p=Object(o.useCallback)((function(e){s.current=e.changedTouches[0].clientY}),[]),m=Object(o.useCallback)((function(e){var t=s.current-e.changedTouches[0].clientY;f(e,t)}),[f]),h=Object(o.useCallback)((function(e){e&&("function"==typeof e.addEventListener&&e.addEventListener("wheel",d,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchstart",p,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchmove",m,!1))}),[m,p,d]),v=Object(o.useCallback)((function(e){e&&("function"==typeof e.removeEventListener&&e.removeEventListener("wheel",d,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchstart",p,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchmove",m,!1))}),[m,p,d]);return Object(o.useEffect)((function(){if(t){var e=c.current;return h(e),function(){v(e)}}}),[t,h,v]),function(e){c.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),l=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,a=Object(o.useRef)({}),i=Object(o.useRef)(null),l=Object(o.useCallback)((function(e){if(bo){var t=document.body,n=t&&t.style;if(r&&fo.forEach((function(e){var t=n&&n[e];a.current[e]=t})),r&&yo<1){var o=parseInt(a.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,l=window.innerWidth-i+o||0;Object.keys(po).forEach((function(e){var t=po[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(l,"px"))}t&&go()&&(t.addEventListener("touchmove",mo,_o),e&&(e.addEventListener("touchstart",vo,_o),e.addEventListener("touchmove",ho,_o))),yo+=1}}),[]),u=Object(o.useCallback)((function(e){if(bo){var t=document.body,n=t&&t.style;yo=Math.max(yo-1,0),r&&yo<1&&fo.forEach((function(e){var t=a.current[e];n&&(n[e]=t)})),t&&go()&&(t.removeEventListener("touchmove",mo,_o),e&&(e.removeEventListener("touchstart",vo,_o),e.removeEventListener("touchmove",ho,_o)))}}),[]);return Object(o.useEffect)((function(){if(t){var e=i.current;return l(e),function(){u(e)}}}),[t,l,u]),function(e){i.current=e}}({isEnabled:n});return Wn(a.a.Fragment,null,n&&Wn("div",{onClick:wo,css:Eo}),t((function(e){i(e),l(e)})))}var Oo=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.isSearchable,r=t.isMulti,o=t.label,a=t.isDisabled,i=t.tabSelectsValue;switch(e){case"menu":return"Use Up and Down to choose options".concat(a?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(i?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(o||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value"}},xo=function(e,t){var n=t.value,r=t.isDisabled;if(n)switch(e){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(n,", deselected.");case"select-option":return"option ".concat(n,r?" is disabled. Select another option.":", selected.")}},Co={clearIndicator:Ur,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":null,pointerEvents:t?"none":null,position:"relative"}},control:function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,o=r.colors,a=r.borderRadius,i=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?o.neutral5:o.neutral0,borderColor:t?o.neutral10:n?o.primary:o.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(o.primary):null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?o.primary:o.neutral30}}},dropdownIndicator:Vr,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?o.neutral10:o.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},input:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,visibility:t?"hidden":"visible",color:o.neutral80}},loadingIndicator:function(e){var t=e.isFocused,n=e.size,r=e.theme,o=r.colors,a=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*a,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:Pr,menu:function(e){var t,n=e.placement,r=e.theme,o=r.borderRadius,a=r.spacing,i=r.colors;return or(t={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),or(t,"backgroundColor",i.neutral0),or(t,"borderRadius",o),or(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),or(t,"marginBottom",a.menuGutter),or(t,"marginTop",a.menuGutter),or(t,"position","absolute"),or(t,"width","100%"),or(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,r=t.colors,o=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:o?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,o=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused&&o.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}}},noOptionsMessage:kr,option:function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,o=e.theme,a=o.spacing,i=o.colors;return{label:"option",backgroundColor:r?i.primary:n?i.primary25:"transparent",color:t?i.neutral20:r?i.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:!t&&(r?i.primary:i.primary50)}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},singleValue:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{label:"singleValue",color:t?o.neutral40:o.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"calc(100% - ".concat(2*r.baseUnit,"px)"),overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},valueContainer:function(e){var t=e.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}};var ko,Po={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Io={backspaceRemovesValue:!0,blurInputOnSelect:wr(),captureMenuScroll:!wr(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){var n=ur({ignoreCase:!0,ignoreAccents:!0,stringify:lo,trim:!0,matchFrom:"any"},ko),r=n.ignoreCase,o=n.ignoreAccents,a=n.stringify,i=n.trim,l=n.matchFrom,u=i?io(t):t,s=i?io(a(e)):a(e);return r&&(u=u.toLowerCase(),s=s.toLowerCase()),o&&(u=ao(u),s=ao(s)),"start"===l?s.substr(0,u.length)===u:s.indexOf(u)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0};function Do(e,t,n,r){return{type:"option",data:t,isDisabled:jo(e,t,n),isSelected:Mo(e,t,n),label:Lo(e,t),value:Ao(e,t),index:r}}function Ro(e,t){return e.options.map((function(n,r){if(n.options){var o=n.options.map((function(n,r){return Do(e,n,t,r)})).filter((function(t){return To(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var a=Do(e,n,t,r);return To(e,a)?a:void 0})).filter((function(e){return!!e}))}function No(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,Jr(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function To(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,a=t.isSelected,i=t.label,l=t.value;return(!Bo(e)||!a)&&Fo(e,{label:i,value:l,data:o},r)}var Lo=function(e,t){return e.getOptionLabel(t)},Ao=function(e,t){return e.getOptionValue(t)};function jo(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Mo(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Ao(e,t);return n.some((function(t){return Ao(e,t)===r}))}function Fo(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Bo=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Vo=1,Uo=function(e){rr(n,e);var t=fr(n);function n(e){var r;return Zn(this,n),(r=t.call(this,e)).state={ariaLiveSelection:"",ariaLiveContext:"",focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.instancePrefix="",r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,o=n.onChange,a=n.name;o(e,ur(ur({},t),{},{name:a}))},r.setValue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"set-value",n=arguments.length>2?arguments[2]:void 0,o=r.props,a=o.closeMenuOnSelect,i=o.isMulti;r.onInputChange("",{action:"set-value"}),a&&(r.setState({inputIsHiddenAfterUpdate:!i}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,o=t.isMulti,a=r.state.selectValue;if(o)if(r.isOptionSelected(e,a)){var i=r.getOptionValue(e);r.setValue(a.filter((function(e){return r.getOptionValue(e)!==i})),"deselect-option",e),r.announceAriaLiveSelection({event:"deselect-option",context:{value:r.getOptionLabel(e)}})}else r.isOptionDisabled(e,a)?r.announceAriaLiveSelection({event:"select-option",context:{value:r.getOptionLabel(e),isDisabled:!0}}):(r.setValue([].concat(Jr(a),[e]),"select-option",e),r.announceAriaLiveSelection({event:"select-option",context:{value:r.getOptionLabel(e)}}));else r.isOptionDisabled(e,a)?r.announceAriaLiveSelection({event:"select-option",context:{value:r.getOptionLabel(e),isDisabled:!0}}):(r.setValue(e,"select-option"),r.announceAriaLiveSelection({event:"select-option",context:{value:r.getOptionLabel(e)}}));n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,o=r.getOptionValue(e),a=n.filter((function(e){return r.getOptionValue(e)!==o})),i=t?a:a.length>0?a[0]:null;r.onChange(i,{action:"remove-value",removedValue:e}),r.announceAriaLiveSelection({event:"remove-value",context:{value:e?r.getOptionLabel(e):""}}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(r.props.isMulti?[]:null,{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],o=t.slice(0,t.length-1),a=e?o:o.length>0?o[0]:null;r.announceAriaLiveSelection({event:"pop-value",context:{value:n?r.getOptionLabel(n):""}}),r.onChange(a,{action:"pop-value",removedValue:n})},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return mr.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return Lo(r.props,e)},r.getOptionValue=function(e){return Ao(r.props,e)},r.getStyles=function(e,t){var n=Co[e](t);n.boxSizing="border-box";var o=r.props.styles[e];return o?o(n,t):n},r.getElementId=function(e){return"".concat(r.instancePrefix,"-").concat(e)},r.getComponents=function(){return e=r.props,ur(ur({},Kr),e.components);var e},r.buildCategorizedOptions=function(){return Ro(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return No(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.announceAriaLiveSelection=function(e){var t=e.event,n=e.context;r.setState({ariaLiveSelection:xo(t,n)})},r.announceAriaLiveContext=function(e){var t=e.event,n=e.context;r.setState({ariaLiveContext:Oo(t,ur(ur({},n),{},{label:r.props["aria-label"]}))})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var t=r.props,n=t.isMulti,o=t.menuIsOpen;r.focusInput(),o?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu("first"),e.preventDefault(),e.stopPropagation()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.stopPropagation(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout((function(){return r.focusInput()})))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&vr(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var o=Math.abs(n.clientX-r.initialTouchX),a=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=o>5||a>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(t,{action:"input-change"}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){var t=r.props,n=t.isSearchable,o=t.isMulti;r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1}),r.announceAriaLiveContext({event:"input",context:{isSearchable:n,isMulti:o}}),r.setState({isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur"}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){r.blockOptionHover||r.state.focusedOption===e||r.setState({focusedOption:e})},r.shouldHideSelectedOptions=function(){return Bo(r.props)},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,o=t.backspaceRemovesValue,a=t.escapeClearsValue,i=t.inputValue,l=t.isClearable,u=t.isDisabled,s=t.menuIsOpen,c=t.onKeyDown,f=t.tabSelectsValue,d=t.openMenuOnFocus,p=r.state,m=p.focusedOption,h=p.focusedValue,v=p.selectValue;if(!(u||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||i)return;r.focusValue("previous");break;case"ArrowRight":if(!n||i)return;r.focusValue("next");break;case"Delete":case"Backspace":if(i)return;if(h)r.removeValue(h);else{if(!o)return;n?r.popValue():l&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!s||!f||!m||d&&r.isOptionSelected(m,v))return;r.selectOption(m);break;case"Enter":if(229===e.keyCode)break;if(s){if(!m)return;if(r.isComposing)return;r.selectOption(m);break}return;case"Escape":s?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close"}),r.onMenuClose()):l&&a&&r.clearValue();break;case" ":if(i)return;if(!s){r.openMenu("first");break}if(!m)return;r.selectOption(m);break;case"ArrowUp":s?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":s?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!s)return;r.focusOption("pageup");break;case"PageDown":if(!s)return;r.focusOption("pagedown");break;case"Home":if(!s)return;r.focusOption("first");break;case"End":if(!s)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.instancePrefix="react-select-"+(r.props.instanceId||++Vo),r.state.selectValue=hr(e.value),r}return tr(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"componentDidUpdate",value:function(e){var t,n,r,o,a,i=this.props,l=i.isDisabled,u=i.menuIsOpen,s=this.state.isFocused;(s&&!l&&e.isDisabled||s&&u&&!e.menuIsOpen)&&this.focusInput(),s&&l&&!e.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,n=this.focusedOptionRef,r=t.getBoundingClientRect(),o=n.getBoundingClientRect(),a=n.offsetHeight/3,o.bottom+a>r.bottom?br(t,Math.min(n.offsetTop+n.clientHeight-t.offsetHeight+a,t.scrollHeight)):o.top-a<r.top&&br(t,Math.max(n.offsetTop-a,0)),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){var e=this.props,t=e.isSearchable,n=e.isMulti;this.announceAriaLiveContext({event:"input",context:{isSearchable:t,isMulti:n}}),this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,a=this.buildFocusableOptions(),i=this.props,l=i.isMulti,u=i.tabSelectsValue,s="first"===e?0:a.length-1;if(!l){var c=a.indexOf(r[0]);c>-1&&(s=c)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:a[s]},(function(){t.onMenuOpen(),t.announceAriaLiveContext({event:"menu",context:{tabSelectsValue:u}})}))}},{key:"focusValue",value:function(e){var t=this.props,n=t.isMulti,r=t.isSearchable,o=this.state,a=o.selectValue,i=o.focusedValue;if(n){this.setState({focusedOption:null});var l=a.indexOf(i);i||(l=-1,this.announceAriaLiveContext({event:"value"}));var u=a.length-1,s=-1;if(a.length){switch(e){case"previous":s=0===l?0:-1===l?u:l-1;break;case"next":l>-1&&l<u&&(s=l+1)}-1===s&&this.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:n}}),this.setState({inputIsHidden:-1!==s,focusedValue:a[s]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props,n=t.pageSize,r=t.tabSelectsValue,o=this.state,a=o.focusedOption,i=o.selectValue,l=this.getFocusableOptions();if(l.length){var u=0,s=l.indexOf(a);a||(s=-1,this.announceAriaLiveContext({event:"menu",context:{tabSelectsValue:r}})),"up"===e?u=s>0?s-1:l.length-1:"down"===e?u=(s+1)%l.length:"pageup"===e?(u=s-n)<0&&(u=0):"pagedown"===e?(u=s+n)>l.length-1&&(u=l.length-1):"last"===e&&(u=l.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:l[u],focusedValue:null}),this.announceAriaLiveContext({event:"menu",context:{isDisabled:this.isOptionDisabled(l[u],i),tabSelectsValue:r}})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Po):ur(ur({},Po),this.props.theme):Po}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getValue,o=this.setValue,a=this.selectOption,i=this.props,l=i.isMulti,u=i.isRtl,s=i.options;return{cx:t,clearValue:e,getStyles:n,getValue:r,hasValue:this.hasValue(),isMulti:l,isRtl:u,options:s,selectOption:a,setValue:o,selectProps:i,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"countOptions",value:function(){return this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return jo(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Mo(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Fo(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"constructAriaLiveMessage",value:function(){var e=this.state,t=e.ariaLiveContext,n=e.selectValue,r=e.focusedValue,o=e.focusedOption,a=this.props,i=a.options,l=a.menuIsOpen,u=a.inputValue,s=a.screenReaderStatus,c=r?function(e){var t=e.focusedValue,n=e.getOptionLabel,r=e.selectValue;return"value ".concat(n(t)," focused, ").concat(r.indexOf(t)+1," of ").concat(r.length,".")}({focusedValue:r,getOptionLabel:this.getOptionLabel,selectValue:n}):"",f=o&&l?function(e){var t=e.focusedOption,n=e.getOptionLabel,r=e.options;return"option ".concat(n(t)," focused").concat(t.isDisabled?" disabled":"",", ").concat(r.indexOf(t)+1," of ").concat(r.length,".")}({focusedOption:o,getOptionLabel:this.getOptionLabel,options:i}):"",d=function(e){var t=e.inputValue,n=e.screenReaderMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}({inputValue:u,screenReaderMessage:s({count:this.countOptions()})});return"".concat(c," ").concat(f," ").concat(d," ").concat(t)}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,i=e.tabIndex,l=e.form,u=this.getComponents().Input,s=this.state.inputIsHidden,c=r||this.getElementId("input"),f={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};if(!n)return a.a.createElement(co,wt({id:c,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:dr,onFocus:this.onInputFocus,readOnly:!0,disabled:t,tabIndex:i,form:l,value:""},f));var d=this.commonProps,p=d.cx,m=d.theme,h=d.selectProps;return a.a.createElement(u,wt({autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",cx:p,getStyles:this.getStyles,id:c,innerRef:this.getInputRef,isDisabled:t,isHidden:s,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,selectProps:h,spellCheck:"false",tabIndex:i,form:l,theme:m,type:"text",value:o},f))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,i=t.MultiValueRemove,l=t.SingleValue,u=t.Placeholder,s=this.commonProps,c=this.props,f=c.controlShouldRenderValue,d=c.isDisabled,p=c.isMulti,m=c.inputValue,h=c.placeholder,v=this.state,g=v.selectValue,b=v.focusedValue,y=v.isFocused;if(!this.hasValue()||!f)return m?null:a.a.createElement(u,wt({},s,{key:"placeholder",isDisabled:d,isFocused:y}),h);if(p)return g.map((function(t,l){var u=t===b;return a.a.createElement(n,wt({},s,{components:{Container:r,Label:o,Remove:i},isFocused:u,isDisabled:d,key:"".concat(e.getOptionValue(t)).concat(l),index:l,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:t}),e.formatOptionLabel(t,"value"))}));if(m)return null;var _=g[0];return a.a.createElement(l,wt({},s,{data:_,isDisabled:d}),this.formatOptionLabel(_,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var l={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return a.a.createElement(e,wt({},t,{innerProps:l,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!e||!o)return null;return a.a.createElement(e,wt({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:i}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,i=this.state.isFocused;return a.a.createElement(n,wt({},r,{isDisabled:o,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return a.a.createElement(e,wt({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,o=t.Menu,i=t.MenuList,l=t.MenuPortal,u=t.LoadingMessage,s=t.NoOptionsMessage,c=t.Option,f=this.commonProps,d=this.state.focusedOption,p=this.props,m=p.captureMenuScroll,h=p.inputValue,v=p.isLoading,g=p.loadingMessage,b=p.minMenuHeight,y=p.maxMenuHeight,_=p.menuIsOpen,w=p.menuPlacement,E=p.menuPosition,S=p.menuPortalTarget,O=p.menuShouldBlockScroll,x=p.menuShouldScrollIntoView,C=p.noOptionsMessage,k=p.onMenuScrollToTop,P=p.onMenuScrollToBottom;if(!_)return null;var I,D=function(t,n){var r=t.type,o=t.data,i=t.isDisabled,l=t.isSelected,u=t.label,s=t.value,p=d===o,m=i?void 0:function(){return e.onOptionHover(o)},h=i?void 0:function(){return e.selectOption(o)},v="".concat(e.getElementId("option"),"-").concat(n),g={id:v,onClick:h,onMouseMove:m,onMouseOver:m,tabIndex:-1};return a.a.createElement(c,wt({},f,{innerProps:g,data:o,isDisabled:i,isSelected:l,key:v,label:u,type:r,value:s,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())I=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,i=t.options,l=t.index,u="".concat(e.getElementId("group"),"-").concat(l),s="".concat(u,"-heading");return a.a.createElement(n,wt({},f,{key:u,data:o,options:i,Heading:r,headingProps:{id:s,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return D(e,"".concat(l,"-").concat(e.index))})))}if("option"===t.type)return D(t,"".concat(t.index))}));else if(v){var R=g({inputValue:h});if(null===R)return null;I=a.a.createElement(u,f,R)}else{var N=C({inputValue:h});if(null===N)return null;I=a.a.createElement(s,f,N)}var T={minMenuHeight:b,maxMenuHeight:y,menuPlacement:w,menuPosition:E,menuShouldScrollIntoView:x},L=a.a.createElement(xr,wt({},f,T),(function(t){var n=t.ref,r=t.placerProps,l=r.placement,u=r.maxHeight;return a.a.createElement(o,wt({},f,T,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:v,placement:l}),a.a.createElement(So,{captureEnabled:m,onTopArrive:k,onBottomArrive:P,lockEnabled:O},(function(t){return a.a.createElement(i,wt({},f,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:v,maxHeight:u}),I)})))}));return S||"fixed"===E?a.a.createElement(l,wt({},f,{appendTo:S,controlElement:this.controlRef,menuPlacement:w,menuPosition:E}),L):L}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,i=t.name,l=this.state.selectValue;if(i&&!r){if(o){if(n){var u=l.map((function(t){return e.getOptionValue(t)})).join(n);return a.a.createElement("input",{name:i,type:"hidden",value:u})}var s=l.length>0?l.map((function(t,n){return a.a.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})})):a.a.createElement("input",{name:i,type:"hidden"});return a.a.createElement("div",null,s)}var c=l[0]?this.getOptionValue(l[0]):"";return a.a.createElement("input",{name:i,type:"hidden",value:c})}}},{key:"renderLiveRegion",value:function(){return this.state.isFocused?a.a.createElement(so,{"aria-live":"polite"},a.a.createElement("span",{id:"aria-selection-event"}," ",this.state.ariaLiveSelection),a.a.createElement("span",{id:"aria-context"}," ",this.constructAriaLiveMessage())):null}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,i=this.props,l=i.className,u=i.id,s=i.isDisabled,c=i.menuIsOpen,f=this.state.isFocused,d=this.commonProps=this.getCommonProps();return a.a.createElement(r,wt({},d,{className:l,innerProps:{id:u,onKeyDown:this.onKeyDown},isDisabled:s,isFocused:f}),this.renderLiveRegion(),a.a.createElement(t,wt({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:s,isFocused:f,menuIsOpen:c}),a.a.createElement(o,wt({},d,{isDisabled:s}),this.renderPlaceholderOrValue(),this.renderInput()),a.a.createElement(n,wt({},d,{isDisabled:s}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,a=e.options,i=e.value,l=e.menuIsOpen,u=e.inputValue,s={};if(n&&(i!==n.value||a!==n.options||l!==n.menuIsOpen||u!==n.inputValue)){var c=hr(i),f=l?function(e,t){return No(Ro(e,t))}(e,c):[],d=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,c):null;s={selectValue:c,focusedOption:function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,f),focusedValue:d,clearFocusValueOnUpdate:!1}}var p=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{};return ur(ur(ur({},s),p),{},{prevProps:e})}}]),n}(o.Component);Uo.defaultProps=Io;var zo={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null};function Ho(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var Wo,Go,qo,$o=function(e,t){var n;void 0===t&&(t=Ho);var r,o=[],a=!1;return function(){for(var i=[],l=0;l<arguments.length;l++)i[l]=arguments[l];return a&&n===this&&t(i,o)||(r=e.apply(this,i),a=!0,n=this,o=i),r}},Yo=(n(44),n(49),n(51),n(54),n(55),o.Component,Wo=Uo,qo=Go=function(e){rr(n,e);var t=fr(n);function n(){var e;Zn(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).select=void 0,e.state={inputValue:void 0!==e.props.inputValue?e.props.inputValue:e.props.defaultInputValue,menuIsOpen:void 0!==e.props.menuIsOpen?e.props.menuIsOpen:e.props.defaultMenuIsOpen,value:void 0!==e.props.value?e.props.value:e.props.defaultValue},e.onChange=function(t,n){e.callProp("onChange",t,n),e.setState({value:t})},e.onInputChange=function(t,n){var r=e.callProp("onInputChange",t,n);e.setState({inputValue:void 0!==r?r:t})},e.onMenuOpen=function(){e.callProp("onMenuOpen"),e.setState({menuIsOpen:!0})},e.onMenuClose=function(){e.callProp("onMenuClose"),e.setState({menuIsOpen:!1})},e}return tr(n,[{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"getProp",value:function(e){return void 0!==this.props[e]?this.props[e]:this.state[e]}},{key:"callProp",value:function(e){if("function"==typeof this.props[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=this.props)[e].apply(t,r)}}},{key:"render",value:function(){var e=this,t=this.props;t.defaultInputValue,t.defaultMenuIsOpen,t.defaultValue;var n=Kn(t,["defaultInputValue","defaultMenuIsOpen","defaultValue"]);return a.a.createElement(Wo,wt({},n,{ref:function(t){e.select=t},inputValue:this.getProp("inputValue"),menuIsOpen:this.getProp("menuIsOpen"),onChange:this.onChange,onInputChange:this.onInputChange,onMenuClose:this.onMenuClose,onMenuOpen:this.onMenuOpen,value:this.getProp("value")}))}}]),n}(o.Component),Go.defaultProps=zo,qo);function Qo(e){return(Qo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ko(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Xo(e,t,n){return(Xo="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=na(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function Jo(e,t){return(Jo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Zo(e){var t=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}}();return function(){var n,r=na(e);if(t){var o=na(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ea(this,n)}}function ea(e,t){return!t||"object"!==Qo(t)&&"function"!=typeof t?ta(e):t}function ta(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function na(e){return(na=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ra=function(e){!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&&Jo(e,t)}(i,e);var t,n,r,o=Zo(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e))._field_items=new p(t.state.handlers.api_loader,e.field_data,e.form_values,e.section_fields,t.onUpdateLoadingStatus.bind(ta(t)),t.onUpdateItems.bind(ta(t))),e.onRefreshForm&&e.onRefreshForm(t.refreshItems.bind(ta(t),!1)),t.onChangeState("items",e.field_data.items||[]),t}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=e.form_states,o=e.state_name,i=e.show_if_regexes,l=this.state.settings;if(!r[o]||!this.isFieldVisible(i,n))return null;var u=this.parseItems(r[o].items);return a.a.createElement(a.a.Fragment,null,a.a.createElement("li",{className:"fcfOptions__row",ref:r[o].ref_wrapper},a.a.createElement(R,{unique_id:r[o].unique_id,field_data:t,settings:l}),a.a.createElement(V,{validation_error:r[o].validation_error}),a.a.createElement(Yo,{id:r[o].unique_id,name:t.name,className:"fcfOptions__select",classNamePrefix:"reactSelect",value:u.filter((function(e){return e.value===n[t.name]})),options:r[o].is_loading?[]:u,placeholder:l.i18n.select_placeholder,noOptionsMessage:function(){return r[o].is_loading?l.i18n.select_loading:l.i18n.select_empty},isDisabled:t.readonly,onChange:t.readonly?null:this.onChangeValue.bind(this)})))}},{key:"componentDidMount",value:function(){Xo(na(i.prototype),"componentDidMount",this).call(this);var e=this.props.field_data;if(this.refreshItems(!1),e.endpoint_autorefresh){var t=this.state.settings;window.addEventListener(t.events.refresh_field,this.refreshItems.bind(this,!0))}}},{key:"componentWillUnmount",value:function(){Xo(na(i.prototype),"componentWillUnmount",this).call(this),this.onValidationError(null)}},{key:"onUpdateLoadingStatus",value:function(e){this.onChangeState("is_loading",e)}},{key:"onUpdateItems",value:function(e){this._isMounted&&(this.onChangeState("items",e),this.resetDefaultValue(),this.forceUpdate())}},{key:"getValue",value:function(e){return e?e.value:""}},{key:"refreshItems",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.props,n=t.field_data,r=t.form_states,o=t.state_name,a=t.state_field_name,i=this.state.form_settings;n.endpoint_route&&this._field_items.refreshItems(r[o].unique_id,a,i.form_index,e)}},{key:"resetDefaultValue",value:function(){this.isAvailableValue()||this.onChangeValue(null)}},{key:"isAvailableValue",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=e.form_states,o=e.state_name;if(""===n[t.name])return!0;for(var a=this.parseItems(r[o].items),i=a.length,l=0;l<i;l++)if(a[l].value===n[t.name])return!0;return!1}},{key:"parseItems",value:function(e){var t=[];for(var n in e)t.push({value:n,label:e[n]});return t}}])&&Ko(t.prototype,n),r&&Ko(t,r),i}(I);function oa(e){return(oa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function aa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ia(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function la(e,t){return(la=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ua(e){var t=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}}();return function(){var n,r=ca(e);if(t){var o=ca(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return sa(this,n)}}function sa(e,t){return!t||"object"!==oa(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ca(e){return(ca=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var fa=function(e){!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&&la(e,t)}(i,e);var t,n,r,o=ua(i);function i(){return aa(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=e.form_states,o=e.state_name,i=e.show_if_regexes,l=this.state.settings;if(!r[o]||!this.isFieldVisible(i,n))return null;var u=this.parseItems(r[o].items);return a.a.createElement(a.a.Fragment,null,a.a.createElement("li",{className:"fcfOptions__row",ref:r[o].ref_wrapper},a.a.createElement(R,{unique_id:r[o].unique_id,field_data:t,settings:l}),a.a.createElement(V,{validation_error:r[o].validation_error}),a.a.createElement(Yo,{id:r[o].unique_id,name:t.name,className:"fcfOptions__select",classNamePrefix:"reactSelect",value:u.filter((function(e){var r=e.value;return n[t.name].indexOf(r)>-1})),options:r[o].is_loading?[]:u,placeholder:l.i18n.select_placeholder,noOptionsMessage:function(){return r[o].is_loading?l.i18n.select_loading:l.i18n.select_empty},isMulti:!0,isDisabled:t.readonly,onChange:t.readonly?null:this.onChangeValue.bind(this)})))}},{key:"getValue",value:function(e){return null===e?[]:Array.from(e,(function(e){return e.value}))}},{key:"isAvailableValue",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=e.form_states,o=e.state_name;if(n[t.name]===[])return!0;for(var a=this.parseItems(r[o].items).map((function(e){return e.value})),i=n[t.name].length,l=0;l<i;l++)if(-1===a.indexOf(n[t.name][l]))return!1;return!0}}])&&ia(t.prototype,n),r&&ia(t,r),i}(ra);function da(e){return(da="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ma(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ha(e,t){return(ha=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function va(e){var t=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}}();return function(){var n,r=ba(e);if(t){var o=ba(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ga(this,n)}}function ga(e,t){return!t||"object"!==da(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ba(e){return(ba=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ya=function(e){!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&&ha(e,t)}(i,e);var t,n,r,o=va(i);function i(){return pa(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=e.form_states,o=e.state_name,i=e.show_if_regexes,l=this.state.settings;return r[o]&&this.isFieldVisible(i,n)?a.a.createElement(a.a.Fragment,null,a.a.createElement("li",{className:"fcfOptions__row",ref:r[o].ref_wrapper},a.a.createElement(R,{unique_id:r[o].unique_id,field_data:t,settings:l}),a.a.createElement(V,{validation_error:r[o].validation_error}),a.a.createElement("textarea",{id:r[o].unique_id,ref:r[o].ref_input,name:t.name,className:"fcfOptions__textarea",rows:"2",value:this.getFieldValue(),onChange:t.readonly?null:this.onChangeValue.bind(this),disabled:t.readonly}))):null}},{key:"getValue",value:function(){var e=this.props;return e.form_states[e.state_name].ref_input.current.value}}])&&ma(t.prototype,n),r&&ma(t,r),i}(I);function _a(e){return(_a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function wa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ea(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Sa(e,t){return(Sa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Oa(e){var t=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}}();return function(){var n,r=Ca(e);if(t){var o=Ca(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return xa(this,n)}}function xa(e,t){return!t||"object"!==_a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ca(e){return(Ca=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ka=function(e){!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&&Sa(e,t)}(i,e);var t,n,r,o=Oa(i);function i(){return wa(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=e.form_states,o=e.state_name,i=e.show_if_regexes,l=this.state.settings;return r[o]&&this.isFieldVisible(i,n)?a.a.createElement(a.a.Fragment,null,a.a.createElement("li",{className:"fcfOptions__row",ref:r[o].ref_wrapper},a.a.createElement(R,{unique_id:r[o].unique_id,field_data:t,settings:l}),a.a.createElement(V,{validation_error:r[o].validation_error}),a.a.createElement("input",{type:"text",id:r[o].unique_id,ref:r[o].ref_input,name:t.name,className:"fcfOptions__input",value:this.getFieldValue(),onChange:t.readonly?null:this.onChangeValue.bind(this),disabled:t.readonly}))):null}},{key:"getValue",value:function(){var e=this.props;return e.form_states[e.state_name].ref_input.current.value}}])&&Ea(t.prototype,n),r&&Ea(t,r),i}(I);function Pa(e){return(Pa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ia(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Da(e,t){return(Da=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ra(e){var t=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}}();return function(){var n,r=Ta(e);if(t){var o=Ta(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Na(this,n)}}function Na(e,t){return!t||"object"!==Pa(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ta(e){return(Ta=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var La=function(e){!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&&Da(e,t)}(i,e);var t,n,r,o=Ra(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),t=o.call(this,e);var n=e.settings,r=e.form_title,a=e.form_settings,l=e.validation_type;return t.state={field_types:t.updateFieldTypes(n.form_fields.option_fields),form_values:{},form_states:{},settings:n,form_title:r,form_settings:a,status:{loading_type:null,field_name_updated:!1},validation_type:l},t._form_validation=new E(n.events.validate_field,l,1),t}return t=i,(n=[{key:"render",value:function(){var e=this.state,t=e.form_values,n=e.form_states,r=e.settings,o=e.form_settings,i=e.form_title,l=e.status,u=e.validation_type;return a.a.createElement("div",{className:"fcfWidget"},a.a.createElement("div",{className:"fcfWidget__inner"},a.a.createElement("div",{className:"fcfWidget__header"},a.a.createElement("div",{className:"fcfWidget__headerTitle"},i)),a.a.createElement("div",{className:"fcfWidget__content"},a.a.createElement("div",{className:"fcfOptions"},a.a.createElement("ul",{className:"fcfOptions__rows"},a.a.createElement(dt,{field_data:{name:"field_type",label:r.i18n.field_type,items:this.state.field_types,validation_rules:{"^.{1,}$":r.i18n.validation_required}},form_values:t,form_states:n,state_name:"field_type",state_field_name:null,settings:r,form_settings:o,validation_types:[u],onChangeValue:this.onChangeValue.bind(this),onChangeState:this.onChangeState.bind(this),onValidationInit:this.onValidationInit.bind(this)}),this.isFieldTypeAvailable()?a.a.createElement(a.a.Fragment,null,a.a.createElement(ya,{field_data:{name:"field_label",label:r.i18n.field_label,validation_rules:{"^.{1,}$":r.i18n.validation_required}},form_values:t,form_states:n,state_name:"field_label",state_field_name:null,settings:r,form_settings:o,validation_types:[u],onChangeValue:this.onChangeValue.bind(this),onChangeState:this.onChangeState.bind(this),onValidationInit:this.onValidationInit.bind(this)}),a.a.createElement(ka,{field_data:{name:"field_name",label:r.i18n.field_name,validation_rules:{"^.{1,}$":r.i18n.validation_required,"^[a-z0-9_]{1,}$":r.i18n.validation_slug}},form_values:t,form_states:n,state_name:"field_name",state_field_name:null,settings:r,form_settings:o,validation_types:[u,"field_name"],onChangeValue:this.onChangeValue.bind(this),onChangeState:this.onChangeState.bind(this),onValidationInit:this.onValidationInit.bind(this)})):a.a.createElement(Le,{field_data:{name:"field_type_adv",label:r.i18n.alert_field_unavailable},form_values:t,form_states:n,state_name:"field_type_adv",state_field_name:null,settings:r,form_settings:o,validation_types:[u],onChangeValue:function(){},onChangeState:function(){},onValidationInit:function(){}}),a.a.createElement("li",{className:"fcfOptions__row fcfOptions__row--padding"},a.a.createElement("button",{type:"button",className:"fcfButton fcfButton--wide fcfButton--bg fcfButton--blue",onClick:this.onSubmit.bind(this),disabled:!this.isFieldTypeAvailable()||"add_field"===l.loading_type},r.i18n.button_add_field)))))))}},{key:"isFieldTypeAvailable",value:function(){var e=this.state,t=e.settings,n=e.form_values,r=t.form_fields.option_fields;return!n.field_type||r[n.field_type].is_available}},{key:"onValidationInit",value:function(e,t,n){return this._form_validation.onValidationInit(e,t,n)}},{key:"onChangeValue",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.state,o=r.form_values,a=r.status;o[e]=t,this.setState({form_values:o}),null!==t&&("field_label"!==e||a.field_name_updated?"field_name"===e&&(this.updateFieldName(null,t),n||(a.field_name_updated=""!==t,this.setState({status:a}))):this.updateFieldName(t))}},{key:"onChangeState",value:function(e,t,n){var r=this.state.form_states;void 0===r[e]&&(r[e]={}),r[e][t]=n,this.setState({form_states:r})}},{key:"onSubmit",value:function(e){this.updateLoadingStatus("add_field"),this._form_validation.onSubmit(e).then(this.addNewField.bind(this),this.updateLoadingStatus.bind(this))}},{key:"updateLoadingStatus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.state.status;t&&(t.loading_type=e,this.setState({status:t}))}},{key:"updateFieldTypes",value:function(e){var t=[];for(var n in e)e[n].is_hidden||t.push(e[n]);return t}},{key:"updateFieldName",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.state.form_values;null===t&&(t=(new h).generateSlug(e)),t=this.generateUniqueFieldName(t),n.field_name!==t&&this.onChangeValue("field_name",t,!0)}},{key:"generateUniqueFieldName",value:function(e){for(var t=this.state.form_settings,n="".concat(t.form_index,"_").concat(e),r=0,o=t.option_values.length,a=0;a<o;a++)t.option_values[a].name===n&&r++;return 0===r?e:"".concat(e).concat(r+1)}},{key:"addNewField",value:function(){var e=this.props.onFieldAdd,t=this.state,n=t.form_values,r=t.form_settings;e({type:n.field_type,name:"".concat(r.form_index,"_").concat(n.field_name),label:n.field_label,custom_field:"1"}),this.setState({form_values:{},status:{}})}}])&&Ia(t.prototype,n),r&&Ia(t,r),i}(a.a.Component);function Aa(e){return(Aa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ja(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ma(e,t){return(Ma=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Fa(e){var t=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}}();return function(){var n,r=Ua(e);if(t){var o=Ua(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ba(this,n)}}function Ba(e,t){return!t||"object"!==Aa(t)&&"function"!=typeof t?Va(e):t}function Va(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ua(e){return(Ua=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var za=function(e){!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&&Ma(e,t)}(l,e);var t,n,o,i=Fa(l);function l(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),t=i.call(this,e);var n=e.settings,r=e.form_title,o=e.form_settings,a=e.validation_type;return t.state={settings:n,form_settings:o,form_title:r,option_fields:o.option_fields,option_values:o.option_values,option_states:[],status:{loading_type:null,loading_message:null},validation_type:a},t._form_validation=new E(n.events.validate_field,a,1),t._form_submit=new y(n.handlers.api_loader,o.api_route,t._form_validation,t.updateLoadingStats.bind(Va(t))),t}return t=l,(n=[{key:"render",value:function(){var e=this,t=this.state,n=t.settings,o=t.form_settings,i=t.option_fields,l=t.option_values,u=t.option_states,s=t.form_title,c=t.status,f=t.validation_type;return a.a.createElement("div",{className:"fcfWidget"},a.a.createElement("div",{className:"fcfWidget__inner"},a.a.createElement("div",{className:"fcfWidget__header"},a.a.createElement("div",{className:"fcfWidget__headerTitle"},s)),a.a.createElement("div",{className:"fcfWidget__content"},a.a.createElement("div",{className:"fcfOptions"},a.a.createElement("ul",{className:"fcfOptions__rows"},i.map((function(t,i){var s=r[t.type];return a.a.createElement(s,{key:i,field_data:t,form_values:l,form_states:u,state_name:t.name,state_field_name:null,show_if_regexes:t.show_if_regexes,settings:n,form_settings:o,validation_types:[f],onChangeValue:e.onChangeValue.bind(e),onChangeState:e.onChangeState.bind(e),onValidationInit:e.onValidationInit.bind(e)})}))))),a.a.createElement("div",{className:"fcfWidget__footer"},a.a.createElement("ul",{className:"fcfWidget__buttons"},a.a.createElement("li",{className:"fcfWidget__button"},a.a.createElement(D,{button_classes:"fcfButton fcfButton--wide fcfButton--bg fcfButton--blue",button_alignment:"left",button_label:n.i18n.button_save,loading_type:"save_bottom",loading_status:c.loading_type,loading_message:c.loading_message,settings:n,onSubmit:this.onSubmit.bind(this,"save_bottom",{form_fields:l})}))))))}},{key:"onValidationInit",value:function(e,t,n){return this._form_validation.onValidationInit(e,t,n)}},{key:"onChangeValue",value:function(e,t){var n=this.state.option_values;n[e]=t,this.setState({option_values:n})}},{key:"onChangeState",value:function(e,t,n){var r=this.state.option_states;void 0===r[e]&&(r[e]={}),r[e][t]=n,this.setState({option_states:r})}},{key:"onSubmit",value:function(e,t,n){return n.preventDefault(),this._form_submit.onSubmit(e,t)}},{key:"updateLoadingStats",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.state.status;n.loading_type=e,n.loading_message=t,this.setState({status:n})}}])&&ja(t.prototype,n),o&&ja(t,o),l}(a.a.Component);function Ha(e){return(Ha="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Wa(){return(Wa=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 Ga(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function qa(e,t){return(qa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function $a(e){var t=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}}();return function(){var n,r=Qa(e);if(t){var o=Qa(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ya(this,n)}}function Ya(e,t){return!t||"object"!==Ha(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Qa(e){return(Qa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ka=function(e){!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&&qa(e,t)}(l,e);var t,n,o,i=$a(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=i.call(this,e)).state={settings:e.settings,form_settings:e.form_settings,events:{onChangeValue:e.onChangeValue,onChangeState:e.onChangeState,onFieldRemove:e.onFieldRemove,onValidationInit:e.onValidationInit},refs:{wrapper:a.a.createRef()},refresh_functions:[],validation_types:t.props.validation_types},t.props.onChangeValue("_current_tab",0),t.props.onChangeValue("_is_open",!1),t}return t=l,(n=[{key:"shouldComponentUpdate",value:function(e){return e.last_row_index===e.row_index||null===e.last_row_index}},{key:"render",value:function(){var e=this,t=this.props,n=t.provided,o=t.field_data,i=t.form_states,l=t.field_type,u=t.section_fields,s=this.state,c=s.settings,f=s.form_settings,d=s.events,p=s.refs,m=s.validation_types,h=this.getAvailableSettingsTabs(l.options),v=(o.label||"").replace(/(<([^>]+)>)/gi,"");return a.a.createElement("li",Wa({className:"fcfFields__item ".concat("0"===o.visible?"fcfFields__item--disabled":""),ref:n.innerRef},n.draggableProps),a.a.createElement("div",{className:"fcfFields__itemInner",ref:p.wrapper},a.a.createElement("div",Wa({className:"fcfFields__itemHeader"},n.dragHandleProps,{onClick:this.toggleSettings.bind(this)}),a.a.createElement("div",{className:"fcfFields__itemHeaderOuter"},a.a.createElement("div",{className:"fcfFields__itemHeaderInner"},a.a.createElement("div",{className:"fcfFields__itemHeaderTitle"},v||o.name,"1"===o.required?" * ":""),l.is_available?a.a.createElement("div",{className:"fcfFields__itemHeaderDesc ".concat("1"!==o.custom_field||o.external_field?"":"fcfFields__itemHeaderDesc--flag"," ")},l.label):a.a.createElement("div",{className:"fcfFields__itemHeaderDesc"},o.type)),a.a.createElement("ul",{className:"fcfFields__itemHeaderButtons"},"1"===o.custom_field?a.a.createElement("li",{className:"fcfFields__itemHeaderButton"},a.a.createElement(B,{text:c.i18n.alert_remove_field,onAccept:d.onFieldRemove,settings:c},a.a.createElement("button",{type:"button",className:"fcfFields__itemHeaderButtonInner fcfFields__itemHeaderButtonInner--remove"}))):null,a.a.createElement("li",{className:"fcfFields__itemHeaderButton"},a.a.createElement("button",{type:"button",className:"fcfFields__itemHeaderButtonInner fcfFields__itemHeaderButtonInner--".concat(o._is_open?"close":"open")}))))),a.a.createElement("div",{className:"fcfFields__itemContent",style:{display:o._is_open?"block":"none"}},a.a.createElement("div",{className:"fcfFields__itemTabs fcfTabs fcfTabs--small"},a.a.createElement("ul",{className:"fcfTabs__items"},h.map((function(t,n){var r=f.settings_tabs[t];return a.a.createElement("li",{className:"fcfTabs__item",key:n},a.a.createElement("a",{href:"#".concat(r.tab_name),className:"fcfTabs__itemLink ".concat(n===o._current_tab?"fcfTabs__itemLink--active":""," ").concat(r.icon),onClick:e.changeTab.bind(e,n)},r.label))})))),a.a.createElement("div",{className:"fcfOptions"},h.map((function(t,n){return a.a.createElement("ul",{className:"fcfOptions__rows",key:n,style:{display:n===o._current_tab?"block":"none"}},l.options.map((function(l,s){var p=r[l.type];return l.tab_name===t?a.a.createElement(p,{key:s,field_data:l,form_values:o,form_states:i,state_name:l.name,state_field_name:o.name,section_fields:u,show_if_regexes:l.show_if_regexes,validation_types:m,settings:c,form_settings:f,onChangeValue:e.onChangeValue.bind(e),onChangeState:d.onChangeState,onRefreshForm:e.onRefreshForm.bind(e),onValidationInit:e.onValidationInit.bind(e,n)}):null})))}))))))}},{key:"onChangeValue",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.state,o=r.refresh_functions,a=r.events;a.onChangeValue(e,t,n);for(var i=o.length,l=0;l<i;l++)o[l]()}},{key:"onRefreshForm",value:function(e){this.state.refresh_functions.push(e)}},{key:"onValidationInit",value:function(e,t,n){var r=this,o=this.state,a=o.refs;o.events.onValidationInit(t,n,(function(){r.toggleSettings(!0),r.changeTab(e),a.wrapper.current.scrollIntoView(!1)}))}},{key:"getAvailableSettingsTabs",value:function(e){for(var t=[],n=e.length,r=0;r<n;r++)-1===t.indexOf(e[r].tab_name)&&t.push(e[r].tab_name);return t}},{key:"toggleSettings",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.props.field_data,n=this.state.events;n.onChangeValue("_is_open",!0===e||!t._is_open)}},{key:"changeTab",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t&&t.preventDefault();var n=this.state.events;n.onChangeValue("_current_tab",e)}}])&&Ga(t.prototype,n),o&&Ga(t,o),l}(a.a.Component);function Xa(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Ja=n(7),Za=function(){return Math.random().toString(36).substring(7).split("").join(".")},ei={INIT:"@@redux/INIT"+Za(),REPLACE:"@@redux/REPLACE"+Za(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Za()}};function ti(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function ni(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(ni)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var o=e,a=t,i=[],l=i,u=!1;function s(){l===i&&(l=i.slice())}function c(){if(u)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return a}function f(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(u)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var t=!0;return s(),l.push(e),function(){if(t){if(u)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");t=!1,s();var n=l.indexOf(e);l.splice(n,1),i=null}}}function d(e){if(!ti(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(u)throw new Error("Reducers may not dispatch actions.");try{u=!0,a=o(a,e)}finally{u=!1}for(var t=i=l,n=0;n<t.length;n++){(0,t[n])()}return e}function p(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");o=e,d({type:ei.REPLACE})}function m(){var e,t=f;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(c())}return n(),{unsubscribe:t(n)}}})[Ja.a]=function(){return this},e}return d({type:ei.INIT}),(r={dispatch:d,subscribe:f,getState:c,replaceReducer:p})[Ja.a]=m,r}function ri(e,t){return function(){return t(e.apply(this,arguments))}}function oi(e,t){if("function"==typeof e)return ri(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=ri(o,t))}return n}function ai(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ii(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n}function li(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ii(n,!0).forEach((function(t){ai(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ii(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ui(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}n(19);var si=a.a.createContext(null);var ci=function(e){e()},fi={notify:function(){}};function di(){var e=ci,t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}var pi=function(){function e(e,t){this.store=e,this.parentSub=t,this.unsubscribe=null,this.listeners=fi,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=di())},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=fi)},e}();var mi=function(e){var t=e.store,n=e.context,r=e.children,i=Object(o.useMemo)((function(){var e=new pi(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}}),[t]),l=Object(o.useMemo)((function(){return t.getState()}),[t]);Object(o.useEffect)((function(){var e=i.subscription;return e.trySubscribe(),l!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[i,l]);var u=n||si;return a.a.createElement(u.Provider,{value:i},r)},hi=n(5),vi="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?o.useLayoutEffect:o.useEffect,gi=[],bi=[null,null];function yi(e,t){var n=e[1];return[t.payload,n+1]}function _i(e,t,n){vi((function(){return e.apply(void 0,t)}),n)}function wi(e,t,n,r,o,a,i){e.current=r,t.current=o,n.current=!1,a.current&&(a.current=null,i())}function Ei(e,t,n,r,o,a,i,l,u,s){if(e){var c=!1,f=null,d=function(){if(!c){var e,n,d=t.getState();try{e=r(d,o.current)}catch(e){n=e,f=e}n||(f=null),e===a.current?i.current||u():(a.current=e,l.current=e,i.current=!0,s({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=d,n.trySubscribe(),d();return function(){if(c=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}}var Si=function(){return[null,0]};function Oi(e,t){void 0===t&&(t={});var n=t,r=n.getDisplayName,i=void 0===r?function(e){return"ConnectAdvanced("+e+")"}:r,l=n.methodName,u=void 0===l?"connectAdvanced":l,s=n.renderCountProp,c=void 0===s?void 0:s,f=n.shouldHandleStateChanges,d=void 0===f||f,p=n.storeKey,m=void 0===p?"store":p,h=(n.withRef,n.forwardRef),v=void 0!==h&&h,g=n.context,b=void 0===g?si:g,y=Qn(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]),_=b;return function(t){var n=t.displayName||t.name||"Component",r=i(n),l=wt({},y,{getDisplayName:i,methodName:u,renderCountProp:c,shouldHandleStateChanges:d,storeKey:m,displayName:r,wrappedComponentName:n,WrappedComponent:t}),s=y.pure;var f=s?o.useMemo:function(e){return e()};function p(n){var r=Object(o.useMemo)((function(){var e=n.reactReduxForwardedRef,t=Qn(n,["reactReduxForwardedRef"]);return[n.context,e,t]}),[n]),i=r[0],u=r[1],s=r[2],c=Object(o.useMemo)((function(){return i&&i.Consumer&&Object(hi.isContextConsumer)(a.a.createElement(i.Consumer,null))?i:_}),[i,_]),p=Object(o.useContext)(c),m=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(p)&&Boolean(p.store);var h=m?n.store:p.store,v=Object(o.useMemo)((function(){return function(t){return e(t.dispatch,l)}(h)}),[h]),g=Object(o.useMemo)((function(){if(!d)return bi;var e=new pi(h,m?null:p.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[h,m,p]),b=g[0],y=g[1],w=Object(o.useMemo)((function(){return m?p:wt({},p,{subscription:b})}),[m,p,b]),E=Object(o.useReducer)(yi,gi,Si),S=E[0][0],O=E[1];if(S&&S.error)throw S.error;var x=Object(o.useRef)(),C=Object(o.useRef)(s),k=Object(o.useRef)(),P=Object(o.useRef)(!1),I=f((function(){return k.current&&s===C.current?k.current:v(h.getState(),s)}),[h,S,s]);_i(wi,[C,x,P,s,I,k,y]),_i(Ei,[d,h,b,v,C,x,P,k,y,O],[h,b,v]);var D=Object(o.useMemo)((function(){return a.a.createElement(t,wt({},I,{ref:u}))}),[u,t,I]);return Object(o.useMemo)((function(){return d?a.a.createElement(c.Provider,{value:w},D):D}),[c,D,w])}var h=s?a.a.memo(p):p;if(h.WrappedComponent=t,h.displayName=r,v){var g=a.a.forwardRef((function(e,t){return a.a.createElement(h,wt({},e,{reactReduxForwardedRef:t}))}));return g.displayName=r,g.WrappedComponent=t,wn()(g,t)}return wn()(h,t)}}function xi(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Ci(e,t){if(xi(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!xi(e[n[o]],t[n[o]]))return!1;return!0}function ki(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function Pi(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function Ii(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=Pi(e);var o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=Pi(o),o=r(t,n)),o},r}}var Di=[function(e){return"function"==typeof e?Ii(e):void 0},function(e){return e?void 0:ki((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?ki((function(t){return oi(e,t)})):void 0}];var Ri=[function(e){return"function"==typeof e?Ii(e):void 0},function(e){return e?void 0:ki((function(){return{}}))}];function Ni(e,t,n){return wt({},n,e,t)}var Ti=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,o=n.pure,a=n.areMergedPropsEqual,i=!1;return function(t,n,l){var u=e(t,n,l);return i?o&&a(u,r)||(r=u):(i=!0,r=u),r}}}(e):void 0},function(e){return e?void 0:function(){return Ni}}];function Li(e,t,n,r){return function(o,a){return n(e(o,a),t(r,a),a)}}function Ai(e,t,n,r,o){var a,i,l,u,s,c=o.areStatesEqual,f=o.areOwnPropsEqual,d=o.areStatePropsEqual,p=!1;function m(o,p){var m,h,v=!f(p,i),g=!c(o,a);return a=o,i=p,v&&g?(l=e(a,i),t.dependsOnOwnProps&&(u=t(r,i)),s=n(l,u,i)):v?(e.dependsOnOwnProps&&(l=e(a,i)),t.dependsOnOwnProps&&(u=t(r,i)),s=n(l,u,i)):g?(m=e(a,i),h=!d(m,l),l=m,h&&(s=n(l,u,i)),s):s}return function(o,c){return p?m(o,c):(l=e(a=o,i=c),u=t(r,i),s=n(l,u,i),p=!0,s)}}function ji(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,a=Qn(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),i=n(e,a),l=r(e,a),u=o(e,a);return(a.pure?Ai:Li)(i,l,u,e,a)}function Mi(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function Fi(e,t){return e===t}function Bi(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?Oi:n,o=t.mapStateToPropsFactories,a=void 0===o?Ri:o,i=t.mapDispatchToPropsFactories,l=void 0===i?Di:i,u=t.mergePropsFactories,s=void 0===u?Ti:u,c=t.selectorFactory,f=void 0===c?ji:c;return function(e,t,n,o){void 0===o&&(o={});var i=o,u=i.pure,c=void 0===u||u,d=i.areStatesEqual,p=void 0===d?Fi:d,m=i.areOwnPropsEqual,h=void 0===m?Ci:m,v=i.areStatePropsEqual,g=void 0===v?Ci:v,b=i.areMergedPropsEqual,y=void 0===b?Ci:b,_=Qn(i,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),w=Mi(e,a,"mapStateToProps"),E=Mi(t,l,"mapDispatchToProps"),S=Mi(n,s,"mergeProps");return r(f,wt({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:w,initMapDispatchToProps:E,initMergeProps:S,pure:c,areStatesEqual:p,areOwnPropsEqual:h,areStatePropsEqual:g,areMergedPropsEqual:y},_))}}var Vi=Bi();var Ui;function zi(e,t){var n=Object(o.useState)((function(){return{inputs:t,result:e()}}))[0],r=Object(o.useRef)(n),a=Boolean(t&&r.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,r.current.inputs))?r.current:{inputs:t,result:e()};return Object(o.useEffect)((function(){r.current=a}),[a]),a.result}Ui=i.unstable_batchedUpdates,ci=Ui;var Hi=zi,Wi=function(e,t){return zi((function(){return e}),t)};var Gi=function(e,t){if(!e)throw new Error("Invariant failed")},qi=function(e){var t=e.top,n=e.right,r=e.bottom,o=e.left;return{top:t,right:n,bottom:r,left:o,width:n-o,height:r-t,x:o,y:t,center:{x:(n+o)/2,y:(r+t)/2}}},$i=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},Yi=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},Qi={top:0,right:0,bottom:0,left:0},Ki=function(e){var t=e.borderBox,n=e.margin,r=void 0===n?Qi:n,o=e.border,a=void 0===o?Qi:o,i=e.padding,l=void 0===i?Qi:i,u=qi($i(t,r)),s=qi(Yi(t,a)),c=qi(Yi(s,l));return{marginBox:u,borderBox:qi(t),paddingBox:s,contentBox:c,margin:r,border:a,padding:l}},Xi=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var n=Number(t);return isNaN(n)&&Gi(!1),n},Ji=function(e,t){var n,r,o=e.borderBox,a=e.border,i=e.margin,l=e.padding,u=(r=t,{top:(n=o).top+r.y,left:n.left+r.x,bottom:n.bottom+r.y,right:n.right+r.x});return Ki({borderBox:u,border:a,margin:i,padding:l})},Zi=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),Ji(e,t)},el=function(e,t){var n={top:Xi(t.marginTop),right:Xi(t.marginRight),bottom:Xi(t.marginBottom),left:Xi(t.marginLeft)},r={top:Xi(t.paddingTop),right:Xi(t.paddingRight),bottom:Xi(t.paddingBottom),left:Xi(t.paddingLeft)},o={top:Xi(t.borderTopWidth),right:Xi(t.borderRightWidth),bottom:Xi(t.borderBottomWidth),left:Xi(t.borderLeftWidth)};return Ki({borderBox:e,margin:n,padding:r,border:o})},tl=function(e){var t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return el(t,n)},nl=function(e){var t=[],n=null,r=function(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];t=o,n||(n=requestAnimationFrame((function(){n=null,e.apply(void 0,t)})))};return r.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},r};function rl(e,t){}rl.bind(null,"warn"),rl.bind(null,"error");function ol(){}function al(e,t,n){var r=t.map((function(t){var r,o,a=(r=n,o=t.options,wt({},r,{},o));return e.addEventListener(t.eventName,t.fn,a),function(){e.removeEventListener(t.eventName,t.fn,a)}}));return function(){r.forEach((function(e){e()}))}}function il(e){this.message=e}function ll(e,t){if(!e)throw new il("Invariant failed")}il.prototype.toString=function(){return this.message};var ul=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).callbacks=null,t.unbind=ol,t.onWindowError=function(e){var n=t.getCallbacks();n.isDragging()&&n.tryAbort(),e.error instanceof il&&e.preventDefault()},t.getCallbacks=function(){if(!t.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return t.callbacks},t.setCallbacks=function(e){t.callbacks=e},t}Xa(t,e);var n=t.prototype;return n.componentDidMount=function(){this.unbind=al(window,[{eventName:"error",fn:this.onWindowError}])},n.componentWillUnmount=function(){this.unbind()},n.componentDidCatch=function(e){if(!(e instanceof il))throw e;this.setState({})},n.render=function(){return this.props.children(this.setCallbacks)},t}(a.a.Component),sl=function(e){return e+1},cl=function(e,t){var n=e.droppableId===t.droppableId,r=sl(e.index),o=sl(t.index);return n?"\n You have moved the item from position "+r+"\n to position "+o+"\n ":"\n You have moved the item from position "+r+"\n in list "+e.droppableId+"\n to list "+t.droppableId+"\n in position "+o+"\n "},fl=function(e,t,n){return t.droppableId===n.droppableId?"\n The item "+e+"\n has been combined with "+n.draggableId:"\n The item "+e+"\n in list "+t.droppableId+"\n has been combined with "+n.draggableId+"\n in list "+n.droppableId+"\n "},dl=function(e){return"\n The item has returned to its starting position\n of "+sl(e.index)+"\n"},pl="\n Press space bar to start a drag.\n When dragging you can use the arrow keys to move the item around and escape to cancel.\n Some screen readers may require you to be in focus mode or to use your pass through key\n",ml=function(e){return"\n You have lifted an item in position "+sl(e.source.index)+"\n"},hl=function(e){var t=e.destination;if(t)return cl(e.source,t);var n=e.combine;return n?fl(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},vl=function(e){if("CANCEL"===e.reason)return"\n Movement cancelled.\n "+dl(e.source)+"\n ";var t=e.destination,n=e.combine;return t?"\n You have dropped the item.\n "+cl(e.source,t)+"\n ":n?"\n You have dropped the item.\n "+fl(e.draggableId,e.source,n)+"\n ":"\n The item has been dropped while not over a drop area.\n "+dl(e.source)+"\n "},gl={x:0,y:0},bl=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},yl=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},_l=function(e,t){return e.x===t.x&&e.y===t.y},wl=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},El=function(e,t,n){var r;return void 0===n&&(n=0),(r={})[e]=t,r["x"===e?"y":"x"]=n,r},Sl=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},Ol=function(e,t){return Math.min.apply(Math,t.map((function(t){return Sl(e,t)})))},xl=function(e){return function(t){return{x:e(t.x),y:e(t.y)}}},Cl=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},kl=function(e){return[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}]},Pl=function(e,t){return t&&t.shouldClipSubject?function(e,t){var n=qi({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n}(t.pageMarginBox,e):qi(e)},Il=function(e){var t=e.page,n=e.withPlaceholder,r=e.axis,o=e.frame,a=function(e,t,n){var r;return n&&n.increasedBy?wt({},e,((r={})[t.end]=e[t.end]+n.increasedBy[t.line],r)):e}(function(e,t){return t?Cl(e,t.scroll.diff.displacement):e}(t.marginBox,o),r,n);return{page:t,withPlaceholder:n,active:Pl(a,o)}},Dl=function(e,t){e.frame||ll(!1);var n=e.frame,r=yl(t,n.scroll.initial),o=wl(r),a=wt({},n,{scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:o},max:n.scroll.max}});return wt({},e,{frame:a,subject:Il({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:a})})};function Rl(e){return Object.values?Object.values(e):Object.keys(e).map((function(t){return e[t]}))}function Nl(e,t){if(e.findIndex)return e.findIndex(t);for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}function Tl(e,t){if(e.find)return e.find(t);var n=Nl(e,t);return-1!==n?e[n]:void 0}function Ll(e){return Array.prototype.slice.call(e)}var Al=$o((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),jl=$o((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),Ml=$o((function(e){return Rl(e)})),Fl=$o((function(e){return Rl(e)})),Bl=$o((function(e,t){return Fl(t).filter((function(t){return e===t.descriptor.droppableId})).sort((function(e,t){return e.descriptor.index-t.descriptor.index}))}));function Vl(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function Ul(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var zl=$o((function(e,t){return t.filter((function(t){return t.descriptor.id!==e.descriptor.id}))})),Hl=function(e,t){return e.descriptor.droppableId===t.descriptor.id},Wl={point:gl,value:0},Gl={invisible:{},visible:{},all:[]},ql={displaced:Gl,displacedBy:Wl,at:null},$l=function(e,t){return function(n){return e<=n&&n<=t}},Yl=function(e){var t=$l(e.top,e.bottom),n=$l(e.left,e.right);return function(r){if(t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right))return!0;var o=t(r.top)||t(r.bottom),a=n(r.left)||n(r.right);if(o&&a)return!0;var i=r.top<e.top&&r.bottom>e.bottom,l=r.left<e.left&&r.right>e.right;return!(!i||!l)||(i&&a||l&&o)}},Ql=function(e){var t=$l(e.top,e.bottom),n=$l(e.left,e.right);return function(e){return t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right)}},Kl={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},Xl={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Jl=function(e){var t=e.target,n=e.destination,r=e.viewport,o=e.withDroppableDisplacement,a=e.isVisibleThroughFrameFn,i=o?function(e,t){var n=t.frame?t.frame.scroll.diff.displacement:gl;return Cl(e,n)}(t,n):t;return function(e,t,n){return!!t.subject.active&&n(t.subject.active)(e)}(i,n,a)&&function(e,t,n){return n(t)(e)}(i,r,a)},Zl=function(e){return Jl(wt({},e,{isVisibleThroughFrameFn:Yl}))},eu=function(e){return Jl(wt({},e,{isVisibleThroughFrameFn:Ql}))};function tu(e){var t=e.afterDragging,n=e.destination,r=e.displacedBy,o=e.viewport,a=e.forceShouldAnimate,i=e.last;return t.reduce((function(e,t){var l=function(e,t){var n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return qi($i(n,r))}(t,r),u=t.descriptor.id;if(e.all.push(u),!Zl({target:l,destination:n,viewport:o,withDroppableDisplacement:!0}))return e.invisible[t.descriptor.id]=!0,e;var s={draggableId:u,shouldAnimate:function(e,t,n){if("boolean"==typeof n)return n;if(!t)return!0;var r=t.invisible,o=t.visible;if(r[e])return!1;var a=o[e];return!a||a.shouldAnimate}(u,i,a)};return e.visible[u]=s,e}),{all:[],visible:{},invisible:{}})}function nu(e){var t=e.insideDestination,n=e.inHomeList,r=e.displacedBy,o=e.destination,a=function(e,t){if(!e.length)return 0;var n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}(t,{inHomeList:n});return{displaced:Gl,displacedBy:r,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:a}}}}function ru(e){var t=e.draggable,n=e.insideDestination,r=e.destination,o=e.viewport,a=e.displacedBy,i=e.last,l=e.index,u=e.forceShouldAnimate,s=Hl(t,r);if(null==l)return nu({insideDestination:n,inHomeList:s,displacedBy:a,destination:r});var c=Tl(n,(function(e){return e.descriptor.index===l}));if(!c)return nu({insideDestination:n,inHomeList:s,displacedBy:a,destination:r});var f=zl(t,n),d=n.indexOf(c);return{displaced:tu({afterDragging:f.slice(d),destination:r,displacedBy:a,last:i,viewport:o.frame,forceShouldAnimate:u}),displacedBy:a,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:l}}}}function ou(e,t){return Boolean(t.effected[e])}var au=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.draggable,o=e.draggables,a=e.destination,i=e.insideDestination,l=e.previousImpact,u=e.viewport,s=e.afterCritical,c=l.at;if(c||ll(!1),"REORDER"===c.type){var f=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.insideDestination,o=e.location;if(!r.length)return null;var a=o.index,i=t?a+1:a-1,l=r[0].descriptor.index,u=r[r.length-1].descriptor.index;return i<l||i>(n?u:u+1)?null:i}({isMovingForward:t,isInHomeList:n,location:c.destination,insideDestination:i});return null==f?null:ru({draggable:r,insideDestination:i,destination:a,viewport:u,last:l.displaced,displacedBy:l.displacedBy,index:f})}var d=function(e){var t=e.isMovingForward,n=e.destination,r=e.draggables,o=e.combine,a=e.afterCritical;if(!n.isCombineEnabled)return null;var i=o.draggableId,l=r[i].descriptor.index;return ou(i,a)?t?l:l-1:t?l+1:l}({isMovingForward:t,destination:a,displaced:l.displaced,draggables:o,combine:c.combine,afterCritical:s});return null==d?null:ru({draggable:r,insideDestination:i,destination:a,viewport:u,last:l.displaced,displacedBy:l.displacedBy,index:d})},iu=function(e){var t=e.afterCritical,n=e.impact,r=e.draggables,o=Ul(n);o||ll(!1);var a=o.draggableId,i=r[a].page.borderBox.center,l=function(e){var t=e.displaced,n=e.afterCritical,r=e.combineWith,o=e.displacedBy,a=Boolean(t.visible[r]||t.invisible[r]);return ou(r,n)?a?gl:wl(o.point):a?o.point:gl}({displaced:n.displaced,afterCritical:t,combineWith:a,displacedBy:n.displacedBy});return bl(i,l)},lu=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},uu=function(e,t,n){return t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2},su=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return El(t.line,n.marginBox[t.end]+lu(t,r),uu(t,n.marginBox,r))},cu=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return El(t.line,n.marginBox[t.start]-function(e,t){return t.margin[e.end]+t.borderBox[e.size]/2}(t,r),uu(t,n.marginBox,r))},fu=function(e){var t=e.impact,n=e.draggable,r=e.draggables,o=e.droppable,a=e.afterCritical,i=Bl(o.descriptor.id,r),l=n.page,u=o.axis;if(!i.length)return function(e){var t=e.axis,n=e.moveInto,r=e.isMoving;return El(t.line,n.contentBox[t.start]+lu(t,r),uu(t,n.contentBox,r))}({axis:u,moveInto:o.page,isMoving:l});var s=t.displaced,c=t.displacedBy,f=s.all[0];if(f){var d=r[f];if(ou(f,a))return cu({axis:u,moveRelativeTo:d.page,isMoving:l});var p=Ji(d.page,c.point);return cu({axis:u,moveRelativeTo:p,isMoving:l})}var m=i[i.length-1];if(m.descriptor.id===n.descriptor.id)return l.borderBox.center;if(ou(m.descriptor.id,a)){var h=Ji(m.page,wl(a.displacedBy.point));return su({axis:u,moveRelativeTo:h,isMoving:l})}return su({axis:u,moveRelativeTo:m.page,isMoving:l})},du=function(e,t){var n=e.frame;return n?bl(t,n.scroll.diff.displacement):t},pu=function(e){var t=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,a=e.afterCritical,i=n.page.borderBox.center,l=t.at;return r&&l?"REORDER"===l.type?fu({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:a}):iu({impact:t,draggables:o,afterCritical:a}):i}(e),n=e.droppable;return n?du(n,t):t},mu=function(e,t){var n=yl(t,e.scroll.initial),r=wl(n);return{frame:qi({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}}};function hu(e,t){return e.map((function(e){return t[e]}))}var vu=function(e){var t=e.pageBorderBoxCenter,n=e.draggable,r=function(e,t){return bl(e.scroll.diff.displacement,t)}(e.viewport,t),o=yl(r,n.page.borderBox.center);return bl(n.client.borderBox.center,o)},gu=function(e){var t=e.draggable,n=e.destination,r=e.newPageBorderBoxCenter,o=e.viewport,a=e.withDroppableDisplacement,i=e.onlyOnMainAxis,l=void 0!==i&&i,u=yl(r,t.page.borderBox.center),s={target:Cl(t.page.borderBox,u),destination:n,withDroppableDisplacement:a,viewport:o};return l?function(e){return Jl(wt({},e,{isVisibleThroughFrameFn:(t=e.destination.axis,function(e){var n=$l(e.top,e.bottom),r=$l(e.left,e.right);return function(e){return t===Kl?n(e.top)&&n(e.bottom):r(e.left)&&r(e.right)}})}));var t}(s):eu(s)},bu=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.draggables,a=e.previousImpact,i=e.viewport,l=e.previousPageBorderBoxCenter,u=e.previousClientSelection,s=e.afterCritical;if(!r.isEnabled)return null;var c=Bl(r.descriptor.id,o),f=Hl(n,r),d=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.insideDestination,a=e.previousImpact;if(!r.isCombineEnabled)return null;if(!Vl(a))return null;function i(e){var t={type:"COMBINE",combine:{draggableId:e,droppableId:r.descriptor.id}};return wt({},a,{at:t})}var l=a.displaced.all,u=l.length?l[0]:null;if(t)return u?i(u):null;var s=zl(n,o);if(!u)return s.length?i(s[s.length-1].descriptor.id):null;var c=Nl(s,(function(e){return e.descriptor.id===u}));-1===c&&ll(!1);var f=c-1;return f<0?null:i(s[f].descriptor.id)}({isMovingForward:t,draggable:n,destination:r,insideDestination:c,previousImpact:a})||au({isMovingForward:t,isInHomeList:f,draggable:n,draggables:o,destination:r,insideDestination:c,previousImpact:a,viewport:i,afterCritical:s});if(!d)return null;var p=pu({impact:d,draggable:n,droppable:r,draggables:o,afterCritical:s});if(gu({draggable:n,destination:r,newPageBorderBoxCenter:p,viewport:i.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:vu({pageBorderBoxCenter:p,draggable:n,viewport:i}),impact:d,scrollJumpRequest:null};var m=yl(p,l);return{clientSelection:u,impact:function(e){var t=e.impact,n=e.viewport,r=e.destination,o=e.draggables,a=e.maxScrollChange,i=mu(n,bl(n.scroll.current,a)),l=r.frame?Dl(r,bl(r.frame.scroll.current,a)):r,u=t.displaced,s=tu({afterDragging:hu(u.all,o),destination:r,displacedBy:t.displacedBy,viewport:i.frame,last:u,forceShouldAnimate:!1}),c=tu({afterDragging:hu(u.all,o),destination:l,displacedBy:t.displacedBy,viewport:n.frame,last:u,forceShouldAnimate:!1}),f={},d={},p=[u,s,c];return u.all.forEach((function(e){var t=function(e,t){for(var n=0;n<t.length;n++){var r=t[n].visible[e];if(r)return r}return null}(e,p);t?d[e]=t:f[e]=!0})),wt({},t,{displaced:{all:u.all,invisible:f,visible:d}})}({impact:d,viewport:i,destination:r,draggables:o,maxScrollChange:m}),scrollJumpRequest:m}},yu=function(e){var t=e.subject.active;return t||ll(!1),t},_u=function(e,t){var n=e.page.borderBox.center;return ou(e.descriptor.id,t)?yl(n,t.displacedBy.point):n},wu=function(e,t){var n=e.page.borderBox;return ou(e.descriptor.id,t)?Cl(n,wl(t.displacedBy.point)):n},Eu=$o((function(e,t){var n=t[e.line];return{value:n,point:El(e.line,n)}})),Su=function(e,t){return wt({},e,{scroll:wt({},e.scroll,{max:t})})},Ou=function(e,t,n){var r=e.frame;Hl(t,e)&&ll(!1),e.subject.withPlaceholder&&ll(!1);var o=Eu(e.axis,t.displaceBy).point,a=function(e,t,n){var r=e.axis;if("virtual"===e.descriptor.mode)return El(r.line,t[r.line]);var o=e.subject.page.contentBox[r.size],a=Bl(e.descriptor.id,n).reduce((function(e,t){return e+t.client.marginBox[r.size]}),0)+t[r.line]-o;return a<=0?null:El(r.line,a)}(e,o,n),i={placeholderSize:o,increasedBy:a,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r)return wt({},e,{subject:Il({page:e.subject.page,withPlaceholder:i,axis:e.axis,frame:e.frame})});var l=a?bl(r.scroll.max,a):r.scroll.max,u=Su(r,l);return wt({},e,{subject:Il({page:e.subject.page,withPlaceholder:i,axis:e.axis,frame:u}),frame:u})},xu=function(e){var t=e.isMovingForward,n=e.previousPageBorderBoxCenter,r=e.draggable,o=e.isOver,a=e.draggables,i=e.droppables,l=e.viewport,u=e.afterCritical,s=function(e){var t=e.isMovingForward,n=e.pageBorderBoxCenter,r=e.source,o=e.droppables,a=e.viewport,i=r.subject.active;if(!i)return null;var l=r.axis,u=$l(i[l.start],i[l.end]),s=Ml(o).filter((function(e){return e!==r})).filter((function(e){return e.isEnabled})).filter((function(e){return Boolean(e.subject.active)})).filter((function(e){return Yl(a.frame)(yu(e))})).filter((function(e){var n=yu(e);return t?i[l.crossAxisEnd]<n[l.crossAxisEnd]:n[l.crossAxisStart]<i[l.crossAxisStart]})).filter((function(e){var t=yu(e),n=$l(t[l.start],t[l.end]);return u(t[l.start])||u(t[l.end])||n(i[l.start])||n(i[l.end])})).sort((function(e,n){var r=yu(e)[l.crossAxisStart],o=yu(n)[l.crossAxisStart];return t?r-o:o-r})).filter((function(e,t,n){return yu(e)[l.crossAxisStart]===yu(n[0])[l.crossAxisStart]}));if(!s.length)return null;if(1===s.length)return s[0];var c=s.filter((function(e){return $l(yu(e)[l.start],yu(e)[l.end])(n[l.line])}));return 1===c.length?c[0]:c.length>1?c.sort((function(e,t){return yu(e)[l.start]-yu(t)[l.start]}))[0]:s.sort((function(e,t){var r=Ol(n,kl(yu(e))),o=Ol(n,kl(yu(t)));return r!==o?r-o:yu(e)[l.start]-yu(t)[l.start]}))[0]}({isMovingForward:t,pageBorderBoxCenter:n,source:o,droppables:i,viewport:l});if(!s)return null;var c=Bl(s.descriptor.id,a),f=function(e){var t=e.previousPageBorderBoxCenter,n=e.moveRelativeTo,r=e.insideDestination,o=e.draggable,a=e.draggables,i=e.destination,l=e.viewport,u=e.afterCritical;if(!n){if(r.length)return null;var s={displaced:Gl,displacedBy:Wl,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:0}}},c=pu({impact:s,draggable:o,droppable:i,draggables:a,afterCritical:u}),f=Hl(o,i)?i:Ou(i,o,a);return gu({draggable:o,destination:f,newPageBorderBoxCenter:c,viewport:l.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?s:null}var d,p=Boolean(t[i.axis.line]<=n.page.borderBox.center[i.axis.line]),m=(d=n.descriptor.index,n.descriptor.id===o.descriptor.id||p?d:d+1),h=Eu(i.axis,o.displaceBy);return ru({draggable:o,insideDestination:r,destination:i,viewport:l,displacedBy:h,last:Gl,index:m})}({previousPageBorderBoxCenter:n,destination:s,draggable:r,draggables:a,moveRelativeTo:function(e){var t=e.pageBorderBoxCenter,n=e.viewport,r=e.destination,o=e.insideDestination,a=e.afterCritical;return o.filter((function(e){return eu({target:wu(e,a),destination:r,viewport:n.frame,withDroppableDisplacement:!0})})).sort((function(e,n){var o=Sl(t,du(r,_u(e,a))),i=Sl(t,du(r,_u(n,a)));return o<i?-1:i<o?1:e.descriptor.index-n.descriptor.index}))[0]||null}({pageBorderBoxCenter:n,viewport:l,destination:s,insideDestination:c,afterCritical:u}),insideDestination:c,viewport:l,afterCritical:u});if(!f)return null;var d=pu({impact:f,draggable:r,droppable:s,draggables:a,afterCritical:u});return{clientSelection:vu({pageBorderBoxCenter:d,draggable:r,viewport:l}),impact:f,scrollJumpRequest:null}},Cu=function(e){var t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null},ku=function(e){var t=e.state,n=e.type,r=function(e,t){var n=Cu(e);return n?t[n]:null}(t.impact,t.dimensions.droppables),o=Boolean(r),a=t.dimensions.droppables[t.critical.droppable.id],i=r||a,l=i.axis.direction,u="vertical"===l&&("MOVE_UP"===n||"MOVE_DOWN"===n)||"horizontal"===l&&("MOVE_LEFT"===n||"MOVE_RIGHT"===n);if(u&&!o)return null;var s="MOVE_DOWN"===n||"MOVE_RIGHT"===n,c=t.dimensions.draggables[t.critical.draggable.id],f=t.current.page.borderBoxCenter,d=t.dimensions,p=d.draggables,m=d.droppables;return u?bu({isMovingForward:s,previousPageBorderBoxCenter:f,draggable:c,destination:i,draggables:p,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):xu({isMovingForward:s,previousPageBorderBoxCenter:f,draggable:c,isOver:i,draggables:p,droppables:m,viewport:t.viewport,afterCritical:t.afterCritical})};function Pu(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function Iu(e){var t=$l(e.top,e.bottom),n=$l(e.left,e.right);return function(e){return t(e.y)&&n(e.x)}}function Du(e){var t=e.pageBorderBox,n=e.draggable,r=e.droppables,o=Ml(r).filter((function(e){if(!e.isEnabled)return!1;var n,r,o=e.subject.active;if(!o)return!1;if(r=o,!((n=t).left<r.right&&n.right>r.left&&n.top<r.bottom&&n.bottom>r.top))return!1;if(Iu(o)(t.center))return!0;var a=e.axis,i=o.center[a.crossAxisLine],l=t[a.crossAxisStart],u=t[a.crossAxisEnd],s=$l(o[a.crossAxisStart],o[a.crossAxisEnd]),c=s(l),f=s(u);return!c&&!f||(c?l<i:u>i)}));return o.length?1===o.length?o[0].descriptor.id:function(e){var t=e.pageBorderBox,n=e.draggable,r=e.candidates,o=n.page.borderBox.center,a=r.map((function(e){var n=e.axis,r=El(e.axis.line,t.center[n.line],e.page.borderBox.center[n.crossAxisLine]);return{id:e.descriptor.id,distance:Sl(o,r)}})).sort((function(e,t){return t.distance-e.distance}));return a[0]?a[0].id:null}({pageBorderBox:t,draggable:n,candidates:o}):null}var Ru=function(e,t){return qi(Cl(e,t))};function Nu(e){var t=e.displaced,n=e.id;return Boolean(t.visible[n]||t.invisible[n])}var Tu=function(e){var t=e.pageOffset,n=e.draggable,r=e.draggables,o=e.droppables,a=e.previousImpact,i=e.viewport,l=e.afterCritical,u=Ru(n.page.borderBox,t),s=Du({pageBorderBox:u,draggable:n,droppables:o});if(!s)return ql;var c,f,d=o[s],p=Bl(d.descriptor.id,r),m=(c=u,(f=d.frame)?Ru(c,f.scroll.diff.value):c);return function(e){var t=e.draggable,n=e.pageBorderBoxWithDroppableScroll,r=e.previousImpact,o=e.destination,a=e.insideDestination,i=e.afterCritical;if(!o.isCombineEnabled)return null;var l=o.axis,u=Eu(o.axis,t.displaceBy),s=u.value,c=n[l.start],f=n[l.end],d=Tl(zl(t,a),(function(e){var t=e.descriptor.id,n=e.page.borderBox,o=n[l.size]/4,a=ou(t,i),u=Nu({displaced:r.displaced,id:t});return a?u?f>n[l.start]+o&&f<n[l.end]-o:c>n[l.start]-s+o&&c<n[l.end]-s-o:u?f>n[l.start]+s+o&&f<n[l.end]+s-o:c>n[l.start]+o&&c<n[l.end]-o}));return d?{displacedBy:u,displaced:r.displaced,at:{type:"COMBINE",combine:{draggableId:d.descriptor.id,droppableId:o.descriptor.id}}}:null}({pageBorderBoxWithDroppableScroll:m,draggable:n,previousImpact:a,destination:d,insideDestination:p,afterCritical:l})||function(e){var t=e.pageBorderBoxWithDroppableScroll,n=e.draggable,r=e.destination,o=e.insideDestination,a=e.last,i=e.viewport,l=e.afterCritical,u=r.axis,s=Eu(r.axis,n.displaceBy),c=s.value,f=t[u.start],d=t[u.end],p=function(e){var t=e.draggable,n=e.closest,r=e.inHomeList;return n?r&&n.descriptor.index>t.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}({draggable:n,closest:Tl(zl(n,o),(function(e){var t=e.descriptor.id,n=e.page.borderBox.center[u.line],r=ou(t,l),o=Nu({displaced:a,id:t});return r?o?d<=n:f<n-c:o?d<=n+c:f<n})),inHomeList:Hl(n,r)});return ru({draggable:n,insideDestination:o,destination:r,viewport:i,last:a,displacedBy:s,index:p})}({pageBorderBoxWithDroppableScroll:m,draggable:n,destination:d,insideDestination:p,last:a.displaced,viewport:i,afterCritical:l})},Lu=function(e,t){var n;return wt({},e,((n={})[t.descriptor.id]=t,n))},Au=function(e){var t=e.previousImpact,n=e.impact,r=e.droppables,o=Cu(t),a=Cu(n);if(!o)return r;if(o===a)return r;var i=r[o];if(!i.subject.withPlaceholder)return r;var l=function(e){var t=e.subject.withPlaceholder;t||ll(!1);var n=e.frame;if(!n)return wt({},e,{subject:Il({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null})});var r=t.oldFrameMaxScroll;r||ll(!1);var o=Su(n,r);return wt({},e,{subject:Il({page:e.subject.page,axis:e.axis,frame:o,withPlaceholder:null}),frame:o})}(i);return Lu(r,l)},ju=function(e){var t=e.state,n=e.clientSelection,r=e.dimensions,o=e.viewport,a=e.impact,i=e.scrollJumpRequest,l=o||t.viewport,u=r||t.dimensions,s=n||t.current.client.selection,c=yl(s,t.initial.client.selection),f={offset:c,selection:s,borderBoxCenter:bl(t.initial.client.borderBoxCenter,c)},d={selection:bl(f.selection,l.scroll.current),borderBoxCenter:bl(f.borderBoxCenter,l.scroll.current),offset:bl(f.offset,l.scroll.diff.value)},p={client:f,page:d};if("COLLECTING"===t.phase)return wt({phase:"COLLECTING"},t,{dimensions:u,viewport:l,current:p});var m=u.draggables[t.critical.draggable.id],h=a||Tu({pageOffset:d.offset,draggable:m,draggables:u.draggables,droppables:u.droppables,previousImpact:t.impact,viewport:l,afterCritical:t.afterCritical}),v=function(e){var t=e.draggable,n=e.draggables,r=e.droppables,o=e.previousImpact,a=e.impact,i=Au({previousImpact:o,impact:a,droppables:r}),l=Cu(a);if(!l)return i;var u=r[l];if(Hl(t,u))return i;if(u.subject.withPlaceholder)return i;var s=Ou(u,t,n);return Lu(i,s)}({draggable:m,impact:h,previousImpact:t.impact,draggables:u.draggables,droppables:u.droppables});return wt({},t,{current:p,dimensions:{draggables:u.draggables,droppables:v},impact:h,viewport:l,scrollJumpRequest:i||null,forceShouldAnimate:!i&&null})};var Mu=function(e){var t=e.impact,n=e.viewport,r=e.draggables,o=e.destination,a=e.forceShouldAnimate,i=t.displaced;return wt({},t,{displaced:tu({afterDragging:function(e,t){return e.map((function(e){return t[e]}))}(i.all,r),destination:o,displacedBy:t.displacedBy,viewport:n.frame,forceShouldAnimate:a,last:i})})},Fu=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,a=e.viewport,i=e.afterCritical,l=pu({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:i});return vu({pageBorderBoxCenter:l,draggable:n,viewport:a})},Bu=function(e){var t=e.state,n=e.dimensions,r=e.viewport;"SNAP"!==t.movementMode&&ll(!1);var o=t.impact,a=r||t.viewport,i=n||t.dimensions,l=i.draggables,u=i.droppables,s=l[t.critical.draggable.id],c=Cu(o);c||ll(!1);var f=u[c],d=Mu({impact:o,viewport:a,destination:f,draggables:l}),p=Fu({impact:d,draggable:s,droppable:f,draggables:l,viewport:a,afterCritical:t.afterCritical});return ju({impact:d,clientSelection:p,state:t,dimensions:i,viewport:a})},Vu=function(e){var t=e.draggable,n=e.home,r=e.draggables,o=e.viewport,a=Eu(n.axis,t.displaceBy),i=Bl(n.descriptor.id,r),l=i.indexOf(t);-1===l&&ll(!1);var u,s=i.slice(l+1),c=s.reduce((function(e,t){return e[t.descriptor.id]=!0,e}),{}),f={inVirtualList:"virtual"===n.descriptor.mode,displacedBy:a,effected:c};return{impact:{displaced:tu({afterDragging:s,destination:n,displacedBy:a,last:null,viewport:o.frame,forceShouldAnimate:!1}),displacedBy:a,at:{type:"REORDER",destination:(u=t.descriptor,{index:u.index,droppableId:u.droppableId})}},afterCritical:f}},Uu=function(e){0},zu=function(e){0},Hu=function(e){var t=e.additions,n=e.updatedDroppables,r=e.viewport,o=r.scroll.diff.value;return t.map((function(e){var t=e.descriptor.droppableId,a=function(e){var t=e.frame;return t||ll(!1),t}(n[t]).scroll.diff.value;return function(e){var t=e.draggable,n=e.offset,r=e.initialWindowScroll,o=Ji(t.client,n),a=Zi(o,r);return wt({},t,{placeholder:wt({},t.placeholder,{client:o}),client:o,page:a})}({draggable:e,offset:bl(o,a),initialWindowScroll:r.scroll.initial})}))},Wu=function(e){return"SNAP"===e.movementMode},Gu=function(e,t,n){var r=function(e,t){return{draggables:e.draggables,droppables:Lu(e.droppables,t)}}(e.dimensions,t);return!Wu(e)||n?ju({state:e,dimensions:r}):Bu({state:e,dimensions:r})};function qu(e){return e.isDragging&&"SNAP"===e.movementMode?wt({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var $u={phase:"IDLE",completed:null,shouldFlush:!1},Yu=function(e,t){if(void 0===e&&(e=$u),"FLUSH"===t.type)return wt({},$u,{shouldFlush:!0});if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&ll(!1);var n=t.payload,r=n.critical,o=n.clientSelection,a=n.viewport,i=n.dimensions,l=n.movementMode,u=i.draggables[r.draggable.id],s=i.droppables[r.droppable.id],c={selection:o,borderBoxCenter:u.client.borderBox.center,offset:gl},f={client:c,page:{selection:bl(c.selection,a.scroll.initial),borderBoxCenter:bl(c.selection,a.scroll.initial),offset:bl(c.selection,a.scroll.diff.value)}},d=Ml(i.droppables).every((function(e){return!e.isFixedOnPage})),p=Vu({draggable:u,home:s,draggables:i.draggables,viewport:a}),m=p.impact;return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:l,dimensions:i,initial:f,current:f,isWindowScrollAllowed:d,impact:m,afterCritical:p.afterCritical,onLiftImpact:m,viewport:a,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&ll(!1),wt({phase:"COLLECTING"},e,{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&ll(!1),function(e){var t=e.state,n=e.published;Uu();var r=n.modified.map((function(e){var n=t.dimensions.droppables[e.droppableId];return Dl(n,e.scroll)})),o=wt({},t.dimensions.droppables,{},Al(r)),a=jl(Hu({additions:n.additions,updatedDroppables:o,viewport:t.viewport})),i=wt({},t.dimensions.draggables,{},a);n.removals.forEach((function(e){delete i[e]}));var l={droppables:o,draggables:i},u=Cu(t.impact),s=u?l.droppables[u]:null,c=l.draggables[t.critical.draggable.id],f=l.droppables[t.critical.droppable.id],d=Vu({draggable:c,home:f,draggables:i,viewport:t.viewport}),p=d.impact,m=d.afterCritical,h=s&&s.isCombineEnabled?t.impact:p,v=Tu({pageOffset:t.current.page.offset,draggable:l.draggables[t.critical.draggable.id],draggables:l.draggables,droppables:l.droppables,previousImpact:h,viewport:t.viewport,afterCritical:m});zu();var g=wt({phase:"DRAGGING"},t,{phase:"DRAGGING",impact:v,onLiftImpact:p,dimensions:l,afterCritical:m,forceShouldAnimate:!1});return"COLLECTING"===t.phase?g:wt({phase:"DROP_PENDING"},g,{phase:"DROP_PENDING",reason:t.reason,isWaiting:!1})}({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;Pu(e)||ll(!1);var h=t.payload.client;return _l(h,e.current.client.selection)?e:ju({state:e,clientSelection:h,impact:Wu(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return qu(e);if("COLLECTING"===e.phase)return qu(e);Pu(e)||ll(!1);var v=t.payload,g=v.id,b=v.newScroll,y=e.dimensions.droppables[g];if(!y)return e;var _=Dl(y,b);return Gu(e,_,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;Pu(e)||ll(!1);var w=t.payload,E=w.id,S=w.isEnabled,O=e.dimensions.droppables[E];O||ll(!1),O.isEnabled===S&&ll(!1);var x=wt({},O,{isEnabled:S});return Gu(e,x,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;Pu(e)||ll(!1);var C=t.payload,k=C.id,P=C.isCombineEnabled,I=e.dimensions.droppables[k];I||ll(!1),I.isCombineEnabled===P&&ll(!1);var D=wt({},I,{isCombineEnabled:P});return Gu(e,D,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;Pu(e)||ll(!1),e.isWindowScrollAllowed||ll(!1);var R=t.payload.newScroll;if(_l(e.viewport.scroll.current,R))return qu(e);var N=mu(e.viewport,R);return Wu(e)?Bu({state:e,viewport:N}):ju({state:e,viewport:N})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!Pu(e))return e;var T=t.payload.maxScroll;if(_l(T,e.viewport.scroll.max))return e;var L=wt({},e.viewport,{scroll:wt({},e.viewport.scroll,{max:T})});return wt({phase:"DRAGGING"},e,{viewport:L})}if("MOVE_UP"===t.type||"MOVE_DOWN"===t.type||"MOVE_LEFT"===t.type||"MOVE_RIGHT"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&ll(!1);var A=ku({state:e,type:t.type});return A?ju({state:e,impact:A.impact,clientSelection:A.clientSelection,scrollJumpRequest:A.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){var j=t.payload.reason;return"COLLECTING"!==e.phase&&ll(!1),wt({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:j})}if("DROP_ANIMATE"===t.type){var M=t.payload,F=M.completed,B=M.dropDuration,V=M.newHomeClientOffset;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&ll(!1),{phase:"DROP_ANIMATING",completed:F,dropDuration:B,newHomeClientOffset:V,dimensions:e.dimensions}}return"DROP_COMPLETE"===t.type?{phase:"IDLE",completed:t.payload.completed,shouldFlush:!1}:e},Qu=function(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},Ku=function(){return{type:"COLLECTION_STARTING",payload:null}},Xu=function(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},Ju=function(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},Zu=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},es=function(e){return{type:"MOVE",payload:e}},ts=function(){return{type:"MOVE_UP",payload:null}},ns=function(){return{type:"MOVE_DOWN",payload:null}},rs=function(){return{type:"MOVE_RIGHT",payload:null}},os=function(){return{type:"MOVE_LEFT",payload:null}},as=function(e){return{type:"DROP_COMPLETE",payload:e}},is=function(e){return{type:"DROP",payload:e}},ls=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};var us="cubic-bezier(.2,1,.1,1)",ss={drop:0,combining:.7},cs={drop:.75},fs=.2+"s "+"cubic-bezier(0.2, 0, 0, 1)",ds={fluid:"opacity "+fs,snap:"transform "+fs+", opacity "+fs,drop:function(e){var t=e+"s "+us;return"transform "+t+", opacity "+t},outOfTheWay:"transform "+fs,placeholder:"height "+fs+", width "+fs+", margin "+fs},ps=function(e){return _l(e,gl)?null:"translate("+e.x+"px, "+e.y+"px)"},ms=ps,hs=function(e,t){var n=ps(e);return n?t?n+" scale("+cs.drop+")":n:null},vs=.33,gs=.55,bs=gs-vs,ys=function(e){var t=e.getState,n=e.dispatch;return function(e){return function(r){if("DROP"===r.type){var o=t(),a=r.payload.reason;if("COLLECTING"!==o.phase){if("IDLE"!==o.phase){"DROP_PENDING"===o.phase&&o.isWaiting&&ll(!1),"DRAGGING"!==o.phase&&"DROP_PENDING"!==o.phase&&ll(!1);var i=o.critical,l=o.dimensions,u=l.draggables[o.critical.draggable.id],s=function(e){var t=e.draggables,n=e.reason,r=e.lastImpact,o=e.home,a=e.viewport,i=e.onLiftImpact;return r.at&&"DROP"===n?"REORDER"===r.at.type?{impact:r,didDropInsideDroppable:!0}:{impact:wt({},r,{displaced:Gl}),didDropInsideDroppable:!0}:{impact:Mu({draggables:t,impact:i,destination:o,viewport:a,forceShouldAnimate:!0}),didDropInsideDroppable:!1}}({reason:a,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),c=s.impact,f=s.didDropInsideDroppable,d=f?Vl(c):null,p=f?Ul(c):null,m={index:i.draggable.index,droppableId:i.droppable.id},h={draggableId:u.descriptor.id,type:u.descriptor.type,source:m,reason:a,mode:o.movementMode,destination:d,combine:p},v=function(e){var t=e.impact,n=e.draggable,r=e.dimensions,o=e.viewport,a=e.afterCritical,i=r.draggables,l=r.droppables,u=Cu(t),s=u?l[u]:null,c=l[n.descriptor.droppableId],f=Fu({impact:t,draggable:n,draggables:i,afterCritical:a,droppable:s||c,viewport:o});return yl(f,n.client.borderBox.center)}({impact:c,draggable:u,dimensions:l,viewport:o.viewport,afterCritical:o.afterCritical}),g={critical:o.critical,afterCritical:o.afterCritical,result:h,impact:c};if(!_l(o.current.client.offset,v)||Boolean(h.combine)){var b=function(e){var t=e.current,n=e.destination,r=e.reason,o=Sl(t,n);if(o<=0)return vs;if(o>=1500)return gs;var a=vs+bs*(o/1500);return Number(("CANCEL"===r?.6*a:a).toFixed(2))}({current:o.current.client.offset,destination:v,reason:a});n(function(e){return{type:"DROP_ANIMATE",payload:e}}({newHomeClientOffset:v,dropDuration:b,completed:g}))}else n(as({completed:g}))}}else n(function(e){return{type:"DROP_PENDING",payload:e}}({reason:a}))}else e(r)}}},_s=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function ws(e){var t=e.onWindowScroll;var n,r=nl((function(){t(_s())})),o=(n=r,{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(e){e.target!==window&&e.target!==window.document||n()}}),a=ol;function i(){return a!==ol}return{start:function(){i()&&ll(!1),a=al(window,[o])},stop:function(){i()||ll(!1),r.cancel(),a(),a=ol},isActive:i}}var Es=function(e){var t=ws({onWindowScroll:function(t){e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return function(e){return function(n){t.isActive()||"INITIAL_PUBLISH"!==n.type||t.start(),t.isActive()&&function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(n)&&t.stop(),e(n)}}},Ss=function(){var e=[];return{add:function(t){var n=setTimeout((function(){return function(t){var n=Nl(e,(function(e){return e.timerId===t}));-1===n&&ll(!1),e.splice(n,1)[0].callback()}(n)})),r={timerId:n,callback:t};e.push(r)},flush:function(){if(e.length){var t=[].concat(e);e.length=0,t.forEach((function(e){clearTimeout(e.timerId),e.callback()}))}}}},Os=function(e,t){Uu(),t(),zu()},xs=function(e,t){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t}},Cs=function(e,t,n,r){if(e){var o=function(e){var t=!1,n=!1,r=setTimeout((function(){n=!0})),o=function(o){t||n||(t=!0,e(o),clearTimeout(r))};return o.wasCalled=function(){return t},o}(n);e(t,{announce:o}),o.wasCalled()||n(r(t))}else n(r(t))},ks=function(e,t){var n=function(e,t){var n=Ss(),r=null,o=function(n){r||ll(!1),r=null,Os(0,(function(){return Cs(e().onDragEnd,n,t,vl)}))};return{beforeCapture:function(t,n){r&&ll(!1),Os(0,(function(){var r=e().onBeforeCapture;r&&r({draggableId:t,mode:n})}))},beforeStart:function(t,n){r&&ll(!1),Os(0,(function(){var r=e().onBeforeDragStart;r&&r(xs(t,n))}))},start:function(o,a){r&&ll(!1);var i=xs(o,a);r={mode:a,lastCritical:o,lastLocation:i.source,lastCombine:null},n.add((function(){Os(0,(function(){return Cs(e().onDragStart,i,t,ml)}))}))},update:function(o,a){var i=Vl(a),l=Ul(a);r||ll(!1);var u=!function(e,t){if(e===t)return!0;var n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r}(o,r.lastCritical);u&&(r.lastCritical=o);var s,c,f=(s=r.lastLocation,c=i,!(null==s&&null==c||null!=s&&null!=c&&s.droppableId===c.droppableId&&s.index===c.index));f&&(r.lastLocation=i);var d=!function(e,t){return null==e&&null==t||null!=e&&null!=t&&(e.draggableId===t.draggableId&&e.droppableId===t.droppableId)}(r.lastCombine,l);if(d&&(r.lastCombine=l),u||f||d){var p=wt({},xs(o,r.mode),{combine:l,destination:i});n.add((function(){Os(0,(function(){return Cs(e().onDragUpdate,p,t,hl)}))}))}},flush:function(){r||ll(!1),n.flush()},drop:o,abort:function(){if(r){var e=wt({},xs(r.lastCritical,r.mode),{combine:null,destination:null,reason:"CANCEL"});o(e)}}}}(e,t);return function(e){return function(t){return function(r){if("BEFORE_INITIAL_CAPTURE"!==r.type){if("INITIAL_PUBLISH"===r.type){var o=r.payload.critical;return n.beforeStart(o,r.payload.movementMode),t(r),void n.start(o,r.payload.movementMode)}if("DROP_COMPLETE"===r.type){var a=r.payload.completed.result;return n.flush(),t(r),void n.drop(a)}if(t(r),"FLUSH"!==r.type){var i=e.getState();"DRAGGING"===i.phase&&n.update(i.critical,i.impact)}else n.abort()}else n.beforeCapture(r.payload.draggableId,r.payload.movementMode)}}}},Ps=function(e){return function(t){return function(n){if("DROP_ANIMATION_FINISHED"===n.type){var r=e.getState();"DROP_ANIMATING"!==r.phase&&ll(!1),e.dispatch(as({completed:r.completed}))}else t(n)}}},Is=function(e){var t=null,n=null;return function(r){return function(o){if("FLUSH"!==o.type&&"DROP_COMPLETE"!==o.type&&"DROP_ANIMATION_FINISHED"!==o.type||(n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)),r(o),"DROP_ANIMATE"===o.type){var a={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};n=requestAnimationFrame((function(){n=null,t=al(window,[a])}))}}}},Ds=function(e){return function(t){return function(n){if(t(n),"PUBLISH_WHILE_DRAGGING"===n.type){var r=e.getState();"DROP_PENDING"===r.phase&&(r.isWaiting||e.dispatch(is({reason:r.reason})))}}}},Rs=ui,Ns=function(e){var t,n=e.dimensionMarshal,r=e.focusMarshal,o=e.styleMarshal,a=e.getResponders,i=e.announce,l=e.autoScroller;return ni(Yu,Rs(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},a=t.map((function(e){return e(o)}));return li({},n,{dispatch:r=ui.apply(void 0,a)(n.dispatch)})}}}((t=o,function(){return function(e){return function(n){"INITIAL_PUBLISH"===n.type&&t.dragging(),"DROP_ANIMATE"===n.type&&t.dropping(n.payload.completed.result.reason),"FLUSH"!==n.type&&"DROP_COMPLETE"!==n.type||t.resting(),e(n)}}}),function(e){return function(){return function(t){return function(n){"DROP_COMPLETE"!==n.type&&"FLUSH"!==n.type&&"DROP_ANIMATE"!==n.type||e.stopPublishing(),t(n)}}}}(n),function(e){return function(t){var n=t.getState,r=t.dispatch;return function(t){return function(o){if("LIFT"===o.type){var a=o.payload,i=a.id,l=a.clientSelection,u=a.movementMode,s=n();"DROP_ANIMATING"===s.phase&&r(as({completed:s.completed})),"IDLE"!==n().phase&&ll(!1),r({type:"FLUSH",payload:null}),r({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:i,movementMode:u}});var c={draggableId:i,scrollOptions:{shouldPublishImmediately:"SNAP"===u}},f=e.startPublishing(c),d=f.critical,p=f.dimensions,m=f.viewport;r(function(e){return{type:"INITIAL_PUBLISH",payload:e}}({critical:d,dimensions:p,clientSelection:l,movementMode:u,viewport:m}))}else t(o)}}}}(n),ys,Ps,Is,Ds,function(e){return function(t){return function(n){return function(r){if(function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(r))return e.stop(),void n(r);if("INITIAL_PUBLISH"===r.type){n(r);var o=t.getState();return"DRAGGING"!==o.phase&&ll(!1),void e.start(o)}n(r),e.scroll(t.getState())}}}}(l),Es,function(e){var t=!1;return function(){return function(n){return function(r){if("INITIAL_PUBLISH"===r.type)return t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),void e.tryRestoreFocusRecorded();if(n(r),t){if("FLUSH"===r.type)return t=!1,void e.tryRestoreFocusRecorded();if("DROP_COMPLETE"===r.type){t=!1;var o=r.payload.completed.result;o.combine&&e.tryShiftRecord(o.draggableId,o.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}}(r),ks(a,i))))};var Ts=function(e){var t=e.scrollHeight,n=e.scrollWidth,r=e.height,o=e.width,a=yl({x:n,y:t},{x:o,y:r});return{x:Math.max(0,a.x),y:Math.max(0,a.y)}},Ls=function(){var e=document.documentElement;return e||ll(!1),e},As=function(){var e=Ls();return Ts({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},js=function(e){var t=e.critical,n=e.scrollOptions,r=e.registry;Uu();var o,a,i,l,u,s,c,f=(o=_s(),a=As(),i=o.y,l=o.x,u=Ls(),s=u.clientWidth,c=u.clientHeight,{frame:qi({top:i,left:l,right:l+s,bottom:i+c}),scroll:{initial:o,current:o,max:a,diff:{value:gl,displacement:gl}}}),d=f.scroll.current,p=t.droppable,m=r.droppable.getAllByType(p.type).map((function(e){return e.callbacks.getDimensionAndWatchScroll(d,n)})),h=r.draggable.getAllByType(t.draggable.type).map((function(e){return e.getDimension(d)})),v={draggables:jl(h),droppables:Al(m)};return zu(),{dimensions:v,critical:t,viewport:f}};function Ms(e,t,n){return n.descriptor.id!==t.id&&(n.descriptor.type===t.type&&"virtual"===e.droppable.getById(n.descriptor.droppableId).descriptor.mode)}var Fs,Bs,Vs=function(e,t){var n=null,r=function(e){var t=e.registry,n=e.callbacks,r={additions:{},removals:{},modified:{}},o=null,a=function(){o||(n.collectionStarting(),o=requestAnimationFrame((function(){o=null,Uu();var e=r,a=e.additions,i=e.removals,l=e.modified,u=Object.keys(a).map((function(e){return t.draggable.getById(e).getDimension(gl)})).sort((function(e,t){return e.descriptor.index-t.descriptor.index})),s=Object.keys(l).map((function(e){return{droppableId:e,scroll:t.droppable.getById(e).callbacks.getScrollWhileDragging()}})),c={additions:u,removals:Object.keys(i),modified:s};r={additions:{},removals:{},modified:{}},zu(),n.publish(c)})))};return{add:function(e){var t=e.descriptor.id;r.additions[t]=e,r.modified[e.descriptor.droppableId]=!0,r.removals[t]&&delete r.removals[t],a()},remove:function(e){var t=e.descriptor;r.removals[t.id]=!0,r.modified[t.droppableId]=!0,r.additions[t.id]&&delete r.additions[t.id],a()},stop:function(){o&&(cancelAnimationFrame(o),o=null,r={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),o=function(t){n||ll(!1);var o=n.critical.draggable;"ADDITION"===t.type&&Ms(e,o,t.value)&&r.add(t.value),"REMOVAL"===t.type&&Ms(e,o,t.value)&&r.remove(t.value)};return{updateDroppableIsEnabled:function(r,o){e.droppable.exists(r)||ll(!1),n&&t.updateDroppableIsEnabled({id:r,isEnabled:o})},updateDroppableIsCombineEnabled:function(r,o){n&&(e.droppable.exists(r)||ll(!1),t.updateDroppableIsCombineEnabled({id:r,isCombineEnabled:o}))},scrollDroppable:function(t,r){n&&e.droppable.getById(t).callbacks.scroll(r)},updateDroppableScroll:function(r,o){n&&(e.droppable.exists(r)||ll(!1),t.updateDroppableScroll({id:r,newScroll:o}))},startPublishing:function(t){n&&ll(!1);var r=e.draggable.getById(t.draggableId),a=e.droppable.getById(r.descriptor.droppableId),i={draggable:r.descriptor,droppable:a.descriptor},l=e.subscribe(o);return n={critical:i,unsubscribe:l},js({critical:i,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:function(){if(n){r.stop();var t=n.critical.droppable;e.droppable.getAllByType(t.type).forEach((function(e){return e.callbacks.dragStopped()})),n.unsubscribe(),n=null}}}},Us=function(e,t){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&(e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason)},zs=function(e){window.scrollBy(e.x,e.y)},Hs=$o((function(e){return Ml(e).filter((function(e){return!!e.isEnabled&&!!e.frame}))})),Ws=function(e){var t=e.center,n=e.destination,r=e.droppables;if(n){var o=r[n];return o.frame?o:null}return function(e,t){return Tl(Hs(t),(function(t){return t.frame||ll(!1),Iu(t.frame.pageMarginBox)(e)}))}(t,r)},Gs=.25,qs=.05,$s=28,Ys=function(e){return Math.pow(e,2)},Qs={stopDampeningAt:1200,accelerateAt:360},Ks=function(e){var t=e.startOfRange,n=e.endOfRange,r=e.current,o=n-t;return 0===o?0:(r-t)/o},Xs=Qs.accelerateAt,Js=Qs.stopDampeningAt,Zs=function(e){var t=e.distanceToEdge,n=e.thresholds,r=e.dragStartTime,o=e.shouldUseTimeDampening,a=function(e,t){if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return $s;if(e===t.startScrollingFrom)return 1;var n=Ks({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),r=$s*Ys(1-n);return Math.ceil(r)}(t,n);return 0===a?0:o?Math.max(function(e,t){var n=t,r=Js,o=Date.now()-n;if(o>=Js)return e;if(o<Xs)return 1;var a=Ks({startOfRange:Xs,endOfRange:r,current:o}),i=e*Ys(a);return Math.ceil(i)}(a,r),1):a},ec=function(e){var t=e.container,n=e.distanceToEdges,r=e.dragStartTime,o=e.axis,a=e.shouldUseTimeDampening,i=function(e,t){return{startScrollingFrom:e[t.size]*Gs,maxScrollValueAt:e[t.size]*qs}}(t,o);return n[o.end]<n[o.start]?Zs({distanceToEdge:n[o.end],thresholds:i,dragStartTime:r,shouldUseTimeDampening:a}):-1*Zs({distanceToEdge:n[o.start],thresholds:i,dragStartTime:r,shouldUseTimeDampening:a})},tc=xl((function(e){return 0===e?0:e})),nc=function(e){var t=e.dragStartTime,n=e.container,r=e.subject,o=e.center,a=e.shouldUseTimeDampening,i={top:o.y-n.top,right:n.right-o.x,bottom:n.bottom-o.y,left:o.x-n.left},l=ec({container:n,distanceToEdges:i,dragStartTime:t,axis:Kl,shouldUseTimeDampening:a}),u=ec({container:n,distanceToEdges:i,dragStartTime:t,axis:Xl,shouldUseTimeDampening:a}),s=tc({x:u,y:l});if(_l(s,gl))return null;var c=function(e){var t=e.container,n=e.subject,r=e.proposedScroll,o=n.height>t.height,a=n.width>t.width;return a||o?a&&o?null:{x:a?0:r.x,y:o?0:r.y}:r}({container:n,subject:r,proposedScroll:s});return c?_l(c,gl)?null:c:null},rc=xl((function(e){return 0===e?0:e>0?1:-1})),oc=(Fs=function(e,t){return e<0?e:e>t?e-t:0},function(e){var t=e.current,n=e.max,r=e.change,o=bl(t,r),a={x:Fs(o.x,n.x),y:Fs(o.y,n.y)};return _l(a,gl)?null:a}),ac=function(e){var t=e.max,n=e.current,r=e.change,o={x:Math.max(n.x,t.x),y:Math.max(n.y,t.y)},a=rc(r),i=oc({max:o,current:n,change:a});return!i||(0!==a.x&&0===i.x||0!==a.y&&0===i.y)},ic=function(e,t){return ac({current:e.scroll.current,max:e.scroll.max,change:t})},lc=function(e,t){var n=e.frame;return!!n&&ac({current:n.scroll.current,max:n.scroll.max,change:t})},uc=function(e){var t=e.state,n=e.dragStartTime,r=e.shouldUseTimeDampening,o=e.scrollWindow,a=e.scrollDroppable,i=t.current.page.borderBoxCenter,l=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){var u=function(e){var t=e.viewport,n=e.subject,r=e.center,o=e.dragStartTime,a=e.shouldUseTimeDampening,i=nc({dragStartTime:o,container:t.frame,subject:n,center:r,shouldUseTimeDampening:a});return i&&ic(t,i)?i:null}({dragStartTime:n,viewport:t.viewport,subject:l,center:i,shouldUseTimeDampening:r});if(u)return void o(u)}var s=Ws({center:i,destination:Cu(t.impact),droppables:t.dimensions.droppables});if(s){var c=function(e){var t=e.droppable,n=e.subject,r=e.center,o=e.dragStartTime,a=e.shouldUseTimeDampening,i=t.frame;if(!i)return null;var l=nc({dragStartTime:o,container:i.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:a});return l&&lc(t,l)?l:null}({dragStartTime:n,droppable:s,subject:l,center:i,shouldUseTimeDampening:r});c&&a(s.descriptor.id,c)}},sc=function(e){var t=e.move,n=e.scrollDroppable,r=e.scrollWindow,o=function(e,t){if(!lc(e,t))return t;var r=function(e,t){var n=e.frame;return n&&lc(e,t)?oc({current:n.scroll.current,max:n.scroll.max,change:t}):null}(e,t);if(!r)return n(e.descriptor.id,t),null;var o=yl(t,r);return n(e.descriptor.id,o),yl(t,o)},a=function(e,t,n){if(!e)return n;if(!ic(t,n))return n;var o=function(e,t){if(!ic(e,t))return null;var n=e.scroll.max,r=e.scroll.current;return oc({current:r,max:n,change:t})}(t,n);if(!o)return r(n),null;var a=yl(n,o);return r(a),yl(n,a)};return function(e){var n=e.scrollJumpRequest;if(n){var r=Cu(e.impact);r||ll(!1);var i=o(e.dimensions.droppables[r],n);if(i){var l=e.viewport,u=a(e.isWindowScrollAllowed,l,i);u&&function(e,n){var r=bl(e.current.client.selection,n);t({client:r})}(e,u)}}}},cc=function(e){var t=e.scrollDroppable,n=e.scrollWindow,r=e.move,o=function(e){var t=e.scrollWindow,n=e.scrollDroppable,r=nl(t),o=nl(n),a=null,i=function(e){a||ll(!1);var t=a,n=t.shouldUseTimeDampening,i=t.dragStartTime;uc({state:e,scrollWindow:r,scrollDroppable:o,dragStartTime:i,shouldUseTimeDampening:n})};return{start:function(e){Uu(),a&&ll(!1);var t=Date.now(),n=!1,r=function(){n=!0};uc({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:r,scrollDroppable:r}),a={dragStartTime:t,shouldUseTimeDampening:n},zu(),n&&i(e)},stop:function(){a&&(r.cancel(),o.cancel(),a=null)},scroll:i}}({scrollWindow:n,scrollDroppable:t}),a=sc({move:r,scrollWindow:n,scrollDroppable:t});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&a(e):o.scroll(e))},start:o.start,stop:o.stop}},fc={base:Bs="data-rbd-drag-handle",draggableId:Bs+"-draggable-id",contextId:Bs+"-context-id"},dc=function(){var e="data-rbd-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),pc=function(){var e="data-rbd-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),mc={contextId:"data-rbd-scroll-container-context-id"},hc=function(e,t){return e.map((function(e){var n=e.styles[t];return n?e.selector+" { "+n+" }":""})).join(" ")},vc="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?o.useLayoutEffect:o.useEffect,gc=function(){var e=document.querySelector("head");return e||ll(!1),e},bc=function(e){var t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function yc(e,t){var n=Hi((function(){return function(e){var t,n,r,o=(t=e,function(e){return"["+e+'="'+t+'"]'}),a=(n="\n cursor: -webkit-grab;\n cursor: grab;\n ",{selector:o(fc.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:n,dragging:"pointer-events: none;",dropAnimating:n}}),i=[(r="\n transition: "+ds.outOfTheWay+";\n ",{selector:o(dc.contextId),styles:{dragging:r,dropAnimating:r,userCancel:r}}),a,{selector:o(pc.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n overflow-anchor: none;\n "}}];return{always:hc(i,"always"),resting:hc(i,"resting"),dragging:hc(i,"dragging"),dropAnimating:hc(i,"dropAnimating"),userCancel:hc(i,"userCancel")}}(e)}),[e]),r=Object(o.useRef)(null),a=Object(o.useRef)(null),i=Wi($o((function(e){var t=a.current;t||ll(!1),t.textContent=e})),[]),l=Wi((function(e){var t=r.current;t||ll(!1),t.textContent=e}),[]);vc((function(){(r.current||a.current)&&ll(!1);var o=bc(t),u=bc(t);return r.current=o,a.current=u,o.setAttribute("data-rbd-always",e),u.setAttribute("data-rbd-dynamic",e),gc().appendChild(o),gc().appendChild(u),l(n.always),i(n.resting),function(){var e=function(e){var t=e.current;t||ll(!1),gc().removeChild(t),e.current=null};e(r),e(a)}}),[t,l,i,n.always,n.resting,e]);var u=Wi((function(){return i(n.dragging)}),[i,n.dragging]),s=Wi((function(e){i("DROP"!==e?n.userCancel:n.dropAnimating)}),[i,n.dropAnimating,n.userCancel]),c=Wi((function(){a.current&&i(n.resting)}),[i,n.resting]);return Hi((function(){return{dragging:u,dropping:s,resting:c}}),[u,s,c])}var _c=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function wc(e){return e instanceof _c(e).HTMLElement}function Ec(e,t){var n="["+fc.contextId+'="'+e+'"]',r=Ll(document.querySelectorAll(n));if(!r.length)return null;var o=Tl(r,(function(e){return e.getAttribute(fc.draggableId)===t}));return o&&wc(o)?o:null}function Sc(){var e={draggables:{},droppables:{}},t=[];function n(e){t.length&&t.forEach((function(t){return t(e)}))}function r(t){return e.draggables[t]||null}function o(t){return e.droppables[t]||null}return{draggable:{register:function(t){e.draggables[t.descriptor.id]=t,n({type:"ADDITION",value:t})},update:function(t,n){var r=e.draggables[n.descriptor.id];r&&r.uniqueId===t.uniqueId&&(delete e.draggables[n.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:function(t){var o=t.descriptor.id,a=r(o);a&&t.uniqueId===a.uniqueId&&(delete e.draggables[o],n({type:"REMOVAL",value:t}))},getById:function(e){var t=r(e);return t||ll(!1),t},findById:r,exists:function(e){return Boolean(r(e))},getAllByType:function(t){return Rl(e.draggables).filter((function(e){return e.descriptor.type===t}))}},droppable:{register:function(t){e.droppables[t.descriptor.id]=t},unregister:function(t){var n=o(t.descriptor.id);n&&t.uniqueId===n.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){var t=o(e);return t||ll(!1),t},findById:o,exists:function(e){return Boolean(o(e))},getAllByType:function(t){return Rl(e.droppables).filter((function(e){return e.descriptor.type===t}))}},subscribe:function(e){return t.push(e),function(){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var Oc=a.a.createContext(null),xc=function(){var e=document.body;return e||ll(!1),e},Cc={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"};var kc=0,Pc={separator:"::"};function Ic(e,t){return void 0===t&&(t=Pc),Hi((function(){return""+e+t.separator+kc++}),[t.separator,e])}var Dc=a.a.createContext(null);function Rc(e){0}function Nc(e,t){Rc()}function Tc(){Nc()}function Lc(e){var t=Object(o.useRef)(e);return Object(o.useEffect)((function(){t.current=e})),t}var Ac,jc=((Ac={})[13]=!0,Ac[9]=!0,Ac),Mc=function(e){jc[e.keyCode]&&e.preventDefault()},Fc=function(){var e="visibilitychange";return"undefined"==typeof document?e:Tl([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],(function(e){return"on"+e in document}))||e}();var Bc,Vc={type:"IDLE"};function Uc(e){var t=e.cancel,n=e.completed,r=e.getPhase,o=e.setPhase;return[{eventName:"mousemove",fn:function(e){var t=e.button,n=e.clientX,a=e.clientY;if(0===t){var i={x:n,y:a},l=r();if("DRAGGING"===l.type)return e.preventDefault(),void l.actions.move(i);"PENDING"!==l.type&&ll(!1);var u=l.point;if(s=u,c=i,Math.abs(c.x-s.x)>=5||Math.abs(c.y-s.y)>=5){var s,c;e.preventDefault();var f=l.actions.fluidLift(i);o({type:"DRAGGING",actions:f})}}}},{eventName:"mouseup",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===r().type&&e.preventDefault(),t()}},{eventName:"keydown",fn:function(e){if("PENDING"!==r().type)return 27===e.keyCode?(e.preventDefault(),void t()):void Mc(e);t()}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===r().type&&t()}},{eventName:"webkitmouseforcedown",fn:function(e){var n=r();"IDLE"===n.type&&ll(!1),n.actions.shouldRespectForcePress()?t():e.preventDefault()}},{eventName:Fc,fn:t}]}function zc(){}var Hc=((Bc={})[34]=!0,Bc[33]=!0,Bc[36]=!0,Bc[35]=!0,Bc);function Wc(e,t){function n(){t(),e.cancel()}return[{eventName:"keydown",fn:function(r){return 27===r.keyCode?(r.preventDefault(),void n()):32===r.keyCode?(r.preventDefault(),t(),void e.drop()):40===r.keyCode?(r.preventDefault(),void e.moveDown()):38===r.keyCode?(r.preventDefault(),void e.moveUp()):39===r.keyCode?(r.preventDefault(),void e.moveRight()):37===r.keyCode?(r.preventDefault(),void e.moveLeft()):void(Hc[r.keyCode]?r.preventDefault():Mc(r))}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:Fc,fn:n}]}var Gc={type:"IDLE"};var qc={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function $c(e,t){var n=t.target;return!!wc(n)&&function e(t,n){if(null==n)return!1;if(Boolean(qc[n.tagName.toLowerCase()]))return!0;var r=n.getAttribute("contenteditable");return"true"===r||""===r||n!==t&&e(t,n.parentElement)}(e,n)}var Yc=function(e){return qi(e.getBoundingClientRect()).center};var Qc="undefined"==typeof document?"matches":Tl(["matches","msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}))||"matches";function Kc(e,t){return e.closest?e.closest(t):function e(t,n){return null==t?null:t[Qc](n)?t:e(t.parentElement,n)}(e,t)}function Xc(e,t){var n,r=t.target;if(!((n=r)instanceof _c(n).Element))return null;var o=Kc(r,function(e){return"["+fc.contextId+'="'+e+'"]'}(e));return o&&wc(o)?o:null}function Jc(e){e.preventDefault()}function Zc(e){var t=e.expected,n=e.phase,r=e.isLockActive;e.shouldWarn;return!!r()&&t===n}function ef(e){var t=e.lockAPI,n=e.store,r=e.registry,o=e.draggableId;if(t.isClaimed())return!1;var a=r.draggable.findById(o);return!!a&&(!!a.options.isEnabled&&!!Us(n.getState(),o))}function tf(e){var t=e.lockAPI,n=e.contextId,r=e.store,o=e.registry,a=e.draggableId,i=e.forceSensorStop,l=e.sourceEvent;if(!ef({lockAPI:t,store:r,registry:o,draggableId:a}))return null;var u=o.draggable.getById(a),s=function(e,t){var n="["+dc.contextId+'="'+e+'"]',r=Tl(Ll(document.querySelectorAll(n)),(function(e){return e.getAttribute(dc.id)===t}));return r&&wc(r)?r:null}(n,u.descriptor.id);if(!s)return null;if(l&&!u.options.canDragInteractiveElements&&$c(s,l))return null;var c=t.claim(i||ol),f="PRE_DRAG";function d(){return u.options.shouldRespectForcePress}function p(){return t.isActive(c)}var m=function(e,t){Zc({expected:e,phase:f,isLockActive:p,shouldWarn:!0})&&r.dispatch(t())}.bind(null,"DRAGGING");function h(e){function n(){t.release(),f="COMPLETED"}function o(t,o){if(void 0===o&&(o={shouldBlockNextClick:!1}),e.cleanup(),o.shouldBlockNextClick){var a=al(window,[{eventName:"click",fn:Jc,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(a)}n(),r.dispatch(is({reason:t}))}return"PRE_DRAG"!==f&&(n(),"PRE_DRAG"!==f&&ll(!1)),r.dispatch(function(e){return{type:"LIFT",payload:e}}(e.liftActionArgs)),f="DRAGGING",wt({isActive:function(){return Zc({expected:"DRAGGING",phase:f,isLockActive:p,shouldWarn:!1})},shouldRespectForcePress:d,drop:function(e){return o("DROP",e)},cancel:function(e){return o("CANCEL",e)}},e.actions)}return{isActive:function(){return Zc({expected:"PRE_DRAG",phase:f,isLockActive:p,shouldWarn:!1})},shouldRespectForcePress:d,fluidLift:function(e){var t=nl((function(e){m((function(){return es({client:e})}))}));return wt({},h({liftActionArgs:{id:a,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return t.cancel()},actions:{move:t}}),{move:t})},snapLift:function(){var e={moveUp:function(){return m(ts)},moveRight:function(){return m(rs)},moveDown:function(){return m(ns)},moveLeft:function(){return m(os)}};return h({liftActionArgs:{id:a,clientSelection:Yc(s),movementMode:"SNAP"},cleanup:ol,actions:e})},abort:function(){Zc({expected:"PRE_DRAG",phase:f,isLockActive:p,shouldWarn:!0})&&t.release()}}}var nf=[function(e){var t=Object(o.useRef)(Vc),n=Object(o.useRef)(ol),r=Hi((function(){return{eventName:"mousedown",fn:function(t){if(!t.defaultPrevented&&0===t.button&&!(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)){var r=e.findClosestDraggableId(t);if(r){var o=e.tryGetLock(r,l,{sourceEvent:t});if(o){t.preventDefault();var a={x:t.clientX,y:t.clientY};n.current(),c(o,a)}}}}}}),[e]),a=Hi((function(){return{eventName:"webkitmouseforcewillbegin",fn:function(t){if(!t.defaultPrevented){var n=e.findClosestDraggableId(t);if(n){var r=e.findOptionsForDraggable(n);r&&(r.shouldRespectForcePress||e.canGetLock(n)&&t.preventDefault())}}}}}),[e]),i=Wi((function(){n.current=al(window,[a,r],{passive:!1,capture:!0})}),[a,r]),l=Wi((function(){"IDLE"!==t.current.type&&(t.current=Vc,n.current(),i())}),[i]),u=Wi((function(){var e=t.current;l(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[l]),s=Wi((function(){var e=Uc({cancel:u,completed:l,getPhase:function(){return t.current},setPhase:function(e){t.current=e}});n.current=al(window,e,{capture:!0,passive:!1})}),[u,l]),c=Wi((function(e,n){"IDLE"!==t.current.type&&ll(!1),t.current={type:"PENDING",point:n,actions:e},s()}),[s]);vc((function(){return i(),function(){n.current()}}),[i])},function(e){var t=Object(o.useRef)(zc),n=Hi((function(){return{eventName:"keydown",fn:function(n){if(!n.defaultPrevented&&32===n.keyCode){var o=e.findClosestDraggableId(n);if(o){var a=e.tryGetLock(o,u,{sourceEvent:n});if(a){n.preventDefault();var i=!0,l=a.snapLift();t.current(),t.current=al(window,Wc(l,u),{capture:!0,passive:!1})}}}function u(){i||ll(!1),i=!1,t.current(),r()}}}}),[e]),r=Wi((function(){t.current=al(window,[n],{passive:!1,capture:!0})}),[n]);vc((function(){return r(),function(){t.current()}}),[r])},function(e){var t=Object(o.useRef)(Gc),n=Object(o.useRef)(ol),r=Wi((function(){return t.current}),[]),a=Wi((function(e){t.current=e}),[]),i=Hi((function(){return{eventName:"touchstart",fn:function(t){if(!t.defaultPrevented){var r=e.findClosestDraggableId(t);if(r){var o=e.tryGetLock(r,u,{sourceEvent:t});if(o){var a=t.touches[0],i={x:a.clientX,y:a.clientY};n.current(),d(o,i)}}}}}}),[e]),l=Wi((function(){n.current=al(window,[i],{capture:!0,passive:!1})}),[i]),u=Wi((function(){var e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),a(Gc),n.current(),l())}),[l,a]),s=Wi((function(){var e=t.current;u(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[u]),c=Wi((function(){var e={capture:!0,passive:!1},t={cancel:s,completed:u,getPhase:r},o=al(window,function(e){var t=e.cancel,n=e.completed,r=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var n=r();if("DRAGGING"===n.type){n.hasMoved=!0;var o=e.touches[0],a={x:o.clientX,y:o.clientY};e.preventDefault(),n.actions.move(a)}else t()}},{eventName:"touchend",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===r().type?(e.preventDefault(),t()):t()}},{eventName:"touchforcechange",fn:function(e){var n=r();"IDLE"===n.type&&ll(!1);var o=e.touches[0];if(o&&o.force>=.15){var a=n.actions.shouldRespectForcePress();if("PENDING"!==n.type)return a?n.hasMoved?void e.preventDefault():void t():void e.preventDefault();a&&t()}}},{eventName:Fc,fn:t}]}(t),e),a=al(window,function(e){var t=e.cancel,n=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===n().type?(27===e.keyCode&&e.preventDefault(),t()):t()}},{eventName:Fc,fn:t}]}(t),e);n.current=function(){o(),a()}}),[s,r,u]),f=Wi((function(){var e=r();"PENDING"!==e.type&&ll(!1);var t=e.actions.fluidLift(e.point);a({type:"DRAGGING",actions:t,hasMoved:!1})}),[r,a]),d=Wi((function(e,t){"IDLE"!==r().type&&ll(!1);var n=setTimeout(f,120);a({type:"PENDING",point:t,actions:e,longPressTimerId:n}),c()}),[c,r,a,f]);vc((function(){return l(),function(){n.current();var e=r();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),a(Gc))}}),[r,l,a]),vc((function(){return al(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}];function rf(e){var t=e.contextId,n=e.store,r=e.registry,a=e.customSensors,i=e.enableDefaultSensors,l=[].concat(i?nf:[],a||[]),u=Object(o.useState)((function(){return function(){var e=null;function t(){e||ll(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&ll(!1);var n={abandon:t};return e=n,n},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()}))[0],s=Wi((function(e,t){e.isDragging&&!t.isDragging&&u.tryAbandon()}),[u]);vc((function(){var e=n.getState();return n.subscribe((function(){var t=n.getState();s(e,t),e=t}))}),[u,n,s]),vc((function(){return u.tryAbandon}),[u.tryAbandon]);var c=Wi((function(e){return ef({lockAPI:u,registry:r,store:n,draggableId:e})}),[u,r,n]),f=Wi((function(e,o,a){return tf({lockAPI:u,registry:r,contextId:t,store:n,draggableId:e,forceSensorStop:o,sourceEvent:a&&a.sourceEvent?a.sourceEvent:null})}),[t,u,r,n]),d=Wi((function(e){return function(e,t){var n=Xc(e,t);return n?n.getAttribute(fc.draggableId):null}(t,e)}),[t]),p=Wi((function(e){var t=r.draggable.findById(e);return t?t.options:null}),[r.draggable]),m=Wi((function(){u.isClaimed()&&(u.tryAbandon(),"IDLE"!==n.getState().phase&&n.dispatch({type:"FLUSH",payload:null}))}),[u,n]),h=Wi(u.isClaimed,[u]),v=Hi((function(){return{canGetLock:c,tryGetLock:f,findClosestDraggableId:d,findOptionsForDraggable:p,tryReleaseLock:m,isLockClaimed:h}}),[c,f,d,p,m,h]);Rc();for(var g=0;g<l.length;g++)l[g](v)}function of(e){return e.current||ll(!1),e.current}function af(e){var t=e.contextId,n=e.setCallbacks,r=e.sensors,i=e.nonce,l=e.dragHandleUsageInstructions,u=Object(o.useRef)(null);Tc();var s=Lc(e),c=Wi((function(){return function(e){return{onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}}(s.current)}),[s]),f=function(e){var t=Hi((function(){return function(e){return"rbd-announcement-"+e}(e)}),[e]),n=Object(o.useRef)(null);return Object(o.useEffect)((function(){var e=document.createElement("div");return n.current=e,e.id=t,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),wt(e.style,Cc),xc().appendChild(e),function(){setTimeout((function(){var t=xc();t.contains(e)&&t.removeChild(e),e===n.current&&(n.current=null)}))}}),[t]),Wi((function(e){var t=n.current;t&&(t.textContent=e)}),[])}(t),d=function(e){var t=e.contextId,n=e.text,r=Ic("hidden-text",{separator:"-"}),a=Hi((function(){return"rbd-hidden-text-"+(e={contextId:t,uniqueId:r}).contextId+"-"+e.uniqueId;var e}),[r,t]);return Object(o.useEffect)((function(){var e=document.createElement("div");return e.id=a,e.textContent=n,e.style.display="none",xc().appendChild(e),function(){var t=xc();t.contains(e)&&t.removeChild(e)}}),[a,n]),a}({contextId:t,text:l}),p=yc(t,i),m=Wi((function(e){of(u).dispatch(e)}),[]),h=Hi((function(){return oi({publishWhileDragging:Qu,updateDroppableScroll:Xu,updateDroppableIsEnabled:Ju,updateDroppableIsCombineEnabled:Zu,collectionStarting:Ku},m)}),[m]),v=function(){var e=Hi(Sc,[]);return Object(o.useEffect)((function(){return function(){requestAnimationFrame(e.clean)}}),[e]),e}(),g=Hi((function(){return Vs(v,h)}),[v,h]),b=Hi((function(){return cc(wt({scrollWindow:zs,scrollDroppable:g.scrollDroppable},oi({move:es},m)))}),[g.scrollDroppable,m]),y=function(e){var t=Object(o.useRef)({}),n=Object(o.useRef)(null),r=Object(o.useRef)(null),a=Object(o.useRef)(!1),i=Wi((function(e,n){var r={id:e,focus:n};return t.current[e]=r,function(){var n=t.current;n[e]!==r&&delete n[e]}}),[]),l=Wi((function(t){var n=Ec(e,t);n&&n!==document.activeElement&&n.focus()}),[e]),u=Wi((function(e,t){n.current===e&&(n.current=t)}),[]),s=Wi((function(){r.current||a.current&&(r.current=requestAnimationFrame((function(){r.current=null;var e=n.current;e&&l(e)})))}),[l]),c=Wi((function(e){n.current=null;var t=document.activeElement;t&&t.getAttribute(fc.draggableId)===e&&(n.current=e)}),[]);return vc((function(){return a.current=!0,function(){a.current=!1;var e=r.current;e&&cancelAnimationFrame(e)}}),[]),Hi((function(){return{register:i,tryRecordFocus:c,tryRestoreFocusRecorded:s,tryShiftRecord:u}}),[i,c,s,u])}(t),_=Hi((function(){return Ns({announce:f,autoScroller:b,dimensionMarshal:g,focusMarshal:y,getResponders:c,styleMarshal:p})}),[f,b,g,y,c,p]);u.current=_;var w=Wi((function(){var e=of(u);"IDLE"!==e.getState().phase&&e.dispatch({type:"FLUSH",payload:null})}),[]),E=Wi((function(){var e=of(u).getState();return e.isDragging||"DROP_ANIMATING"===e.phase}),[]);n(Hi((function(){return{isDragging:E,tryAbort:w}}),[E,w]));var S=Wi((function(e){return Us(of(u).getState(),e)}),[]),O=Wi((function(){return Pu(of(u).getState())}),[]),x=Hi((function(){return{marshal:g,focus:y,contextId:t,canLift:S,isMovementAllowed:O,dragHandleUsageInstructionsId:d,registry:v}}),[t,g,d,y,S,O,v]);return rf({contextId:t,store:_,registry:v,customSensors:r,enableDefaultSensors:!1!==e.enableDefaultSensors}),Object(o.useEffect)((function(){return w}),[w]),a.a.createElement(Dc.Provider,{value:x},a.a.createElement(mi,{context:Oc,store:_},e.children))}var lf=0;function uf(e){var t=Hi((function(){return""+lf++}),[]),n=e.dragHandleUsageInstructions||pl;return a.a.createElement(ul,null,(function(r){return a.a.createElement(af,{nonce:e.nonce,contextId:t,setCallbacks:r,dragHandleUsageInstructions:n,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd},e.children)}))}var sf=function(e){return function(t){return e===t}},cf=sf("scroll"),ff=sf("auto"),df=(sf("visible"),function(e,t){return t(e.overflowX)||t(e.overflowY)}),pf=function(e){var t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return df(n,cf)||df(n,ff)},mf=function e(t){return null==t||t===document.body||t===document.documentElement?null:pf(t)?t:e(t.parentElement)},hf=function(e){return{x:e.scrollLeft,y:e.scrollTop}},vf=function(e){return{closestScrollable:mf(e),isFixedOnPage:function e(t){return!!t&&("fixed"===window.getComputedStyle(t).position||e(t.parentElement))}(e)}},gf=function(e){var t=e.ref,n=e.descriptor,r=e.env,o=e.windowScroll,a=e.direction,i=e.isDropDisabled,l=e.isCombineEnabled,u=e.shouldClipSubject,s=r.closestScrollable,c=function(e,t){var n=tl(e);if(!t)return n;if(e!==t)return n;var r=n.paddingBox.top-t.scrollTop,o=n.paddingBox.left-t.scrollLeft,a=r+t.scrollHeight,i=o+t.scrollWidth,l=$i({top:r,right:i,bottom:a,left:o},n.border);return Ki({borderBox:l,margin:n.margin,border:n.border,padding:n.padding})}(t,s),f=Zi(c,o),d=function(){if(!s)return null;var e=tl(s),t={scrollHeight:s.scrollHeight,scrollWidth:s.scrollWidth};return{client:e,page:Zi(e,o),scroll:hf(s),scrollSize:t,shouldClipSubject:u}}();return function(e){var t=e.descriptor,n=e.isEnabled,r=e.isCombineEnabled,o=e.isFixedOnPage,a=e.direction,i=e.client,l=e.page,u=e.closest,s=function(){if(!u)return null;var e=u.scrollSize,t=u.client,n=Ts({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:u.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:u.shouldClipSubject,scroll:{initial:u.scroll,current:u.scroll,max:n,diff:{value:gl,displacement:gl}}}}(),c="vertical"===a?Kl:Xl;return{descriptor:t,isCombineEnabled:r,isFixedOnPage:o,axis:c,isEnabled:n,client:i,page:l,frame:s,subject:Il({page:l,withPlaceholder:null,axis:c,frame:s})}}({descriptor:n,isEnabled:!i,isCombineEnabled:l,isFixedOnPage:r.isFixedOnPage,direction:a,client:c,page:f,closest:d})},bf={passive:!1},yf={passive:!0},_f=function(e){return e.shouldPublishImmediately?bf:yf};function wf(e){var t=Object(o.useContext)(e);return t||ll(!1),t}var Ef=function(e){return e&&e.env.closestScrollable||null};function Sf(){}var Of={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},xf=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate,o=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate;return t||"close"===r?Of:{height:n.client.borderBox.height,width:n.client.borderBox.width,margin:n.client.margin}}({isAnimatingOpenOnMount:t,placeholder:n,animate:r});return{display:n.display,boxSizing:"border-box",width:o.width,height:o.height,marginTop:o.margin.top,marginRight:o.margin.right,marginBottom:o.margin.bottom,marginLeft:o.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==r?ds.placeholder:null}};var Cf=a.a.memo((function(e){var t=Object(o.useRef)(null),n=Wi((function(){t.current&&(clearTimeout(t.current),t.current=null)}),[]),r=e.animate,i=e.onTransitionEnd,l=e.onClose,u=e.contextId,s=Object(o.useState)("open"===e.animate),c=s[0],f=s[1];Object(o.useEffect)((function(){return c?"open"!==r?(n(),f(!1),Sf):t.current?Sf:(t.current=setTimeout((function(){t.current=null,f(!1)})),n):Sf}),[r,c,n]);var d=Wi((function(e){"height"===e.propertyName&&(i(),"close"===r&&l())}),[r,l,i]),p=xf({isAnimatingOpenOnMount:c,animate:e.animate,placeholder:e.placeholder});return a.a.createElement(e.placeholder.tagName,{style:p,"data-rbd-placeholder-context-id":u,onTransitionEnd:d,ref:e.innerRef})})),kf=a.a.createContext(null);var Pf=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={isVisible:Boolean(t.props.on),data:t.props.on,animate:t.props.shouldAnimate&&t.props.on?"open":"none"},t.onClose=function(){"close"===t.state.animate&&t.setState({isVisible:!1})},t}return Xa(t,e),t.getDerivedStateFromProps=function(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}},t.prototype.render=function(){if(!this.state.isVisible)return null;var e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)},t}(a.a.PureComponent),If=5e3,Df=4500,Rf=function(e,t){return t?ds.drop(t.duration):e?ds.snap:ds.fluid},Nf=function(e,t){return e?t?ss.drop:ss.combining:null};function Tf(e){return"DRAGGING"===e.type?(r=(n=e).dimension.client,o=n.offset,a=n.combineWith,i=n.dropping,l=Boolean(a),u=function(e){return null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode}(n),s=Boolean(i),c=s?hs(o,l):ms(o),{position:"fixed",top:r.marginBox.top,left:r.marginBox.left,boxSizing:"border-box",width:r.borderBox.width,height:r.borderBox.height,transition:Rf(u,i),transform:c,opacity:Nf(l,s),zIndex:s?Df:If,pointerEvents:"none"}):{transform:ms((t=e).offset),transition:t.shouldAnimateDisplacement?null:"none"};var t,n,r,o,a,i,l,u,s,c}function Lf(e){var t=Ic("draggable"),n=e.descriptor,r=e.registry,a=e.getDraggableRef,i=e.canDragInteractiveElements,l=e.shouldRespectForcePress,u=e.isEnabled,s=Hi((function(){return{canDragInteractiveElements:i,shouldRespectForcePress:l,isEnabled:u}}),[i,u,l]),c=Wi((function(e){var t=a();return t||ll(!1),function(e,t,n){void 0===n&&(n=gl);var r=window.getComputedStyle(t),o=t.getBoundingClientRect(),a=el(o,r),i=Zi(a,n);return{descriptor:e,placeholder:{client:a,tagName:t.tagName.toLowerCase(),display:r.display},displaceBy:{x:a.marginBox.width,y:a.marginBox.height},client:a,page:i}}(n,t,e)}),[n,a]),f=Hi((function(){return{uniqueId:t,descriptor:n,options:s,getDimension:c}}),[n,c,s,t]),d=Object(o.useRef)(f),p=Object(o.useRef)(!0);vc((function(){return r.draggable.register(d.current),function(){return r.draggable.unregister(d.current)}}),[r.draggable]),vc((function(){if(p.current)p.current=!1;else{var e=d.current;d.current=f,r.draggable.update(f,e)}}),[f,r.draggable])}function Af(e,t,n){Nc()}function jf(e){e.preventDefault()}var Mf=function(e,t){return e===t},Ff=function(e){var t=e.combine,n=e.destination;return n?n.droppableId:t?t.droppableId:null};function Bf(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var Vf={mapped:{type:"SECONDARY",offset:gl,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Bf(null)}};var Uf=Vi((function(){var e,t,n,r=(e=$o((function(e,t){return{x:e,y:t}})),t=$o((function(e,t,n,r,o){return{isDragging:!0,isClone:t,isDropAnimating:Boolean(o),dropAnimation:o,mode:e,draggingOver:n,combineWith:r,combineTargetFor:null}})),n=$o((function(e,n,r,o,a,i,l){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:a,combineWith:i,mode:n,offset:e,dimension:r,forceShouldAnimate:l,snapshot:t(n,o,a,i,null)}}})),function(r,o){if(r.isDragging){if(r.critical.draggable.id!==o.draggableId)return null;var a=r.current.client.offset,i=r.dimensions.draggables[o.draggableId],l=Cu(r.impact),u=(c=r.impact).at&&"COMBINE"===c.at.type?c.at.combine.draggableId:null,s=r.forceShouldAnimate;return n(e(a.x,a.y),r.movementMode,i,o.isClone,l,u,s)}var c;if("DROP_ANIMATING"===r.phase){var f=r.completed;if(f.result.draggableId!==o.draggableId)return null;var d=o.isClone,p=r.dimensions.draggables[o.draggableId],m=f.result,h=m.mode,v=Ff(m),g=function(e){return e.combine?e.combine.draggableId:null}(m),b={duration:r.dropDuration,curve:us,moveTo:r.newHomeClientOffset,opacity:g?ss.drop:null,scale:g?cs.drop:null};return{mapped:{type:"DRAGGING",offset:r.newHomeClientOffset,dimension:p,dropping:b,draggingOver:v,combineWith:g,mode:h,forceShouldAnimate:null,snapshot:t(h,d,v,g,b)}}}return null}),o=function(){var e=$o((function(e,t){return{x:e,y:t}})),t=$o(Bf),n=$o((function(e,n,r){return void 0===n&&(n=null),{mapped:{type:"SECONDARY",offset:e,combineTargetFor:n,shouldAnimateDisplacement:r,snapshot:t(n)}}})),r=function(e){return e?n(gl,e,!0):null},o=function(t,o,a,i){var l=a.displaced.visible[t],u=Boolean(i.inVirtualList&&i.effected[t]),s=Ul(a),c=s&&s.draggableId===t?o:null;if(!l){if(!u)return r(c);if(a.displaced.invisible[t])return null;var f=wl(i.displacedBy.point),d=e(f.x,f.y);return n(d,c,!0)}if(u)return r(c);var p=a.displacedBy.point,m=e(p.x,p.y);return n(m,c,l.shouldAnimate)};return function(e,t){if(e.isDragging)return e.critical.draggable.id===t.draggableId?null:o(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){var n=e.completed;return n.result.draggableId===t.draggableId?null:o(t.draggableId,n.result.draggableId,n.impact,n.afterCritical)}return null}}();return function(e,t){return r(e,t)||o(e,t)||Vf}}),{dropAnimationFinished:ls},null,{context:Oc,pure:!0,areStatePropsEqual:Mf})((function(e){var t=Object(o.useRef)(null),n=Wi((function(e){t.current=e}),[]),r=Wi((function(){return t.current}),[]),a=wf(Dc),i=a.contextId,l=a.dragHandleUsageInstructionsId,u=a.registry,s=wf(kf),c=s.type,f=s.droppableId,d=Hi((function(){return{id:e.draggableId,index:e.index,type:c,droppableId:f}}),[e.draggableId,e.index,c,f]),p=e.children,m=e.draggableId,h=e.isEnabled,v=e.shouldRespectForcePress,g=e.canDragInteractiveElements,b=e.isClone,y=e.mapped,_=e.dropAnimationFinished;Af(),Rc(),b||Lf(Hi((function(){return{descriptor:d,registry:u,getDraggableRef:r,canDragInteractiveElements:g,shouldRespectForcePress:v,isEnabled:h}}),[d,u,r,g,v,h]));var w=Hi((function(){return h?{tabIndex:0,role:"button","aria-describedby":l,"data-rbd-drag-handle-draggable-id":m,"data-rbd-drag-handle-context-id":i,draggable:!1,onDragStart:jf}:null}),[i,l,m,h]),E=Wi((function(e){"DRAGGING"===y.type&&y.dropping&&"transform"===e.propertyName&&_()}),[_,y]),S=Hi((function(){var e=Tf(y),t="DRAGGING"===y.type&&y.dropping?E:null;return{innerRef:n,draggableProps:{"data-rbd-draggable-context-id":i,"data-rbd-draggable-id":m,style:e,onTransitionEnd:t},dragHandleProps:w}}),[i,w,m,y,E,n]),O=Hi((function(){return{draggableId:d.id,type:d.type,source:{index:d.index,droppableId:d.droppableId}}}),[d.droppableId,d.id,d.index,d.type]);return p(S,y.snapshot,O)}));function zf(e){return wf(kf).isUsingCloneFor!==e.draggableId||e.isClone?a.a.createElement(Uf,e):null}function Hf(e){var t="boolean"!=typeof e.isDragDisabled||!e.isDragDisabled,n=Boolean(e.disableInteractiveElementBlocking),r=Boolean(e.shouldRespectForcePress);return a.a.createElement(zf,wt({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:r}))}var Wf=function(e,t){return e===t.droppable.type},Gf=function(e,t){return t.draggables[e.draggable.id]};var qf={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||ll(!1),document.body}},$f=Vi((function(){var e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t=wt({},e,{shouldAnimatePlaceholder:!1}),n=$o((function(e){return{draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}})),r=$o((function(r,o,a,i,l,u){var s=l.descriptor.id;if(l.descriptor.droppableId===r){var c=u?{render:u,dragging:n(l.descriptor)}:null,f={isDraggingOver:a,draggingOverWith:a?s:null,draggingFromThisWith:s,isUsingPlaceholder:!0};return{placeholder:l.placeholder,shouldAnimatePlaceholder:!1,snapshot:f,useClone:c}}if(!o)return t;if(!i)return e;var d={isDraggingOver:a,draggingOverWith:s,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:l.placeholder,shouldAnimatePlaceholder:!0,snapshot:d,useClone:null}}));return function(n,o){var a=o.droppableId,i=o.type,l=!o.isDropDisabled,u=o.renderClone;if(n.isDragging){var s=n.critical;if(!Wf(i,s))return t;var c=Gf(s,n.dimensions),f=Cu(n.impact)===a;return r(a,l,f,f,c,u)}if("DROP_ANIMATING"===n.phase){var d=n.completed;if(!Wf(i,d.critical))return t;var p=Gf(d.critical,n.dimensions);return r(a,l,Ff(d.result)===a,Cu(d.impact)===a,p,u)}if("IDLE"===n.phase&&n.completed&&!n.shouldFlush){var m=n.completed;if(!Wf(i,m.critical))return t;var h=Cu(m.impact)===a,v=Boolean(m.impact.at&&"COMBINE"===m.impact.at.type),g=m.critical.droppable.id===a;return h?v?e:t:g?e:t}return t}}),{updateViewportMaxScroll:function(e){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}}},null,{context:Oc,pure:!0,areStatePropsEqual:Mf})((function(e){var t=Object(o.useContext)(Dc);t||ll(!1);var n=t.contextId,r=t.isMovementAllowed,i=Object(o.useRef)(null),u=Object(o.useRef)(null),s=e.children,c=e.droppableId,f=e.type,d=e.mode,p=e.direction,m=e.ignoreContainerClipping,h=e.isDropDisabled,v=e.isCombineEnabled,g=e.snapshot,b=e.useClone,y=e.updateViewportMaxScroll,_=e.getContainerForClone,w=Wi((function(){return i.current}),[]),E=Wi((function(e){i.current=e}),[]),S=(Wi((function(){return u.current}),[]),Wi((function(e){u.current=e}),[]));Nc();var O=Wi((function(){r()&&y({maxScroll:As()})}),[r,y]);!function(e){var t=Object(o.useRef)(null),n=wf(Dc),r=Ic("droppable"),a=n.registry,i=n.marshal,l=Lc(e),u=Hi((function(){return{id:e.droppableId,type:e.type,mode:e.mode}}),[e.droppableId,e.mode,e.type]),s=Object(o.useRef)(u),c=Hi((function(){return $o((function(e,n){t.current||ll(!1);var r={x:e,y:n};i.updateDroppableScroll(u.id,r)}))}),[u.id,i]),f=Wi((function(){var e=t.current;return e&&e.env.closestScrollable?hf(e.env.closestScrollable):gl}),[]),d=Wi((function(){var e=f();c(e.x,e.y)}),[f,c]),p=Hi((function(){return nl(d)}),[d]),m=Wi((function(){var e=t.current,n=Ef(e);e&&n||ll(!1),e.scrollOptions.shouldPublishImmediately?d():p()}),[p,d]),h=Wi((function(e,r){t.current&&ll(!1);var o=l.current,a=o.getDroppableRef();a||ll(!1);var i=vf(a),s={ref:a,descriptor:u,env:i,scrollOptions:r};t.current=s;var c=gf({ref:a,descriptor:u,env:i,windowScroll:e,direction:o.direction,isDropDisabled:o.isDropDisabled,isCombineEnabled:o.isCombineEnabled,shouldClipSubject:!o.ignoreContainerClipping}),f=i.closestScrollable;return f&&(f.setAttribute(mc.contextId,n.contextId),f.addEventListener("scroll",m,_f(s.scrollOptions))),c}),[n.contextId,u,m,l]),v=Wi((function(){var e=t.current,n=Ef(e);return e&&n||ll(!1),hf(n)}),[]),g=Wi((function(){var e=t.current;e||ll(!1);var n=Ef(e);t.current=null,n&&(p.cancel(),n.removeAttribute(mc.contextId),n.removeEventListener("scroll",m,_f(e.scrollOptions)))}),[m,p]),b=Wi((function(e){var n=t.current;n||ll(!1);var r=Ef(n);r||ll(!1),r.scrollTop+=e.y,r.scrollLeft+=e.x}),[]),y=Hi((function(){return{getDimensionAndWatchScroll:h,getScrollWhileDragging:v,dragStopped:g,scroll:b}}),[g,h,v,b]),_=Hi((function(){return{uniqueId:r,descriptor:u,callbacks:y}}),[y,u,r]);vc((function(){return s.current=_.descriptor,a.droppable.register(_),function(){t.current&&g(),a.droppable.unregister(_)}}),[y,u,g,_,i,a.droppable]),vc((function(){t.current&&i.updateDroppableIsEnabled(s.current.id,!e.isDropDisabled)}),[e.isDropDisabled,i]),vc((function(){t.current&&i.updateDroppableIsCombineEnabled(s.current.id,e.isCombineEnabled)}),[e.isCombineEnabled,i])}({droppableId:c,type:f,mode:d,direction:p,isDropDisabled:h,isCombineEnabled:v,ignoreContainerClipping:m,getDroppableRef:w});var x=a.a.createElement(Pf,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},(function(e){var t=e.onClose,r=e.data,o=e.animate;return a.a.createElement(Cf,{placeholder:r,onClose:t,innerRef:S,animate:o,contextId:n,onTransitionEnd:O})})),C=Hi((function(){return{innerRef:E,placeholder:x,droppableProps:{"data-rbd-droppable-id":c,"data-rbd-droppable-context-id":n}}}),[n,c,x,E]),k=b?b.dragging.draggableId:null,P=Hi((function(){return{droppableId:c,type:f,isUsingCloneFor:k}}),[c,k,f]);return a.a.createElement(kf.Provider,{value:P},s(C,g),function(){if(!b)return null;var e=b.dragging,t=b.render,n=a.a.createElement(zf,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(function(n,r){return t(n,r,e)}));return l.a.createPortal(n,_())}())}));function Yf(e){return(Yf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qf(){return(Qf=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 Kf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Xf(e,t){return(Xf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Jf(e){var t=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}}();return function(){var n,r=td(e);if(t){var o=td(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Zf(this,n)}}function Zf(e,t){return!t||"object"!==Yf(t)&&"function"!=typeof t?ed(e):t}function ed(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function td(e){return(td=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}$f.defaultProps=qf;var nd=function(e){!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&&Xf(e,t)}(i,e);var t,n,r,o=Jf(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),t=o.call(this,e);var n=e.settings,r=e.form_title,l=e.validation_type,u=n.form_fields;return t.state={field_values:u.option_values||[],field_states:[],form_settings:u,settings:n,form_title:r,status:{loading_type:null,loading_message:null},refs:{wrapper:a.a.createRef()},validation_type:l,last_row_index:null},t._form_validation=new E(n.events.validate_field,l),t._form_submit=new y(n.handlers.api_loader,u.api_route,t._form_validation,t.updateLoadingStatus.bind(ed(t))),t}return t=i,(n=[{key:"render",value:function(){var e=this,t=this.state,n=t.field_values,r=t.field_states,o=t.settings,i=t.form_title,l=t.form_settings,u=t.status,s=t.refs,c=t.validation_type;return a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"fcfWidget"},a.a.createElement("form",{className:"fcfWidget__inner"},a.a.createElement("div",{className:"fcfWidget__header"},a.a.createElement("div",{className:"fcfWidget__headerTitle"},i),a.a.createElement("div",{className:"fcfWidget__headerButtons"},a.a.createElement("ul",{className:"fcfWidget__buttons"},a.a.createElement("li",{className:"fcfWidget__button"},a.a.createElement(D,{button_classes:"fcfButton fcfButton--wide fcfButton--small fcfButton--bg fcfButton--blue",button_alignment:"right",button_label:o.i18n.button_save,loading_type:"save_top",loading_status:u.loading_type,loading_message:u.loading_message,settings:o,onSubmit:this.onSubmit.bind(this,"save_top",{form_fields:n})}))))),a.a.createElement("div",{className:"fcfWidget__content"},n.length>0?a.a.createElement("div",{className:"fcfFields",ref:s.wrapper},a.a.createElement(uf,{onBeforeDragStart:this.onDragStart.bind(this),onDragEnd:this.onDragEnd.bind(this)},a.a.createElement($f,{droppableId:"dnd-fields"},(function(t,i){return a.a.createElement("ul",Qf({className:"fcfFields__items dnd-fields"},t.droppableProps,{ref:t.innerRef}),n.map((function(t,s){return null!==t&&e.getFieldType(t)?a.a.createElement(Hf,{key:s,draggableId:"field-".concat(s),index:s},(function(f){return a.a.createElement(Ka,{provided:f,field_data:t,form_states:r[s]||{},field_type:e.getFieldType(t),section_fields:n,validation_types:[c],settings:o,form_settings:l,onChangeValue:e.onChangeValue.bind(e,s),onChangeState:e.onChangeState.bind(e,s),onFieldRemove:e.onFieldRemove.bind(e,s),onValidationInit:e.onValidationInit.bind(e),row_index:s,last_row_index:i.isDraggingOver||null!==u.loading_type?null:e.state.last_row_index})})):null})),t.placeholder)})))):a.a.createElement("div",{className:"fcfWidget__contentPlaceholder"},o.i18n.alert_no_fields)),a.a.createElement("div",{className:"fcfWidget__footer"},a.a.createElement("ul",{className:"fcfWidget__buttons"},a.a.createElement("li",{className:"fcfWidget__button"},a.a.createElement(D,{button_classes:"fcfButton fcfButton--wide fcfButton--bg fcfButton--blue",button_alignment:"left",button_label:o.i18n.button_save,loading_type:"save_bottom",loading_status:u.loading_type,loading_message:u.loading_message,settings:o,onSubmit:this.onSubmit.bind(this,"save_bottom",{form_fields:n})})),a.a.createElement("li",{className:"fcfWidget__button"},a.a.createElement(D,{button_classes:"fcfButton fcfButton--wide fcfButton--border fcfButton--red",button_alignment:"right",button_label:o.i18n.button_reset,loading_type:"reset_bottom",loading_status:u.loading_type,loading_message:u.loading_message,tooltip_text:o.i18n.alert_reset,settings:o,onSubmit:this.onReset.bind(this,"reset_bottom",{form_fields:{}})})))))))}},{key:"componentDidMount",value:function(){var e=this.state.field_values;this.updateFieldsPriority(e)}},{key:"onValidationInit",value:function(e,t,n){return this._form_validation.onValidationInit(e,t,n)}},{key:"onChangeValue",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=this.state.field_values;o[e][t]=n,this.setState({field_values:o,last_row_index:r?null:e}),r&&this.sendRefreshEvent()}},{key:"onChangeState",value:function(e,t,n,r){var o=this.state.field_states;void 0===o[e]&&(o[e]={}),void 0===o[e][t]&&(o[e][t]={}),o[e][t][n]=r,this.setState({field_states:o})}},{key:"sendRefreshEvent",value:function(){var e=this.state.settings;clearTimeout(this.refresh_timeout),this.refresh_timeout=setTimeout((function(){window.dispatchEvent(new CustomEvent(e.events.refresh_field))}),1e3)}},{key:"onFieldRemove",value:function(e){var t=this.state.field_values;t.splice(e,1),this.setState({field_values:t,last_row_index:null}),this.sendRefreshEvent()}},{key:"onSubmit",value:function(e,t,n){return n.preventDefault(),this._form_submit.onSubmit(e,t)}},{key:"onReset",value:function(e,t){return this._form_submit.onReset(e,t)}},{key:"onDragStart",value:function(){var e=this.state.refs;e.wrapper.current.style.height="".concat(e.wrapper.current.offsetHeight,"px")}},{key:"onDragEnd",value:function(e){if(this.state.refs.wrapper.current.style.height="",e.destination){var t=this.state,n=t.field_values,r=t.field_states,o=n[e.source.index],a=r[e.source.index];n.splice(e.source.index,1),r.splice(e.source.index,1),n.splice(e.destination.index,0,o),r.splice(e.destination.index,0,a),this._form_validation.clearValidationHandlers(),this.setState({field_values:this.updateFieldsPriority(n),field_states:r,last_row_index:null})}}},{key:"updateLoadingStatus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.state.status;n.loading_type=e,n.loading_message=t,this.setState({status:n})}},{key:"getFieldType",value:function(e){var t=this.state.form_settings;for(var n in t.option_fields)if(t.option_fields.hasOwnProperty(n)&&t.option_fields[n].reserved_field_names.indexOf(e.name)>-1)return t.option_fields[n];return t.option_fields[e.type]||t.option_fields.fcf_default}},{key:"updateFieldsPriority",value:function(e){for(var t=10,n=e.length,r=0;r<n;r++)e[r].priority=t,t+=10;return e}}])&&Kf(t.prototype,n),r&&Kf(t,r),i}(a.a.Component);function rd(e){return(rd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function od(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ad(e,t){return(ad=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function id(e){var t=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}}();return function(){var n,r=ud(e);if(t){var o=ud(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ld(this,n)}}function ld(e,t){return!t||"object"!==rd(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ud(e){return(ud=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var sd=function(e){!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&&ad(e,t)}(i,e);var t,n,r,o=id(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).state={settings:{i18n:reactInit.i18n,handlers:{api_loader:new f(reactInit.rest_api_url,reactInit.header_nonce)},events:{validate_field:"fcf-field-validate",refresh_field:"fcf-field-refresh"},form_fields:reactInit.form_fields,form_section:reactInit.form_section,form_settings:reactInit.form_settings}},t}return t=i,(n=[{key:"render",value:function(){var e=this.state.settings;return a.a.createElement("ul",{className:"fcfSettings__columns fcfSettings__columns--margin"},a.a.createElement(a.a.Fragment,null,e.form_fields?a.a.createElement("li",{className:"fcfSettings__column"},a.a.createElement(La,{settings:e,form_settings:e.form_fields,form_title:e.i18n.form_add_field,validation_type:"form_add_field",onFieldAdd:this.addNewField.bind(this)})):null,e.form_fields||e.form_section?a.a.createElement("li",{className:"fcfSettings__column fcfSettings__column--wide"},e.form_fields?a.a.createElement(nd,{settings:e,form_settings:e.form_fields,form_title:e.i18n.form_fields,validation_type:"form_fields"}):null,e.form_section?a.a.createElement(za,{settings:e,form_settings:e.form_section,form_title:e.i18n.form_section,validation_type:"form_section"}):null):null),e.form_settings?a.a.createElement(a.a.Fragment,null,a.a.createElement("li",{className:"fcfSettings__column fcfSettings__column--wide"},a.a.createElement(za,{settings:e,form_settings:e.form_settings,form_title:e.i18n.form_settings,validation_type:"form_settings"}))):null)}},{key:"addNewField",value:function(e){var t=this.state.settings;t.form_fields.option_values.push(e),this.setState({settings:t}),window.dispatchEvent(new CustomEvent(t.events.refresh_field))}}])&&od(t.prototype,n),r&&od(t,r),i}(a.a.Component);function cd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var fd=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.setVars()&&this.setEvents()}var t,n,r;return t=e,(n=[{key:"setVars",value:function(){if(this.section=document.querySelector("#fcf-settings"),this.section)return!0}},{key:"setEvents",value:function(){document.addEventListener("DOMContentLoaded",this.renderDom.bind(this))}},{key:"renderDom",value:function(){l.a.render(a.a.createElement(sd,null),this.section)}}])&&cd(t.prototype,n),r&&cd(t,r),e}();new function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),new fd}},function(e,t){}]);
|
35 |
*
|
36 |
* This source code is licensed under the MIT license found in the
|
37 |
* LICENSE file in the root directory of this source tree.
|
38 |
+
*/var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,a=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,l=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,s=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,m=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,v=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,b=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,_=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case f:case d:case i:case u:case l:case m:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case v:case s:return e;default:return t}}case a:return t}}}function S(e){return E(e)===d}t.AsyncMode=f,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=s,t.Element=o,t.ForwardRef=p,t.Fragment=i,t.Lazy=g,t.Memo=v,t.Portal=a,t.Profiler=u,t.StrictMode=l,t.Suspense=m,t.isAsyncMode=function(e){return S(e)||E(e)===f},t.isConcurrentMode=S,t.isContextConsumer=function(e){return E(e)===c},t.isContextProvider=function(e){return E(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return E(e)===p},t.isFragment=function(e){return E(e)===i},t.isLazy=function(e){return E(e)===g},t.isMemo=function(e){return E(e)===v},t.isPortal=function(e){return E(e)===a},t.isProfiler=function(e){return E(e)===u},t.isStrictMode=function(e){return E(e)===l},t.isSuspense=function(e){return E(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===u||e===l||e===m||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===v||e.$$typeof===s||e.$$typeof===c||e.$$typeof===p||e.$$typeof===y||e.$$typeof===_||e.$$typeof===w||e.$$typeof===b)},t.typeOf=E},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"CheckboxField",(function(){return Y})),n.d(r,"CheckboxListField",(function(){return ne})),n.d(r,"GroupField",(function(){return ce})),n.d(r,"HiddenField",(function(){return be})),n.d(r,"InfoField",(function(){return Ce})),n.d(r,"InfoAdvField",(function(){return Le})),n.d(r,"InfoNoticeField",(function(){return ze})),n.d(r,"NumberField",(function(){return Ke})),n.d(r,"RadioField",(function(){return ot})),n.d(r,"RadioListField",(function(){return dt})),n.d(r,"RepeaterField",(function(){return _t})),n.d(r,"SelectField",(function(){return ra})),n.d(r,"SelectMultiField",(function(){return fa})),n.d(r,"TextareaField",(function(){return ya})),n.d(r,"TextField",(function(){return ka}));var o=n(0),a=n.n(o),i=n(2),l=n.n(i),u=n(6),s=n.n(u);function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var f=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.api_url=t,this.header_nonce=n,this.requests={}}var t,n,r;return t=e,(n=[{key:"connect",value:function(e,t,n){var r=this;this.requests[n]&&this.requests[n].cancel();var o=s.a.CancelToken;this.requests[n]=o.source();var a={method:"POST",url:"".concat(this.api_url,"/").concat(e),headers:{"X-WP-Nonce":this.header_nonce},data:t,cancelToken:this.requests[n].token};return s()(a).then((function(e){var t={status:!0,response:e.data};return"get"===e.config.method&&(r.cache[cache_key]=t),t})).catch((function(e){return{status:!1,response:e.response?e.response.data.message:null}}))}}])&&c(t.prototype,n),r&&c(t,r),e}();function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var p=function(){function e(t,n,r,o,a,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.api_loader=t,this.field_data=n,this.form_values=r,this.section_fields=o,this.onUpdateStatus=a,this.onUpdateItems=i,this.cache={}}var t,n,r;return t=e,(n=[{key:"refreshItems",value:function(e,t,n,r){var o=this.field_data,a=this.form_values,i=o.endpoint_route,l=o.endpoint_params,u=this.getParamsForApi(l,a);(r||JSON.stringify(u)!==this.cache)&&(this.cache=JSON.stringify(u),this.loadItemsFromApi(i,u,t,n,e))}},{key:"getParamsForApi",value:function(e,t){for(var n={},r=e.length,o=0;o<r;o++)n[e[o]]=t[e[o]];return n}},{key:"loadItemsFromApi",value:function(e,t,n,r,o){var a=this.api_loader,i=this.section_fields,l=this.onUpdateStatus,u=this.onUpdateItems;l(!0),a.connect(e,{form_values:t,form_field_name:n,form_section:r,form_fields:i},o).then((function(e){l(!1),e.status&&null!==e.response&&u(e.response)}))}}])&&d(t.prototype,n),r&&d(t,r),e}();function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var h=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,(n=[{key:"generateSlug",value:function(e){var t=e,n=this.getLettersToReplace();for(var r in n)t=t.replace(new RegExp(r,"g"),n[r]);return t=(t=(t=(t=t.replace(/\s/g,"_")).toLowerCase()).replace(/[^a-z0-9_]/gi,"")).replace(/[/_]{2,}/g,"_")}},{key:"getLettersToReplace",value:function(){return{"-":"_","/":"_",",":"_",":":"_",";":"_","ª":"a","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"s","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ø":"O","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","ĝ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","Ŋ":"N","ŋ":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","Ș":"S","ș":"s","Ț":"T","ț":"t","€":"E","£":"","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Ầ":"A","ầ":"a","Ằ":"A","ằ":"a","Ề":"E","ề":"e","Ồ":"O","ồ":"o","Ờ":"O","ờ":"o","Ừ":"U","ừ":"u","Ỳ":"Y","ỳ":"y","Ả":"A","ả":"a","Ẩ":"A","ẩ":"a","Ẳ":"A","ẳ":"a","Ẻ":"E","ẻ":"e","Ể":"E","ể":"e","Ỉ":"I","ỉ":"i","Ỏ":"O","ỏ":"o","Ổ":"O","ổ":"o","Ở":"O","ở":"o","Ủ":"U","ủ":"u","Ử":"U","ử":"u","Ỷ":"Y","ỷ":"y","Ẫ":"A","ẫ":"a","Ẵ":"A","ẵ":"a","Ẽ":"E","ẽ":"e","Ễ":"E","ễ":"e","Ỗ":"O","ỗ":"o","Ỡ":"O","ỡ":"o","Ữ":"U","ữ":"u","Ỹ":"Y","ỹ":"y","Ấ":"A","ấ":"a","Ắ":"A","ắ":"a","Ế":"E","ế":"e","Ố":"O","ố":"o","Ớ":"O","ớ":"o","Ứ":"U","ứ":"u","Ạ":"A","ạ":"a","Ậ":"A","ậ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ệ":"E","ệ":"e","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ộ":"O","ộ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ự":"U","ự":"u","Ỵ":"Y","ỵ":"y","ɑ":"a","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u"}}}])&&m(t.prototype,n),r&&m(t,r),e}();function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var g=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,(n=[{key:"validateValue",value:function(e,t,n){var r=e.name,o=e.validation_rules,a=null;for(var i in o)if(!new RegExp(i,"s").test(t[r]||"")){a=o[i];break}n(a)}}])&&v(t.prototype,n),r&&v(t,r),e}();function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var y=function(){function e(t,n,r,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.api_handler=t,this.api_route=n,this._form_validation=r,this.onUpdateStatus=o}var t,n,r;return t=e,(n=[{key:"onSubmit",value:function(e,t){var n=this;this.onUpdateStatus("".concat(e,"_loading")),this._form_validation.onSubmit().then((function(){n.saveSettings(e,t).then((function(){n.onUpdateStatus("".concat(e,"_success")),setTimeout(n.onUpdateStatus,1e3)}),(function(t){n.onUpdateStatus("".concat(e,"_error"),t)}))}),(function(){n.onUpdateStatus()}))}},{key:"saveSettings",value:function(e,t){var n=this.api_handler,r=this.api_route;return new Promise((function(e,o){n.connect(r,t,"POST").then((function(t){t.status?e():o(t.response)}))}))}},{key:"onReset",value:function(e,t){var n=this;this.onUpdateStatus("".concat(e,"_loading")),this.saveSettings(e,t).then((function(){n.onUpdateStatus("".concat(e,"_success")),window.location.reload(!0)}),(function(t){n.onUpdateStatus("".concat(e,"_error"),t)}))}}])&&b(t.prototype,n),r&&b(t,r),e}();function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var E=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;_(this,e),this.validation_event=t,this.validation_type=n,this.max_iteration=r,this.validation_errors={}}var t,n,r;return t=e,(n=[{key:"onValidationInit",value:function(e,t,n){this.validation_errors[e]=n,t&&delete this.validation_errors[e]}},{key:"clearValidationHandlers",value:function(){this.validation_errors={}}},{key:"onSubmit",value:function(){var e=this,t=this.validation_event,n=this.validation_type,r=this.max_iteration;return window.dispatchEvent(new CustomEvent(t,{detail:n})),new Promise((function(t,n){var o=0,a=setInterval((function(){var i=e.getFirstEvent();i&&(clearInterval(a),i(),n()),++o===r&&(clearInterval(a),t())}),100)}))}},{key:"getFirstEvent",value:function(){var e=Object.keys(this.validation_errors);return e.length>0?this.validation_errors[e[0]]:null}}])&&w(t.prototype,n),r&&w(t,r),e}();function S(e){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function O(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function x(e,t){return(x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function C(e){var t=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}}();return function(){var n,r=P(e);if(t){var o=P(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return k(this,n)}}function k(e,t){return!t||"object"!==S(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function P(e){return(P=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var I=function(e){!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&&x(e,t)}(i,e);var t,n,r,o=C(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).state={settings:e.settings,form_settings:e.form_settings,events:{onChangeValue:e.onChangeValue,onChangeState:e.onChangeState,onRefreshForm:e.onRefreshForm,onValidationInit:e.onValidationInit},handlers:{api_loader:e.settings.handlers.api_loader},validation_types:e.validation_types},t._field_validation=new g,t.setDefaultValue(),t.onChangeState("unique_id",t.generateUniqueId(32)),t.onChangeState("ref_wrapper",a.a.createRef()),t.onChangeState("ref_input",a.a.createRef()),t}return t=i,(n=[{key:"componentDidMount",value:function(){var e=this;this._isMounted=!0;var t=this.state,n=t.settings,r=t.validation_types;window.addEventListener(n.events.validate_field,(function(t){null!==t.detail&&r.indexOf(t.detail)>-1&&e._isMounted&&e.validateValue()}))}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.onValidationError(null)}},{key:"onChangeValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.props.field_data,n=this.state.events,r=this.getValue(e);n.onChangeValue(t.name,r,t.refresh_trigger),this.validateValue()}},{key:"onChangeState",value:function(e,t){var n=this.props.state_name;this.state.events.onChangeState(n,e,t)}},{key:"onValidationError",value:function(e){var t=this.props,n=t.form_states,r=t.state_name,o=this.state.events;n[r]&&(this.onChangeState("validation_error",e),o.onValidationInit(n[r].unique_id,null===e,(function(){n[r].ref_wrapper.current.scrollIntoView(!1)})))}},{key:"setDefaultValue",value:function(){var e=this.state.events,t=this.props,n=t.field_data,r=t.form_values,o=void 0!==r[n.name]?r[n.name]:JSON.parse(JSON.stringify(n.default_value||""));e.onChangeValue(n.name,o)}},{key:"isFieldVisible",value:function(e,t){for(var n in e)if(!new RegExp(e[n]).test(t[n]))return!1;return!0}},{key:"getFieldValue",value:function(){var e=this.props,t=e.field_data,n=e.form_values;return t.display_pattern?t.display_pattern.replace("%s",n[t.name]||""):n[t.name]||""}},{key:"validateValue",value:function(){var e=this.props,t=e.field_data,n=e.form_values;this._field_validation.validateValue(t,n,this.onValidationError.bind(this))}},{key:"generateUniqueId",value:function(e){for(var t="abcdefghijklmnopqrstuvwxyz0123456789",n="",r=t.length,o=0;o<e;o++)n+=t.charAt(Math.floor(Math.random()*r));return n}}])&&O(t.prototype,n),r&&O(t,r),i}(a.a.Component);function D(e){var t=e.button_classes,n=e.button_alignment,r=e.button_label,o=e.loading_type,i=e.loading_message,l=e.tooltip_text,u=e.settings,s=e.onSubmit,c=(e.loading_status||"").replace("".concat(o,"_"),""),f="loading"===(e.loading_status||"").substr(-7);return a.a.createElement(a.a.Fragment,null,"left"===n?l?a.a.createElement(B,{text:l,onAccept:s,settings:u},a.a.createElement("button",{type:"button",className:t,disabled:f},r)):a.a.createElement("button",{type:"button",className:t,onClick:s,disabled:f},r):null,"loading"===c?a.a.createElement("div",{className:"fcfWidget__buttonIcon fcfWidget__buttonIcon--loading"},a.a.createElement("div",{className:"fcfWidget__buttonIconInner"})):null,"success"===c?a.a.createElement("div",{className:"fcfWidget__buttonIcon fcfWidget__buttonIcon--success"},a.a.createElement("div",{className:"fcfWidget__buttonIconInner"})):null,"error"===c?a.a.createElement("div",{className:"fcfWidget__buttonIcon fcfWidget__buttonIcon--error"},a.a.createElement(B,{text:i||u.i18n.alert_failed_save,is_open:!0,settings:u},a.a.createElement("div",{className:"fcfWidget__buttonIconInner"}))):null,"right"===n?l?a.a.createElement(B,{text:l,onAccept:s,settings:u},a.a.createElement("button",{type:"button",className:t,disabled:f},r)):a.a.createElement("button",{type:"button",className:t,onClick:s,disabled:f},r):null)}function R(e){var t=e.field_data,n=e.unique_id,r=e.is_group_label,o=e.settings,i=r?"".concat(t.label,":"):t.label;return r?a.a.createElement("div",{className:"fcfOptions__rowLabel"},i,t.label_tooltip?a.a.createElement("span",{className:"fcfOptions__labelHelp"},a.a.createElement(B,{text:t.label_tooltip,button_url:t.label_tooltip_url,settings:o},a.a.createElement("span",{className:"fcfOptions__labelHelpIcon"}))):null):a.a.createElement("label",{className:"fcfOptions__label",htmlFor:n},i,t.label_tooltip?a.a.createElement("span",{className:"fcfOptions__labelHelp"},a.a.createElement(B,{text:t.label_tooltip,button_url:t.label_tooltip_url,settings:o},a.a.createElement("span",{className:"fcfOptions__labelHelpIcon"}))):null)}function N(e){return(N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function T(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function L(e,t){return(L=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function A(e){var t=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}}();return function(){var n,r=F(e);if(t){var o=F(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return j(this,n)}}function j(e,t){return!t||"object"!==N(t)&&"function"!=typeof t?M(e):t}function M(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F(e){return(F=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var B=function(e){!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&&L(e,t)}(i,e);var t,n,r,o=A(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).state={text:e.text,button_url:e.button_url,status:{is_open:!1,is_visible:!1},settings:e.settings,events:{onClose:t.closePopup.bind(M(t)),onAccept:e.onAccept},refs:{wrapper:a.a.createRef()}},t._isMounted=!1,t}return t=i,(n=[{key:"render",value:function(){var e=this.state,t=e.text,n=e.button_url,r=e.status,o=e.settings,i=e.events,l=e.refs,u=a.a.Children.toArray(this.props.children);return a.a.createElement(a.a.Fragment,null,a.a.cloneElement(u[0],{onClick:this.openPopup.bind(this)}),r.is_open?a.a.createElement("div",{className:"fcfTooltip ".concat(r.is_visible?"fcfTooltip--open":"")},a.a.createElement("div",{className:"fcfTooltip__outer"},a.a.createElement("div",{className:"fcfTooltip__inner",ref:l.wrapper,onClick:this.preventClosePopup.bind(this)},a.a.createElement("div",{className:"fcfTooltip__text"},t),n?a.a.createElement("ul",{className:"fcfTooltip__buttons"},a.a.createElement("li",{className:"fcfTooltip__button"},a.a.createElement("a",{href:n,target:"_blank",className:"fcfButton fcfButton--small fcfButton--border fcfButton--blue"},o.i18n.button_read_more))):null,i.onAccept?a.a.createElement("ul",{className:"fcfTooltip__buttons"},a.a.createElement("li",{className:"fcfTooltip__button"},a.a.createElement("button",{type:"button",className:"fcfButton fcfButton--small fcfButton--border fcfButton--green",onClick:this.acceptPopup.bind(this)},o.i18n.button_yes)),a.a.createElement("li",{className:"fcfTooltip__button"},a.a.createElement("button",{type:"button",className:"fcfButton fcfButton--small fcfButton--border fcfButton--red",onClick:this.closePopup.bind(this)},o.i18n.button_no))):null))):null)}},{key:"componentDidMount",value:function(){this._isMounted=!0,this.props.is_open&&setTimeout(this.openPopup.bind(this),0)}},{key:"componentWillUnmount",value:function(){this._isMounted=!1}},{key:"openPopup",value:function(e){e&&(e.preventDefault(),e.stopPropagation());var t=this.state.status;t.is_open||(t.is_open=!0,t.is_visible=!1,this._isMounted&&this.setState({status:t}),this.loadPopup())}},{key:"loadPopup",value:function(){var e=this,t=this.state.events;window.addEventListener("click",t.onClose),window.dispatchEvent(new CustomEvent("fcf-popup-open")),setTimeout((function(){window.addEventListener("fcf-popup-open",t.onClose),e.setStyles()}),0)}},{key:"acceptPopup",value:function(e){e.preventDefault(),e.stopPropagation(),this.state.events.onAccept(),this.closePopup()}},{key:"closePopup",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;null!==e&&e.stopPropagation();var t=this.state,n=t.status,r=t.events;n.is_open=!1,this._isMounted&&this.setState({status:n}),window.removeEventListener("click",r.onClose),window.removeEventListener("fcf-popup-open",r.onClose)}},{key:"preventClosePopup",value:function(e){e.stopPropagation()}},{key:"setStyles",value:function(){var e=this.state,t=e.refs,n=e.status;if(t.wrapper.current){t.wrapper.current.style.marginLeft="";var r=document.body.offsetWidth||document.documentElement.offsetWidth,o=t.wrapper.current.getBoundingClientRect(),a=o.left,i=2*(r-o.right);a<0&&(t.wrapper.current.style.marginLeft="".concat(-2*a+20,"px")),i<0&&(t.wrapper.current.style.marginLeft="".concat(i-20,"px")),n.is_visible=!0,this._isMounted&&this.setState({status:n})}}}])&&T(t.prototype,n),r&&T(t,r),i}(a.a.Component);function V(e){var t=e.validation_error;return t?a.a.createElement("div",{className:"fcfOptions__error"},t):null}function U(e){return(U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function z(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function H(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function W(e,t){return(W=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function G(e){var t=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}}();return function(){var n,r=$(e);if(t){var o=$(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return q(this,n)}}function q(e,t){return!t||"object"!==U(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function $(e){return($=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Y=function(e){!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&&W(e,t)}(i,e);var t,n,r,o=G(i);function i(){return z(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=e.form_states,o=e.state_name,i=e.show_if_regexes,l=this.state.settings;return r[o]&&this.isFieldVisible(i,n)?a.a.createElement(a.a.Fragment,null,a.a.createElement("li",{className:"fcfOptions__row",ref:r[o].ref_wrapper},a.a.createElement("input",{type:"checkbox",className:"fcfOptions__checkbox",id:r[o].unique_id,ref:r[o].ref_input,name:t.name,defaultChecked:n[t.name]&&"1"===n[t.name].toString(),onChange:t.readonly?null:this.onChangeValue.bind(this),disabled:t.readonly}),a.a.createElement(R,{unique_id:r[o].unique_id,field_data:t,settings:l}),a.a.createElement(V,{validation_error:r[o].validation_error}))):null}},{key:"getValue",value:function(){var e=this.props;return e.form_states[e.state_name].ref_input.current.checked?"1":"0"}}])&&H(t.prototype,n),r&&H(t,r),i}(I);function Q(e){return(Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function K(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function X(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function J(e,t){return(J=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Z(e){var t=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}}();return function(){var n,r=te(e);if(t){var o=te(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ee(this,n)}}function ee(e,t){return!t||"object"!==Q(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function te(e){return(te=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ne=function(e){!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&&J(e,t)}(i,e);var t,n,r,o=Z(i);function i(){return K(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=e.form_states,o=e.state_name,i=e.state_field_name,l=e.section_fields,u=e.show_if_regexes,s=this.state,c=s.events,f=s.settings,d=s.form_settings,p=s.validation_types;return r[o]&&this.isFieldVisible(u,n)?a.a.createElement(a.a.Fragment,null,a.a.createElement("li",{className:"fcfOptions__row"},a.a.createElement(R,{unique_id:r[o].unique_id,field_data:t,is_group_label:!0,settings:f})),t.items.map((function(e,t){return a.a.createElement(Y,{key:t,field_data:e,form_values:n,form_states:r,state_name:e.name,state_field_name:i,section_fields:l,onChangeValue:c.onChangeValue,onChangeState:c.onChangeState,onRefreshForm:c.onRefreshForm,onValidationInit:c.onValidationInit,validation_types:p,settings:f,form_settings:d})}))):null}}])&&X(t.prototype,n),r&&X(t,r),i}(I);function re(e){return(re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function oe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ae(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ie(e,t){return(ie=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function le(e){var t=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}}();return function(){var n,r=se(e);if(t){var o=se(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ue(this,n)}}function ue(e,t){return!t||"object"!==re(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function se(e){return(se=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ce=function(e){!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&&ie(e,t)}(l,e);var t,n,o,i=le(l);function l(){return oe(this,l),i.apply(this,arguments)}return t=l,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.field_data,o=t.form_values,i=t.form_states,l=t.state_name,u=t.state_field_name,s=t.section_fields,c=t.show_if_regexes,f=this.state,d=f.api_loader,p=f.events,m=f.settings,h=f.form_settings,v=f.validation_types;return i[l]&&this.isFieldVisible(c,o)?a.a.createElement(a.a.Fragment,null,a.a.createElement("li",{className:"fcfOptions__row fcfOptions__row--sub"},a.a.createElement("ul",{className:"fcfOptions__columns"},n.items.map((function(t,n){var l=r[t.type],c=t.show_if_regexes;return e.isFieldVisible(c,o)?a.a.createElement("li",{className:"fcfOptions__column",key:n},a.a.createElement("ul",{className:"fcfOptions__rows"},a.a.createElement(l,{field_data:t,form_values:o,form_states:i,state_name:t.name,state_field_name:u,section_fields:s,api_loader:d,onChangeValue:p.onChangeValue,onChangeState:p.onChangeState,onRefreshForm:p.onRefreshForm,onValidationInit:p.onValidationInit,validation_types:v,settings:m,form_settings:h}))):null}))))):null}}])&&ae(t.prototype,n),o&&ae(t,o),l}(I);function fe(e){return(fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function de(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function me(e,t){return(me=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function he(e){var t=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}}();return function(){var n,r=ge(e);if(t){var o=ge(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ve(this,n)}}function ve(e,t){return!t||"object"!==fe(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ge(e){return(ge=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var be=function(e){!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&&me(e,t)}(i,e);var t,n,r,o=he(i);function i(){return de(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=e.show_if_regexes;return this.isFieldVisible(r,n)?a.a.createElement(a.a.Fragment,null,a.a.createElement("input",{type:"hidden",name:t.name,value:n[t.name]||""})):null}}])&&pe(t.prototype,n),r&&pe(t,r),i}(I);function ye(e){return(ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function we(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ee(e,t){return(Ee=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Se(e){var t=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}}();return function(){var n,r=xe(e);if(t){var o=xe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Oe(this,n)}}function Oe(e,t){return!t||"object"!==ye(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function xe(e){return(xe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ce=function(e){!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&&Ee(e,t)}(i,e);var t,n,r,o=Se(i);function i(){return _e(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=e.show_if_regexes;return this.isFieldVisible(r,n)?a.a.createElement(a.a.Fragment,null,a.a.createElement("li",{className:"fcfOptions__row"},a.a.createElement("div",{className:"fcfOptions__info"},a.a.createElement("div",{className:"fcfOptions__infoInner",dangerouslySetInnerHTML:{__html:t.label}})))):null}}])&&we(t.prototype,n),r&&we(t,r),i}(I);function ke(e){return(ke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Pe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ie(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function De(e,t){return(De=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Re(e){var t=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}}();return function(){var n,r=Te(e);if(t){var o=Te(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ne(this,n)}}function Ne(e,t){return!t||"object"!==ke(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Te(e){return(Te=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Le=function(e){!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&&De(e,t)}(i,e);var t,n,r,o=Re(i);function i(){return Pe(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=e.show_if_regexes;return this.isFieldVisible(r,n)?a.a.createElement(a.a.Fragment,null,a.a.createElement("li",{className:"fcfOptions__row"},a.a.createElement("div",{className:"fcfOptions__info fcfOptions__info--green"},a.a.createElement("div",{className:"fcfOptions__infoInner",dangerouslySetInnerHTML:{__html:t.label}})))):null}}])&&Ie(t.prototype,n),r&&Ie(t,r),i}(I);function Ae(e){return(Ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function je(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Me(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Fe(e,t){return(Fe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Be(e){var t=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}}();return function(){var n,r=Ue(e);if(t){var o=Ue(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ve(this,n)}}function Ve(e,t){return!t||"object"!==Ae(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ue(e){return(Ue=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ze=function(e){!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&&Fe(e,t)}(i,e);var t,n,r,o=Be(i);function i(){return je(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=e.show_if_regexes;return this.isFieldVisible(r,n)?a.a.createElement(a.a.Fragment,null,a.a.createElement("li",{className:"fcfOptions__row"},a.a.createElement("div",{className:"fcfOptions__info fcfOptions__info--yellow"},a.a.createElement("div",{className:"fcfOptions__infoInner",dangerouslySetInnerHTML:{__html:t.label}})))):null}}])&&Me(t.prototype,n),r&&Me(t,r),i}(I);function He(e){return(He="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function We(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ge(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function qe(e,t){return(qe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function $e(e){var t=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}}();return function(){var n,r=Qe(e);if(t){var o=Qe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ye(this,n)}}function Ye(e,t){return!t||"object"!==He(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Qe(e){return(Qe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ke=function(e){!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&&qe(e,t)}(i,e);var t,n,r,o=$e(i);function i(){return We(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=e.form_states,o=e.state_name,i=e.show_if_regexes,l=this.state.settings;return r[o]&&this.isFieldVisible(i,n)?a.a.createElement(a.a.Fragment,null,a.a.createElement("li",{className:"fcfOptions__row",ref:r[o].ref_wrapper},a.a.createElement(R,{unique_id:r[o].unique_id,field_data:t,settings:l}),a.a.createElement(V,{validation_error:r[o].validation_error}),a.a.createElement("input",{type:"number",id:r[o].unique_id,ref:r[o].ref_input,name:t.name,min:t.html_atts.min||"",max:t.html_atts.max||"",step:t.html_atts.step||"1",className:"fcfOptions__input",value:n[t.name],onChange:t.readonly?null:this.onChangeValue.bind(this),disabled:t.readonly}))):null}},{key:"getValue",value:function(e){var t=this.props,n=t.form_states,r=t.state_name;return""===e.currentTarget.value?(e.currentTarget.value="",null):n[r].ref_input.current.value}}])&&Ge(t.prototype,n),r&&Ge(t,r),i}(I);function Xe(e){return(Xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Je(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ze(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function et(e,t){return(et=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function tt(e){var t=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}}();return function(){var n,r=rt(e);if(t){var o=rt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return nt(this,n)}}function nt(e,t){return!t||"object"!==Xe(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function rt(e){return(rt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ot=function(e){!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&&et(e,t)}(i,e);var t,n,r,o=tt(i);function i(){return Je(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.field_data,r=t.form_values,o=t.form_states,i=t.state_name,l=t.show_if_regexes,u=this.state.settings;return o[i]&&this.isFieldVisible(l,r)?a.a.createElement(a.a.Fragment,null,a.a.createElement("li",{className:"fcfOptions__row",ref:o[i].ref_wrapper},a.a.createElement(R,{unique_id:o[i].unique_id,field_data:n,is_group_label:!0,settings:u}),a.a.createElement(V,{validation_error:o[i].validation_error})),Object.keys(n.items).map((function(t,l){return a.a.createElement("li",{className:"fcfOptions__row",key:l},a.a.createElement("input",{type:"radio",className:"fcfOptions__radio",id:"".concat(o[i].unique_id,"-").concat(l),ref:o[i].ref_input,name:n.name,value:t,defaultChecked:r[n.name]===t,onChange:e.onChangeValue.bind(e),disabled:n.readonly?null:n.readonly}),a.a.createElement("label",{htmlFor:"".concat(o[i].unique_id,"-").concat(l),className:"fcfOptions__label"},n.items[t]))}))):null}},{key:"getValue",value:function(e){return e.currentTarget.value}}])&&Ze(t.prototype,n),r&&Ze(t,r),i}(I);function at(e){return(at="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function it(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ut(e,t){return(ut=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function st(e){var t=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}}();return function(){var n,r=ft(e);if(t){var o=ft(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ct(this,n)}}function ct(e,t){return!t||"object"!==at(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ft(e){return(ft=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var dt=function(e){!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&&ut(e,t)}(i,e);var t,n,r,o=st(i);function i(){return it(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.field_data,r=t.form_values,o=t.form_states,i=t.state_name,l=t.show_if_regexes,u=this.state.settings;return o[i]&&this.isFieldVisible(l,r)?a.a.createElement(a.a.Fragment,null,a.a.createElement("li",{className:"fcfOptions__row",ref:o[i].ref_wrapper},a.a.createElement(R,{unique_id:o[i].unique_id,field_data:n,settings:u}),a.a.createElement(V,{validation_error:o[i].validation_error}),a.a.createElement("div",{className:"fcfOptions__boxes"},a.a.createElement("ul",{className:"fcfOptions__boxesItems"},n.items.map((function(t,l){return a.a.createElement("li",{className:"fcfOptions__boxesItem",key:l},a.a.createElement("input",{type:"radio",className:"fcfOptions__boxesItemInput",id:"".concat(o[i].unique_id,"-").concat(l),ref:o[i].ref_input,name:n.name,value:t.type,checked:r[n.name]===t.type,onChange:n.readonly?null:e.onChangeValue.bind(e),disabled:n.readonly}),a.a.createElement("label",{className:"fcfOptions__boxesItemLabel ".concat(t.icon),htmlFor:"".concat(o[i].unique_id,"-").concat(l)},t.label))})))))):null}},{key:"getValue",value:function(e){return e.currentTarget.value}}])&<(t.prototype,n),r&<(t,r),i}(I);function pt(e){return(pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ht(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vt(e,t){return(vt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function gt(e){var t=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}}();return function(){var n,r=yt(e);if(t){var o=yt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return bt(this,n)}}function bt(e,t){return!t||"object"!==pt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function yt(e){return(yt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _t=function(e){!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&&vt(e,t)}(l,e);var t,n,o,i=gt(l);function l(){return mt(this,l),i.apply(this,arguments)}return t=l,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.field_data,o=t.form_values,i=t.form_states,l=t.state_name,u=t.state_field_name,s=t.section_fields,c=t.show_if_regexes,f=this.state,d=f.events,p=f.settings,m=f.form_settings,h=f.validation_types,v=this.getRows();return i[l]&&this.isFieldVisible(c,o)?a.a.createElement(a.a.Fragment,null,n.label?a.a.createElement("li",{className:"fcfOptions__row"},a.a.createElement(R,{field_data:n,settings:p})):null,a.a.createElement("li",{className:"fcfOptions__row fcfOptions__row--lines fcfOptions__row--sub"},v.map((function(t){var l=!n.option_name_rows&&v.length>1;return a.a.createElement(a.a.Fragment,{key:t.key},a.a.createElement("ul",{className:"fcfOptions__columns"},a.a.createElement("li",{className:"fcfOptions__column"},a.a.createElement("div",{className:"fcfOptions__label fcfOptions__label--line"},a.a.createElement("div",{className:"fcfOptions__labelInner"},t.label)))),a.a.createElement("ul",{className:"fcfOptions__columns ".concat(l?"fcfOptions__columns--button":"")},n.items.map((function(l,c){var f=r[l.type],v=l.show_if_regexes,g=o[n.name][t.key]?o[n.name][t.key]:JSON.parse(JSON.stringify(l.default_value));return e.isFieldVisible(v,g)?a.a.createElement("li",{className:"fcfOptions__column",key:c},a.a.createElement("ul",{className:"fcfOptions__rows"},a.a.createElement(f,{field_data:l,form_values:g,form_states:i,state_name:"".concat(n.name,"_").concat(t.key,"_").concat(l.name),state_field_name:u,section_fields:s,onChangeValue:e.onChangeValue.bind(e,t.key),onChangeState:d.onChangeState,onRefreshForm:d.onRefreshForm,onValidationInit:d.onValidationInit,validation_types:h,settings:p,form_settings:m}))):null})),l?a.a.createElement("li",{className:"fcfOptions__column fcfOptions__column--small"},a.a.createElement("button",{type:"button",className:"fcfOptions__columnButton fcfOptions__columnButton--remove",onClick:e.removeRow.bind(e,t.key)})):null))})),n.option_name_rows?null:a.a.createElement("ul",{className:"fcfOptions__columns"},a.a.createElement("li",{className:"fcfOptions__column fcfOptions__column--center"},a.a.createElement("button",{type:"button",className:"fcfButton fcfButton--small fcfButton--border fcfButton--blue",onClick:this.addNewRow.bind(this)},p.i18n.button_add_row))))):null}},{key:"onChangeValue",value:function(e,t,n){var r=this.props,o=r.field_data,a=r.form_values,i=this.state.events,l=a[o.name];void 0===l[e]&&(l[e]={}),l[e][t]=n,i.onChangeValue(o.name,l,o.refresh_trigger)}},{key:"onChangeOptionState",value:function(e,t,n,r){var o=this.props.state_name;this.state.events.onChangeState(o,n,r)}},{key:"getRows",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=t.option_name_rows;return r&&void 0!==n[r]?this.getRowsByFieldValue():this.getRowsByAddedValues()}},{key:"getRowsByAddedValues",value:function(){for(var e=this.props,t=e.field_data,n=e.form_values,r=t.label_row,o=Object.keys(n[t.name]),a=[],i=o.length,l=0;l<i;l++)a.push({key:o[l],label:r.replace("%s",l+1)});return a}},{key:"getRowsByFieldValue",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=t.option_name_rows,o=t.label_row,a=[];if(Array.isArray(n[r]))for(var i=n[r].length,l=0;l<i;l++)n[r][l]&&a.push({key:n[r][l].key,label:o.replace("%s",n[r][l].value)});else a.push({key:Object.keys(t.default_value)[0],label:o.replace("%s",n[r])});return a}},{key:"addNewRow",value:function(){var e=this.props.field_data,t=this.state.events,n=Object.values(this.props.form_values[e.name]),r=Object.keys(e.default_value);n.push(JSON.parse(JSON.stringify(e.default_value[r[0]]))),t.onChangeValue(e.name,n)}},{key:"removeRow",value:function(e){var t=this.props.field_data,n=this.state.events,r=JSON.parse(JSON.stringify(this.props.form_values[t.name]));delete r[e],r=r.filter((function(e){return null!==e})),n.onChangeValue(t.name,r,!0)}}])&&ht(t.prototype,n),o&&ht(t,o),l}(I);function wt(){return(wt=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)}var Et=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),St="-ms-",Ot="-moz-",xt="-webkit-",Ct="comm",kt="decl",Pt=Math.abs,It=String.fromCharCode;function Dt(e){return e.trim()}function Rt(e,t,n){return e.replace(t,n)}function Nt(e,t){return e.indexOf(t)}function Tt(e,t){return 0|e.charCodeAt(t)}function Lt(e,t,n){return e.slice(t,n)}function At(e){return e.length}function jt(e){return e.length}function Mt(e,t){return t.push(e),e}function Ft(e,t){return e.map(t).join("")}var Bt=1,Vt=1,Ut=0,zt=0,Ht=0,Wt="";function Gt(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:Bt,column:Vt,length:i,return:""}}function qt(e,t,n){return Gt(e,t.root,t.parent,n,t.props,t.children,0)}function $t(){return Ht=zt<Ut?Tt(Wt,zt++):0,Vt++,10===Ht&&(Vt=1,Bt++),Ht}function Yt(){return Tt(Wt,zt)}function Qt(){return zt}function Kt(e,t){return Lt(Wt,e,t)}function Xt(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Jt(e){return Bt=Vt=1,Ut=At(Wt=e),zt=0,[]}function Zt(e){return Wt="",e}function en(e){return Dt(Kt(zt-1,function e(t){for(;$t();)switch(Ht){case t:return zt;case 34:case 39:return e(34===t||39===t?t:Ht);case 40:41===t&&e(t);break;case 92:$t()}return zt}(91===e?e+2:40===e?e+1:e)))}function tn(e){for(;(Ht=Yt())&&Ht<33;)$t();return Xt(e)>2||Xt(Ht)>3?"":" "}function nn(e,t){for(;$t()&&e+Ht!==57&&(e+Ht!==84||47!==Yt()););return"/*"+Kt(t,zt-1)+"*"+It(47===e?e:$t())}function rn(e){for(;!Xt(Yt());)$t();return Kt(e,zt)}function on(e){return Zt(function e(t,n,r,o,a,i,l,u,s){var c=0,f=0,d=l,p=0,m=0,h=0,v=1,g=1,b=1,y=0,_="",w=a,E=i,S=o,O=_;for(;g;)switch(h=y,y=$t()){case 34:case 39:case 91:case 40:O+=en(y);break;case 9:case 10:case 13:case 32:O+=tn(h);break;case 47:switch(Yt()){case 42:case 47:Mt(ln(nn($t(),Qt()),n,r),s);break;default:O+="/"}break;case 123*v:u[c++]=At(O)*b;case 125*v:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+f:m>0&&At(O)-d&&Mt(m>32?un(O+";",o,r,d-1):un(Rt(O," ","")+";",o,r,d-2),s);break;case 59:O+=";";default:if(Mt(S=an(O,n,r,c,f,a,u,_,w=[],E=[],d),i),123===y)if(0===f)e(O,n,S,S,w,i,d,u,E);else switch(p){case 100:case 109:case 115:e(t,S,S,o&&Mt(an(t,S,S,0,0,a,u,_,a,w=[],d),E),a,E,d,u,o?w:E);break;default:e(O,S,S,S,[""],E,d,u,E)}}c=f=m=0,v=b=1,_=O="",d=l;break;case 58:d=1+At(O),m=h;default:switch(O+=It(y),y*v){case 38:b=f>0?1:(O+="\f",-1);break;case 44:u[c++]=(At(O)-1)*b,b=1;break;case 64:45===Yt()&&(O+=en($t())),p=Yt(),f=At(_=O+=rn(Qt())),y++;break;case 45:45===h&&2==At(O)&&(v=0)}}return i}("",null,null,null,[""],e=Jt(e),0,[0],e))}function an(e,t,n,r,o,a,i,l,u,s,c){for(var f=o-1,d=0===o?a:[""],p=jt(d),m=0,h=0,v=0;m<r;++m)for(var g=0,b=Lt(e,f+1,f=Pt(h=i[m])),y=e;g<p;++g)(y=Dt(h>0?d[g]+" "+b:Rt(b,/&\f/g,d[g])))&&(u[v++]=y);return Gt(e,t,n,0===o?"rule":l,u,s,c)}function ln(e,t,n){return Gt(e,t,n,Ct,It(Ht),Lt(e,2,-2),0)}function un(e,t,n,r){return Gt(e,t,n,kt,Lt(e,0,r),Lt(e,r+1,-1),r)}function sn(e,t){switch(function(e,t){return(((t<<2^Tt(e,0))<<2^Tt(e,1))<<2^Tt(e,2))<<2^Tt(e,3)}(e,t)){case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return xt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return xt+e+Ot+e+St+e+e;case 6828:case 4268:return xt+e+St+e+e;case 6165:return xt+e+St+"flex-"+e+e;case 5187:return xt+e+Rt(e,/(\w+).+(:[^]+)/,xt+"box-$1$2"+St+"flex-$1$2")+e;case 5443:return xt+e+St+"flex-item-"+Rt(e,/flex-|-self/,"")+e;case 4675:return xt+e+St+"flex-line-pack"+Rt(e,/align-content|flex-|-self/,"")+e;case 5548:return xt+e+St+Rt(e,"shrink","negative")+e;case 5292:return xt+e+St+Rt(e,"basis","preferred-size")+e;case 6060:return xt+"box-"+Rt(e,"-grow","")+xt+e+St+Rt(e,"grow","positive")+e;case 4554:return xt+Rt(e,/([^-])(transform)/g,"$1"+xt+"$2")+e;case 6187:return Rt(Rt(Rt(e,/(zoom-|grab)/,xt+"$1"),/(image-set)/,xt+"$1"),e,"")+e;case 5495:case 3959:return Rt(e,/(image-set\([^]*)/,xt+"$1$`$1");case 4968:return Rt(Rt(e,/(.+:)(flex-)?(.*)/,xt+"box-pack:$3"+St+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+xt+e+e;case 4095:case 3583:case 4068:case 2532:return Rt(e,/(.+)-inline(.+)/,xt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(At(e)-1-t>6)switch(Tt(e,t+1)){case 102:t=Tt(e,t+3);case 109:return Rt(e,/(.+:)(.+)-([^]+)/,"$1"+xt+"$2-$3$1"+Ot+(108==t?"$3":"$2-$3"))+e;case 115:return~Nt(e,"stretch")?sn(Rt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Tt(e,t+1))break;case 6444:switch(Tt(e,At(e)-3-(~Nt(e,"!important")&&10))){case 107:case 111:return Rt(e,e,xt+e)+e;case 101:return Rt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+xt+(45===Tt(e,14)?"inline-":"")+"box$3$1"+xt+"$2$3$1"+St+"$2box$3")+e}break;case 5936:switch(Tt(e,t+11)){case 114:return xt+e+St+Rt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return xt+e+St+Rt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return xt+e+St+Rt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return xt+e+St+e+e}return e}function cn(e,t){for(var n="",r=jt(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function fn(e,t,n,r){switch(e.type){case"@import":case kt:return e.return=e.return||e.value;case Ct:return"";case"rule":e.value=e.props.join(",")}return At(n=cn(e.children,r))?e.return=e.value+"{"+n+"}":""}function dn(e){return function(t){t.root||(t=t.return)&&e(t)}}var pn=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}},mn=function(e,t){return Zt(function(e,t){var n=-1,r=44;do{switch(Xt(r)){case 0:38===r&&12===Yt()&&(t[n]=1),e[n]+=rn(zt-1);break;case 2:e[n]+=en(r);break;case 4:if(44===r){e[++n]=58===Yt()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=It(r)}}while(r=$t());return e}(Jt(e),t))},hn=new WeakMap,vn=function(e){if("rule"===e.type&&e.parent&&e.length){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||hn.get(n))&&!r){hn.set(e,!0);for(var o=[],a=mn(t,o),i=n.props,l=0,u=0;l<a.length;l++)for(var s=0;s<i.length;s++,u++)e.props[u]=o[l]?a[l].replace(/&\f/g,i[s]):i[s]+" "+a[l]}}},gn=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},bn=[function(e,t,n,r){if(!e.return)switch(e.type){case kt:e.return=sn(e.value,e.length);break;case"@keyframes":return cn([qt(Rt(e.value,"@","@"+xt),e,"")],r);case"rule":if(e.length)return Ft(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return cn([qt(Rt(t,/:(read-\w+)/,":-moz-$1"),e,"")],r);case"::placeholder":return cn([qt(Rt(t,/:(plac\w+)/,":"+xt+"input-$1"),e,""),qt(Rt(t,/:(plac\w+)/,":-moz-$1"),e,""),qt(Rt(t,/:(plac\w+)/,St+"input-$1"),e,"")],r)}return""}))}}],yn=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){document.head.appendChild(e),e.setAttribute("data-s","")}))}var r=e.stylisPlugins||bn;var o,a,i={},l=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll("style[data-emotion]"),(function(e){var n=e.getAttribute("data-emotion").split(" ");if(n[0]===t){for(var r=1;r<n.length;r++)i[n[r]]=!0;l.push(e)}}));var u=[vn,gn];var s,c=[fn,dn((function(e){s.insert(e)}))],f=function(e){var t=jt(e);return function(n,r,o,a){for(var i="",l=0;l<t;l++)i+=e[l](n,r,o,a)||"";return i}}(u.concat(r,c));a=function(e,t,n,r){s=n,cn(on(e?e+"{"+t.styles+"}":t.styles),f),r&&(d.inserted[t.name]=!0)};var d={key:t,sheet:new Et({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend}),nonce:e.nonce,inserted:i,registered:{},insert:a};return d.sheet.hydrate(l),d},_n=n(3),wn=n.n(_n);function En(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var Sn=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0);o=o.next}while(void 0!==o)}};var On=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},xn={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Cn=/[A-Z]|^ms/g,kn=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Pn=function(e){return 45===e.charCodeAt(1)},In=function(e){return null!=e&&"boolean"!=typeof e},Dn=pn((function(e){return Pn(e)?e:e.replace(Cn,"-$&").toLowerCase()})),Rn=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(kn,(function(e,t,n){return Tn={name:t,styles:n,next:Tn},t}))}return 1===xn[e]||Pn(e)||"number"!=typeof t||0===t?t:t+"px"};function Nn(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Tn={name:n.name,styles:n.styles,next:Tn},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Tn={name:r.name,styles:r.styles,next:Tn},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Nn(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=a+"{"+t[i]+"}":In(i)&&(r+=Dn(a)+":"+Rn(a,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var l=Nn(e,t,i);switch(a){case"animation":case"animationName":r+=Dn(a)+":"+l+";";break;default:r+=a+"{"+l+"}"}}else for(var u=0;u<i.length;u++)In(i[u])&&(r+=Dn(a)+":"+Rn(a,i[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=Tn,a=n(e);return Tn=o,Nn(e,t,a)}break;case"string":}if(null==t)return n;var i=t[n];return void 0!==i?i:n}var Tn,Ln=/label:\s*([^\s;\n{]+)\s*;/g;var An=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Tn=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=Nn(n,t,a)):o+=a[0];for(var i=1;i<e.length;i++)o+=Nn(n,t,e[i]),r&&(o+=a[i]);Ln.lastIndex=0;for(var l,u="";null!==(l=Ln.exec(o));)u+="-"+l[1];return{name:On(o)+u,styles:o,next:Tn}},jn=Object.prototype.hasOwnProperty,Mn=Object(o.createContext)("undefined"!=typeof HTMLElement?yn({key:"css"}):null),Fn=Mn.Provider,Bn=function(e){return Object(o.forwardRef)((function(t,n){var r=Object(o.useContext)(Mn);return e(t,r,n)}))},Vn=Object(o.createContext)({});var Un="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",zn=function(e,t){var n={};for(var r in t)jn.call(t,r)&&(n[r]=t[r]);return n[Un]=e,n},Hn=Bn((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var a=e[Un],i=[r],l="";"string"==typeof e.className?l=En(t.registered,i,e.className):null!=e.className&&(l=e.className+" ");var u=An(i,void 0,"function"==typeof r||Array.isArray(r)?Object(o.useContext)(Vn):void 0);Sn(t,u,"string"==typeof a);l+=t.key+"-"+u.name;var s={};for(var c in e)jn.call(e,c)&&"css"!==c&&c!==Un&&(s[c]=e[c]);return s.ref=n,s.className=l,Object(o.createElement)(a,s)}));n(17);var Wn=function(e,t){var n=arguments;if(null==t||!jn.call(t,"css"))return o.createElement.apply(void 0,n);var r=n.length,a=new Array(r);a[0]=Hn,a[1]=zn(e,t);for(var i=2;i<r;i++)a[i]=n[i];return o.createElement.apply(null,a)};function Gn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return An(t)}var qn=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var a=t[r];if(null!=a){var i=void 0;switch(typeof a){case"boolean":break;case"object":if(Array.isArray(a))i=e(a);else for(var l in i="",a)a[l]&&l&&(i&&(i+=" "),i+=l);break;default:i=a}i&&(o&&(o+=" "),o+=i)}}return o};function $n(e,t,n){var r=[],o=En(e,r,n);return r.length<2?n:o+t(r)}var Yn=Bn((function(e,t){var n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=An(n,t.registered);return Sn(t,o,!1),t.key+"-"+o.name},r={css:n,cx:function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return $n(t.registered,n,qn(r))},theme:Object(o.useContext)(Vn)},a=e.children(r);return!0,a}));function Qn(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 Kn(e,t){if(null==e)return{};var n,r,o=Qn(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Xn=n(4),Jn=n.n(Xn);function Zn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function er(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function tr(e,t,n){return t&&er(e.prototype,t),n&&er(e,n),e}function nr(e,t){return(nr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function rr(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&&nr(e,t)}function or(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ar(e){return(ar="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ir(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lr(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?lr(Object(n),!0).forEach((function(t){ir(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sr(e){return(sr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function cr(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function fr(e){var t=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}}();return function(){var n,r=sr(e);if(t){var o=sr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return cr(this,n)}}var dr=function(){};function pr(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function mr(e,t,n){var r=[n];if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&r.push("".concat(pr(e,o)));return r.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var hr=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===ar(e)&&null!==e?[e]:[]};function vr(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function gr(e){return vr(e)?window.pageYOffset:e.scrollTop}function br(e,t){vr(e)?window.scrollTo(0,t):e.scrollTop=t}function yr(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function _r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:dr,o=gr(e),a=t-o,i=10,l=0;function u(){var t=yr(l+=i,o,a,n);br(e,t),l<n?window.requestAnimationFrame(u):r(e)}u()}function wr(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}function Er(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,a=e.shouldScroll,i=e.isFixedPosition,l=e.theme.spacing,u=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/,o=document.documentElement;if("fixed"===t.position)return o;for(var a=e;a=a.parentElement;)if(t=getComputedStyle(a),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return a;return o}(n),s={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return s;var c=u.getBoundingClientRect().height,f=n.getBoundingClientRect(),d=f.bottom,p=f.height,m=f.top,h=n.offsetParent.getBoundingClientRect().top,v=window.innerHeight,g=gr(u),b=parseInt(getComputedStyle(n).marginBottom,10),y=parseInt(getComputedStyle(n).marginTop,10),_=h-y,w=v-m,E=_+g,S=c-g-m,O=d-v+g+b,x=g+m-y;switch(o){case"auto":case"bottom":if(w>=p)return{placement:"bottom",maxHeight:t};if(S>=p&&!i)return a&&_r(u,O,160),{placement:"bottom",maxHeight:t};if(!i&&S>=r||i&&w>=r)return a&&_r(u,O,160),{placement:"bottom",maxHeight:i?w-b:S-b};if("auto"===o||i){var C=t,k=i?_:E;return k>=r&&(C=Math.min(k-b-l.controlHeight,t)),{placement:"top",maxHeight:C}}if("bottom"===o)return br(u,O),{placement:"bottom",maxHeight:t};break;case"top":if(_>=p)return{placement:"top",maxHeight:t};if(E>=p&&!i)return a&&_r(u,x,160),{placement:"top",maxHeight:t};if(!i&&E>=r||i&&_>=r){var P=t;return(!i&&E>=r||i&&_>=r)&&(P=i?_-y:E-y),a&&_r(u,x,160),{placement:"top",maxHeight:P}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return s}var Sr=function(e){return"auto"===e?"bottom":e},Or=Object(o.createContext)({getPortalPlacement:null}),xr=function(e){rr(n,e);var t=fr(n);function n(){var e;Zn(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).state={maxHeight:e.props.maxMenuHeight,placement:null},e.getPlacement=function(t){var n=e.props,r=n.minMenuHeight,o=n.maxMenuHeight,a=n.menuPlacement,i=n.menuPosition,l=n.menuShouldScrollIntoView,u=n.theme;if(t){var s="fixed"===i,c=Er({maxHeight:o,menuEl:t,minHeight:r,placement:a,shouldScroll:l&&!s,isFixedPosition:s,theme:u}),f=e.context.getPortalPlacement;f&&f(c),e.setState(c)}},e.getUpdatedProps=function(){var t=e.props.menuPlacement,n=e.state.placement||Sr(t);return ur(ur({},e.props),{},{placement:n,maxHeight:e.state.maxHeight})},e}return tr(n,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),n}(o.Component);xr.contextType=Or;var Cr=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px"),textAlign:"center"}},kr=Cr,Pr=Cr,Ir=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return Wn("div",wt({css:o("noOptionsMessage",e),className:r({"menu-notice":!0,"menu-notice--no-options":!0},n)},a),t)};Ir.defaultProps={children:"No options"};var Dr=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return Wn("div",wt({css:o("loadingMessage",e),className:r({"menu-notice":!0,"menu-notice--loading":!0},n)},a),t)};Dr.defaultProps={children:"Loading..."};var Rr,Nr=function(e){rr(n,e);var t=fr(n);function n(){var e;Zn(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).state={placement:null},e.getPortalPlacement=function(t){var n=t.placement;n!==Sr(e.props.menuPlacement)&&e.setState({placement:n})},e}return tr(n,[{key:"render",value:function(){var e=this.props,t=e.appendTo,n=e.children,r=e.className,o=e.controlElement,a=e.cx,l=e.innerProps,u=e.menuPlacement,s=e.menuPosition,c=e.getStyles,f="fixed"===s;if(!t&&!f||!o)return null;var d=this.state.placement||Sr(u),p=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(o),m=f?0:window.pageYOffset,h=p[d]+m,v=Wn("div",wt({css:c("menuPortal",{offset:h,position:s,rect:p}),className:a({"menu-portal":!0},r)},l),n);return Wn(Or.Provider,{value:{getPortalPlacement:this.getPortalPlacement}},t?Object(i.createPortal)(v,t):v)}}]),n}(o.Component);var Tr,Lr,Ar={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},jr=function(e){var t=e.size,n=Kn(e,["size"]);return Wn("svg",wt({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Ar},n))},Mr=function(e){return Wn(jr,wt({size:20},e),Wn("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Fr=function(e){return Wn(jr,wt({size:20},e),Wn("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Br=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorContainer",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?o.neutral80:o.neutral40}}},Vr=Br,Ur=Br,zr=function(){var e=Gn.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(Rr||(Tr=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Lr||(Lr=Tr.slice(0)),Rr=Object.freeze(Object.defineProperties(Tr,{raw:{value:Object.freeze(Lr)}})))),Hr=function(e){var t=e.delay,n=e.offset;return Wn("span",{css:Gn({animation:"".concat(zr," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":null,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Wr=function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps,a=e.isRtl;return Wn("div",wt({css:r("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)},o),Wn(Hr,{delay:0,offset:a}),Wn(Hr,{delay:160,offset:!0}),Wn(Hr,{delay:320,offset:!a}))};Wr.defaultProps={size:4};var Gr=function(e){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:e?0:1,outline:0,padding:0,color:"inherit"}},qr=function(e){var t=e.children,n=e.innerProps;return Wn("div",n,t)},$r=qr,Yr=qr;var Qr=function(e){var t=e.children,n=e.className,r=e.components,o=e.cx,a=e.data,i=e.getStyles,l=e.innerProps,u=e.isDisabled,s=e.removeProps,c=e.selectProps,f=r.Container,d=r.Label,p=r.Remove;return Wn(Yn,null,(function(r){var m=r.css,h=r.cx;return Wn(f,{data:a,innerProps:ur({className:h(m(i("multiValue",e)),o({"multi-value":!0,"multi-value--is-disabled":u},n))},l),selectProps:c},Wn(d,{data:a,innerProps:{className:h(m(i("multiValueLabel",e)),o({"multi-value__label":!0},n))},selectProps:c},t),Wn(p,{data:a,innerProps:ur({className:h(m(i("multiValueRemove",e)),o({"multi-value__remove":!0},n))},s),selectProps:c}))}))};Qr.defaultProps={cropWithEllipsis:!0};var Kr={ClearIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return Wn("div",wt({css:o("clearIndicator",e),className:r({indicator:!0,"clear-indicator":!0},n)},a),t||Wn(Mr,null))},Control:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.className,a=e.isDisabled,i=e.isFocused,l=e.innerRef,u=e.innerProps,s=e.menuIsOpen;return Wn("div",wt({ref:l,css:r("control",e),className:n({control:!0,"control--is-disabled":a,"control--is-focused":i,"control--menu-is-open":s},o)},u),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return Wn("div",wt({css:o("dropdownIndicator",e),className:r({indicator:!0,"dropdown-indicator":!0},n)},a),t||Wn(Fr,null))},DownChevron:Fr,CrossIcon:Mr,Group:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.Heading,i=e.headingProps,l=e.innerProps,u=e.label,s=e.theme,c=e.selectProps;return Wn("div",wt({css:o("group",e),className:r({group:!0},n)},l),Wn(a,wt({},i,{selectProps:c,theme:s,getStyles:o,cx:r}),u),Wn("div",null,t))},GroupHeading:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.theme;e.selectProps;var a=Kn(e,["className","cx","getStyles","theme","selectProps"]);return Wn("div",wt({css:r("groupHeading",ur({theme:o},a)),className:n({"group-heading":!0},t)},a))},IndicatorsContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.innerProps,a=e.getStyles;return Wn("div",wt({css:a("indicatorsContainer",e),className:r({indicators:!0},n)},o),t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps;return Wn("span",wt({},o,{css:r("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerRef,a=e.isHidden,i=e.isDisabled,l=e.theme;e.selectProps;var u=Kn(e,["className","cx","getStyles","innerRef","isHidden","isDisabled","theme","selectProps"]);return Wn("div",{css:r("input",ur({theme:l},u))},Wn(Jn.a,wt({className:n({input:!0},t),inputRef:o,inputStyle:Gr(a),disabled:i},u)))},LoadingIndicator:Wr,Menu:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerRef,i=e.innerProps;return Wn("div",wt({css:o("menu",e),className:r({menu:!0},n),ref:a},i),t)},MenuList:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps,i=e.innerRef,l=e.isMulti;return Wn("div",wt({css:o("menuList",e),className:r({"menu-list":!0,"menu-list--is-multi":l},n),ref:i},a),t)},MenuPortal:Nr,LoadingMessage:Dr,NoOptionsMessage:Ir,MultiValue:Qr,MultiValueContainer:$r,MultiValueLabel:Yr,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Wn("div",n,t||Wn(Mr,{size:14}))},Option:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.isDisabled,i=e.isFocused,l=e.isSelected,u=e.innerRef,s=e.innerProps;return Wn("div",wt({css:o("option",e),className:r({option:!0,"option--is-disabled":a,"option--is-focused":i,"option--is-selected":l},n),ref:u},s),t)},Placeholder:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps;return Wn("div",wt({css:o("placeholder",e),className:r({placeholder:!0},n)},a),t)},SelectContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.innerProps,i=e.isDisabled,l=e.isRtl;return Wn("div",wt({css:o("container",e),className:r({"--is-disabled":i,"--is-rtl":l},n)},a),t)},SingleValue:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,a=e.isDisabled,i=e.innerProps;return Wn("div",wt({css:o("singleValue",e),className:r({"single-value":!0,"single-value--is-disabled":a},n)},i),t)},ValueContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.innerProps,a=e.isMulti,i=e.getStyles,l=e.hasValue;return Wn("div",wt({css:i("valueContainer",e),className:r({"value-container":!0,"value-container--is-multi":a,"value-container--has-value":l},n)},o),t)}};function Xr(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 Jr(e){return function(e){if(Array.isArray(e))return Xr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Xr(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)?Xr(e,t):void 0}}(e)||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.")}()}for(var Zr=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],eo=new RegExp("["+Zr.map((function(e){return e.letters})).join("")+"]","g"),to={},no=0;no<Zr.length;no++)for(var ro=Zr[no],oo=0;oo<ro.letters.length;oo++)to[ro.letters[oo]]=ro.base;var ao=function(e){return e.replace(eo,(function(e){return to[e]}))},io=function(e){return e.replace(/^\s+|\s+$/g,"")},lo=function(e){return"".concat(e.label," ").concat(e.value)};var uo={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},so=function(e){return Wn("span",wt({css:uo},e))};function co(e){e.in,e.out,e.onExited,e.appear,e.enter,e.exit;var t=e.innerRef;e.emotion;var n=Kn(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]);return Wn("input",wt({ref:t},n,{css:Gn({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"},"","")}))}var fo=["boxSizing","height","overflow","paddingRight","position"],po={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function mo(e){e.preventDefault()}function ho(e){e.stopPropagation()}function vo(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function go(){return"ontouchstart"in window||navigator.maxTouchPoints}var bo=!(!window.document||!window.document.createElement),yo=0,_o={capture:!1,passive:!1};var wo=function(){return document.activeElement&&document.activeElement.blur()},Eo={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function So(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,a=e.onTopArrive,i=e.onTopLeave,l=Object(o.useRef)(!1),u=Object(o.useRef)(!1),s=Object(o.useRef)(0),c=Object(o.useRef)(null),f=Object(o.useCallback)((function(e,t){if(null!==c.current){var o=c.current,s=o.scrollTop,f=o.scrollHeight,d=o.clientHeight,p=c.current,m=t>0,h=f-d-s,v=!1;h>t&&l.current&&(r&&r(e),l.current=!1),m&&u.current&&(i&&i(e),u.current=!1),m&&t>h?(n&&!l.current&&n(e),p.scrollTop=f,v=!0,l.current=!0):!m&&-t>s&&(a&&!u.current&&a(e),p.scrollTop=0,v=!0,u.current=!0),v&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[]),d=Object(o.useCallback)((function(e){f(e,e.deltaY)}),[f]),p=Object(o.useCallback)((function(e){s.current=e.changedTouches[0].clientY}),[]),m=Object(o.useCallback)((function(e){var t=s.current-e.changedTouches[0].clientY;f(e,t)}),[f]),h=Object(o.useCallback)((function(e){e&&("function"==typeof e.addEventListener&&e.addEventListener("wheel",d,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchstart",p,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchmove",m,!1))}),[m,p,d]),v=Object(o.useCallback)((function(e){e&&("function"==typeof e.removeEventListener&&e.removeEventListener("wheel",d,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchstart",p,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchmove",m,!1))}),[m,p,d]);return Object(o.useEffect)((function(){if(t){var e=c.current;return h(e),function(){v(e)}}}),[t,h,v]),function(e){c.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),l=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,a=Object(o.useRef)({}),i=Object(o.useRef)(null),l=Object(o.useCallback)((function(e){if(bo){var t=document.body,n=t&&t.style;if(r&&fo.forEach((function(e){var t=n&&n[e];a.current[e]=t})),r&&yo<1){var o=parseInt(a.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,l=window.innerWidth-i+o||0;Object.keys(po).forEach((function(e){var t=po[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(l,"px"))}t&&go()&&(t.addEventListener("touchmove",mo,_o),e&&(e.addEventListener("touchstart",vo,_o),e.addEventListener("touchmove",ho,_o))),yo+=1}}),[]),u=Object(o.useCallback)((function(e){if(bo){var t=document.body,n=t&&t.style;yo=Math.max(yo-1,0),r&&yo<1&&fo.forEach((function(e){var t=a.current[e];n&&(n[e]=t)})),t&&go()&&(t.removeEventListener("touchmove",mo,_o),e&&(e.removeEventListener("touchstart",vo,_o),e.removeEventListener("touchmove",ho,_o)))}}),[]);return Object(o.useEffect)((function(){if(t){var e=i.current;return l(e),function(){u(e)}}}),[t,l,u]),function(e){i.current=e}}({isEnabled:n});return Wn(a.a.Fragment,null,n&&Wn("div",{onClick:wo,css:Eo}),t((function(e){i(e),l(e)})))}var Oo=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.isSearchable,r=t.isMulti,o=t.label,a=t.isDisabled,i=t.tabSelectsValue;switch(e){case"menu":return"Use Up and Down to choose options".concat(a?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(i?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(o||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value"}},xo=function(e,t){var n=t.value,r=t.isDisabled;if(n)switch(e){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(n,", deselected.");case"select-option":return"option ".concat(n,r?" is disabled. Select another option.":", selected.")}},Co={clearIndicator:Ur,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":null,pointerEvents:t?"none":null,position:"relative"}},control:function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,o=r.colors,a=r.borderRadius,i=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?o.neutral5:o.neutral0,borderColor:t?o.neutral10:n?o.primary:o.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(o.primary):null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?o.primary:o.neutral30}}},dropdownIndicator:Vr,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?o.neutral10:o.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},input:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,visibility:t?"hidden":"visible",color:o.neutral80}},loadingIndicator:function(e){var t=e.isFocused,n=e.size,r=e.theme,o=r.colors,a=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*a,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:Pr,menu:function(e){var t,n=e.placement,r=e.theme,o=r.borderRadius,a=r.spacing,i=r.colors;return or(t={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),or(t,"backgroundColor",i.neutral0),or(t,"borderRadius",o),or(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),or(t,"marginBottom",a.menuGutter),or(t,"marginTop",a.menuGutter),or(t,"position","absolute"),or(t,"width","100%"),or(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,r=t.colors,o=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:o?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,o=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused&&o.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}}},noOptionsMessage:kr,option:function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,o=e.theme,a=o.spacing,i=o.colors;return{label:"option",backgroundColor:r?i.primary:n?i.primary25:"transparent",color:t?i.neutral20:r?i.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:!t&&(r?i.primary:i.primary50)}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},singleValue:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{label:"singleValue",color:t?o.neutral40:o.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"calc(100% - ".concat(2*r.baseUnit,"px)"),overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},valueContainer:function(e){var t=e.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}};var ko,Po={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Io={backspaceRemovesValue:!0,blurInputOnSelect:wr(),captureMenuScroll:!wr(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){var n=ur({ignoreCase:!0,ignoreAccents:!0,stringify:lo,trim:!0,matchFrom:"any"},ko),r=n.ignoreCase,o=n.ignoreAccents,a=n.stringify,i=n.trim,l=n.matchFrom,u=i?io(t):t,s=i?io(a(e)):a(e);return r&&(u=u.toLowerCase(),s=s.toLowerCase()),o&&(u=ao(u),s=ao(s)),"start"===l?s.substr(0,u.length)===u:s.indexOf(u)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0};function Do(e,t,n,r){return{type:"option",data:t,isDisabled:jo(e,t,n),isSelected:Mo(e,t,n),label:Lo(e,t),value:Ao(e,t),index:r}}function Ro(e,t){return e.options.map((function(n,r){if(n.options){var o=n.options.map((function(n,r){return Do(e,n,t,r)})).filter((function(t){return To(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var a=Do(e,n,t,r);return To(e,a)?a:void 0})).filter((function(e){return!!e}))}function No(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,Jr(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function To(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,a=t.isSelected,i=t.label,l=t.value;return(!Bo(e)||!a)&&Fo(e,{label:i,value:l,data:o},r)}var Lo=function(e,t){return e.getOptionLabel(t)},Ao=function(e,t){return e.getOptionValue(t)};function jo(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Mo(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Ao(e,t);return n.some((function(t){return Ao(e,t)===r}))}function Fo(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Bo=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Vo=1,Uo=function(e){rr(n,e);var t=fr(n);function n(e){var r;return Zn(this,n),(r=t.call(this,e)).state={ariaLiveSelection:"",ariaLiveContext:"",focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.instancePrefix="",r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,o=n.onChange,a=n.name;o(e,ur(ur({},t),{},{name:a}))},r.setValue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"set-value",n=arguments.length>2?arguments[2]:void 0,o=r.props,a=o.closeMenuOnSelect,i=o.isMulti;r.onInputChange("",{action:"set-value"}),a&&(r.setState({inputIsHiddenAfterUpdate:!i}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,o=t.isMulti,a=r.state.selectValue;if(o)if(r.isOptionSelected(e,a)){var i=r.getOptionValue(e);r.setValue(a.filter((function(e){return r.getOptionValue(e)!==i})),"deselect-option",e),r.announceAriaLiveSelection({event:"deselect-option",context:{value:r.getOptionLabel(e)}})}else r.isOptionDisabled(e,a)?r.announceAriaLiveSelection({event:"select-option",context:{value:r.getOptionLabel(e),isDisabled:!0}}):(r.setValue([].concat(Jr(a),[e]),"select-option",e),r.announceAriaLiveSelection({event:"select-option",context:{value:r.getOptionLabel(e)}}));else r.isOptionDisabled(e,a)?r.announceAriaLiveSelection({event:"select-option",context:{value:r.getOptionLabel(e),isDisabled:!0}}):(r.setValue(e,"select-option"),r.announceAriaLiveSelection({event:"select-option",context:{value:r.getOptionLabel(e)}}));n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,o=r.getOptionValue(e),a=n.filter((function(e){return r.getOptionValue(e)!==o})),i=t?a:a.length>0?a[0]:null;r.onChange(i,{action:"remove-value",removedValue:e}),r.announceAriaLiveSelection({event:"remove-value",context:{value:e?r.getOptionLabel(e):""}}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(r.props.isMulti?[]:null,{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],o=t.slice(0,t.length-1),a=e?o:o.length>0?o[0]:null;r.announceAriaLiveSelection({event:"pop-value",context:{value:n?r.getOptionLabel(n):""}}),r.onChange(a,{action:"pop-value",removedValue:n})},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return mr.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return Lo(r.props,e)},r.getOptionValue=function(e){return Ao(r.props,e)},r.getStyles=function(e,t){var n=Co[e](t);n.boxSizing="border-box";var o=r.props.styles[e];return o?o(n,t):n},r.getElementId=function(e){return"".concat(r.instancePrefix,"-").concat(e)},r.getComponents=function(){return e=r.props,ur(ur({},Kr),e.components);var e},r.buildCategorizedOptions=function(){return Ro(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return No(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.announceAriaLiveSelection=function(e){var t=e.event,n=e.context;r.setState({ariaLiveSelection:xo(t,n)})},r.announceAriaLiveContext=function(e){var t=e.event,n=e.context;r.setState({ariaLiveContext:Oo(t,ur(ur({},n),{},{label:r.props["aria-label"]}))})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var t=r.props,n=t.isMulti,o=t.menuIsOpen;r.focusInput(),o?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu("first"),e.preventDefault(),e.stopPropagation()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.stopPropagation(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout((function(){return r.focusInput()})))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&vr(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var o=Math.abs(n.clientX-r.initialTouchX),a=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=o>5||a>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(t,{action:"input-change"}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){var t=r.props,n=t.isSearchable,o=t.isMulti;r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1}),r.announceAriaLiveContext({event:"input",context:{isSearchable:n,isMulti:o}}),r.setState({isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur"}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){r.blockOptionHover||r.state.focusedOption===e||r.setState({focusedOption:e})},r.shouldHideSelectedOptions=function(){return Bo(r.props)},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,o=t.backspaceRemovesValue,a=t.escapeClearsValue,i=t.inputValue,l=t.isClearable,u=t.isDisabled,s=t.menuIsOpen,c=t.onKeyDown,f=t.tabSelectsValue,d=t.openMenuOnFocus,p=r.state,m=p.focusedOption,h=p.focusedValue,v=p.selectValue;if(!(u||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||i)return;r.focusValue("previous");break;case"ArrowRight":if(!n||i)return;r.focusValue("next");break;case"Delete":case"Backspace":if(i)return;if(h)r.removeValue(h);else{if(!o)return;n?r.popValue():l&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!s||!f||!m||d&&r.isOptionSelected(m,v))return;r.selectOption(m);break;case"Enter":if(229===e.keyCode)break;if(s){if(!m)return;if(r.isComposing)return;r.selectOption(m);break}return;case"Escape":s?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close"}),r.onMenuClose()):l&&a&&r.clearValue();break;case" ":if(i)return;if(!s){r.openMenu("first");break}if(!m)return;r.selectOption(m);break;case"ArrowUp":s?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":s?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!s)return;r.focusOption("pageup");break;case"PageDown":if(!s)return;r.focusOption("pagedown");break;case"Home":if(!s)return;r.focusOption("first");break;case"End":if(!s)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.instancePrefix="react-select-"+(r.props.instanceId||++Vo),r.state.selectValue=hr(e.value),r}return tr(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"componentDidUpdate",value:function(e){var t,n,r,o,a,i=this.props,l=i.isDisabled,u=i.menuIsOpen,s=this.state.isFocused;(s&&!l&&e.isDisabled||s&&u&&!e.menuIsOpen)&&this.focusInput(),s&&l&&!e.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,n=this.focusedOptionRef,r=t.getBoundingClientRect(),o=n.getBoundingClientRect(),a=n.offsetHeight/3,o.bottom+a>r.bottom?br(t,Math.min(n.offsetTop+n.clientHeight-t.offsetHeight+a,t.scrollHeight)):o.top-a<r.top&&br(t,Math.max(n.offsetTop-a,0)),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){var e=this.props,t=e.isSearchable,n=e.isMulti;this.announceAriaLiveContext({event:"input",context:{isSearchable:t,isMulti:n}}),this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,a=this.buildFocusableOptions(),i=this.props,l=i.isMulti,u=i.tabSelectsValue,s="first"===e?0:a.length-1;if(!l){var c=a.indexOf(r[0]);c>-1&&(s=c)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:a[s]},(function(){t.onMenuOpen(),t.announceAriaLiveContext({event:"menu",context:{tabSelectsValue:u}})}))}},{key:"focusValue",value:function(e){var t=this.props,n=t.isMulti,r=t.isSearchable,o=this.state,a=o.selectValue,i=o.focusedValue;if(n){this.setState({focusedOption:null});var l=a.indexOf(i);i||(l=-1,this.announceAriaLiveContext({event:"value"}));var u=a.length-1,s=-1;if(a.length){switch(e){case"previous":s=0===l?0:-1===l?u:l-1;break;case"next":l>-1&&l<u&&(s=l+1)}-1===s&&this.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:n}}),this.setState({inputIsHidden:-1!==s,focusedValue:a[s]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props,n=t.pageSize,r=t.tabSelectsValue,o=this.state,a=o.focusedOption,i=o.selectValue,l=this.getFocusableOptions();if(l.length){var u=0,s=l.indexOf(a);a||(s=-1,this.announceAriaLiveContext({event:"menu",context:{tabSelectsValue:r}})),"up"===e?u=s>0?s-1:l.length-1:"down"===e?u=(s+1)%l.length:"pageup"===e?(u=s-n)<0&&(u=0):"pagedown"===e?(u=s+n)>l.length-1&&(u=l.length-1):"last"===e&&(u=l.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:l[u],focusedValue:null}),this.announceAriaLiveContext({event:"menu",context:{isDisabled:this.isOptionDisabled(l[u],i),tabSelectsValue:r}})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Po):ur(ur({},Po),this.props.theme):Po}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getValue,o=this.setValue,a=this.selectOption,i=this.props,l=i.isMulti,u=i.isRtl,s=i.options;return{cx:t,clearValue:e,getStyles:n,getValue:r,hasValue:this.hasValue(),isMulti:l,isRtl:u,options:s,selectOption:a,setValue:o,selectProps:i,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"countOptions",value:function(){return this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return jo(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Mo(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Fo(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"constructAriaLiveMessage",value:function(){var e=this.state,t=e.ariaLiveContext,n=e.selectValue,r=e.focusedValue,o=e.focusedOption,a=this.props,i=a.options,l=a.menuIsOpen,u=a.inputValue,s=a.screenReaderStatus,c=r?function(e){var t=e.focusedValue,n=e.getOptionLabel,r=e.selectValue;return"value ".concat(n(t)," focused, ").concat(r.indexOf(t)+1," of ").concat(r.length,".")}({focusedValue:r,getOptionLabel:this.getOptionLabel,selectValue:n}):"",f=o&&l?function(e){var t=e.focusedOption,n=e.getOptionLabel,r=e.options;return"option ".concat(n(t)," focused").concat(t.isDisabled?" disabled":"",", ").concat(r.indexOf(t)+1," of ").concat(r.length,".")}({focusedOption:o,getOptionLabel:this.getOptionLabel,options:i}):"",d=function(e){var t=e.inputValue,n=e.screenReaderMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}({inputValue:u,screenReaderMessage:s({count:this.countOptions()})});return"".concat(c," ").concat(f," ").concat(d," ").concat(t)}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,i=e.tabIndex,l=e.form,u=this.getComponents().Input,s=this.state.inputIsHidden,c=r||this.getElementId("input"),f={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};if(!n)return a.a.createElement(co,wt({id:c,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:dr,onFocus:this.onInputFocus,readOnly:!0,disabled:t,tabIndex:i,form:l,value:""},f));var d=this.commonProps,p=d.cx,m=d.theme,h=d.selectProps;return a.a.createElement(u,wt({autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",cx:p,getStyles:this.getStyles,id:c,innerRef:this.getInputRef,isDisabled:t,isHidden:s,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,selectProps:h,spellCheck:"false",tabIndex:i,form:l,theme:m,type:"text",value:o},f))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,i=t.MultiValueRemove,l=t.SingleValue,u=t.Placeholder,s=this.commonProps,c=this.props,f=c.controlShouldRenderValue,d=c.isDisabled,p=c.isMulti,m=c.inputValue,h=c.placeholder,v=this.state,g=v.selectValue,b=v.focusedValue,y=v.isFocused;if(!this.hasValue()||!f)return m?null:a.a.createElement(u,wt({},s,{key:"placeholder",isDisabled:d,isFocused:y}),h);if(p)return g.map((function(t,l){var u=t===b;return a.a.createElement(n,wt({},s,{components:{Container:r,Label:o,Remove:i},isFocused:u,isDisabled:d,key:"".concat(e.getOptionValue(t)).concat(l),index:l,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:t}),e.formatOptionLabel(t,"value"))}));if(m)return null;var _=g[0];return a.a.createElement(l,wt({},s,{data:_,isDisabled:d}),this.formatOptionLabel(_,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var l={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return a.a.createElement(e,wt({},t,{innerProps:l,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!e||!o)return null;return a.a.createElement(e,wt({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:i}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,i=this.state.isFocused;return a.a.createElement(n,wt({},r,{isDisabled:o,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return a.a.createElement(e,wt({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,o=t.Menu,i=t.MenuList,l=t.MenuPortal,u=t.LoadingMessage,s=t.NoOptionsMessage,c=t.Option,f=this.commonProps,d=this.state.focusedOption,p=this.props,m=p.captureMenuScroll,h=p.inputValue,v=p.isLoading,g=p.loadingMessage,b=p.minMenuHeight,y=p.maxMenuHeight,_=p.menuIsOpen,w=p.menuPlacement,E=p.menuPosition,S=p.menuPortalTarget,O=p.menuShouldBlockScroll,x=p.menuShouldScrollIntoView,C=p.noOptionsMessage,k=p.onMenuScrollToTop,P=p.onMenuScrollToBottom;if(!_)return null;var I,D=function(t,n){var r=t.type,o=t.data,i=t.isDisabled,l=t.isSelected,u=t.label,s=t.value,p=d===o,m=i?void 0:function(){return e.onOptionHover(o)},h=i?void 0:function(){return e.selectOption(o)},v="".concat(e.getElementId("option"),"-").concat(n),g={id:v,onClick:h,onMouseMove:m,onMouseOver:m,tabIndex:-1};return a.a.createElement(c,wt({},f,{innerProps:g,data:o,isDisabled:i,isSelected:l,key:v,label:u,type:r,value:s,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())I=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,i=t.options,l=t.index,u="".concat(e.getElementId("group"),"-").concat(l),s="".concat(u,"-heading");return a.a.createElement(n,wt({},f,{key:u,data:o,options:i,Heading:r,headingProps:{id:s,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return D(e,"".concat(l,"-").concat(e.index))})))}if("option"===t.type)return D(t,"".concat(t.index))}));else if(v){var R=g({inputValue:h});if(null===R)return null;I=a.a.createElement(u,f,R)}else{var N=C({inputValue:h});if(null===N)return null;I=a.a.createElement(s,f,N)}var T={minMenuHeight:b,maxMenuHeight:y,menuPlacement:w,menuPosition:E,menuShouldScrollIntoView:x},L=a.a.createElement(xr,wt({},f,T),(function(t){var n=t.ref,r=t.placerProps,l=r.placement,u=r.maxHeight;return a.a.createElement(o,wt({},f,T,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:v,placement:l}),a.a.createElement(So,{captureEnabled:m,onTopArrive:k,onBottomArrive:P,lockEnabled:O},(function(t){return a.a.createElement(i,wt({},f,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:v,maxHeight:u}),I)})))}));return S||"fixed"===E?a.a.createElement(l,wt({},f,{appendTo:S,controlElement:this.controlRef,menuPlacement:w,menuPosition:E}),L):L}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,i=t.name,l=this.state.selectValue;if(i&&!r){if(o){if(n){var u=l.map((function(t){return e.getOptionValue(t)})).join(n);return a.a.createElement("input",{name:i,type:"hidden",value:u})}var s=l.length>0?l.map((function(t,n){return a.a.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})})):a.a.createElement("input",{name:i,type:"hidden"});return a.a.createElement("div",null,s)}var c=l[0]?this.getOptionValue(l[0]):"";return a.a.createElement("input",{name:i,type:"hidden",value:c})}}},{key:"renderLiveRegion",value:function(){return this.state.isFocused?a.a.createElement(so,{"aria-live":"polite"},a.a.createElement("span",{id:"aria-selection-event"}," ",this.state.ariaLiveSelection),a.a.createElement("span",{id:"aria-context"}," ",this.constructAriaLiveMessage())):null}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,i=this.props,l=i.className,u=i.id,s=i.isDisabled,c=i.menuIsOpen,f=this.state.isFocused,d=this.commonProps=this.getCommonProps();return a.a.createElement(r,wt({},d,{className:l,innerProps:{id:u,onKeyDown:this.onKeyDown},isDisabled:s,isFocused:f}),this.renderLiveRegion(),a.a.createElement(t,wt({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:s,isFocused:f,menuIsOpen:c}),a.a.createElement(o,wt({},d,{isDisabled:s}),this.renderPlaceholderOrValue(),this.renderInput()),a.a.createElement(n,wt({},d,{isDisabled:s}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,a=e.options,i=e.value,l=e.menuIsOpen,u=e.inputValue,s={};if(n&&(i!==n.value||a!==n.options||l!==n.menuIsOpen||u!==n.inputValue)){var c=hr(i),f=l?function(e,t){return No(Ro(e,t))}(e,c):[],d=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,c):null;s={selectValue:c,focusedOption:function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,f),focusedValue:d,clearFocusValueOnUpdate:!1}}var p=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{};return ur(ur(ur({},s),p),{},{prevProps:e})}}]),n}(o.Component);Uo.defaultProps=Io;var zo={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null};function Ho(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var Wo,Go,qo,$o=function(e,t){var n;void 0===t&&(t=Ho);var r,o=[],a=!1;return function(){for(var i=[],l=0;l<arguments.length;l++)i[l]=arguments[l];return a&&n===this&&t(i,o)||(r=e.apply(this,i),a=!0,n=this,o=i),r}},Yo=(n(44),n(49),n(51),n(54),n(55),o.Component,Wo=Uo,qo=Go=function(e){rr(n,e);var t=fr(n);function n(){var e;Zn(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(e=t.call.apply(t,[this].concat(o))).select=void 0,e.state={inputValue:void 0!==e.props.inputValue?e.props.inputValue:e.props.defaultInputValue,menuIsOpen:void 0!==e.props.menuIsOpen?e.props.menuIsOpen:e.props.defaultMenuIsOpen,value:void 0!==e.props.value?e.props.value:e.props.defaultValue},e.onChange=function(t,n){e.callProp("onChange",t,n),e.setState({value:t})},e.onInputChange=function(t,n){var r=e.callProp("onInputChange",t,n);e.setState({inputValue:void 0!==r?r:t})},e.onMenuOpen=function(){e.callProp("onMenuOpen"),e.setState({menuIsOpen:!0})},e.onMenuClose=function(){e.callProp("onMenuClose"),e.setState({menuIsOpen:!1})},e}return tr(n,[{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"getProp",value:function(e){return void 0!==this.props[e]?this.props[e]:this.state[e]}},{key:"callProp",value:function(e){if("function"==typeof this.props[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=this.props)[e].apply(t,r)}}},{key:"render",value:function(){var e=this,t=this.props;t.defaultInputValue,t.defaultMenuIsOpen,t.defaultValue;var n=Kn(t,["defaultInputValue","defaultMenuIsOpen","defaultValue"]);return a.a.createElement(Wo,wt({},n,{ref:function(t){e.select=t},inputValue:this.getProp("inputValue"),menuIsOpen:this.getProp("menuIsOpen"),onChange:this.onChange,onInputChange:this.onInputChange,onMenuClose:this.onMenuClose,onMenuOpen:this.onMenuOpen,value:this.getProp("value")}))}}]),n}(o.Component),Go.defaultProps=zo,qo);function Qo(e){return(Qo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ko(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Xo(e,t,n){return(Xo="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=na(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function Jo(e,t){return(Jo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Zo(e){var t=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}}();return function(){var n,r=na(e);if(t){var o=na(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ea(this,n)}}function ea(e,t){return!t||"object"!==Qo(t)&&"function"!=typeof t?ta(e):t}function ta(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function na(e){return(na=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ra=function(e){!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&&Jo(e,t)}(i,e);var t,n,r,o=Zo(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e))._field_items=new p(t.state.handlers.api_loader,e.field_data,e.form_values,e.section_fields,t.onUpdateLoadingStatus.bind(ta(t)),t.onUpdateItems.bind(ta(t))),e.onRefreshForm&&e.onRefreshForm(t.refreshItems.bind(ta(t),!1)),t.onChangeState("items",e.field_data.items||[]),t}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=e.form_states,o=e.state_name,i=e.show_if_regexes,l=this.state.settings;if(!r[o]||!this.isFieldVisible(i,n))return null;var u=this.parseItems(r[o].items);return a.a.createElement(a.a.Fragment,null,a.a.createElement("li",{className:"fcfOptions__row",ref:r[o].ref_wrapper},a.a.createElement(R,{unique_id:r[o].unique_id,field_data:t,settings:l}),a.a.createElement(V,{validation_error:r[o].validation_error}),a.a.createElement(Yo,{id:r[o].unique_id,name:t.name,className:"fcfOptions__select",classNamePrefix:"reactSelect",value:u.filter((function(e){return e.value===n[t.name]})),options:r[o].is_loading?[]:u,placeholder:l.i18n.select_placeholder,noOptionsMessage:function(){return r[o].is_loading?l.i18n.select_loading:l.i18n.select_empty},isDisabled:t.readonly,onChange:t.readonly?null:this.onChangeValue.bind(this)})))}},{key:"componentDidMount",value:function(){Xo(na(i.prototype),"componentDidMount",this).call(this);var e=this.props.field_data;if(this.refreshItems(!1),e.endpoint_autorefresh){var t=this.state.settings;window.addEventListener(t.events.refresh_field,this.refreshItems.bind(this,!0))}}},{key:"componentWillUnmount",value:function(){Xo(na(i.prototype),"componentWillUnmount",this).call(this),this.onValidationError(null)}},{key:"onUpdateLoadingStatus",value:function(e){this.onChangeState("is_loading",e)}},{key:"onUpdateItems",value:function(e){this._isMounted&&(this.onChangeState("items",e),this.resetDefaultValue(),this.forceUpdate())}},{key:"getValue",value:function(e){return e?e.value:""}},{key:"refreshItems",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.props,n=t.field_data,r=t.form_states,o=t.state_name,a=t.state_field_name,i=this.state.form_settings;n.endpoint_route&&this._field_items.refreshItems(r[o].unique_id,a,i.form_index,e)}},{key:"resetDefaultValue",value:function(){this.isAvailableValue()||this.onChangeValue(null)}},{key:"isAvailableValue",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=e.form_states,o=e.state_name;if(""===n[t.name])return!0;for(var a=this.parseItems(r[o].items),i=a.length,l=0;l<i;l++)if(a[l].value===n[t.name])return!0;return!1}},{key:"parseItems",value:function(e){var t=[];for(var n in e)t.push({value:n,label:e[n]});return t}}])&&Ko(t.prototype,n),r&&Ko(t,r),i}(I);function oa(e){return(oa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function aa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ia(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function la(e,t){return(la=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ua(e){var t=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}}();return function(){var n,r=ca(e);if(t){var o=ca(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return sa(this,n)}}function sa(e,t){return!t||"object"!==oa(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ca(e){return(ca=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var fa=function(e){!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&&la(e,t)}(i,e);var t,n,r,o=ua(i);function i(){return aa(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=e.form_states,o=e.state_name,i=e.show_if_regexes,l=this.state.settings;if(!r[o]||!this.isFieldVisible(i,n))return null;var u=this.parseItems(r[o].items);return a.a.createElement(a.a.Fragment,null,a.a.createElement("li",{className:"fcfOptions__row",ref:r[o].ref_wrapper},a.a.createElement(R,{unique_id:r[o].unique_id,field_data:t,settings:l}),a.a.createElement(V,{validation_error:r[o].validation_error}),a.a.createElement(Yo,{id:r[o].unique_id,name:t.name,className:"fcfOptions__select",classNamePrefix:"reactSelect",value:u.filter((function(e){var r=e.value;return n[t.name].indexOf(r)>-1})),options:r[o].is_loading?[]:u,placeholder:l.i18n.select_placeholder,noOptionsMessage:function(){return r[o].is_loading?l.i18n.select_loading:l.i18n.select_empty},isMulti:!0,isDisabled:t.readonly,onChange:t.readonly?null:this.onChangeValue.bind(this)})))}},{key:"getValue",value:function(e){return null===e?[]:Array.from(e,(function(e){return e.value}))}},{key:"isAvailableValue",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=e.form_states,o=e.state_name;if(n[t.name]===[])return!0;for(var a=this.parseItems(r[o].items).map((function(e){return e.value})),i=n[t.name].length,l=0;l<i;l++)if(-1===a.indexOf(n[t.name][l]))return!1;return!0}}])&&ia(t.prototype,n),r&&ia(t,r),i}(ra);function da(e){return(da="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ma(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ha(e,t){return(ha=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function va(e){var t=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}}();return function(){var n,r=ba(e);if(t){var o=ba(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ga(this,n)}}function ga(e,t){return!t||"object"!==da(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ba(e){return(ba=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ya=function(e){!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&&ha(e,t)}(i,e);var t,n,r,o=va(i);function i(){return pa(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=e.form_states,o=e.state_name,i=e.show_if_regexes,l=this.state.settings;return r[o]&&this.isFieldVisible(i,n)?a.a.createElement(a.a.Fragment,null,a.a.createElement("li",{className:"fcfOptions__row",ref:r[o].ref_wrapper},a.a.createElement(R,{unique_id:r[o].unique_id,field_data:t,settings:l}),a.a.createElement(V,{validation_error:r[o].validation_error}),a.a.createElement("textarea",{id:r[o].unique_id,ref:r[o].ref_input,name:t.name,className:"fcfOptions__textarea",rows:"2",value:this.getFieldValue(),onChange:t.readonly?null:this.onChangeValue.bind(this),disabled:t.readonly}))):null}},{key:"getValue",value:function(){var e=this.props;return e.form_states[e.state_name].ref_input.current.value}}])&&ma(t.prototype,n),r&&ma(t,r),i}(I);function _a(e){return(_a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function wa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ea(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Sa(e,t){return(Sa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Oa(e){var t=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}}();return function(){var n,r=Ca(e);if(t){var o=Ca(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return xa(this,n)}}function xa(e,t){return!t||"object"!==_a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ca(e){return(Ca=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ka=function(e){!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&&Sa(e,t)}(i,e);var t,n,r,o=Oa(i);function i(){return wa(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.field_data,n=e.form_values,r=e.form_states,o=e.state_name,i=e.show_if_regexes,l=this.state.settings;return r[o]&&this.isFieldVisible(i,n)?a.a.createElement(a.a.Fragment,null,a.a.createElement("li",{className:"fcfOptions__row",ref:r[o].ref_wrapper},a.a.createElement(R,{unique_id:r[o].unique_id,field_data:t,settings:l}),a.a.createElement(V,{validation_error:r[o].validation_error}),a.a.createElement("input",{type:"text",id:r[o].unique_id,ref:r[o].ref_input,name:t.name,className:"fcfOptions__input",value:this.getFieldValue(),onChange:t.readonly?null:this.onChangeValue.bind(this),disabled:t.readonly}))):null}},{key:"getValue",value:function(){var e=this.props;return e.form_states[e.state_name].ref_input.current.value}}])&&Ea(t.prototype,n),r&&Ea(t,r),i}(I);function Pa(e){return(Pa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ia(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Da(e,t){return(Da=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ra(e){var t=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}}();return function(){var n,r=Ta(e);if(t){var o=Ta(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Na(this,n)}}function Na(e,t){return!t||"object"!==Pa(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ta(e){return(Ta=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var La=function(e){!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&&Da(e,t)}(i,e);var t,n,r,o=Ra(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),t=o.call(this,e);var n=e.settings,r=e.form_title,a=e.form_settings,l=e.validation_type;return t.state={field_types:t.updateFieldTypes(n.form_fields.option_fields),form_values:{},form_states:{},settings:n,form_title:r,form_settings:a,status:{loading_type:null,field_name_updated:!1},validation_type:l},t._form_validation=new E(n.events.validate_field,l,1),t}return t=i,(n=[{key:"render",value:function(){var e=this.state,t=e.form_values,n=e.form_states,r=e.settings,o=e.form_settings,i=e.form_title,l=e.status,u=e.validation_type;return a.a.createElement("div",{className:"fcfWidget"},a.a.createElement("div",{className:"fcfWidget__inner"},a.a.createElement("div",{className:"fcfWidget__header"},a.a.createElement("div",{className:"fcfWidget__headerTitle"},i)),a.a.createElement("div",{className:"fcfWidget__content"},a.a.createElement("div",{className:"fcfOptions"},a.a.createElement("ul",{className:"fcfOptions__rows"},a.a.createElement(dt,{field_data:{name:"field_type",label:r.i18n.field_type,items:this.state.field_types,validation_rules:{"^.{1,}$":r.i18n.validation_required}},form_values:t,form_states:n,state_name:"field_type",state_field_name:null,settings:r,form_settings:o,validation_types:[u],onChangeValue:this.onChangeValue.bind(this),onChangeState:this.onChangeState.bind(this),onValidationInit:this.onValidationInit.bind(this)}),this.isFieldTypeAvailable()?a.a.createElement(a.a.Fragment,null,a.a.createElement(ya,{field_data:{name:"field_label",label:r.i18n.field_label,validation_rules:{"^.{1,}$":r.i18n.validation_required}},form_values:t,form_states:n,state_name:"field_label",state_field_name:null,settings:r,form_settings:o,validation_types:[u],onChangeValue:this.onChangeValue.bind(this),onChangeState:this.onChangeState.bind(this),onValidationInit:this.onValidationInit.bind(this)}),a.a.createElement(ka,{field_data:{name:"field_name",label:r.i18n.field_name,validation_rules:{"^.{1,}$":r.i18n.validation_required,"^[a-z0-9_]{1,}$":r.i18n.validation_slug}},form_values:t,form_states:n,state_name:"field_name",state_field_name:null,settings:r,form_settings:o,validation_types:[u,"field_name"],onChangeValue:this.onChangeValue.bind(this),onChangeState:this.onChangeState.bind(this),onValidationInit:this.onValidationInit.bind(this)})):a.a.createElement(Le,{field_data:{name:"field_type_adv",label:r.i18n.alert_field_unavailable},form_values:t,form_states:n,state_name:"field_type_adv",state_field_name:null,settings:r,form_settings:o,validation_types:[u],onChangeValue:function(){},onChangeState:function(){},onValidationInit:function(){}}),a.a.createElement("li",{className:"fcfOptions__row fcfOptions__row--padding"},a.a.createElement("button",{type:"button",className:"fcfButton fcfButton--wide fcfButton--bg fcfButton--blue",onClick:this.onSubmit.bind(this),disabled:!this.isFieldTypeAvailable()||"add_field"===l.loading_type},r.i18n.button_add_field)))))))}},{key:"isFieldTypeAvailable",value:function(){var e=this.state,t=e.settings,n=e.form_values,r=t.form_fields.option_fields;return!n.field_type||r[n.field_type].is_available}},{key:"onValidationInit",value:function(e,t,n){return this._form_validation.onValidationInit(e,t,n)}},{key:"onChangeValue",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.state,o=r.form_values,a=r.status;o[e]=t,this.setState({form_values:o}),null!==t&&("field_label"!==e||a.field_name_updated?"field_name"===e&&(this.updateFieldName(null,t),n||(a.field_name_updated=""!==t,this.setState({status:a}))):this.updateFieldName(t))}},{key:"onChangeState",value:function(e,t,n){var r=this.state.form_states;void 0===r[e]&&(r[e]={}),r[e][t]=n,this.setState({form_states:r})}},{key:"onSubmit",value:function(e){this.updateLoadingStatus("add_field"),this._form_validation.onSubmit(e).then(this.addNewField.bind(this),this.updateLoadingStatus.bind(this))}},{key:"updateLoadingStatus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.state.status;t&&(t.loading_type=e,this.setState({status:t}))}},{key:"updateFieldTypes",value:function(e){var t=[];for(var n in e)e[n].is_hidden||t.push(e[n]);return t}},{key:"updateFieldName",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.state.form_values;null===t&&(t=(new h).generateSlug(e)),t=this.generateUniqueFieldName(t),n.field_name!==t&&this.onChangeValue("field_name",t,!0)}},{key:"generateUniqueFieldName",value:function(e){for(var t=this.state.form_settings,n="".concat(t.form_index,"_").concat(e),r=0,o=t.option_values.length,a=0;a<o;a++)t.option_values[a].name===n&&r++;return 0===r?e:"".concat(e).concat(r+1)}},{key:"addNewField",value:function(){var e=this.props.onFieldAdd,t=this.state,n=t.form_values,r=t.form_settings;e({type:n.field_type,name:"".concat(r.form_index,"_").concat(n.field_name),label:n.field_label,custom_field:"1"}),this.setState({form_values:{},status:{}})}}])&&Ia(t.prototype,n),r&&Ia(t,r),i}(a.a.Component);function Aa(e){return(Aa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ja(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ma(e,t){return(Ma=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Fa(e){var t=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}}();return function(){var n,r=Ua(e);if(t){var o=Ua(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ba(this,n)}}function Ba(e,t){return!t||"object"!==Aa(t)&&"function"!=typeof t?Va(e):t}function Va(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ua(e){return(Ua=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var za=function(e){!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&&Ma(e,t)}(l,e);var t,n,o,i=Fa(l);function l(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),t=i.call(this,e);var n=e.settings,r=e.form_title,o=e.form_settings,a=e.validation_type;return t.state={settings:n,form_settings:o,form_title:r,option_fields:o.option_fields,option_values:o.option_values,option_states:[],status:{loading_type:null,loading_message:null},validation_type:a},t._form_validation=new E(n.events.validate_field,a,1),t._form_submit=new y(n.handlers.api_loader,o.api_route,t._form_validation,t.updateLoadingStats.bind(Va(t))),t}return t=l,(n=[{key:"render",value:function(){var e=this,t=this.state,n=t.settings,o=t.form_settings,i=t.option_fields,l=t.option_values,u=t.option_states,s=t.form_title,c=t.status,f=t.validation_type;return a.a.createElement("div",{className:"fcfWidget"},a.a.createElement("div",{className:"fcfWidget__inner"},a.a.createElement("div",{className:"fcfWidget__header"},a.a.createElement("div",{className:"fcfWidget__headerTitle"},s)),a.a.createElement("div",{className:"fcfWidget__content"},a.a.createElement("div",{className:"fcfOptions"},a.a.createElement("ul",{className:"fcfOptions__rows"},i.map((function(t,i){var s=r[t.type];return a.a.createElement(s,{key:i,field_data:t,form_values:l,form_states:u,state_name:t.name,state_field_name:null,show_if_regexes:t.show_if_regexes,settings:n,form_settings:o,validation_types:[f],onChangeValue:e.onChangeValue.bind(e),onChangeState:e.onChangeState.bind(e),onValidationInit:e.onValidationInit.bind(e)})}))))),a.a.createElement("div",{className:"fcfWidget__footer"},a.a.createElement("ul",{className:"fcfWidget__buttons"},a.a.createElement("li",{className:"fcfWidget__button"},a.a.createElement(D,{button_classes:"fcfButton fcfButton--wide fcfButton--bg fcfButton--blue",button_alignment:"left",button_label:n.i18n.button_save,loading_type:"save_bottom",loading_status:c.loading_type,loading_message:c.loading_message,settings:n,onSubmit:this.onSubmit.bind(this,"save_bottom",{form_fields:l})}))))))}},{key:"onValidationInit",value:function(e,t,n){return this._form_validation.onValidationInit(e,t,n)}},{key:"onChangeValue",value:function(e,t){var n=this.state.option_values;n[e]=t,this.setState({option_values:n})}},{key:"onChangeState",value:function(e,t,n){var r=this.state.option_states;void 0===r[e]&&(r[e]={}),r[e][t]=n,this.setState({option_states:r})}},{key:"onSubmit",value:function(e,t,n){return n.preventDefault(),this._form_submit.onSubmit(e,t)}},{key:"updateLoadingStats",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.state.status;n.loading_type=e,n.loading_message=t,this.setState({status:n})}}])&&ja(t.prototype,n),o&&ja(t,o),l}(a.a.Component);function Ha(e){return(Ha="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Wa(){return(Wa=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 Ga(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function qa(e,t){return(qa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function $a(e){var t=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}}();return function(){var n,r=Qa(e);if(t){var o=Qa(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ya(this,n)}}function Ya(e,t){return!t||"object"!==Ha(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Qa(e){return(Qa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ka=function(e){!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&&qa(e,t)}(l,e);var t,n,o,i=$a(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=i.call(this,e)).state={settings:e.settings,form_settings:e.form_settings,events:{onChangeValue:e.onChangeValue,onChangeState:e.onChangeState,onFieldRemove:e.onFieldRemove,onValidationInit:e.onValidationInit},refs:{wrapper:a.a.createRef()},refresh_functions:[],validation_types:t.props.validation_types},t.props.onChangeValue("_current_tab",0),t.props.onChangeValue("_is_open",!1),t}return t=l,(n=[{key:"shouldComponentUpdate",value:function(e){return e.last_row_index===e.row_index||null===e.last_row_index}},{key:"render",value:function(){var e=this,t=this.props,n=t.provided,o=t.field_data,i=t.form_states,l=t.field_type,u=t.section_fields,s=this.state,c=s.settings,f=s.form_settings,d=s.events,p=s.refs,m=s.validation_types,h=this.getAvailableSettingsTabs(l.options),v=(o.label||"").replace(/(<([^>]+)>)/gi,"");return a.a.createElement("li",Wa({className:"fcfFields__item ".concat("0"===o.visible?"fcfFields__item--disabled":""),ref:n.innerRef},n.draggableProps),a.a.createElement("div",{className:"fcfFields__itemInner",ref:p.wrapper},a.a.createElement("div",Wa({className:"fcfFields__itemHeader"},n.dragHandleProps,{onClick:this.toggleSettings.bind(this)}),a.a.createElement("div",{className:"fcfFields__itemHeaderOuter"},a.a.createElement("div",{className:"fcfFields__itemHeaderInner"},a.a.createElement("div",{className:"fcfFields__itemHeaderTitle"},v||o.name,"1"===o.required?" * ":""),l.is_available?a.a.createElement("div",{className:"fcfFields__itemHeaderDesc ".concat("1"!==o.custom_field||o.external_field?"":"fcfFields__itemHeaderDesc--flag"," ")},l.label):a.a.createElement("div",{className:"fcfFields__itemHeaderDesc"},o.type)),a.a.createElement("ul",{className:"fcfFields__itemHeaderButtons"},"1"===o.custom_field?a.a.createElement("li",{className:"fcfFields__itemHeaderButton"},a.a.createElement(B,{text:c.i18n.alert_remove_field,onAccept:d.onFieldRemove,settings:c},a.a.createElement("button",{type:"button",className:"fcfFields__itemHeaderButtonInner fcfFields__itemHeaderButtonInner--remove"}))):null,a.a.createElement("li",{className:"fcfFields__itemHeaderButton"},a.a.createElement("button",{type:"button",className:"fcfFields__itemHeaderButtonInner fcfFields__itemHeaderButtonInner--".concat(o._is_open?"close":"open")}))))),a.a.createElement("div",{className:"fcfFields__itemContent",style:{display:o._is_open?"block":"none"}},a.a.createElement("div",{className:"fcfFields__itemTabs fcfTabs fcfTabs--small"},a.a.createElement("ul",{className:"fcfTabs__items"},h.map((function(t,n){var r=f.settings_tabs[t];return a.a.createElement("li",{className:"fcfTabs__item",key:n},a.a.createElement("a",{href:"#".concat(r.tab_name),className:"fcfTabs__itemLink ".concat(n===o._current_tab?"fcfTabs__itemLink--active":""," ").concat(r.icon),onClick:e.changeTab.bind(e,n)},r.label))})))),a.a.createElement("div",{className:"fcfOptions"},h.map((function(t,n){return a.a.createElement("ul",{className:"fcfOptions__rows",key:n,style:{display:n===o._current_tab?"block":"none"}},l.options.map((function(l,s){var p=r[l.type];return l.tab_name===t?a.a.createElement(p,{key:s,field_data:l,form_values:o,form_states:i,state_name:l.name,state_field_name:o.name,section_fields:u,show_if_regexes:l.show_if_regexes,validation_types:m,settings:c,form_settings:f,onChangeValue:e.onChangeValue.bind(e),onChangeState:d.onChangeState,onRefreshForm:e.onRefreshForm.bind(e),onValidationInit:e.onValidationInit.bind(e,n)}):null})))}))))))}},{key:"onChangeValue",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.state,o=r.refresh_functions,a=r.events;a.onChangeValue(e,t,n);for(var i=o.length,l=0;l<i;l++)o[l]()}},{key:"onRefreshForm",value:function(e){this.state.refresh_functions.push(e)}},{key:"onValidationInit",value:function(e,t,n){var r=this,o=this.state,a=o.refs;o.events.onValidationInit(t,n,(function(){r.toggleSettings(!0),r.changeTab(e),a.wrapper.current.scrollIntoView(!1)}))}},{key:"getAvailableSettingsTabs",value:function(e){for(var t=[],n=e.length,r=0;r<n;r++)-1===t.indexOf(e[r].tab_name)&&t.push(e[r].tab_name);return t}},{key:"toggleSettings",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.props.field_data,n=this.state.events;n.onChangeValue("_is_open",!0===e||!t._is_open)}},{key:"changeTab",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t&&t.preventDefault();var n=this.state.events;n.onChangeValue("_current_tab",e)}}])&&Ga(t.prototype,n),o&&Ga(t,o),l}(a.a.Component);function Xa(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Ja=n(7),Za=function(){return Math.random().toString(36).substring(7).split("").join(".")},ei={INIT:"@@redux/INIT"+Za(),REPLACE:"@@redux/REPLACE"+Za(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Za()}};function ti(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function ni(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(ni)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var o=e,a=t,i=[],l=i,u=!1;function s(){l===i&&(l=i.slice())}function c(){if(u)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return a}function f(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(u)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var t=!0;return s(),l.push(e),function(){if(t){if(u)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");t=!1,s();var n=l.indexOf(e);l.splice(n,1),i=null}}}function d(e){if(!ti(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(u)throw new Error("Reducers may not dispatch actions.");try{u=!0,a=o(a,e)}finally{u=!1}for(var t=i=l,n=0;n<t.length;n++){(0,t[n])()}return e}function p(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");o=e,d({type:ei.REPLACE})}function m(){var e,t=f;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(c())}return n(),{unsubscribe:t(n)}}})[Ja.a]=function(){return this},e}return d({type:ei.INIT}),(r={dispatch:d,subscribe:f,getState:c,replaceReducer:p})[Ja.a]=m,r}function ri(e,t){return function(){return t(e.apply(this,arguments))}}function oi(e,t){if("function"==typeof e)return ri(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=ri(o,t))}return n}function ai(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ii(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n}function li(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ii(n,!0).forEach((function(t){ai(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ii(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ui(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}n(19);var si=a.a.createContext(null);var ci=function(e){e()},fi={notify:function(){}};function di(){var e=ci,t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}var pi=function(){function e(e,t){this.store=e,this.parentSub=t,this.unsubscribe=null,this.listeners=fi,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=di())},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=fi)},e}();var mi=function(e){var t=e.store,n=e.context,r=e.children,i=Object(o.useMemo)((function(){var e=new pi(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}}),[t]),l=Object(o.useMemo)((function(){return t.getState()}),[t]);Object(o.useEffect)((function(){var e=i.subscription;return e.trySubscribe(),l!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[i,l]);var u=n||si;return a.a.createElement(u.Provider,{value:i},r)},hi=n(5),vi="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?o.useLayoutEffect:o.useEffect,gi=[],bi=[null,null];function yi(e,t){var n=e[1];return[t.payload,n+1]}function _i(e,t,n){vi((function(){return e.apply(void 0,t)}),n)}function wi(e,t,n,r,o,a,i){e.current=r,t.current=o,n.current=!1,a.current&&(a.current=null,i())}function Ei(e,t,n,r,o,a,i,l,u,s){if(e){var c=!1,f=null,d=function(){if(!c){var e,n,d=t.getState();try{e=r(d,o.current)}catch(e){n=e,f=e}n||(f=null),e===a.current?i.current||u():(a.current=e,l.current=e,i.current=!0,s({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=d,n.trySubscribe(),d();return function(){if(c=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}}var Si=function(){return[null,0]};function Oi(e,t){void 0===t&&(t={});var n=t,r=n.getDisplayName,i=void 0===r?function(e){return"ConnectAdvanced("+e+")"}:r,l=n.methodName,u=void 0===l?"connectAdvanced":l,s=n.renderCountProp,c=void 0===s?void 0:s,f=n.shouldHandleStateChanges,d=void 0===f||f,p=n.storeKey,m=void 0===p?"store":p,h=(n.withRef,n.forwardRef),v=void 0!==h&&h,g=n.context,b=void 0===g?si:g,y=Qn(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]),_=b;return function(t){var n=t.displayName||t.name||"Component",r=i(n),l=wt({},y,{getDisplayName:i,methodName:u,renderCountProp:c,shouldHandleStateChanges:d,storeKey:m,displayName:r,wrappedComponentName:n,WrappedComponent:t}),s=y.pure;var f=s?o.useMemo:function(e){return e()};function p(n){var r=Object(o.useMemo)((function(){var e=n.reactReduxForwardedRef,t=Qn(n,["reactReduxForwardedRef"]);return[n.context,e,t]}),[n]),i=r[0],u=r[1],s=r[2],c=Object(o.useMemo)((function(){return i&&i.Consumer&&Object(hi.isContextConsumer)(a.a.createElement(i.Consumer,null))?i:_}),[i,_]),p=Object(o.useContext)(c),m=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(p)&&Boolean(p.store);var h=m?n.store:p.store,v=Object(o.useMemo)((function(){return function(t){return e(t.dispatch,l)}(h)}),[h]),g=Object(o.useMemo)((function(){if(!d)return bi;var e=new pi(h,m?null:p.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[h,m,p]),b=g[0],y=g[1],w=Object(o.useMemo)((function(){return m?p:wt({},p,{subscription:b})}),[m,p,b]),E=Object(o.useReducer)(yi,gi,Si),S=E[0][0],O=E[1];if(S&&S.error)throw S.error;var x=Object(o.useRef)(),C=Object(o.useRef)(s),k=Object(o.useRef)(),P=Object(o.useRef)(!1),I=f((function(){return k.current&&s===C.current?k.current:v(h.getState(),s)}),[h,S,s]);_i(wi,[C,x,P,s,I,k,y]),_i(Ei,[d,h,b,v,C,x,P,k,y,O],[h,b,v]);var D=Object(o.useMemo)((function(){return a.a.createElement(t,wt({},I,{ref:u}))}),[u,t,I]);return Object(o.useMemo)((function(){return d?a.a.createElement(c.Provider,{value:w},D):D}),[c,D,w])}var h=s?a.a.memo(p):p;if(h.WrappedComponent=t,h.displayName=r,v){var g=a.a.forwardRef((function(e,t){return a.a.createElement(h,wt({},e,{reactReduxForwardedRef:t}))}));return g.displayName=r,g.WrappedComponent=t,wn()(g,t)}return wn()(h,t)}}function xi(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Ci(e,t){if(xi(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!xi(e[n[o]],t[n[o]]))return!1;return!0}function ki(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function Pi(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function Ii(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=Pi(e);var o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=Pi(o),o=r(t,n)),o},r}}var Di=[function(e){return"function"==typeof e?Ii(e):void 0},function(e){return e?void 0:ki((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?ki((function(t){return oi(e,t)})):void 0}];var Ri=[function(e){return"function"==typeof e?Ii(e):void 0},function(e){return e?void 0:ki((function(){return{}}))}];function Ni(e,t,n){return wt({},n,e,t)}var Ti=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,o=n.pure,a=n.areMergedPropsEqual,i=!1;return function(t,n,l){var u=e(t,n,l);return i?o&&a(u,r)||(r=u):(i=!0,r=u),r}}}(e):void 0},function(e){return e?void 0:function(){return Ni}}];function Li(e,t,n,r){return function(o,a){return n(e(o,a),t(r,a),a)}}function Ai(e,t,n,r,o){var a,i,l,u,s,c=o.areStatesEqual,f=o.areOwnPropsEqual,d=o.areStatePropsEqual,p=!1;function m(o,p){var m,h,v=!f(p,i),g=!c(o,a);return a=o,i=p,v&&g?(l=e(a,i),t.dependsOnOwnProps&&(u=t(r,i)),s=n(l,u,i)):v?(e.dependsOnOwnProps&&(l=e(a,i)),t.dependsOnOwnProps&&(u=t(r,i)),s=n(l,u,i)):g?(m=e(a,i),h=!d(m,l),l=m,h&&(s=n(l,u,i)),s):s}return function(o,c){return p?m(o,c):(l=e(a=o,i=c),u=t(r,i),s=n(l,u,i),p=!0,s)}}function ji(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,a=Qn(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),i=n(e,a),l=r(e,a),u=o(e,a);return(a.pure?Ai:Li)(i,l,u,e,a)}function Mi(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function Fi(e,t){return e===t}function Bi(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?Oi:n,o=t.mapStateToPropsFactories,a=void 0===o?Ri:o,i=t.mapDispatchToPropsFactories,l=void 0===i?Di:i,u=t.mergePropsFactories,s=void 0===u?Ti:u,c=t.selectorFactory,f=void 0===c?ji:c;return function(e,t,n,o){void 0===o&&(o={});var i=o,u=i.pure,c=void 0===u||u,d=i.areStatesEqual,p=void 0===d?Fi:d,m=i.areOwnPropsEqual,h=void 0===m?Ci:m,v=i.areStatePropsEqual,g=void 0===v?Ci:v,b=i.areMergedPropsEqual,y=void 0===b?Ci:b,_=Qn(i,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),w=Mi(e,a,"mapStateToProps"),E=Mi(t,l,"mapDispatchToProps"),S=Mi(n,s,"mergeProps");return r(f,wt({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:w,initMapDispatchToProps:E,initMergeProps:S,pure:c,areStatesEqual:p,areOwnPropsEqual:h,areStatePropsEqual:g,areMergedPropsEqual:y},_))}}var Vi=Bi();var Ui;function zi(e,t){var n=Object(o.useState)((function(){return{inputs:t,result:e()}}))[0],r=Object(o.useRef)(n),a=Boolean(t&&r.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,r.current.inputs))?r.current:{inputs:t,result:e()};return Object(o.useEffect)((function(){r.current=a}),[a]),a.result}Ui=i.unstable_batchedUpdates,ci=Ui;var Hi=zi,Wi=function(e,t){return zi((function(){return e}),t)};var Gi=function(e,t){if(!e)throw new Error("Invariant failed")},qi=function(e){var t=e.top,n=e.right,r=e.bottom,o=e.left;return{top:t,right:n,bottom:r,left:o,width:n-o,height:r-t,x:o,y:t,center:{x:(n+o)/2,y:(r+t)/2}}},$i=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},Yi=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},Qi={top:0,right:0,bottom:0,left:0},Ki=function(e){var t=e.borderBox,n=e.margin,r=void 0===n?Qi:n,o=e.border,a=void 0===o?Qi:o,i=e.padding,l=void 0===i?Qi:i,u=qi($i(t,r)),s=qi(Yi(t,a)),c=qi(Yi(s,l));return{marginBox:u,borderBox:qi(t),paddingBox:s,contentBox:c,margin:r,border:a,padding:l}},Xi=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var n=Number(t);return isNaN(n)&&Gi(!1),n},Ji=function(e,t){var n,r,o=e.borderBox,a=e.border,i=e.margin,l=e.padding,u=(r=t,{top:(n=o).top+r.y,left:n.left+r.x,bottom:n.bottom+r.y,right:n.right+r.x});return Ki({borderBox:u,border:a,margin:i,padding:l})},Zi=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),Ji(e,t)},el=function(e,t){var n={top:Xi(t.marginTop),right:Xi(t.marginRight),bottom:Xi(t.marginBottom),left:Xi(t.marginLeft)},r={top:Xi(t.paddingTop),right:Xi(t.paddingRight),bottom:Xi(t.paddingBottom),left:Xi(t.paddingLeft)},o={top:Xi(t.borderTopWidth),right:Xi(t.borderRightWidth),bottom:Xi(t.borderBottomWidth),left:Xi(t.borderLeftWidth)};return Ki({borderBox:e,margin:n,padding:r,border:o})},tl=function(e){var t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return el(t,n)},nl=function(e){var t=[],n=null,r=function(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];t=o,n||(n=requestAnimationFrame((function(){n=null,e.apply(void 0,t)})))};return r.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},r};function rl(e,t){}rl.bind(null,"warn"),rl.bind(null,"error");function ol(){}function al(e,t,n){var r=t.map((function(t){var r,o,a=(r=n,o=t.options,wt({},r,{},o));return e.addEventListener(t.eventName,t.fn,a),function(){e.removeEventListener(t.eventName,t.fn,a)}}));return function(){r.forEach((function(e){e()}))}}function il(e){this.message=e}function ll(e,t){if(!e)throw new il("Invariant failed")}il.prototype.toString=function(){return this.message};var ul=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).callbacks=null,t.unbind=ol,t.onWindowError=function(e){var n=t.getCallbacks();n.isDragging()&&n.tryAbort(),e.error instanceof il&&e.preventDefault()},t.getCallbacks=function(){if(!t.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return t.callbacks},t.setCallbacks=function(e){t.callbacks=e},t}Xa(t,e);var n=t.prototype;return n.componentDidMount=function(){this.unbind=al(window,[{eventName:"error",fn:this.onWindowError}])},n.componentWillUnmount=function(){this.unbind()},n.componentDidCatch=function(e){if(!(e instanceof il))throw e;this.setState({})},n.render=function(){return this.props.children(this.setCallbacks)},t}(a.a.Component),sl=function(e){return e+1},cl=function(e,t){var n=e.droppableId===t.droppableId,r=sl(e.index),o=sl(t.index);return n?"\n You have moved the item from position "+r+"\n to position "+o+"\n ":"\n You have moved the item from position "+r+"\n in list "+e.droppableId+"\n to list "+t.droppableId+"\n in position "+o+"\n "},fl=function(e,t,n){return t.droppableId===n.droppableId?"\n The item "+e+"\n has been combined with "+n.draggableId:"\n The item "+e+"\n in list "+t.droppableId+"\n has been combined with "+n.draggableId+"\n in list "+n.droppableId+"\n "},dl=function(e){return"\n The item has returned to its starting position\n of "+sl(e.index)+"\n"},pl="\n Press space bar to start a drag.\n When dragging you can use the arrow keys to move the item around and escape to cancel.\n Some screen readers may require you to be in focus mode or to use your pass through key\n",ml=function(e){return"\n You have lifted an item in position "+sl(e.source.index)+"\n"},hl=function(e){var t=e.destination;if(t)return cl(e.source,t);var n=e.combine;return n?fl(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},vl=function(e){if("CANCEL"===e.reason)return"\n Movement cancelled.\n "+dl(e.source)+"\n ";var t=e.destination,n=e.combine;return t?"\n You have dropped the item.\n "+cl(e.source,t)+"\n ":n?"\n You have dropped the item.\n "+fl(e.draggableId,e.source,n)+"\n ":"\n The item has been dropped while not over a drop area.\n "+dl(e.source)+"\n "},gl={x:0,y:0},bl=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},yl=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},_l=function(e,t){return e.x===t.x&&e.y===t.y},wl=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},El=function(e,t,n){var r;return void 0===n&&(n=0),(r={})[e]=t,r["x"===e?"y":"x"]=n,r},Sl=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},Ol=function(e,t){return Math.min.apply(Math,t.map((function(t){return Sl(e,t)})))},xl=function(e){return function(t){return{x:e(t.x),y:e(t.y)}}},Cl=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},kl=function(e){return[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}]},Pl=function(e,t){return t&&t.shouldClipSubject?function(e,t){var n=qi({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n}(t.pageMarginBox,e):qi(e)},Il=function(e){var t=e.page,n=e.withPlaceholder,r=e.axis,o=e.frame,a=function(e,t,n){var r;return n&&n.increasedBy?wt({},e,((r={})[t.end]=e[t.end]+n.increasedBy[t.line],r)):e}(function(e,t){return t?Cl(e,t.scroll.diff.displacement):e}(t.marginBox,o),r,n);return{page:t,withPlaceholder:n,active:Pl(a,o)}},Dl=function(e,t){e.frame||ll(!1);var n=e.frame,r=yl(t,n.scroll.initial),o=wl(r),a=wt({},n,{scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:o},max:n.scroll.max}});return wt({},e,{frame:a,subject:Il({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:a})})};function Rl(e){return Object.values?Object.values(e):Object.keys(e).map((function(t){return e[t]}))}function Nl(e,t){if(e.findIndex)return e.findIndex(t);for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}function Tl(e,t){if(e.find)return e.find(t);var n=Nl(e,t);return-1!==n?e[n]:void 0}function Ll(e){return Array.prototype.slice.call(e)}var Al=$o((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),jl=$o((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),Ml=$o((function(e){return Rl(e)})),Fl=$o((function(e){return Rl(e)})),Bl=$o((function(e,t){return Fl(t).filter((function(t){return e===t.descriptor.droppableId})).sort((function(e,t){return e.descriptor.index-t.descriptor.index}))}));function Vl(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function Ul(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var zl=$o((function(e,t){return t.filter((function(t){return t.descriptor.id!==e.descriptor.id}))})),Hl=function(e,t){return e.descriptor.droppableId===t.descriptor.id},Wl={point:gl,value:0},Gl={invisible:{},visible:{},all:[]},ql={displaced:Gl,displacedBy:Wl,at:null},$l=function(e,t){return function(n){return e<=n&&n<=t}},Yl=function(e){var t=$l(e.top,e.bottom),n=$l(e.left,e.right);return function(r){if(t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right))return!0;var o=t(r.top)||t(r.bottom),a=n(r.left)||n(r.right);if(o&&a)return!0;var i=r.top<e.top&&r.bottom>e.bottom,l=r.left<e.left&&r.right>e.right;return!(!i||!l)||(i&&a||l&&o)}},Ql=function(e){var t=$l(e.top,e.bottom),n=$l(e.left,e.right);return function(e){return t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right)}},Kl={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},Xl={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Jl=function(e){var t=e.target,n=e.destination,r=e.viewport,o=e.withDroppableDisplacement,a=e.isVisibleThroughFrameFn,i=o?function(e,t){var n=t.frame?t.frame.scroll.diff.displacement:gl;return Cl(e,n)}(t,n):t;return function(e,t,n){return!!t.subject.active&&n(t.subject.active)(e)}(i,n,a)&&function(e,t,n){return n(t)(e)}(i,r,a)},Zl=function(e){return Jl(wt({},e,{isVisibleThroughFrameFn:Yl}))},eu=function(e){return Jl(wt({},e,{isVisibleThroughFrameFn:Ql}))};function tu(e){var t=e.afterDragging,n=e.destination,r=e.displacedBy,o=e.viewport,a=e.forceShouldAnimate,i=e.last;return t.reduce((function(e,t){var l=function(e,t){var n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return qi($i(n,r))}(t,r),u=t.descriptor.id;if(e.all.push(u),!Zl({target:l,destination:n,viewport:o,withDroppableDisplacement:!0}))return e.invisible[t.descriptor.id]=!0,e;var s={draggableId:u,shouldAnimate:function(e,t,n){if("boolean"==typeof n)return n;if(!t)return!0;var r=t.invisible,o=t.visible;if(r[e])return!1;var a=o[e];return!a||a.shouldAnimate}(u,i,a)};return e.visible[u]=s,e}),{all:[],visible:{},invisible:{}})}function nu(e){var t=e.insideDestination,n=e.inHomeList,r=e.displacedBy,o=e.destination,a=function(e,t){if(!e.length)return 0;var n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}(t,{inHomeList:n});return{displaced:Gl,displacedBy:r,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:a}}}}function ru(e){var t=e.draggable,n=e.insideDestination,r=e.destination,o=e.viewport,a=e.displacedBy,i=e.last,l=e.index,u=e.forceShouldAnimate,s=Hl(t,r);if(null==l)return nu({insideDestination:n,inHomeList:s,displacedBy:a,destination:r});var c=Tl(n,(function(e){return e.descriptor.index===l}));if(!c)return nu({insideDestination:n,inHomeList:s,displacedBy:a,destination:r});var f=zl(t,n),d=n.indexOf(c);return{displaced:tu({afterDragging:f.slice(d),destination:r,displacedBy:a,last:i,viewport:o.frame,forceShouldAnimate:u}),displacedBy:a,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:l}}}}function ou(e,t){return Boolean(t.effected[e])}var au=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.draggable,o=e.draggables,a=e.destination,i=e.insideDestination,l=e.previousImpact,u=e.viewport,s=e.afterCritical,c=l.at;if(c||ll(!1),"REORDER"===c.type){var f=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.insideDestination,o=e.location;if(!r.length)return null;var a=o.index,i=t?a+1:a-1,l=r[0].descriptor.index,u=r[r.length-1].descriptor.index;return i<l||i>(n?u:u+1)?null:i}({isMovingForward:t,isInHomeList:n,location:c.destination,insideDestination:i});return null==f?null:ru({draggable:r,insideDestination:i,destination:a,viewport:u,last:l.displaced,displacedBy:l.displacedBy,index:f})}var d=function(e){var t=e.isMovingForward,n=e.destination,r=e.draggables,o=e.combine,a=e.afterCritical;if(!n.isCombineEnabled)return null;var i=o.draggableId,l=r[i].descriptor.index;return ou(i,a)?t?l:l-1:t?l+1:l}({isMovingForward:t,destination:a,displaced:l.displaced,draggables:o,combine:c.combine,afterCritical:s});return null==d?null:ru({draggable:r,insideDestination:i,destination:a,viewport:u,last:l.displaced,displacedBy:l.displacedBy,index:d})},iu=function(e){var t=e.afterCritical,n=e.impact,r=e.draggables,o=Ul(n);o||ll(!1);var a=o.draggableId,i=r[a].page.borderBox.center,l=function(e){var t=e.displaced,n=e.afterCritical,r=e.combineWith,o=e.displacedBy,a=Boolean(t.visible[r]||t.invisible[r]);return ou(r,n)?a?gl:wl(o.point):a?o.point:gl}({displaced:n.displaced,afterCritical:t,combineWith:a,displacedBy:n.displacedBy});return bl(i,l)},lu=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},uu=function(e,t,n){return t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2},su=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return El(t.line,n.marginBox[t.end]+lu(t,r),uu(t,n.marginBox,r))},cu=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return El(t.line,n.marginBox[t.start]-function(e,t){return t.margin[e.end]+t.borderBox[e.size]/2}(t,r),uu(t,n.marginBox,r))},fu=function(e){var t=e.impact,n=e.draggable,r=e.draggables,o=e.droppable,a=e.afterCritical,i=Bl(o.descriptor.id,r),l=n.page,u=o.axis;if(!i.length)return function(e){var t=e.axis,n=e.moveInto,r=e.isMoving;return El(t.line,n.contentBox[t.start]+lu(t,r),uu(t,n.contentBox,r))}({axis:u,moveInto:o.page,isMoving:l});var s=t.displaced,c=t.displacedBy,f=s.all[0];if(f){var d=r[f];if(ou(f,a))return cu({axis:u,moveRelativeTo:d.page,isMoving:l});var p=Ji(d.page,c.point);return cu({axis:u,moveRelativeTo:p,isMoving:l})}var m=i[i.length-1];if(m.descriptor.id===n.descriptor.id)return l.borderBox.center;if(ou(m.descriptor.id,a)){var h=Ji(m.page,wl(a.displacedBy.point));return su({axis:u,moveRelativeTo:h,isMoving:l})}return su({axis:u,moveRelativeTo:m.page,isMoving:l})},du=function(e,t){var n=e.frame;return n?bl(t,n.scroll.diff.displacement):t},pu=function(e){var t=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,a=e.afterCritical,i=n.page.borderBox.center,l=t.at;return r&&l?"REORDER"===l.type?fu({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:a}):iu({impact:t,draggables:o,afterCritical:a}):i}(e),n=e.droppable;return n?du(n,t):t},mu=function(e,t){var n=yl(t,e.scroll.initial),r=wl(n);return{frame:qi({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}}};function hu(e,t){return e.map((function(e){return t[e]}))}var vu=function(e){var t=e.pageBorderBoxCenter,n=e.draggable,r=function(e,t){return bl(e.scroll.diff.displacement,t)}(e.viewport,t),o=yl(r,n.page.borderBox.center);return bl(n.client.borderBox.center,o)},gu=function(e){var t=e.draggable,n=e.destination,r=e.newPageBorderBoxCenter,o=e.viewport,a=e.withDroppableDisplacement,i=e.onlyOnMainAxis,l=void 0!==i&&i,u=yl(r,t.page.borderBox.center),s={target:Cl(t.page.borderBox,u),destination:n,withDroppableDisplacement:a,viewport:o};return l?function(e){return Jl(wt({},e,{isVisibleThroughFrameFn:(t=e.destination.axis,function(e){var n=$l(e.top,e.bottom),r=$l(e.left,e.right);return function(e){return t===Kl?n(e.top)&&n(e.bottom):r(e.left)&&r(e.right)}})}));var t}(s):eu(s)},bu=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.draggables,a=e.previousImpact,i=e.viewport,l=e.previousPageBorderBoxCenter,u=e.previousClientSelection,s=e.afterCritical;if(!r.isEnabled)return null;var c=Bl(r.descriptor.id,o),f=Hl(n,r),d=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.insideDestination,a=e.previousImpact;if(!r.isCombineEnabled)return null;if(!Vl(a))return null;function i(e){var t={type:"COMBINE",combine:{draggableId:e,droppableId:r.descriptor.id}};return wt({},a,{at:t})}var l=a.displaced.all,u=l.length?l[0]:null;if(t)return u?i(u):null;var s=zl(n,o);if(!u)return s.length?i(s[s.length-1].descriptor.id):null;var c=Nl(s,(function(e){return e.descriptor.id===u}));-1===c&&ll(!1);var f=c-1;return f<0?null:i(s[f].descriptor.id)}({isMovingForward:t,draggable:n,destination:r,insideDestination:c,previousImpact:a})||au({isMovingForward:t,isInHomeList:f,draggable:n,draggables:o,destination:r,insideDestination:c,previousImpact:a,viewport:i,afterCritical:s});if(!d)return null;var p=pu({impact:d,draggable:n,droppable:r,draggables:o,afterCritical:s});if(gu({draggable:n,destination:r,newPageBorderBoxCenter:p,viewport:i.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:vu({pageBorderBoxCenter:p,draggable:n,viewport:i}),impact:d,scrollJumpRequest:null};var m=yl(p,l);return{clientSelection:u,impact:function(e){var t=e.impact,n=e.viewport,r=e.destination,o=e.draggables,a=e.maxScrollChange,i=mu(n,bl(n.scroll.current,a)),l=r.frame?Dl(r,bl(r.frame.scroll.current,a)):r,u=t.displaced,s=tu({afterDragging:hu(u.all,o),destination:r,displacedBy:t.displacedBy,viewport:i.frame,last:u,forceShouldAnimate:!1}),c=tu({afterDragging:hu(u.all,o),destination:l,displacedBy:t.displacedBy,viewport:n.frame,last:u,forceShouldAnimate:!1}),f={},d={},p=[u,s,c];return u.all.forEach((function(e){var t=function(e,t){for(var n=0;n<t.length;n++){var r=t[n].visible[e];if(r)return r}return null}(e,p);t?d[e]=t:f[e]=!0})),wt({},t,{displaced:{all:u.all,invisible:f,visible:d}})}({impact:d,viewport:i,destination:r,draggables:o,maxScrollChange:m}),scrollJumpRequest:m}},yu=function(e){var t=e.subject.active;return t||ll(!1),t},_u=function(e,t){var n=e.page.borderBox.center;return ou(e.descriptor.id,t)?yl(n,t.displacedBy.point):n},wu=function(e,t){var n=e.page.borderBox;return ou(e.descriptor.id,t)?Cl(n,wl(t.displacedBy.point)):n},Eu=$o((function(e,t){var n=t[e.line];return{value:n,point:El(e.line,n)}})),Su=function(e,t){return wt({},e,{scroll:wt({},e.scroll,{max:t})})},Ou=function(e,t,n){var r=e.frame;Hl(t,e)&&ll(!1),e.subject.withPlaceholder&&ll(!1);var o=Eu(e.axis,t.displaceBy).point,a=function(e,t,n){var r=e.axis;if("virtual"===e.descriptor.mode)return El(r.line,t[r.line]);var o=e.subject.page.contentBox[r.size],a=Bl(e.descriptor.id,n).reduce((function(e,t){return e+t.client.marginBox[r.size]}),0)+t[r.line]-o;return a<=0?null:El(r.line,a)}(e,o,n),i={placeholderSize:o,increasedBy:a,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r)return wt({},e,{subject:Il({page:e.subject.page,withPlaceholder:i,axis:e.axis,frame:e.frame})});var l=a?bl(r.scroll.max,a):r.scroll.max,u=Su(r,l);return wt({},e,{subject:Il({page:e.subject.page,withPlaceholder:i,axis:e.axis,frame:u}),frame:u})},xu=function(e){var t=e.isMovingForward,n=e.previousPageBorderBoxCenter,r=e.draggable,o=e.isOver,a=e.draggables,i=e.droppables,l=e.viewport,u=e.afterCritical,s=function(e){var t=e.isMovingForward,n=e.pageBorderBoxCenter,r=e.source,o=e.droppables,a=e.viewport,i=r.subject.active;if(!i)return null;var l=r.axis,u=$l(i[l.start],i[l.end]),s=Ml(o).filter((function(e){return e!==r})).filter((function(e){return e.isEnabled})).filter((function(e){return Boolean(e.subject.active)})).filter((function(e){return Yl(a.frame)(yu(e))})).filter((function(e){var n=yu(e);return t?i[l.crossAxisEnd]<n[l.crossAxisEnd]:n[l.crossAxisStart]<i[l.crossAxisStart]})).filter((function(e){var t=yu(e),n=$l(t[l.start],t[l.end]);return u(t[l.start])||u(t[l.end])||n(i[l.start])||n(i[l.end])})).sort((function(e,n){var r=yu(e)[l.crossAxisStart],o=yu(n)[l.crossAxisStart];return t?r-o:o-r})).filter((function(e,t,n){return yu(e)[l.crossAxisStart]===yu(n[0])[l.crossAxisStart]}));if(!s.length)return null;if(1===s.length)return s[0];var c=s.filter((function(e){return $l(yu(e)[l.start],yu(e)[l.end])(n[l.line])}));return 1===c.length?c[0]:c.length>1?c.sort((function(e,t){return yu(e)[l.start]-yu(t)[l.start]}))[0]:s.sort((function(e,t){var r=Ol(n,kl(yu(e))),o=Ol(n,kl(yu(t)));return r!==o?r-o:yu(e)[l.start]-yu(t)[l.start]}))[0]}({isMovingForward:t,pageBorderBoxCenter:n,source:o,droppables:i,viewport:l});if(!s)return null;var c=Bl(s.descriptor.id,a),f=function(e){var t=e.previousPageBorderBoxCenter,n=e.moveRelativeTo,r=e.insideDestination,o=e.draggable,a=e.draggables,i=e.destination,l=e.viewport,u=e.afterCritical;if(!n){if(r.length)return null;var s={displaced:Gl,displacedBy:Wl,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:0}}},c=pu({impact:s,draggable:o,droppable:i,draggables:a,afterCritical:u}),f=Hl(o,i)?i:Ou(i,o,a);return gu({draggable:o,destination:f,newPageBorderBoxCenter:c,viewport:l.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?s:null}var d,p=Boolean(t[i.axis.line]<=n.page.borderBox.center[i.axis.line]),m=(d=n.descriptor.index,n.descriptor.id===o.descriptor.id||p?d:d+1),h=Eu(i.axis,o.displaceBy);return ru({draggable:o,insideDestination:r,destination:i,viewport:l,displacedBy:h,last:Gl,index:m})}({previousPageBorderBoxCenter:n,destination:s,draggable:r,draggables:a,moveRelativeTo:function(e){var t=e.pageBorderBoxCenter,n=e.viewport,r=e.destination,o=e.insideDestination,a=e.afterCritical;return o.filter((function(e){return eu({target:wu(e,a),destination:r,viewport:n.frame,withDroppableDisplacement:!0})})).sort((function(e,n){var o=Sl(t,du(r,_u(e,a))),i=Sl(t,du(r,_u(n,a)));return o<i?-1:i<o?1:e.descriptor.index-n.descriptor.index}))[0]||null}({pageBorderBoxCenter:n,viewport:l,destination:s,insideDestination:c,afterCritical:u}),insideDestination:c,viewport:l,afterCritical:u});if(!f)return null;var d=pu({impact:f,draggable:r,droppable:s,draggables:a,afterCritical:u});return{clientSelection:vu({pageBorderBoxCenter:d,draggable:r,viewport:l}),impact:f,scrollJumpRequest:null}},Cu=function(e){var t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null},ku=function(e){var t=e.state,n=e.type,r=function(e,t){var n=Cu(e);return n?t[n]:null}(t.impact,t.dimensions.droppables),o=Boolean(r),a=t.dimensions.droppables[t.critical.droppable.id],i=r||a,l=i.axis.direction,u="vertical"===l&&("MOVE_UP"===n||"MOVE_DOWN"===n)||"horizontal"===l&&("MOVE_LEFT"===n||"MOVE_RIGHT"===n);if(u&&!o)return null;var s="MOVE_DOWN"===n||"MOVE_RIGHT"===n,c=t.dimensions.draggables[t.critical.draggable.id],f=t.current.page.borderBoxCenter,d=t.dimensions,p=d.draggables,m=d.droppables;return u?bu({isMovingForward:s,previousPageBorderBoxCenter:f,draggable:c,destination:i,draggables:p,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):xu({isMovingForward:s,previousPageBorderBoxCenter:f,draggable:c,isOver:i,draggables:p,droppables:m,viewport:t.viewport,afterCritical:t.afterCritical})};function Pu(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function Iu(e){var t=$l(e.top,e.bottom),n=$l(e.left,e.right);return function(e){return t(e.y)&&n(e.x)}}function Du(e){var t=e.pageBorderBox,n=e.draggable,r=e.droppables,o=Ml(r).filter((function(e){if(!e.isEnabled)return!1;var n,r,o=e.subject.active;if(!o)return!1;if(r=o,!((n=t).left<r.right&&n.right>r.left&&n.top<r.bottom&&n.bottom>r.top))return!1;if(Iu(o)(t.center))return!0;var a=e.axis,i=o.center[a.crossAxisLine],l=t[a.crossAxisStart],u=t[a.crossAxisEnd],s=$l(o[a.crossAxisStart],o[a.crossAxisEnd]),c=s(l),f=s(u);return!c&&!f||(c?l<i:u>i)}));return o.length?1===o.length?o[0].descriptor.id:function(e){var t=e.pageBorderBox,n=e.draggable,r=e.candidates,o=n.page.borderBox.center,a=r.map((function(e){var n=e.axis,r=El(e.axis.line,t.center[n.line],e.page.borderBox.center[n.crossAxisLine]);return{id:e.descriptor.id,distance:Sl(o,r)}})).sort((function(e,t){return t.distance-e.distance}));return a[0]?a[0].id:null}({pageBorderBox:t,draggable:n,candidates:o}):null}var Ru=function(e,t){return qi(Cl(e,t))};function Nu(e){var t=e.displaced,n=e.id;return Boolean(t.visible[n]||t.invisible[n])}var Tu=function(e){var t=e.pageOffset,n=e.draggable,r=e.draggables,o=e.droppables,a=e.previousImpact,i=e.viewport,l=e.afterCritical,u=Ru(n.page.borderBox,t),s=Du({pageBorderBox:u,draggable:n,droppables:o});if(!s)return ql;var c,f,d=o[s],p=Bl(d.descriptor.id,r),m=(c=u,(f=d.frame)?Ru(c,f.scroll.diff.value):c);return function(e){var t=e.draggable,n=e.pageBorderBoxWithDroppableScroll,r=e.previousImpact,o=e.destination,a=e.insideDestination,i=e.afterCritical;if(!o.isCombineEnabled)return null;var l=o.axis,u=Eu(o.axis,t.displaceBy),s=u.value,c=n[l.start],f=n[l.end],d=Tl(zl(t,a),(function(e){var t=e.descriptor.id,n=e.page.borderBox,o=n[l.size]/4,a=ou(t,i),u=Nu({displaced:r.displaced,id:t});return a?u?f>n[l.start]+o&&f<n[l.end]-o:c>n[l.start]-s+o&&c<n[l.end]-s-o:u?f>n[l.start]+s+o&&f<n[l.end]+s-o:c>n[l.start]+o&&c<n[l.end]-o}));return d?{displacedBy:u,displaced:r.displaced,at:{type:"COMBINE",combine:{draggableId:d.descriptor.id,droppableId:o.descriptor.id}}}:null}({pageBorderBoxWithDroppableScroll:m,draggable:n,previousImpact:a,destination:d,insideDestination:p,afterCritical:l})||function(e){var t=e.pageBorderBoxWithDroppableScroll,n=e.draggable,r=e.destination,o=e.insideDestination,a=e.last,i=e.viewport,l=e.afterCritical,u=r.axis,s=Eu(r.axis,n.displaceBy),c=s.value,f=t[u.start],d=t[u.end],p=function(e){var t=e.draggable,n=e.closest,r=e.inHomeList;return n?r&&n.descriptor.index>t.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}({draggable:n,closest:Tl(zl(n,o),(function(e){var t=e.descriptor.id,n=e.page.borderBox.center[u.line],r=ou(t,l),o=Nu({displaced:a,id:t});return r?o?d<=n:f<n-c:o?d<=n+c:f<n})),inHomeList:Hl(n,r)});return ru({draggable:n,insideDestination:o,destination:r,viewport:i,last:a,displacedBy:s,index:p})}({pageBorderBoxWithDroppableScroll:m,draggable:n,destination:d,insideDestination:p,last:a.displaced,viewport:i,afterCritical:l})},Lu=function(e,t){var n;return wt({},e,((n={})[t.descriptor.id]=t,n))},Au=function(e){var t=e.previousImpact,n=e.impact,r=e.droppables,o=Cu(t),a=Cu(n);if(!o)return r;if(o===a)return r;var i=r[o];if(!i.subject.withPlaceholder)return r;var l=function(e){var t=e.subject.withPlaceholder;t||ll(!1);var n=e.frame;if(!n)return wt({},e,{subject:Il({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null})});var r=t.oldFrameMaxScroll;r||ll(!1);var o=Su(n,r);return wt({},e,{subject:Il({page:e.subject.page,axis:e.axis,frame:o,withPlaceholder:null}),frame:o})}(i);return Lu(r,l)},ju=function(e){var t=e.state,n=e.clientSelection,r=e.dimensions,o=e.viewport,a=e.impact,i=e.scrollJumpRequest,l=o||t.viewport,u=r||t.dimensions,s=n||t.current.client.selection,c=yl(s,t.initial.client.selection),f={offset:c,selection:s,borderBoxCenter:bl(t.initial.client.borderBoxCenter,c)},d={selection:bl(f.selection,l.scroll.current),borderBoxCenter:bl(f.borderBoxCenter,l.scroll.current),offset:bl(f.offset,l.scroll.diff.value)},p={client:f,page:d};if("COLLECTING"===t.phase)return wt({phase:"COLLECTING"},t,{dimensions:u,viewport:l,current:p});var m=u.draggables[t.critical.draggable.id],h=a||Tu({pageOffset:d.offset,draggable:m,draggables:u.draggables,droppables:u.droppables,previousImpact:t.impact,viewport:l,afterCritical:t.afterCritical}),v=function(e){var t=e.draggable,n=e.draggables,r=e.droppables,o=e.previousImpact,a=e.impact,i=Au({previousImpact:o,impact:a,droppables:r}),l=Cu(a);if(!l)return i;var u=r[l];if(Hl(t,u))return i;if(u.subject.withPlaceholder)return i;var s=Ou(u,t,n);return Lu(i,s)}({draggable:m,impact:h,previousImpact:t.impact,draggables:u.draggables,droppables:u.droppables});return wt({},t,{current:p,dimensions:{draggables:u.draggables,droppables:v},impact:h,viewport:l,scrollJumpRequest:i||null,forceShouldAnimate:!i&&null})};var Mu=function(e){var t=e.impact,n=e.viewport,r=e.draggables,o=e.destination,a=e.forceShouldAnimate,i=t.displaced;return wt({},t,{displaced:tu({afterDragging:function(e,t){return e.map((function(e){return t[e]}))}(i.all,r),destination:o,displacedBy:t.displacedBy,viewport:n.frame,forceShouldAnimate:a,last:i})})},Fu=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,a=e.viewport,i=e.afterCritical,l=pu({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:i});return vu({pageBorderBoxCenter:l,draggable:n,viewport:a})},Bu=function(e){var t=e.state,n=e.dimensions,r=e.viewport;"SNAP"!==t.movementMode&&ll(!1);var o=t.impact,a=r||t.viewport,i=n||t.dimensions,l=i.draggables,u=i.droppables,s=l[t.critical.draggable.id],c=Cu(o);c||ll(!1);var f=u[c],d=Mu({impact:o,viewport:a,destination:f,draggables:l}),p=Fu({impact:d,draggable:s,droppable:f,draggables:l,viewport:a,afterCritical:t.afterCritical});return ju({impact:d,clientSelection:p,state:t,dimensions:i,viewport:a})},Vu=function(e){var t=e.draggable,n=e.home,r=e.draggables,o=e.viewport,a=Eu(n.axis,t.displaceBy),i=Bl(n.descriptor.id,r),l=i.indexOf(t);-1===l&&ll(!1);var u,s=i.slice(l+1),c=s.reduce((function(e,t){return e[t.descriptor.id]=!0,e}),{}),f={inVirtualList:"virtual"===n.descriptor.mode,displacedBy:a,effected:c};return{impact:{displaced:tu({afterDragging:s,destination:n,displacedBy:a,last:null,viewport:o.frame,forceShouldAnimate:!1}),displacedBy:a,at:{type:"REORDER",destination:(u=t.descriptor,{index:u.index,droppableId:u.droppableId})}},afterCritical:f}},Uu=function(e){0},zu=function(e){0},Hu=function(e){var t=e.additions,n=e.updatedDroppables,r=e.viewport,o=r.scroll.diff.value;return t.map((function(e){var t=e.descriptor.droppableId,a=function(e){var t=e.frame;return t||ll(!1),t}(n[t]).scroll.diff.value;return function(e){var t=e.draggable,n=e.offset,r=e.initialWindowScroll,o=Ji(t.client,n),a=Zi(o,r);return wt({},t,{placeholder:wt({},t.placeholder,{client:o}),client:o,page:a})}({draggable:e,offset:bl(o,a),initialWindowScroll:r.scroll.initial})}))},Wu=function(e){return"SNAP"===e.movementMode},Gu=function(e,t,n){var r=function(e,t){return{draggables:e.draggables,droppables:Lu(e.droppables,t)}}(e.dimensions,t);return!Wu(e)||n?ju({state:e,dimensions:r}):Bu({state:e,dimensions:r})};function qu(e){return e.isDragging&&"SNAP"===e.movementMode?wt({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var $u={phase:"IDLE",completed:null,shouldFlush:!1},Yu=function(e,t){if(void 0===e&&(e=$u),"FLUSH"===t.type)return wt({},$u,{shouldFlush:!0});if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&ll(!1);var n=t.payload,r=n.critical,o=n.clientSelection,a=n.viewport,i=n.dimensions,l=n.movementMode,u=i.draggables[r.draggable.id],s=i.droppables[r.droppable.id],c={selection:o,borderBoxCenter:u.client.borderBox.center,offset:gl},f={client:c,page:{selection:bl(c.selection,a.scroll.initial),borderBoxCenter:bl(c.selection,a.scroll.initial),offset:bl(c.selection,a.scroll.diff.value)}},d=Ml(i.droppables).every((function(e){return!e.isFixedOnPage})),p=Vu({draggable:u,home:s,draggables:i.draggables,viewport:a}),m=p.impact;return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:l,dimensions:i,initial:f,current:f,isWindowScrollAllowed:d,impact:m,afterCritical:p.afterCritical,onLiftImpact:m,viewport:a,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&ll(!1),wt({phase:"COLLECTING"},e,{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&ll(!1),function(e){var t=e.state,n=e.published;Uu();var r=n.modified.map((function(e){var n=t.dimensions.droppables[e.droppableId];return Dl(n,e.scroll)})),o=wt({},t.dimensions.droppables,{},Al(r)),a=jl(Hu({additions:n.additions,updatedDroppables:o,viewport:t.viewport})),i=wt({},t.dimensions.draggables,{},a);n.removals.forEach((function(e){delete i[e]}));var l={droppables:o,draggables:i},u=Cu(t.impact),s=u?l.droppables[u]:null,c=l.draggables[t.critical.draggable.id],f=l.droppables[t.critical.droppable.id],d=Vu({draggable:c,home:f,draggables:i,viewport:t.viewport}),p=d.impact,m=d.afterCritical,h=s&&s.isCombineEnabled?t.impact:p,v=Tu({pageOffset:t.current.page.offset,draggable:l.draggables[t.critical.draggable.id],draggables:l.draggables,droppables:l.droppables,previousImpact:h,viewport:t.viewport,afterCritical:m});zu();var g=wt({phase:"DRAGGING"},t,{phase:"DRAGGING",impact:v,onLiftImpact:p,dimensions:l,afterCritical:m,forceShouldAnimate:!1});return"COLLECTING"===t.phase?g:wt({phase:"DROP_PENDING"},g,{phase:"DROP_PENDING",reason:t.reason,isWaiting:!1})}({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;Pu(e)||ll(!1);var h=t.payload.client;return _l(h,e.current.client.selection)?e:ju({state:e,clientSelection:h,impact:Wu(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return qu(e);if("COLLECTING"===e.phase)return qu(e);Pu(e)||ll(!1);var v=t.payload,g=v.id,b=v.newScroll,y=e.dimensions.droppables[g];if(!y)return e;var _=Dl(y,b);return Gu(e,_,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;Pu(e)||ll(!1);var w=t.payload,E=w.id,S=w.isEnabled,O=e.dimensions.droppables[E];O||ll(!1),O.isEnabled===S&&ll(!1);var x=wt({},O,{isEnabled:S});return Gu(e,x,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;Pu(e)||ll(!1);var C=t.payload,k=C.id,P=C.isCombineEnabled,I=e.dimensions.droppables[k];I||ll(!1),I.isCombineEnabled===P&&ll(!1);var D=wt({},I,{isCombineEnabled:P});return Gu(e,D,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;Pu(e)||ll(!1),e.isWindowScrollAllowed||ll(!1);var R=t.payload.newScroll;if(_l(e.viewport.scroll.current,R))return qu(e);var N=mu(e.viewport,R);return Wu(e)?Bu({state:e,viewport:N}):ju({state:e,viewport:N})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!Pu(e))return e;var T=t.payload.maxScroll;if(_l(T,e.viewport.scroll.max))return e;var L=wt({},e.viewport,{scroll:wt({},e.viewport.scroll,{max:T})});return wt({phase:"DRAGGING"},e,{viewport:L})}if("MOVE_UP"===t.type||"MOVE_DOWN"===t.type||"MOVE_LEFT"===t.type||"MOVE_RIGHT"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&ll(!1);var A=ku({state:e,type:t.type});return A?ju({state:e,impact:A.impact,clientSelection:A.clientSelection,scrollJumpRequest:A.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){var j=t.payload.reason;return"COLLECTING"!==e.phase&&ll(!1),wt({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:j})}if("DROP_ANIMATE"===t.type){var M=t.payload,F=M.completed,B=M.dropDuration,V=M.newHomeClientOffset;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&ll(!1),{phase:"DROP_ANIMATING",completed:F,dropDuration:B,newHomeClientOffset:V,dimensions:e.dimensions}}return"DROP_COMPLETE"===t.type?{phase:"IDLE",completed:t.payload.completed,shouldFlush:!1}:e},Qu=function(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},Ku=function(){return{type:"COLLECTION_STARTING",payload:null}},Xu=function(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},Ju=function(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},Zu=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},es=function(e){return{type:"MOVE",payload:e}},ts=function(){return{type:"MOVE_UP",payload:null}},ns=function(){return{type:"MOVE_DOWN",payload:null}},rs=function(){return{type:"MOVE_RIGHT",payload:null}},os=function(){return{type:"MOVE_LEFT",payload:null}},as=function(e){return{type:"DROP_COMPLETE",payload:e}},is=function(e){return{type:"DROP",payload:e}},ls=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};var us="cubic-bezier(.2,1,.1,1)",ss={drop:0,combining:.7},cs={drop:.75},fs=.2+"s "+"cubic-bezier(0.2, 0, 0, 1)",ds={fluid:"opacity "+fs,snap:"transform "+fs+", opacity "+fs,drop:function(e){var t=e+"s "+us;return"transform "+t+", opacity "+t},outOfTheWay:"transform "+fs,placeholder:"height "+fs+", width "+fs+", margin "+fs},ps=function(e){return _l(e,gl)?null:"translate("+e.x+"px, "+e.y+"px)"},ms=ps,hs=function(e,t){var n=ps(e);return n?t?n+" scale("+cs.drop+")":n:null},vs=.33,gs=.55,bs=gs-vs,ys=function(e){var t=e.getState,n=e.dispatch;return function(e){return function(r){if("DROP"===r.type){var o=t(),a=r.payload.reason;if("COLLECTING"!==o.phase){if("IDLE"!==o.phase){"DROP_PENDING"===o.phase&&o.isWaiting&&ll(!1),"DRAGGING"!==o.phase&&"DROP_PENDING"!==o.phase&&ll(!1);var i=o.critical,l=o.dimensions,u=l.draggables[o.critical.draggable.id],s=function(e){var t=e.draggables,n=e.reason,r=e.lastImpact,o=e.home,a=e.viewport,i=e.onLiftImpact;return r.at&&"DROP"===n?"REORDER"===r.at.type?{impact:r,didDropInsideDroppable:!0}:{impact:wt({},r,{displaced:Gl}),didDropInsideDroppable:!0}:{impact:Mu({draggables:t,impact:i,destination:o,viewport:a,forceShouldAnimate:!0}),didDropInsideDroppable:!1}}({reason:a,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),c=s.impact,f=s.didDropInsideDroppable,d=f?Vl(c):null,p=f?Ul(c):null,m={index:i.draggable.index,droppableId:i.droppable.id},h={draggableId:u.descriptor.id,type:u.descriptor.type,source:m,reason:a,mode:o.movementMode,destination:d,combine:p},v=function(e){var t=e.impact,n=e.draggable,r=e.dimensions,o=e.viewport,a=e.afterCritical,i=r.draggables,l=r.droppables,u=Cu(t),s=u?l[u]:null,c=l[n.descriptor.droppableId],f=Fu({impact:t,draggable:n,draggables:i,afterCritical:a,droppable:s||c,viewport:o});return yl(f,n.client.borderBox.center)}({impact:c,draggable:u,dimensions:l,viewport:o.viewport,afterCritical:o.afterCritical}),g={critical:o.critical,afterCritical:o.afterCritical,result:h,impact:c};if(!_l(o.current.client.offset,v)||Boolean(h.combine)){var b=function(e){var t=e.current,n=e.destination,r=e.reason,o=Sl(t,n);if(o<=0)return vs;if(o>=1500)return gs;var a=vs+bs*(o/1500);return Number(("CANCEL"===r?.6*a:a).toFixed(2))}({current:o.current.client.offset,destination:v,reason:a});n(function(e){return{type:"DROP_ANIMATE",payload:e}}({newHomeClientOffset:v,dropDuration:b,completed:g}))}else n(as({completed:g}))}}else n(function(e){return{type:"DROP_PENDING",payload:e}}({reason:a}))}else e(r)}}},_s=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function ws(e){var t=e.onWindowScroll;var n,r=nl((function(){t(_s())})),o=(n=r,{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(e){e.target!==window&&e.target!==window.document||n()}}),a=ol;function i(){return a!==ol}return{start:function(){i()&&ll(!1),a=al(window,[o])},stop:function(){i()||ll(!1),r.cancel(),a(),a=ol},isActive:i}}var Es=function(e){var t=ws({onWindowScroll:function(t){e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return function(e){return function(n){t.isActive()||"INITIAL_PUBLISH"!==n.type||t.start(),t.isActive()&&function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(n)&&t.stop(),e(n)}}},Ss=function(){var e=[];return{add:function(t){var n=setTimeout((function(){return function(t){var n=Nl(e,(function(e){return e.timerId===t}));-1===n&&ll(!1),e.splice(n,1)[0].callback()}(n)})),r={timerId:n,callback:t};e.push(r)},flush:function(){if(e.length){var t=[].concat(e);e.length=0,t.forEach((function(e){clearTimeout(e.timerId),e.callback()}))}}}},Os=function(e,t){Uu(),t(),zu()},xs=function(e,t){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t}},Cs=function(e,t,n,r){if(e){var o=function(e){var t=!1,n=!1,r=setTimeout((function(){n=!0})),o=function(o){t||n||(t=!0,e(o),clearTimeout(r))};return o.wasCalled=function(){return t},o}(n);e(t,{announce:o}),o.wasCalled()||n(r(t))}else n(r(t))},ks=function(e,t){var n=function(e,t){var n=Ss(),r=null,o=function(n){r||ll(!1),r=null,Os(0,(function(){return Cs(e().onDragEnd,n,t,vl)}))};return{beforeCapture:function(t,n){r&&ll(!1),Os(0,(function(){var r=e().onBeforeCapture;r&&r({draggableId:t,mode:n})}))},beforeStart:function(t,n){r&&ll(!1),Os(0,(function(){var r=e().onBeforeDragStart;r&&r(xs(t,n))}))},start:function(o,a){r&&ll(!1);var i=xs(o,a);r={mode:a,lastCritical:o,lastLocation:i.source,lastCombine:null},n.add((function(){Os(0,(function(){return Cs(e().onDragStart,i,t,ml)}))}))},update:function(o,a){var i=Vl(a),l=Ul(a);r||ll(!1);var u=!function(e,t){if(e===t)return!0;var n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r}(o,r.lastCritical);u&&(r.lastCritical=o);var s,c,f=(s=r.lastLocation,c=i,!(null==s&&null==c||null!=s&&null!=c&&s.droppableId===c.droppableId&&s.index===c.index));f&&(r.lastLocation=i);var d=!function(e,t){return null==e&&null==t||null!=e&&null!=t&&(e.draggableId===t.draggableId&&e.droppableId===t.droppableId)}(r.lastCombine,l);if(d&&(r.lastCombine=l),u||f||d){var p=wt({},xs(o,r.mode),{combine:l,destination:i});n.add((function(){Os(0,(function(){return Cs(e().onDragUpdate,p,t,hl)}))}))}},flush:function(){r||ll(!1),n.flush()},drop:o,abort:function(){if(r){var e=wt({},xs(r.lastCritical,r.mode),{combine:null,destination:null,reason:"CANCEL"});o(e)}}}}(e,t);return function(e){return function(t){return function(r){if("BEFORE_INITIAL_CAPTURE"!==r.type){if("INITIAL_PUBLISH"===r.type){var o=r.payload.critical;return n.beforeStart(o,r.payload.movementMode),t(r),void n.start(o,r.payload.movementMode)}if("DROP_COMPLETE"===r.type){var a=r.payload.completed.result;return n.flush(),t(r),void n.drop(a)}if(t(r),"FLUSH"!==r.type){var i=e.getState();"DRAGGING"===i.phase&&n.update(i.critical,i.impact)}else n.abort()}else n.beforeCapture(r.payload.draggableId,r.payload.movementMode)}}}},Ps=function(e){return function(t){return function(n){if("DROP_ANIMATION_FINISHED"===n.type){var r=e.getState();"DROP_ANIMATING"!==r.phase&&ll(!1),e.dispatch(as({completed:r.completed}))}else t(n)}}},Is=function(e){var t=null,n=null;return function(r){return function(o){if("FLUSH"!==o.type&&"DROP_COMPLETE"!==o.type&&"DROP_ANIMATION_FINISHED"!==o.type||(n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)),r(o),"DROP_ANIMATE"===o.type){var a={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};n=requestAnimationFrame((function(){n=null,t=al(window,[a])}))}}}},Ds=function(e){return function(t){return function(n){if(t(n),"PUBLISH_WHILE_DRAGGING"===n.type){var r=e.getState();"DROP_PENDING"===r.phase&&(r.isWaiting||e.dispatch(is({reason:r.reason})))}}}},Rs=ui,Ns=function(e){var t,n=e.dimensionMarshal,r=e.focusMarshal,o=e.styleMarshal,a=e.getResponders,i=e.announce,l=e.autoScroller;return ni(Yu,Rs(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},a=t.map((function(e){return e(o)}));return li({},n,{dispatch:r=ui.apply(void 0,a)(n.dispatch)})}}}((t=o,function(){return function(e){return function(n){"INITIAL_PUBLISH"===n.type&&t.dragging(),"DROP_ANIMATE"===n.type&&t.dropping(n.payload.completed.result.reason),"FLUSH"!==n.type&&"DROP_COMPLETE"!==n.type||t.resting(),e(n)}}}),function(e){return function(){return function(t){return function(n){"DROP_COMPLETE"!==n.type&&"FLUSH"!==n.type&&"DROP_ANIMATE"!==n.type||e.stopPublishing(),t(n)}}}}(n),function(e){return function(t){var n=t.getState,r=t.dispatch;return function(t){return function(o){if("LIFT"===o.type){var a=o.payload,i=a.id,l=a.clientSelection,u=a.movementMode,s=n();"DROP_ANIMATING"===s.phase&&r(as({completed:s.completed})),"IDLE"!==n().phase&&ll(!1),r({type:"FLUSH",payload:null}),r({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:i,movementMode:u}});var c={draggableId:i,scrollOptions:{shouldPublishImmediately:"SNAP"===u}},f=e.startPublishing(c),d=f.critical,p=f.dimensions,m=f.viewport;r(function(e){return{type:"INITIAL_PUBLISH",payload:e}}({critical:d,dimensions:p,clientSelection:l,movementMode:u,viewport:m}))}else t(o)}}}}(n),ys,Ps,Is,Ds,function(e){return function(t){return function(n){return function(r){if(function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(r))return e.stop(),void n(r);if("INITIAL_PUBLISH"===r.type){n(r);var o=t.getState();return"DRAGGING"!==o.phase&&ll(!1),void e.start(o)}n(r),e.scroll(t.getState())}}}}(l),Es,function(e){var t=!1;return function(){return function(n){return function(r){if("INITIAL_PUBLISH"===r.type)return t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),void e.tryRestoreFocusRecorded();if(n(r),t){if("FLUSH"===r.type)return t=!1,void e.tryRestoreFocusRecorded();if("DROP_COMPLETE"===r.type){t=!1;var o=r.payload.completed.result;o.combine&&e.tryShiftRecord(o.draggableId,o.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}}(r),ks(a,i))))};var Ts=function(e){var t=e.scrollHeight,n=e.scrollWidth,r=e.height,o=e.width,a=yl({x:n,y:t},{x:o,y:r});return{x:Math.max(0,a.x),y:Math.max(0,a.y)}},Ls=function(){var e=document.documentElement;return e||ll(!1),e},As=function(){var e=Ls();return Ts({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},js=function(e){var t=e.critical,n=e.scrollOptions,r=e.registry;Uu();var o,a,i,l,u,s,c,f=(o=_s(),a=As(),i=o.y,l=o.x,u=Ls(),s=u.clientWidth,c=u.clientHeight,{frame:qi({top:i,left:l,right:l+s,bottom:i+c}),scroll:{initial:o,current:o,max:a,diff:{value:gl,displacement:gl}}}),d=f.scroll.current,p=t.droppable,m=r.droppable.getAllByType(p.type).map((function(e){return e.callbacks.getDimensionAndWatchScroll(d,n)})),h=r.draggable.getAllByType(t.draggable.type).map((function(e){return e.getDimension(d)})),v={draggables:jl(h),droppables:Al(m)};return zu(),{dimensions:v,critical:t,viewport:f}};function Ms(e,t,n){return n.descriptor.id!==t.id&&(n.descriptor.type===t.type&&"virtual"===e.droppable.getById(n.descriptor.droppableId).descriptor.mode)}var Fs,Bs,Vs=function(e,t){var n=null,r=function(e){var t=e.registry,n=e.callbacks,r={additions:{},removals:{},modified:{}},o=null,a=function(){o||(n.collectionStarting(),o=requestAnimationFrame((function(){o=null,Uu();var e=r,a=e.additions,i=e.removals,l=e.modified,u=Object.keys(a).map((function(e){return t.draggable.getById(e).getDimension(gl)})).sort((function(e,t){return e.descriptor.index-t.descriptor.index})),s=Object.keys(l).map((function(e){return{droppableId:e,scroll:t.droppable.getById(e).callbacks.getScrollWhileDragging()}})),c={additions:u,removals:Object.keys(i),modified:s};r={additions:{},removals:{},modified:{}},zu(),n.publish(c)})))};return{add:function(e){var t=e.descriptor.id;r.additions[t]=e,r.modified[e.descriptor.droppableId]=!0,r.removals[t]&&delete r.removals[t],a()},remove:function(e){var t=e.descriptor;r.removals[t.id]=!0,r.modified[t.droppableId]=!0,r.additions[t.id]&&delete r.additions[t.id],a()},stop:function(){o&&(cancelAnimationFrame(o),o=null,r={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),o=function(t){n||ll(!1);var o=n.critical.draggable;"ADDITION"===t.type&&Ms(e,o,t.value)&&r.add(t.value),"REMOVAL"===t.type&&Ms(e,o,t.value)&&r.remove(t.value)};return{updateDroppableIsEnabled:function(r,o){e.droppable.exists(r)||ll(!1),n&&t.updateDroppableIsEnabled({id:r,isEnabled:o})},updateDroppableIsCombineEnabled:function(r,o){n&&(e.droppable.exists(r)||ll(!1),t.updateDroppableIsCombineEnabled({id:r,isCombineEnabled:o}))},scrollDroppable:function(t,r){n&&e.droppable.getById(t).callbacks.scroll(r)},updateDroppableScroll:function(r,o){n&&(e.droppable.exists(r)||ll(!1),t.updateDroppableScroll({id:r,newScroll:o}))},startPublishing:function(t){n&&ll(!1);var r=e.draggable.getById(t.draggableId),a=e.droppable.getById(r.descriptor.droppableId),i={draggable:r.descriptor,droppable:a.descriptor},l=e.subscribe(o);return n={critical:i,unsubscribe:l},js({critical:i,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:function(){if(n){r.stop();var t=n.critical.droppable;e.droppable.getAllByType(t.type).forEach((function(e){return e.callbacks.dragStopped()})),n.unsubscribe(),n=null}}}},Us=function(e,t){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&(e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason)},zs=function(e){window.scrollBy(e.x,e.y)},Hs=$o((function(e){return Ml(e).filter((function(e){return!!e.isEnabled&&!!e.frame}))})),Ws=function(e){var t=e.center,n=e.destination,r=e.droppables;if(n){var o=r[n];return o.frame?o:null}return function(e,t){return Tl(Hs(t),(function(t){return t.frame||ll(!1),Iu(t.frame.pageMarginBox)(e)}))}(t,r)},Gs=.25,qs=.05,$s=28,Ys=function(e){return Math.pow(e,2)},Qs={stopDampeningAt:1200,accelerateAt:360},Ks=function(e){var t=e.startOfRange,n=e.endOfRange,r=e.current,o=n-t;return 0===o?0:(r-t)/o},Xs=Qs.accelerateAt,Js=Qs.stopDampeningAt,Zs=function(e){var t=e.distanceToEdge,n=e.thresholds,r=e.dragStartTime,o=e.shouldUseTimeDampening,a=function(e,t){if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return $s;if(e===t.startScrollingFrom)return 1;var n=Ks({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),r=$s*Ys(1-n);return Math.ceil(r)}(t,n);return 0===a?0:o?Math.max(function(e,t){var n=t,r=Js,o=Date.now()-n;if(o>=Js)return e;if(o<Xs)return 1;var a=Ks({startOfRange:Xs,endOfRange:r,current:o}),i=e*Ys(a);return Math.ceil(i)}(a,r),1):a},ec=function(e){var t=e.container,n=e.distanceToEdges,r=e.dragStartTime,o=e.axis,a=e.shouldUseTimeDampening,i=function(e,t){return{startScrollingFrom:e[t.size]*Gs,maxScrollValueAt:e[t.size]*qs}}(t,o);return n[o.end]<n[o.start]?Zs({distanceToEdge:n[o.end],thresholds:i,dragStartTime:r,shouldUseTimeDampening:a}):-1*Zs({distanceToEdge:n[o.start],thresholds:i,dragStartTime:r,shouldUseTimeDampening:a})},tc=xl((function(e){return 0===e?0:e})),nc=function(e){var t=e.dragStartTime,n=e.container,r=e.subject,o=e.center,a=e.shouldUseTimeDampening,i={top:o.y-n.top,right:n.right-o.x,bottom:n.bottom-o.y,left:o.x-n.left},l=ec({container:n,distanceToEdges:i,dragStartTime:t,axis:Kl,shouldUseTimeDampening:a}),u=ec({container:n,distanceToEdges:i,dragStartTime:t,axis:Xl,shouldUseTimeDampening:a}),s=tc({x:u,y:l});if(_l(s,gl))return null;var c=function(e){var t=e.container,n=e.subject,r=e.proposedScroll,o=n.height>t.height,a=n.width>t.width;return a||o?a&&o?null:{x:a?0:r.x,y:o?0:r.y}:r}({container:n,subject:r,proposedScroll:s});return c?_l(c,gl)?null:c:null},rc=xl((function(e){return 0===e?0:e>0?1:-1})),oc=(Fs=function(e,t){return e<0?e:e>t?e-t:0},function(e){var t=e.current,n=e.max,r=e.change,o=bl(t,r),a={x:Fs(o.x,n.x),y:Fs(o.y,n.y)};return _l(a,gl)?null:a}),ac=function(e){var t=e.max,n=e.current,r=e.change,o={x:Math.max(n.x,t.x),y:Math.max(n.y,t.y)},a=rc(r),i=oc({max:o,current:n,change:a});return!i||(0!==a.x&&0===i.x||0!==a.y&&0===i.y)},ic=function(e,t){return ac({current:e.scroll.current,max:e.scroll.max,change:t})},lc=function(e,t){var n=e.frame;return!!n&&ac({current:n.scroll.current,max:n.scroll.max,change:t})},uc=function(e){var t=e.state,n=e.dragStartTime,r=e.shouldUseTimeDampening,o=e.scrollWindow,a=e.scrollDroppable,i=t.current.page.borderBoxCenter,l=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){var u=function(e){var t=e.viewport,n=e.subject,r=e.center,o=e.dragStartTime,a=e.shouldUseTimeDampening,i=nc({dragStartTime:o,container:t.frame,subject:n,center:r,shouldUseTimeDampening:a});return i&&ic(t,i)?i:null}({dragStartTime:n,viewport:t.viewport,subject:l,center:i,shouldUseTimeDampening:r});if(u)return void o(u)}var s=Ws({center:i,destination:Cu(t.impact),droppables:t.dimensions.droppables});if(s){var c=function(e){var t=e.droppable,n=e.subject,r=e.center,o=e.dragStartTime,a=e.shouldUseTimeDampening,i=t.frame;if(!i)return null;var l=nc({dragStartTime:o,container:i.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:a});return l&&lc(t,l)?l:null}({dragStartTime:n,droppable:s,subject:l,center:i,shouldUseTimeDampening:r});c&&a(s.descriptor.id,c)}},sc=function(e){var t=e.move,n=e.scrollDroppable,r=e.scrollWindow,o=function(e,t){if(!lc(e,t))return t;var r=function(e,t){var n=e.frame;return n&&lc(e,t)?oc({current:n.scroll.current,max:n.scroll.max,change:t}):null}(e,t);if(!r)return n(e.descriptor.id,t),null;var o=yl(t,r);return n(e.descriptor.id,o),yl(t,o)},a=function(e,t,n){if(!e)return n;if(!ic(t,n))return n;var o=function(e,t){if(!ic(e,t))return null;var n=e.scroll.max,r=e.scroll.current;return oc({current:r,max:n,change:t})}(t,n);if(!o)return r(n),null;var a=yl(n,o);return r(a),yl(n,a)};return function(e){var n=e.scrollJumpRequest;if(n){var r=Cu(e.impact);r||ll(!1);var i=o(e.dimensions.droppables[r],n);if(i){var l=e.viewport,u=a(e.isWindowScrollAllowed,l,i);u&&function(e,n){var r=bl(e.current.client.selection,n);t({client:r})}(e,u)}}}},cc=function(e){var t=e.scrollDroppable,n=e.scrollWindow,r=e.move,o=function(e){var t=e.scrollWindow,n=e.scrollDroppable,r=nl(t),o=nl(n),a=null,i=function(e){a||ll(!1);var t=a,n=t.shouldUseTimeDampening,i=t.dragStartTime;uc({state:e,scrollWindow:r,scrollDroppable:o,dragStartTime:i,shouldUseTimeDampening:n})};return{start:function(e){Uu(),a&&ll(!1);var t=Date.now(),n=!1,r=function(){n=!0};uc({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:r,scrollDroppable:r}),a={dragStartTime:t,shouldUseTimeDampening:n},zu(),n&&i(e)},stop:function(){a&&(r.cancel(),o.cancel(),a=null)},scroll:i}}({scrollWindow:n,scrollDroppable:t}),a=sc({move:r,scrollWindow:n,scrollDroppable:t});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&a(e):o.scroll(e))},start:o.start,stop:o.stop}},fc={base:Bs="data-rbd-drag-handle",draggableId:Bs+"-draggable-id",contextId:Bs+"-context-id"},dc=function(){var e="data-rbd-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),pc=function(){var e="data-rbd-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),mc={contextId:"data-rbd-scroll-container-context-id"},hc=function(e,t){return e.map((function(e){var n=e.styles[t];return n?e.selector+" { "+n+" }":""})).join(" ")},vc="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?o.useLayoutEffect:o.useEffect,gc=function(){var e=document.querySelector("head");return e||ll(!1),e},bc=function(e){var t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function yc(e,t){var n=Hi((function(){return function(e){var t,n,r,o=(t=e,function(e){return"["+e+'="'+t+'"]'}),a=(n="\n cursor: -webkit-grab;\n cursor: grab;\n ",{selector:o(fc.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:n,dragging:"pointer-events: none;",dropAnimating:n}}),i=[(r="\n transition: "+ds.outOfTheWay+";\n ",{selector:o(dc.contextId),styles:{dragging:r,dropAnimating:r,userCancel:r}}),a,{selector:o(pc.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n overflow-anchor: none;\n "}}];return{always:hc(i,"always"),resting:hc(i,"resting"),dragging:hc(i,"dragging"),dropAnimating:hc(i,"dropAnimating"),userCancel:hc(i,"userCancel")}}(e)}),[e]),r=Object(o.useRef)(null),a=Object(o.useRef)(null),i=Wi($o((function(e){var t=a.current;t||ll(!1),t.textContent=e})),[]),l=Wi((function(e){var t=r.current;t||ll(!1),t.textContent=e}),[]);vc((function(){(r.current||a.current)&&ll(!1);var o=bc(t),u=bc(t);return r.current=o,a.current=u,o.setAttribute("data-rbd-always",e),u.setAttribute("data-rbd-dynamic",e),gc().appendChild(o),gc().appendChild(u),l(n.always),i(n.resting),function(){var e=function(e){var t=e.current;t||ll(!1),gc().removeChild(t),e.current=null};e(r),e(a)}}),[t,l,i,n.always,n.resting,e]);var u=Wi((function(){return i(n.dragging)}),[i,n.dragging]),s=Wi((function(e){i("DROP"!==e?n.userCancel:n.dropAnimating)}),[i,n.dropAnimating,n.userCancel]),c=Wi((function(){a.current&&i(n.resting)}),[i,n.resting]);return Hi((function(){return{dragging:u,dropping:s,resting:c}}),[u,s,c])}var _c=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function wc(e){return e instanceof _c(e).HTMLElement}function Ec(e,t){var n="["+fc.contextId+'="'+e+'"]',r=Ll(document.querySelectorAll(n));if(!r.length)return null;var o=Tl(r,(function(e){return e.getAttribute(fc.draggableId)===t}));return o&&wc(o)?o:null}function Sc(){var e={draggables:{},droppables:{}},t=[];function n(e){t.length&&t.forEach((function(t){return t(e)}))}function r(t){return e.draggables[t]||null}function o(t){return e.droppables[t]||null}return{draggable:{register:function(t){e.draggables[t.descriptor.id]=t,n({type:"ADDITION",value:t})},update:function(t,n){var r=e.draggables[n.descriptor.id];r&&r.uniqueId===t.uniqueId&&(delete e.draggables[n.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:function(t){var o=t.descriptor.id,a=r(o);a&&t.uniqueId===a.uniqueId&&(delete e.draggables[o],n({type:"REMOVAL",value:t}))},getById:function(e){var t=r(e);return t||ll(!1),t},findById:r,exists:function(e){return Boolean(r(e))},getAllByType:function(t){return Rl(e.draggables).filter((function(e){return e.descriptor.type===t}))}},droppable:{register:function(t){e.droppables[t.descriptor.id]=t},unregister:function(t){var n=o(t.descriptor.id);n&&t.uniqueId===n.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){var t=o(e);return t||ll(!1),t},findById:o,exists:function(e){return Boolean(o(e))},getAllByType:function(t){return Rl(e.droppables).filter((function(e){return e.descriptor.type===t}))}},subscribe:function(e){return t.push(e),function(){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var Oc=a.a.createContext(null),xc=function(){var e=document.body;return e||ll(!1),e},Cc={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"};var kc=0,Pc={separator:"::"};function Ic(e,t){return void 0===t&&(t=Pc),Hi((function(){return""+e+t.separator+kc++}),[t.separator,e])}var Dc=a.a.createContext(null);function Rc(e){0}function Nc(e,t){Rc()}function Tc(){Nc()}function Lc(e){var t=Object(o.useRef)(e);return Object(o.useEffect)((function(){t.current=e})),t}var Ac,jc=((Ac={})[13]=!0,Ac[9]=!0,Ac),Mc=function(e){jc[e.keyCode]&&e.preventDefault()},Fc=function(){var e="visibilitychange";return"undefined"==typeof document?e:Tl([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],(function(e){return"on"+e in document}))||e}();var Bc,Vc={type:"IDLE"};function Uc(e){var t=e.cancel,n=e.completed,r=e.getPhase,o=e.setPhase;return[{eventName:"mousemove",fn:function(e){var t=e.button,n=e.clientX,a=e.clientY;if(0===t){var i={x:n,y:a},l=r();if("DRAGGING"===l.type)return e.preventDefault(),void l.actions.move(i);"PENDING"!==l.type&&ll(!1);var u=l.point;if(s=u,c=i,Math.abs(c.x-s.x)>=5||Math.abs(c.y-s.y)>=5){var s,c;e.preventDefault();var f=l.actions.fluidLift(i);o({type:"DRAGGING",actions:f})}}}},{eventName:"mouseup",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===r().type&&e.preventDefault(),t()}},{eventName:"keydown",fn:function(e){if("PENDING"!==r().type)return 27===e.keyCode?(e.preventDefault(),void t()):void Mc(e);t()}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===r().type&&t()}},{eventName:"webkitmouseforcedown",fn:function(e){var n=r();"IDLE"===n.type&&ll(!1),n.actions.shouldRespectForcePress()?t():e.preventDefault()}},{eventName:Fc,fn:t}]}function zc(){}var Hc=((Bc={})[34]=!0,Bc[33]=!0,Bc[36]=!0,Bc[35]=!0,Bc);function Wc(e,t){function n(){t(),e.cancel()}return[{eventName:"keydown",fn:function(r){return 27===r.keyCode?(r.preventDefault(),void n()):32===r.keyCode?(r.preventDefault(),t(),void e.drop()):40===r.keyCode?(r.preventDefault(),void e.moveDown()):38===r.keyCode?(r.preventDefault(),void e.moveUp()):39===r.keyCode?(r.preventDefault(),void e.moveRight()):37===r.keyCode?(r.preventDefault(),void e.moveLeft()):void(Hc[r.keyCode]?r.preventDefault():Mc(r))}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:Fc,fn:n}]}var Gc={type:"IDLE"};var qc={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function $c(e,t){var n=t.target;return!!wc(n)&&function e(t,n){if(null==n)return!1;if(Boolean(qc[n.tagName.toLowerCase()]))return!0;var r=n.getAttribute("contenteditable");return"true"===r||""===r||n!==t&&e(t,n.parentElement)}(e,n)}var Yc=function(e){return qi(e.getBoundingClientRect()).center};var Qc="undefined"==typeof document?"matches":Tl(["matches","msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}))||"matches";function Kc(e,t){return e.closest?e.closest(t):function e(t,n){return null==t?null:t[Qc](n)?t:e(t.parentElement,n)}(e,t)}function Xc(e,t){var n,r=t.target;if(!((n=r)instanceof _c(n).Element))return null;var o=Kc(r,function(e){return"["+fc.contextId+'="'+e+'"]'}(e));return o&&wc(o)?o:null}function Jc(e){e.preventDefault()}function Zc(e){var t=e.expected,n=e.phase,r=e.isLockActive;e.shouldWarn;return!!r()&&t===n}function ef(e){var t=e.lockAPI,n=e.store,r=e.registry,o=e.draggableId;if(t.isClaimed())return!1;var a=r.draggable.findById(o);return!!a&&(!!a.options.isEnabled&&!!Us(n.getState(),o))}function tf(e){var t=e.lockAPI,n=e.contextId,r=e.store,o=e.registry,a=e.draggableId,i=e.forceSensorStop,l=e.sourceEvent;if(!ef({lockAPI:t,store:r,registry:o,draggableId:a}))return null;var u=o.draggable.getById(a),s=function(e,t){var n="["+dc.contextId+'="'+e+'"]',r=Tl(Ll(document.querySelectorAll(n)),(function(e){return e.getAttribute(dc.id)===t}));return r&&wc(r)?r:null}(n,u.descriptor.id);if(!s)return null;if(l&&!u.options.canDragInteractiveElements&&$c(s,l))return null;var c=t.claim(i||ol),f="PRE_DRAG";function d(){return u.options.shouldRespectForcePress}function p(){return t.isActive(c)}var m=function(e,t){Zc({expected:e,phase:f,isLockActive:p,shouldWarn:!0})&&r.dispatch(t())}.bind(null,"DRAGGING");function h(e){function n(){t.release(),f="COMPLETED"}function o(t,o){if(void 0===o&&(o={shouldBlockNextClick:!1}),e.cleanup(),o.shouldBlockNextClick){var a=al(window,[{eventName:"click",fn:Jc,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(a)}n(),r.dispatch(is({reason:t}))}return"PRE_DRAG"!==f&&(n(),"PRE_DRAG"!==f&&ll(!1)),r.dispatch(function(e){return{type:"LIFT",payload:e}}(e.liftActionArgs)),f="DRAGGING",wt({isActive:function(){return Zc({expected:"DRAGGING",phase:f,isLockActive:p,shouldWarn:!1})},shouldRespectForcePress:d,drop:function(e){return o("DROP",e)},cancel:function(e){return o("CANCEL",e)}},e.actions)}return{isActive:function(){return Zc({expected:"PRE_DRAG",phase:f,isLockActive:p,shouldWarn:!1})},shouldRespectForcePress:d,fluidLift:function(e){var t=nl((function(e){m((function(){return es({client:e})}))}));return wt({},h({liftActionArgs:{id:a,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return t.cancel()},actions:{move:t}}),{move:t})},snapLift:function(){var e={moveUp:function(){return m(ts)},moveRight:function(){return m(rs)},moveDown:function(){return m(ns)},moveLeft:function(){return m(os)}};return h({liftActionArgs:{id:a,clientSelection:Yc(s),movementMode:"SNAP"},cleanup:ol,actions:e})},abort:function(){Zc({expected:"PRE_DRAG",phase:f,isLockActive:p,shouldWarn:!0})&&t.release()}}}var nf=[function(e){var t=Object(o.useRef)(Vc),n=Object(o.useRef)(ol),r=Hi((function(){return{eventName:"mousedown",fn:function(t){if(!t.defaultPrevented&&0===t.button&&!(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)){var r=e.findClosestDraggableId(t);if(r){var o=e.tryGetLock(r,l,{sourceEvent:t});if(o){t.preventDefault();var a={x:t.clientX,y:t.clientY};n.current(),c(o,a)}}}}}}),[e]),a=Hi((function(){return{eventName:"webkitmouseforcewillbegin",fn:function(t){if(!t.defaultPrevented){var n=e.findClosestDraggableId(t);if(n){var r=e.findOptionsForDraggable(n);r&&(r.shouldRespectForcePress||e.canGetLock(n)&&t.preventDefault())}}}}}),[e]),i=Wi((function(){n.current=al(window,[a,r],{passive:!1,capture:!0})}),[a,r]),l=Wi((function(){"IDLE"!==t.current.type&&(t.current=Vc,n.current(),i())}),[i]),u=Wi((function(){var e=t.current;l(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[l]),s=Wi((function(){var e=Uc({cancel:u,completed:l,getPhase:function(){return t.current},setPhase:function(e){t.current=e}});n.current=al(window,e,{capture:!0,passive:!1})}),[u,l]),c=Wi((function(e,n){"IDLE"!==t.current.type&&ll(!1),t.current={type:"PENDING",point:n,actions:e},s()}),[s]);vc((function(){return i(),function(){n.current()}}),[i])},function(e){var t=Object(o.useRef)(zc),n=Hi((function(){return{eventName:"keydown",fn:function(n){if(!n.defaultPrevented&&32===n.keyCode){var o=e.findClosestDraggableId(n);if(o){var a=e.tryGetLock(o,u,{sourceEvent:n});if(a){n.preventDefault();var i=!0,l=a.snapLift();t.current(),t.current=al(window,Wc(l,u),{capture:!0,passive:!1})}}}function u(){i||ll(!1),i=!1,t.current(),r()}}}}),[e]),r=Wi((function(){t.current=al(window,[n],{passive:!1,capture:!0})}),[n]);vc((function(){return r(),function(){t.current()}}),[r])},function(e){var t=Object(o.useRef)(Gc),n=Object(o.useRef)(ol),r=Wi((function(){return t.current}),[]),a=Wi((function(e){t.current=e}),[]),i=Hi((function(){return{eventName:"touchstart",fn:function(t){if(!t.defaultPrevented){var r=e.findClosestDraggableId(t);if(r){var o=e.tryGetLock(r,u,{sourceEvent:t});if(o){var a=t.touches[0],i={x:a.clientX,y:a.clientY};n.current(),d(o,i)}}}}}}),[e]),l=Wi((function(){n.current=al(window,[i],{capture:!0,passive:!1})}),[i]),u=Wi((function(){var e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),a(Gc),n.current(),l())}),[l,a]),s=Wi((function(){var e=t.current;u(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[u]),c=Wi((function(){var e={capture:!0,passive:!1},t={cancel:s,completed:u,getPhase:r},o=al(window,function(e){var t=e.cancel,n=e.completed,r=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var n=r();if("DRAGGING"===n.type){n.hasMoved=!0;var o=e.touches[0],a={x:o.clientX,y:o.clientY};e.preventDefault(),n.actions.move(a)}else t()}},{eventName:"touchend",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===r().type?(e.preventDefault(),t()):t()}},{eventName:"touchforcechange",fn:function(e){var n=r();"IDLE"===n.type&&ll(!1);var o=e.touches[0];if(o&&o.force>=.15){var a=n.actions.shouldRespectForcePress();if("PENDING"!==n.type)return a?n.hasMoved?void e.preventDefault():void t():void e.preventDefault();a&&t()}}},{eventName:Fc,fn:t}]}(t),e),a=al(window,function(e){var t=e.cancel,n=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===n().type?(27===e.keyCode&&e.preventDefault(),t()):t()}},{eventName:Fc,fn:t}]}(t),e);n.current=function(){o(),a()}}),[s,r,u]),f=Wi((function(){var e=r();"PENDING"!==e.type&&ll(!1);var t=e.actions.fluidLift(e.point);a({type:"DRAGGING",actions:t,hasMoved:!1})}),[r,a]),d=Wi((function(e,t){"IDLE"!==r().type&&ll(!1);var n=setTimeout(f,120);a({type:"PENDING",point:t,actions:e,longPressTimerId:n}),c()}),[c,r,a,f]);vc((function(){return l(),function(){n.current();var e=r();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),a(Gc))}}),[r,l,a]),vc((function(){return al(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}];function rf(e){var t=e.contextId,n=e.store,r=e.registry,a=e.customSensors,i=e.enableDefaultSensors,l=[].concat(i?nf:[],a||[]),u=Object(o.useState)((function(){return function(){var e=null;function t(){e||ll(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&ll(!1);var n={abandon:t};return e=n,n},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()}))[0],s=Wi((function(e,t){e.isDragging&&!t.isDragging&&u.tryAbandon()}),[u]);vc((function(){var e=n.getState();return n.subscribe((function(){var t=n.getState();s(e,t),e=t}))}),[u,n,s]),vc((function(){return u.tryAbandon}),[u.tryAbandon]);var c=Wi((function(e){return ef({lockAPI:u,registry:r,store:n,draggableId:e})}),[u,r,n]),f=Wi((function(e,o,a){return tf({lockAPI:u,registry:r,contextId:t,store:n,draggableId:e,forceSensorStop:o,sourceEvent:a&&a.sourceEvent?a.sourceEvent:null})}),[t,u,r,n]),d=Wi((function(e){return function(e,t){var n=Xc(e,t);return n?n.getAttribute(fc.draggableId):null}(t,e)}),[t]),p=Wi((function(e){var t=r.draggable.findById(e);return t?t.options:null}),[r.draggable]),m=Wi((function(){u.isClaimed()&&(u.tryAbandon(),"IDLE"!==n.getState().phase&&n.dispatch({type:"FLUSH",payload:null}))}),[u,n]),h=Wi(u.isClaimed,[u]),v=Hi((function(){return{canGetLock:c,tryGetLock:f,findClosestDraggableId:d,findOptionsForDraggable:p,tryReleaseLock:m,isLockClaimed:h}}),[c,f,d,p,m,h]);Rc();for(var g=0;g<l.length;g++)l[g](v)}function of(e){return e.current||ll(!1),e.current}function af(e){var t=e.contextId,n=e.setCallbacks,r=e.sensors,i=e.nonce,l=e.dragHandleUsageInstructions,u=Object(o.useRef)(null);Tc();var s=Lc(e),c=Wi((function(){return function(e){return{onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}}(s.current)}),[s]),f=function(e){var t=Hi((function(){return function(e){return"rbd-announcement-"+e}(e)}),[e]),n=Object(o.useRef)(null);return Object(o.useEffect)((function(){var e=document.createElement("div");return n.current=e,e.id=t,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),wt(e.style,Cc),xc().appendChild(e),function(){setTimeout((function(){var t=xc();t.contains(e)&&t.removeChild(e),e===n.current&&(n.current=null)}))}}),[t]),Wi((function(e){var t=n.current;t&&(t.textContent=e)}),[])}(t),d=function(e){var t=e.contextId,n=e.text,r=Ic("hidden-text",{separator:"-"}),a=Hi((function(){return"rbd-hidden-text-"+(e={contextId:t,uniqueId:r}).contextId+"-"+e.uniqueId;var e}),[r,t]);return Object(o.useEffect)((function(){var e=document.createElement("div");return e.id=a,e.textContent=n,e.style.display="none",xc().appendChild(e),function(){var t=xc();t.contains(e)&&t.removeChild(e)}}),[a,n]),a}({contextId:t,text:l}),p=yc(t,i),m=Wi((function(e){of(u).dispatch(e)}),[]),h=Hi((function(){return oi({publishWhileDragging:Qu,updateDroppableScroll:Xu,updateDroppableIsEnabled:Ju,updateDroppableIsCombineEnabled:Zu,collectionStarting:Ku},m)}),[m]),v=function(){var e=Hi(Sc,[]);return Object(o.useEffect)((function(){return function(){requestAnimationFrame(e.clean)}}),[e]),e}(),g=Hi((function(){return Vs(v,h)}),[v,h]),b=Hi((function(){return cc(wt({scrollWindow:zs,scrollDroppable:g.scrollDroppable},oi({move:es},m)))}),[g.scrollDroppable,m]),y=function(e){var t=Object(o.useRef)({}),n=Object(o.useRef)(null),r=Object(o.useRef)(null),a=Object(o.useRef)(!1),i=Wi((function(e,n){var r={id:e,focus:n};return t.current[e]=r,function(){var n=t.current;n[e]!==r&&delete n[e]}}),[]),l=Wi((function(t){var n=Ec(e,t);n&&n!==document.activeElement&&n.focus()}),[e]),u=Wi((function(e,t){n.current===e&&(n.current=t)}),[]),s=Wi((function(){r.current||a.current&&(r.current=requestAnimationFrame((function(){r.current=null;var e=n.current;e&&l(e)})))}),[l]),c=Wi((function(e){n.current=null;var t=document.activeElement;t&&t.getAttribute(fc.draggableId)===e&&(n.current=e)}),[]);return vc((function(){return a.current=!0,function(){a.current=!1;var e=r.current;e&&cancelAnimationFrame(e)}}),[]),Hi((function(){return{register:i,tryRecordFocus:c,tryRestoreFocusRecorded:s,tryShiftRecord:u}}),[i,c,s,u])}(t),_=Hi((function(){return Ns({announce:f,autoScroller:b,dimensionMarshal:g,focusMarshal:y,getResponders:c,styleMarshal:p})}),[f,b,g,y,c,p]);u.current=_;var w=Wi((function(){var e=of(u);"IDLE"!==e.getState().phase&&e.dispatch({type:"FLUSH",payload:null})}),[]),E=Wi((function(){var e=of(u).getState();return e.isDragging||"DROP_ANIMATING"===e.phase}),[]);n(Hi((function(){return{isDragging:E,tryAbort:w}}),[E,w]));var S=Wi((function(e){return Us(of(u).getState(),e)}),[]),O=Wi((function(){return Pu(of(u).getState())}),[]),x=Hi((function(){return{marshal:g,focus:y,contextId:t,canLift:S,isMovementAllowed:O,dragHandleUsageInstructionsId:d,registry:v}}),[t,g,d,y,S,O,v]);return rf({contextId:t,store:_,registry:v,customSensors:r,enableDefaultSensors:!1!==e.enableDefaultSensors}),Object(o.useEffect)((function(){return w}),[w]),a.a.createElement(Dc.Provider,{value:x},a.a.createElement(mi,{context:Oc,store:_},e.children))}var lf=0;function uf(e){var t=Hi((function(){return""+lf++}),[]),n=e.dragHandleUsageInstructions||pl;return a.a.createElement(ul,null,(function(r){return a.a.createElement(af,{nonce:e.nonce,contextId:t,setCallbacks:r,dragHandleUsageInstructions:n,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd},e.children)}))}var sf=function(e){return function(t){return e===t}},cf=sf("scroll"),ff=sf("auto"),df=(sf("visible"),function(e,t){return t(e.overflowX)||t(e.overflowY)}),pf=function(e){var t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return df(n,cf)||df(n,ff)},mf=function e(t){return null==t||t===document.body||t===document.documentElement?null:pf(t)?t:e(t.parentElement)},hf=function(e){return{x:e.scrollLeft,y:e.scrollTop}},vf=function(e){return{closestScrollable:mf(e),isFixedOnPage:function e(t){return!!t&&("fixed"===window.getComputedStyle(t).position||e(t.parentElement))}(e)}},gf=function(e){var t=e.ref,n=e.descriptor,r=e.env,o=e.windowScroll,a=e.direction,i=e.isDropDisabled,l=e.isCombineEnabled,u=e.shouldClipSubject,s=r.closestScrollable,c=function(e,t){var n=tl(e);if(!t)return n;if(e!==t)return n;var r=n.paddingBox.top-t.scrollTop,o=n.paddingBox.left-t.scrollLeft,a=r+t.scrollHeight,i=o+t.scrollWidth,l=$i({top:r,right:i,bottom:a,left:o},n.border);return Ki({borderBox:l,margin:n.margin,border:n.border,padding:n.padding})}(t,s),f=Zi(c,o),d=function(){if(!s)return null;var e=tl(s),t={scrollHeight:s.scrollHeight,scrollWidth:s.scrollWidth};return{client:e,page:Zi(e,o),scroll:hf(s),scrollSize:t,shouldClipSubject:u}}();return function(e){var t=e.descriptor,n=e.isEnabled,r=e.isCombineEnabled,o=e.isFixedOnPage,a=e.direction,i=e.client,l=e.page,u=e.closest,s=function(){if(!u)return null;var e=u.scrollSize,t=u.client,n=Ts({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:u.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:u.shouldClipSubject,scroll:{initial:u.scroll,current:u.scroll,max:n,diff:{value:gl,displacement:gl}}}}(),c="vertical"===a?Kl:Xl;return{descriptor:t,isCombineEnabled:r,isFixedOnPage:o,axis:c,isEnabled:n,client:i,page:l,frame:s,subject:Il({page:l,withPlaceholder:null,axis:c,frame:s})}}({descriptor:n,isEnabled:!i,isCombineEnabled:l,isFixedOnPage:r.isFixedOnPage,direction:a,client:c,page:f,closest:d})},bf={passive:!1},yf={passive:!0},_f=function(e){return e.shouldPublishImmediately?bf:yf};function wf(e){var t=Object(o.useContext)(e);return t||ll(!1),t}var Ef=function(e){return e&&e.env.closestScrollable||null};function Sf(){}var Of={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},xf=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate,o=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate;return t||"close"===r?Of:{height:n.client.borderBox.height,width:n.client.borderBox.width,margin:n.client.margin}}({isAnimatingOpenOnMount:t,placeholder:n,animate:r});return{display:n.display,boxSizing:"border-box",width:o.width,height:o.height,marginTop:o.margin.top,marginRight:o.margin.right,marginBottom:o.margin.bottom,marginLeft:o.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==r?ds.placeholder:null}};var Cf=a.a.memo((function(e){var t=Object(o.useRef)(null),n=Wi((function(){t.current&&(clearTimeout(t.current),t.current=null)}),[]),r=e.animate,i=e.onTransitionEnd,l=e.onClose,u=e.contextId,s=Object(o.useState)("open"===e.animate),c=s[0],f=s[1];Object(o.useEffect)((function(){return c?"open"!==r?(n(),f(!1),Sf):t.current?Sf:(t.current=setTimeout((function(){t.current=null,f(!1)})),n):Sf}),[r,c,n]);var d=Wi((function(e){"height"===e.propertyName&&(i(),"close"===r&&l())}),[r,l,i]),p=xf({isAnimatingOpenOnMount:c,animate:e.animate,placeholder:e.placeholder});return a.a.createElement(e.placeholder.tagName,{style:p,"data-rbd-placeholder-context-id":u,onTransitionEnd:d,ref:e.innerRef})})),kf=a.a.createContext(null);var Pf=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={isVisible:Boolean(t.props.on),data:t.props.on,animate:t.props.shouldAnimate&&t.props.on?"open":"none"},t.onClose=function(){"close"===t.state.animate&&t.setState({isVisible:!1})},t}return Xa(t,e),t.getDerivedStateFromProps=function(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}},t.prototype.render=function(){if(!this.state.isVisible)return null;var e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)},t}(a.a.PureComponent),If=5e3,Df=4500,Rf=function(e,t){return t?ds.drop(t.duration):e?ds.snap:ds.fluid},Nf=function(e,t){return e?t?ss.drop:ss.combining:null};function Tf(e){return"DRAGGING"===e.type?(r=(n=e).dimension.client,o=n.offset,a=n.combineWith,i=n.dropping,l=Boolean(a),u=function(e){return null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode}(n),s=Boolean(i),c=s?hs(o,l):ms(o),{position:"fixed",top:r.marginBox.top,left:r.marginBox.left,boxSizing:"border-box",width:r.borderBox.width,height:r.borderBox.height,transition:Rf(u,i),transform:c,opacity:Nf(l,s),zIndex:s?Df:If,pointerEvents:"none"}):{transform:ms((t=e).offset),transition:t.shouldAnimateDisplacement?null:"none"};var t,n,r,o,a,i,l,u,s,c}function Lf(e){var t=Ic("draggable"),n=e.descriptor,r=e.registry,a=e.getDraggableRef,i=e.canDragInteractiveElements,l=e.shouldRespectForcePress,u=e.isEnabled,s=Hi((function(){return{canDragInteractiveElements:i,shouldRespectForcePress:l,isEnabled:u}}),[i,u,l]),c=Wi((function(e){var t=a();return t||ll(!1),function(e,t,n){void 0===n&&(n=gl);var r=window.getComputedStyle(t),o=t.getBoundingClientRect(),a=el(o,r),i=Zi(a,n);return{descriptor:e,placeholder:{client:a,tagName:t.tagName.toLowerCase(),display:r.display},displaceBy:{x:a.marginBox.width,y:a.marginBox.height},client:a,page:i}}(n,t,e)}),[n,a]),f=Hi((function(){return{uniqueId:t,descriptor:n,options:s,getDimension:c}}),[n,c,s,t]),d=Object(o.useRef)(f),p=Object(o.useRef)(!0);vc((function(){return r.draggable.register(d.current),function(){return r.draggable.unregister(d.current)}}),[r.draggable]),vc((function(){if(p.current)p.current=!1;else{var e=d.current;d.current=f,r.draggable.update(f,e)}}),[f,r.draggable])}function Af(e,t,n){Nc()}function jf(e){e.preventDefault()}var Mf=function(e,t){return e===t},Ff=function(e){var t=e.combine,n=e.destination;return n?n.droppableId:t?t.droppableId:null};function Bf(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var Vf={mapped:{type:"SECONDARY",offset:gl,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Bf(null)}};var Uf=Vi((function(){var e,t,n,r=(e=$o((function(e,t){return{x:e,y:t}})),t=$o((function(e,t,n,r,o){return{isDragging:!0,isClone:t,isDropAnimating:Boolean(o),dropAnimation:o,mode:e,draggingOver:n,combineWith:r,combineTargetFor:null}})),n=$o((function(e,n,r,o,a,i,l){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:a,combineWith:i,mode:n,offset:e,dimension:r,forceShouldAnimate:l,snapshot:t(n,o,a,i,null)}}})),function(r,o){if(r.isDragging){if(r.critical.draggable.id!==o.draggableId)return null;var a=r.current.client.offset,i=r.dimensions.draggables[o.draggableId],l=Cu(r.impact),u=(c=r.impact).at&&"COMBINE"===c.at.type?c.at.combine.draggableId:null,s=r.forceShouldAnimate;return n(e(a.x,a.y),r.movementMode,i,o.isClone,l,u,s)}var c;if("DROP_ANIMATING"===r.phase){var f=r.completed;if(f.result.draggableId!==o.draggableId)return null;var d=o.isClone,p=r.dimensions.draggables[o.draggableId],m=f.result,h=m.mode,v=Ff(m),g=function(e){return e.combine?e.combine.draggableId:null}(m),b={duration:r.dropDuration,curve:us,moveTo:r.newHomeClientOffset,opacity:g?ss.drop:null,scale:g?cs.drop:null};return{mapped:{type:"DRAGGING",offset:r.newHomeClientOffset,dimension:p,dropping:b,draggingOver:v,combineWith:g,mode:h,forceShouldAnimate:null,snapshot:t(h,d,v,g,b)}}}return null}),o=function(){var e=$o((function(e,t){return{x:e,y:t}})),t=$o(Bf),n=$o((function(e,n,r){return void 0===n&&(n=null),{mapped:{type:"SECONDARY",offset:e,combineTargetFor:n,shouldAnimateDisplacement:r,snapshot:t(n)}}})),r=function(e){return e?n(gl,e,!0):null},o=function(t,o,a,i){var l=a.displaced.visible[t],u=Boolean(i.inVirtualList&&i.effected[t]),s=Ul(a),c=s&&s.draggableId===t?o:null;if(!l){if(!u)return r(c);if(a.displaced.invisible[t])return null;var f=wl(i.displacedBy.point),d=e(f.x,f.y);return n(d,c,!0)}if(u)return r(c);var p=a.displacedBy.point,m=e(p.x,p.y);return n(m,c,l.shouldAnimate)};return function(e,t){if(e.isDragging)return e.critical.draggable.id===t.draggableId?null:o(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){var n=e.completed;return n.result.draggableId===t.draggableId?null:o(t.draggableId,n.result.draggableId,n.impact,n.afterCritical)}return null}}();return function(e,t){return r(e,t)||o(e,t)||Vf}}),{dropAnimationFinished:ls},null,{context:Oc,pure:!0,areStatePropsEqual:Mf})((function(e){var t=Object(o.useRef)(null),n=Wi((function(e){t.current=e}),[]),r=Wi((function(){return t.current}),[]),a=wf(Dc),i=a.contextId,l=a.dragHandleUsageInstructionsId,u=a.registry,s=wf(kf),c=s.type,f=s.droppableId,d=Hi((function(){return{id:e.draggableId,index:e.index,type:c,droppableId:f}}),[e.draggableId,e.index,c,f]),p=e.children,m=e.draggableId,h=e.isEnabled,v=e.shouldRespectForcePress,g=e.canDragInteractiveElements,b=e.isClone,y=e.mapped,_=e.dropAnimationFinished;Af(),Rc(),b||Lf(Hi((function(){return{descriptor:d,registry:u,getDraggableRef:r,canDragInteractiveElements:g,shouldRespectForcePress:v,isEnabled:h}}),[d,u,r,g,v,h]));var w=Hi((function(){return h?{tabIndex:0,role:"button","aria-describedby":l,"data-rbd-drag-handle-draggable-id":m,"data-rbd-drag-handle-context-id":i,draggable:!1,onDragStart:jf}:null}),[i,l,m,h]),E=Wi((function(e){"DRAGGING"===y.type&&y.dropping&&"transform"===e.propertyName&&_()}),[_,y]),S=Hi((function(){var e=Tf(y),t="DRAGGING"===y.type&&y.dropping?E:null;return{innerRef:n,draggableProps:{"data-rbd-draggable-context-id":i,"data-rbd-draggable-id":m,style:e,onTransitionEnd:t},dragHandleProps:w}}),[i,w,m,y,E,n]),O=Hi((function(){return{draggableId:d.id,type:d.type,source:{index:d.index,droppableId:d.droppableId}}}),[d.droppableId,d.id,d.index,d.type]);return p(S,y.snapshot,O)}));function zf(e){return wf(kf).isUsingCloneFor!==e.draggableId||e.isClone?a.a.createElement(Uf,e):null}function Hf(e){var t="boolean"!=typeof e.isDragDisabled||!e.isDragDisabled,n=Boolean(e.disableInteractiveElementBlocking),r=Boolean(e.shouldRespectForcePress);return a.a.createElement(zf,wt({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:r}))}var Wf=function(e,t){return e===t.droppable.type},Gf=function(e,t){return t.draggables[e.draggable.id]};var qf={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||ll(!1),document.body}},$f=Vi((function(){var e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t=wt({},e,{shouldAnimatePlaceholder:!1}),n=$o((function(e){return{draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}})),r=$o((function(r,o,a,i,l,u){var s=l.descriptor.id;if(l.descriptor.droppableId===r){var c=u?{render:u,dragging:n(l.descriptor)}:null,f={isDraggingOver:a,draggingOverWith:a?s:null,draggingFromThisWith:s,isUsingPlaceholder:!0};return{placeholder:l.placeholder,shouldAnimatePlaceholder:!1,snapshot:f,useClone:c}}if(!o)return t;if(!i)return e;var d={isDraggingOver:a,draggingOverWith:s,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:l.placeholder,shouldAnimatePlaceholder:!0,snapshot:d,useClone:null}}));return function(n,o){var a=o.droppableId,i=o.type,l=!o.isDropDisabled,u=o.renderClone;if(n.isDragging){var s=n.critical;if(!Wf(i,s))return t;var c=Gf(s,n.dimensions),f=Cu(n.impact)===a;return r(a,l,f,f,c,u)}if("DROP_ANIMATING"===n.phase){var d=n.completed;if(!Wf(i,d.critical))return t;var p=Gf(d.critical,n.dimensions);return r(a,l,Ff(d.result)===a,Cu(d.impact)===a,p,u)}if("IDLE"===n.phase&&n.completed&&!n.shouldFlush){var m=n.completed;if(!Wf(i,m.critical))return t;var h=Cu(m.impact)===a,v=Boolean(m.impact.at&&"COMBINE"===m.impact.at.type),g=m.critical.droppable.id===a;return h?v?e:t:g?e:t}return t}}),{updateViewportMaxScroll:function(e){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}}},null,{context:Oc,pure:!0,areStatePropsEqual:Mf})((function(e){var t=Object(o.useContext)(Dc);t||ll(!1);var n=t.contextId,r=t.isMovementAllowed,i=Object(o.useRef)(null),u=Object(o.useRef)(null),s=e.children,c=e.droppableId,f=e.type,d=e.mode,p=e.direction,m=e.ignoreContainerClipping,h=e.isDropDisabled,v=e.isCombineEnabled,g=e.snapshot,b=e.useClone,y=e.updateViewportMaxScroll,_=e.getContainerForClone,w=Wi((function(){return i.current}),[]),E=Wi((function(e){i.current=e}),[]),S=(Wi((function(){return u.current}),[]),Wi((function(e){u.current=e}),[]));Nc();var O=Wi((function(){r()&&y({maxScroll:As()})}),[r,y]);!function(e){var t=Object(o.useRef)(null),n=wf(Dc),r=Ic("droppable"),a=n.registry,i=n.marshal,l=Lc(e),u=Hi((function(){return{id:e.droppableId,type:e.type,mode:e.mode}}),[e.droppableId,e.mode,e.type]),s=Object(o.useRef)(u),c=Hi((function(){return $o((function(e,n){t.current||ll(!1);var r={x:e,y:n};i.updateDroppableScroll(u.id,r)}))}),[u.id,i]),f=Wi((function(){var e=t.current;return e&&e.env.closestScrollable?hf(e.env.closestScrollable):gl}),[]),d=Wi((function(){var e=f();c(e.x,e.y)}),[f,c]),p=Hi((function(){return nl(d)}),[d]),m=Wi((function(){var e=t.current,n=Ef(e);e&&n||ll(!1),e.scrollOptions.shouldPublishImmediately?d():p()}),[p,d]),h=Wi((function(e,r){t.current&&ll(!1);var o=l.current,a=o.getDroppableRef();a||ll(!1);var i=vf(a),s={ref:a,descriptor:u,env:i,scrollOptions:r};t.current=s;var c=gf({ref:a,descriptor:u,env:i,windowScroll:e,direction:o.direction,isDropDisabled:o.isDropDisabled,isCombineEnabled:o.isCombineEnabled,shouldClipSubject:!o.ignoreContainerClipping}),f=i.closestScrollable;return f&&(f.setAttribute(mc.contextId,n.contextId),f.addEventListener("scroll",m,_f(s.scrollOptions))),c}),[n.contextId,u,m,l]),v=Wi((function(){var e=t.current,n=Ef(e);return e&&n||ll(!1),hf(n)}),[]),g=Wi((function(){var e=t.current;e||ll(!1);var n=Ef(e);t.current=null,n&&(p.cancel(),n.removeAttribute(mc.contextId),n.removeEventListener("scroll",m,_f(e.scrollOptions)))}),[m,p]),b=Wi((function(e){var n=t.current;n||ll(!1);var r=Ef(n);r||ll(!1),r.scrollTop+=e.y,r.scrollLeft+=e.x}),[]),y=Hi((function(){return{getDimensionAndWatchScroll:h,getScrollWhileDragging:v,dragStopped:g,scroll:b}}),[g,h,v,b]),_=Hi((function(){return{uniqueId:r,descriptor:u,callbacks:y}}),[y,u,r]);vc((function(){return s.current=_.descriptor,a.droppable.register(_),function(){t.current&&g(),a.droppable.unregister(_)}}),[y,u,g,_,i,a.droppable]),vc((function(){t.current&&i.updateDroppableIsEnabled(s.current.id,!e.isDropDisabled)}),[e.isDropDisabled,i]),vc((function(){t.current&&i.updateDroppableIsCombineEnabled(s.current.id,e.isCombineEnabled)}),[e.isCombineEnabled,i])}({droppableId:c,type:f,mode:d,direction:p,isDropDisabled:h,isCombineEnabled:v,ignoreContainerClipping:m,getDroppableRef:w});var x=a.a.createElement(Pf,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},(function(e){var t=e.onClose,r=e.data,o=e.animate;return a.a.createElement(Cf,{placeholder:r,onClose:t,innerRef:S,animate:o,contextId:n,onTransitionEnd:O})})),C=Hi((function(){return{innerRef:E,placeholder:x,droppableProps:{"data-rbd-droppable-id":c,"data-rbd-droppable-context-id":n}}}),[n,c,x,E]),k=b?b.dragging.draggableId:null,P=Hi((function(){return{droppableId:c,type:f,isUsingCloneFor:k}}),[c,k,f]);return a.a.createElement(kf.Provider,{value:P},s(C,g),function(){if(!b)return null;var e=b.dragging,t=b.render,n=a.a.createElement(zf,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(function(n,r){return t(n,r,e)}));return l.a.createPortal(n,_())}())}));function Yf(e){return(Yf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qf(){return(Qf=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 Kf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Xf(e,t){return(Xf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Jf(e){var t=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}}();return function(){var n,r=td(e);if(t){var o=td(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Zf(this,n)}}function Zf(e,t){return!t||"object"!==Yf(t)&&"function"!=typeof t?ed(e):t}function ed(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function td(e){return(td=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}$f.defaultProps=qf;var nd=function(e){!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&&Xf(e,t)}(i,e);var t,n,r,o=Jf(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),t=o.call(this,e);var n=e.settings,r=e.form_title,l=e.validation_type,u=n.form_fields;return t.state={field_values:u.option_values||[],field_states:[],form_settings:u,settings:n,form_title:r,status:{loading_type:null,loading_message:null},refs:{wrapper:a.a.createRef()},validation_type:l,last_row_index:null},t._form_validation=new E(n.events.validate_field,l),t._form_submit=new y(n.handlers.api_loader,u.api_route,t._form_validation,t.updateLoadingStatus.bind(ed(t))),t}return t=i,(n=[{key:"render",value:function(){var e=this,t=this.state,n=t.field_values,r=t.field_states,o=t.settings,i=t.form_title,l=t.form_settings,u=t.status,s=t.refs,c=t.validation_type;return a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"fcfWidget"},a.a.createElement("form",{className:"fcfWidget__inner"},a.a.createElement("div",{className:"fcfWidget__header"},a.a.createElement("div",{className:"fcfWidget__headerTitle"},i),a.a.createElement("div",{className:"fcfWidget__headerButtons"},a.a.createElement("ul",{className:"fcfWidget__buttons"},a.a.createElement("li",{className:"fcfWidget__button"},a.a.createElement(D,{button_classes:"fcfButton fcfButton--wide fcfButton--small fcfButton--bg fcfButton--blue",button_alignment:"right",button_label:o.i18n.button_save,loading_type:"save_top",loading_status:u.loading_type,loading_message:u.loading_message,settings:o,onSubmit:this.onSubmit.bind(this,"save_top",{form_fields:n})}))))),a.a.createElement("div",{className:"fcfWidget__content"},n.length>0?a.a.createElement("div",{className:"fcfFields",ref:s.wrapper},a.a.createElement(uf,{onBeforeDragStart:this.onDragStart.bind(this),onDragEnd:this.onDragEnd.bind(this)},a.a.createElement($f,{droppableId:"dnd-fields"},(function(t,i){return a.a.createElement("ul",Qf({className:"fcfFields__items dnd-fields"},t.droppableProps,{ref:t.innerRef}),n.map((function(t,s){return null!==t&&e.getFieldType(t)?a.a.createElement(Hf,{key:s,draggableId:"field-".concat(s),index:s},(function(f){return a.a.createElement(Ka,{provided:f,field_data:t,form_states:r[s]||{},field_type:e.getFieldType(t),section_fields:n,validation_types:[c],settings:o,form_settings:l,onChangeValue:e.onChangeValue.bind(e,s),onChangeState:e.onChangeState.bind(e,s),onFieldRemove:e.onFieldRemove.bind(e,s),onValidationInit:e.onValidationInit.bind(e),row_index:s,last_row_index:i.isDraggingOver||null!==u.loading_type?null:e.state.last_row_index})})):null})),t.placeholder)})))):a.a.createElement("div",{className:"fcfWidget__contentPlaceholder"},o.i18n.alert_no_fields)),a.a.createElement("div",{className:"fcfWidget__footer"},a.a.createElement("ul",{className:"fcfWidget__buttons"},a.a.createElement("li",{className:"fcfWidget__button"},a.a.createElement(D,{button_classes:"fcfButton fcfButton--wide fcfButton--bg fcfButton--blue",button_alignment:"left",button_label:o.i18n.button_save,loading_type:"save_bottom",loading_status:u.loading_type,loading_message:u.loading_message,settings:o,onSubmit:this.onSubmit.bind(this,"save_bottom",{form_fields:n})})),a.a.createElement("li",{className:"fcfWidget__button"},a.a.createElement(D,{button_classes:"fcfButton fcfButton--wide fcfButton--border fcfButton--red",button_alignment:"right",button_label:o.i18n.button_reset,loading_type:"reset_bottom",loading_status:u.loading_type,loading_message:u.loading_message,tooltip_text:o.i18n.alert_reset,settings:o,onSubmit:this.onReset.bind(this,"reset_bottom",{form_fields:{}})})))))))}},{key:"componentDidMount",value:function(){var e=this.state.field_values;this.updateFieldsPriority(e)}},{key:"onValidationInit",value:function(e,t,n){return this._form_validation.onValidationInit(e,t,n)}},{key:"onChangeValue",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=this.state.field_values;o[e][t]=n,this.setState({field_values:o,last_row_index:r?null:e}),r&&this.sendRefreshEvent()}},{key:"onChangeState",value:function(e,t,n,r){var o=this.state.field_states;void 0===o[e]&&(o[e]={}),void 0===o[e][t]&&(o[e][t]={}),o[e][t][n]=r,this.setState({field_states:o})}},{key:"sendRefreshEvent",value:function(){var e=this.state.settings;clearTimeout(this.refresh_timeout),this.refresh_timeout=setTimeout((function(){window.dispatchEvent(new CustomEvent(e.events.refresh_field))}),1e3)}},{key:"onFieldRemove",value:function(e){var t=this.state.field_values;t.splice(e,1),this.setState({field_values:t,last_row_index:null}),this.sendRefreshEvent()}},{key:"onSubmit",value:function(e,t,n){return n.preventDefault(),this._form_submit.onSubmit(e,t)}},{key:"onReset",value:function(e,t){return this._form_submit.onReset(e,t)}},{key:"onDragStart",value:function(){var e=this.state.refs;e.wrapper.current.style.height="".concat(e.wrapper.current.offsetHeight,"px")}},{key:"onDragEnd",value:function(e){if(this.state.refs.wrapper.current.style.height="",e.destination){var t=this.state,n=t.field_values,r=t.field_states,o=n[e.source.index],a=r[e.source.index];n.splice(e.source.index,1),r.splice(e.source.index,1),n.splice(e.destination.index,0,o),r.splice(e.destination.index,0,a),this._form_validation.clearValidationHandlers(),this.setState({field_values:this.updateFieldsPriority(n),field_states:r,last_row_index:null})}}},{key:"updateLoadingStatus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.state.status;n.loading_type=e,n.loading_message=t,this.setState({status:n})}},{key:"getFieldType",value:function(e){var t=this.state.form_settings;for(var n in t.option_fields)if(t.option_fields.hasOwnProperty(n)&&t.option_fields[n].reserved_field_names.indexOf(e.name)>-1)return t.option_fields[n];return t.option_fields[e.type]||t.option_fields.fcf_default}},{key:"updateFieldsPriority",value:function(e){for(var t=10,n=e.length,r=0;r<n;r++)e[r].priority=t,t+=10;return e}}])&&Kf(t.prototype,n),r&&Kf(t,r),i}(a.a.Component);function rd(e){return(rd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function od(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ad(e,t){return(ad=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function id(e){var t=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}}();return function(){var n,r=ud(e);if(t){var o=ud(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ld(this,n)}}function ld(e,t){return!t||"object"!==rd(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ud(e){return(ud=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var sd=function(e){!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&&ad(e,t)}(i,e);var t,n,r,o=id(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).state={settings:{i18n:reactInit.i18n,handlers:{api_loader:new f(reactInit.rest_api_url,reactInit.header_nonce)},events:{validate_field:"fcf-field-validate",refresh_field:"fcf-field-refresh"},form_fields:reactInit.form_fields,form_section:reactInit.form_section,form_settings:reactInit.form_settings}},t}return t=i,(n=[{key:"render",value:function(){var e=this.state.settings;return a.a.createElement("ul",{className:"fcfSettings__columns fcfSettings__columns--margin"},a.a.createElement(a.a.Fragment,null,e.form_fields?a.a.createElement("li",{className:"fcfSettings__column"},a.a.createElement(La,{settings:e,form_settings:e.form_fields,form_title:e.i18n.form_add_field,validation_type:"form_add_field",onFieldAdd:this.addNewField.bind(this)})):null,e.form_fields||e.form_section?a.a.createElement("li",{className:"fcfSettings__column fcfSettings__column--wide"},e.form_fields?a.a.createElement(nd,{settings:e,form_settings:e.form_fields,form_title:e.i18n.form_fields,validation_type:"form_fields"}):null,e.form_section?a.a.createElement(za,{settings:e,form_settings:e.form_section,form_title:e.i18n.form_section,validation_type:"form_section"}):null):null),e.form_settings?a.a.createElement(a.a.Fragment,null,a.a.createElement("li",{className:"fcfSettings__column fcfSettings__column--wide"},a.a.createElement(za,{settings:e,form_settings:e.form_settings,form_title:e.i18n.form_settings,validation_type:"form_settings"}))):null)}},{key:"addNewField",value:function(e){var t=this.state.settings;t.form_fields.option_values.push(e),this.setState({settings:t}),window.dispatchEvent(new CustomEvent(t.events.refresh_field))}}])&&od(t.prototype,n),r&&od(t,r),i}(a.a.Component);function cd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var fd=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.setVars()&&this.setEvents()}var t,n,r;return t=e,(n=[{key:"setVars",value:function(){if(this.section=document.querySelector("#fcf-settings"),this.section)return!0}},{key:"setEvents",value:function(){document.addEventListener("DOMContentLoaded",this.renderDom.bind(this))}},{key:"renderDom",value:function(){l.a.render(a.a.createElement(sd,null),this.section)}}])&&cd(t.prototype,n),r&&cd(t,r),e}();new function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),new fd}},function(e,t){}]);
|
flexible-checkout-fields.php
CHANGED
@@ -3,15 +3,15 @@
|
|
3 |
Plugin Name: Flexible Checkout Fields
|
4 |
Plugin URI: https://www.wpdesk.net/products/flexible-checkout-fields-pro-woocommerce/
|
5 |
Description: Manage your WooCommerce checkout fields. Change order, labels, placeholders and add new fields.
|
6 |
-
Version: 3.0.
|
7 |
Author: WP Desk
|
8 |
Author URI: https://www.wpdesk.net/
|
9 |
Text Domain: flexible-checkout-fields
|
10 |
Domain Path: /lang/
|
11 |
Requires at least: 5.2
|
12 |
Tested up to: 5.7
|
13 |
-
WC requires at least: 4.
|
14 |
-
WC tested up to: 5.
|
15 |
Requires PHP: 7.0
|
16 |
|
17 |
Copyright 2017 WP Desk Ltd.
|
@@ -39,7 +39,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
39 |
|
40 |
|
41 |
/* THIS VARIABLE CAN BE CHANGED AUTOMATICALLY */
|
42 |
-
$plugin_version = '3.0.
|
43 |
|
44 |
/*
|
45 |
* Update when conditions are met:
|
3 |
Plugin Name: Flexible Checkout Fields
|
4 |
Plugin URI: https://www.wpdesk.net/products/flexible-checkout-fields-pro-woocommerce/
|
5 |
Description: Manage your WooCommerce checkout fields. Change order, labels, placeholders and add new fields.
|
6 |
+
Version: 3.0.10
|
7 |
Author: WP Desk
|
8 |
Author URI: https://www.wpdesk.net/
|
9 |
Text Domain: flexible-checkout-fields
|
10 |
Domain Path: /lang/
|
11 |
Requires at least: 5.2
|
12 |
Tested up to: 5.7
|
13 |
+
WC requires at least: 4.8
|
14 |
+
WC tested up to: 5.3
|
15 |
Requires PHP: 7.0
|
16 |
|
17 |
Copyright 2017 WP Desk Ltd.
|
39 |
|
40 |
|
41 |
/* THIS VARIABLE CAN BE CHANGED AUTOMATICALLY */
|
42 |
+
$plugin_version = '3.0.10';
|
43 |
|
44 |
/*
|
45 |
* Update when conditions are met:
|
lang/flexible-checkout-fields.pot
CHANGED
@@ -2,16 +2,16 @@
|
|
2 |
# This file is distributed under the same license as the Flexible Checkout Fields plugin.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Flexible Checkout Fields 3.0.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/flexible-checkout-fields\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-
|
13 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
14 |
-
"X-Generator: WP-CLI 2.
|
15 |
"X-Domain: flexible-checkout-fields\n"
|
16 |
|
17 |
#. Plugin Name of the plugin
|
@@ -207,11 +207,11 @@ msgstr ""
|
|
207 |
msgid "WooCommerce Default Field"
|
208 |
msgstr ""
|
209 |
|
210 |
-
#: src/Settings/Form/EditFieldsForm.php:
|
211 |
msgid "Order Notes"
|
212 |
msgstr ""
|
213 |
|
214 |
-
#: src/Settings/Form/EditFieldsForm.php:
|
215 |
msgid "Notes about your order, e.g. special notes for delivery."
|
216 |
msgstr ""
|
217 |
|
@@ -446,6 +446,10 @@ msgstr ""
|
|
446 |
msgid "No fields available."
|
447 |
msgstr ""
|
448 |
|
|
|
|
|
|
|
|
|
449 |
#: src/Settings/Route/RouteIntegration.php:86
|
450 |
msgid "An unknown error occurred while processing the request."
|
451 |
msgstr ""
|
2 |
# This file is distributed under the same license as the Flexible Checkout Fields plugin.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Flexible Checkout Fields 3.0.10\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/flexible-checkout-fields\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-20T15:30:41+00:00\n"
|
13 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
14 |
+
"X-Generator: WP-CLI 2.5.0\n"
|
15 |
"X-Domain: flexible-checkout-fields\n"
|
16 |
|
17 |
#. Plugin Name of the plugin
|
207 |
msgid "WooCommerce Default Field"
|
208 |
msgstr ""
|
209 |
|
210 |
+
#: src/Settings/Form/EditFieldsForm.php:91
|
211 |
msgid "Order Notes"
|
212 |
msgstr ""
|
213 |
|
214 |
+
#: src/Settings/Form/EditFieldsForm.php:92
|
215 |
msgid "Notes about your order, e.g. special notes for delivery."
|
216 |
msgstr ""
|
217 |
|
446 |
msgid "No fields available."
|
447 |
msgstr ""
|
448 |
|
449 |
+
#: src/Settings/Page.php:212
|
450 |
+
msgid "Failed to connect to WordPress REST API."
|
451 |
+
msgstr ""
|
452 |
+
|
453 |
#: src/Settings/Route/RouteIntegration.php:86
|
454 |
msgid "An unknown error occurred while processing the request."
|
455 |
msgstr ""
|
readme.txt
CHANGED
@@ -187,6 +187,10 @@ If you are upgrading from the old WooCommerce Checkout Fields version (1.1, wooc
|
|
187 |
|
188 |
== Changelog ==
|
189 |
|
|
|
|
|
|
|
|
|
190 |
= 3.0.9 - 2021-04-28 =
|
191 |
* Fixed compatibility with WPML
|
192 |
* Added support for WooCommerce 5.2
|
187 |
|
188 |
== Changelog ==
|
189 |
|
190 |
+
= 3.0.10 - 2021-05-20 =
|
191 |
+
* Fixed support for checkbox, radio and select fields added by other plugins
|
192 |
+
* Added support for WooCommerce 5.3
|
193 |
+
|
194 |
= 3.0.9 - 2021-04-28 =
|
195 |
* Fixed compatibility with WPML
|
196 |
* Added support for WooCommerce 5.2
|
src/Field/Type/DefaultType.php
CHANGED
@@ -16,7 +16,7 @@ use WPDesk\FCF\Free\Settings\Tab\GeneralTab;
|
|
16 |
use WPDesk\FCF\Free\Settings\Tab\LogicTab;
|
17 |
use WPDesk\FCF\Free\Settings\Option\OptionInterface;
|
18 |
use WPDesk\FCF\Free\Settings\Option\CssOption;
|
19 |
-
use WPDesk\FCF\Free\Settings\Option\
|
20 |
use WPDesk\FCF\Free\Settings\Option\DisplayOnOption;
|
21 |
use WPDesk\FCF\Free\Settings\Option\EnabledOption;
|
22 |
use WPDesk\FCF\Free\Settings\Option\ExternalFieldOption;
|
@@ -83,15 +83,15 @@ class DefaultType extends TypeAbstract implements TypeInterface {
|
|
83 |
public function get_options_objects(): array {
|
84 |
return [
|
85 |
GeneralTab::TAB_NAME => [
|
86 |
-
ExternalFieldInfoOption::FIELD_NAME
|
87 |
-
PriorityOption::FIELD_NAME
|
88 |
-
FieldTypeDefaultOption::FIELD_NAME
|
89 |
-
EnabledOption::FIELD_NAME
|
90 |
-
|
91 |
-
ExternalFieldOption::FIELD_NAME
|
92 |
-
RequiredOption::FIELD_NAME
|
93 |
-
LabelOption::FIELD_NAME
|
94 |
-
NameOption::FIELD_NAME
|
95 |
],
|
96 |
AdvancedTab::TAB_NAME => [
|
97 |
ValidationOption::FIELD_NAME => new ValidationOption(),
|
16 |
use WPDesk\FCF\Free\Settings\Tab\LogicTab;
|
17 |
use WPDesk\FCF\Free\Settings\Option\OptionInterface;
|
18 |
use WPDesk\FCF\Free\Settings\Option\CssOption;
|
19 |
+
use WPDesk\FCF\Free\Settings\Option\CustomFieldDisabledOption;
|
20 |
use WPDesk\FCF\Free\Settings\Option\DisplayOnOption;
|
21 |
use WPDesk\FCF\Free\Settings\Option\EnabledOption;
|
22 |
use WPDesk\FCF\Free\Settings\Option\ExternalFieldOption;
|
83 |
public function get_options_objects(): array {
|
84 |
return [
|
85 |
GeneralTab::TAB_NAME => [
|
86 |
+
ExternalFieldInfoOption::FIELD_NAME => new ExternalFieldInfoOption(),
|
87 |
+
PriorityOption::FIELD_NAME => new PriorityOption(),
|
88 |
+
FieldTypeDefaultOption::FIELD_NAME => new FieldTypeDefaultOption(),
|
89 |
+
EnabledOption::FIELD_NAME => new EnabledOption(),
|
90 |
+
CustomFieldDisabledOption::FIELD_NAME => new CustomFieldDisabledOption(),
|
91 |
+
ExternalFieldOption::FIELD_NAME => new ExternalFieldOption(),
|
92 |
+
RequiredOption::FIELD_NAME => new RequiredOption(),
|
93 |
+
LabelOption::FIELD_NAME => new LabelOption(),
|
94 |
+
NameOption::FIELD_NAME => new NameOption(),
|
95 |
],
|
96 |
AdvancedTab::TAB_NAME => [
|
97 |
ValidationOption::FIELD_NAME => new ValidationOption(),
|
src/Settings/Form/EditFieldsForm.php
CHANGED
@@ -56,6 +56,19 @@ class EditFieldsForm extends FormAbstract implements FormInterface {
|
|
56 |
$form_data[ $field_name ] = $new_field_data;
|
57 |
}
|
58 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
return $form_data;
|
60 |
}
|
61 |
|
56 |
$form_data[ $field_name ] = $new_field_data;
|
57 |
}
|
58 |
|
59 |
+
uasort(
|
60 |
+
$form_data,
|
61 |
+
function( $a, $b ) {
|
62 |
+
if ( ( $a['priority'] ?? 0 ) === 0 ) {
|
63 |
+
return 1;
|
64 |
+
} elseif ( ( $b['priority'] ?? 0 ) === 0 ) {
|
65 |
+
return -1;
|
66 |
+
}
|
67 |
+
|
68 |
+
return ( $a['priority'] < $b['priority'] ) ? -1 : 1;
|
69 |
+
}
|
70 |
+
);
|
71 |
+
|
72 |
return $form_data;
|
73 |
}
|
74 |
|
src/Settings/Option/CustomFieldDisabledOption.php
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* .
|
4 |
+
*
|
5 |
+
* @package WPDesk\FPF\Free
|
6 |
+
*/
|
7 |
+
|
8 |
+
namespace WPDesk\FCF\Free\Settings\Option;
|
9 |
+
|
10 |
+
use WPDesk\FCF\Free\Settings\Option\CustomFieldOption;
|
11 |
+
|
12 |
+
/**
|
13 |
+
* Supports option settings for field.
|
14 |
+
*/
|
15 |
+
class CustomFieldDisabledOption extends CustomFieldOption {
|
16 |
+
|
17 |
+
/**
|
18 |
+
* Returns default value of option.
|
19 |
+
*
|
20 |
+
* @return string|array Default value.
|
21 |
+
*/
|
22 |
+
public function get_default_value() {
|
23 |
+
return '';
|
24 |
+
}
|
25 |
+
}
|
src/Settings/Page.php
CHANGED
@@ -209,6 +209,7 @@ class Page implements Hookable, HookablePluginDependant {
|
|
209 |
'alert_remove_field' => __( 'Are you sure you want to delete this field? Deleting a field will remove it from all orders.', 'flexible-checkout-fields' ),
|
210 |
'alert_reset' => __( 'Do you really want to reset section settings? Resetting a section remove all added fields from orders.', 'flexible-checkout-fields' ),
|
211 |
'alert_no_fields' => __( 'No fields available.', 'flexible-checkout-fields' ),
|
|
|
212 |
];
|
213 |
}
|
214 |
|
209 |
'alert_remove_field' => __( 'Are you sure you want to delete this field? Deleting a field will remove it from all orders.', 'flexible-checkout-fields' ),
|
210 |
'alert_reset' => __( 'Do you really want to reset section settings? Resetting a section remove all added fields from orders.', 'flexible-checkout-fields' ),
|
211 |
'alert_no_fields' => __( 'No fields available.', 'flexible-checkout-fields' ),
|
212 |
+
'alert_failed_save' => __( 'Failed to connect to WordPress REST API.', 'flexible-checkout-fields' ),
|
213 |
];
|
214 |
}
|
215 |
|
templates/notices/review.php
CHANGED
@@ -36,9 +36,9 @@
|
|
36 |
class="button button-hero button-primary">
|
37 |
<?php echo esc_html( __( 'Add review', 'flexible-checkout-fields' ) ); ?>
|
38 |
</a>
|
39 |
-
<
|
40 |
class="button button-hero" data-notice-button>
|
41 |
<?php echo esc_html( __( 'I added review, do not show again', 'flexible-checkout-fields' ) ); ?>
|
42 |
-
</
|
43 |
</div>
|
44 |
</div>
|
36 |
class="button button-hero button-primary">
|
37 |
<?php echo esc_html( __( 'Add review', 'flexible-checkout-fields' ) ); ?>
|
38 |
</a>
|
39 |
+
<button type="button"
|
40 |
class="button button-hero" data-notice-button>
|
41 |
<?php echo esc_html( __( 'I added review, do not show again', 'flexible-checkout-fields' ) ); ?>
|
42 |
+
</button>
|
43 |
</div>
|
44 |
</div>
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInitbd920cdc00ca8143065e1e2a0f4c2210::getLoader();
|
vendor/composer/autoload_classmap.php
CHANGED
@@ -320,6 +320,7 @@ return array(
|
|
320 |
'WPDesk\\FCF\\Free\\Settings\\Forms' => $baseDir . '/src/Settings/Forms.php',
|
321 |
'WPDesk\\FCF\\Free\\Settings\\Menu' => $baseDir . '/src/Settings/Menu.php',
|
322 |
'WPDesk\\FCF\\Free\\Settings\\Option\\CssOption' => $baseDir . '/src/Settings/Option/CssOption.php',
|
|
|
323 |
'WPDesk\\FCF\\Free\\Settings\\Option\\CustomFieldOption' => $baseDir . '/src/Settings/Option/CustomFieldOption.php',
|
324 |
'WPDesk\\FCF\\Free\\Settings\\Option\\DisplayOnAccountAddressOption' => $baseDir . '/src/Settings/Option/DisplayOnAccountAddressOption.php',
|
325 |
'WPDesk\\FCF\\Free\\Settings\\Option\\DisplayOnAccountOrderOption' => $baseDir . '/src/Settings/Option/DisplayOnAccountOrderOption.php',
|
320 |
'WPDesk\\FCF\\Free\\Settings\\Forms' => $baseDir . '/src/Settings/Forms.php',
|
321 |
'WPDesk\\FCF\\Free\\Settings\\Menu' => $baseDir . '/src/Settings/Menu.php',
|
322 |
'WPDesk\\FCF\\Free\\Settings\\Option\\CssOption' => $baseDir . '/src/Settings/Option/CssOption.php',
|
323 |
+
'WPDesk\\FCF\\Free\\Settings\\Option\\CustomFieldDisabledOption' => $baseDir . '/src/Settings/Option/CustomFieldDisabledOption.php',
|
324 |
'WPDesk\\FCF\\Free\\Settings\\Option\\CustomFieldOption' => $baseDir . '/src/Settings/Option/CustomFieldOption.php',
|
325 |
'WPDesk\\FCF\\Free\\Settings\\Option\\DisplayOnAccountAddressOption' => $baseDir . '/src/Settings/Option/DisplayOnAccountAddressOption.php',
|
326 |
'WPDesk\\FCF\\Free\\Settings\\Option\\DisplayOnAccountOrderOption' => $baseDir . '/src/Settings/Option/DisplayOnAccountOrderOption.php',
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -22,15 +22,15 @@ class ComposerAutoloaderInitf21ce1a4c2909ecafb0fab7f4c5d01f7
|
|
22 |
return self::$loader;
|
23 |
}
|
24 |
|
25 |
-
spl_autoload_register(array('
|
26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
27 |
-
spl_autoload_unregister(array('
|
28 |
|
29 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
30 |
if ($useStaticLoader) {
|
31 |
require_once __DIR__ . '/autoload_static.php';
|
32 |
|
33 |
-
call_user_func(\Composer\Autoload\
|
34 |
} else {
|
35 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
36 |
foreach ($map as $namespace => $path) {
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInitbd920cdc00ca8143065e1e2a0f4c2210
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
22 |
return self::$loader;
|
23 |
}
|
24 |
|
25 |
+
spl_autoload_register(array('ComposerAutoloaderInitbd920cdc00ca8143065e1e2a0f4c2210', 'loadClassLoader'), true, true);
|
26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
27 |
+
spl_autoload_unregister(array('ComposerAutoloaderInitbd920cdc00ca8143065e1e2a0f4c2210', 'loadClassLoader'));
|
28 |
|
29 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
30 |
if ($useStaticLoader) {
|
31 |
require_once __DIR__ . '/autoload_static.php';
|
32 |
|
33 |
+
call_user_func(\Composer\Autoload\ComposerStaticInitbd920cdc00ca8143065e1e2a0f4c2210::getInitializer($loader));
|
34 |
} else {
|
35 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
36 |
foreach ($map as $namespace => $path) {
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'W' =>
|
@@ -343,6 +343,7 @@ class ComposerStaticInitf21ce1a4c2909ecafb0fab7f4c5d01f7
|
|
343 |
'WPDesk\\FCF\\Free\\Settings\\Forms' => __DIR__ . '/../..' . '/src/Settings/Forms.php',
|
344 |
'WPDesk\\FCF\\Free\\Settings\\Menu' => __DIR__ . '/../..' . '/src/Settings/Menu.php',
|
345 |
'WPDesk\\FCF\\Free\\Settings\\Option\\CssOption' => __DIR__ . '/../..' . '/src/Settings/Option/CssOption.php',
|
|
|
346 |
'WPDesk\\FCF\\Free\\Settings\\Option\\CustomFieldOption' => __DIR__ . '/../..' . '/src/Settings/Option/CustomFieldOption.php',
|
347 |
'WPDesk\\FCF\\Free\\Settings\\Option\\DisplayOnAccountAddressOption' => __DIR__ . '/../..' . '/src/Settings/Option/DisplayOnAccountAddressOption.php',
|
348 |
'WPDesk\\FCF\\Free\\Settings\\Option\\DisplayOnAccountOrderOption' => __DIR__ . '/../..' . '/src/Settings/Option/DisplayOnAccountOrderOption.php',
|
@@ -409,9 +410,9 @@ class ComposerStaticInitf21ce1a4c2909ecafb0fab7f4c5d01f7
|
|
409 |
public static function getInitializer(ClassLoader $loader)
|
410 |
{
|
411 |
return \Closure::bind(function () use ($loader) {
|
412 |
-
$loader->prefixLengthsPsr4 =
|
413 |
-
$loader->prefixDirsPsr4 =
|
414 |
-
$loader->classMap =
|
415 |
|
416 |
}, null, ClassLoader::class);
|
417 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInitbd920cdc00ca8143065e1e2a0f4c2210
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'W' =>
|
343 |
'WPDesk\\FCF\\Free\\Settings\\Forms' => __DIR__ . '/../..' . '/src/Settings/Forms.php',
|
344 |
'WPDesk\\FCF\\Free\\Settings\\Menu' => __DIR__ . '/../..' . '/src/Settings/Menu.php',
|
345 |
'WPDesk\\FCF\\Free\\Settings\\Option\\CssOption' => __DIR__ . '/../..' . '/src/Settings/Option/CssOption.php',
|
346 |
+
'WPDesk\\FCF\\Free\\Settings\\Option\\CustomFieldDisabledOption' => __DIR__ . '/../..' . '/src/Settings/Option/CustomFieldDisabledOption.php',
|
347 |
'WPDesk\\FCF\\Free\\Settings\\Option\\CustomFieldOption' => __DIR__ . '/../..' . '/src/Settings/Option/CustomFieldOption.php',
|
348 |
'WPDesk\\FCF\\Free\\Settings\\Option\\DisplayOnAccountAddressOption' => __DIR__ . '/../..' . '/src/Settings/Option/DisplayOnAccountAddressOption.php',
|
349 |
'WPDesk\\FCF\\Free\\Settings\\Option\\DisplayOnAccountOrderOption' => __DIR__ . '/../..' . '/src/Settings/Option/DisplayOnAccountOrderOption.php',
|
410 |
public static function getInitializer(ClassLoader $loader)
|
411 |
{
|
412 |
return \Closure::bind(function () use ($loader) {
|
413 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInitbd920cdc00ca8143065e1e2a0f4c2210::$prefixLengthsPsr4;
|
414 |
+
$loader->prefixDirsPsr4 = ComposerStaticInitbd920cdc00ca8143065e1e2a0f4c2210::$prefixDirsPsr4;
|
415 |
+
$loader->classMap = ComposerStaticInitbd920cdc00ca8143065e1e2a0f4c2210::$classMap;
|
416 |
|
417 |
}, null, ClassLoader::class);
|
418 |
}
|
vendor/composer/installed.json
CHANGED
@@ -1,23 +1,23 @@
|
|
1 |
[
|
2 |
{
|
3 |
"name": "psr/log",
|
4 |
-
"version": "1.1.
|
5 |
-
"version_normalized": "1.1.
|
6 |
"source": {
|
7 |
"type": "git",
|
8 |
"url": "https://github.com/php-fig/log.git",
|
9 |
-
"reference": "
|
10 |
},
|
11 |
"dist": {
|
12 |
"type": "zip",
|
13 |
-
"url": "https://api.github.com/repos/php-fig/log/zipball/
|
14 |
-
"reference": "
|
15 |
"shasum": ""
|
16 |
},
|
17 |
"require": {
|
18 |
"php": ">=5.3.0"
|
19 |
},
|
20 |
-
"time": "
|
21 |
"type": "library",
|
22 |
"extra": {
|
23 |
"branch-alias": {
|
@@ -37,7 +37,7 @@
|
|
37 |
"authors": [
|
38 |
{
|
39 |
"name": "PHP-FIG",
|
40 |
-
"homepage": "
|
41 |
}
|
42 |
],
|
43 |
"description": "Common interface for logging libraries",
|
@@ -46,7 +46,10 @@
|
|
46 |
"log",
|
47 |
"psr",
|
48 |
"psr-3"
|
49 |
-
]
|
|
|
|
|
|
|
50 |
},
|
51 |
{
|
52 |
"name": "wpdesk/wp-wpdesk-helper-override",
|
1 |
[
|
2 |
{
|
3 |
"name": "psr/log",
|
4 |
+
"version": "1.1.4",
|
5 |
+
"version_normalized": "1.1.4.0",
|
6 |
"source": {
|
7 |
"type": "git",
|
8 |
"url": "https://github.com/php-fig/log.git",
|
9 |
+
"reference": "d49695b909c3b7628b6289db5479a1c204601f11"
|
10 |
},
|
11 |
"dist": {
|
12 |
"type": "zip",
|
13 |
+
"url": "https://api.github.com/repos/php-fig/log/zipball/d49695b909c3b7628b6289db5479a1c204601f11",
|
14 |
+
"reference": "d49695b909c3b7628b6289db5479a1c204601f11",
|
15 |
"shasum": ""
|
16 |
},
|
17 |
"require": {
|
18 |
"php": ">=5.3.0"
|
19 |
},
|
20 |
+
"time": "2021-05-03T11:20:27+00:00",
|
21 |
"type": "library",
|
22 |
"extra": {
|
23 |
"branch-alias": {
|
37 |
"authors": [
|
38 |
{
|
39 |
"name": "PHP-FIG",
|
40 |
+
"homepage": "https://www.php-fig.org/"
|
41 |
}
|
42 |
],
|
43 |
"description": "Common interface for logging libraries",
|
46 |
"log",
|
47 |
"psr",
|
48 |
"psr-3"
|
49 |
+
],
|
50 |
+
"support": {
|
51 |
+
"source": "https://github.com/php-fig/log/tree/1.1.4"
|
52 |
+
}
|
53 |
},
|
54 |
{
|
55 |
"name": "wpdesk/wp-wpdesk-helper-override",
|
vendor/psr/log/Psr/Log/AbstractLogger.php
CHANGED
@@ -14,8 +14,8 @@ abstract class AbstractLogger implements LoggerInterface
|
|
14 |
/**
|
15 |
* System is unusable.
|
16 |
*
|
17 |
-
* @param string
|
18 |
-
* @param
|
19 |
*
|
20 |
* @return void
|
21 |
*/
|
@@ -30,8 +30,8 @@ abstract class AbstractLogger implements LoggerInterface
|
|
30 |
* Example: Entire website down, database unavailable, etc. This should
|
31 |
* trigger the SMS alerts and wake you up.
|
32 |
*
|
33 |
-
* @param string
|
34 |
-
* @param
|
35 |
*
|
36 |
* @return void
|
37 |
*/
|
@@ -45,8 +45,8 @@ abstract class AbstractLogger implements LoggerInterface
|
|
45 |
*
|
46 |
* Example: Application component unavailable, unexpected exception.
|
47 |
*
|
48 |
-
* @param string
|
49 |
-
* @param
|
50 |
*
|
51 |
* @return void
|
52 |
*/
|
@@ -59,8 +59,8 @@ abstract class AbstractLogger implements LoggerInterface
|
|
59 |
* Runtime errors that do not require immediate action but should typically
|
60 |
* be logged and monitored.
|
61 |
*
|
62 |
-
* @param string
|
63 |
-
* @param
|
64 |
*
|
65 |
* @return void
|
66 |
*/
|
@@ -75,8 +75,8 @@ abstract class AbstractLogger implements LoggerInterface
|
|
75 |
* Example: Use of deprecated APIs, poor use of an API, undesirable things
|
76 |
* that are not necessarily wrong.
|
77 |
*
|
78 |
-
* @param string
|
79 |
-
* @param
|
80 |
*
|
81 |
* @return void
|
82 |
*/
|
@@ -88,8 +88,8 @@ abstract class AbstractLogger implements LoggerInterface
|
|
88 |
/**
|
89 |
* Normal but significant events.
|
90 |
*
|
91 |
-
* @param string
|
92 |
-
* @param
|
93 |
*
|
94 |
* @return void
|
95 |
*/
|
@@ -103,8 +103,8 @@ abstract class AbstractLogger implements LoggerInterface
|
|
103 |
*
|
104 |
* Example: User logs in, SQL logs.
|
105 |
*
|
106 |
-
* @param string
|
107 |
-
* @param
|
108 |
*
|
109 |
* @return void
|
110 |
*/
|
@@ -116,8 +116,8 @@ abstract class AbstractLogger implements LoggerInterface
|
|
116 |
/**
|
117 |
* Detailed debug information.
|
118 |
*
|
119 |
-
* @param string
|
120 |
-
* @param
|
121 |
*
|
122 |
* @return void
|
123 |
*/
|
14 |
/**
|
15 |
* System is unusable.
|
16 |
*
|
17 |
+
* @param string $message
|
18 |
+
* @param mixed[] $context
|
19 |
*
|
20 |
* @return void
|
21 |
*/
|
30 |
* Example: Entire website down, database unavailable, etc. This should
|
31 |
* trigger the SMS alerts and wake you up.
|
32 |
*
|
33 |
+
* @param string $message
|
34 |
+
* @param mixed[] $context
|
35 |
*
|
36 |
* @return void
|
37 |
*/
|
45 |
*
|
46 |
* Example: Application component unavailable, unexpected exception.
|
47 |
*
|
48 |
+
* @param string $message
|
49 |
+
* @param mixed[] $context
|
50 |
*
|
51 |
* @return void
|
52 |
*/
|
59 |
* Runtime errors that do not require immediate action but should typically
|
60 |
* be logged and monitored.
|
61 |
*
|
62 |
+
* @param string $message
|
63 |
+
* @param mixed[] $context
|
64 |
*
|
65 |
* @return void
|
66 |
*/
|
75 |
* Example: Use of deprecated APIs, poor use of an API, undesirable things
|
76 |
* that are not necessarily wrong.
|
77 |
*
|
78 |
+
* @param string $message
|
79 |
+
* @param mixed[] $context
|
80 |
*
|
81 |
* @return void
|
82 |
*/
|
88 |
/**
|
89 |
* Normal but significant events.
|
90 |
*
|
91 |
+
* @param string $message
|
92 |
+
* @param mixed[] $context
|
93 |
*
|
94 |
* @return void
|
95 |
*/
|
103 |
*
|
104 |
* Example: User logs in, SQL logs.
|
105 |
*
|
106 |
+
* @param string $message
|
107 |
+
* @param mixed[] $context
|
108 |
*
|
109 |
* @return void
|
110 |
*/
|
116 |
/**
|
117 |
* Detailed debug information.
|
118 |
*
|
119 |
+
* @param string $message
|
120 |
+
* @param mixed[] $context
|
121 |
*
|
122 |
* @return void
|
123 |
*/
|
vendor/psr/log/Psr/Log/LoggerAwareTrait.php
CHANGED
@@ -10,7 +10,7 @@ trait LoggerAwareTrait
|
|
10 |
/**
|
11 |
* The logger instance.
|
12 |
*
|
13 |
-
* @var LoggerInterface
|
14 |
*/
|
15 |
protected $logger;
|
16 |
|
10 |
/**
|
11 |
* The logger instance.
|
12 |
*
|
13 |
+
* @var LoggerInterface|null
|
14 |
*/
|
15 |
protected $logger;
|
16 |
|
vendor/psr/log/composer.json
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
"authors": [
|
8 |
{
|
9 |
"name": "PHP-FIG",
|
10 |
-
"homepage": "
|
11 |
}
|
12 |
],
|
13 |
"require": {
|
7 |
"authors": [
|
8 |
{
|
9 |
"name": "PHP-FIG",
|
10 |
+
"homepage": "https://www.php-fig.org/"
|
11 |
}
|
12 |
],
|
13 |
"require": {
|
vendor_prefixed/monolog/monolog/src/Monolog/ErrorHandler.php
CHANGED
@@ -53,7 +53,7 @@ class ErrorHandler
|
|
53 |
public static function register(\Psr\Log\LoggerInterface $logger, $errorLevelMap = array(), $exceptionLevel = null, $fatalLevel = null)
|
54 |
{
|
55 |
//Forces the autoloader to run for LogLevel. Fixes an autoload issue at compile-time on PHP5.3. See https://github.com/Seldaek/monolog/pull/929
|
56 |
-
\class_exists('
|
57 |
/** @phpstan-ignore-next-line */
|
58 |
$handler = new static($logger);
|
59 |
if ($errorLevelMap !== \false) {
|
53 |
public static function register(\Psr\Log\LoggerInterface $logger, $errorLevelMap = array(), $exceptionLevel = null, $fatalLevel = null)
|
54 |
{
|
55 |
//Forces the autoloader to run for LogLevel. Fixes an autoload issue at compile-time on PHP5.3. See https://github.com/Seldaek/monolog/pull/929
|
56 |
+
\class_exists('\\Psr\\Log\\LogLevel', \true);
|
57 |
/** @phpstan-ignore-next-line */
|
58 |
$handler = new static($logger);
|
59 |
if ($errorLevelMap !== \false) {
|
vendor_prefixed/monolog/monolog/src/Monolog/Utils.php
CHANGED
@@ -18,7 +18,7 @@ class Utils
|
|
18 |
public static function getClass($object)
|
19 |
{
|
20 |
$class = \get_class($object);
|
21 |
-
return 'c' === $class[0] && 0 === \strpos($class, "class@anonymous\
|
22 |
}
|
23 |
/**
|
24 |
* Makes sure if a relative path is passed in it is turned into an absolute path
|
18 |
public static function getClass($object)
|
19 |
{
|
20 |
$class = \get_class($object);
|
21 |
+
return 'c' === $class[0] && 0 === \strpos($class, "class@anonymous\x00") ? \get_parent_class($class) . '@anonymous' : $class;
|
22 |
}
|
23 |
/**
|
24 |
* Makes sure if a relative path is passed in it is turned into an absolute path
|
vendor_prefixed/wpdesk/wp-code-sniffer/composer.json
CHANGED
@@ -9,7 +9,7 @@
|
|
9 |
],
|
10 |
"homepage": "https:\/\/gitlab.com\/wpdesk\/wp-code-sniffer",
|
11 |
"type": "phpcodesniffer-standard",
|
12 |
-
"
|
13 |
"authors": [
|
14 |
{
|
15 |
"name": "grola",
|
@@ -17,7 +17,7 @@
|
|
17 |
}
|
18 |
],
|
19 |
"require": {
|
20 |
-
"dealerdirect\/phpcodesniffer-composer-installer": "
|
21 |
"phpcompatibility\/php-compatibility": "^9.3",
|
22 |
"squizlabs\/php_codesniffer": "^3.5",
|
23 |
"wp-coding-standards\/wpcs": "^2.2"
|
9 |
],
|
10 |
"homepage": "https:\/\/gitlab.com\/wpdesk\/wp-code-sniffer",
|
11 |
"type": "phpcodesniffer-standard",
|
12 |
+
"prefer-stable": true,
|
13 |
"authors": [
|
14 |
{
|
15 |
"name": "grola",
|
17 |
}
|
18 |
],
|
19 |
"require": {
|
20 |
+
"dealerdirect\/phpcodesniffer-composer-installer": "0.6|^0.7",
|
21 |
"phpcompatibility\/php-compatibility": "^9.3",
|
22 |
"squizlabs\/php_codesniffer": "^3.5",
|
23 |
"wp-coding-standards\/wpcs": "^2.2"
|
vendor_prefixed/wpdesk/wp-codeception/composer.json
CHANGED
@@ -20,7 +20,7 @@
|
|
20 |
"php": ">=5.6",
|
21 |
"ext-json": "*",
|
22 |
"wpdesk\/wp-builder": "^1.0",
|
23 |
-
"composer-plugin-api": "^1.1",
|
24 |
"codeception\/module-db": "^1.0",
|
25 |
"codeception\/module-cli": "^1.0",
|
26 |
"codeception\/module-webdriver": "^1.0",
|
20 |
"php": ">=5.6",
|
21 |
"ext-json": "*",
|
22 |
"wpdesk\/wp-builder": "^1.0",
|
23 |
+
"composer-plugin-api": "^1.1|^2",
|
24 |
"codeception\/module-db": "^1.0",
|
25 |
"codeception\/module-cli": "^1.0",
|
26 |
"codeception\/module-webdriver": "^1.0",
|
vendor_prefixed/wpdesk/wp-codeception/src/WPDesk/Composer/Plugin.php
CHANGED
@@ -26,6 +26,22 @@ class Plugin implements \FcfVendor\Composer\Plugin\PluginInterface, \FcfVendor\C
|
|
26 |
$this->composer = $composer;
|
27 |
$this->io = $io;
|
28 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
public function getCapabilities()
|
30 |
{
|
31 |
return [\FcfVendor\Composer\Plugin\Capability\CommandProvider::class => \FcfVendor\WPDesk\Composer\Codeception\CommandProvider::class];
|
26 |
$this->composer = $composer;
|
27 |
$this->io = $io;
|
28 |
}
|
29 |
+
/**
|
30 |
+
* @inheritDoc
|
31 |
+
*/
|
32 |
+
public function deactivate(\FcfVendor\Composer\Composer $composer, \FcfVendor\Composer\IO\IOInterface $io)
|
33 |
+
{
|
34 |
+
$this->composer = $composer;
|
35 |
+
$this->io = $io;
|
36 |
+
}
|
37 |
+
/**
|
38 |
+
* @inheritDoc
|
39 |
+
*/
|
40 |
+
public function uninstall(\FcfVendor\Composer\Composer $composer, \FcfVendor\Composer\IO\IOInterface $io)
|
41 |
+
{
|
42 |
+
$this->composer = $composer;
|
43 |
+
$this->io = $io;
|
44 |
+
}
|
45 |
public function getCapabilities()
|
46 |
{
|
47 |
return [\FcfVendor\Composer\Plugin\Capability\CommandProvider::class => \FcfVendor\WPDesk\Composer\Codeception\CommandProvider::class];
|