Contact Form by WPForms – Drag & Drop Form Builder for WordPress - Version 1.7.2.1

Version Description

  • Fixed: Compatibility with PHP 8.0 and PHP 8.1.
  • Fixed: Compatibility with WordPress 5.9, including its new Full Site Editing feature.
  • Fixed: Broken cache directory path if WP_CONTENT_DIR is set in the wp-config.php without trailing slash.
  • Fixed: PHP Notice when using the wpforms_log() function in certain conditions.
  • Fixed: Type mismatch brakes a list of scheduled actions in Action Scheduler if typed arguments are passed.
Download this release

Release Info

Developer slaFFik
Plugin Icon 128x128 Contact Form by WPForms – Drag & Drop Form Builder for WordPress
Version 1.7.2.1
Comparing to
See all releases

Code changes from version 1.7.2 to 1.7.2.1

Files changed (40) hide show
  1. assets/css/admin-integrations.css +13 -7
  2. assets/css/admin-integrations.min.css +1 -1
  3. assets/images/about/team.jpg +0 -0
  4. assets/images/analytics/screenshot-full.jpg +0 -0
  5. assets/images/analytics/screenshot-tnail.jpg +0 -0
  6. assets/images/education-geolocation.jpg +0 -0
  7. assets/images/geolocation-education/address-autocomplete.jpg +0 -0
  8. assets/images/geolocation-education/address-autocomplete@2x.jpg +0 -0
  9. assets/images/geolocation-education/entry-location.jpg +0 -0
  10. assets/images/geolocation-education/entry-location@2x.jpg +0 -0
  11. assets/images/geolocation-education/smart-address-field.jpg +0 -0
  12. assets/images/geolocation-education/smart-address-field@2x.jpg +0 -0
  13. assets/images/welcome-testimonial-david.jpg +0 -0
  14. assets/js/admin-builder.min.js +1 -1
  15. assets/js/admin-utils.min.js +1 -1
  16. assets/js/integrations/divi/formselector.min.js +1 -1
  17. assets/js/wpforms.min.js +1 -1
  18. assets/languages/wpforms-lite.pot +24 -24
  19. changelog.txt +7 -0
  20. includes/class-db.php +62 -0
  21. includes/fields/class-email.php +2 -2
  22. includes/functions.php +12 -6
  23. readme.txt +9 -2
  24. src/Admin/Builder/Help.php +8 -2
  25. src/Admin/Tools/Views/Logs.php +2 -2
  26. src/Helpers/CacheBase.php +1 -1
  27. src/Integrations/Divi/Divi.php +2 -2
  28. src/Integrations/Gutenberg/FormSelector.php +4 -3
  29. src/Loader.php +1 -1
  30. src/Logger/ListTable.php +2 -2
  31. src/Logger/Records.php +8 -0
  32. vendor/autoload.php +1 -1
  33. vendor/composer/ClassLoader.php +139 -12
  34. vendor/composer/InstalledVersions.php +340 -291
  35. vendor/composer/autoload_real.php +15 -10
  36. vendor/composer/autoload_static.php +5 -5
  37. vendor/composer/installed.php +105 -103
  38. vendor/goodby/csv/LICENSE +1 -1
  39. vendor/goodby/csv/src/Goodby/CSV/Export/Standard/CsvFileObject.php +2 -1
  40. wpforms.php +2 -2
assets/css/admin-integrations.css CHANGED
@@ -339,12 +339,14 @@
339
  /* Gutenberg Block
340
  ----------------------------------------------------------------------------- */
341
  .edit-post-visual-editor .wpforms-gutenberg-form-selector-wrap,
342
- .edit-widgets-block-editor .wpforms-gutenberg-form-selector-wrap {
 
343
  align-items: center;
344
  }
345
 
346
  .edit-post-visual-editor .wpforms-gutenberg-form-selector-wrap h3,
347
- .edit-widgets-block-editor .wpforms-gutenberg-form-selector-wrap h3 {
 
348
  width: 100%;
349
  margin: 10px 0 5px;
350
  font-weight: 700;
@@ -353,19 +355,22 @@
353
  }
354
 
355
  .edit-post-visual-editor .wpforms-gutenberg-form-selector-wrap img,
356
- .edit-widgets-block-editor .wpforms-gutenberg-form-selector-wrap img {
 
357
  margin-right: 15px;
358
  height: 100px;
359
  width: auto;
360
  }
361
 
362
  .edit-post-visual-editor .wpforms-gutenberg-form-selector-wrap .components-base-control,
363
- .edit-widgets-block-editor .wpforms-gutenberg-form-selector-wrap .components-base-control {
 
364
  width: 100%;
365
  }
366
 
367
  .edit-post-visual-editor .wpforms-gutenberg-form-selector-wrap .components-placeholder__fieldset,
368
- .edit-widgets-block-editor .wpforms-gutenberg-form-selector-wrap .components-placeholder__fieldset {
 
369
  justify-content: center;
370
  align-self: center;
371
  max-width: 400px;
@@ -373,7 +378,8 @@
373
  }
374
 
375
  .edit-post-visual-editor .wpforms-gutenberg-form-selector-wrap .components-select-control__input,
376
- .edit-widgets-block-editor .wpforms-gutenberg-form-selector-wrap .components-select-control__input {
 
377
  padding: 0 10px;
378
  height: auto;
379
  }
@@ -398,4 +404,4 @@ div.components-panel__body .wpforms-gutenberg-panel-notice {
398
  padding: 10px;
399
  }
400
 
401
- /*# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXNzZXRzL2Nzcy9hZG1pbi1pbnRlZ3JhdGlvbnMuY3NzIiwic291cmNlcyI6WyJhc3NldHMvc2Nzcy9hZG1pbi1pbnRlZ3JhdGlvbnMuc2NzcyIsImFzc2V0cy9zY3NzL192YXJpYWJsZXMuc2NzcyIsImFzc2V0cy9zY3NzL2FkbWluL19lbXB0eS1zdGF0ZXMuc2NzcyIsImFzc2V0cy9zY3NzL2ludGVncmF0aW9ucy9fZWxlbWVudG9yLnNjc3MiLCJhc3NldHMvc2Nzcy9pbnRlZ3JhdGlvbnMvZGl2aS9fcHJldmlldy5zY3NzIiwiYXNzZXRzL3Njc3MvaW50ZWdyYXRpb25zL19ndXRlbmJlcmcuc2NzcyJdLCJzb3VyY2VzQ29udGVudCI6WyIvKiBTdHlsZXMgbmVlZGVkIGZvciBpbnRlZ3JhdGlvbnMgd2l0aCB0aGlyZC1wYXJ0eSBwbHVnaW5zLiAqL1xuXG5AaW1wb3J0ICd2YXJpYWJsZXMnO1xuQGltcG9ydCAnYWRtaW4vZW1wdHktc3RhdGVzJztcbkBpbXBvcnQgJ2ludGVncmF0aW9ucy9lbGVtZW50b3InO1xuQGltcG9ydCAnaW50ZWdyYXRpb25zL2RpdmkvcHJldmlldyc7XG5AaW1wb3J0ICdpbnRlZ3JhdGlvbnMvZ3V0ZW5iZXJnJztcbiIsIiRvcmFuZ2U6ICNlMjc3MzA7XG4kYWx0b3JhbmdlOiAjZGY3NzM5O1xuJGRhcmtvcmFuZ2U6ICNiODVhMWI7XG4kZ3JlZW46ICMyYTliMzk7XG4kYmx1ZTogIzBlNm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sK0JBQStCLENBQUM7RUFDMUQsZ0JBQWdCLEVBQUUsT0FBTztFQUN6QixNQUFNLEVBQUUsaUJBQWlCO0VBQ3pCLEtBQUssRUFBRSxPQUFPO0VBQ2QsT0FBTyxFQUFFLElBQUk7Q0FDYiJ9 */
339
  /* Gutenberg Block
340
  ----------------------------------------------------------------------------- */
341
  .edit-post-visual-editor .wpforms-gutenberg-form-selector-wrap,
342
+ .edit-widgets-block-editor .wpforms-gutenberg-form-selector-wrap,
343
+ .editor-styles-wrapper .wpforms-gutenberg-form-selector-wrap {
344
  align-items: center;
345
  }
346
 
347
  .edit-post-visual-editor .wpforms-gutenberg-form-selector-wrap h3,
348
+ .edit-widgets-block-editor .wpforms-gutenberg-form-selector-wrap h3,
349
+ .editor-styles-wrapper .wpforms-gutenberg-form-selector-wrap h3 {
350
  width: 100%;
351
  margin: 10px 0 5px;
352
  font-weight: 700;
355
  }
356
 
357
  .edit-post-visual-editor .wpforms-gutenberg-form-selector-wrap img,
358
+ .edit-widgets-block-editor .wpforms-gutenberg-form-selector-wrap img,
359
+ .editor-styles-wrapper .wpforms-gutenberg-form-selector-wrap img {
360
  margin-right: 15px;
361
  height: 100px;
362
  width: auto;
363
  }
364
 
365
  .edit-post-visual-editor .wpforms-gutenberg-form-selector-wrap .components-base-control,
366
+ .edit-widgets-block-editor .wpforms-gutenberg-form-selector-wrap .components-base-control,
367
+ .editor-styles-wrapper .wpforms-gutenberg-form-selector-wrap .components-base-control {
368
  width: 100%;
369
  }
370
 
371
  .edit-post-visual-editor .wpforms-gutenberg-form-selector-wrap .components-placeholder__fieldset,
372
+ .edit-widgets-block-editor .wpforms-gutenberg-form-selector-wrap .components-placeholder__fieldset,
373
+ .editor-styles-wrapper .wpforms-gutenberg-form-selector-wrap .components-placeholder__fieldset {
374
  justify-content: center;
375
  align-self: center;
376
  max-width: 400px;
378
  }
379
 
380
  .edit-post-visual-editor .wpforms-gutenberg-form-selector-wrap .components-select-control__input,
381
+ .edit-widgets-block-editor .wpforms-gutenberg-form-selector-wrap .components-select-control__input,
382
+ .editor-styles-wrapper .wpforms-gutenberg-form-selector-wrap .components-select-control__input {
383
  padding: 0 10px;
384
  height: auto;
385
  }
404
  padding: 10px;
405
  }
406
 
407
+ /*# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXNzZXRzL2Nzcy9hZG1pbi1pbnRlZ3JhdGlvbnMuY3NzIiwic291cmNlcyI6WyJhc3NldHMvc2Nzcy9hZG1pbi1pbnRlZ3JhdGlvbnMuc2NzcyIsImFzc2V0cy9zY3NzL192YXJpYWJsZXMuc2NzcyIsImFzc2V0cy9zY3NzL2FkbWluL19lbXB0eS1zdGF0ZXMuc2NzcyIsImFzc2V0cy9zY3NzL2ludGVncmF0aW9ucy9fZWxlbWVudG9yLnNjc3MiLCJhc3NldHMvc2Nzcy9pbnRlZ3JhdGlvbnMvZGl2aS9fcHJldmlldy5zY3NzIiwiYXNzZXRzL3Njc3MvaW50ZWdyYXRpb25zL19ndXRlbmJlcmcuc2NzcyJdLCJzb3VyY2VzQ29udGVudCI6WyIvKiBTdHlsZXMgbmVlZGVkIGZvciBpbnRlZ3JhdGlvbnMgd2l0aCB0aGlyZC1wYXJ0eSBwbHVnaW5zLiAqL1xuXG5AaW1wb3J0ICd2YXJpYWJsZXMnO1xuQGltcG9ydCAnYWRtaW4vZW1wdHktc3RhdGVzJztcbkBpbXBvcnQgJ2ludGVncmF0aW9ucy9lbGVtZW50b3InO1xuQGltcG9ydCAnaW50ZWdyYXRpb25zL2RpdmkvcHJldmlldyc7XG5AaW1wb3J0ICdpbnRlZ3JhdGlvbnMvZ3V0ZW5iZXJnJztcbiIsIiRvcmFuZ2U6ICNlMjc3MzA7XG4kYWx0b3JhbmdlOiAjZGY3NzM5O1xuJGRhcmtvcmFuZ2U6ICNiODVhMWI7XG4kZ3JlZW46ICMyYTliMzk7XG4kYmx1ZTogIzBlNmNhZDtcbiRsaWdodEJsdWU6ICN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sWUFBWSxFQUFFLElBQUk7RUFDbEIsS0FBSyxFQUFFLElBQUk7RUFDWCxNQUFNLEVBQUUsV0FBVztDQUNuQjs7QUFURixBQVdDLEdBWEUsQUFBQSxnQ0FBZ0MsQ0FBQyxhQUFhLENBV2hELE1BQU0sQ0FBQSxBQUFBLElBQUMsQ0FBRCxNQUFDLEFBQUEsQ0FBWSxTQUFTLENBQUM7RUFDNUIsTUFBTSxFQUFFLFdBQVc7Q0FDbkI7O0FBR0YsQUFBQSxHQUFHLEFBQUEsdUJBQXVCLENBQUMsK0JBQStCLENBQUM7RUFDMUQsZ0JBQWdCLEVBQUUsT0FBTztFQUN6QixNQUFNLEVBQUUsaUJBQWlCO0VBQ3pCLEtBQUssRUFBRSxPQUFPO0VBQ2QsT0FBTyxFQUFFLElBQUk7Q0FDYiJ9 */
assets/css/admin-integrations.min.css CHANGED
@@ -1 +1 @@
1
- .wpforms-admin-empty-state-container{text-align:center;font-family:"Helvetica Neue", sans-serif;font-style:normal;padding:30px}.wpforms-admin-empty-state-container .waving-hand-emoji{display:inline-block;background-image:url(../images/empty-states/waving-hand-emoji.png);background-repeat:no-repeat;background-size:24px 24px;background-position:0 0;padding-left:34px}.wpforms-admin-empty-state-container h2{font-family:inherit;font-weight:bold;font-size:24px;color:#444444;line-height:29px;margin:0 0 10px}.wpforms-admin-empty-state-container img{max-width:428px;width:100%;margin:30px auto}.wpforms-admin-empty-state-container p{font-family:inherit;font-weight:normal;font-size:16px;line-height:24px;text-align:center;color:#777777;margin:0 auto}.wpforms-admin-empty-state-container.wpforms-admin-no-forms p:first-of-type{font-weight:bold}.wpforms-admin-empty-state-container.wpforms-admin-no-forms .wpforms-btn,.wpforms-admin-empty-state-container.wpforms-admin-no-forms .wpforms-btn:active{border:none;border-radius:3px;font-family:inherit;font-weight:bold;font-size:16px;line-height:24px;text-align:center;color:#FFFFFF;padding:15px 30px;margin:0;text-decoration:none}.wpforms-admin-empty-state-container.wpforms-admin-no-forms .wpforms-btn:hover,.wpforms-admin-empty-state-container.wpforms-admin-no-forms .wpforms-btn:active:hover{text-decoration:none}.wpforms-admin-empty-state-container.wpforms-admin-no-forms .wpforms-btn:focus,.wpforms-admin-empty-state-container.wpforms-admin-no-forms .wpforms-btn:active:focus{outline:none}.wpforms-admin-empty-state-container.wpforms-admin-no-forms .wpforms-admin-no-forms-footer{margin-top:30px;font-size:14px;line-height:16px}.wpforms-admin-empty-state-container.wpforms-elementor-no-forms{background:rgba(255,255,255,0.5);border:1px solid #71D7F7;box-sizing:border-box;padding:20px}.wpforms-admin-empty-state-container.wpforms-elementor-no-forms img{max-width:240px;width:100%;margin:0 auto}.wpforms-admin-empty-state-container.wpforms-elementor-no-forms p{font-family:inherit;font-weight:normal;font-size:14px;line-height:18px;text-align:center;color:#495157;max-width:450px;margin:20px auto 0}.wpforms-admin-empty-state-container.wpforms-elementor-no-forms a{color:inherit;text-decoration:underline}.wpforms-admin-empty-state-container.wpforms-elementor-no-forms a:hover{color:#D30C5C;text-decoration:underline}.wpforms-admin-empty-state-container.wpforms-elementor-no-forms .wpforms-btn{background:#D30C5C;border:none;border-radius:3px;font-family:inherit;font-weight:500;font-size:12px;line-height:18px;text-align:center;text-transform:uppercase;color:#FFFFFF;padding:7px 17px;margin:20px 0 0;text-decoration:none}.wpforms-admin-empty-state-container.wpforms-elementor-no-forms .wpforms-btn:hover{text-decoration:none;background:#fd1e7a}.wpforms-admin-empty-state-container.wpforms-elementor-no-forms .wpforms-btn:focus{outline:none}.wpforms-admin-empty-state-container.wpforms-elementor-no-forms .wpforms-admin-no-forms-footer{font-size:12px;line-height:18px;color:#6D7882}.wpforms-admin-empty-state-container.wpforms-admin-no-entries img{max-width:413px}#wpforms-builder-elementor-popup{position:fixed;width:100vw;height:100vh;padding:30px;z-index:10000;background:rgba(0,0,0,0.75);left:0;top:0}#wpforms-builder-elementor-popup iframe{width:100%;height:100%;background-color:#ffffff}.wpforms-elementor-form-selector{background:rgba(255,255,255,0.5);border:1px solid #71D7F7;box-sizing:border-box;text-align:center;font-family:"Helvetica Neue", sans-serif;font-style:normal;padding:40px}.wpforms-elementor-form-selector img{width:220px;margin:0 auto 20px auto}.wpforms-elementor-form-selector .select-wrapper{position:relative;padding:0;width:100%;max-width:266px;margin:0 auto;line-height:0}.wpforms-elementor-form-selector .select-wrapper:after{font-family:eicons;content:"\e8ad";font-size:12px;position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);right:5px;pointer-events:none;opacity:0.55}.wpforms-elementor-form-selector select{font-family:inherit;font-style:inherit;font-weight:normal;font-size:12px;line-height:12px;color:#6D7882;padding:0 20px 0 5px;width:100%;height:27px;text-overflow:ellipsis;margin:0;background:#FFFFFF;border:1px solid #D5DADF;box-sizing:border-box;border-radius:3px;cursor:pointer;appearance:none;-webkit-appearance:none}.wpforms-elementor-form-selector select:focus{outline:none}@font-face{font-family:'Icon WPForms';src:url("../images/integrations/elementor/font/icon-wpforms.eot");src:url("../images/integrations/elementor/font/icon-wpforms.eot#iefix") format("embedded-opentype"),url("../images/integrations/elementor/font/icon-wpforms.woff2") format("woff2"),url("../images/integrations/elementor/font/icon-wpforms.woff") format("woff"),url("../images/integrations/elementor/font/icon-wpforms.ttf") format("truetype"),url("../images/integrations/elementor/font/icon-wpforms.svg") format("svg")}#elementor-editor-wrapper .icon-wpforms,.elementor-edit-area .icon-wpforms{display:inline-block;width:28px}#elementor-editor-wrapper .icon-wpforms:before,.elementor-edit-area .icon-wpforms:before{content:'\e800';font-family:"Icon WPForms";font-style:normal;font-weight:normal;speak:never}#elementor-editor-wrapper .elementor-widget-empty-icon.icon-wpforms,.elementor-edit-area .elementor-widget-empty-icon.icon-wpforms{width:22px;line-height:22px;padding:0;font-size:22px;text-align:center}#elementor-editor-wrapper .elementor-navigator__item .icon-wpforms,.elementor-edit-area .elementor-navigator__item .icon-wpforms{width:11px;height:11px}#elementor-editor-wrapper .elementor-control.elementor-control-edit_form,.elementor-edit-area .elementor-control.elementor-control-edit_form{padding:0 20px 10px 20px;font-style:italic;font-weight:normal;font-size:11px;line-height:13px;color:#A4AFB7}#elementor-editor-wrapper .elementor-control.elementor-control-edit_form a,.elementor-edit-area .elementor-control.elementor-control-edit_form a{cursor:pointer}#elementor-editor-wrapper .elementor-control.elementor-control-test_form_notice a,.elementor-edit-area .elementor-control.elementor-control-test_form_notice a{color:#6d7882;border-bottom-color:#6d7882}#elementor-editor-wrapper .elementor-control.elementor-control-test_form_notice a:hover,.elementor-edit-area .elementor-control.elementor-control-test_form_notice a:hover{color:#d30c5c;border-bottom-color:#d30c5c}#elementor-editor-wrapper .elementor-control.elementor-control-add_form_btn .elementor-button,.elementor-edit-area .elementor-control.elementor-control-add_form_btn .elementor-button{padding:7px 16px}#elementor-editor-wrapper .elementor-control.elementor-control-add_form_btn .elementor-button b,.elementor-edit-area .elementor-control.elementor-control-add_form_btn .elementor-button b{margin:0 10px 0 0;font-size:13px;font-weight:400;line-height:12px}#elementor-editor-wrapper .elementor-control.elementor-control-add_form_btn.elementor-label-inline>.elementor-control-content>.elementor-control-field>.elementor-control-input-wrapper,.elementor-edit-area .elementor-control.elementor-control-add_form_btn.elementor-label-inline>.elementor-control-content>.elementor-control-field>.elementor-control-input-wrapper{margin-right:auto}.wpforms-divi-form-placeholder,.et-db #et-boc .et-l .wpforms-divi-form-placeholder{padding:25px 15px;text-align:center;display:flex;flex-wrap:wrap;justify-content:center}.wpforms-divi-form-placeholder img,.et-db #et-boc .et-l .wpforms-divi-form-placeholder img{height:100px;width:auto;margin-right:15px;display:block}.wpforms-divi-form-placeholder h3,.et-db #et-boc .et-l .wpforms-divi-form-placeholder h3{width:100%;margin:10px 0 0;font-weight:700;font-family:-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;font-size:20px;line-height:28px;text-align:center;padding:0;letter-spacing:0;text-transform:none}.wpforms-divi-form-preview.loading,.et-db #et-boc .et-l .wpforms-divi-form-preview.loading{opacity:.7}.et-db #et-boc .et-l .et-fb-modules-list ul>li.wpforms_selector::before{content:'';background-image:url("../images/integrations/divi/wpforms-icon.svg");height:16px;font-variant:normal;background-position:center center;background-repeat:no-repeat}.edit-post-visual-editor .wpforms-gutenberg-form-selector-wrap,.edit-widgets-block-editor .wpforms-gutenberg-form-selector-wrap{align-items:center}.edit-post-visual-editor .wpforms-gutenberg-form-selector-wrap h3,.edit-widgets-block-editor .wpforms-gutenberg-form-selector-wrap h3{width:100%;margin:10px 0 5px;font-weight:700;font-size:20px;text-align:center}.edit-post-visual-editor .wpforms-gutenberg-form-selector-wrap img,.edit-widgets-block-editor .wpforms-gutenberg-form-selector-wrap img{margin-right:15px;height:100px;width:auto}.edit-post-visual-editor .wpforms-gutenberg-form-selector-wrap .components-base-control,.edit-widgets-block-editor .wpforms-gutenberg-form-selector-wrap .components-base-control{width:100%}.edit-post-visual-editor .wpforms-gutenberg-form-selector-wrap .components-placeholder__fieldset,.edit-widgets-block-editor .wpforms-gutenberg-form-selector-wrap .components-placeholder__fieldset{justify-content:center;align-self:center;max-width:400px;flex-direction:row !important}.edit-post-visual-editor .wpforms-gutenberg-form-selector-wrap .components-select-control__input,.edit-widgets-block-editor .wpforms-gutenberg-form-selector-wrap .components-select-control__input{padding:0 10px;height:auto}div.wpforms-gutenberg-form-selector .wpforms-form input:disabled,div.wpforms-gutenberg-form-selector .wpforms-form textarea:disabled,div.wpforms-gutenberg-form-selector .wpforms-form select:disabled{background-color:#fff;border-color:#ccc;color:#333;cursor:not-allowed}div.wpforms-gutenberg-form-selector .wpforms-form button[type=submit]:disabled{cursor:not-allowed}div.components-panel__body .wpforms-gutenberg-panel-notice{background-color:#d9edf7;border:1px solid #bce8f1;color:#31708f;padding:10px}
1
+ .wpforms-admin-empty-state-container{text-align:center;font-family:"Helvetica Neue", sans-serif;font-style:normal;padding:30px}.wpforms-admin-empty-state-container .waving-hand-emoji{display:inline-block;background-image:url(../images/empty-states/waving-hand-emoji.png);background-repeat:no-repeat;background-size:24px 24px;background-position:0 0;padding-left:34px}.wpforms-admin-empty-state-container h2{font-family:inherit;font-weight:bold;font-size:24px;color:#444444;line-height:29px;margin:0 0 10px}.wpforms-admin-empty-state-container img{max-width:428px;width:100%;margin:30px auto}.wpforms-admin-empty-state-container p{font-family:inherit;font-weight:normal;font-size:16px;line-height:24px;text-align:center;color:#777777;margin:0 auto}.wpforms-admin-empty-state-container.wpforms-admin-no-forms p:first-of-type{font-weight:bold}.wpforms-admin-empty-state-container.wpforms-admin-no-forms .wpforms-btn,.wpforms-admin-empty-state-container.wpforms-admin-no-forms .wpforms-btn:active{border:none;border-radius:3px;font-family:inherit;font-weight:bold;font-size:16px;line-height:24px;text-align:center;color:#FFFFFF;padding:15px 30px;margin:0;text-decoration:none}.wpforms-admin-empty-state-container.wpforms-admin-no-forms .wpforms-btn:hover,.wpforms-admin-empty-state-container.wpforms-admin-no-forms .wpforms-btn:active:hover{text-decoration:none}.wpforms-admin-empty-state-container.wpforms-admin-no-forms .wpforms-btn:focus,.wpforms-admin-empty-state-container.wpforms-admin-no-forms .wpforms-btn:active:focus{outline:none}.wpforms-admin-empty-state-container.wpforms-admin-no-forms .wpforms-admin-no-forms-footer{margin-top:30px;font-size:14px;line-height:16px}.wpforms-admin-empty-state-container.wpforms-elementor-no-forms{background:rgba(255,255,255,0.5);border:1px solid #71D7F7;box-sizing:border-box;padding:20px}.wpforms-admin-empty-state-container.wpforms-elementor-no-forms img{max-width:240px;width:100%;margin:0 auto}.wpforms-admin-empty-state-container.wpforms-elementor-no-forms p{font-family:inherit;font-weight:normal;font-size:14px;line-height:18px;text-align:center;color:#495157;max-width:450px;margin:20px auto 0}.wpforms-admin-empty-state-container.wpforms-elementor-no-forms a{color:inherit;text-decoration:underline}.wpforms-admin-empty-state-container.wpforms-elementor-no-forms a:hover{color:#D30C5C;text-decoration:underline}.wpforms-admin-empty-state-container.wpforms-elementor-no-forms .wpforms-btn{background:#D30C5C;border:none;border-radius:3px;font-family:inherit;font-weight:500;font-size:12px;line-height:18px;text-align:center;text-transform:uppercase;color:#FFFFFF;padding:7px 17px;margin:20px 0 0;text-decoration:none}.wpforms-admin-empty-state-container.wpforms-elementor-no-forms .wpforms-btn:hover{text-decoration:none;background:#fd1e7a}.wpforms-admin-empty-state-container.wpforms-elementor-no-forms .wpforms-btn:focus{outline:none}.wpforms-admin-empty-state-container.wpforms-elementor-no-forms .wpforms-admin-no-forms-footer{font-size:12px;line-height:18px;color:#6D7882}.wpforms-admin-empty-state-container.wpforms-admin-no-entries img{max-width:413px}#wpforms-builder-elementor-popup{position:fixed;width:100vw;height:100vh;padding:30px;z-index:10000;background:rgba(0,0,0,0.75);left:0;top:0}#wpforms-builder-elementor-popup iframe{width:100%;height:100%;background-color:#ffffff}.wpforms-elementor-form-selector{background:rgba(255,255,255,0.5);border:1px solid #71D7F7;box-sizing:border-box;text-align:center;font-family:"Helvetica Neue", sans-serif;font-style:normal;padding:40px}.wpforms-elementor-form-selector img{width:220px;margin:0 auto 20px auto}.wpforms-elementor-form-selector .select-wrapper{position:relative;padding:0;width:100%;max-width:266px;margin:0 auto;line-height:0}.wpforms-elementor-form-selector .select-wrapper:after{font-family:eicons;content:"\e8ad";font-size:12px;position:absolute;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);right:5px;pointer-events:none;opacity:0.55}.wpforms-elementor-form-selector select{font-family:inherit;font-style:inherit;font-weight:normal;font-size:12px;line-height:12px;color:#6D7882;padding:0 20px 0 5px;width:100%;height:27px;text-overflow:ellipsis;margin:0;background:#FFFFFF;border:1px solid #D5DADF;box-sizing:border-box;border-radius:3px;cursor:pointer;appearance:none;-webkit-appearance:none}.wpforms-elementor-form-selector select:focus{outline:none}@font-face{font-family:'Icon WPForms';src:url("../images/integrations/elementor/font/icon-wpforms.eot");src:url("../images/integrations/elementor/font/icon-wpforms.eot#iefix") format("embedded-opentype"),url("../images/integrations/elementor/font/icon-wpforms.woff2") format("woff2"),url("../images/integrations/elementor/font/icon-wpforms.woff") format("woff"),url("../images/integrations/elementor/font/icon-wpforms.ttf") format("truetype"),url("../images/integrations/elementor/font/icon-wpforms.svg") format("svg")}#elementor-editor-wrapper .icon-wpforms,.elementor-edit-area .icon-wpforms{display:inline-block;width:28px}#elementor-editor-wrapper .icon-wpforms:before,.elementor-edit-area .icon-wpforms:before{content:'\e800';font-family:"Icon WPForms";font-style:normal;font-weight:normal;speak:never}#elementor-editor-wrapper .elementor-widget-empty-icon.icon-wpforms,.elementor-edit-area .elementor-widget-empty-icon.icon-wpforms{width:22px;line-height:22px;padding:0;font-size:22px;text-align:center}#elementor-editor-wrapper .elementor-navigator__item .icon-wpforms,.elementor-edit-area .elementor-navigator__item .icon-wpforms{width:11px;height:11px}#elementor-editor-wrapper .elementor-control.elementor-control-edit_form,.elementor-edit-area .elementor-control.elementor-control-edit_form{padding:0 20px 10px 20px;font-style:italic;font-weight:normal;font-size:11px;line-height:13px;color:#A4AFB7}#elementor-editor-wrapper .elementor-control.elementor-control-edit_form a,.elementor-edit-area .elementor-control.elementor-control-edit_form a{cursor:pointer}#elementor-editor-wrapper .elementor-control.elementor-control-test_form_notice a,.elementor-edit-area .elementor-control.elementor-control-test_form_notice a{color:#6d7882;border-bottom-color:#6d7882}#elementor-editor-wrapper .elementor-control.elementor-control-test_form_notice a:hover,.elementor-edit-area .elementor-control.elementor-control-test_form_notice a:hover{color:#d30c5c;border-bottom-color:#d30c5c}#elementor-editor-wrapper .elementor-control.elementor-control-add_form_btn .elementor-button,.elementor-edit-area .elementor-control.elementor-control-add_form_btn .elementor-button{padding:7px 16px}#elementor-editor-wrapper .elementor-control.elementor-control-add_form_btn .elementor-button b,.elementor-edit-area .elementor-control.elementor-control-add_form_btn .elementor-button b{margin:0 10px 0 0;font-size:13px;font-weight:400;line-height:12px}#elementor-editor-wrapper .elementor-control.elementor-control-add_form_btn.elementor-label-inline>.elementor-control-content>.elementor-control-field>.elementor-control-input-wrapper,.elementor-edit-area .elementor-control.elementor-control-add_form_btn.elementor-label-inline>.elementor-control-content>.elementor-control-field>.elementor-control-input-wrapper{margin-right:auto}.wpforms-divi-form-placeholder,.et-db #et-boc .et-l .wpforms-divi-form-placeholder{padding:25px 15px;text-align:center;display:flex;flex-wrap:wrap;justify-content:center}.wpforms-divi-form-placeholder img,.et-db #et-boc .et-l .wpforms-divi-form-placeholder img{height:100px;width:auto;margin-right:15px;display:block}.wpforms-divi-form-placeholder h3,.et-db #et-boc .et-l .wpforms-divi-form-placeholder h3{width:100%;margin:10px 0 0;font-weight:700;font-family:-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen-Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;font-size:20px;line-height:28px;text-align:center;padding:0;letter-spacing:0;text-transform:none}.wpforms-divi-form-preview.loading,.et-db #et-boc .et-l .wpforms-divi-form-preview.loading{opacity:.7}.et-db #et-boc .et-l .et-fb-modules-list ul>li.wpforms_selector::before{content:'';background-image:url("../images/integrations/divi/wpforms-icon.svg");height:16px;font-variant:normal;background-position:center center;background-repeat:no-repeat}.edit-post-visual-editor .wpforms-gutenberg-form-selector-wrap,.edit-widgets-block-editor .wpforms-gutenberg-form-selector-wrap,.editor-styles-wrapper .wpforms-gutenberg-form-selector-wrap{align-items:center}.edit-post-visual-editor .wpforms-gutenberg-form-selector-wrap h3,.edit-widgets-block-editor .wpforms-gutenberg-form-selector-wrap h3,.editor-styles-wrapper .wpforms-gutenberg-form-selector-wrap h3{width:100%;margin:10px 0 5px;font-weight:700;font-size:20px;text-align:center}.edit-post-visual-editor .wpforms-gutenberg-form-selector-wrap img,.edit-widgets-block-editor .wpforms-gutenberg-form-selector-wrap img,.editor-styles-wrapper .wpforms-gutenberg-form-selector-wrap img{margin-right:15px;height:100px;width:auto}.edit-post-visual-editor .wpforms-gutenberg-form-selector-wrap .components-base-control,.edit-widgets-block-editor .wpforms-gutenberg-form-selector-wrap .components-base-control,.editor-styles-wrapper .wpforms-gutenberg-form-selector-wrap .components-base-control{width:100%}.edit-post-visual-editor .wpforms-gutenberg-form-selector-wrap .components-placeholder__fieldset,.edit-widgets-block-editor .wpforms-gutenberg-form-selector-wrap .components-placeholder__fieldset,.editor-styles-wrapper .wpforms-gutenberg-form-selector-wrap .components-placeholder__fieldset{justify-content:center;align-self:center;max-width:400px;flex-direction:row !important}.edit-post-visual-editor .wpforms-gutenberg-form-selector-wrap .components-select-control__input,.edit-widgets-block-editor .wpforms-gutenberg-form-selector-wrap .components-select-control__input,.editor-styles-wrapper .wpforms-gutenberg-form-selector-wrap .components-select-control__input{padding:0 10px;height:auto}div.wpforms-gutenberg-form-selector .wpforms-form input:disabled,div.wpforms-gutenberg-form-selector .wpforms-form textarea:disabled,div.wpforms-gutenberg-form-selector .wpforms-form select:disabled{background-color:#fff;border-color:#ccc;color:#333;cursor:not-allowed}div.wpforms-gutenberg-form-selector .wpforms-form button[type=submit]:disabled{cursor:not-allowed}div.components-panel__body .wpforms-gutenberg-panel-notice{background-color:#d9edf7;border:1px solid #bce8f1;color:#31708f;padding:10px}
assets/images/about/team.jpg CHANGED
Binary file
assets/images/analytics/screenshot-full.jpg CHANGED
Binary file
assets/images/analytics/screenshot-tnail.jpg CHANGED
Binary file
assets/images/education-geolocation.jpg CHANGED
Binary file
assets/images/geolocation-education/address-autocomplete.jpg CHANGED
Binary file
assets/images/geolocation-education/address-autocomplete@2x.jpg CHANGED
Binary file
assets/images/geolocation-education/entry-location.jpg CHANGED
Binary file
assets/images/geolocation-education/entry-location@2x.jpg CHANGED
Binary file
assets/images/geolocation-education/smart-address-field.jpg CHANGED
Binary file
assets/images/geolocation-education/smart-address-field@2x.jpg CHANGED
Binary file
assets/images/welcome-testimonial-david.jpg CHANGED
Binary file
assets/js/admin-builder.min.js CHANGED
@@ -1 +1 @@
1
- var WPFormsBuilder=window.WPFormsBuilder||function(r,n,h){var g,b,p={},i=!0,l=!1,v={settings:{spinner:'<i class="wpforms-loading-spinner"></i>',spinnerInline:'<i class="wpforms-loading-spinner wpforms-loading-inline"></i>',tinymceDefaults:{tinymce:{toolbar1:"bold,italic,underline,blockquote,strikethrough,bullist,numlist,alignleft,aligncenter,alignright,undo,redo,link"},quicktags:!0},pagebreakTop:!1,pagebreakBottom:!1,upload_img_modal:!1},init:function(){var e=this;wpforms_panel_switch=!0,g=this.settings,h(v.ready),h(n).on("load",function(){"function"==typeof h.ready.then?h.ready.then(v.load):v.load()}),h(n).on("beforeunload",function(){if(!e.formIsSaved()&&i)return wpforms_builder.are_you_sure_to_close})},load:function(){v.hideLoadingOverlay(),"1"==wpforms_builder.template_modal_display&&"fields"===wpf.getQueryString("view")&&h.alert({title:wpforms_builder.template_modal_title,content:wpforms_builder.template_modal_msg,icon:"fa fa-info-circle",type:"blue",buttons:{confirm:{text:wpforms_builder.close,btnClass:"btn-confirm",keys:["enter"]}}})},ready:function(){v.isVisitedViaBackButton()?location.reload():(b=h("#wpforms-builder"),p.$fieldOptions=h("#wpforms-field-options"),p.$sortableFieldsWrap=h(".wpforms-field-wrap"),p.$noFieldsOptions=h(".wpforms-no-fields-holder .no-fields"),p.$noFieldsPreview=h(".wpforms-no-fields-holder .no-fields-preview"),p.$addFieldsButtons=h(".wpforms-add-fields-button").not(".not-draggable").not(".warning-modal").not(".education-modal"),v.isBuilderInPopup()&&(h("#wpforms-embed").remove(),h("#wpforms-preview-btn").addClass("wpforms-alone")),v.loadMsWinCSS(),v.bindUIActions(),wpf.getQueryString("newform")&&v.formSave(!1),g.formID=h("#wpforms-builder-form").data("id"),g.pagebreakTop=h(".wpforms-pagebreak-top").length,g.pagebreakBottom=h(".wpforms-pagebreak-bottom").length,b.on("keypress","#wpforms-builder-form :input:not(textarea)",function(e){13===e.keyCode&&e.preventDefault()}),h(".wpforms-panel").each(function(e,i){var t,o=h(this),r=o.find(".wpforms-panel-sidebar-section.configured").first();r.length?(t=r.data("section"),r.addClass("active"),o.find(".wpforms-panel-content-section-"+t).show().addClass("active"),o.find(".wpforms-panel-content-section-default").hide()):(o.find(".wpforms-panel-content-section:first-of-type").show().addClass("active"),o.find(".wpforms-panel-sidebar-section:first-of-type").addClass("active"))}),v.loadEntryPreviewFields(),v.fieldSortable(),v.fieldChoiceSortable("select"),v.fieldChoiceSortable("radio"),v.fieldChoiceSortable("checkbox"),v.fieldChoiceSortable("payment-multiple"),v.fieldChoiceSortable("payment-checkbox"),v.fieldChoiceSortable("payment-select"),h(".wpforms-setup-templates.core .wpforms-template-inner").matchHeight({byRow:!1}),h(".wpforms-setup-templates.additional .wpforms-template-inner").matchHeight({byRow:!1}),h(".wpforms-add-fields-group").each(function(e,i){v.fieldGroupToggle(h(this),"load")}),v.registerTemplates(),v.trimFormTitle(),wpf.initTooltips(),v.loadColorPickers(),v.captchaToggle(),v.confirmationsSetup(),v.notificationToggle(),v.notificationsByStatusAlerts(),v.builderHotkeys(),h("#wpforms-setup-name").val(h("#wpforms-panel-field-settings-form_title").val()),jconfirm.defaults={closeIcon:!1,backgroundDismiss:!1,escapeKey:!0,animationBounce:1,useBootstrap:!1,theme:"modern",boxWidth:"400px",animateFromElement:!1,content:wpforms_builder.something_went_wrong},v.dropdownField.init(),v.initSomeFieldOptions(),v.dismissNotice())},loadMsWinCSS:function(){var e=navigator.userAgent;e.indexOf("Windows")<0||e.indexOf("Chrome")<0&&e.indexOf("Firefox")<0||h("<link>").appendTo("head").attr({type:"text/css",rel:"stylesheet",href:wpforms_builder.ms_win_css_url})},isVisitedViaBackButton:function(){if(!performance)return!1;var i=!1;return performance.getEntriesByType("navigation").forEach(function(e){"back_forward"===e.type&&(i=!0)}),i},hideLoadingOverlay:function(){var e=h("#wpforms-builder-overlay");e.addClass("fade-out"),setTimeout(function(){e.hide()},250)},showLoadingOverlay:function(){var e=h("#wpforms-builder-overlay");e.removeClass("fade-out"),e.show()},initSomeFieldOptions:function(){v.toggleAllOptionGroups(b),b.find(".wpforms-field-option-row-date .type select").trigger("change")},dropdownField:{config:{modernClass:"choicesjs-select",args:{searchEnabled:!1,searchChoices:!1,renderChoiceLimit:1,shouldSort:!1,callbackOnInit:function(){var e=h(this.containerOuter.element),i=e.closest(".wpforms-field").find("select");e.hasClass("is-disabled")&&e.removeClass("is-disabled"),i.is("[readonly]")&&(this.disable(),i.prop("disabled",!1)),this.passedElement.element.multiple&&this.getValue(!0).length&&h(this.input.element).addClass("choices__input--hidden")}}},init:function(){b.find("."+v.dropdownField.config.modernClass).each(function(){v.dropdownField.events.choicesInit(h(this))}),b.on("change",".wpforms-field-option-select .wpforms-field-option-row-multiple input",v.dropdownField.events.multiple),b.on("change",".wpforms-field-option-select .wpforms-field-option-row-style select, .wpforms-field-option-payment-select .wpforms-field-option-row-style select",v.dropdownField.events.applyStyle)},events:{choicesInit:function(e){var i=new Choices(e[0],v.dropdownField.config.args);v.dropdownField.helpers.setInstance(e,i),v.dropdownField.helpers.addPlaceholderChoice(e,i)},multiple:function(e){var i=h(this).closest(".wpforms-field-option-row-multiple").data().fieldId,t=v.dropdownField.helpers.getPrimarySelector(i),o=h("#wpforms-field-option-row-"+i+"-choices input.default"),r=t.find(".placeholder"),a=v.dropdownField.helpers.isDynamicChoices(i),n=e.target.checked,e=n?"checkbox":"radio";t.prop("multiple",n),o.prop("type",e),a&&t.find("option:selected").prop("selected",!1),t=o.filter(":checked"),!n&&t.length&&(o.prop("checked",!1),h(t.get(0)).prop("checked",!0)),r.length&&r.prop("selected",!n),v.dropdownField.helpers.update(i,a)},applyStyle:function(){var e=h(this),i=e.closest(".wpforms-field-option-row-style").data().fieldId;"modern"===e.val()?v.dropdownField.helpers.convertClassicToModern(i):v.dropdownField.helpers.convertModernToClassic(i)}},helpers:{convertModernToClassic:function(e){var i=v.dropdownField.helpers.getPrimarySelector(e),t=v.dropdownField.helpers.isDynamicChoices(e),i=v.dropdownField.helpers.getInstance(i);i.destroy(),v.dropdownField.helpers.updatePlaceholderChoice(i,e),t||v.fieldChoiceUpdate("select",e)},convertClassicToModern:function(e){var i=v.dropdownField.helpers.getPrimarySelector(e);v.dropdownField.helpers.isDynamicChoices(e)||v.fieldChoiceUpdate("select",e),v.dropdownField.events.choicesInit(i)},update:function(e,i){var t=v.dropdownField.helpers.getPrimarySelector(e);v.dropdownField.helpers.isModernSelect(t)?(v.dropdownField.helpers.convertModernToClassic(e),v.dropdownField.events.choicesInit(t)):i||v.fieldChoiceUpdate("select",e)},addPlaceholderChoice:function(e,i){var t=e.closest(".wpforms-field").data().fieldId,o=v.dropdownField.helpers.hasDefaults(t);if(v.dropdownField.helpers.isDynamicChoices(t)&&(o=!1),!1!==v.dropdownField.helpers.searchPlaceholderChoice(i))return!1;if(!i.config.choices.length)return!1;e=i.config.choices[0].label,t=h(i.passedElement.element).prop("multiple");return i.setChoices([{value:"",label:e,selected:!(t||o),placeholder:!0}],"value","label",!1),t&&h(i.input.element).prop("placeholder",e),!0},searchPlaceholderChoice:function(e){var o=!1;return e.config.choices.forEach(function(e,i,t){if(void 0!==e.placeholder&&!0===e.placeholder)return!(o={key:i,item:e})}),o},updatePlaceholderChoice:function(e,i){var t=h(e.passedElement.element),o=wpf.sanitizeHTML(h("#wpforms-field-option-"+i+"-placeholder").val()),i=v.dropdownField.helpers.searchPlaceholderChoice(e),e={};"object"==typeof i&&(e=h(t.find("option").get(i.key))),""!==o?!h.isEmptyObject(e)&&e.length?e.addClass("placeholder").text(o):t.prepend('<option value="" class="placeholder">'+o+"</option>"):e.length&&e.remove()},isModernSelect:function(e){e=v.dropdownField.helpers.getInstance(e);return"object"==typeof e&&(!h.isEmptyObject(e)&&e.initialised)},setInstance:function(e,i){e.data("choicesjs",i)},getInstance:function(e){return e.data("choicesjs")},isDynamicChoices:function(e){e=h("#wpforms-field-option-"+e+"-dynamic_choices");return!!e.length&&""!==e.val()},hasDefaults:function(e){return!!h("#wpforms-field-option-row-"+e+"-choices .choices-list").find("input.default:checked").length},getPrimarySelector:function(e){return h("#wpforms-field-"+e+" .primary-input")}}},numberSliderEvents:function(e){e.on("input",".wpforms-field-option-row-min_max .wpforms-input-row .wpforms-number-slider-min",v.fieldNumberSliderUpdateMin),e.on("input",".wpforms-field-option-row-min_max .wpforms-input-row .wpforms-number-slider-max",v.fieldNumberSliderUpdateMax),e.on("input",".wpforms-number-slider-default-value",_.debounce(v.changeNumberSliderDefaultValue,500)),e.on("input",".wpforms-number-slider-step",_.debounce(v.changeNumberSliderStep,500)),e.on("focusout",".wpforms-number-slider-step",v.checkNumberSliderStep),e.on("input",".wpforms-number-slider-value-display",_.debounce(v.changeNumberSliderValueDisplay,500)),e.on("input",".wpforms-number-slider-min",_.debounce(v.changeNumberSliderMin,500)),e.on("input",".wpforms-number-slider-max",_.debounce(v.changeNumberSliderMax,500))},changeNumberSliderMin:function(e){var i=h(e.target).parents(".wpforms-field-option-row").data("fieldId"),t=parseFloat(e.target.value);isNaN(t)||v.updateNumberSliderDefaultValueAttr(i,e.target.value,"min")},changeNumberSliderMax:function(e){var i=h(e.target).parents(".wpforms-field-option-row").data("fieldId"),t=parseFloat(e.target.value);isNaN(t)||v.updateNumberSliderDefaultValueAttr(i,e.target.value,"max").updateNumberSliderStepValueMaxAttr(i,e.target.value)},changeNumberSliderValueDisplay:function(e){var i=e.target.value,t=h(e.target).parents(".wpforms-field-option-row").data("fieldId"),e=r.getElementById("wpforms-field-option-"+t+"-default_value");e&&v.updateNumberSliderHintStr(t,i).updateNumberSliderHint(t,e.value)},changeNumberSliderStep:function(e){var i,t,o,r=parseFloat(e.target.value);isNaN(r)||(i=parseFloat(e.target.max),t=parseFloat(e.target.min),o=h(e.target).parents(".wpforms-field-option-row").data("fieldId"),r<=0||(i<r?e.target.value=i:r<t?e.target.value=t:v.updateNumberSliderAttr(o,r,"step").updateNumberSliderDefaultValueAttr(o,r,"step")))},checkNumberSliderStep:function(e){var e=parseFloat(e.target.value),i=h(this);!isNaN(e)&&0<e||h.confirm({title:wpforms_builder.heads_up,content:wpforms_builder.error_number_slider_increment,icon:"fa fa-exclamation-circle",type:"orange",buttons:{confirm:{text:wpforms_builder.ok,btnClass:"btn-confirm",keys:["enter"],action:function(){i.val("").focus()}}}})},changeNumberSliderDefaultValue:function(e){var i,t,o,r=parseFloat(e.target.value);isNaN(r)||(i=parseFloat(e.target.max),t=parseFloat(e.target.min),o=h(e.target).parents(".wpforms-field-option-row-default_value").data("fieldId"),i<r?e.target.value=i:r<t?e.target.value=t:v.updateNumberSlider(o,r).updateNumberSliderHint(o,r))},updateNumberSliderDefaultValueAttr:function(e,i,t){var o=r.getElementById("wpforms-field-option-"+e+"-default_value");return o&&(e=parseFloat(o.value),o.setAttribute(t,i),i=parseFloat(i),"max"===t&&i<e&&(o.value=i,h(o).trigger("input")),"min"===t&&e<i&&(o.value=i,h(o).trigger("input"))),this},updateNumberSlider:function(e,i){e=r.getElementById("wpforms-number-slider-"+e);return e&&(e.value=i),this},updateNumberSliderAttr:function(e,i,t){e=r.getElementById("wpforms-number-slider-"+e);return e&&e.setAttribute(t,i),this},updateNumberSliderHintStr:function(e,i){e=r.getElementById("wpforms-number-slider-hint-"+e);return e&&(e.dataset.hint=i),this},updateNumberSliderHint:function(e,i){e=r.getElementById("wpforms-number-slider-hint-"+e);return e&&(e.innerHTML=wpf.sanitizeHTML(e.dataset.hint).replace("{value}","<b>"+i+"</b>")),this},fieldNumberSliderUpdateMin:function(e){var i=h(e.target).parents(".wpforms-field-option-row-min_max"),t=parseFloat(i.find(".wpforms-number-slider-max").val()),o=parseFloat(e.target.value);if(!isNaN(o)){if(t<=o)return e.preventDefault(),void(this.value=t);i=i.data("field-id");b.find("#wpforms-field-"+i+' input[type="range"]').attr("min",o)}},fieldNumberSliderUpdateMax:function(e){var i=h(e.target).parents(".wpforms-field-option-row-min_max"),t=parseFloat(i.find(".wpforms-number-slider-min").val()),o=parseFloat(e.target.value);if(!isNaN(o)){if(o<=t)return e.preventDefault(),void(this.value=t);i=i.data("field-id");b.find("#wpforms-field-"+i+' input[type="range"]').attr("max",o)}},updateNumberSliderStepValueMaxAttr:function(e,i){var t=r.getElementById("wpforms-field-option-"+e+"-step");return t&&(e=parseFloat(t.value),t.setAttribute("max",i),(i=parseFloat(i))<e&&(t.value=i,h(t).trigger("input"))),this},fieldFileUploadPreviewUpdate:function(e){var i=h(e).parents(".wpforms-field-option-file-upload"),t=i.data("field-id"),o=i.find("#wpforms-field-option-"+t+"-style").val(),r=i.find("#wpforms-field-option-row-"+t+"-max_file_number"),a=parseInt(r.find("input").val(),10),e=h("#wpforms-field-"+t),i=".wpforms-file-upload-builder-classic",t=".wpforms-file-upload-builder-modern";"classic"===o?(h(i,e).removeClass("wpforms-hide"),h(t,e).addClass("wpforms-hide"),r.addClass("wpforms-hidden")):(1<a?(e.find(".modern-title").text(wpforms_builder.file_upload.preview_title_plural),e.find(".modern-hint").text(wpforms_builder.file_upload.preview_hint.replace("{maxFileNumber}",a)).removeClass("wpforms-hide")):(e.find(".modern-title").text(wpforms_builder.file_upload.preview_title_single),e.find(".modern-hint").text(wpforms_builder.file_upload.preview_hint.replace("{maxFileNumber}",1)).addClass("wpforms-hide")),h(i,e).addClass("wpforms-hide"),h(t,e).removeClass("wpforms-hide"),r.removeClass("wpforms-hidden"))},updateTextFieldsLimitControls:function(e,i){i?h("#wpforms-field-option-row-"+e+"-limit_controls").removeClass("wpforms-hide"):h("#wpforms-field-option-row-"+e+"-limit_controls").addClass("wpforms-hide")},updatePasswordStrengthControls:function(e,i){e=h("#wpforms-field-option-row-"+e+"-password-strength-level");i?e.removeClass("wpforms-hidden"):e.addClass("wpforms-hidden")},updateRichTextMediaFieldsLimitControls:function(){var e=h(this),i=e.closest(".wpforms-field-option-row-media_enabled").data("field-id"),t=h("#wpforms-field-option-row-"+i+"-media_controls"),i=h("#wpforms-field-"+i+" .wpforms-richtext-wrap .mce-toolbar-grp");e.is(":checked")?(t.show(),i.addClass("wpforms-field-richtext-media-enabled")):(t.hide(),i.removeClass("wpforms-field-richtext-media-enabled"))},updateRichTextStylePreview:function(){var e=h(this),i=e.closest(".wpforms-field-option-row-style").data("field-id");h("#wpforms-field-"+i+" .wpforms-richtext-wrap .mce-toolbar-grp").toggleClass("wpforms-field-richtext-toolbar-basic","full"!==e.val())},bindUIActions:function(){v.bindUIActionsPanels(),v.bindUIActionsFields(),v.bindUIActionsSettings(),v.bindUIActionsSaveExit(),v.bindUIActionsGeneral()},bindUIActionsPanels:function(){b.on("click","#wpforms-panels-toggle button, .wpforms-panel-switch",function(e){e.preventDefault(),v.panelSwitch(h(this).data("panel"))}),b.on("click",".wpforms-panel .wpforms-panel-sidebar-section",function(e){v.panelSectionSwitch(this,e)})},panelSwitch:function(e){var i=h("#wpforms-panel-"+e),t=h(".wpforms-panel-"+e+"-button");if(!i.hasClass("active")){if(b.trigger("wpformsPanelSwitch",[e]),!wpforms_panel_switch)return!1;h("#wpforms-panels-toggle").find("button").removeClass("active"),h(".wpforms-panel").removeClass("active"),t.addClass("active"),i.addClass("active"),history.replaceState({},null,wpf.updateQueryString("view",e)),b.trigger("wpformsPanelSwitched",[e])}},panelSectionSwitch:function(e,i){i&&i.preventDefault();var t=h(e),o=t.parent().parent(),r=t.data("section"),i=o.find(".wpforms-panel-sidebar-section"),e=o.find(".wpforms-panel-sidebar-section-"+r);t.hasClass("upgrade-modal")||t.hasClass("education-modal")||e.hasClass("active")||(b.trigger("wpformsPanelSectionSwitch",r),i.removeClass("active"),e.addClass("active"),o.find(".wpforms-panel-content-section").hide(),o.find(".wpforms-panel-content-section-"+r).show())},bindUIActionsSetup:function(){console.warn('WARNING! Function "WPFormsBuilder.bindUIActionsSetup()" has been deprecated, please use the new "WPForms.Admin.Builder.Setup.events()" function instead!'),WPForms.Admin.Builder.Setup.events()},templateSelect:function(e,i){console.warn('WARNING! Function "WPFormsBuilder.templateSelect()" has been deprecated, please use the new "WPForms.Admin.Builder.Setup.selectTemplate()" function instead!'),WPForms.Admin.Builder.Setup.selectTemplate(i)},bindUIActionsFields:function(){b.on("click",".wpforms-tab a",function(e){e.preventDefault(),v.fieldTabToggle(h(this).parent().attr("id"))}),b.on("click",".wpforms-add-fields-heading",function(e){e.preventDefault(),v.fieldGroupToggle(h(this),"click")}),b.on("click",".wpforms-field",function(e){v.isFieldPreviewActionsDisabled(this)||v.fieldTabToggle(h(this).data("field-id"))}),b.on("mousedown click",".wpforms-field input, .wpforms-field select, .wpforms-field textarea",function(e){e.preventDefault(),this.blur()}),b.on("click",".wpforms-field-delete",function(e){e.preventDefault(),e.stopPropagation(),v.isFieldPreviewActionsDisabled(this)||v.fieldDelete(h(this).parent().data("field-id"))}),b.on("click",".wpforms-field-duplicate",function(e){e.preventDefault(),e.stopPropagation(),v.isFieldPreviewActionsDisabled(this)||v.fieldDuplicate(h(this).parent().data("field-id"))}),b.on("click",".wpforms-add-fields-button",function(e){e.preventDefault();e=h(this);e.hasClass("ui-draggable-disabled")||v.fieldAdd(e.data("field-type"))}),b.on("wpformsFieldAdd",function(e,i,t){"select"!==t&&"radio"!==t&&"checkbox"!==t&&"payment-multiple"!==t&&"payment-checkbox"!==t&&"payment-select"!==t||v.fieldChoiceSortable(t,"#wpforms-field-option-row-"+i+"-choices ul")}),b.on("click",".wpforms-field-option-row-choices .add",function(e){v.fieldChoiceAdd(e,h(this))}),b.on("click",".wpforms-field-option-row-choices .remove",function(e){v.fieldChoiceDelete(e,h(this))}),b.on("mousedown",".wpforms-field-option-row-choices input[type=radio]",function(e){var i=h(this);i.is(":checked")?i.attr("data-checked","1"):i.attr("data-checked","0")}),b.on("click",".wpforms-field-option-row-choices input[type=radio]",function(e){var i=h(this),t=i.parent().parent();i.parent().parent().find("input[type=radio]").not(this).prop("checked",!1),"1"===i.attr("data-checked")&&(i.prop("checked",!1),i.attr("data-checked","0")),v.fieldChoiceUpdate(t.data("field-type"),t.data("field-id"))}),b.on("change",".wpforms-field-option-row-choices input[type=checkbox]",function(e){var i=h(this).parent().parent();v.fieldChoiceUpdate(i.data("field-type"),i.data("field-id"))}),b.on("change",".wpforms-field-option-row-show_values input",function(e){h(this).closest(".wpforms-field-option").find(".wpforms-field-option-row-choices ul").toggleClass("show-values")}),b.on("change",".wpforms-field-option-row-choices_images input",function(){var e=h(this),i=e.closest(".wpforms-field-option-row"),t=i.data("field-id"),o=h("#wpforms-field-option-"+t),r=e.is(":checked"),e=o.find(".wpforms-field-option-hidden-type").val();i.find(".wpforms-alert").toggleClass("wpforms-hidden"),o.find(".wpforms-field-option-row-choices ul").toggleClass("show-images"),o.find(".wpforms-field-option-row-choices_images_style").toggleClass("wpforms-hidden"),o.find(".wpforms-field-option-row-dynamic_choices").toggleClass("wpforms-hidden",r),(r?h("#wpforms-field-option-"+t+"-input_columns").val("inline"):h("#wpforms-field-option-"+t+"-input_columns").val("")).trigger("change"),v.fieldChoiceUpdate(e,t)}),b.on("wpformsImageUploadAdd wpformsImageUploadRemove",function(e,i,t){var o=t.closest(".choices-list"),t=o.data("field-id"),o=o.data("field-type");v.fieldChoiceUpdate(o,t)}),b.on("change",".wpforms-field-option-row-choices_images_style select",function(){var e=h(this).parent().data("field-id"),i=h("#wpforms-field-option-"+e).find(".wpforms-field-option-hidden-type").val();v.fieldChoiceUpdate(i,e)}),b.on("keyup",".wpforms-field-option-row-choices input.label, .wpforms-field-option-row-choices input.value",function(e){var i=h(this).parent().parent();v.fieldChoiceUpdate(i.data("field-type"),i.data("field-id"))}),b.on("click",".toggle-bulk-add-display",function(e){e.preventDefault(),v.fieldChoiceBulkAddToggle(this)}),b.on("click",".toggle-bulk-add-presets",function(e){e.preventDefault();e=h(this).closest(".bulk-add-display").find("ul");"block"===e.css("display")?h(this).text(wpforms_builder.bulk_add_presets_show):h(this).text(wpforms_builder.bulk_add_presets_hide),e.stop().slideToggle()}),b.on("click",".bulk-add-preset-insert",function(e){e.preventDefault();var i=h(this),t=i.data("preset"),o=i.closest(".bulk-add-display"),e=o.find("ul"),i=o.find(".toggle-bulk-add-presets"),o=o.find("textarea");o.val(""),o.insertAtCaret(wpforms_preset_choices[t].choices.join("\n")),i.text(wpforms_builder.bulk_add_presets_show),e.slideUp()}),b.on("click",".bulk-add-insert",function(e){e.preventDefault(),v.fieldChoiceBulkAddInsert(this)}),b.on("click",".wpforms-field-option-group-toggle:not(.education-modal)",function(e){e.preventDefault();e=h(this).closest(".wpforms-field-option-group");e.siblings(".wpforms-field-option-group").removeClass("active"),e.addClass("active")}),b.on("change",".wpforms-field-option-address input.wpforms-subfield-hide",function(e){var i=h(this).closest(".wpforms-field-option-row"),t=i.data("field-id"),i=i.data("subfield");h("#wpforms-field-"+t).find(".wpforms-"+i).toggleClass("wpforms-hide")}),b.on("input",".wpforms-field-option-row-label input, .wpforms-field-option-row-name input",function(e){var i=h(this),t=i.val(),o=i.parent().data("field-id"),r=h("#wpforms-field-"+o),i=r.data("field-type"),o=0===t.length;(o="html"===i?!1:o)&&(t=wpforms_builder.empty_label),r.toggleClass("label_empty",o).find(".label-title .text").text(t)}),b.on("input",".wpforms-field-option-row-description textarea",function(){var e=h(this),i=wpf.sanitizeHTML(e.val()),e=e.parent().data("field-id"),e=h("#wpforms-field-"+e).find(".description");v.updateDescription(e,i)}),b.on("change",".wpforms-field-option-row-required input",function(e){var i=h(this).closest(".wpforms-field-option-row").data("field-id");h("#wpforms-field-"+i).toggleClass("required")}),b.on("change",".wpforms-field-option-row-confirmation input",function(e){var i=h(this).closest(".wpforms-field-option-row").data("field-id");h("#wpforms-field-"+i).find(".wpforms-confirm").toggleClass("wpforms-confirm-enabled wpforms-confirm-disabled"),h("#wpforms-field-option-"+i).toggleClass("wpforms-confirm-enabled wpforms-confirm-disabled")}),b.on("change",".wpforms-field-option-row-filter_type select",function(){var e=h(this).parent().data("field-id"),e=h("#wpforms-field-option-"+e);h(this).val()?(e.removeClass("wpforms-filter-allowlist"),e.removeClass("wpforms-filter-denylist"),e.addClass("wpforms-filter-"+h(this).val())):(e.removeClass("wpforms-filter-allowlist"),e.removeClass("wpforms-filter-denylist"))}),b.on("focusout",".wpforms-field-option-row-allowlist textarea,.wpforms-field-option-row-denylist textarea",function(){var i=h(this);h.get(wpforms_builder.ajax_url,{nonce:wpforms_builder.nonce,content:i.val(),action:"wpforms_sanitize_restricted_rules"},function(e){e.success&&i.val(e.data)})}),b.on("change",".wpforms-field-option-row-size select",function(e){var i=h(this),t=i.val(),i=i.parent().data("field-id");h("#wpforms-field-"+i).removeClass("size-small size-medium size-large").addClass("size-"+t)}),b.on("input",".wpforms-field-option-row-placeholder input",function(){var e,i=h(this),t=wpf.sanitizeHTML(i.val()),o=i.parent().data("field-id"),r=h("#wpforms-field-"+o+" .primary-input");r.is("select")?v.dropdownField.helpers.isModernSelect(r)?(i=v.dropdownField.helpers.getInstance(r),r.prop("multiple")?h(i.input.element).prop("placeholder",t):(i.setChoiceByValue(""),r.closest(".choices").find(".choices__inner .choices__placeholder").text(t),e=h("#wpforms-field-option-"+o+"-dynamic_choices").val(),v.dropdownField.helpers.update(o,e))):(e=r.find(".placeholder"),!t.length&&e.length?e.remove():(e.length?e.text(t):r.prepend('<option value="" class="placeholder">'+t+"</option>"),r.find(".placeholder").prop("selected",!r.prop("multiple")))):r.prop("placeholder",t)}),b.on("input",".wpforms-field-option-row-confirmation_placeholder input",function(e){var i=h(this),t=i.val(),i=i.parent().data("field-id");h("#wpforms-field-"+i).find(".secondary-input").attr("placeholder",t)}),b.on("change",".wpforms-field-option-row-label_hide input",function(e){var i=h(this).closest(".wpforms-field-option-row").data("field-id");h("#wpforms-field-"+i).toggleClass("label_hide")}),b.on("change",".wpforms-field-option-row-sublabel_hide input",function(e){var i=h(this).closest(".wpforms-field-option-row").data("field-id");h("#wpforms-field-"+i).toggleClass("sublabel_hide")}),b.on("change",".wpforms-field-option-row-format select",function(e){var i=h(this),t=i.val(),i=i.parent().data("field-id");h("#wpforms-field-"+i).find(".format-selected").removeClass().addClass("format-selected format-selected-"+t),h("#wpforms-field-option-"+i).find(".format-selected").removeClass().addClass("format-selected format-selected-"+t)}),b.on("change",".wpforms-field-option-row-scheme select",function(e){var i=h(this),t=i.val(),o=i.parent().data("field-id"),i=h("#wpforms-field-"+o);i.find(".wpforms-address-scheme").addClass("wpforms-hide"),i.find(".wpforms-address-scheme-"+t).removeClass("wpforms-hide"),0==i.find(".wpforms-address-scheme-"+t+" .wpforms-country").children().length?h("#wpforms-field-option-"+o).find(".wpforms-field-option-row-country").addClass("wpforms-hidden"):h("#wpforms-field-option-"+o).find(".wpforms-field-option-row-country").removeClass("wpforms-hidden")}),b.on("input",".wpforms-field-option .format-selected input.placeholder, .wpforms-field-option-address input.placeholder",function(e){var i=h(this),t=i.val(),o=i.closest(".wpforms-field-option-row"),i=o.data("field-id"),o=o.data("subfield");h("#wpforms-field-"+i).find(".wpforms-"+o+" input").attr("placeholder",t)}),b.on("change",".wpforms-field-option-row-date .type select",function(e){var i=h(this),t=i.val(),o=h(this).closest(".wpforms-field-option-row").data("field-id"),r="datepicker"===t?"wpforms-date-type-datepicker":"wpforms-date-type-dropdown",a="datepicker"===t?"wpforms-date-type-dropdown":"wpforms-date-type-datepicker";h("#wpforms-field-"+o).find(".wpforms-date").addClass(r).removeClass(a),h("#wpforms-field-option-"+o).addClass(r).removeClass(a);a=i.closest(".wpforms-field-option-group-advanced").find(".wpforms-field-option-row-date_limit_days, .wpforms-field-option-row-date_limit_days_options, .wpforms-field-option-row-date_disable_past_dates"),i=h("#wpforms-field-option-row-"+o+"-date_limit_days_options");"dropdown"===t?((t=h("#wpforms-field-option-"+o+"-date_format")).find("option:selected").hasClass("datepicker-only")&&t.prop("selectedIndex",0).trigger("change"),a.hide()):(a.show(),h("#wpforms-field-option-"+o+"-date_limit_days").is(":checked")?i.show():i.hide())}),b.on("change",".wpforms-field-option-row-date .format select",function(e){var i=h(this).val(),t=h(this).closest(".wpforms-field-option-row").data("field-id"),t=h("#wpforms-field-"+t);"m/d/Y"===i?(t.find(".wpforms-date-dropdown .first option").text(wpforms_builder.date_select_month),t.find(".wpforms-date-dropdown .second option").text(wpforms_builder.date_select_day)):"d/m/Y"===i&&(t.find(".wpforms-date-dropdown .first option").text(wpforms_builder.date_select_day),t.find(".wpforms-date-dropdown .second option").text(wpforms_builder.date_select_month))}),b.on("change",".wpforms-field-option-row-time .format select",function(e){for(var i=h(this),r=h(this).closest(".wpforms-field-option-row").data("field-id"),a="",n=i.val().match(/[gh]/)?12:24,t=0;t<n;t++)a+='<option value="{hh}">{hh}</option>'.replace(/{hh}/g,t<10?"0"+t:t);_.forEach(["start","end"],function(e){var i=b.find("#wpforms-field-option-"+r+"-time_limit_hours_"+e+"_hour"),t=b.find("#wpforms-field-option-"+r+"-time_limit_hours_"+e+"_ampm"),o=parseInt(i.val(),10),e=t.val();o=(o=24==n?"pm"===e?o+12:o:(e=12<o?"pm":"am",12<o?o-12:o))<10?"0"+o:o,i.html(a).val(o),t.toggleClass("wpforms-hidden-strict",24==n).val(e),t.nextAll("div").toggleClass("wpforms-hidden-strict",12==n)})}),b.on("click",".wpforms-pagebreak-button",function(e){e.preventDefault(),h(this).closest(".wpforms-field").trigger("click")}),v.fieldPageBreakInitDisplayPrevious(b.find(".wpforms-field-pagebreak.wpforms-pagebreak-normal:first")),b.on("input",".wpforms-field-option-row-next input",function(e){var i=h(this),t=i.val(),i=h("#wpforms-field-"+i.parent().data("field-id")).find(".wpforms-pagebreak-next");t?i.css("display","inline-block").text(t):i.css("display","none").empty()}).on("input",".wpforms-field-option-row-prev input",function(e){var i=h(this),t=i.val().trim(),o=h("#wpforms-field-"+i.parent().data("field-id")),i=o.find(".wpforms-pagebreak-prev");t&&0<o.prevAll(".wpforms-field-pagebreak.wpforms-pagebreak-normal").length?i.removeClass("wpforms-hidden").text(t):i.addClass("wpforms-hidden").empty()}).on("change",".wpforms-field-option-row-prev_toggle input",function(e){var i=h(this),t=i.closest(".wpforms-field-option-row-prev_toggle"),o=i.closest(".wpforms-field-option-group-inner").find(".wpforms-field-option-row-prev"),r=o.find("input"),a=h("#wpforms-field-"+i.closest(".wpforms-field-option").data("field-id")).find(".wpforms-pagebreak-prev");t.hasClass("wpforms-entry-preview-block")||(o.toggleClass("wpforms-hidden",!i.prop("checked")),a.toggleClass("wpforms-hidden",!i.prop("checked")),i.prop("checked")&&!r.val()&&(a=(a=r.data("last-value"))&&a.trim()?a.trim():wpforms_builder.previous,r.val(a)),i.prop("checked")||(r.data("last-value",r.val()),r.val("")),r.trigger("input"))}).on("wpformsFieldAdd",v.fieldPagebreakAdd).on("wpformsFieldDelete",v.fieldPagebreakDelete).on("wpformsBeforeFieldDelete",v.fieldEntryPreviewDelete),b.on("wpformsFieldMove wpformsFieldAdd wpformsFieldDelete",function(e){b.find(".wpforms-field-pagebreak.wpforms-pagebreak-normal").each(function(e){v.fieldPageBreakInitDisplayPrevious(h(this))})}),b.on("input",".wpforms-field-option-row-title input",function(e){var i=h(this),t=i.val(),i=i.parent().data("field-id");t?h("#wpforms-field-"+i).find(".wpforms-pagebreak-title").text("("+t+")"):h("#wpforms-field-"+i).find(".wpforms-pagebreak-title").empty()}),b.on("change",".wpforms-field-option-row-nav_align select",function(e){var i=(i=h(this).val())||"center";h(".wpforms-pagebreak-buttons").removeClass("wpforms-pagebreak-buttons-center wpforms-pagebreak-buttons-left wpforms-pagebreak-buttons-right wpforms-pagebreak-buttons-split").addClass("wpforms-pagebreak-buttons-"+i)}),b.on("input",".wpforms-field-option-row-price input",function(e){var i=h(this),t=i.val(),o=i.parent().data("field-id"),i=wpf.amountSanitize(t),t=wpf.amountFormat(i),i="right"===wpforms_builder.currency_symbol_pos?t+" "+wpforms_builder.currency_symbol:wpforms_builder.currency_symbol+" "+t;h("#wpforms-field-"+o).find(".primary-input").val(t),h("#wpforms-field-"+o).find(".price").text(i)}),b.on("change",".wpforms-field-option-credit-card .payment-icons input",function(e){var i=h(this),t=i.data("card"),i=i.parent().data("field-id");h("#wpforms-field-"+i).find("img.icon-"+t).toggleClass("card_hide")}),b.on("input",".wpforms-field-option input.placeholder-update",function(e){var i=h(this),t=i.val(),o=i.data("field-id"),i=i.data("subfield");h("#wpforms-field-"+o).find(".wpforms-"+i+" input").attr("placeholder",t)}),b.on("change",".wpforms-field-option-row-input_columns select",function(){var e=h(this),i=e.val(),t="",e=e.parent().data("field-id");"2"===i?t="wpforms-list-2-columns":"3"===i?t="wpforms-list-3-columns":"inline"===i&&(t="wpforms-list-inline"),h("#wpforms-field-"+e).removeClass("wpforms-list-2-columns wpforms-list-3-columns wpforms-list-inline").addClass(t)}),b.on("change",".wpforms-field-option-row .wpforms-toggle-control input",function(e){var i=h(this),t=i.closest(".wpforms-toggle-control").find(".wpforms-toggle-control-status"),i=i.is(":checked")?"on":"off";t.html(t.data(i))}),b.on("change",".wpforms-field-option-row-dynamic_choices select",function(e){v.fieldDynamicChoiceToggle(h(this))}),b.on("change",".wpforms-field-option-row-dynamic_taxonomy select, .wpforms-field-option-row-dynamic_post_type select",function(e){v.fieldDynamicChoiceSource(h(this))}),b.on("click",".toggle-layout-selector-display",function(e){e.preventDefault(),v.fieldLayoutSelectorToggle(this)}),b.on("click",".layout-selector-display-layout",function(e){e.preventDefault(),v.fieldLayoutSelectorLayout(this)}),b.on("click",".layout-selector-display-columns span",function(e){e.preventDefault(),v.fieldLayoutSelectorInsert(this)}),h(r).on("change",".wpforms-field-option-row-scale select",function(){var e=h(this),i=e.val(),e=e.parent().data("field-id"),e=h("#wpforms-field-"+e+" .rating-icon"),t=1;e.each(function(e){t<=i?h(this).show():h(this).hide(),t++})}),h(r).on("change",".wpforms-field-option-row-icon select",function(){var e=h(this),i=e.val(),t=e.parent().data("field-id"),e="fa-star";"heart"===i?e="fa-heart":"thumb"===i?e="fa-thumbs-up":"smiley"===i&&(e="fa-smile-o"),h("#wpforms-field-"+t+" .rating-icon").removeClass("fa-star fa-heart fa-thumbs-up fa-smile-o").addClass(e)}),h(r).on("change",".wpforms-field-option-row-icon_size select",function(){var e=h(this),i=e.val(),e=e.parent().data("field-id"),e=h("#wpforms-field-"+e+" .rating-icon");fontSize="28","small"===i?fontSize="18":"large"===i&&(fontSize="38"),e.css("font-size",fontSize+"px")}),h(r).on("input",".wpforms-field-option-row-icon_color input.wpforms-color-picker",function(){var e=h(this),i=e.val(),e=e.closest(".wpforms-field-option-row").data("field-id");h("#wpforms-field-"+e+" > i.fa").css("color",i)}),h(r).on("change",".wpforms-field-option-row-disclaimer_format input",function(){var e=h(this).closest(".wpforms-field-option-row").data("field-id");h("#wpforms-field-"+e+" .description").toggleClass("disclaimer")}),b.on("change",".wpforms-field-option-row-limit_enabled input",function(e){v.updateTextFieldsLimitControls(h(e.target).closest(".wpforms-field-option-row-limit_enabled").data().fieldId,e.target.checked)}),b.on("change",".wpforms-field-option-row-password-strength input",function(e){v.updatePasswordStrengthControls(h(e.target).parents(".wpforms-field-option-row-password-strength").data().fieldId,e.target.checked)}),b.on("change",".wpforms-field-option-richtext .wpforms-field-option-row-media_enabled input",v.updateRichTextMediaFieldsLimitControls),b.on("change",".wpforms-field-option-richtext .wpforms-field-option-row-style select",v.updateRichTextStylePreview),b.on("change",".wpforms-field-option-file-upload .wpforms-field-option-row-style select, .wpforms-field-option-file-upload .wpforms-field-option-row-max_file_number input",function(e){v.fieldFileUploadPreviewUpdate(e.target)}),v.numberSliderEvents(b),v.fieldDynamicChoiceToggleImageChoices(),b.on("change",".wpforms-field-option-row-show_price_after_labels input",function(e){var i=h(this).closest(".wpforms-field-option-group-basic").find(".wpforms-field-option-row-choices .choices-list");v.fieldChoiceUpdate(i.data("field-type"),i.data("field-id"))}),b.on("input",".wpforms-field-option-row-preview-notice textarea",v.updatePreviewNotice).on("change",".wpforms-field-option-row-preview-notice-enable input",v.toggleEntryPreviewNotice).on("wpformsFieldAdd",v.maybeLockEntryPreviewGroupOnAdd).on("wpformsFieldMove",v.maybeLockEntryPreviewGroupOnMove).on("click",".wpforms-entry-preview-block",v.entryPreviewBlockField),v.defaultStateEntryPreviewNotice()},isFieldPreviewActionsDisabled:function(e){return h(e).closest(".wpforms-field-wrap").hasClass("ui-sortable-disabled")},fieldGroupToggle:function(e,i){var t=h(e),o=t.next(".wpforms-add-fields-buttons"),r=o.parent(),a=t.find("i"),e="wpforms_field_group_"+t.data("group");if("click"===i)return r.hasClass("wpforms-closed")?wpCookies.remove(e):wpCookies.set(e,"true",2592e3),a.toggleClass("wpforms-angle-right"),void o.stop().slideToggle("",function(){r.toggleClass("wpforms-closed")});"load"===i&&(o=t.find(".wpforms-add-fields-buttons"),a=t.find(".wpforms-add-fields-heading i"),e="wpforms_field_group_"+t.find(".wpforms-add-fields-heading").data("group"),"true"===wpCookies.get(e)&&(a.toggleClass("wpforms-angle-right"),o.hide(),t.toggleClass("wpforms-closed")))},updateDescription:function(e,i){e.hasClass("nl2br")&&(i=i.replace(/\n/g,"<br>")),e.html(i)},defaultStateEntryPreviewNotice:function(){h(".wpforms-field-option-row-preview-notice-enable input").each(function(){h(this).trigger("change")})},updatePreviewNotice:function(){var e=h(this),i=wpf.sanitizeHTML(e.val()).trim(),e=e.parent().data("field-id"),e=h("#wpforms-field-"+e).find(".wpforms-entry-preview-notice"),i=i||wpforms_builder.entry_preview_default_notice;v.updateDescription(e,i)},toggleEntryPreviewNotice:function(){var e=h(this),i=e.closest(".wpforms-field-option").data("field-id"),t=h("#wpforms-field-"+i),o=h("#wpforms-field-option-"+i+" .wpforms-field-option-row-preview-notice"),i=t.find(".wpforms-entry-preview-notice"),t=t.find(".wpforms-alert-info");if(e.is(":checked"))return t.hide(),i.show(),void o.show();o.hide(),i.hide(),t.show()},fieldDelete:function(e){var i=h("#wpforms-field-"+e),t=i.data("field-type");"pagebreak"===t&&i.hasClass("wpforms-field-entry-preview-not-deleted")?v.youCantRemovePageBreakFieldPopup():i.hasClass("no-delete")?v.youCantRemoveFieldPopup():v.confirmFieldDeletion(e,t)},youCantRemovePageBreakFieldPopup:function(){h.alert({title:wpforms_builder.heads_up,content:wpforms_builder.entry_preview_require_page_break,icon:"fa fa-exclamation-circle",type:"red",buttons:{confirm:{text:wpforms_builder.ok,btnClass:"btn-confirm",keys:["enter"]}}})},youCantReorderFieldPopup:function(){h.confirm({title:wpforms_builder.heads_up,content:wpforms_builder.field_cannot_be_reordered,icon:"fa fa-exclamation-circle",type:"red",buttons:{confirm:{text:wpforms_builder.ok,btnClass:"btn-confirm",keys:["enter"]}}})},youCantRemoveFieldPopup:function(){h.alert({title:wpforms_builder.field_locked,content:wpforms_builder.field_locked_no_delete_msg,icon:"fa fa-info-circle",type:"blue",buttons:{confirm:{text:wpforms_builder.close,btnClass:"btn-confirm",keys:["enter"]}}})},confirmFieldDeletion:function(e,i){var t={id:e,message:wpforms_builder.delete_confirm};b.trigger("wpformsBeforeFieldDeleteAlert",[t]),h.confirm({title:!1,content:t.message,icon:"fa fa-exclamation-circle",type:"orange",buttons:{confirm:{text:wpforms_builder.ok,btnClass:"btn-confirm",keys:["enter"],action:function(){v.fieldDeleteById(e,i)}},cancel:{text:wpforms_builder.cancel}}})},fieldDeleteById:function(e,i){h("#wpforms-field-"+e).fadeOut(400,function(){b.trigger("wpformsBeforeFieldDelete",[e,i]),h(this).remove(),h("#wpforms-field-option-"+e).remove(),h(".wpforms-field, .wpforms-title-desc").removeClass("active"),v.fieldTabToggle("add-fields"),h(".wpforms-field").length<1&&(p.$fieldOptions.append(p.$noFieldsOptions.clone()),p.$sortableFieldsWrap.append(p.$noFieldsPreview.clone()),b.find(".wpforms-field-submit").hide()),b.trigger("wpformsFieldDelete",[e,i])})},loadEntryPreviewFields:function(){var e=h(".wpforms-field-wrap .wpforms-field-entry-preview");e.length&&e.each(function(){v.lockEntryPreviewFieldsPosition(h(this).data("field-id"))})},fieldEntryPreviewDelete:function(e,i,t){"entry-preview"===t&&(i=(t=h("#wpforms-field-"+i)).prevAll(".wpforms-field-pagebreak"),t=t.nextAll(".wpforms-field-pagebreak").data("field-id"),t=h("#wpforms-field-option-"+t),i.removeClass("wpforms-field-not-draggable wpforms-field-entry-preview-not-deleted"),t.find(".wpforms-entry-preview-block").removeClass("wpforms-entry-preview-block"))},maybeLockEntryPreviewGroupOnMove:function(e,i){i.item.hasClass("wpforms-field-pagebreak")&&v.maybeLockEntryPreviewGroupOnAdd(e,i.item.data("field-id"),"pagebreak")},maybeLockEntryPreviewGroupOnAdd:function(e,i,t){if("pagebreak"===t){var o=h("#wpforms-field-"+i),r=h("#wpforms-field-option-"+i+" .wpforms-field-option-row-prev_toggle"),a=r.find("input"),n=o.prevAll(".wpforms-field-entry-preview,.wpforms-field-pagebreak").first(),s=h("#wpforms-field-option-"+n.data("field-id")+" .wpforms-field-option-row-prev_toggle"),l=s.find("input"),t=o.nextAll(".wpforms-field-entry-preview,.wpforms-field-pagebreak").first(),i=h("#wpforms-field-option-"+t.data("field-id")+" .wpforms-field-option-row-prev_toggle");if(n.hasClass("wpforms-field-entry-preview")||t.hasClass("wpforms-field-entry-preview")){if(n.hasClass("wpforms-field-entry-preview"))return a.attr("checked","checked").trigger("change"),r.addClass("wpforms-entry-preview-block"),void i.removeClass("wpforms-entry-preview-block");o.addClass("wpforms-field-not-draggable wpforms-field-entry-preview-not-deleted"),n.removeClass("wpforms-field-not-draggable wpforms-field-entry-preview-not-deleted"),n.prevAll(".wpforms-field-entry-preview,.wpforms-field-pagebreak").first().hasClass("wpforms-field-entry-preview")&&(l.attr("checked","checked").trigger("change"),s.addClass("wpforms-entry-preview-block"))}}},entryPreviewBlockField:function(e){e.preventDefault(),h.alert({title:wpforms_builder.heads_up,content:wpforms_builder.entry_preview_require_previous_button,icon:"fa fa-exclamation-circle",type:"red",buttons:{confirm:{text:wpforms_builder.ok,btnClass:"btn-confirm",keys:["enter"]}}})},isUncheckedEntryPreviewField:function(e,i){return!("entry-preview"!==e||i&&i.passed)},addEntryPreviewField:function(e,i){var t,o,r,a=h("#wpforms-add-fields-entry-preview");a.hasClass("wpforms-entry-preview-adding")||(r=h(".wpforms-field-wrap .wpforms-field"),t=i&&i.position?i.position:r.length,o=v.isEntryPreviewFieldRequiresPageBreakBefore(r,t),r=v.isEntryPreviewFieldRequiresPageBreakAfter(r,t),a.addClass("wpforms-entry-preview-adding"),(i=i||{}).passed=!0,o||r?o?v.addPageBreakAndEntryPreviewFields(i,t):v.addEntryPreviewAndPageBreakFields(i,t):v.fieldAdd("entry-preview",i).done(function(e){v.lockEntryPreviewFieldsPosition(e.data.field.id)}))},addEntryPreviewFieldAfterPageBreak:function(e){var i=setInterval(function(){2===h(".wpforms-field-wrap .wpforms-pagebreak-bottom, .wpforms-field-wrap .wpforms-pagebreak-top").length&&(v.fieldAdd("entry-preview",e).done(function(e){v.lockEntryPreviewFieldsPosition(e.data.field.id)}),clearInterval(i))},100)},addPageBreakAndEntryPreviewFields:function(i,t){var o=3<=h(".wpforms-field-wrap .wpforms-field-pagebreak").length;v.fieldAdd("pagebreak",{position:t}).done(function(e){i.position=o?t+1:t+2,v.addEntryPreviewFieldAfterPageBreak(i);e=h("#wpforms-field-option-"+e.data.field.id).find(".wpforms-field-option-row-prev_toggle");e.find("input").attr("checked","checked").trigger("change"),e.addClass("wpforms-entry-preview-block")})},fieldDuplicate:function(m){var u=h("#wpforms-field-"+m),w=u.data("field-type");u.hasClass("no-duplicate")?h.alert({title:wpforms_builder.field_locked,content:wpforms_builder.field_locked_no_duplicate_msg,icon:"fa fa-info-circle",type:"blue",buttons:{confirm:{text:wpforms_builder.close,btnClass:"btn-confirm",keys:["enter"]}}}):h.confirm({title:!1,content:wpforms_builder.duplicate_confirm,icon:"fa fa-exclamation-circle",type:"orange",buttons:{confirm:{text:wpforms_builder.ok,btnClass:"btn-confirm",keys:["enter"],action:function(){var e=h("#wpforms-field-option-"+m),i=v.dropdownField.helpers.isModernSelect(u.find(".primary-input"));wpf.restoreTooltips(e),i&&v.dropdownField.helpers.convertModernToClassic(m);var t=u.clone(),o=e.html(),n=h("#wpforms-field-id").val(),r=h("#wpforms-field-option-"+m+"-label").length?h("#wpforms-field-option-"+m+"-label"):h("#wpforms-field-option-"+m+"-name"),a=r.length?r.val()+" "+wpforms_builder.duplicate_copy:wpforms_builder.field+" #"+m+" "+wpforms_builder.duplicate_copy,s=Number(n)+1,l=new RegExp("ID #"+m,"g"),d=new RegExp("fields\\["+m+"\\]","g"),f=new RegExp('data-field-id="'+m+'"',"g"),p=new RegExp('data-reference="'+m+'"',"g"),r=new RegExp('\\b(id|for)="wpforms-(.*?)'+m+'(.*?)"',"ig");u.after(t),u.removeClass("active"),t.addClass("active").attr({id:"wpforms-field-"+n,"data-field-id":n}),o=(o=(o=(o=(o=o.replace(l,"ID #"+n)).replace(d,"fields["+n+"]")).replace(f,'data-field-id="'+n+'"')).replace(p,'data-reference="'+n+'"')).replace(r,function(e,i,t,o,r,a){return i+'="wpforms-'+t+n+o+'"'}),e.hide().after('<div class="'+e.attr("class")+'" id="wpforms-field-option-'+n+'" data-field-id="'+n+'">'+o+"</div>");var c=h("#wpforms-field-option-"+n);e.find(":input").each(function(e,i){var t=h(this),o=t.attr("name");if(!o)return"continue";var r=o.replace(d,"fields["+n+"]"),o=t.attr("type");"checkbox"===o||"radio"===o?t.is(":checked")?c.find('[name="'+r+'"]').prop("checked",!0).attr("checked","checked"):c.find('[name="'+r+'"]').prop("checked",!1).attr("checked",!1):t.is("select")?t.find("option:selected").length&&(o=t.find("option:selected").val(),c.find('[name="'+r+'"]').find('[value="'+o+'"]').prop("selected",!0)):""!==t.val()?c.find('[name="'+r+'"]').val(t.val()):t.hasClass("wpforms-money-input")&&c.find('[name="'+r+'"]').val(wpf.numberFormat("0",wpforms_builder.currency_decimals,wpforms_builder.currency_decimal,wpforms_builder.currency_thousands))}),h("#wpforms-field-option-"+n).find(".wpforms-field-option-hidden-id").val(n),h("#wpforms-field-id").val(s),h("#wpforms-field-option-"+n+"-label").val(a),"html"===w&&h("#wpforms-field-option-"+n+"-name").val(a),t.find(".label-title .text").text(a),b.trigger("wpformsFieldAdd",[n,w]),wpf.initTooltips(),i&&(v.dropdownField.helpers.convertClassicToModern(m),v.dropdownField.helpers.convertClassicToModern(n)),v.fieldChoiceUpdate(t.data("field-type"),n),h.post(wpforms_builder.ajax_url,{form_id:g.formID,nonce:wpforms_builder.nonce,action:"wpforms_builder_increase_next_field_id"})}},cancel:{text:wpforms_builder.cancel}}})},addEntryPreviewAndPageBreakFields:function(e,t){v.fieldAdd("entry-preview",e).done(function(e){var i=e.data.field.id;v.fieldAdd("pagebreak",{position:t+1}).done(function(){v.lockEntryPreviewFieldsPosition(i)})})},lockEntryPreviewFieldsPosition:function(e){var i=h("#wpforms-field-"+e),t=i.prevAll(".wpforms-field-pagebreak:not(.wpforms-pagebreak-bottom)").first(),o=i.nextAll(".wpforms-field-pagebreak").first().data("field-id"),e=h("#wpforms-field-option-"+o).find(".wpforms-field-option-row-prev_toggle"),o=e.find("input");i.addClass("wpforms-field-not-draggable"),t.addClass("wpforms-field-not-draggable wpforms-field-entry-preview-not-deleted"),o.attr("checked","checked").trigger("change"),e.addClass("wpforms-entry-preview-block"),h("#wpforms-add-fields-entry-preview").removeClass("wpforms-entry-preview-adding")},isEntryPreviewFieldRequiresPageBreakBefore:function(e,i){var i=e.slice(0,i).filter(".wpforms-field-pagebreak,.wpforms-field-entry-preview"),t=!0;return i.length&&h(i.get().reverse()).each(function(){var e=h(this);return!e.hasClass("wpforms-field-entry-preview")&&(e.hasClass("wpforms-field-pagebreak")&&!e.hasClass("wpforms-field-stick")?t=!1:void 0)}),t},isEntryPreviewFieldRequiresPageBreakAfter:function(e,i){var i=e.slice(i).filter(".wpforms-field-pagebreak,.wpforms-field-entry-preview"),t=Boolean(i.length);return i.length&&i.each(function(){var e=h(this);return!e.hasClass("wpforms-field-entry-preview")&&(e.hasClass("wpforms-field-pagebreak")?t=!1:void 0)}),t},fieldAdd:function(n,s){var e=h("#wpforms-add-fields-"+n);if(!(e.hasClass("upgrade-modal")||e.hasClass("education-modal")||e.hasClass("warning-modal")))if(-1===h.inArray(n,["captcha_hcaptcha","captcha_recaptcha","captcha_none"])){if(l=!0,v.disableDragAndDrop(),!v.isUncheckedEntryPreviewField(n,s)){s=h.extend({},{position:"bottom",placeholder:!1,scroll:!0,defaults:!1},s);e={action:"wpforms_new_field_"+n,id:g.formID,type:n,defaults:s.defaults,nonce:wpforms_builder.nonce};return h.post(wpforms_builder.ajax_url,e,function(e){var i,t,o,r,a;e.success?(i=h(".wpforms-field").length,t=h("#wpforms-panel-fields .wpforms-panel-content-wrap"),o=h(".wpforms-field").last(),a=h(e.data.preview),r=h(e.data.options),l=!1,a.css("display","none"),s.placeholder&&s.placeholder.remove(),"bottom"===s.position?o.length&&o.hasClass("wpforms-field-stick")?(h(".wpforms-field-wrap").children(":eq("+(i-1)+")").before(a),h(".wpforms-field-options").children(":eq("+(i-1)+")").before(r)):(h(".wpforms-field-wrap").append(a),h(".wpforms-field-options").append(r)):"top"===s.position?(h(".wpforms-field-wrap").prepend(a),h(".wpforms-field-options").prepend(r)):s.position===i&&o.length&&o.hasClass("wpforms-field-stick")?(h(".wpforms-field-wrap").children(":eq("+(i-1)+")").before(a),h(".wpforms-field-options").children(":eq("+(i-1)+")").before(r)):h(".wpforms-field-wrap").find(".wpforms-field").eq(s.position).length?(h(".wpforms-field-wrap").find(".wpforms-field").eq(s.position).before(a),h(".wpforms-field-options").find(".wpforms-field-option").eq(s.position).before(r)):(h(".wpforms-field-wrap").append(a),h(".wpforms-field-options").append(r)),a.fadeIn(),b.find(".no-fields, .no-fields-preview").remove(),b.find(".wpforms-field-submit").show(),s.scroll&&s.position.length&&(r=t.scrollTop(),a=a.position().top,t.animate({scrollTop:"bottom"===s.position?r<a?a-r:a+r:0},1e3)),h("#wpforms-field-id").val(e.data.field.id+1),wpf.initTooltips(),v.loadColorPickers(),v.toggleAllOptionGroups(),b.trigger("wpformsFieldAdd",[e.data.field.id,n])):console.log(e)}).fail(function(e,i,t){l=!1,console.log(e.responseText)}).always(function(){b.find(".wpforms-add-fields .wpforms-add-fields-button").prop("disabled",!1),l||v.enableDragAndDrop()})}v.addEntryPreviewField(n,s)}else v.captchaUpdate()},captchaUpdate:function(){var e={action:"wpforms_update_field_captcha",id:g.formID,nonce:wpforms_builder.nonce};return h.post(wpforms_builder.ajax_url,e,function(e){var i,t,o;e.success?(i={title:!1,content:!1,icon:"fa fa-exclamation-circle",type:"orange",boxWidth:"450px",buttons:{confirm:{text:wpforms_builder.ok,btnClass:"btn-confirm",keys:["enter"]}}},t=h("#wpforms-panel-field-settings-recaptcha"),o=e.data.current,t.data("provider",e.data.provider),"configured_not_enabled"!==o&&"configured_enabled"!==o||(o=t.prop("checked")?"configured_enabled":"configured_not_enabled",i.buttons.confirm.action=function(){t.prop("checked","configured_not_enabled"===o).trigger("change")}),i.title=e.data.cases[o].title,i.content=e.data.cases[o].content,e.data.cases[o].cancel&&(i.buttons.cancel={text:wpforms_builder.cancel,keys:["esc"]}),h.confirm(i)):console.log(e)}).fail(function(e,i,t){console.log(e.responseText)})},disableDragAndDrop:function(){p.$addFieldsButtons.filter(".ui-draggable").draggable("disable"),p.$sortableFieldsWrap.filter(".ui-sortable").sortable("disable")},enableDragAndDrop:function(){p.$addFieldsButtons.filter(".ui-draggable").draggable("enable"),p.$sortableFieldsWrap.filter(".ui-sortable").sortable("enable")},fieldSortable:function(){var t,o,r,a,n,s=h(".wpforms-field-options"),l=!1,d=h("#wpforms-panel-fields .wpforms-panel-content-wrap"),f=!1;p.$sortableFieldsWrap.sortable({items:"> .wpforms-field:not(.wpforms-field-stick):not(.no-fields-preview)",axis:"y",delay:100,opacity:.75,cursor:"move",start:function(e,i){t=i.item.index(),r=s[0].children[t]},stop:function(e,i){o=i.item.index(),a=s[0].children[o],t<o?h(a).after(r):h(a).before(r),b.trigger("wpformsFieldMove",i),l=!1},over:function(e,i){var t=i.item.first();t.addClass("wpforms-field-dragging"),t.hasClass("wpforms-field-drag")&&(i=h(".wpforms-field").outerWidth()||p.$sortableFieldsWrap.find(".no-fields-preview").outerWidth(),t.addClass("wpforms-field-drag-over").removeClass("wpforms-field-drag-out").css("width",i).css("height","auto"))},out:function(e,i){var t=i.item.first();t.removeClass("wpforms-field-dragging"),l||(i=t.attr("data-original-width"),t.hasClass("wpforms-field-drag")&&t.addClass("wpforms-field-drag-out").removeClass("wpforms-field-drag-over").css({width:i,left:"",top:""})),t.css({top:"",left:"","z-index":""})},receive:function(e,i){l=!0;var t=h(this).data("ui-sortable").currentItem.index(),o=i.helper,i=o.attr("data-field-type");o.addClass("wpforms-field-drag-over wpforms-field-drag-pending").removeClass("wpforms-field-drag-out").css("width","100%"),o.append(g.spinnerInline),b.find(".wpforms-add-fields .wpforms-add-fields-button").prop("disabled",!0),b.find(".no-fields-preview").remove(),v.fieldAdd(i,{position:t,placeholder:o})},sort:function(e,i){if(!f){var t,o=e.clientY,r=d.offset(),a=d.height(),e=r.top+a;if(o>r.top&&o<r.top+50)t="-=";else{if(!(e-50<o&&o<e))return;t="+="}f=!0,d.animate({scrollTop:t+a/3+"px"},800,function(){f=!1})}},cancel:".wpforms-field-not-draggable"}),h(".wpforms-field-not-draggable, .wpforms-field-stick").draggable({revert:!0,axis:"y",delay:100,opacity:.75,cursor:"move",start:function(e,i){n=i.position.top},drag:function(e,i){if(15<Math.abs(i.position.top)-Math.abs(n))return v.youCantReorderFieldPopup(),!1}}),h(".wpforms-add-fields-button").not(".not-draggable").not(".warning-modal").not(".education-modal").draggable({connectToSortable:".wpforms-field-wrap",delay:200,helper:function(){var e=h(this),i=e.outerWidth(),t=e.html(),e=e.data("field-type");return h('<div class="wpforms-field-drag-out wpforms-field-drag">').html(t).css("width",i).attr({"data-original-width":i,"data-field-type":e})},revert:"invalid",cancel:!1,scroll:!1,opacity:.75,containment:"document"}),p.$addFieldsButtons.draggable({connectToSortable:".wpforms-field-wrap",delay:200,helper:function(){var e=h(this),i=e.outerWidth(),t=e.html(),e=e.data("field-type");return h('<div class="wpforms-field-drag-out wpforms-field-drag">').html(t).css("width",i).attr({"data-original-width":i,"data-field-type":e})},revert:"invalid",cancel:!1,scroll:!1,opacity:.75,containment:"document"})},fieldChoiceAdd:function(e,i){e.preventDefault();var t=h(i),o=t.parent(),r=o.find("input.default").is(":checked"),a=t.closest(".wpforms-field-option-row-choices").data("field-id"),e=o.parent().attr("data-next-id"),i=o.parent().data("field-type"),t=o.clone().insertAfter(o);t.attr("data-key",e),t.find("input.label").val("").attr("name","fields["+a+"][choices]["+e+"][label]"),t.find("input.value").val("").attr("name","fields["+a+"][choices]["+e+"][value]"),t.find("input.source").val("").attr("name","fields["+a+"][choices]["+e+"][image]"),t.find("input.default").attr("name","fields["+a+"][choices]["+e+"][default]").prop("checked",!1),t.find(".preview").empty(),t.find(".wpforms-image-upload-add").show(),t.find(".wpforms-money-input").trigger("focusout"),!0===r&&o.find("input.default").prop("checked",!0),e++,o.parent().attr("data-next-id",e),b.trigger("wpformsFieldChoiceAdd"),v.fieldChoiceUpdate(i,a)},fieldChoiceDelete:function(e,i){e.preventDefault();var t,o=h(i),r=o.parent().parent(),e=r.find("li").length,i={id:r.data("field-id"),choiceId:o.closest("li").data("key"),message:"<strong>"+wpforms_builder.delete_choice_confirm+"</strong>",trigger:!1};b.trigger("wpformsBeforeFieldDeleteAlert",[i]),1===e?v.fieldChoiceDeleteAlert():(t=function(){o.parent().remove(),v.fieldChoiceUpdate(r.data("field-type"),r.data("field-id")),b.trigger("wpformsFieldChoiceDelete")},i.trigger?h.confirm({title:!1,content:i.message,icon:"fa fa-exclamation-circle",type:"orange",buttons:{confirm:{text:wpforms_builder.ok,btnClass:"btn-confirm",keys:["enter"],action:function(){t()}},cancel:{text:wpforms_builder.cancel}}}):t())},fieldChoiceDeleteAlert:function(){h.alert({title:!1,content:wpforms_builder.error_choice,icon:"fa fa-info-circle",type:"blue",buttons:{confirm:{text:wpforms_builder.ok,btnClass:"btn-confirm",keys:["enter"]}}})},fieldChoiceSortable:function(o,e){h(e=void 0!==e?e:".wpforms-field-option-"+o+" .wpforms-field-option-row-choices ul").sortable({items:"li",axis:"y",delay:100,opacity:.6,handle:".move",stop:function(e,i){var t=i.item.parent().data("field-id");v.fieldChoiceUpdate(o,t),b.trigger("wpformsFieldChoiceMove",i)},update:function(e,i){}})},fieldChoiceLabel:function(e,i){var t=void 0!==e.settings.choices[i].label&&0!==e.settings.choices[i].label.length?wpf.sanitizeHTML(e.settings.choices[i].label):wpforms_builder.choice_empty_label_tpl.replace("{number}",i);return e.settings.show_price_after_labels&&(t+=" - "+wpf.amountFormatCurrency(e.settings.choices[i].value)),t},fieldChoiceUpdate:function(a,e){var n=h("#wpforms-field-"+e+" .primary-input");if("radio"===a||"checkbox"===a||"payment-multiple"===a||"payment-checkbox"===a){var i=wpf.getField(e),t=wpf.getChoicesOrder(e),o={},r=t.slice(0,20),s=wp.template("wpforms-field-preview-checkbox-radio-payment-multiple"),l={settings:i,order:r,type:"radio"};return r.forEach(function(e){o[e]=i.choices[e]}),i.choices=o,"checkbox"!==a&&"payment-checkbox"!==a||(l.type="checkbox"),h("#wpforms-field-"+e).find("ul.primary-input").replaceWith(s(l)),void v.firstNChoicesAlert(e,t.length)}var d=v.dropdownField.helpers.isModernSelect(n),f="";"select"===(a="payment-select"===(a="payment-checkbox"===(a="payment-multiple"===a?"radio":a)?"checkbox":a)?"select":a)?(f='<option value="{label}">{label}</option>',n.find("option").not(".placeholder").remove()):"radio"!==a&&"checkbox"!==a&&"gdpr-checkbox"!==a||(a="gdpr-checkbox"===a?"checkbox":a,n.find("li").remove(),f='<li><input type="'+a+'" disabled>{label}</li>');var r=h("#wpforms-field-option-row-"+e+"-choices .choices-list"),s=r.find("li").slice(0,20),l=!!r.find("input.default:checked").length,p=[],c=h("#wpforms-field-option-"+e+"-show_price_after_labels").prop("checked");s.each(function(){var e,i=h(this),t=wpf.sanitizeHTML(i.find("input.label").val().trim()),o=i.find("input.value").val(),r=i.find("input.default").is(":checked"),i=i.data("key"),t=""!==t?t:wpforms_builder.choice_empty_label_tpl.replace("{number}",i);if(t+=c&&o?" - "+wpf.amountFormatCurrency(o):"",d?p.push({value:t,label:t}):(e=h(f.replace(/{label}/g,t)),n.append(e)),!0===r)switch(a){case"select":d?p[p.length-1].selected=!0:e.prop("selected","true");break;case"radio":case"checkbox":e.find("input").prop("checked","true")}}),d&&(t=n.prop("multiple")?"input.choices__input":".choices__inner .choices__placeholder",r=v.dropdownField.helpers.getInstance(n),s=h("#wpforms-field-option-"+e+"-dynamic_choices").val(),r.removeActiveItems(),r.setChoices(p,"value","label",!0),v.dropdownField.helpers.update(e,s),n.closest(".choices").find(t).toggleClass("wpforms-hidden",l))},fieldChoiceBulkAddToggle:function(e){var i=h(e),e=i.closest("label");if(i.hasClass("bulk-add-showing")){var t=e.next(".bulk-add-display");t.slideUp(400,function(){t.remove()}),i.find("span").text(wpforms_builder.bulk_add_show)}else{var o,r='<div class="bulk-add-display unfoldable-cont">';for(o in r+='<p class="heading wpforms-clear">'+wpforms_builder.bulk_add_heading+' <a href="#" class="toggle-bulk-add-presets">'+wpforms_builder.bulk_add_presets_show+"</a></p>",r+="<ul>",wpforms_preset_choices)r+='<li><a href="#" data-preset="'+o+'" class="bulk-add-preset-insert">'+wpforms_preset_choices[o].name+"</a></li>";r+="</ul>",r+='<textarea placeholder="'+wpforms_builder.bulk_add_placeholder+'"></textarea>',r+='<button class="bulk-add-insert wpforms-btn wpforms-btn-sm wpforms-btn-blue">'+wpforms_builder.bulk_add_button+"</button>",e.after(r+="</div>"),e.next(".bulk-add-display").slideDown(400,function(){h(this).find("textarea").focus()}),i.find("span").text(wpforms_builder.bulk_add_hide)}i.toggleClass("bulk-add-showing")},fieldChoiceBulkAddInsert:function(e){var i,t,o,r=h(e),a=r.closest(".wpforms-field-option-row"),n=a.find("textarea"),s=a.find(".choices-list"),l=s.find("li:first-of-type").clone().wrap("<div>").parent(),d=a.data("field-id"),e=s.data("field-type"),f=Number(s.attr("data-next-id")),p=n.val().split("\n"),c="";for(t in r.prop("disabled",!0).html(r.html()+" "+g.spinner),l.find("input.value,input.label").attr("value",""),i=l.html(),p)p.hasOwnProperty(t)&&(o=wpf.sanitizeHTML(p[t]).trim().replace(/"/g,"&quot;"),c+=i.replace(/\[choices\]\[(\d+)\]/g,"[choices]["+f+"]").replace(/data-key="(\d+)"/g,'data-key="'+f+'"').replace(/value="" class="label"/g,'value="'+o+'" class="label"').replace(/class="label" type="text" value=""/g,'class="label" type="text" value="'+o+'"'),f++);s.attr("data-next-id",f).append(c),v.fieldChoiceUpdate(e,d),b.trigger("wpformsFieldChoiceAdd"),v.fieldChoiceBulkAddToggle(a.find(".toggle-bulk-add-display"))},fieldTabToggle:function(e){var i;h(".wpforms-tab a").removeClass("active"),h(".wpforms-field, .wpforms-title-desc").removeClass("active"),"add-fields"===e?(h("#add-fields a").addClass("active"),h(".wpforms-field-options").hide(),h(".wpforms-add-fields").show()):(h("#field-options a").addClass("active"),"field-options"===e?((i=h(".wpforms-field").first()).addClass("active"),e=i.data("field-id")):h("#wpforms-field-"+e).addClass("active"),h(".wpforms-field-option").hide(),h("#wpforms-field-option-"+e).show(),h(".wpforms-add-fields").hide(),h(".wpforms-field-options").show())},fieldPagebreakAdd:function(e,i,t){"pagebreak"===t&&(g.pagebreakTop?g.pagebreakBottom||(g.pagebreakBottom=!0,v.fieldAdd("pagebreak",{position:"bottom",scroll:!1,defaults:{position:"bottom"}}).done(function(e){g.pagebreakBottom=e.data.field.id;var i=h("#wpforms-field-"+e.data.field.id);h("#wpforms-field-option-"+e.data.field.id).find(".wpforms-field-option-group").addClass("wpforms-pagebreak-bottom"),i.addClass("wpforms-field-stick wpforms-pagebreak-bottom")})):(g.pagebreakTop=!0,v.fieldAdd("pagebreak",{position:"top",scroll:!1,defaults:{position:"top",nav_align:"left"}}).done(function(e){g.pagebreakTop=e.data.field.id;var i=h("#wpforms-field-"+e.data.field.id);h("#wpforms-field-option-"+e.data.field.id).find(".wpforms-field-option-group").addClass("wpforms-pagebreak-top"),i.addClass("wpforms-field-stick wpforms-pagebreak-top")})))},fieldPagebreakDelete:function(e,i,t){var o,r,a;"pagebreak"===t&&(h(".wpforms-field-pagebreak").not(".wpforms-pagebreak-top, .wpforms-pagebreak-bottom").length||(r=(o=(a=h(".wpforms-preview-wrap")).find(".wpforms-pagebreak-top")).data("field-id"),a=(t=a.find(".wpforms-pagebreak-bottom")).data("field-id"),o.remove(),h("#wpforms-field-option-"+r).remove(),g.pagebreakTop=!1,t.remove(),h("#wpforms-field-option-"+a).remove(),g.pagebreakBottom=!1))},fieldPageBreakInitDisplayPrevious:function(e){var i=e.data("field-id"),t=h("#wpforms-field-option-row-"+i+"-prev_toggle"),o=h("#wpforms-field-option-row-"+i+"-prev"),i=e.find(".wpforms-pagebreak-prev");0<e.prevAll(".wpforms-field-pagebreak.wpforms-pagebreak-normal").length?(t.removeClass("hidden"),o.removeClass("hidden"),t.find("input").is(":checked")&&i.removeClass("wpforms-hidden").text(o.find("input").val())):(t.addClass("hidden"),o.addClass("hidden"),i.addClass("wpforms-hidden"))},fieldDynamicChoiceToggle:function(e){var i=h(e),t=i.parent(),o=i.val(),r=t.data("field-id"),a=h("#wpforms-field-option-"+r).find(".wpforms-field-option-hidden-type").val(),n=h("#wpforms-field-"+r),s=h("#wpforms-field-option-row-"+r+"-choices"),e=h("#wpforms-field-option-"+r+"-choices_images");if(v.fieldDynamicChoiceToggleImageChoices(),b.trigger("wpformsFieldDynamicChoiceToggle"),wpf.fieldOptionLoading(t),h("#wpforms-field-option-row-"+r+"-dynamic_post_type").remove(),h("#wpforms-field-option-row-"+r+"-dynamic_taxonomy").remove(),""===o){if(e.removeClass("wpforms-hidden"),s.find(".toggle-bulk-add-display").removeClass("wpforms-hidden"),h("#wpforms-field-"+r).find(".wpforms-alert").remove(),-1<["checkbox","radio","payment-multiple","payment-checkbox"].indexOf(a))return v.fieldChoiceUpdate(a,r),s.find("ul").removeClass("wpforms-hidden"),s.find(".wpforms-alert").addClass("wpforms-hidden"),void wpf.fieldOptionLoading(t,!0);var l,d=[],f=n.find(".primary-input");if(h("#wpforms-field-option-row-"+r+"-choices li").each(function(){var e=h(this);d.push({label:wpf.sanitizeHTML(e.find(".label").val()),selected:e.find(".default").is(":checked")})}),n.hasClass("wpforms-field-select")){var i=v.dropdownField.helpers.isModernSelect(f),p="";if(f.find("option").not(".placeholder").remove(),i&&d.length)v.dropdownField.helpers.update(r,!1);else for(l in d)p="<option",p+=d[l].selected?" selected>":">",p+=d[l].label+"</option>",f.append(p)}else for(l in a="radio",n.hasClass("wpforms-field-checkbox")&&(a="checkbox"),f.empty(),d)p='<li><input type="'+a+'" disabled',p+=d[l].selected?" selected>":">",p+=d[l].label+"</li>",f.append(p);s.find("ul").removeClass("wpforms-hidden"),s.find(".wpforms-alert").addClass("wpforms-hidden"),wpf.fieldOptionLoading(t,!0)}else{e.addClass("wpforms-hidden"),s.find(".toggle-bulk-add-display").addClass("wpforms-hidden");s={type:o,field_id:r,action:"wpforms_builder_dynamic_choices",nonce:wpforms_builder.nonce};h.post(wpforms_builder.ajax_url,s,function(e){e.success?t.after(e.data.markup):console.log(e),wpf.fieldOptionLoading(t,!0),wpf.initTooltips(),h("#wpforms-field-option-"+r+"-dynamic_"+o).find("option:first").prop("selected",!0),h("#wpforms-field-option-"+r+"-dynamic_"+o).trigger("change")}).fail(function(e,i,t){console.log(e.responseText)})}},fieldDynamicChoiceSource:function(e){var i=h(e),t=i.parent(),o=i.val(),r=t.data("field-id"),e=h("#wpforms-builder-form").data("id"),a=h("#wpforms-field-option-row-"+r+"-choices"),n=h("#wpforms-field-"+r),i=h("#wpforms-field-option-"+r+"-dynamic_choices option:selected").val(),s=20;wpf.fieldOptionLoading(t);e={type:i,source:o,field_id:r,form_id:e,action:"wpforms_builder_dynamic_source",nonce:wpforms_builder.nonce};h.post(wpforms_builder.ajax_url,e,function(e){return e.success?(a.find(".dynamic-name").text(e.data.source_name),a.find(".dynamic-type").text(e.data.type_name),a.find("ul").addClass("wpforms-hidden"),a.find(".wpforms-alert").removeClass("wpforms-hidden"),v.fieldDynamicChoiceSourceItems(n,e.data.items),n.hasClass("wpforms-field-select")&&(s=200),Number(e.data.total)>s&&(i=(i=(i=(i=(i=wpforms_builder.dynamic_choice_limit).replace("{source}",e.data.source_name)).replace("{type}",e.data.type_name)).replace("{limit}",s)).replace("{total}",e.data.total),h.alert({title:wpforms_builder.heads_up,content:i,icon:"fa fa-info-circle",type:"blue",buttons:{confirm:{text:wpforms_builder.ok,btnClass:"btn-confirm",keys:["enter"]}}})),v.firstNChoicesAlert(r,e.data.total)):console.log(e),void wpf.fieldOptionLoading(t,!0);var i}).fail(function(e,i,t){console.log(e.responseText)})},fieldDynamicChoiceSourceItems:function(e,i){var t=e.find(".primary-input"),o=0;if(e.hasClass("wpforms-field-select"))v.dropdownField.helpers.isModernSelect(t)?v.fieldDynamicChoiceSourceForModernSelect(t,i):v.fieldDynamicChoiceSourceForClassicSelect(t,i);else{var r="radio";for(o in e.hasClass("wpforms-field-checkbox")&&(r="checkbox"),t.empty(),i)t.append('<li><input type="'+r+'" disabled> '+wpf.sanitizeHTML(i[o])+"</li>")}},fieldDynamicChoiceSourceForModernSelect:function(e,i){var t=v.dropdownField.helpers.getInstance(e),o=e.closest(".wpforms-field").data().fieldId;t.destroy(),v.dropdownField.helpers.updatePlaceholderChoice(t,o),v.fieldDynamicChoiceSourceForClassicSelect(e,i),v.dropdownField.events.choicesInit(e)},fieldDynamicChoiceSourceForClassicSelect:function(e,i){var t=0,o=i.length;for(e.find("option").not(".placeholder").remove();t<o;t++){var r=wpf.sanitizeHTML(i[t]);e.append('<option value="'+r+'">'+r+"</option>")}},fieldDynamicChoiceToggleImageChoices:function(){h("#wpforms-builder .wpforms-field-options .wpforms-field-option").each(function(e,i){var t=h(i),o=t.find(".wpforms-field-option-row-dynamic_choices select").val(),i=void 0!==o&&""!==o,o=t.find(".wpforms-field-option-row-choices_images input").is(":checked");t.find(".wpforms-field-option-row-choices_images").toggleClass("wpforms-hidden",i),o&&!i||t.find(".wpforms-field-option-row-choices_images_style").addClass("wpforms-hidden")})},firstNChoicesAlert:function(e,i){var t=wp.template("wpforms-choices-limit-message"),o={total:i},e=h("#wpforms-field-"+e);e.hasClass("wpforms-field-select")||(e.find(".wpforms-alert-dynamic").remove(),20<i&&e.find(".primary-input").after(t(o)))},fieldLayoutSelectorToggle:function(e){var i=h(e),e=i.closest("label"),t={"layout-1":[{class:"one-half",data:"wpforms-one-half wpforms-first"},{class:"one-half",data:"wpforms-one-half"}],"layout-2":[{class:"one-third",data:"wpforms-one-third wpforms-first"},{class:"one-third",data:"wpforms-one-third"},{class:"one-third",data:"wpforms-one-third"}],"layout-3":[{class:"one-fourth",data:"wpforms-one-fourth wpforms-first"},{class:"one-fourth",data:"wpforms-one-fourth"},{class:"one-fourth",data:"wpforms-one-fourth"},{class:"one-fourth",data:"wpforms-one-fourth"}],"layout-4":[{class:"one-third",data:"wpforms-one-third wpforms-first"},{class:"two-third",data:"wpforms-two-thirds"}],"layout-5":[{class:"two-third",data:"wpforms-two-thirds wpforms-first"},{class:"one-third",data:"wpforms-one-third"}],"layout-6":[{class:"one-fourth",data:"wpforms-one-fourth wpforms-first"},{class:"one-fourth",data:"wpforms-one-fourth"},{class:"two-fourth",data:"wpforms-two-fourths"}],"layout-7":[{class:"two-fourth",data:"wpforms-two-fourths wpforms-first"},{class:"one-fourth",data:"wpforms-one-fourth"},{class:"one-fourth",data:"wpforms-one-fourth"}],"layout-8":[{class:"one-fourth",data:"wpforms-one-fourth wpforms-first"},{class:"two-fourth",data:"wpforms-two-fourths"},{class:"one-fourth",data:"wpforms-one-fourth"}]};if(i.hasClass("layout-selector-showing")){var o=e.next(".layout-selector-display");o.slideUp(400,function(){o.remove()}),i.find("span").text(wpforms_builder.layout_selector_show)}else{var r,a='<div class="layout-selector-display unfoldable-cont">';for(r in a+='<p class="heading">'+wpforms_builder.layout_selector_layout+"</p>",a+='<div class="layouts">',t){var n,s=t[r];for(n in a+='<div class="layout-selector-display-layout">',s)a+='<span class="'+s[n].class+'" data-classes="'+s[n].data+'"></span>';a+="</div>"}e.after(a+="</div></div>"),e.next(".layout-selector-display").slideDown(),i.find("span").text(wpforms_builder.layout_selector_hide)}i.toggleClass("layout-selector-showing")},fieldLayoutSelectorLayout:function(e){e=h(e);e.closest("label");e.parent().find(".layout-selector-display-layout").not(e).remove(),e.parent().find(".heading").text(wpforms_builder.layout_selector_column),e.toggleClass("layout-selector-display-layout layout-selector-display-columns")},fieldLayoutSelectorInsert:function(e){var i=h(e),t=i.closest(".layout-selector-display"),o=t.parent(),e=o.find("label"),o=o.find("input[type=text]"),i=i.data("classes");o.val()&&(i=" "+i),o.insertAtCaret(i),t.slideUp(400,function(){t.remove()}),e.find(".toggle-layout-selector-display").removeClass("layout-selector-showing"),e.find(".toggle-layout-selector-display span").text(wpforms_builder.layout_selector_show)},bindUIActionsSettings:function(){b.on("click",".wpforms-title-desc, .wpforms-field-submit-button, .wpforms-center-form-name",function(e){e.preventDefault(),v.panelSwitch("settings"),(h(this).hasClass("wpforms-center-form-name")||h(this).hasClass("wpforms-title-desc"))&&setTimeout(function(){h("#wpforms-panel-field-settings-form_title").focus()},300)}),b.on("click",".wpforms-field-pagebreak-last button",function(e){e.preventDefault(),v.panelSwitch("settings"),h("#wpforms-panel-field-settings-pagebreak_prev").focus()}),b.on("input","#wpforms-panel-field-settings-pagebreak_prev",function(){h(".wpforms-field-pagebreak-last button").text(h(this).val())}),b.on("input","#wpforms-panel-field-settings-form_title, #wpforms-setup-name",function(){var e=h.trim(h(this).val());h(".wpforms-preview .wpforms-form-name").text(e),h(".wpforms-center-form-name.wpforms-form-name").text(e),v.trimFormTitle()}),b.on("input","#wpforms-panel-field-settings-form_desc",function(){h(".wpforms-form-desc").text(h(this).val())}),b.on("input","#wpforms-panel-field-settings-submit_text",function(){h(".wpforms-field-submit input[type=submit]").val(h(this).val())}),b.on("change","#wpforms-panel-field-settings-recaptcha",function(){v.captchaToggle()}),b.on("change",".wpforms-panel-field-confirmations-type",function(){v.confirmationFieldsToggle(h(this))}),b.on("change",".wpforms-panel-field-confirmations-message_entry_preview",v.confirmationEntryPreviewToggle),b.on("change","#wpforms-panel-field-settings-notification_enable",function(){v.notificationToggle()}),b.on("click",".wpforms-builder-settings-block-add",function(e){e.preventDefault(),wpforms_builder.pro&&v.settingsBlockAdd(h(this))}),b.on("click",".wpforms-builder-settings-block-edit",function(e){e.preventDefault();e=h(this);e.parents(".wpforms-builder-settings-block-header").find(".wpforms-builder-settings-block-name").hasClass("editing")?v.settingsBlockNameEditingHide(e):v.settingsBlockNameEditingShow(e)}),b.on("blur",".wpforms-builder-settings-block-name-edit input",function(e){h(e.relatedTarget).hasClass("wpforms-builder-settings-block-edit")||v.settingsBlockNameEditingHide(h(this))}),b.on("keypress",".wpforms-builder-settings-block-name-edit input",function(e){13===e.keyCode&&(v.settingsBlockNameEditingHide(h(this)),e.preventDefault())}),b.on("click",".wpforms-builder-settings-block-clone",function(e){e.preventDefault(),v.settingsBlockPanelClone(h(this))}),b.on("click",".wpforms-builder-settings-block-toggle",function(e){e.preventDefault(),v.settingsBlockPanelToggle(h(this))}),b.on("click",".wpforms-builder-settings-block-delete",function(e){e.preventDefault(),v.settingsBlockDelete(h(this))})},captchaToggle:function(){var e=b.find(".wpforms-field-recaptcha"),i=h("#wpforms-panel-field-settings-recaptcha"),t=(t=i.data("provider"))||"recaptcha";e.length&&(i.is(":checked")?e.show().toggleClass("is-recaptcha","recaptcha"===t):e.hide())},confirmationsSetup:function(){h(".wpforms-panel-field-confirmations-type").each(function(){v.confirmationFieldsToggle(h(this))}),h(".wpforms-panel-field-confirmations-message").each(function(){"undefined"!=typeof tinymce&&void 0!==wp.editor&&wp.editor.initialize(h(this).attr("id"),g.tinymceDefaults)}),b.on("focusout",".wpforms-panel-field-confirmations-redirect",function(e){var i=h(this),t=i.val().trim();i.val(t),wpf.isURL(t)||""===t||h.confirm({title:wpforms_builder.heads_up,content:wpforms_builder.redirect_url_field_error,icon:"fa fa-exclamation-circle",type:"orange",buttons:{confirm:{text:wpforms_builder.ok,btnClass:"btn-confirm",keys:["enter"],action:function(){i.focus()}}}})})},confirmationFieldsToggle:function(e){var i,t;e.length&&(i=e.val(),(t=e.closest(".wpforms-builder-settings-block-content")).find(".wpforms-panel-field").not(e.parent()).not(".wpforms-conditionals-enable-toggle").hide(),t.find(".wpforms-panel-field-confirmations-"+i).closest(".wpforms-panel-field").show(),"message"===i&&(t.find(".wpforms-panel-field-confirmations-message_scroll").closest(".wpforms-panel-field").show(),t.find(".wpforms-panel-field-confirmations-message_entry_preview").trigger("change").closest(".wpforms-panel-field").show()))},confirmationEntryPreviewToggle:function(){var e=h(this),i=e.closest(".wpforms-builder-settings-block-content").find(".wpforms-panel-field-confirmations-message_entry_preview_style").parent();e.is(":checked")?i.show():i.hide()},notificationToggle:function(){var e=h("#wpforms-panel-field-settings-notification_enable"),i=e.closest(".wpforms-panel-content-section").find(".wpforms-builder-settings-block"),e=e.is(":checked");h(".wpforms-notifications-add").toggleClass("wpforms-hidden",!e),e?i.show():i.hide()},notificationsByStatusAlerts:function(){b.on("change",".wpforms-panel-content-section-notifications .wpforms-notification-by-status-alert",function(e){var i,t,o=h(this);o.prop("checked")&&(t="",t=0===(i=h(".wpforms-radio-group-"+o.attr("data-radio-group")+":checked:not(#"+o.attr("id")+")")).length?(t=wpforms_builder.notification_by_status_enable_alert).replace(/%s/g,o.data("provider-title")):(t=(t=wpforms_builder.notification_by_status_switch_alert).replace(/%2\$s/g,i.data("provider-title"))).replace(/%1\$s/g,o.data("provider-title")),h.confirm({title:wpforms_builder.heads_up,content:t,icon:"fa fa-exclamation-circle",type:"orange",buttons:{confirm:{text:wpforms_builder.ok,btnClass:"btn-confirm"}}}))})},settingsBlockAdd:function(s){var l=Number(s.attr("data-next-id")),d=s.closest(".wpforms-panel-content-section").data("panel"),f=s.data("block-type"),e=wpforms_builder[f+"_prompt"],i='<input autofocus="" type="text" id="settings-block-name" placeholder="'+wpforms_builder[f+"_ph"]+'">',t='<p class="error">'+wpforms_builder[f+"_error"]+"</p>",o=h.confirm({container:b,title:!1,content:e+i+t,icon:"fa fa-info-circle",type:"blue",buttons:{confirm:{text:wpforms_builder.ok,btnClass:"btn-confirm",keys:["enter"],action:function(){var e=h.trim(this.$content.find("input#settings-block-name").val()),i=this.$content.find(".error");if(""===e)return i.show(),!1;var t=s.closest(".wpforms-panel-content-section").find(".wpforms-builder-settings-block").first();wpf.restoreTooltips(t);var o=t.clone(),i=t.data("block-id");o.attr("data-block-id",l),o.find(".wpforms-builder-settings-block-header span").text(e),o.find("input, textarea, select").not(".from-name input").not(".from-email input").each(function(e,i){var t=h(this);t.attr("name")&&(t.val("").attr("name",t.attr("name").replace(/\[(\d+)\]/,"["+l+"]")),t.is("select")?(t.find("option").prop("selected",!1).attr("selected",!1),t.find("option:first").prop("selected",!0).attr("selected","selected")):"checkbox"===t.attr("type")?t.prop("checked",!1).attr("checked",!1).val("1"):t.val("").attr("value",""))});var a="wpforms-panel-field-"+d+"-",n=a+i;o.find('[id^="'+n+'"], [for^="'+n+'"]').each(function(e,i){var t=h(this),o="LABEL"===t.prop("tagName")?"for":"id",r=t.attr(o).replace(new RegExp(n,"g"),a+l);t.attr(o,r)});var r=i+"-notification-by-status";o.find('[data-radio-group="'+r+'"]').each(function(e,i){h(this).removeClass("wpforms-radio-group-"+r).addClass("wpforms-radio-group-"+l+"-notification-by-status").attr("data-radio-group",l+"-notification-by-status")}),o.find(".wpforms-builder-settings-block-header input").val(e).attr("value",e),"notification"===f&&(o.find(".email-msg textarea").val("{all_fields}").attr("value","{all_fields}"),o.find(".email-recipient input").val("{admin_email}").attr("value","{admin_email}")),o.removeClass("wpforms-builder-settings-block-default"),"confirmation"===f&&(o.find(".wpforms-panel-field-tinymce").remove(),"undefined"!=typeof WPForms&&o.find(".wpforms-panel-field-confirmations-type-wrap").after(WPForms.Admin.Builder.Templates.get("wpforms-builder-confirmations-message-field")({id:l})));e=o.find(".wpforms-conditional-block");e.length&&"undefined"!=typeof WPForms&&e.html(WPForms.Admin.Builder.Templates.get("wpforms-builder-conditional-logic-toggle-field")({id:l,type:f,actions:JSON.stringify(o.find(".wpforms-panel-field-conditional_logic-checkbox").data("actions")),actionDesc:o.find(".wpforms-panel-field-conditional_logic-checkbox").data("action-desc")}));e=o.find(".wpforms-field-map-table");e.length&&e.each(function(e,i){var t=h(i);t.find("tr:not(:first-child)").remove();var o=t.find(".key input"),i=t.find(".field select"),t=i.data("name");o.attr("value",""),i.attr("name","").attr("data-name",t.replace(/\[(\d+)\]/,"["+l+"]"))}),o=(o=o.wrap("<div>").parent().html()).replace(/\[conditionals\]\[(\d+)\]\[(\d+)\]/g,"[conditionals][0][0]"),t.before(o);t=t.prev();"confirmation"===f&&v.confirmationFieldsToggle(h(".wpforms-panel-field-confirmations-type").first()),"undefined"!=typeof tinymce&&void 0!==wp.editor&&"confirmation"===f&&wp.editor.initialize("wpforms-panel-field-confirmations-message-"+l,g.tinymceDefaults),wpf.initTooltips(),b.trigger("wpformsSettingsBlockAdded",[t]),s.attr("data-next-id",l+1)}},cancel:{text:wpforms_builder.cancel}}});b.on("keypress","#settings-block-name",function(e){13===e.keyCode&&h(o.buttons.confirm.el).trigger("click")})},settingsBlockNameEditingShow:function(e){e=e.parents(".wpforms-builder-settings-block-header");e.find(".wpforms-builder-settings-block-name").addClass("editing").hide(),e.find(".wpforms-builder-settings-block-name-edit").addClass("active"),wpf.focusCaretToEnd(e.find("input"))},settingsBlockNameEditingHide:function(e){var i=e.parents(".wpforms-builder-settings-block-header"),t=i.find(".wpforms-builder-settings-block-name"),o=i.find(".wpforms-builder-settings-block-name-edit"),i=o.find("input").val().trim(),e=e.closest(".wpforms-builder-settings-block").data("block-type");i.length||(i=wpforms_builder[e+"_def_name"]),o.find("input").val(i),t.text(i),t.removeClass("editing").show(),o.removeClass("active")},settingsBlockPanelClone:function(e){var i=e.closest(".wpforms-panel-content-section").find(".wpforms-builder-settings-block-add"),t=e.closest(".wpforms-builder-settings-block"),o=t.find(".wpforms-builder-settings-block-content"),r=parseInt(i.attr("data-next-id"),10),a=t.data("block-type"),e=t.find(".wpforms-builder-settings-block-name").text().trim()+wpforms_builder[a+"_clone"],o=o.is(":hidden");wpf.restoreTooltips(t);var n=t.clone(!1,!0);v.settingsBlockUpdateState(o,r,a),n.data("block-id",r),n.find(".wpforms-builder-settings-block-header span").text(e),n.find(".wpforms-builder-settings-block-header input").val(e),n.removeClass("wpforms-builder-settings-block-default"),i.attr("data-next-id",r+1),n.find("input, textarea, select").each(function(){var e=h(this);e.attr("name")&&e.attr("name",e.attr("name").replace(/\[(\d+)\]/,"["+r+"]")),e.data("name")&&e.data("name",e.data("name").replace(/\[(\d+)\]/,"["+r+"]")),e.attr("class")&&e.attr("class",e.attr("class").replace(/-(\d+)/,"-"+r)),e.attr("data-radio-group")&&e.attr("data-radio-group",e.attr("data-radio-group").replace(/(\d+)-/,r+"-"))}),n.find("*").each(function(){var e=h(this);e.attr("id")&&e.attr("id",e.attr("id").replace(/-(\d+)/,"-"+r)),e.attr("for")&&e.attr("for",e.attr("for").replace(/-(\d+)-/,"-"+r+"-")),e.data("input-name")&&e.data("input-name",e.data("input-name").replace(/\[(\d+)\]/,"["+r+"]"))}),t.find("select").each(function(){var e=h(this).attr("name"),i=h(this).attr("name").replace(/\[(\d+)\]/,"["+r+"]");n.find('select[name="'+i+'"]').val(h(this).attr("name",e).val())}),n.css("display","none").insertBefore(t).show("fast",function(){wpf.initTooltips()})},settingsBlockPanelToggle:function(e){var i=e.closest(".wpforms-builder-settings-block"),t=i.data("block-id"),o=i.data("block-type"),r=i.find(".wpforms-builder-settings-block-content"),a=r.is(":visible");r.stop().slideToggle({duration:400,start:function(){v.settingsBlockUpdateState(a,t,o)},always:function(){r.is(":visible")?e.html('<i class="fa fa-chevron-circle-up"></i>'):e.html('<i class="fa fa-chevron-circle-down"></i>')}})},settingsBlockDelete:function(e){var i=e.closest(".wpforms-panel-content-section"),t=e.closest(".wpforms-builder-settings-block"),o=t.data("block-type");i.find(".wpforms-builder-settings-block").length<2||h.confirm({title:!1,content:wpforms_builder[o+"_delete"],icon:"fa fa-exclamation-circle",type:"orange",buttons:{confirm:{text:wpforms_builder.ok,btnClass:"btn-confirm",keys:["enter"],action:function(){var e=t.data("block-id"),i=t.data("block-type");h.post(wpforms_builder.ajax_url,{action:"wpforms_builder_settings_block_state_remove",nonce:wpforms_builder.nonce,block_id:e,block_type:i,form_id:g.formID}),t.remove(),b.trigger("wpformsSettingsBlockDeleted",[o,e])}},cancel:{text:wpforms_builder.cancel}}})},settingsBlockUpdateState:function(e,i,t){h.post(wpforms_builder.ajax_url,{action:"wpforms_builder_settings_block_state_save",state:e?"closed":"opened",form_id:g.formID,block_id:i,block_type:t,nonce:wpforms_builder.nonce})},bindUIActionsSaveExit:function(){b.on("click","#wpforms-embed",function(e){e.preventDefault(),h(this).hasClass("wpforms-disabled")||WPFormsFormEmbedWizard.openPopup()}),b.on("click","#wpforms-save",function(e){e.preventDefault(),v.formSave(!1)}),b.on("click","#wpforms-exit",function(e){e.preventDefault(),v.formExit()}),b.on("wpformsSaved",function(e,i){wpf.removeQueryParam("newform")})},formSave:function(i){var e=h("#wpforms-save"),t=e.find("i.fa-check"),o=e.find("i.wpforms-loading-spinner"),r=e.find("span"),a=r.text();"undefined"!=typeof tinyMCE&&tinyMCE.triggerSave(),r.text(wpforms_builder.saving),t.addClass("wpforms-hidden"),o.removeClass("wpforms-hidden");e={action:"wpforms_save_form",data:JSON.stringify(h("#wpforms-builder-form").serializeArray()),id:g.formID,nonce:wpforms_builder.nonce};return h.post(wpforms_builder.ajax_url,e,function(e){e.success?(wpf.savedState=wpf.getFormState("#wpforms-builder-form"),wpf.initialSave=!1,b.trigger("wpformsSaved",e.data),!0===i&&v.isBuilderInPopup()?v.builderInPopupClose("saved"):!0===i&&(n.location.href=wpforms_builder.exit_url)):(wpf.debug(e),v.formSaveError(e.data))}).fail(function(e,i,t){wpf.debug(e),v.formSaveError()}).always(function(){r.text(a),o.addClass("wpforms-hidden"),t.removeClass("wpforms-hidden")})},formSaveError:function(e){wpf.empty(e)&&(e=wpforms_builder.error_save_form),h.confirm({title:wpforms_builder.heads_up,content:"<p>"+e+"</p><p>"+wpforms_builder.error_contact_support+"</p>",icon:"fa fa-exclamation-circle",type:"orange",buttons:{confirm:{text:wpforms_builder.ok,btnClass:"btn-confirm",keys:["enter"]}}})},formExit:function(){v.isBuilderInPopup()&&v.formIsSaved()?v.builderInPopupClose("saved"):v.formIsSaved()?n.location.href=wpforms_builder.exit_url:h.confirm({title:!1,content:wpforms_builder.exit_confirm,icon:"fa fa-exclamation-circle",type:"orange",closeIcon:!0,buttons:{confirm:{text:wpforms_builder.save_exit,btnClass:"btn-confirm",keys:["enter"],action:function(){v.formSave(!0)}},cancel:{text:wpforms_builder.exit,action:function(){i=!1,v.isBuilderInPopup()?v.builderInPopupClose("canceled"):n.location.href=wpforms_builder.exit_url}}}})},setCloseConfirmation:function(e){i=!!e},formIsSaved:function(){return wpf.savedState==wpf.getFormState("#wpforms-builder-form")},isBuilderInPopup:function(){return n.self!==n.parent&&"wpforms-builder-iframe"===n.self.frameElement.id},builderInPopupClose:function(e){var i=n.parent.jQuery("#wpforms-builder-elementor-popup");i.find("#wpforms-builder-iframe").attr("src","about:blank"),i.fadeOut(),i.trigger("wpformsBuilderInPopupClose",[e,g.formID])},bindUIActionsGeneral:function(){b.on("click",".toggle-smart-tag-display",v.smartTagToggle),b.on("click",".smart-tags-list-display a",v.smartTagInsert),b.on("click",".wpforms-panel-fields-group.unfoldable .wpforms-panel-fields-group-title",v.toggleUnfoldableGroup),b.on("click",".wpforms-field-helper-hide ",v.hideFieldHelper),b.on("input",".wpforms-field-map-table .key-source",function(){var e=h(this).val(),i=h(this).parent().parent().find(".key-destination"),t=i.data("name");e&&i.attr("name",t.replace("{source}",e.replace(/[^0-9a-zA-Z_-]/gi,"")))}),b.on("click",".wpforms-field-map-table .remove",function(e){e.preventDefault(),v.fieldMapTableDeleteRow(e,h(this))}),b.on("click",".wpforms-field-map-table .add",function(e){e.preventDefault(),v.fieldMapTableAddRow(e,h(this))}),h(r).on("wpformsFieldUpdate",v.fieldMapSelect),b.on("input",".wpforms-money-input",function(e){var i=h(this),t=i.val(),o=i[0].selectionStart,r=i[0].selectionEnd;i.val(t.replace(/[^0-9.,]/g,"")),i[0].setSelectionRange(o,r)}),b.on("focusout",".wpforms-money-input",function(e){var i=h(this),t=i.val();if(!t)return t;t=wpf.amountSanitize(t),t=wpf.amountFormat(t);i.val(t)}),b.on("change",".wpforms-panel-field-toggle",function(){var e=h(this);e.prop("disabled")||(e.prop("disabled",!0),v.toggleOptionsGroup(e))}),b.on("change","#wpforms-panel-field-stripe-enable, #wpforms-panel-field-paypal_standard-enable, #wpforms-panel-field-authorize_net-enable, #wpforms-panel-field-square-enable",function(e){var i=h(this),t=i.attr("id").replace("wpforms-panel-field-","").replace("-enable",""),o=h('.wpforms-panel-content-section-notifications [id*="-'+t+'-wrap"]');i.prop("checked")?h("#wpforms-panel-field-settings-disable_entries").prop("checked")?(h.confirm({title:wpforms_builder.heads_up,content:wpforms_builder.payments_entries_off,icon:"fa fa-exclamation-circle",type:"orange",buttons:{confirm:{text:wpforms_builder.ok,btnClass:"btn-confirm",keys:["enter"]}}}),i.prop("checked",!1)):o.removeClass("wpforms-hidden"):(o.addClass("wpforms-hidden"),o.find('input[id*="-'+t+'"]').prop("checked",!1))}),b.on("change","#wpforms-panel-field-settings-disable_entries",function(e){var i=h(this);i.prop("checked")&&(h("#wpforms-panel-field-stripe-enable").prop("checked")||h("#wpforms-panel-field-paypal_standard-enable").prop("checked")||h("#wpforms-panel-field-authorize_net-enable").prop("checked")||h("#wpforms-panel-field-square-enable").prop("checked")?(h.confirm({title:wpforms_builder.heads_up,content:wpforms_builder.payments_on_entries_off,icon:"fa fa-exclamation-circle",type:"orange",buttons:{confirm:{text:wpforms_builder.ok,btnClass:"btn-confirm",keys:["enter"]}}}),i.prop("checked",!1)):h.alert({title:wpforms_builder.heads_up,content:wpforms_builder.disable_entries,icon:"fa fa-exclamation-circle",type:"orange",buttons:{confirm:{text:wpforms_builder.ok,btnClass:"btn-confirm",keys:["enter"]}}}))}),b.on("click",".wpforms-image-upload-add",function(e){e.preventDefault();var i=h(this),t=i.parent(),o=wp.media.frames.wpforms_media_frame=wp.media({className:"media-frame wpforms-media-frame",frame:"select",multiple:!1,title:wpforms_builder.upload_image_title,library:{type:"image"},button:{text:wpforms_builder.upload_image_button}});o.on("select",function(){var e=o.state().get("selection").first().toJSON();t.find(".source").val(e.url),t.find(".preview").empty(),t.find(".preview").prepend('<img src="'+e.url+'"><a href="#" title="'+wpforms_builder.upload_image_remove+'" class="wpforms-image-upload-remove"><i class="fa fa-trash-o"></i></a>'),"hide"===i.data("after-upload")&&i.hide(),b.trigger("wpformsImageUploadAdd",[i,t])}),o.open()}),b.on("click",".wpforms-image-upload-remove",function(e){e.preventDefault();e=h(this).parent().parent();e.find(".preview").empty(),e.find(".wpforms-image-upload-add").show(),e.find(".source").val(""),b.trigger("wpformsImageUploadRemove",[h(this),e])}),b.on("blur",".wpforms-notification .wpforms-panel-field-text input",function(){v.validateEmailSmartTags(h(this))}),b.on("blur",".wpforms-notification .wpforms-panel-field-textarea textarea",function(){v.validateEmailSmartTags(h(this))}),b.on("click",".wpforms-fullscreen-notice-go-back",v.exitBack),h("#wpforms-builder-license-alert .close").on("click",v.exitBack)},toggleOptionsGroup:function(e){function i(){e.prop("disabled",!1)}var t=e.attr("name"),o=e.attr("type"),r="",t=h('.wpforms-panel-field-toggle-body[data-toggle="'+t+'"]');0!==t.length?(r="checkbox"!==o&&"radio"!==o||e.prop("checked")?e.val():"0",t.each(function(){var e=h(this);e.attr("data-toggle-value").toString()===r.toString()?e.slideDown("",i):e.slideUp("",i)})):i()},toggleAllOptionGroups:function(e){(e=e||b||h("#wpforms-builder")||h("body"))&&e.find(".wpforms-panel-field-toggle").each(function(){var e=h(this);e.prop("disabled",!0),v.toggleOptionsGroup(e)})},toggleUnfoldableGroup:function(e){e.preventDefault();var i=h(e.target).closest(".wpforms-panel-fields-group"),t=i.find(".wpforms-panel-fields-group-inner"),e="wpforms_fields_group_"+i.data("group");i.hasClass("opened")?(wpCookies.remove(e),i.removeClass("opened"),t.stop().slideUp()):(wpCookies.set(e,"true",2592e3),i.addClass("opened"),t.stop().slideDown())},hideFieldHelper:function(e){e.preventDefault(),e.stopPropagation();e=h(".wpforms-field-helper");wpCookies.set("wpforms_field_helper_hide","true",2592e3),e.hide()},smartTagToggle:function(e){e.preventDefault();var i=h(this),e=i.closest(".wpforms-panel-field,.wpforms-field-option-row");e.hasClass("smart-tags-toggling")||(e.addClass("smart-tags-toggling"),i.hasClass("smart-tag-showing")?v.removeSmartTagsList(i):v.insertSmartTagsList(i))},removeSmartTagsList:function(e){var i=e.closest(".wpforms-panel-field,.wpforms-field-option-row"),t=i.find(".smart-tags-list-display");e.find("span").text(wpforms_builder.smart_tags_show),t.slideUp("",function(){t.remove(),e.removeClass("smart-tag-showing"),i.removeClass("smart-tags-toggling")})},insertSmartTagsList:function(e){var i,t=e.closest(".wpforms-panel-field,.wpforms-field-option-row"),o=e.closest("label"),r=!0;o.length||(o=t.find("label"),r=!1),i=v.getSmartTagsList(e,-1!==o.attr("for").indexOf("wpforms-field-option-")),(r?o:e).after(i),e.find("span").text(wpforms_builder.smart_tags_hide),t.find(".smart-tags-list-display").slideDown("",function(){e.addClass("smart-tag-showing"),t.removeClass("smart-tags-toggling")})},getSmartTagsList:function(e,i){var t='<ul class="smart-tags-list-display unfoldable-cont">';return t+=v.getSmartTagsListFieldsElements(e),t+=v.getSmartTagsListOtherElements(e,i),t+="</ul>"},getSmartTagsListFieldsElements:function(e){var i,t=e.data("type"),o=v.getSmartTagsFields(e),r="";if(!["fields","all"].includes(t))return"";if(!o)return'<li class="heading">'+wpforms_builder.fields_unavailable+"</li>";for(i in r+='<li class="heading">'+wpforms_builder.fields_available+"</li>",wpf.orders.fields){var a=wpf.orders.fields[i];o[a]&&(r+=v.getSmartTagsListFieldsElement(o[a]))}return r},getSmartTagsFields:function(e){e=e.data("fields");return e&&e.length?wpf.getFields(e.split(","),!0):wpf.getFields(!1,!0)},getSmartTagsListFieldsElement:function(e){var i=e.label?wpf.encodeHTMLEntities(wpf.sanitizeHTML(e.label)):wpforms_builder.field+" #"+e.id;return'<li><a href="#" data-type="field" data-meta=\''+e.id+"'>"+i+"</a></li>"},getSmartTagsListOtherElements:function(e,i){var t,o,e=e.data("type");if("other"!==e&&"all"!==e)return"";for(o in t='<li class="heading">'+wpforms_builder.other+"</li>",wpforms_builder.smart_tags)i&&-1<wpforms_builder.smart_tags_disabled_for_fields.indexOf(o)||(t+='<li><a href="#" data-type="other" data-meta=\''+o+"'>"+wpforms_builder.smart_tags[o]+"</a></li>");return t},smartTagInsert:function(e){e.preventDefault();var i,t=h(this),o=t.closest(".smart-tags-list-display"),r=o.closest(".wpforms-panel-field,.wpforms-field-option-row"),a=r.find(".toggle-smart-tag-display"),n=r.find("input[type=text], textarea"),e=t.data("meta"),e="field"===t.data("type")?'{field_id="'+e+'"}':"{"+e+"}";"undefined"!=typeof tinyMCE&&(i=tinyMCE.get(n.prop("id")))&&!i.hasFocus()&&i.focus(!0),i&&!i.isHidden()?i.insertContent(e):n.insertAtCaret(e),o.slideUp("",function(){o.remove()}),a.find("span").text(wpforms_builder.smart_tags_show),r.find(".toggle-smart-tag-display").removeClass("smart-tag-showing")},fieldMapTableDeleteRow:function(e,i){var t=h(i),o=t.closest("tr"),i=t.closest("table"),t=o.closest(".wpforms-builder-settings-block");"1"<i.find("tr").length&&(o.remove(),b.trigger("wpformsFieldMapTableDeletedRow",[t]))},fieldMapTableAddRow:function(e,i){var t=h(i).closest("tr"),i=t.closest(".wpforms-builder-settings-block"),t=t.clone().insertAfter(t);t.find("input").val(""),t.find("select :selected").prop("selected",!1),t.find(".key-destination").attr("name",""),b.trigger("wpformsFieldMapTableAddedRow",[i,t])},fieldMapSelect:function(e,l){h(".wpforms-field-map-select").each(function(e,i){var t,o=h(this),r=o.find("option:selected").val(),a=o.data("field-map-allowed"),n=o.data("field-map-placeholder");if(void 0!==n&&n||(n=wpforms_builder.select_field),o.empty().append(h("<option>",{value:"",text:n})),void 0!==a&&a){if(a=a.split(" "),l&&!h.isEmptyObject(l))for(var s in wpf.orders.fields)Object.prototype.hasOwnProperty.call(wpf.orders.fields,s)&&(t=wpf.orders.fields[s],s="",l[t]&&(s=void 0!==l[t].label&&""!==l[t].label.toString().trim()?wpf.sanitizeHTML(l[t].label.toString().trim()):wpforms_builder.field+" #"+t,(0<=h.inArray(l[t].type,a)||0<=h.inArray("all-fields",a))&&o.append(h("<option>",{value:l[t].id,text:s}))));r&&o.find('option[value="'+r+'"]').prop("selected",!0);r=o.data("custom-value-support");"boolean"==typeof r&&r&&o.append(h("<option>",{value:"custom_value",text:wpforms_builder.add_custom_value_label,class:"wpforms-field-map-option-custom-value"})),b.trigger("wpformsFieldSelectMapped",[o])}})},validateEmailSmartTags:function(e){var i=e.val();i&&(i=i.replace(/{(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))}/g,function(e){return e.slice(1,-1)}),e.val(i))},dismissNotice:function(){b.on("click",".wpforms-alert-dismissible .wpforms-dismiss-button",function(e){e.preventDefault();var e=h(this),i=e.closest(".wpforms-alert"),e=e.data("field-id");i.addClass("out"),setTimeout(function(){i.remove()},250),e&&h("#wpforms-field-option-"+e).remove()})},trimFormTitle:function(){var e,i=h(".wpforms-center-form-name");38<i.text().length&&(e=h.trim(i.text()).substring(0,38).split(" ").slice(0,-1).join(" ")+"...",i.text(e))},loadColorPickers:function(){h(".wpforms-color-picker").minicolors()},builderHotkeys:function(){h(r).keydown(function(e){if(e.ctrlKey){switch(e.keyCode){case 72:h("#wpforms-help",b).click();break;case 80:n.open(wpforms_builder.preview_url);break;case 66:h("#wpforms-embed",b).click();break;case 69:n.open(wpforms_builder.entries_url);break;case 83:h("#wpforms-save",b).click();break;case 81:h("#wpforms-exit",b).click();break;case 191:v.openKeyboardShortcutsModal();break;default:return}return!1}})},openKeyboardShortcutsModal:function(){h(".wpforms-builder-keyboard-shortcuts").length?jconfirm.instances[jconfirm.instances.length-1].close():h.alert({title:wpforms_builder.shortcuts_modal_title,content:wpforms_builder.shortcuts_modal_msg+wp.template("wpforms-builder-keyboard-shortcuts")(),icon:"fa fa-keyboard-o",type:"blue",boxWidth:"550px",smoothContent:!1,buttons:{confirm:{text:wpforms_builder.close,btnClass:"btn-confirm",keys:["enter"]}},onOpenBefore:function(){this.$body.addClass("wpforms-builder-keyboard-shortcuts")}})},registerTemplates:function(){"undefined"!=typeof WPForms&&WPForms.Admin.Builder.Templates.add(["wpforms-builder-confirmations-message-field","wpforms-builder-conditional-logic-toggle-field"])},exitBack:function(){1<n.history.length&&r.referrer?n.history.back():n.location.href=wpforms_builder.exit_url}};return v}(document,window,jQuery);WPFormsBuilder.init();
1
+ var WPFormsBuilder=window.WPFormsBuilder||function(r,n,h){var g,b,p={},i=!0,l=!1,v={settings:{spinner:'<i class="wpforms-loading-spinner"></i>',spinnerInline:'<i class="wpforms-loading-spinner wpforms-loading-inline"></i>',tinymceDefaults:{tinymce:{toolbar1:"bold,italic,underline,blockquote,strikethrough,bullist,numlist,alignleft,aligncenter,alignright,undo,redo,link"},quicktags:!0},pagebreakTop:!1,pagebreakBottom:!1,upload_img_modal:!1},init:function(){var e=this;wpforms_panel_switch=!0,g=this.settings,h(v.ready),h(n).on("load",function(){"function"==typeof h.ready.then?h.ready.then(v.load):v.load()}),h(n).on("beforeunload",function(){if(!e.formIsSaved()&&i)return wpforms_builder.are_you_sure_to_close})},load:function(){v.hideLoadingOverlay(),"1"==wpforms_builder.template_modal_display&&"fields"===wpf.getQueryString("view")&&h.alert({title:wpforms_builder.template_modal_title,content:wpforms_builder.template_modal_msg,icon:"fa fa-info-circle",type:"blue",buttons:{confirm:{text:wpforms_builder.close,btnClass:"btn-confirm",keys:["enter"]}}})},ready:function(){v.isVisitedViaBackButton()?location.reload():(b=h("#wpforms-builder"),p.$fieldOptions=h("#wpforms-field-options"),p.$sortableFieldsWrap=h(".wpforms-field-wrap"),p.$noFieldsOptions=h(".wpforms-no-fields-holder .no-fields"),p.$noFieldsPreview=h(".wpforms-no-fields-holder .no-fields-preview"),p.$addFieldsButtons=h(".wpforms-add-fields-button").not(".not-draggable").not(".warning-modal").not(".education-modal"),v.isBuilderInPopup()&&(h("#wpforms-embed").remove(),h("#wpforms-preview-btn").addClass("wpforms-alone")),v.loadMsWinCSS(),v.bindUIActions(),wpf.getQueryString("newform")&&v.formSave(!1),g.formID=h("#wpforms-builder-form").data("id"),g.pagebreakTop=h(".wpforms-pagebreak-top").length,g.pagebreakBottom=h(".wpforms-pagebreak-bottom").length,b.on("keypress","#wpforms-builder-form :input:not(textarea)",function(e){13===e.keyCode&&e.preventDefault()}),h(".wpforms-panel").each(function(e,i){var t,o=h(this),r=o.find(".wpforms-panel-sidebar-section.configured").first();r.length?(t=r.data("section"),r.addClass("active"),o.find(".wpforms-panel-content-section-"+t).show().addClass("active"),o.find(".wpforms-panel-content-section-default").hide()):(o.find(".wpforms-panel-content-section:first-of-type").show().addClass("active"),o.find(".wpforms-panel-sidebar-section:first-of-type").addClass("active"))}),v.loadEntryPreviewFields(),v.fieldSortable(),v.fieldChoiceSortable("select"),v.fieldChoiceSortable("radio"),v.fieldChoiceSortable("checkbox"),v.fieldChoiceSortable("payment-multiple"),v.fieldChoiceSortable("payment-checkbox"),v.fieldChoiceSortable("payment-select"),h(".wpforms-setup-templates.core .wpforms-template-inner").matchHeight({byRow:!1}),h(".wpforms-setup-templates.additional .wpforms-template-inner").matchHeight({byRow:!1}),h(".wpforms-add-fields-group").each(function(e,i){v.fieldGroupToggle(h(this),"load")}),v.registerTemplates(),v.trimFormTitle(),wpf.initTooltips(),v.loadColorPickers(),v.captchaToggle(),v.confirmationsSetup(),v.notificationToggle(),v.notificationsByStatusAlerts(),v.builderHotkeys(),h("#wpforms-setup-name").val(h("#wpforms-panel-field-settings-form_title").val()),jconfirm.defaults={closeIcon:!1,backgroundDismiss:!1,escapeKey:!0,animationBounce:1,useBootstrap:!1,theme:"modern",boxWidth:"400px",animateFromElement:!1,content:wpforms_builder.something_went_wrong},v.dropdownField.init(),v.initSomeFieldOptions(),v.dismissNotice())},loadMsWinCSS:function(){var e=navigator.userAgent;e.indexOf("Windows")<0||e.indexOf("Chrome")<0&&e.indexOf("Firefox")<0||h("<link>").appendTo("head").attr({type:"text/css",rel:"stylesheet",href:wpforms_builder.ms_win_css_url})},isVisitedViaBackButton:function(){if(!performance)return!1;var i=!1;return performance.getEntriesByType("navigation").forEach(function(e){"back_forward"===e.type&&(i=!0)}),i},hideLoadingOverlay:function(){var e=h("#wpforms-builder-overlay");e.addClass("fade-out"),setTimeout(function(){e.hide()},250)},showLoadingOverlay:function(){var e=h("#wpforms-builder-overlay");e.removeClass("fade-out"),e.show()},initSomeFieldOptions:function(){v.toggleAllOptionGroups(b),b.find(".wpforms-field-option-row-date .type select").trigger("change")},dropdownField:{config:{modernClass:"choicesjs-select",args:{searchEnabled:!1,searchChoices:!1,renderChoiceLimit:1,shouldSort:!1,callbackOnInit:function(){var e=h(this.containerOuter.element),i=e.closest(".wpforms-field").find("select");e.hasClass("is-disabled")&&e.removeClass("is-disabled"),i.is("[readonly]")&&(this.disable(),i.prop("disabled",!1)),this.passedElement.element.multiple&&this.getValue(!0).length&&h(this.input.element).addClass("choices__input--hidden")}}},init:function(){b.find("."+v.dropdownField.config.modernClass).each(function(){v.dropdownField.events.choicesInit(h(this))}),b.on("change",".wpforms-field-option-select .wpforms-field-option-row-multiple input",v.dropdownField.events.multiple),b.on("change",".wpforms-field-option-select .wpforms-field-option-row-style select, .wpforms-field-option-payment-select .wpforms-field-option-row-style select",v.dropdownField.events.applyStyle)},events:{choicesInit:function(e){var i=new Choices(e[0],v.dropdownField.config.args);v.dropdownField.helpers.setInstance(e,i),v.dropdownField.helpers.addPlaceholderChoice(e,i)},multiple:function(e){var i=h(this).closest(".wpforms-field-option-row-multiple").data().fieldId,t=v.dropdownField.helpers.getPrimarySelector(i),o=h("#wpforms-field-option-row-"+i+"-choices input.default"),r=t.find(".placeholder"),a=v.dropdownField.helpers.isDynamicChoices(i),n=e.target.checked,e=n?"checkbox":"radio";t.prop("multiple",n),o.prop("type",e),a&&t.find("option:selected").prop("selected",!1),t=o.filter(":checked"),!n&&t.length&&(o.prop("checked",!1),h(t.get(0)).prop("checked",!0)),r.length&&r.prop("selected",!n),v.dropdownField.helpers.update(i,a)},applyStyle:function(){var e=h(this),i=e.closest(".wpforms-field-option-row-style").data().fieldId;"modern"===e.val()?v.dropdownField.helpers.convertClassicToModern(i):v.dropdownField.helpers.convertModernToClassic(i)}},helpers:{convertModernToClassic:function(e){var i=v.dropdownField.helpers.getPrimarySelector(e),t=v.dropdownField.helpers.isDynamicChoices(e),i=v.dropdownField.helpers.getInstance(i);i.destroy(),v.dropdownField.helpers.updatePlaceholderChoice(i,e),t||v.fieldChoiceUpdate("select",e)},convertClassicToModern:function(e){var i=v.dropdownField.helpers.getPrimarySelector(e);v.dropdownField.helpers.isDynamicChoices(e)||v.fieldChoiceUpdate("select",e),v.dropdownField.events.choicesInit(i)},update:function(e,i){var t=v.dropdownField.helpers.getPrimarySelector(e);v.dropdownField.helpers.isModernSelect(t)?(v.dropdownField.helpers.convertModernToClassic(e),v.dropdownField.events.choicesInit(t)):i||v.fieldChoiceUpdate("select",e)},addPlaceholderChoice:function(e,i){var t=e.closest(".wpforms-field").data().fieldId,o=v.dropdownField.helpers.hasDefaults(t);if(v.dropdownField.helpers.isDynamicChoices(t)&&(o=!1),!1!==v.dropdownField.helpers.searchPlaceholderChoice(i))return!1;if(!i.config.choices.length)return!1;e=i.config.choices[0].label,t=h(i.passedElement.element).prop("multiple");return i.setChoices([{value:"",label:e,selected:!(t||o),placeholder:!0}],"value","label",!1),t&&h(i.input.element).prop("placeholder",e),!0},searchPlaceholderChoice:function(e){var o=!1;return e.config.choices.forEach(function(e,i,t){if(void 0!==e.placeholder&&!0===e.placeholder)return!(o={key:i,item:e})}),o},updatePlaceholderChoice:function(e,i){var t=h(e.passedElement.element),o=wpf.sanitizeHTML(h("#wpforms-field-option-"+i+"-placeholder").val()),i=v.dropdownField.helpers.searchPlaceholderChoice(e),e={};"object"==typeof i&&(e=h(t.find("option").get(i.key))),""!==o?!h.isEmptyObject(e)&&e.length?e.addClass("placeholder").text(o):t.prepend('<option value="" class="placeholder">'+o+"</option>"):e.length&&e.remove()},isModernSelect:function(e){e=v.dropdownField.helpers.getInstance(e);return"object"==typeof e&&(!h.isEmptyObject(e)&&e.initialised)},setInstance:function(e,i){e.data("choicesjs",i)},getInstance:function(e){return e.data("choicesjs")},isDynamicChoices:function(e){e=h("#wpforms-field-option-"+e+"-dynamic_choices");return!!e.length&&""!==e.val()},hasDefaults:function(e){return!!h("#wpforms-field-option-row-"+e+"-choices .choices-list").find("input.default:checked").length},getPrimarySelector:function(e){return h("#wpforms-field-"+e+" .primary-input")}}},numberSliderEvents:function(e){e.on("input",".wpforms-field-option-row-min_max .wpforms-input-row .wpforms-number-slider-min",v.fieldNumberSliderUpdateMin),e.on("input",".wpforms-field-option-row-min_max .wpforms-input-row .wpforms-number-slider-max",v.fieldNumberSliderUpdateMax),e.on("input",".wpforms-number-slider-default-value",_.debounce(v.changeNumberSliderDefaultValue,500)),e.on("input",".wpforms-number-slider-step",_.debounce(v.changeNumberSliderStep,500)),e.on("focusout",".wpforms-number-slider-step",v.checkNumberSliderStep),e.on("input",".wpforms-number-slider-value-display",_.debounce(v.changeNumberSliderValueDisplay,500)),e.on("input",".wpforms-number-slider-min",_.debounce(v.changeNumberSliderMin,500)),e.on("input",".wpforms-number-slider-max",_.debounce(v.changeNumberSliderMax,500))},changeNumberSliderMin:function(e){var i=h(e.target).parents(".wpforms-field-option-row").data("fieldId"),t=parseFloat(e.target.value);isNaN(t)||v.updateNumberSliderDefaultValueAttr(i,e.target.value,"min")},changeNumberSliderMax:function(e){var i=h(e.target).parents(".wpforms-field-option-row").data("fieldId"),t=parseFloat(e.target.value);isNaN(t)||v.updateNumberSliderDefaultValueAttr(i,e.target.value,"max").updateNumberSliderStepValueMaxAttr(i,e.target.value)},changeNumberSliderValueDisplay:function(e){var i=e.target.value,t=h(e.target).parents(".wpforms-field-option-row").data("fieldId"),e=r.getElementById("wpforms-field-option-"+t+"-default_value");e&&v.updateNumberSliderHintStr(t,i).updateNumberSliderHint(t,e.value)},changeNumberSliderStep:function(e){var i,t,o,r=parseFloat(e.target.value);isNaN(r)||(i=parseFloat(e.target.max),t=parseFloat(e.target.min),o=h(e.target).parents(".wpforms-field-option-row").data("fieldId"),r<=0||(i<r?e.target.value=i:r<t?e.target.value=t:v.updateNumberSliderAttr(o,r,"step").updateNumberSliderDefaultValueAttr(o,r,"step")))},checkNumberSliderStep:function(e){var e=parseFloat(e.target.value),i=h(this);!isNaN(e)&&0<e||h.confirm({title:wpforms_builder.heads_up,content:wpforms_builder.error_number_slider_increment,icon:"fa fa-exclamation-circle",type:"orange",buttons:{confirm:{text:wpforms_builder.ok,btnClass:"btn-confirm",keys:["enter"],action:function(){i.val("").focus()}}}})},changeNumberSliderDefaultValue:function(e){var i,t,o,r=parseFloat(e.target.value);isNaN(r)||(i=parseFloat(e.target.max),t=parseFloat(e.target.min),o=h(e.target).parents(".wpforms-field-option-row-default_value").data("fieldId"),i<r?e.target.value=i:r<t?e.target.value=t:v.updateNumberSlider(o,r).updateNumberSliderHint(o,r))},updateNumberSliderDefaultValueAttr:function(e,i,t){var o=r.getElementById("wpforms-field-option-"+e+"-default_value");return o&&(e=parseFloat(o.value),o.setAttribute(t,i),i=parseFloat(i),"max"===t&&i<e&&(o.value=i,h(o).trigger("input")),"min"===t&&e<i&&(o.value=i,h(o).trigger("input"))),this},updateNumberSlider:function(e,i){e=r.getElementById("wpforms-number-slider-"+e);return e&&(e.value=i),this},updateNumberSliderAttr:function(e,i,t){e=r.getElementById("wpforms-number-slider-"+e);return e&&e.setAttribute(t,i),this},updateNumberSliderHintStr:function(e,i){e=r.getElementById("wpforms-number-slider-hint-"+e);return e&&(e.dataset.hint=i),this},updateNumberSliderHint:function(e,i){e=r.getElementById("wpforms-number-slider-hint-"+e);return e&&(e.innerHTML=wpf.sanitizeHTML(e.dataset.hint).replace("{value}","<b>"+i+"</b>")),this},fieldNumberSliderUpdateMin:function(e){var i=h(e.target).parents(".wpforms-field-option-row-min_max"),t=parseFloat(i.find(".wpforms-number-slider-max").val()),o=parseFloat(e.target.value);if(!isNaN(o)){if(t<=o)return e.preventDefault(),void(this.value=t);i=i.data("field-id");b.find("#wpforms-field-"+i+' input[type="range"]').attr("min",o)}},fieldNumberSliderUpdateMax:function(e){var i=h(e.target).parents(".wpforms-field-option-row-min_max"),t=parseFloat(i.find(".wpforms-number-slider-min").val()),o=parseFloat(e.target.value);if(!isNaN(o)){if(o<=t)return e.preventDefault(),void(this.value=t);i=i.data("field-id");b.find("#wpforms-field-"+i+' input[type="range"]').attr("max",o)}},updateNumberSliderStepValueMaxAttr:function(e,i){var t=r.getElementById("wpforms-field-option-"+e+"-step");return t&&(e=parseFloat(t.value),t.setAttribute("max",i),(i=parseFloat(i))<e&&(t.value=i,h(t).trigger("input"))),this},fieldFileUploadPreviewUpdate:function(e){var i=h(e).parents(".wpforms-field-option-file-upload"),t=i.data("field-id"),o=i.find("#wpforms-field-option-"+t+"-style").val(),r=i.find("#wpforms-field-option-row-"+t+"-max_file_number"),a=parseInt(r.find("input").val(),10),e=h("#wpforms-field-"+t),i=".wpforms-file-upload-builder-classic",t=".wpforms-file-upload-builder-modern";"classic"===o?(h(i,e).removeClass("wpforms-hide"),h(t,e).addClass("wpforms-hide"),r.addClass("wpforms-hidden")):(1<a?(e.find(".modern-title").text(wpforms_builder.file_upload.preview_title_plural),e.find(".modern-hint").text(wpforms_builder.file_upload.preview_hint.replace("{maxFileNumber}",a)).removeClass("wpforms-hide")):(e.find(".modern-title").text(wpforms_builder.file_upload.preview_title_single),e.find(".modern-hint").text(wpforms_builder.file_upload.preview_hint.replace("{maxFileNumber}",1)).addClass("wpforms-hide")),h(i,e).addClass("wpforms-hide"),h(t,e).removeClass("wpforms-hide"),r.removeClass("wpforms-hidden"))},updateTextFieldsLimitControls:function(e,i){i?h("#wpforms-field-option-row-"+e+"-limit_controls").removeClass("wpforms-hide"):h("#wpforms-field-option-row-"+e+"-limit_controls").addClass("wpforms-hide")},updatePasswordStrengthControls:function(e,i){e=h("#wpforms-field-option-row-"+e+"-password-strength-level");i?e.removeClass("wpforms-hidden"):e.addClass("wpforms-hidden")},updateRichTextMediaFieldsLimitControls:function(){var e=h(this),i=e.closest(".wpforms-field-option-row-media_enabled").data("field-id"),t=h("#wpforms-field-option-row-"+i+"-media_controls"),i=h("#wpforms-field-"+i+" .wpforms-richtext-wrap .mce-toolbar-grp");e.is(":checked")?(t.show(),i.addClass("wpforms-field-richtext-media-enabled")):(t.hide(),i.removeClass("wpforms-field-richtext-media-enabled"))},updateRichTextStylePreview:function(){var e=h(this),i=e.closest(".wpforms-field-option-row-style").data("field-id");h("#wpforms-field-"+i+" .wpforms-richtext-wrap .mce-toolbar-grp").toggleClass("wpforms-field-richtext-toolbar-basic","full"!==e.val())},bindUIActions:function(){v.bindUIActionsPanels(),v.bindUIActionsFields(),v.bindUIActionsSettings(),v.bindUIActionsSaveExit(),v.bindUIActionsGeneral()},bindUIActionsPanels:function(){b.on("click","#wpforms-panels-toggle button, .wpforms-panel-switch",function(e){e.preventDefault(),v.panelSwitch(h(this).data("panel"))}),b.on("click",".wpforms-panel .wpforms-panel-sidebar-section",function(e){v.panelSectionSwitch(this,e)})},panelSwitch:function(e){var i=h("#wpforms-panel-"+e),t=h(".wpforms-panel-"+e+"-button");if(!i.hasClass("active")){if(b.trigger("wpformsPanelSwitch",[e]),!wpforms_panel_switch)return!1;h("#wpforms-panels-toggle").find("button").removeClass("active"),h(".wpforms-panel").removeClass("active"),t.addClass("active"),i.addClass("active"),history.replaceState({},null,wpf.updateQueryString("view",e)),b.trigger("wpformsPanelSwitched",[e])}},panelSectionSwitch:function(e,i){i&&i.preventDefault();var t=h(e),o=t.parent().parent(),r=t.data("section"),i=o.find(".wpforms-panel-sidebar-section"),e=o.find(".wpforms-panel-sidebar-section-"+r);t.hasClass("upgrade-modal")||t.hasClass("education-modal")||e.hasClass("active")||(b.trigger("wpformsPanelSectionSwitch",r),i.removeClass("active"),e.addClass("active"),o.find(".wpforms-panel-content-section").hide(),o.find(".wpforms-panel-content-section-"+r).show())},bindUIActionsSetup:function(){console.warn('WARNING! Function "WPFormsBuilder.bindUIActionsSetup()" has been deprecated, please use the new "WPForms.Admin.Builder.Setup.events()" function instead!'),WPForms.Admin.Builder.Setup.events()},templateSelect:function(e,i){console.warn('WARNING! Function "WPFormsBuilder.templateSelect()" has been deprecated, please use the new "WPForms.Admin.Builder.Setup.selectTemplate()" function instead!'),WPForms.Admin.Builder.Setup.selectTemplate(i)},bindUIActionsFields:function(){b.on("click",".wpforms-tab a",function(e){e.preventDefault(),v.fieldTabToggle(h(this).parent().attr("id"))}),b.on("click",".wpforms-add-fields-heading",function(e){e.preventDefault(),v.fieldGroupToggle(h(this),"click")}),b.on("click",".wpforms-field",function(e){v.isFieldPreviewActionsDisabled(this)||v.fieldTabToggle(h(this).data("field-id"))}),b.on("mousedown click",".wpforms-field input, .wpforms-field select, .wpforms-field textarea",function(e){e.preventDefault(),this.blur()}),b.on("click",".wpforms-field-delete",function(e){e.preventDefault(),e.stopPropagation(),v.isFieldPreviewActionsDisabled(this)||v.fieldDelete(h(this).parent().data("field-id"))}),b.on("click",".wpforms-field-duplicate",function(e){e.preventDefault(),e.stopPropagation(),v.isFieldPreviewActionsDisabled(this)||v.fieldDuplicate(h(this).parent().data("field-id"))}),b.on("click",".wpforms-add-fields-button",function(e){e.preventDefault();e=h(this);e.hasClass("ui-draggable-disabled")||v.fieldAdd(e.data("field-type"))}),b.on("wpformsFieldAdd",function(e,i,t){"select"!==t&&"radio"!==t&&"checkbox"!==t&&"payment-multiple"!==t&&"payment-checkbox"!==t&&"payment-select"!==t||v.fieldChoiceSortable(t,"#wpforms-field-option-row-"+i+"-choices ul")}),b.on("click",".wpforms-field-option-row-choices .add",function(e){v.fieldChoiceAdd(e,h(this))}),b.on("click",".wpforms-field-option-row-choices .remove",function(e){v.fieldChoiceDelete(e,h(this))}),b.on("mousedown",".wpforms-field-option-row-choices input[type=radio]",function(e){var i=h(this);i.is(":checked")?i.attr("data-checked","1"):i.attr("data-checked","0")}),b.on("click",".wpforms-field-option-row-choices input[type=radio]",function(e){var i=h(this),t=i.parent().parent();i.parent().parent().find("input[type=radio]").not(this).prop("checked",!1),"1"===i.attr("data-checked")&&(i.prop("checked",!1),i.attr("data-checked","0")),v.fieldChoiceUpdate(t.data("field-type"),t.data("field-id"))}),b.on("change",".wpforms-field-option-row-choices input[type=checkbox]",function(e){var i=h(this).parent().parent();v.fieldChoiceUpdate(i.data("field-type"),i.data("field-id"))}),b.on("change",".wpforms-field-option-row-show_values input",function(e){h(this).closest(".wpforms-field-option").find(".wpforms-field-option-row-choices ul").toggleClass("show-values")}),b.on("change",".wpforms-field-option-row-choices_images input",function(){var e=h(this),i=e.closest(".wpforms-field-option-row"),t=i.data("field-id"),o=h("#wpforms-field-option-"+t),r=e.is(":checked"),e=o.find(".wpforms-field-option-hidden-type").val();i.find(".wpforms-alert").toggleClass("wpforms-hidden"),o.find(".wpforms-field-option-row-choices ul").toggleClass("show-images"),o.find(".wpforms-field-option-row-choices_images_style").toggleClass("wpforms-hidden"),o.find(".wpforms-field-option-row-dynamic_choices").toggleClass("wpforms-hidden",r),(r?h("#wpforms-field-option-"+t+"-input_columns").val("inline"):h("#wpforms-field-option-"+t+"-input_columns").val("")).trigger("change"),v.fieldChoiceUpdate(e,t)}),b.on("wpformsImageUploadAdd wpformsImageUploadRemove",function(e,i,t){var o=t.closest(".choices-list"),t=o.data("field-id"),o=o.data("field-type");v.fieldChoiceUpdate(o,t)}),b.on("change",".wpforms-field-option-row-choices_images_style select",function(){var e=h(this).parent().data("field-id"),i=h("#wpforms-field-option-"+e).find(".wpforms-field-option-hidden-type").val();v.fieldChoiceUpdate(i,e)}),b.on("keyup",".wpforms-field-option-row-choices input.label, .wpforms-field-option-row-choices input.value",function(e){var i=h(this).parent().parent();v.fieldChoiceUpdate(i.data("field-type"),i.data("field-id"))}),b.on("click",".toggle-bulk-add-display",function(e){e.preventDefault(),v.fieldChoiceBulkAddToggle(this)}),b.on("click",".toggle-bulk-add-presets",function(e){e.preventDefault();e=h(this).closest(".bulk-add-display").find("ul");"block"===e.css("display")?h(this).text(wpforms_builder.bulk_add_presets_show):h(this).text(wpforms_builder.bulk_add_presets_hide),e.stop().slideToggle()}),b.on("click",".bulk-add-preset-insert",function(e){e.preventDefault();var i=h(this),t=i.data("preset"),o=i.closest(".bulk-add-display"),e=o.find("ul"),i=o.find(".toggle-bulk-add-presets"),o=o.find("textarea");o.val(""),o.insertAtCaret(wpforms_preset_choices[t].choices.join("\n")),i.text(wpforms_builder.bulk_add_presets_show),e.slideUp()}),b.on("click",".bulk-add-insert",function(e){e.preventDefault(),v.fieldChoiceBulkAddInsert(this)}),b.on("click",".wpforms-field-option-group-toggle:not(.education-modal)",function(e){e.preventDefault();e=h(this).closest(".wpforms-field-option-group");e.siblings(".wpforms-field-option-group").removeClass("active"),e.addClass("active")}),b.on("change",".wpforms-field-option-address input.wpforms-subfield-hide",function(e){var i=h(this).closest(".wpforms-field-option-row"),t=i.data("field-id"),i=i.data("subfield");h("#wpforms-field-"+t).find(".wpforms-"+i).toggleClass("wpforms-hide")}),b.on("input",".wpforms-field-option-row-label input, .wpforms-field-option-row-name input",function(e){var i=h(this),t=i.val(),o=i.parent().data("field-id"),r=h("#wpforms-field-"+o),i=r.data("field-type"),o=0===t.length;(o="html"===i?!1:o)&&(t=wpforms_builder.empty_label),r.toggleClass("label_empty",o).find(".label-title .text").text(t)}),b.on("input",".wpforms-field-option-row-description textarea",function(){var e=h(this),i=wpf.sanitizeHTML(e.val()),e=e.parent().data("field-id"),e=h("#wpforms-field-"+e).find(".description");v.updateDescription(e,i)}),b.on("change",".wpforms-field-option-row-required input",function(e){var i=h(this).closest(".wpforms-field-option-row").data("field-id");h("#wpforms-field-"+i).toggleClass("required")}),b.on("change",".wpforms-field-option-row-confirmation input",function(e){var i=h(this).closest(".wpforms-field-option-row").data("field-id");h("#wpforms-field-"+i).find(".wpforms-confirm").toggleClass("wpforms-confirm-enabled wpforms-confirm-disabled"),h("#wpforms-field-option-"+i).toggleClass("wpforms-confirm-enabled wpforms-confirm-disabled")}),b.on("change",".wpforms-field-option-row-filter_type select",function(){var e=h(this).parent().data("field-id"),e=h("#wpforms-field-option-"+e);h(this).val()?(e.removeClass("wpforms-filter-allowlist"),e.removeClass("wpforms-filter-denylist"),e.addClass("wpforms-filter-"+h(this).val())):(e.removeClass("wpforms-filter-allowlist"),e.removeClass("wpforms-filter-denylist"))}),b.on("focusout",".wpforms-field-option-row-allowlist textarea,.wpforms-field-option-row-denylist textarea",function(){var i=h(this);h.get(wpforms_builder.ajax_url,{nonce:wpforms_builder.nonce,content:i.val(),action:"wpforms_sanitize_restricted_rules"},function(e){e.success&&i.val(e.data)})}),b.on("change",".wpforms-field-option-row-size select",function(e){var i=h(this),t=i.val(),i=i.parent().data("field-id");h("#wpforms-field-"+i).removeClass("size-small size-medium size-large").addClass("size-"+t)}),b.on("input",".wpforms-field-option-row-placeholder input",function(){var e,i=h(this),t=wpf.sanitizeHTML(i.val()),o=i.parent().data("field-id"),r=h("#wpforms-field-"+o+" .primary-input");r.is("select")?v.dropdownField.helpers.isModernSelect(r)?(i=v.dropdownField.helpers.getInstance(r),r.prop("multiple")?h(i.input.element).prop("placeholder",t):(i.setChoiceByValue(""),r.closest(".choices").find(".choices__inner .choices__placeholder").text(t),e=h("#wpforms-field-option-"+o+"-dynamic_choices").val(),v.dropdownField.helpers.update(o,e))):(e=r.find(".placeholder"),!t.length&&e.length?e.remove():(e.length?e.text(t):r.prepend('<option value="" class="placeholder">'+t+"</option>"),r.find(".placeholder").prop("selected",!r.prop("multiple")))):r.prop("placeholder",t)}),b.on("input",".wpforms-field-option-row-confirmation_placeholder input",function(e){var i=h(this),t=i.val(),i=i.parent().data("field-id");h("#wpforms-field-"+i).find(".secondary-input").attr("placeholder",t)}),b.on("change",".wpforms-field-option-row-label_hide input",function(e){var i=h(this).closest(".wpforms-field-option-row").data("field-id");h("#wpforms-field-"+i).toggleClass("label_hide")}),b.on("change",".wpforms-field-option-row-sublabel_hide input",function(e){var i=h(this).closest(".wpforms-field-option-row").data("field-id");h("#wpforms-field-"+i).toggleClass("sublabel_hide")}),b.on("change",".wpforms-field-option-row-format select",function(e){var i=h(this),t=i.val(),i=i.parent().data("field-id");h("#wpforms-field-"+i).find(".format-selected").removeClass().addClass("format-selected format-selected-"+t),h("#wpforms-field-option-"+i).find(".format-selected").removeClass().addClass("format-selected format-selected-"+t)}),b.on("change",".wpforms-field-option-row-scheme select",function(e){var i=h(this),t=i.val(),o=i.parent().data("field-id"),i=h("#wpforms-field-"+o);i.find(".wpforms-address-scheme").addClass("wpforms-hide"),i.find(".wpforms-address-scheme-"+t).removeClass("wpforms-hide"),0==i.find(".wpforms-address-scheme-"+t+" .wpforms-country").children().length?h("#wpforms-field-option-"+o).find(".wpforms-field-option-row-country").addClass("wpforms-hidden"):h("#wpforms-field-option-"+o).find(".wpforms-field-option-row-country").removeClass("wpforms-hidden")}),b.on("input",".wpforms-field-option .format-selected input.placeholder, .wpforms-field-option-address input.placeholder",function(e){var i=h(this),t=i.val(),o=i.closest(".wpforms-field-option-row"),i=o.data("field-id"),o=o.data("subfield");h("#wpforms-field-"+i).find(".wpforms-"+o+" input").attr("placeholder",t)}),b.on("change",".wpforms-field-option-row-date .type select",function(e){var i=h(this),t=i.val(),o=h(this).closest(".wpforms-field-option-row").data("field-id"),r="datepicker"===t?"wpforms-date-type-datepicker":"wpforms-date-type-dropdown",a="datepicker"===t?"wpforms-date-type-dropdown":"wpforms-date-type-datepicker";h("#wpforms-field-"+o).find(".wpforms-date").addClass(r).removeClass(a),h("#wpforms-field-option-"+o).addClass(r).removeClass(a);a=i.closest(".wpforms-field-option-group-advanced").find(".wpforms-field-option-row-date_limit_days, .wpforms-field-option-row-date_limit_days_options, .wpforms-field-option-row-date_disable_past_dates"),i=h("#wpforms-field-option-row-"+o+"-date_limit_days_options");"dropdown"===t?((t=h("#wpforms-field-option-"+o+"-date_format")).find("option:selected").hasClass("datepicker-only")&&t.prop("selectedIndex",0).trigger("change"),a.hide()):(a.show(),h("#wpforms-field-option-"+o+"-date_limit_days").is(":checked")?i.show():i.hide())}),b.on("change",".wpforms-field-option-row-date .format select",function(e){var i=h(this).val(),t=h(this).closest(".wpforms-field-option-row").data("field-id"),t=h("#wpforms-field-"+t);"m/d/Y"===i?(t.find(".wpforms-date-dropdown .first option").text(wpforms_builder.date_select_month),t.find(".wpforms-date-dropdown .second option").text(wpforms_builder.date_select_day)):"d/m/Y"===i&&(t.find(".wpforms-date-dropdown .first option").text(wpforms_builder.date_select_day),t.find(".wpforms-date-dropdown .second option").text(wpforms_builder.date_select_month))}),b.on("change",".wpforms-field-option-row-time .format select",function(e){for(var i=h(this),r=h(this).closest(".wpforms-field-option-row").data("field-id"),a="",n=i.val().match(/[gh]/)?12:24,t=0;t<n;t++)a+='<option value="{hh}">{hh}</option>'.replace(/{hh}/g,t<10?"0"+t:t);_.forEach(["start","end"],function(e){var i=b.find("#wpforms-field-option-"+r+"-time_limit_hours_"+e+"_hour"),t=b.find("#wpforms-field-option-"+r+"-time_limit_hours_"+e+"_ampm"),o=parseInt(i.val(),10),e=t.val();o=(o=24==n?"pm"===e?o+12:o:(e=12<o?"pm":"am",12<o?o-12:o))<10?"0"+o:o,i.html(a).val(o),t.toggleClass("wpforms-hidden-strict",24==n).val(e),t.nextAll("div").toggleClass("wpforms-hidden-strict",12==n)})}),b.on("click",".wpforms-pagebreak-button",function(e){e.preventDefault(),h(this).closest(".wpforms-field").trigger("click")}),v.fieldPageBreakInitDisplayPrevious(b.find(".wpforms-field-pagebreak.wpforms-pagebreak-normal:first")),b.on("input",".wpforms-field-option-row-next input",function(e){var i=h(this),t=i.val(),i=h("#wpforms-field-"+i.parent().data("field-id")).find(".wpforms-pagebreak-next");t?i.css("display","inline-block").text(t):i.css("display","none").empty()}).on("input",".wpforms-field-option-row-prev input",function(e){var i=h(this),t=i.val().trim(),o=h("#wpforms-field-"+i.parent().data("field-id")),i=o.find(".wpforms-pagebreak-prev");t&&0<o.prevAll(".wpforms-field-pagebreak.wpforms-pagebreak-normal").length?i.removeClass("wpforms-hidden").text(t):i.addClass("wpforms-hidden").empty()}).on("change",".wpforms-field-option-row-prev_toggle input",function(e){var i=h(this),t=i.closest(".wpforms-field-option-row-prev_toggle"),o=i.closest(".wpforms-field-option-group-inner").find(".wpforms-field-option-row-prev"),r=o.find("input"),a=h("#wpforms-field-"+i.closest(".wpforms-field-option").data("field-id")).find(".wpforms-pagebreak-prev");t.hasClass("wpforms-entry-preview-block")||(o.toggleClass("wpforms-hidden",!i.prop("checked")),a.toggleClass("wpforms-hidden",!i.prop("checked")),i.prop("checked")&&!r.val()&&(a=(a=r.data("last-value"))&&a.trim()?a.trim():wpforms_builder.previous,r.val(a)),i.prop("checked")||(r.data("last-value",r.val()),r.val("")),r.trigger("input"))}).on("wpformsFieldAdd",v.fieldPagebreakAdd).on("wpformsFieldDelete",v.fieldPagebreakDelete).on("wpformsBeforeFieldDelete",v.fieldEntryPreviewDelete),b.on("wpformsFieldMove wpformsFieldAdd wpformsFieldDelete",function(e){b.find(".wpforms-field-pagebreak.wpforms-pagebreak-normal").each(function(e){v.fieldPageBreakInitDisplayPrevious(h(this))})}),b.on("input",".wpforms-field-option-row-title input",function(e){var i=h(this),t=i.val(),i=i.parent().data("field-id");t?h("#wpforms-field-"+i).find(".wpforms-pagebreak-title").text("("+t+")"):h("#wpforms-field-"+i).find(".wpforms-pagebreak-title").empty()}),b.on("change",".wpforms-field-option-row-nav_align select",function(e){var i=(i=h(this).val())||"center";h(".wpforms-pagebreak-buttons").removeClass("wpforms-pagebreak-buttons-center wpforms-pagebreak-buttons-left wpforms-pagebreak-buttons-right wpforms-pagebreak-buttons-split").addClass("wpforms-pagebreak-buttons-"+i)}),b.on("input",".wpforms-field-option-row-price input",function(e){var i=h(this),t=i.val(),o=i.parent().data("field-id"),i=wpf.amountSanitize(t),t=wpf.amountFormat(i),i="right"===wpforms_builder.currency_symbol_pos?t+" "+wpforms_builder.currency_symbol:wpforms_builder.currency_symbol+" "+t;h("#wpforms-field-"+o).find(".primary-input").val(t),h("#wpforms-field-"+o).find(".price").text(i)}),b.on("change",".wpforms-field-option-credit-card .payment-icons input",function(e){var i=h(this),t=i.data("card"),i=i.parent().data("field-id");h("#wpforms-field-"+i).find("img.icon-"+t).toggleClass("card_hide")}),b.on("input",".wpforms-field-option input.placeholder-update",function(e){var i=h(this),t=i.val(),o=i.data("field-id"),i=i.data("subfield");h("#wpforms-field-"+o).find(".wpforms-"+i+" input").attr("placeholder",t)}),b.on("change",".wpforms-field-option-row-input_columns select",function(){var e=h(this),i=e.val(),t="",e=e.parent().data("field-id");"2"===i?t="wpforms-list-2-columns":"3"===i?t="wpforms-list-3-columns":"inline"===i&&(t="wpforms-list-inline"),h("#wpforms-field-"+e).removeClass("wpforms-list-2-columns wpforms-list-3-columns wpforms-list-inline").addClass(t)}),b.on("change",".wpforms-field-option-row .wpforms-toggle-control input",function(e){var i=h(this),t=i.closest(".wpforms-toggle-control").find(".wpforms-toggle-control-status"),i=i.is(":checked")?"on":"off";t.html(t.data(i))}),b.on("change",".wpforms-field-option-row-dynamic_choices select",function(e){v.fieldDynamicChoiceToggle(h(this))}),b.on("change",".wpforms-field-option-row-dynamic_taxonomy select, .wpforms-field-option-row-dynamic_post_type select",function(e){v.fieldDynamicChoiceSource(h(this))}),b.on("click",".toggle-layout-selector-display",function(e){e.preventDefault(),v.fieldLayoutSelectorToggle(this)}),b.on("click",".layout-selector-display-layout",function(e){e.preventDefault(),v.fieldLayoutSelectorLayout(this)}),b.on("click",".layout-selector-display-columns span",function(e){e.preventDefault(),v.fieldLayoutSelectorInsert(this)}),h(r).on("change",".wpforms-field-option-row-scale select",function(){var e=h(this),i=e.val(),e=e.parent().data("field-id"),e=h("#wpforms-field-"+e+" .rating-icon"),t=1;e.each(function(e){t<=i?h(this).show():h(this).hide(),t++})}),h(r).on("change",".wpforms-field-option-row-icon select",function(){var e=h(this),i=e.val(),t=e.parent().data("field-id"),e="fa-star";"heart"===i?e="fa-heart":"thumb"===i?e="fa-thumbs-up":"smiley"===i&&(e="fa-smile-o"),h("#wpforms-field-"+t+" .rating-icon").removeClass("fa-star fa-heart fa-thumbs-up fa-smile-o").addClass(e)}),h(r).on("change",".wpforms-field-option-row-icon_size select",function(){var e=h(this),i=e.val(),e=e.parent().data("field-id"),e=h("#wpforms-field-"+e+" .rating-icon");fontSize="28","small"===i?fontSize="18":"large"===i&&(fontSize="38"),e.css("font-size",fontSize+"px")}),h(r).on("input",".wpforms-field-option-row-icon_color input.wpforms-color-picker",function(){var e=h(this),i=e.val(),e=e.closest(".wpforms-field-option-row").data("field-id");h("#wpforms-field-"+e+" > i.fa").css("color",i)}),h(r).on("change",".wpforms-field-option-row-disclaimer_format input",function(){var e=h(this).closest(".wpforms-field-option-row").data("field-id");h("#wpforms-field-"+e+" .description").toggleClass("disclaimer")}),b.on("change",".wpforms-field-option-row-limit_enabled input",function(e){v.updateTextFieldsLimitControls(h(e.target).closest(".wpforms-field-option-row-limit_enabled").data().fieldId,e.target.checked)}),b.on("change",".wpforms-field-option-row-password-strength input",function(e){v.updatePasswordStrengthControls(h(e.target).parents(".wpforms-field-option-row-password-strength").data().fieldId,e.target.checked)}),b.on("change",".wpforms-field-option-richtext .wpforms-field-option-row-media_enabled input",v.updateRichTextMediaFieldsLimitControls),b.on("change",".wpforms-field-option-richtext .wpforms-field-option-row-style select",v.updateRichTextStylePreview),b.on("change",".wpforms-field-option-file-upload .wpforms-field-option-row-style select, .wpforms-field-option-file-upload .wpforms-field-option-row-max_file_number input",function(e){v.fieldFileUploadPreviewUpdate(e.target)}),v.numberSliderEvents(b),v.fieldDynamicChoiceToggleImageChoices(),b.on("change",".wpforms-field-option-row-show_price_after_labels input",function(e){var i=h(this).closest(".wpforms-field-option-group-basic").find(".wpforms-field-option-row-choices .choices-list");v.fieldChoiceUpdate(i.data("field-type"),i.data("field-id"))}),b.on("input",".wpforms-field-option-row-preview-notice textarea",v.updatePreviewNotice).on("change",".wpforms-field-option-row-preview-notice-enable input",v.toggleEntryPreviewNotice).on("wpformsFieldAdd",v.maybeLockEntryPreviewGroupOnAdd).on("wpformsFieldMove",v.maybeLockEntryPreviewGroupOnMove).on("click",".wpforms-entry-preview-block",v.entryPreviewBlockField),v.defaultStateEntryPreviewNotice()},isFieldPreviewActionsDisabled:function(e){return h(e).closest(".wpforms-field-wrap").hasClass("ui-sortable-disabled")},fieldGroupToggle:function(e,i){var t=h(e),o=t.next(".wpforms-add-fields-buttons"),r=o.parent(),a=t.find("i"),e="wpforms_field_group_"+t.data("group");if("click"===i)return r.hasClass("wpforms-closed")?wpCookies.remove(e):wpCookies.set(e,"true",2592e3),a.toggleClass("wpforms-angle-right"),void o.stop().slideToggle("",function(){r.toggleClass("wpforms-closed")});"load"===i&&(o=t.find(".wpforms-add-fields-buttons"),a=t.find(".wpforms-add-fields-heading i"),e="wpforms_field_group_"+t.find(".wpforms-add-fields-heading").data("group"),"true"===wpCookies.get(e)&&(a.toggleClass("wpforms-angle-right"),o.hide(),t.toggleClass("wpforms-closed")))},updateDescription:function(e,i){e.hasClass("nl2br")&&(i=i.replace(/\n/g,"<br>")),e.html(i)},defaultStateEntryPreviewNotice:function(){h(".wpforms-field-option-row-preview-notice-enable input").each(function(){h(this).trigger("change")})},updatePreviewNotice:function(){var e=h(this),i=wpf.sanitizeHTML(e.val()).trim(),e=e.parent().data("field-id"),e=h("#wpforms-field-"+e).find(".wpforms-entry-preview-notice"),i=i||wpforms_builder.entry_preview_default_notice;v.updateDescription(e,i)},toggleEntryPreviewNotice:function(){var e=h(this),i=e.closest(".wpforms-field-option").data("field-id"),t=h("#wpforms-field-"+i),o=h("#wpforms-field-option-"+i+" .wpforms-field-option-row-preview-notice"),i=t.find(".wpforms-entry-preview-notice"),t=t.find(".wpforms-alert-info");if(e.is(":checked"))return t.hide(),i.show(),void o.show();o.hide(),i.hide(),t.show()},fieldDelete:function(e){var i=h("#wpforms-field-"+e),t=i.data("field-type");"pagebreak"===t&&i.hasClass("wpforms-field-entry-preview-not-deleted")?v.youCantRemovePageBreakFieldPopup():i.hasClass("no-delete")?v.youCantRemoveFieldPopup():v.confirmFieldDeletion(e,t)},youCantRemovePageBreakFieldPopup:function(){h.alert({title:wpforms_builder.heads_up,content:wpforms_builder.entry_preview_require_page_break,icon:"fa fa-exclamation-circle",type:"red",buttons:{confirm:{text:wpforms_builder.ok,btnClass:"btn-confirm",keys:["enter"]}}})},youCantReorderFieldPopup:function(){h.confirm({title:wpforms_builder.heads_up,content:wpforms_builder.field_cannot_be_reordered,icon:"fa fa-exclamation-circle",type:"red",buttons:{confirm:{text:wpforms_builder.ok,btnClass:"btn-confirm",keys:["enter"]}}})},youCantRemoveFieldPopup:function(){h.alert({title:wpforms_builder.field_locked,content:wpforms_builder.field_locked_no_delete_msg,icon:"fa fa-info-circle",type:"blue",buttons:{confirm:{text:wpforms_builder.close,btnClass:"btn-confirm",keys:["enter"]}}})},confirmFieldDeletion:function(e,i){var t={id:e,message:wpforms_builder.delete_confirm};b.trigger("wpformsBeforeFieldDeleteAlert",[t]),h.confirm({title:!1,content:t.message,icon:"fa fa-exclamation-circle",type:"orange",buttons:{confirm:{text:wpforms_builder.ok,btnClass:"btn-confirm",keys:["enter"],action:function(){v.fieldDeleteById(e,i)}},cancel:{text:wpforms_builder.cancel}}})},fieldDeleteById:function(e,i){h("#wpforms-field-"+e).fadeOut(400,function(){b.trigger("wpformsBeforeFieldDelete",[e,i]),h(this).remove(),h("#wpforms-field-option-"+e).remove(),h(".wpforms-field, .wpforms-title-desc").removeClass("active"),v.fieldTabToggle("add-fields"),h(".wpforms-field").length<1&&(p.$fieldOptions.append(p.$noFieldsOptions.clone()),p.$sortableFieldsWrap.append(p.$noFieldsPreview.clone()),b.find(".wpforms-field-submit").hide()),b.trigger("wpformsFieldDelete",[e,i])})},loadEntryPreviewFields:function(){var e=h(".wpforms-field-wrap .wpforms-field-entry-preview");e.length&&e.each(function(){v.lockEntryPreviewFieldsPosition(h(this).data("field-id"))})},fieldEntryPreviewDelete:function(e,i,t){"entry-preview"===t&&(i=(t=h("#wpforms-field-"+i)).prevAll(".wpforms-field-pagebreak"),t=t.nextAll(".wpforms-field-pagebreak").data("field-id"),t=h("#wpforms-field-option-"+t),i.removeClass("wpforms-field-not-draggable wpforms-field-entry-preview-not-deleted"),t.find(".wpforms-entry-preview-block").removeClass("wpforms-entry-preview-block"))},maybeLockEntryPreviewGroupOnMove:function(e,i){i.item.hasClass("wpforms-field-pagebreak")&&v.maybeLockEntryPreviewGroupOnAdd(e,i.item.data("field-id"),"pagebreak")},maybeLockEntryPreviewGroupOnAdd:function(e,i,t){if("pagebreak"===t){var o=h("#wpforms-field-"+i),r=h("#wpforms-field-option-"+i+" .wpforms-field-option-row-prev_toggle"),a=r.find("input"),n=o.prevAll(".wpforms-field-entry-preview,.wpforms-field-pagebreak").first(),s=h("#wpforms-field-option-"+n.data("field-id")+" .wpforms-field-option-row-prev_toggle"),l=s.find("input"),t=o.nextAll(".wpforms-field-entry-preview,.wpforms-field-pagebreak").first(),i=h("#wpforms-field-option-"+t.data("field-id")+" .wpforms-field-option-row-prev_toggle");if(n.hasClass("wpforms-field-entry-preview")||t.hasClass("wpforms-field-entry-preview")){if(n.hasClass("wpforms-field-entry-preview"))return a.attr("checked","checked").trigger("change"),r.addClass("wpforms-entry-preview-block"),void i.removeClass("wpforms-entry-preview-block");o.addClass("wpforms-field-not-draggable wpforms-field-entry-preview-not-deleted"),n.removeClass("wpforms-field-not-draggable wpforms-field-entry-preview-not-deleted"),n.prevAll(".wpforms-field-entry-preview,.wpforms-field-pagebreak").first().hasClass("wpforms-field-entry-preview")&&(l.attr("checked","checked").trigger("change"),s.addClass("wpforms-entry-preview-block"))}}},entryPreviewBlockField:function(e){e.preventDefault(),h.alert({title:wpforms_builder.heads_up,content:wpforms_builder.entry_preview_require_previous_button,icon:"fa fa-exclamation-circle",type:"red",buttons:{confirm:{text:wpforms_builder.ok,btnClass:"btn-confirm",keys:["enter"]}}})},isUncheckedEntryPreviewField:function(e,i){return!("entry-preview"!==e||i&&i.passed)},addEntryPreviewField:function(e,i){var t,o,r,a=h("#wpforms-add-fields-entry-preview");a.hasClass("wpforms-entry-preview-adding")||(r=h(".wpforms-field-wrap .wpforms-field"),t=i&&i.position?i.position:r.length,o=v.isEntryPreviewFieldRequiresPageBreakBefore(r,t),r=v.isEntryPreviewFieldRequiresPageBreakAfter(r,t),a.addClass("wpforms-entry-preview-adding"),(i=i||{}).passed=!0,o||r?o?v.addPageBreakAndEntryPreviewFields(i,t):v.addEntryPreviewAndPageBreakFields(i,t):v.fieldAdd("entry-preview",i).done(function(e){v.lockEntryPreviewFieldsPosition(e.data.field.id)}))},addEntryPreviewFieldAfterPageBreak:function(e){var i=setInterval(function(){2===h(".wpforms-field-wrap .wpforms-pagebreak-bottom, .wpforms-field-wrap .wpforms-pagebreak-top").length&&(v.fieldAdd("entry-preview",e).done(function(e){v.lockEntryPreviewFieldsPosition(e.data.field.id)}),clearInterval(i))},100)},addPageBreakAndEntryPreviewFields:function(i,t){var o=3<=h(".wpforms-field-wrap .wpforms-field-pagebreak").length;v.fieldAdd("pagebreak",{position:t}).done(function(e){i.position=o?t+1:t+2,v.addEntryPreviewFieldAfterPageBreak(i);e=h("#wpforms-field-option-"+e.data.field.id).find(".wpforms-field-option-row-prev_toggle");e.find("input").attr("checked","checked").trigger("change"),e.addClass("wpforms-entry-preview-block")})},fieldDuplicate:function(m){var u=h("#wpforms-field-"+m),w=u.data("field-type");u.hasClass("no-duplicate")?h.alert({title:wpforms_builder.field_locked,content:wpforms_builder.field_locked_no_duplicate_msg,icon:"fa fa-info-circle",type:"blue",buttons:{confirm:{text:wpforms_builder.close,btnClass:"btn-confirm",keys:["enter"]}}}):h.confirm({title:!1,content:wpforms_builder.duplicate_confirm,icon:"fa fa-exclamation-circle",type:"orange",buttons:{confirm:{text:wpforms_builder.ok,btnClass:"btn-confirm",keys:["enter"],action:function(){var e=h("#wpforms-field-option-"+m),i=v.dropdownField.helpers.isModernSelect(u.find(".primary-input"));wpf.restoreTooltips(e),i&&v.dropdownField.helpers.convertModernToClassic(m);var t=u.clone(),o=e.html(),n=h("#wpforms-field-id").val(),r=h("#wpforms-field-option-"+m+"-label").length?h("#wpforms-field-option-"+m+"-label"):h("#wpforms-field-option-"+m+"-name"),a=r.length?r.val()+" "+wpforms_builder.duplicate_copy:wpforms_builder.field+" #"+m+" "+wpforms_builder.duplicate_copy,s=Number(n)+1,l=new RegExp("ID #"+m,"g"),d=new RegExp("fields\\["+m+"\\]","g"),f=new RegExp('data-field-id="'+m+'"',"g"),p=new RegExp('data-reference="'+m+'"',"g"),r=new RegExp('\\b(id|for)="wpforms-(.*?)'+m+'(.*?)"',"ig");u.after(t),u.removeClass("active"),t.addClass("active").attr({id:"wpforms-field-"+n,"data-field-id":n}),o=(o=(o=(o=(o=o.replace(l,"ID #"+n)).replace(d,"fields["+n+"]")).replace(f,'data-field-id="'+n+'"')).replace(p,'data-reference="'+n+'"')).replace(r,function(e,i,t,o,r,a){return i+'="wpforms-'+t+n+o+'"'}),e.hide().after('<div class="'+e.attr("class")+'" id="wpforms-field-option-'+n+'" data-field-id="'+n+'">'+o+"</div>");var c=h("#wpforms-field-option-"+n);e.find(":input").each(function(e,i){var t=h(this),o=t.attr("name");if(!o)return"continue";var r=o.replace(d,"fields["+n+"]"),o=t.attr("type");"checkbox"===o||"radio"===o?t.is(":checked")?c.find('[name="'+r+'"]').prop("checked",!0).attr("checked","checked"):c.find('[name="'+r+'"]').prop("checked",!1).attr("checked",!1):t.is("select")?t.find("option:selected").length&&(o=t.find("option:selected").val(),c.find('[name="'+r+'"]').find('[value="'+o+'"]').prop("selected",!0)):""!==t.val()?c.find('[name="'+r+'"]').val(t.val()):t.hasClass("wpforms-money-input")&&c.find('[name="'+r+'"]').val(wpf.numberFormat("0",wpforms_builder.currency_decimals,wpforms_builder.currency_decimal,wpforms_builder.currency_thousands))}),h("#wpforms-field-option-"+n).find(".wpforms-field-option-hidden-id").val(n),h("#wpforms-field-id").val(s),h("#wpforms-field-option-"+n+"-label").val(a),"html"===w&&h("#wpforms-field-option-"+n+"-name").val(a),t.find(".label-title .text").text(a),b.trigger("wpformsFieldAdd",[n,w]),wpf.initTooltips(),i&&(v.dropdownField.helpers.convertClassicToModern(m),v.dropdownField.helpers.convertClassicToModern(n)),v.fieldChoiceUpdate(t.data("field-type"),n),h.post(wpforms_builder.ajax_url,{form_id:g.formID,nonce:wpforms_builder.nonce,action:"wpforms_builder_increase_next_field_id"})}},cancel:{text:wpforms_builder.cancel}}})},addEntryPreviewAndPageBreakFields:function(e,t){v.fieldAdd("entry-preview",e).done(function(e){var i=e.data.field.id;v.fieldAdd("pagebreak",{position:t+1}).done(function(){v.lockEntryPreviewFieldsPosition(i)})})},lockEntryPreviewFieldsPosition:function(e){var i=h("#wpforms-field-"+e),t=i.prevAll(".wpforms-field-pagebreak:not(.wpforms-pagebreak-bottom)").first(),o=i.nextAll(".wpforms-field-pagebreak").first().data("field-id"),e=h("#wpforms-field-option-"+o).find(".wpforms-field-option-row-prev_toggle"),o=e.find("input");i.addClass("wpforms-field-not-draggable"),t.addClass("wpforms-field-not-draggable wpforms-field-entry-preview-not-deleted"),o.attr("checked","checked").trigger("change"),e.addClass("wpforms-entry-preview-block"),h("#wpforms-add-fields-entry-preview").removeClass("wpforms-entry-preview-adding")},isEntryPreviewFieldRequiresPageBreakBefore:function(e,i){var i=e.slice(0,i).filter(".wpforms-field-pagebreak,.wpforms-field-entry-preview"),t=!0;return i.length&&h(i.get().reverse()).each(function(){var e=h(this);return!e.hasClass("wpforms-field-entry-preview")&&(e.hasClass("wpforms-field-pagebreak")&&!e.hasClass("wpforms-field-stick")?t=!1:void 0)}),t},isEntryPreviewFieldRequiresPageBreakAfter:function(e,i){var i=e.slice(i).filter(".wpforms-field-pagebreak,.wpforms-field-entry-preview"),t=Boolean(i.length);return i.length&&i.each(function(){var e=h(this);return!e.hasClass("wpforms-field-entry-preview")&&(e.hasClass("wpforms-field-pagebreak")?t=!1:void 0)}),t},fieldAdd:function(n,s){var e=h("#wpforms-add-fields-"+n);if(!(e.hasClass("upgrade-modal")||e.hasClass("education-modal")||e.hasClass("warning-modal")))if(-1===h.inArray(n,["captcha_hcaptcha","captcha_recaptcha","captcha_none"])){if(l=!0,v.disableDragAndDrop(),!v.isUncheckedEntryPreviewField(n,s)){s=h.extend({},{position:"bottom",placeholder:!1,scroll:!0,defaults:!1},s);e={action:"wpforms_new_field_"+n,id:g.formID,type:n,defaults:s.defaults,nonce:wpforms_builder.nonce};return h.post(wpforms_builder.ajax_url,e,function(e){var i,t,o,r,a;e.success?(i=h(".wpforms-field").length,t=h("#wpforms-panel-fields .wpforms-panel-content-wrap"),o=h(".wpforms-field").last(),a=h(e.data.preview),r=h(e.data.options),l=!1,a.css("display","none"),s.placeholder&&s.placeholder.remove(),"bottom"===s.position?o.length&&o.hasClass("wpforms-field-stick")?(h(".wpforms-field-wrap").children(":eq("+(i-1)+")").before(a),h(".wpforms-field-options").children(":eq("+(i-1)+")").before(r)):(h(".wpforms-field-wrap").append(a),h(".wpforms-field-options").append(r)):"top"===s.position?(h(".wpforms-field-wrap").prepend(a),h(".wpforms-field-options").prepend(r)):s.position===i&&o.length&&o.hasClass("wpforms-field-stick")?(h(".wpforms-field-wrap").children(":eq("+(i-1)+")").before(a),h(".wpforms-field-options").children(":eq("+(i-1)+")").before(r)):h(".wpforms-field-wrap").find(".wpforms-field").eq(s.position).length?(h(".wpforms-field-wrap").find(".wpforms-field").eq(s.position).before(a),h(".wpforms-field-options").find(".wpforms-field-option").eq(s.position).before(r)):(h(".wpforms-field-wrap").append(a),h(".wpforms-field-options").append(r)),a.fadeIn(),b.find(".no-fields, .no-fields-preview").remove(),b.find(".wpforms-field-submit").show(),s.scroll&&s.position.length&&(r=t.scrollTop(),a=a.position().top,t.animate({scrollTop:"bottom"===s.position?r<a?a-r:a+r:0},1e3)),h("#wpforms-field-id").val(e.data.field.id+1),wpf.initTooltips(),v.loadColorPickers(),v.toggleAllOptionGroups(),b.trigger("wpformsFieldAdd",[e.data.field.id,n])):console.log(e)}).fail(function(e,i,t){l=!1,console.log(e.responseText)}).always(function(){b.find(".wpforms-add-fields .wpforms-add-fields-button").prop("disabled",!1),l||v.enableDragAndDrop()})}v.addEntryPreviewField(n,s)}else v.captchaUpdate()},captchaUpdate:function(){var e={action:"wpforms_update_field_captcha",id:g.formID,nonce:wpforms_builder.nonce};return h.post(wpforms_builder.ajax_url,e,function(e){var i,t,o;e.success?(i={title:!1,content:!1,icon:"fa fa-exclamation-circle",type:"orange",boxWidth:"450px",buttons:{confirm:{text:wpforms_builder.ok,btnClass:"btn-confirm",keys:["enter"]}}},t=h("#wpforms-panel-field-settings-recaptcha"),o=e.data.current,t.data("provider",e.data.provider),"configured_not_enabled"!==o&&"configured_enabled"!==o||(o=t.prop("checked")?"configured_enabled":"configured_not_enabled",i.buttons.confirm.action=function(){t.prop("checked","configured_not_enabled"===o).trigger("change")}),i.title=e.data.cases[o].title,i.content=e.data.cases[o].content,e.data.cases[o].cancel&&(i.buttons.cancel={text:wpforms_builder.cancel,keys:["esc"]}),h.confirm(i)):console.log(e)}).fail(function(e,i,t){console.log(e.responseText)})},disableDragAndDrop:function(){p.$addFieldsButtons.filter(".ui-draggable").draggable("disable"),p.$sortableFieldsWrap.filter(".ui-sortable").sortable("disable")},enableDragAndDrop:function(){p.$addFieldsButtons.filter(".ui-draggable").draggable("enable"),p.$sortableFieldsWrap.filter(".ui-sortable").sortable("enable")},fieldSortable:function(){var t,o,r,a,n,s=h(".wpforms-field-options"),l=!1,d=h("#wpforms-panel-fields .wpforms-panel-content-wrap"),f=!1;p.$sortableFieldsWrap.sortable({items:"> .wpforms-field:not(.wpforms-field-stick):not(.no-fields-preview)",axis:"y",delay:100,opacity:.75,cursor:"move",start:function(e,i){t=i.item.index(),r=s[0].children[t]},stop:function(e,i){o=i.item.index(),a=s[0].children[o],t<o?h(a).after(r):h(a).before(r),b.trigger("wpformsFieldMove",i),l=!1},over:function(e,i){var t=i.item.first();t.addClass("wpforms-field-dragging"),t.hasClass("wpforms-field-drag")&&(i=h(".wpforms-field").outerWidth()||p.$sortableFieldsWrap.find(".no-fields-preview").outerWidth(),t.addClass("wpforms-field-drag-over").removeClass("wpforms-field-drag-out").css("width",i).css("height","auto"))},out:function(e,i){var t=i.item.first();t.removeClass("wpforms-field-dragging"),l||(i=t.attr("data-original-width"),t.hasClass("wpforms-field-drag")&&t.addClass("wpforms-field-drag-out").removeClass("wpforms-field-drag-over").css({width:i,left:"",top:""})),t.css({top:"",left:"","z-index":""})},receive:function(e,i){l=!0;var t=h(this).data("ui-sortable").currentItem.index(),o=i.helper,i=o.attr("data-field-type");o.addClass("wpforms-field-drag-over wpforms-field-drag-pending").removeClass("wpforms-field-drag-out").css("width","100%"),o.append(g.spinnerInline),b.find(".wpforms-add-fields .wpforms-add-fields-button").prop("disabled",!0),b.find(".no-fields-preview").remove(),v.fieldAdd(i,{position:t,placeholder:o})},sort:function(e,i){if(!f){var t,o=e.clientY,r=d.offset(),a=d.height(),e=r.top+a;if(o>r.top&&o<r.top+50)t="-=";else{if(!(e-50<o&&o<e))return;t="+="}f=!0,d.animate({scrollTop:t+a/3+"px"},800,function(){f=!1})}},cancel:".wpforms-field-not-draggable"}),h(".wpforms-field-not-draggable, .wpforms-field-stick").draggable({revert:!0,axis:"y",delay:100,opacity:.75,cursor:"move",start:function(e,i){n=i.position.top},drag:function(e,i){if(15<Math.abs(i.position.top)-Math.abs(n))return v.youCantReorderFieldPopup(),!1}}),h(".wpforms-add-fields-button").not(".not-draggable").not(".warning-modal").not(".education-modal").draggable({connectToSortable:".wpforms-field-wrap",delay:200,helper:function(){var e=h(this),i=e.outerWidth(),t=e.html(),e=e.data("field-type");return h('<div class="wpforms-field-drag-out wpforms-field-drag">').html(t).css("width",i).attr({"data-original-width":i,"data-field-type":e})},revert:"invalid",cancel:!1,scroll:!1,opacity:.75,containment:"document"}),p.$addFieldsButtons.draggable({connectToSortable:".wpforms-field-wrap",delay:200,helper:function(){var e=h(this),i=e.outerWidth(),t=e.html(),e=e.data("field-type");return h('<div class="wpforms-field-drag-out wpforms-field-drag">').html(t).css("width",i).attr({"data-original-width":i,"data-field-type":e})},revert:"invalid",cancel:!1,scroll:!1,opacity:.75,containment:"document"})},fieldChoiceAdd:function(e,i){e.preventDefault();var t=h(i),o=t.parent(),r=o.find("input.default").is(":checked"),a=t.closest(".wpforms-field-option-row-choices").data("field-id"),e=o.parent().attr("data-next-id"),i=o.parent().data("field-type"),t=o.clone().insertAfter(o);t.attr("data-key",e),t.find("input.label").val("").attr("name","fields["+a+"][choices]["+e+"][label]"),t.find("input.value").val("").attr("name","fields["+a+"][choices]["+e+"][value]"),t.find("input.source").val("").attr("name","fields["+a+"][choices]["+e+"][image]"),t.find("input.default").attr("name","fields["+a+"][choices]["+e+"][default]").prop("checked",!1),t.find(".preview").empty(),t.find(".wpforms-image-upload-add").show(),t.find(".wpforms-money-input").trigger("focusout"),!0===r&&o.find("input.default").prop("checked",!0),e++,o.parent().attr("data-next-id",e),b.trigger("wpformsFieldChoiceAdd"),v.fieldChoiceUpdate(i,a)},fieldChoiceDelete:function(e,i){e.preventDefault();var t,o=h(i),r=o.parent().parent(),e=r.find("li").length,i={id:r.data("field-id"),choiceId:o.closest("li").data("key"),message:"<strong>"+wpforms_builder.delete_choice_confirm+"</strong>",trigger:!1};b.trigger("wpformsBeforeFieldDeleteAlert",[i]),1===e?v.fieldChoiceDeleteAlert():(t=function(){o.parent().remove(),v.fieldChoiceUpdate(r.data("field-type"),r.data("field-id")),b.trigger("wpformsFieldChoiceDelete")},i.trigger?h.confirm({title:!1,content:i.message,icon:"fa fa-exclamation-circle",type:"orange",buttons:{confirm:{text:wpforms_builder.ok,btnClass:"btn-confirm",keys:["enter"],action:function(){t()}},cancel:{text:wpforms_builder.cancel}}}):t())},fieldChoiceDeleteAlert:function(){h.alert({title:!1,content:wpforms_builder.error_choice,icon:"fa fa-info-circle",type:"blue",buttons:{confirm:{text:wpforms_builder.ok,btnClass:"btn-confirm",keys:["enter"]}}})},fieldChoiceSortable:function(o,e){h(e=void 0!==e?e:".wpforms-field-option-"+o+" .wpforms-field-option-row-choices ul").sortable({items:"li",axis:"y",delay:100,opacity:.6,handle:".move",stop:function(e,i){var t=i.item.parent().data("field-id");v.fieldChoiceUpdate(o,t),b.trigger("wpformsFieldChoiceMove",i)},update:function(e,i){}})},fieldChoiceLabel:function(e,i){var t=void 0!==e.settings.choices[i].label&&0!==e.settings.choices[i].label.length?wpf.sanitizeHTML(e.settings.choices[i].label):wpforms_builder.choice_empty_label_tpl.replace("{number}",i);return e.settings.show_price_after_labels&&(t+=" - "+wpf.amountFormatCurrency(e.settings.choices[i].value)),t},fieldChoiceUpdate:function(a,e){var n=h("#wpforms-field-"+e+" .primary-input");if("radio"===a||"checkbox"===a||"payment-multiple"===a||"payment-checkbox"===a){var i=wpf.getField(e),t=wpf.getChoicesOrder(e),o={},r=t.slice(0,20),s=wp.template("wpforms-field-preview-checkbox-radio-payment-multiple"),l={settings:i,order:r,type:"radio"};return r.forEach(function(e){o[e]=i.choices[e]}),i.choices=o,"checkbox"!==a&&"payment-checkbox"!==a||(l.type="checkbox"),h("#wpforms-field-"+e).find("ul.primary-input").replaceWith(s(l)),void v.firstNChoicesAlert(e,t.length)}var d=v.dropdownField.helpers.isModernSelect(n),f="";"select"===(a="payment-select"===(a="payment-checkbox"===(a="payment-multiple"===a?"radio":a)?"checkbox":a)?"select":a)?(f='<option value="{label}">{label}</option>',n.find("option").not(".placeholder").remove()):"radio"!==a&&"checkbox"!==a&&"gdpr-checkbox"!==a||(a="gdpr-checkbox"===a?"checkbox":a,n.find("li").remove(),f='<li><input type="'+a+'" disabled>{label}</li>');var r=h("#wpforms-field-option-row-"+e+"-choices .choices-list"),s=r.find("li").slice(0,20),l=!!r.find("input.default:checked").length,p=[],c=h("#wpforms-field-option-"+e+"-show_price_after_labels").prop("checked");s.each(function(){var e,i=h(this),t=wpf.sanitizeHTML(i.find("input.label").val().trim()),o=i.find("input.value").val(),r=i.find("input.default").is(":checked"),i=i.data("key"),t=""!==t?t:wpforms_builder.choice_empty_label_tpl.replace("{number}",i);if(t+=c&&o?" - "+wpf.amountFormatCurrency(o):"",d?p.push({value:t,label:t}):(e=h(f.replace(/{label}/g,t)),n.append(e)),!0===r)switch(a){case"select":d?p[p.length-1].selected=!0:e.prop("selected","true");break;case"radio":case"checkbox":e.find("input").prop("checked","true")}}),d&&(t=n.prop("multiple")?"input.choices__input":".choices__inner .choices__placeholder",r=v.dropdownField.helpers.getInstance(n),s=h("#wpforms-field-option-"+e+"-dynamic_choices").val(),r.removeActiveItems(),r.setChoices(p,"value","label",!0),v.dropdownField.helpers.update(e,s),n.closest(".choices").find(t).toggleClass("wpforms-hidden",l))},fieldChoiceBulkAddToggle:function(e){var i=h(e),e=i.closest("label");if(i.hasClass("bulk-add-showing")){var t=e.next(".bulk-add-display");t.slideUp(400,function(){t.remove()}),i.find("span").text(wpforms_builder.bulk_add_show)}else{var o,r='<div class="bulk-add-display unfoldable-cont">';for(o in r+='<p class="heading wpforms-clear">'+wpforms_builder.bulk_add_heading+' <a href="#" class="toggle-bulk-add-presets">'+wpforms_builder.bulk_add_presets_show+"</a></p>",r+="<ul>",wpforms_preset_choices)r+='<li><a href="#" data-preset="'+o+'" class="bulk-add-preset-insert">'+wpforms_preset_choices[o].name+"</a></li>";r+="</ul>",r+='<textarea placeholder="'+wpforms_builder.bulk_add_placeholder+'"></textarea>',r+='<button class="bulk-add-insert wpforms-btn wpforms-btn-sm wpforms-btn-blue">'+wpforms_builder.bulk_add_button+"</button>",e.after(r+="</div>"),e.next(".bulk-add-display").slideDown(400,function(){h(this).find("textarea").focus()}),i.find("span").text(wpforms_builder.bulk_add_hide)}i.toggleClass("bulk-add-showing")},fieldChoiceBulkAddInsert:function(e){var i,t,o,r=h(e),a=r.closest(".wpforms-field-option-row"),n=a.find("textarea"),s=a.find(".choices-list"),l=s.find("li:first-of-type").clone().wrap("<div>").parent(),d=a.data("field-id"),e=s.data("field-type"),f=Number(s.attr("data-next-id")),p=n.val().split("\n"),c="";for(t in r.prop("disabled",!0).html(r.html()+" "+g.spinner),l.find("input.value,input.label").attr("value",""),i=l.html(),p)p.hasOwnProperty(t)&&(o=wpf.sanitizeHTML(p[t]).trim().replace(/"/g,"&quot;"),c+=i.replace(/\[choices\]\[(\d+)\]/g,"[choices]["+f+"]").replace(/data-key="(\d+)"/g,'data-key="'+f+'"').replace(/value="" class="label"/g,'value="'+o+'" class="label"').replace(/class="label" type="text" value=""/g,'class="label" type="text" value="'+o+'"'),f++);s.attr("data-next-id",f).append(c),v.fieldChoiceUpdate(e,d),b.trigger("wpformsFieldChoiceAdd"),v.fieldChoiceBulkAddToggle(a.find(".toggle-bulk-add-display"))},fieldTabToggle:function(e){var i;h(".wpforms-tab a").removeClass("active"),h(".wpforms-field, .wpforms-title-desc").removeClass("active"),"add-fields"===e?(h("#add-fields a").addClass("active"),h(".wpforms-field-options").hide(),h(".wpforms-add-fields").show()):(h("#field-options a").addClass("active"),"field-options"===e?((i=h(".wpforms-field").first()).addClass("active"),e=i.data("field-id")):h("#wpforms-field-"+e).addClass("active"),h(".wpforms-field-option").hide(),h("#wpforms-field-option-"+e).show(),h(".wpforms-add-fields").hide(),h(".wpforms-field-options").show())},fieldPagebreakAdd:function(e,i,t){"pagebreak"===t&&(g.pagebreakTop?g.pagebreakBottom||(g.pagebreakBottom=!0,v.fieldAdd("pagebreak",{position:"bottom",scroll:!1,defaults:{position:"bottom"}}).done(function(e){g.pagebreakBottom=e.data.field.id;var i=h("#wpforms-field-"+e.data.field.id);h("#wpforms-field-option-"+e.data.field.id).find(".wpforms-field-option-group").addClass("wpforms-pagebreak-bottom"),i.addClass("wpforms-field-stick wpforms-pagebreak-bottom")})):(g.pagebreakTop=!0,v.fieldAdd("pagebreak",{position:"top",scroll:!1,defaults:{position:"top",nav_align:"left"}}).done(function(e){g.pagebreakTop=e.data.field.id;var i=h("#wpforms-field-"+e.data.field.id);h("#wpforms-field-option-"+e.data.field.id).find(".wpforms-field-option-group").addClass("wpforms-pagebreak-top"),i.addClass("wpforms-field-stick wpforms-pagebreak-top")})))},fieldPagebreakDelete:function(e,i,t){var o,r,a;"pagebreak"===t&&(h(".wpforms-field-pagebreak").not(".wpforms-pagebreak-top, .wpforms-pagebreak-bottom").length||(r=(o=(a=h(".wpforms-preview-wrap")).find(".wpforms-pagebreak-top")).data("field-id"),a=(t=a.find(".wpforms-pagebreak-bottom")).data("field-id"),o.remove(),h("#wpforms-field-option-"+r).remove(),g.pagebreakTop=!1,t.remove(),h("#wpforms-field-option-"+a).remove(),g.pagebreakBottom=!1))},fieldPageBreakInitDisplayPrevious:function(e){var i=e.data("field-id"),t=h("#wpforms-field-option-row-"+i+"-prev_toggle"),o=h("#wpforms-field-option-row-"+i+"-prev"),i=e.find(".wpforms-pagebreak-prev");0<e.prevAll(".wpforms-field-pagebreak.wpforms-pagebreak-normal").length?(t.removeClass("hidden"),o.removeClass("hidden"),t.find("input").is(":checked")&&i.removeClass("wpforms-hidden").text(o.find("input").val())):(t.addClass("hidden"),o.addClass("hidden"),i.addClass("wpforms-hidden"))},fieldDynamicChoiceToggle:function(e){var i=h(e),t=i.parent(),o=i.val(),r=t.data("field-id"),a=h("#wpforms-field-option-"+r).find(".wpforms-field-option-hidden-type").val(),n=h("#wpforms-field-"+r),s=h("#wpforms-field-option-row-"+r+"-choices"),e=h("#wpforms-field-option-"+r+"-choices_images");if(v.fieldDynamicChoiceToggleImageChoices(),b.trigger("wpformsFieldDynamicChoiceToggle"),wpf.fieldOptionLoading(t),h("#wpforms-field-option-row-"+r+"-dynamic_post_type").remove(),h("#wpforms-field-option-row-"+r+"-dynamic_taxonomy").remove(),""===o){if(e.removeClass("wpforms-hidden"),s.find(".toggle-bulk-add-display").removeClass("wpforms-hidden"),h("#wpforms-field-"+r).find(".wpforms-alert").remove(),-1<["checkbox","radio","payment-multiple","payment-checkbox"].indexOf(a))return v.fieldChoiceUpdate(a,r),s.find("ul").removeClass("wpforms-hidden"),s.find(".wpforms-alert").addClass("wpforms-hidden"),void wpf.fieldOptionLoading(t,!0);var l,d=[],f=n.find(".primary-input");if(h("#wpforms-field-option-row-"+r+"-choices li").each(function(){var e=h(this);d.push({label:wpf.sanitizeHTML(e.find(".label").val()),selected:e.find(".default").is(":checked")})}),n.hasClass("wpforms-field-select")){var i=v.dropdownField.helpers.isModernSelect(f),p="";if(f.find("option").not(".placeholder").remove(),i&&d.length)v.dropdownField.helpers.update(r,!1);else for(l in d)p="<option",p+=d[l].selected?" selected>":">",p+=d[l].label+"</option>",f.append(p)}else for(l in a="radio",n.hasClass("wpforms-field-checkbox")&&(a="checkbox"),f.empty(),d)p='<li><input type="'+a+'" disabled',p+=d[l].selected?" selected>":">",p+=d[l].label+"</li>",f.append(p);s.find("ul").removeClass("wpforms-hidden"),s.find(".wpforms-alert").addClass("wpforms-hidden"),wpf.fieldOptionLoading(t,!0)}else{e.addClass("wpforms-hidden"),s.find(".toggle-bulk-add-display").addClass("wpforms-hidden");s={type:o,field_id:r,action:"wpforms_builder_dynamic_choices",nonce:wpforms_builder.nonce};h.post(wpforms_builder.ajax_url,s,function(e){e.success?t.after(e.data.markup):console.log(e),wpf.fieldOptionLoading(t,!0),wpf.initTooltips(),h("#wpforms-field-option-"+r+"-dynamic_"+o).find("option:first").prop("selected",!0),h("#wpforms-field-option-"+r+"-dynamic_"+o).trigger("change")}).fail(function(e,i,t){console.log(e.responseText)})}},fieldDynamicChoiceSource:function(e){var i=h(e),t=i.parent(),o=i.val(),r=t.data("field-id"),e=h("#wpforms-builder-form").data("id"),a=h("#wpforms-field-option-row-"+r+"-choices"),n=h("#wpforms-field-"+r),i=h("#wpforms-field-option-"+r+"-dynamic_choices option:selected").val(),s=20;wpf.fieldOptionLoading(t);e={type:i,source:o,field_id:r,form_id:e,action:"wpforms_builder_dynamic_source",nonce:wpforms_builder.nonce};h.post(wpforms_builder.ajax_url,e,function(e){return e.success?(a.find(".dynamic-name").text(e.data.source_name),a.find(".dynamic-type").text(e.data.type_name),a.find("ul").addClass("wpforms-hidden"),a.find(".wpforms-alert").removeClass("wpforms-hidden"),v.fieldDynamicChoiceSourceItems(n,e.data.items),n.hasClass("wpforms-field-select")&&(s=200),Number(e.data.total)>s&&(i=(i=(i=(i=(i=wpforms_builder.dynamic_choice_limit).replace("{source}",e.data.source_name)).replace("{type}",e.data.type_name)).replace("{limit}",s)).replace("{total}",e.data.total),h.alert({title:wpforms_builder.heads_up,content:i,icon:"fa fa-info-circle",type:"blue",buttons:{confirm:{text:wpforms_builder.ok,btnClass:"btn-confirm",keys:["enter"]}}})),v.firstNChoicesAlert(r,e.data.total)):console.log(e),void wpf.fieldOptionLoading(t,!0);var i}).fail(function(e,i,t){console.log(e.responseText)})},fieldDynamicChoiceSourceItems:function(e,i){var t=e.find(".primary-input"),o=0;if(e.hasClass("wpforms-field-select"))v.dropdownField.helpers.isModernSelect(t)?v.fieldDynamicChoiceSourceForModernSelect(t,i):v.fieldDynamicChoiceSourceForClassicSelect(t,i);else{var r="radio";for(o in e.hasClass("wpforms-field-checkbox")&&(r="checkbox"),t.empty(),i)t.append('<li><input type="'+r+'" disabled> '+wpf.sanitizeHTML(i[o])+"</li>")}},fieldDynamicChoiceSourceForModernSelect:function(e,i){var t=v.dropdownField.helpers.getInstance(e),o=e.closest(".wpforms-field").data().fieldId;t.destroy(),v.dropdownField.helpers.updatePlaceholderChoice(t,o),v.fieldDynamicChoiceSourceForClassicSelect(e,i),v.dropdownField.events.choicesInit(e)},fieldDynamicChoiceSourceForClassicSelect:function(e,i){var t=0,o=i.length;for(e.find("option").not(".placeholder").remove();t<o;t++){var r=wpf.sanitizeHTML(i[t]);e.append('<option value="'+r+'">'+r+"</option>")}},fieldDynamicChoiceToggleImageChoices:function(){h("#wpforms-builder .wpforms-field-options .wpforms-field-option").each(function(e,i){var t=h(i),o=t.find(".wpforms-field-option-row-dynamic_choices select").val(),i=void 0!==o&&""!==o,o=t.find(".wpforms-field-option-row-choices_images input").is(":checked");t.find(".wpforms-field-option-row-choices_images").toggleClass("wpforms-hidden",i),o&&!i||t.find(".wpforms-field-option-row-choices_images_style").addClass("wpforms-hidden")})},firstNChoicesAlert:function(e,i){var t=wp.template("wpforms-choices-limit-message"),o={total:i},e=h("#wpforms-field-"+e);e.hasClass("wpforms-field-select")||(e.find(".wpforms-alert-dynamic").remove(),20<i&&e.find(".primary-input").after(t(o)))},fieldLayoutSelectorToggle:function(e){var i=h(e),e=i.closest("label"),t={"layout-1":[{class:"one-half",data:"wpforms-one-half wpforms-first"},{class:"one-half",data:"wpforms-one-half"}],"layout-2":[{class:"one-third",data:"wpforms-one-third wpforms-first"},{class:"one-third",data:"wpforms-one-third"},{class:"one-third",data:"wpforms-one-third"}],"layout-3":[{class:"one-fourth",data:"wpforms-one-fourth wpforms-first"},{class:"one-fourth",data:"wpforms-one-fourth"},{class:"one-fourth",data:"wpforms-one-fourth"},{class:"one-fourth",data:"wpforms-one-fourth"}],"layout-4":[{class:"one-third",data:"wpforms-one-third wpforms-first"},{class:"two-third",data:"wpforms-two-thirds"}],"layout-5":[{class:"two-third",data:"wpforms-two-thirds wpforms-first"},{class:"one-third",data:"wpforms-one-third"}],"layout-6":[{class:"one-fourth",data:"wpforms-one-fourth wpforms-first"},{class:"one-fourth",data:"wpforms-one-fourth"},{class:"two-fourth",data:"wpforms-two-fourths"}],"layout-7":[{class:"two-fourth",data:"wpforms-two-fourths wpforms-first"},{class:"one-fourth",data:"wpforms-one-fourth"},{class:"one-fourth",data:"wpforms-one-fourth"}],"layout-8":[{class:"one-fourth",data:"wpforms-one-fourth wpforms-first"},{class:"two-fourth",data:"wpforms-two-fourths"},{class:"one-fourth",data:"wpforms-one-fourth"}]};if(i.hasClass("layout-selector-showing")){var o=e.next(".layout-selector-display");o.slideUp(400,function(){o.remove()}),i.find("span").text(wpforms_builder.layout_selector_show)}else{var r,a='<div class="layout-selector-display unfoldable-cont">';for(r in a+='<p class="heading">'+wpforms_builder.layout_selector_layout+"</p>",a+='<div class="layouts">',t){var n,s=t[r];for(n in a+='<div class="layout-selector-display-layout">',s)a+='<span class="'+s[n].class+'" data-classes="'+s[n].data+'"></span>';a+="</div>"}e.after(a+="</div></div>"),e.next(".layout-selector-display").slideDown(),i.find("span").text(wpforms_builder.layout_selector_hide)}i.toggleClass("layout-selector-showing")},fieldLayoutSelectorLayout:function(e){e=h(e),e.closest("label");e.parent().find(".layout-selector-display-layout").not(e).remove(),e.parent().find(".heading").text(wpforms_builder.layout_selector_column),e.toggleClass("layout-selector-display-layout layout-selector-display-columns")},fieldLayoutSelectorInsert:function(e){var i=h(e),t=i.closest(".layout-selector-display"),o=t.parent(),e=o.find("label"),o=o.find("input[type=text]"),i=i.data("classes");o.val()&&(i=" "+i),o.insertAtCaret(i),t.slideUp(400,function(){t.remove()}),e.find(".toggle-layout-selector-display").removeClass("layout-selector-showing"),e.find(".toggle-layout-selector-display span").text(wpforms_builder.layout_selector_show)},bindUIActionsSettings:function(){b.on("click",".wpforms-title-desc, .wpforms-field-submit-button, .wpforms-center-form-name",function(e){e.preventDefault(),v.panelSwitch("settings"),(h(this).hasClass("wpforms-center-form-name")||h(this).hasClass("wpforms-title-desc"))&&setTimeout(function(){h("#wpforms-panel-field-settings-form_title").focus()},300)}),b.on("click",".wpforms-field-pagebreak-last button",function(e){e.preventDefault(),v.panelSwitch("settings"),h("#wpforms-panel-field-settings-pagebreak_prev").focus()}),b.on("input","#wpforms-panel-field-settings-pagebreak_prev",function(){h(".wpforms-field-pagebreak-last button").text(h(this).val())}),b.on("input","#wpforms-panel-field-settings-form_title, #wpforms-setup-name",function(){var e=h.trim(h(this).val());h(".wpforms-preview .wpforms-form-name").text(e),h(".wpforms-center-form-name.wpforms-form-name").text(e),v.trimFormTitle()}),b.on("input","#wpforms-panel-field-settings-form_desc",function(){h(".wpforms-form-desc").text(h(this).val())}),b.on("input","#wpforms-panel-field-settings-submit_text",function(){h(".wpforms-field-submit input[type=submit]").val(h(this).val())}),b.on("change","#wpforms-panel-field-settings-recaptcha",function(){v.captchaToggle()}),b.on("change",".wpforms-panel-field-confirmations-type",function(){v.confirmationFieldsToggle(h(this))}),b.on("change",".wpforms-panel-field-confirmations-message_entry_preview",v.confirmationEntryPreviewToggle),b.on("change","#wpforms-panel-field-settings-notification_enable",function(){v.notificationToggle()}),b.on("click",".wpforms-builder-settings-block-add",function(e){e.preventDefault(),wpforms_builder.pro&&v.settingsBlockAdd(h(this))}),b.on("click",".wpforms-builder-settings-block-edit",function(e){e.preventDefault();e=h(this);e.parents(".wpforms-builder-settings-block-header").find(".wpforms-builder-settings-block-name").hasClass("editing")?v.settingsBlockNameEditingHide(e):v.settingsBlockNameEditingShow(e)}),b.on("blur",".wpforms-builder-settings-block-name-edit input",function(e){h(e.relatedTarget).hasClass("wpforms-builder-settings-block-edit")||v.settingsBlockNameEditingHide(h(this))}),b.on("keypress",".wpforms-builder-settings-block-name-edit input",function(e){13===e.keyCode&&(v.settingsBlockNameEditingHide(h(this)),e.preventDefault())}),b.on("click",".wpforms-builder-settings-block-clone",function(e){e.preventDefault(),v.settingsBlockPanelClone(h(this))}),b.on("click",".wpforms-builder-settings-block-toggle",function(e){e.preventDefault(),v.settingsBlockPanelToggle(h(this))}),b.on("click",".wpforms-builder-settings-block-delete",function(e){e.preventDefault(),v.settingsBlockDelete(h(this))})},captchaToggle:function(){var e=b.find(".wpforms-field-recaptcha"),i=h("#wpforms-panel-field-settings-recaptcha"),t=(t=i.data("provider"))||"recaptcha";e.length&&(i.is(":checked")?e.show().toggleClass("is-recaptcha","recaptcha"===t):e.hide())},confirmationsSetup:function(){h(".wpforms-panel-field-confirmations-type").each(function(){v.confirmationFieldsToggle(h(this))}),h(".wpforms-panel-field-confirmations-message").each(function(){"undefined"!=typeof tinymce&&void 0!==wp.editor&&wp.editor.initialize(h(this).attr("id"),g.tinymceDefaults)}),b.on("focusout",".wpforms-panel-field-confirmations-redirect",function(e){var i=h(this),t=i.val().trim();i.val(t),wpf.isURL(t)||""===t||h.confirm({title:wpforms_builder.heads_up,content:wpforms_builder.redirect_url_field_error,icon:"fa fa-exclamation-circle",type:"orange",buttons:{confirm:{text:wpforms_builder.ok,btnClass:"btn-confirm",keys:["enter"],action:function(){i.focus()}}}})})},confirmationFieldsToggle:function(e){var i,t;e.length&&(i=e.val(),(t=e.closest(".wpforms-builder-settings-block-content")).find(".wpforms-panel-field").not(e.parent()).not(".wpforms-conditionals-enable-toggle").hide(),t.find(".wpforms-panel-field-confirmations-"+i).closest(".wpforms-panel-field").show(),"message"===i&&(t.find(".wpforms-panel-field-confirmations-message_scroll").closest(".wpforms-panel-field").show(),t.find(".wpforms-panel-field-confirmations-message_entry_preview").trigger("change").closest(".wpforms-panel-field").show()))},confirmationEntryPreviewToggle:function(){var e=h(this),i=e.closest(".wpforms-builder-settings-block-content").find(".wpforms-panel-field-confirmations-message_entry_preview_style").parent();e.is(":checked")?i.show():i.hide()},notificationToggle:function(){var e=h("#wpforms-panel-field-settings-notification_enable"),i=e.closest(".wpforms-panel-content-section").find(".wpforms-builder-settings-block"),e=e.is(":checked");h(".wpforms-notifications-add").toggleClass("wpforms-hidden",!e),e?i.show():i.hide()},notificationsByStatusAlerts:function(){b.on("change",".wpforms-panel-content-section-notifications .wpforms-notification-by-status-alert",function(e){var i,t,o=h(this);o.prop("checked")&&(t="",t=0===(i=h(".wpforms-radio-group-"+o.attr("data-radio-group")+":checked:not(#"+o.attr("id")+")")).length?(t=wpforms_builder.notification_by_status_enable_alert).replace(/%s/g,o.data("provider-title")):(t=(t=wpforms_builder.notification_by_status_switch_alert).replace(/%2\$s/g,i.data("provider-title"))).replace(/%1\$s/g,o.data("provider-title")),h.confirm({title:wpforms_builder.heads_up,content:t,icon:"fa fa-exclamation-circle",type:"orange",buttons:{confirm:{text:wpforms_builder.ok,btnClass:"btn-confirm"}}}))})},settingsBlockAdd:function(s){var l=Number(s.attr("data-next-id")),d=s.closest(".wpforms-panel-content-section").data("panel"),f=s.data("block-type"),e=wpforms_builder[f+"_prompt"],i='<input autofocus="" type="text" id="settings-block-name" placeholder="'+wpforms_builder[f+"_ph"]+'">',t='<p class="error">'+wpforms_builder[f+"_error"]+"</p>",o=h.confirm({container:b,title:!1,content:e+i+t,icon:"fa fa-info-circle",type:"blue",buttons:{confirm:{text:wpforms_builder.ok,btnClass:"btn-confirm",keys:["enter"],action:function(){var e=h.trim(this.$content.find("input#settings-block-name").val()),i=this.$content.find(".error");if(""===e)return i.show(),!1;var t=s.closest(".wpforms-panel-content-section").find(".wpforms-builder-settings-block").first();wpf.restoreTooltips(t);var o=t.clone(),i=t.data("block-id");o.attr("data-block-id",l),o.find(".wpforms-builder-settings-block-header span").text(e),o.find("input, textarea, select").not(".from-name input").not(".from-email input").each(function(e,i){var t=h(this);t.attr("name")&&(t.val("").attr("name",t.attr("name").replace(/\[(\d+)\]/,"["+l+"]")),t.is("select")?(t.find("option").prop("selected",!1).attr("selected",!1),t.find("option:first").prop("selected",!0).attr("selected","selected")):"checkbox"===t.attr("type")?t.prop("checked",!1).attr("checked",!1).val("1"):t.val("").attr("value",""))});var a="wpforms-panel-field-"+d+"-",n=a+i;o.find('[id^="'+n+'"], [for^="'+n+'"]').each(function(e,i){var t=h(this),o="LABEL"===t.prop("tagName")?"for":"id",r=t.attr(o).replace(new RegExp(n,"g"),a+l);t.attr(o,r)});var r=i+"-notification-by-status";o.find('[data-radio-group="'+r+'"]').each(function(e,i){h(this).removeClass("wpforms-radio-group-"+r).addClass("wpforms-radio-group-"+l+"-notification-by-status").attr("data-radio-group",l+"-notification-by-status")}),o.find(".wpforms-builder-settings-block-header input").val(e).attr("value",e),"notification"===f&&(o.find(".email-msg textarea").val("{all_fields}").attr("value","{all_fields}"),o.find(".email-recipient input").val("{admin_email}").attr("value","{admin_email}")),o.removeClass("wpforms-builder-settings-block-default"),"confirmation"===f&&(o.find(".wpforms-panel-field-tinymce").remove(),"undefined"!=typeof WPForms&&o.find(".wpforms-panel-field-confirmations-type-wrap").after(WPForms.Admin.Builder.Templates.get("wpforms-builder-confirmations-message-field")({id:l})));e=o.find(".wpforms-conditional-block");e.length&&"undefined"!=typeof WPForms&&e.html(WPForms.Admin.Builder.Templates.get("wpforms-builder-conditional-logic-toggle-field")({id:l,type:f,actions:JSON.stringify(o.find(".wpforms-panel-field-conditional_logic-checkbox").data("actions")),actionDesc:o.find(".wpforms-panel-field-conditional_logic-checkbox").data("action-desc")}));e=o.find(".wpforms-field-map-table");e.length&&e.each(function(e,i){var t=h(i);t.find("tr:not(:first-child)").remove();var o=t.find(".key input"),i=t.find(".field select"),t=i.data("name");o.attr("value",""),i.attr("name","").attr("data-name",t.replace(/\[(\d+)\]/,"["+l+"]"))}),o=(o=o.wrap("<div>").parent().html()).replace(/\[conditionals\]\[(\d+)\]\[(\d+)\]/g,"[conditionals][0][0]"),t.before(o);t=t.prev();"confirmation"===f&&v.confirmationFieldsToggle(h(".wpforms-panel-field-confirmations-type").first()),"undefined"!=typeof tinymce&&void 0!==wp.editor&&"confirmation"===f&&wp.editor.initialize("wpforms-panel-field-confirmations-message-"+l,g.tinymceDefaults),wpf.initTooltips(),b.trigger("wpformsSettingsBlockAdded",[t]),s.attr("data-next-id",l+1)}},cancel:{text:wpforms_builder.cancel}}});b.on("keypress","#settings-block-name",function(e){13===e.keyCode&&h(o.buttons.confirm.el).trigger("click")})},settingsBlockNameEditingShow:function(e){e=e.parents(".wpforms-builder-settings-block-header");e.find(".wpforms-builder-settings-block-name").addClass("editing").hide(),e.find(".wpforms-builder-settings-block-name-edit").addClass("active"),wpf.focusCaretToEnd(e.find("input"))},settingsBlockNameEditingHide:function(e){var i=e.parents(".wpforms-builder-settings-block-header"),t=i.find(".wpforms-builder-settings-block-name"),o=i.find(".wpforms-builder-settings-block-name-edit"),i=o.find("input").val().trim(),e=e.closest(".wpforms-builder-settings-block").data("block-type");i.length||(i=wpforms_builder[e+"_def_name"]),o.find("input").val(i),t.text(i),t.removeClass("editing").show(),o.removeClass("active")},settingsBlockPanelClone:function(e){var i=e.closest(".wpforms-panel-content-section").find(".wpforms-builder-settings-block-add"),t=e.closest(".wpforms-builder-settings-block"),o=t.find(".wpforms-builder-settings-block-content"),r=parseInt(i.attr("data-next-id"),10),a=t.data("block-type"),e=t.find(".wpforms-builder-settings-block-name").text().trim()+wpforms_builder[a+"_clone"],o=o.is(":hidden");wpf.restoreTooltips(t);var n=t.clone(!1,!0);v.settingsBlockUpdateState(o,r,a),n.data("block-id",r),n.find(".wpforms-builder-settings-block-header span").text(e),n.find(".wpforms-builder-settings-block-header input").val(e),n.removeClass("wpforms-builder-settings-block-default"),i.attr("data-next-id",r+1),n.find("input, textarea, select").each(function(){var e=h(this);e.attr("name")&&e.attr("name",e.attr("name").replace(/\[(\d+)\]/,"["+r+"]")),e.data("name")&&e.data("name",e.data("name").replace(/\[(\d+)\]/,"["+r+"]")),e.attr("class")&&e.attr("class",e.attr("class").replace(/-(\d+)/,"-"+r)),e.attr("data-radio-group")&&e.attr("data-radio-group",e.attr("data-radio-group").replace(/(\d+)-/,r+"-"))}),n.find("*").each(function(){var e=h(this);e.attr("id")&&e.attr("id",e.attr("id").replace(/-(\d+)/,"-"+r)),e.attr("for")&&e.attr("for",e.attr("for").replace(/-(\d+)-/,"-"+r+"-")),e.data("input-name")&&e.data("input-name",e.data("input-name").replace(/\[(\d+)\]/,"["+r+"]"))}),t.find("select").each(function(){var e=h(this).attr("name"),i=h(this).attr("name").replace(/\[(\d+)\]/,"["+r+"]");n.find('select[name="'+i+'"]').val(h(this).attr("name",e).val())}),n.css("display","none").insertBefore(t).show("fast",function(){wpf.initTooltips()})},settingsBlockPanelToggle:function(e){var i=e.closest(".wpforms-builder-settings-block"),t=i.data("block-id"),o=i.data("block-type"),r=i.find(".wpforms-builder-settings-block-content"),a=r.is(":visible");r.stop().slideToggle({duration:400,start:function(){v.settingsBlockUpdateState(a,t,o)},always:function(){r.is(":visible")?e.html('<i class="fa fa-chevron-circle-up"></i>'):e.html('<i class="fa fa-chevron-circle-down"></i>')}})},settingsBlockDelete:function(e){var i=e.closest(".wpforms-panel-content-section"),t=e.closest(".wpforms-builder-settings-block"),o=t.data("block-type");i.find(".wpforms-builder-settings-block").length<2||h.confirm({title:!1,content:wpforms_builder[o+"_delete"],icon:"fa fa-exclamation-circle",type:"orange",buttons:{confirm:{text:wpforms_builder.ok,btnClass:"btn-confirm",keys:["enter"],action:function(){var e=t.data("block-id"),i=t.data("block-type");h.post(wpforms_builder.ajax_url,{action:"wpforms_builder_settings_block_state_remove",nonce:wpforms_builder.nonce,block_id:e,block_type:i,form_id:g.formID}),t.remove(),b.trigger("wpformsSettingsBlockDeleted",[o,e])}},cancel:{text:wpforms_builder.cancel}}})},settingsBlockUpdateState:function(e,i,t){h.post(wpforms_builder.ajax_url,{action:"wpforms_builder_settings_block_state_save",state:e?"closed":"opened",form_id:g.formID,block_id:i,block_type:t,nonce:wpforms_builder.nonce})},bindUIActionsSaveExit:function(){b.on("click","#wpforms-embed",function(e){e.preventDefault(),h(this).hasClass("wpforms-disabled")||WPFormsFormEmbedWizard.openPopup()}),b.on("click","#wpforms-save",function(e){e.preventDefault(),v.formSave(!1)}),b.on("click","#wpforms-exit",function(e){e.preventDefault(),v.formExit()}),b.on("wpformsSaved",function(e,i){wpf.removeQueryParam("newform")})},formSave:function(i){var e=h("#wpforms-save"),t=e.find("i.fa-check"),o=e.find("i.wpforms-loading-spinner"),r=e.find("span"),a=r.text();"undefined"!=typeof tinyMCE&&tinyMCE.triggerSave(),r.text(wpforms_builder.saving),t.addClass("wpforms-hidden"),o.removeClass("wpforms-hidden");e={action:"wpforms_save_form",data:JSON.stringify(h("#wpforms-builder-form").serializeArray()),id:g.formID,nonce:wpforms_builder.nonce};return h.post(wpforms_builder.ajax_url,e,function(e){e.success?(wpf.savedState=wpf.getFormState("#wpforms-builder-form"),wpf.initialSave=!1,b.trigger("wpformsSaved",e.data),!0===i&&v.isBuilderInPopup()?v.builderInPopupClose("saved"):!0===i&&(n.location.href=wpforms_builder.exit_url)):(wpf.debug(e),v.formSaveError(e.data))}).fail(function(e,i,t){wpf.debug(e),v.formSaveError()}).always(function(){r.text(a),o.addClass("wpforms-hidden"),t.removeClass("wpforms-hidden")})},formSaveError:function(e){wpf.empty(e)&&(e=wpforms_builder.error_save_form),h.confirm({title:wpforms_builder.heads_up,content:"<p>"+e+"</p><p>"+wpforms_builder.error_contact_support+"</p>",icon:"fa fa-exclamation-circle",type:"orange",buttons:{confirm:{text:wpforms_builder.ok,btnClass:"btn-confirm",keys:["enter"]}}})},formExit:function(){v.isBuilderInPopup()&&v.formIsSaved()?v.builderInPopupClose("saved"):v.formIsSaved()?n.location.href=wpforms_builder.exit_url:h.confirm({title:!1,content:wpforms_builder.exit_confirm,icon:"fa fa-exclamation-circle",type:"orange",closeIcon:!0,buttons:{confirm:{text:wpforms_builder.save_exit,btnClass:"btn-confirm",keys:["enter"],action:function(){v.formSave(!0)}},cancel:{text:wpforms_builder.exit,action:function(){i=!1,v.isBuilderInPopup()?v.builderInPopupClose("canceled"):n.location.href=wpforms_builder.exit_url}}}})},setCloseConfirmation:function(e){i=!!e},formIsSaved:function(){return wpf.savedState==wpf.getFormState("#wpforms-builder-form")},isBuilderInPopup:function(){return n.self!==n.parent&&"wpforms-builder-iframe"===n.self.frameElement.id},builderInPopupClose:function(e){var i=n.parent.jQuery("#wpforms-builder-elementor-popup");i.find("#wpforms-builder-iframe").attr("src","about:blank"),i.fadeOut(),i.trigger("wpformsBuilderInPopupClose",[e,g.formID])},bindUIActionsGeneral:function(){b.on("click",".toggle-smart-tag-display",v.smartTagToggle),b.on("click",".smart-tags-list-display a",v.smartTagInsert),b.on("click",".wpforms-panel-fields-group.unfoldable .wpforms-panel-fields-group-title",v.toggleUnfoldableGroup),b.on("click",".wpforms-field-helper-hide ",v.hideFieldHelper),b.on("input",".wpforms-field-map-table .key-source",function(){var e=h(this).val(),i=h(this).parent().parent().find(".key-destination"),t=i.data("name");e&&i.attr("name",t.replace("{source}",e.replace(/[^0-9a-zA-Z_-]/gi,"")))}),b.on("click",".wpforms-field-map-table .remove",function(e){e.preventDefault(),v.fieldMapTableDeleteRow(e,h(this))}),b.on("click",".wpforms-field-map-table .add",function(e){e.preventDefault(),v.fieldMapTableAddRow(e,h(this))}),h(r).on("wpformsFieldUpdate",v.fieldMapSelect),b.on("input",".wpforms-money-input",function(e){var i=h(this),t=i.val(),o=i[0].selectionStart,r=i[0].selectionEnd;i.val(t.replace(/[^0-9.,]/g,"")),i[0].setSelectionRange(o,r)}),b.on("focusout",".wpforms-money-input",function(e){var i=h(this),t=i.val();if(!t)return t;t=wpf.amountSanitize(t),t=wpf.amountFormat(t);i.val(t)}),b.on("change",".wpforms-panel-field-toggle",function(){var e=h(this);e.prop("disabled")||(e.prop("disabled",!0),v.toggleOptionsGroup(e))}),b.on("change","#wpforms-panel-field-stripe-enable, #wpforms-panel-field-paypal_standard-enable, #wpforms-panel-field-authorize_net-enable, #wpforms-panel-field-square-enable",function(e){var i=h(this),t=i.attr("id").replace("wpforms-panel-field-","").replace("-enable",""),o=h('.wpforms-panel-content-section-notifications [id*="-'+t+'-wrap"]');i.prop("checked")?h("#wpforms-panel-field-settings-disable_entries").prop("checked")?(h.confirm({title:wpforms_builder.heads_up,content:wpforms_builder.payments_entries_off,icon:"fa fa-exclamation-circle",type:"orange",buttons:{confirm:{text:wpforms_builder.ok,btnClass:"btn-confirm",keys:["enter"]}}}),i.prop("checked",!1)):o.removeClass("wpforms-hidden"):(o.addClass("wpforms-hidden"),o.find('input[id*="-'+t+'"]').prop("checked",!1))}),b.on("change","#wpforms-panel-field-settings-disable_entries",function(e){var i=h(this);i.prop("checked")&&(h("#wpforms-panel-field-stripe-enable").prop("checked")||h("#wpforms-panel-field-paypal_standard-enable").prop("checked")||h("#wpforms-panel-field-authorize_net-enable").prop("checked")||h("#wpforms-panel-field-square-enable").prop("checked")?(h.confirm({title:wpforms_builder.heads_up,content:wpforms_builder.payments_on_entries_off,icon:"fa fa-exclamation-circle",type:"orange",buttons:{confirm:{text:wpforms_builder.ok,btnClass:"btn-confirm",keys:["enter"]}}}),i.prop("checked",!1)):h.alert({title:wpforms_builder.heads_up,content:wpforms_builder.disable_entries,icon:"fa fa-exclamation-circle",type:"orange",buttons:{confirm:{text:wpforms_builder.ok,btnClass:"btn-confirm",keys:["enter"]}}}))}),b.on("click",".wpforms-image-upload-add",function(e){e.preventDefault();var i=h(this),t=i.parent(),o=wp.media.frames.wpforms_media_frame=wp.media({className:"media-frame wpforms-media-frame",frame:"select",multiple:!1,title:wpforms_builder.upload_image_title,library:{type:"image"},button:{text:wpforms_builder.upload_image_button}});o.on("select",function(){var e=o.state().get("selection").first().toJSON();t.find(".source").val(e.url),t.find(".preview").empty(),t.find(".preview").prepend('<img src="'+e.url+'"><a href="#" title="'+wpforms_builder.upload_image_remove+'" class="wpforms-image-upload-remove"><i class="fa fa-trash-o"></i></a>'),"hide"===i.data("after-upload")&&i.hide(),b.trigger("wpformsImageUploadAdd",[i,t])}),o.open()}),b.on("click",".wpforms-image-upload-remove",function(e){e.preventDefault();e=h(this).parent().parent();e.find(".preview").empty(),e.find(".wpforms-image-upload-add").show(),e.find(".source").val(""),b.trigger("wpformsImageUploadRemove",[h(this),e])}),b.on("blur",".wpforms-notification .wpforms-panel-field-text input",function(){v.validateEmailSmartTags(h(this))}),b.on("blur",".wpforms-notification .wpforms-panel-field-textarea textarea",function(){v.validateEmailSmartTags(h(this))}),b.on("click",".wpforms-fullscreen-notice-go-back",v.exitBack),h("#wpforms-builder-license-alert .close").on("click",v.exitBack)},toggleOptionsGroup:function(e){function i(){e.prop("disabled",!1)}var t=e.attr("name"),o=e.attr("type"),r="",t=h('.wpforms-panel-field-toggle-body[data-toggle="'+t+'"]');0!==t.length?(r="checkbox"!==o&&"radio"!==o||e.prop("checked")?e.val():"0",t.each(function(){var e=h(this);e.attr("data-toggle-value").toString()===r.toString()?e.slideDown("",i):e.slideUp("",i)})):i()},toggleAllOptionGroups:function(e){(e=e||b||h("#wpforms-builder")||h("body"))&&e.find(".wpforms-panel-field-toggle").each(function(){var e=h(this);e.prop("disabled",!0),v.toggleOptionsGroup(e)})},toggleUnfoldableGroup:function(e){e.preventDefault();var i=h(e.target).closest(".wpforms-panel-fields-group"),t=i.find(".wpforms-panel-fields-group-inner"),e="wpforms_fields_group_"+i.data("group");i.hasClass("opened")?(wpCookies.remove(e),i.removeClass("opened"),t.stop().slideUp()):(wpCookies.set(e,"true",2592e3),i.addClass("opened"),t.stop().slideDown())},hideFieldHelper:function(e){e.preventDefault(),e.stopPropagation();e=h(".wpforms-field-helper");wpCookies.set("wpforms_field_helper_hide","true",2592e3),e.hide()},smartTagToggle:function(e){e.preventDefault();var i=h(this),e=i.closest(".wpforms-panel-field,.wpforms-field-option-row");e.hasClass("smart-tags-toggling")||(e.addClass("smart-tags-toggling"),i.hasClass("smart-tag-showing")?v.removeSmartTagsList(i):v.insertSmartTagsList(i))},removeSmartTagsList:function(e){var i=e.closest(".wpforms-panel-field,.wpforms-field-option-row"),t=i.find(".smart-tags-list-display");e.find("span").text(wpforms_builder.smart_tags_show),t.slideUp("",function(){t.remove(),e.removeClass("smart-tag-showing"),i.removeClass("smart-tags-toggling")})},insertSmartTagsList:function(e){var i,t=e.closest(".wpforms-panel-field,.wpforms-field-option-row"),o=e.closest("label"),r=!0;o.length||(o=t.find("label"),r=!1),i=v.getSmartTagsList(e,-1!==o.attr("for").indexOf("wpforms-field-option-")),(r?o:e).after(i),e.find("span").text(wpforms_builder.smart_tags_hide),t.find(".smart-tags-list-display").slideDown("",function(){e.addClass("smart-tag-showing"),t.removeClass("smart-tags-toggling")})},getSmartTagsList:function(e,i){var t='<ul class="smart-tags-list-display unfoldable-cont">';return t+=v.getSmartTagsListFieldsElements(e),t+=v.getSmartTagsListOtherElements(e,i),t+="</ul>"},getSmartTagsListFieldsElements:function(e){var i,t=e.data("type"),o=v.getSmartTagsFields(e),r="";if(!["fields","all"].includes(t))return"";if(!o)return'<li class="heading">'+wpforms_builder.fields_unavailable+"</li>";for(i in r+='<li class="heading">'+wpforms_builder.fields_available+"</li>",wpf.orders.fields){var a=wpf.orders.fields[i];o[a]&&(r+=v.getSmartTagsListFieldsElement(o[a]))}return r},getSmartTagsFields:function(e){e=e.data("fields");return e&&e.length?wpf.getFields(e.split(","),!0):wpf.getFields(!1,!0)},getSmartTagsListFieldsElement:function(e){var i=e.label?wpf.encodeHTMLEntities(wpf.sanitizeHTML(e.label)):wpforms_builder.field+" #"+e.id;return'<li><a href="#" data-type="field" data-meta=\''+e.id+"'>"+i+"</a></li>"},getSmartTagsListOtherElements:function(e,i){var t,o,e=e.data("type");if("other"!==e&&"all"!==e)return"";for(o in t='<li class="heading">'+wpforms_builder.other+"</li>",wpforms_builder.smart_tags)i&&-1<wpforms_builder.smart_tags_disabled_for_fields.indexOf(o)||(t+='<li><a href="#" data-type="other" data-meta=\''+o+"'>"+wpforms_builder.smart_tags[o]+"</a></li>");return t},smartTagInsert:function(e){e.preventDefault();var i,t=h(this),o=t.closest(".smart-tags-list-display"),r=o.closest(".wpforms-panel-field,.wpforms-field-option-row"),a=r.find(".toggle-smart-tag-display"),n=r.find("input[type=text], textarea"),e=t.data("meta"),e="field"===t.data("type")?'{field_id="'+e+'"}':"{"+e+"}";"undefined"!=typeof tinyMCE&&(i=tinyMCE.get(n.prop("id")))&&!i.hasFocus()&&i.focus(!0),i&&!i.isHidden()?i.insertContent(e):n.insertAtCaret(e),o.slideUp("",function(){o.remove()}),a.find("span").text(wpforms_builder.smart_tags_show),r.find(".toggle-smart-tag-display").removeClass("smart-tag-showing")},fieldMapTableDeleteRow:function(e,i){var t=h(i),o=t.closest("tr"),i=t.closest("table"),t=o.closest(".wpforms-builder-settings-block");"1"<i.find("tr").length&&(o.remove(),b.trigger("wpformsFieldMapTableDeletedRow",[t]))},fieldMapTableAddRow:function(e,i){var t=h(i).closest("tr"),i=t.closest(".wpforms-builder-settings-block"),t=t.clone().insertAfter(t);t.find("input").val(""),t.find("select :selected").prop("selected",!1),t.find(".key-destination").attr("name",""),b.trigger("wpformsFieldMapTableAddedRow",[i,t])},fieldMapSelect:function(e,l){h(".wpforms-field-map-select").each(function(e,i){var t,o=h(this),r=o.find("option:selected").val(),a=o.data("field-map-allowed"),n=o.data("field-map-placeholder");if(void 0!==n&&n||(n=wpforms_builder.select_field),o.empty().append(h("<option>",{value:"",text:n})),void 0!==a&&a){if(a=a.split(" "),l&&!h.isEmptyObject(l))for(var s in wpf.orders.fields)Object.prototype.hasOwnProperty.call(wpf.orders.fields,s)&&(t=wpf.orders.fields[s],s="",l[t]&&(s=void 0!==l[t].label&&""!==l[t].label.toString().trim()?wpf.sanitizeHTML(l[t].label.toString().trim()):wpforms_builder.field+" #"+t,(0<=h.inArray(l[t].type,a)||0<=h.inArray("all-fields",a))&&o.append(h("<option>",{value:l[t].id,text:s}))));r&&o.find('option[value="'+r+'"]').prop("selected",!0);r=o.data("custom-value-support");"boolean"==typeof r&&r&&o.append(h("<option>",{value:"custom_value",text:wpforms_builder.add_custom_value_label,class:"wpforms-field-map-option-custom-value"})),b.trigger("wpformsFieldSelectMapped",[o])}})},validateEmailSmartTags:function(e){var i=e.val();i&&(i=i.replace(/{(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))}/g,function(e){return e.slice(1,-1)}),e.val(i))},dismissNotice:function(){b.on("click",".wpforms-alert-dismissible .wpforms-dismiss-button",function(e){e.preventDefault();var e=h(this),i=e.closest(".wpforms-alert"),e=e.data("field-id");i.addClass("out"),setTimeout(function(){i.remove()},250),e&&h("#wpforms-field-option-"+e).remove()})},trimFormTitle:function(){var e,i=h(".wpforms-center-form-name");38<i.text().length&&(e=h.trim(i.text()).substring(0,38).split(" ").slice(0,-1).join(" ")+"...",i.text(e))},loadColorPickers:function(){h(".wpforms-color-picker").minicolors()},builderHotkeys:function(){h(r).keydown(function(e){if(e.ctrlKey){switch(e.keyCode){case 72:h("#wpforms-help",b).click();break;case 80:n.open(wpforms_builder.preview_url);break;case 66:h("#wpforms-embed",b).click();break;case 69:n.open(wpforms_builder.entries_url);break;case 83:h("#wpforms-save",b).click();break;case 81:h("#wpforms-exit",b).click();break;case 191:v.openKeyboardShortcutsModal();break;default:return}return!1}})},openKeyboardShortcutsModal:function(){h(".wpforms-builder-keyboard-shortcuts").length?jconfirm.instances[jconfirm.instances.length-1].close():h.alert({title:wpforms_builder.shortcuts_modal_title,content:wpforms_builder.shortcuts_modal_msg+wp.template("wpforms-builder-keyboard-shortcuts")(),icon:"fa fa-keyboard-o",type:"blue",boxWidth:"550px",smoothContent:!1,buttons:{confirm:{text:wpforms_builder.close,btnClass:"btn-confirm",keys:["enter"]}},onOpenBefore:function(){this.$body.addClass("wpforms-builder-keyboard-shortcuts")}})},registerTemplates:function(){"undefined"!=typeof WPForms&&WPForms.Admin.Builder.Templates.add(["wpforms-builder-confirmations-message-field","wpforms-builder-conditional-logic-toggle-field"])},exitBack:function(){1<n.history.length&&r.referrer?n.history.back():n.location.href=wpforms_builder.exit_url}};return v}(document,window,jQuery);WPFormsBuilder.init();
assets/js/admin-utils.min.js CHANGED
@@ -1 +1 @@
1
- var wpf={cachedFields:{},savedState:!1,initialSave:!0,orders:{fields:[],choices:{}},init:function(){wpf.bindUIActions(),wpf.initRadioGroupForCheckboxes(),jQuery(wpf.ready)},ready:function(){wpf.savedState=wpf.getFormState("#wpforms-builder-form"),wpf.setFieldOrders(),wpf.setChoicesOrders()},bindUIActions:function(){jQuery(document).on("wpformsFieldAdd",wpf.setFieldOrders),jQuery(document).on("wpformsFieldDelete",wpf.setFieldOrders),jQuery(document).on("wpformsFieldMove",wpf.setFieldOrders),jQuery(document).on("wpformsFieldAdd",wpf.setChoicesOrders),jQuery(document).on("wpformsFieldChoiceAdd",wpf.setChoicesOrders),jQuery(document).on("wpformsFieldChoiceDelete",wpf.setChoicesOrders),jQuery(document).on("wpformsFieldChoiceMove",wpf.setChoicesOrders),jQuery(document).on("wpformsFieldAdd",wpf.fieldUpdate),jQuery(document).on("wpformsFieldDelete",wpf.fieldUpdate),jQuery(document).on("wpformsFieldMove",wpf.fieldUpdate),jQuery(document).on("focusout",".wpforms-field-option-row-label input",wpf.fieldUpdate),jQuery(document).on("wpformsFieldChoiceAdd",wpf.fieldUpdate),jQuery(document).on("wpformsFieldChoiceDelete",wpf.fieldUpdate),jQuery(document).on("wpformsFieldChoiceMove",wpf.fieldUpdate),jQuery(document).on("wpformsFieldDynamicChoiceToggle",wpf.fieldUpdate),jQuery(document).on("focusout",".wpforms-field-option-row-choices input.label",wpf.fieldUpdate)},setFieldOrders:function(){wpf.orders.fields=[],jQuery(".wpforms-field-option").each(function(){wpf.orders.fields.push(jQuery(this).data("field-id"))})},setChoicesOrders:function(){wpf.orders.choices={},jQuery(".choices-list").each(function(){var e=jQuery(this).data("field-id");wpf.orders.choices["field_"+e]=[],jQuery(this).find("li").each(function(){wpf.orders.choices["field_"+e].push(jQuery(this).data("key"))})})},getChoicesOrder:function(e){var r=[];return jQuery("#wpforms-field-option-"+e).find(".choices-list li").each(function(){r.push(jQuery(this).data("key"))}),r},fieldUpdate:function(){var e=wpf.getFields();jQuery(document).trigger("wpformsFieldUpdate",[e]),wpf.debug("fieldUpdate triggered")},getFields:function(e,r){if((r=r||!1)&&!jQuery.isEmptyObject(wpf.cachedFields)){var t=jQuery.extend({},wpf.cachedFields);wpf.debug("getFields triggered (cached)")}else{var i=["entry-preview","html","pagebreak"];if(!(t=wpf.formObject("#wpforms-field-options").fields))return!1;for(o in t)(!t[o].type||-1<jQuery.inArray(t[o].type,i))&&delete t[o];wpf.cachedFields=jQuery.extend({},t),wpf.debug("getFields triggered")}if(e&&e.constructor===Array)for(var o in t)-1===jQuery.inArray(t[o].type,e)&&delete t[o];return t},getField:function(e){e=wpf.formObject("#wpforms-field-option-"+e);return e.fields[Object.keys(e.fields)[0]]},fieldOptionLoading:function(e,r){var t=jQuery(e),e=t.find("label");(r=void 0!==r)?(e.find(".wpforms-loading-spinner").remove(),e.find(".wpforms-help-tooltip").show(),t.find("input,select,textarea").prop("disabled",!1)):(e.append('<i class="wpforms-loading-spinner wpforms-loading-inline"></i>'),e.find(".wpforms-help-tooltip").hide(),t.find("input,select,textarea").prop("disabled",!0))},getFormState:function(e){return jQuery(e).serialize()},removeArrayItem:function(e,r){for(var t=0,i=0;i<e.length;i++)e[i]===r&&(e.splice(i,1),t++,i--);return t},sanitizeString:function(e){return"string"==typeof e||e instanceof String?e.trim():e},updateQueryString:function(e,r,t){t=t||window.location.href;var i=new RegExp("([?&])"+e+"=.*?(&|#|$)(.*)","gi");if(i.test(t))return null!=r?t.replace(i,"$1"+e+"="+r+"$2$3"):(t=(o=t.split("#"))[0].replace(i,"$1$3").replace(/(&|\?)$/,""),void 0!==o[1]&&null!==o[1]&&(t+="#"+o[1]),t);if(null==r)return t;var o,i=-1!==t.indexOf("?")?"&":"?";return t=(o=t.split("#"))[0]+i+e+"="+r,void 0!==o[1]&&null!==o[1]&&(t+="#"+o[1]),t},getQueryString:function(e){e=new RegExp("[?&]"+e+"=([^&]*)").exec(window.location.search);return e&&decodeURIComponent(e[1].replace(/\+/g," "))},removeQueryParam:function(e){wpf.getQueryString(e)&&(e=new RegExp("[\\?&]"+e+"=[^&]+"),history.replaceState&&history.replaceState(null,"",location.pathname+location.search.replace(e,"").replace(/^&/,"?")+location.hash))},isNumber:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},amountSanitize:function(e){return e=String(e).replace(/[^0-9.,]/g,""),","===wpforms_builder.currency_decimal?("."===wpforms_builder.currency_thousands&&-1!==e.indexOf(wpforms_builder.currency_thousands)?e=e.replace(new RegExp("\\"+wpforms_builder.currency_thousands,"g"),""):""===wpforms_builder.currency_thousands&&-1!==e.indexOf(".")&&(e=e.replace(/\./g,"")),e=e.replace(wpforms_builder.currency_decimal,".")):","===wpforms_builder.currency_thousands&&-1!==e.indexOf(wpforms_builder.currency_thousands)&&(e=e.replace(new RegExp("\\"+wpforms_builder.currency_thousands,"g"),"")),wpf.numberFormat(e,wpforms_builder.currency_decimals,".","")},amountFormat:function(e){var r;return e=String(e),","===wpforms_builder.currency_decimal&&-1!==e.indexOf(wpforms_builder.currency_decimal)&&(r=e.indexOf(wpforms_builder.currency_decimal),e=e.substr(0,r)+"."+e.substr(r+1,e.length-1)),","===wpforms_builder.currency_thousands&&-1!==e.indexOf(wpforms_builder.currency_thousands)&&(e=e.replace(/,/g,"")),wpf.empty(e)&&(e=0),wpf.numberFormat(e,wpforms_builder.currency_decimals,wpforms_builder.currency_decimal,wpforms_builder.currency_thousands)},amountFormatCurrency:function(e){var e=wpf.amountSanitize(e),e=wpf.amountFormat(e),e="right"===wpforms_builder.currency_symbol_pos?e+" "+wpforms_builder.currency_symbol:wpforms_builder.currency_symbol+" "+e;return e},numberFormat:function(e,r,t,i){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var o=isFinite(+e)?+e:0,n=isFinite(+r)?Math.abs(r):0,d=void 0===i?",":i,s=void 0===t?".":t,e="";return 3<(e=(n?(r=o,i=n,t=Math.pow(10,i),""+(Math.round(r*t)/t).toFixed(i)):""+Math.round(o)).split("."))[0].length&&(e[0]=e[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,d)),(e[1]||"").length<n&&(e[1]=e[1]||"",e[1]+=new Array(n-e[1].length+1).join("0")),e.join(s)},empty:function(e){for(var r,t=[void 0,null,!1,0,"","0"],i=0,o=t.length;i<o;i++)if(e===t[i])return!0;if("object"!=typeof e)return!1;for(r in e)if(e.hasOwnProperty(r))return!1;return!0},debug:function(e){wpf.isDebug()&&("object"==typeof e||e.constructor===Array?(console.log("WPForms Debug:"),console.log(e)):console.log("WPForms Debug: "+e))},isDebug:function(){return window.location.hash&&"#wpformsdebug"===window.location.hash||wpforms_builder.debug},focusCaretToEnd:function(e){e.focus();var r=e.val();e.val("").val(r)},formObject:function(e){for(var r=jQuery(e).find("[name]"),t={},i={},o=0;o<r.length;o++){var n=jQuery(r[o]),d=n.prop("name").replace(/\]/gi,"").split("["),s=n.val(),u={};if(!n.is(":radio")&&!n.is(":checkbox")||n.is(":checked")){for(var c=d.length-1;0<=c;c--){var f=d[c];if(0===(f=void 0===f?"":f).length&&(u=[],void 0===i[d[c-1]]?i[d[c-1]]=0:i[d[c-1]]+=1,f=i[d[c-1]]),c===d.length-1){if(s)if("true"===s)s=!0;else if("false"===s)s=!1;else if(isNaN(parseFloat(s))||parseFloat(s).toString()!==s)if("string"!=typeof s||"{"!==s.substr(0,1)&&"["!==s.substr(0,1)){if("object"==typeof s&&s.length&&n.is("select")){for(var p={},c=0;c<s.length;c++)p["n"+c]=s[c];s=p}}else try{s=JSON.parse(s)}catch(e){}else s=parseFloat(s);u[f]=s}else{var l=u;(u={})[f]=l}}jQuery.extend(!0,t,u)}}return t},initTooltips:function(){void 0!==jQuery.fn.tooltipster&&jQuery(".wpforms-help-tooltip").tooltipster({contentAsHTML:!0,position:"right",maxWidth:300,multiple:!0,interactive:!0,debug:!1,IEmin:11})},restoreTooltips:function(e){(e=void 0!==e&&e&&0<e.length?e.find(".wpforms-help-tooltip"):jQuery(".wpforms-help-tooltip")).each(function(){var e=jQuery(this);0!==jQuery.tooltipster.instances(this).length&&e.attr("title",e.tooltipster("content"))})},isURL:function(e){if("string"!=typeof e)return!1;e=e.match(/^(?:http(?:s?):)?\/\/(\S+)/);if(!e)return!1;e=e[1];return!!e&&!(!/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/.test(e)&&!/^[^\s\.]+\.\S{2,}$/.test(e))},sanitizeHTML:function(e){var r=window.DOMPurify;return void 0===r?e:("string"!=typeof e&&(e=e.toString()),r.sanitize(e))},encodeHTMLEntities:function(e){return(e="string"!=typeof e?e.toString():e).replace(/[\u00A0-\u9999<>&]/gim,function(e){return"&#"+e.charCodeAt(0)+";"})},initRadioGroupForCheckboxes:function(){var i=jQuery;i(document).on("change",'input[type="checkbox"].wpforms-radio-group',function(){var e,r=i(this),t=r.attr("id");r.prop("checked")&&(r=r.data("radio-group"),i(".wpforms-radio-group-"+r).each(function(){(e=i(this)).attr("id")!==t&&e.prop("checked",!1)}))})},listPluck:function(e,r){return e.map(function(e){return void 0!==e?e[r]:e})}};wpf.init();
1
+ var wpf={cachedFields:{},savedState:!1,initialSave:!0,orders:{fields:[],choices:{}},init:function(){wpf.bindUIActions(),wpf.initRadioGroupForCheckboxes(),jQuery(wpf.ready)},ready:function(){wpf.savedState=wpf.getFormState("#wpforms-builder-form"),wpf.setFieldOrders(),wpf.setChoicesOrders()},bindUIActions:function(){jQuery(document).on("wpformsFieldAdd",wpf.setFieldOrders),jQuery(document).on("wpformsFieldDelete",wpf.setFieldOrders),jQuery(document).on("wpformsFieldMove",wpf.setFieldOrders),jQuery(document).on("wpformsFieldAdd",wpf.setChoicesOrders),jQuery(document).on("wpformsFieldChoiceAdd",wpf.setChoicesOrders),jQuery(document).on("wpformsFieldChoiceDelete",wpf.setChoicesOrders),jQuery(document).on("wpformsFieldChoiceMove",wpf.setChoicesOrders),jQuery(document).on("wpformsFieldAdd",wpf.fieldUpdate),jQuery(document).on("wpformsFieldDelete",wpf.fieldUpdate),jQuery(document).on("wpformsFieldMove",wpf.fieldUpdate),jQuery(document).on("focusout",".wpforms-field-option-row-label input",wpf.fieldUpdate),jQuery(document).on("wpformsFieldChoiceAdd",wpf.fieldUpdate),jQuery(document).on("wpformsFieldChoiceDelete",wpf.fieldUpdate),jQuery(document).on("wpformsFieldChoiceMove",wpf.fieldUpdate),jQuery(document).on("wpformsFieldDynamicChoiceToggle",wpf.fieldUpdate),jQuery(document).on("focusout",".wpforms-field-option-row-choices input.label",wpf.fieldUpdate)},setFieldOrders:function(){wpf.orders.fields=[],jQuery(".wpforms-field-option").each(function(){wpf.orders.fields.push(jQuery(this).data("field-id"))})},setChoicesOrders:function(){wpf.orders.choices={},jQuery(".choices-list").each(function(){var e=jQuery(this).data("field-id");wpf.orders.choices["field_"+e]=[],jQuery(this).find("li").each(function(){wpf.orders.choices["field_"+e].push(jQuery(this).data("key"))})})},getChoicesOrder:function(e){var r=[];return jQuery("#wpforms-field-option-"+e).find(".choices-list li").each(function(){r.push(jQuery(this).data("key"))}),r},fieldUpdate:function(){var e=wpf.getFields();jQuery(document).trigger("wpformsFieldUpdate",[e]),wpf.debug("fieldUpdate triggered")},getFields:function(e,r){if((r=r||!1)&&!jQuery.isEmptyObject(wpf.cachedFields)){var t=jQuery.extend({},wpf.cachedFields);wpf.debug("getFields triggered (cached)")}else{var i=["entry-preview","html","pagebreak"];if(!(t=wpf.formObject("#wpforms-field-options").fields))return!1;for(o in t)(!t[o].type||-1<jQuery.inArray(t[o].type,i))&&delete t[o];wpf.cachedFields=jQuery.extend({},t),wpf.debug("getFields triggered")}if(e&&e.constructor===Array)for(var o in t)-1===jQuery.inArray(t[o].type,e)&&delete t[o];return t},getField:function(e){e=wpf.formObject("#wpforms-field-option-"+e);return e.fields[Object.keys(e.fields)[0]]},fieldOptionLoading:function(e,r){var t=jQuery(e),e=t.find("label");(r=void 0!==r)?(e.find(".wpforms-loading-spinner").remove(),e.find(".wpforms-help-tooltip").show(),t.find("input,select,textarea").prop("disabled",!1)):(e.append('<i class="wpforms-loading-spinner wpforms-loading-inline"></i>'),e.find(".wpforms-help-tooltip").hide(),t.find("input,select,textarea").prop("disabled",!0))},getFormState:function(e){return jQuery(e).serialize()},removeArrayItem:function(e,r){for(var t=0,i=0;i<e.length;i++)e[i]===r&&(e.splice(i,1),t++,i--);return t},sanitizeString:function(e){return"string"==typeof e||e instanceof String?e.trim():e},updateQueryString:function(e,r,t){t=t||window.location.href;var i=new RegExp("([?&])"+e+"=.*?(&|#|$)(.*)","gi");if(i.test(t))return null!=r?t.replace(i,"$1"+e+"="+r+"$2$3"):(t=(o=t.split("#"))[0].replace(i,"$1$3").replace(/(&|\?)$/,""),void 0!==o[1]&&null!==o[1]&&(t+="#"+o[1]),t);if(null==r)return t;var o,i=-1!==t.indexOf("?")?"&":"?";return t=(o=t.split("#"))[0]+i+e+"="+r,void 0!==o[1]&&null!==o[1]&&(t+="#"+o[1]),t},getQueryString:function(e){e=new RegExp("[?&]"+e+"=([^&]*)").exec(window.location.search);return e&&decodeURIComponent(e[1].replace(/\+/g," "))},removeQueryParam:function(e){wpf.getQueryString(e)&&(e=new RegExp("[\\?&]"+e+"=[^&]+"),history.replaceState&&history.replaceState(null,"",location.pathname+location.search.replace(e,"").replace(/^&/,"?")+location.hash))},isNumber:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},amountSanitize:function(e){return e=String(e).replace(/[^0-9.,]/g,""),","===wpforms_builder.currency_decimal?("."===wpforms_builder.currency_thousands&&-1!==e.indexOf(wpforms_builder.currency_thousands)?e=e.replace(new RegExp("\\"+wpforms_builder.currency_thousands,"g"),""):""===wpforms_builder.currency_thousands&&-1!==e.indexOf(".")&&(e=e.replace(/\./g,"")),e=e.replace(wpforms_builder.currency_decimal,".")):","===wpforms_builder.currency_thousands&&-1!==e.indexOf(wpforms_builder.currency_thousands)&&(e=e.replace(new RegExp("\\"+wpforms_builder.currency_thousands,"g"),"")),wpf.numberFormat(e,wpforms_builder.currency_decimals,".","")},amountFormat:function(e){var r;return e=String(e),","===wpforms_builder.currency_decimal&&-1!==e.indexOf(wpforms_builder.currency_decimal)&&(r=e.indexOf(wpforms_builder.currency_decimal),e=e.substr(0,r)+"."+e.substr(r+1,e.length-1)),","===wpforms_builder.currency_thousands&&-1!==e.indexOf(wpforms_builder.currency_thousands)&&(e=e.replace(/,/g,"")),wpf.empty(e)&&(e=0),wpf.numberFormat(e,wpforms_builder.currency_decimals,wpforms_builder.currency_decimal,wpforms_builder.currency_thousands)},amountFormatCurrency:function(e){e=wpf.amountSanitize(e),e=wpf.amountFormat(e),e="right"===wpforms_builder.currency_symbol_pos?e+" "+wpforms_builder.currency_symbol:wpforms_builder.currency_symbol+" "+e;return e},numberFormat:function(e,r,t,i){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var o,n,d,s=isFinite(+e)?+e:0,e=isFinite(+r)?Math.abs(r):0,r=void 0===i?",":i,i=void 0===t?".":t,t="";return 3<(t=(e?(o=s,n=e,d=Math.pow(10,n),""+(Math.round(o*d)/d).toFixed(n)):""+Math.round(s)).split("."))[0].length&&(t[0]=t[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,r)),(t[1]||"").length<e&&(t[1]=t[1]||"",t[1]+=new Array(e-t[1].length+1).join("0")),t.join(i)},empty:function(e){for(var r,t=[void 0,null,!1,0,"","0"],i=0,o=t.length;i<o;i++)if(e===t[i])return!0;if("object"!=typeof e)return!1;for(r in e)if(e.hasOwnProperty(r))return!1;return!0},debug:function(e){wpf.isDebug()&&("object"==typeof e||e.constructor===Array?(console.log("WPForms Debug:"),console.log(e)):console.log("WPForms Debug: "+e))},isDebug:function(){return window.location.hash&&"#wpformsdebug"===window.location.hash||wpforms_builder.debug},focusCaretToEnd:function(e){e.focus();var r=e.val();e.val("").val(r)},formObject:function(e){for(var r=jQuery(e).find("[name]"),t={},i={},o=0;o<r.length;o++){var n=jQuery(r[o]),d=n.prop("name").replace(/\]/gi,"").split("["),s=n.val(),u={};if(!n.is(":radio")&&!n.is(":checkbox")||n.is(":checked")){for(var c=d.length-1;0<=c;c--){var f=d[c];if(0===(f=void 0===f?"":f).length&&(u=[],void 0===i[d[c-1]]?i[d[c-1]]=0:i[d[c-1]]+=1,f=i[d[c-1]]),c===d.length-1){if(s)if("true"===s)s=!0;else if("false"===s)s=!1;else if(isNaN(parseFloat(s))||parseFloat(s).toString()!==s)if("string"!=typeof s||"{"!==s.substr(0,1)&&"["!==s.substr(0,1)){if("object"==typeof s&&s.length&&n.is("select")){for(var p={},c=0;c<s.length;c++)p["n"+c]=s[c];s=p}}else try{s=JSON.parse(s)}catch(e){}else s=parseFloat(s);u[f]=s}else{var l=u;(u={})[f]=l}}jQuery.extend(!0,t,u)}}return t},initTooltips:function(){void 0!==jQuery.fn.tooltipster&&jQuery(".wpforms-help-tooltip").tooltipster({contentAsHTML:!0,position:"right",maxWidth:300,multiple:!0,interactive:!0,debug:!1,IEmin:11})},restoreTooltips:function(e){(e=void 0!==e&&e&&0<e.length?e.find(".wpforms-help-tooltip"):jQuery(".wpforms-help-tooltip")).each(function(){var e=jQuery(this);0!==jQuery.tooltipster.instances(this).length&&e.attr("title",e.tooltipster("content"))})},isURL:function(e){if("string"!=typeof e)return!1;e=e.match(/^(?:http(?:s?):)?\/\/(\S+)/);if(!e)return!1;e=e[1];return!!e&&!(!/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/.test(e)&&!/^[^\s\.]+\.\S{2,}$/.test(e))},sanitizeHTML:function(e){var r=window.DOMPurify;return void 0===r?e:("string"!=typeof e&&(e=e.toString()),r.sanitize(e))},encodeHTMLEntities:function(e){return(e="string"!=typeof e?e.toString():e).replace(/[\u00A0-\u9999<>&]/gim,function(e){return"&#"+e.charCodeAt(0)+";"})},initRadioGroupForCheckboxes:function(){var i=jQuery;i(document).on("change",'input[type="checkbox"].wpforms-radio-group',function(){var e,r=i(this),t=r.attr("id");r.prop("checked")&&(r=r.data("radio-group"),i(".wpforms-radio-group-"+r).each(function(){(e=i(this)).attr("id")!==t&&e.prop("checked",!1)}))})},listPluck:function(e,r){return e.map(function(e){return void 0!==e?e[r]:e})}};wpf.init();
assets/js/integrations/divi/formselector.min.js CHANGED
@@ -1 +1 @@
1
- !function n(o,a,i){function u(r,e){if(!a[r]){if(!o[r]){var t="function"==typeof require&&require;if(!e&&t)return t(r,!0);if(c)return c(r,!0);throw new Error("Cannot find module '"+r+"'")}t=a[r]={exports:{}};o[r][0].call(t.exports,function(e){var t=o[r][1][e];return u(t||e)},t,t.exports,n,o,a,i)}return a[r].exports}for(var c="function"==typeof require&&require,e=0;e<i.length;e++)u(i[e]);return u}({1:[function(e,t,r){"use strict";var c=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(e){n[e]=e}),"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},n)).join("")?void 0:1}catch(e){return}}()?Object.assign:function(e,t){for(var r,n=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),o=1;o<arguments.length;o++){for(var a in r=Object(arguments[o]))s.call(r,a)&&(n[a]=r[a]);if(c)for(var i=c(r),u=0;u<i.length;u++)f.call(r,i[u])&&(n[i[u]]=r[i[u]])}return n}},{}],2:[function(e,t,r){t=t.exports={};function n(){}t.nextTick=function(){var e="undefined"!=typeof window&&window.setImmediate,t="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(e)return function(e){return window.setImmediate(e)};if(t){var r=[];return window.addEventListener("message",function(e){var t=e.source;t!==window&&null!==t||"process-tick"!==e.data||(e.stopPropagation(),0<r.length&&r.shift()())},!0),function(e){r.push(e),window.postMessage("process-tick","*")}}return function(e){setTimeout(e,0)}}(),t.title="browser",t.browser=!0,t.env={},t.argv=[],t.on=n,t.addListener=n,t.once=n,t.off=n,t.removeListener=n,t.removeAllListeners=n,t.emit=n,t.binding=function(e){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(e){throw new Error("process.chdir is not supported")}},{}],3:[function(t,r,e){!function(c){"use strict";var s,f,l,p=function(){};function e(e,t,r,n,o){if("production"!==c.env.NODE_ENV)for(var a in e)if(l(e,a)){var i;try{if("function"!=typeof e[a]){var u=Error((n||"React class")+": "+r+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.");throw u.name="Invariant Violation",u}i=e[a](t,a,n,r,null,s)}catch(e){i=e}!i||i instanceof Error||p((n||"React class")+": type specification of "+r+" `"+a+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof i+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),i instanceof Error&&!(i.message in f)&&(f[i.message]=!0,a=o?o():"",p("Failed "+r+" type: "+i.message+(null!=a?a:"")))}}"production"!==c.env.NODE_ENV&&(s=t("./lib/ReactPropTypesSecret"),f={},l=Function.call.bind(Object.prototype.hasOwnProperty),p=function(e){e="Warning: "+e;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(e){}}),e.resetWarningCache=function(){"production"!==c.env.NODE_ENV&&(f={})},r.exports=e}.call(this,t("ofxWKs"))},{"./lib/ReactPropTypesSecret":7,ofxWKs:2}],4:[function(e,t,r){"use strict";var i=e("./lib/ReactPropTypesSecret");function n(){}function o(){}o.resetWarningCache=n,t.exports=function(){function e(e,t,r,n,o,a){if(a!==i){a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}var r={array:e.isRequired=e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:n};return r.PropTypes=r}},{"./lib/ReactPropTypesSecret":7}],5:[function(e,t,r){!function(y){"use strict";var m=e("react-is"),h=e("object-assign"),v=e("./lib/ReactPropTypesSecret"),n=e("./checkPropTypes"),b=Function.call.bind(Object.prototype.hasOwnProperty),g=function(){};function o(){return null}"production"!==y.env.NODE_ENV&&(g=function(e){e="Warning: "+e;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(e){}}),t.exports=function(a,l){var i="function"==typeof Symbol&&Symbol.iterator,u="@@iterator";var p="<<anonymous>>",e={array:t("array"),bool:t("boolean"),func:t("function"),number:t("number"),object:t("object"),string:t("string"),symbol:t("symbol"),any:r(o),arrayOf:function(c){return r(function(e,t,r,n,o){if("function"!=typeof c)return new d("Property `"+o+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var a=e[t];if(!Array.isArray(a))return new d("Invalid "+n+" `"+o+"` of type `"+f(a)+"` supplied to `"+r+"`, expected an array.");for(var i=0;i<a.length;i++){var u=c(a,i,r,n,o+"["+i+"]",v);if(u instanceof Error)return u}return null})},element:r(function(e,t,r,n,o){return t=e[t],a(t)?null:new d("Invalid "+n+" `"+o+"` of type `"+f(t)+"` supplied to `"+r+"`, expected a single ReactElement.")}),elementType:r(function(e,t,r,n,o){return t=e[t],m.isValidElementType(t)?null:new d("Invalid "+n+" `"+o+"` of type `"+f(t)+"` supplied to `"+r+"`, expected a single ReactElement type.")}),instanceOf:function(i){return r(function(e,t,r,n,o){if(e[t]instanceof i)return null;var a=i.name||p;return new d("Invalid "+n+" `"+o+"` of type `"+((t=e[t]).constructor&&t.constructor.name?t.constructor.name:p)+"` supplied to `"+r+"`, expected instance of `"+a+"`.")})},node:r(function(e,t,r,n,o){return c(e[t])?null:new d("Invalid "+n+" `"+o+"` supplied to `"+r+"`, expected a ReactNode.")}),objectOf:function(c){return r(function(e,t,r,n,o){if("function"!=typeof c)return new d("Property `"+o+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var a,i=e[t];if("object"!==(t=f(i)))return new d("Invalid "+n+" `"+o+"` of type `"+t+"` supplied to `"+r+"`, expected an object.");for(a in i)if(b(i,a)){var u=c(i,a,r,n,o+"."+a,v);if(u instanceof Error)return u}return null})},oneOf:function(u){if(Array.isArray(u))return r(function(e,t,r,n,o){for(var a=e[t],i=0;i<u.length;i++)if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(a,u[i]))return null;t=JSON.stringify(u,function(e,t){return"symbol"===s(t)?String(t):t});return new d("Invalid "+n+" `"+o+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+t+".")});"production"!==y.env.NODE_ENV&&g(1<arguments.length?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array.");return o},oneOfType:function(i){if(!Array.isArray(i))return"production"!==y.env.NODE_ENV&&g("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var e=0;e<i.length;e++){var t=i[e];if("function"!=typeof t)return g("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+function(e){var t=s(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}(t)+" at index "+e+"."),o}return r(function(e,t,r,n,o){for(var a=0;a<i.length;a++)if(null==(0,i[a])(e,t,r,n,o,v))return null;return new d("Invalid "+n+" `"+o+"` supplied to `"+r+"`.")})},shape:function(c){return r(function(e,t,r,n,o){var a,i=e[t];if("object"!==(t=f(i)))return new d("Invalid "+n+" `"+o+"` of type `"+t+"` supplied to `"+r+"`, expected `object`.");for(a in c){var u=c[a];if(u){u=u(i,a,r,n,o+"."+a,v);if(u)return u}}return null})},exact:function(s){return r(function(e,t,r,n,o){var a,i=e[t],u=f(i);if("object"!==u)return new d("Invalid "+n+" `"+o+"` of type `"+u+"` supplied to `"+r+"`, expected `object`.");for(a in h({},e[t],s)){var c=s[a];if(!c)return new d("Invalid "+n+" `"+o+"` key `"+a+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(e[t],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(s),null," "));c=c(i,a,r,n,o+"."+a,v);if(c)return c}return null})}};function d(e){this.message=e,this.stack=""}function r(c){var s,f;function e(e,t,r,n,o,a,i){if(n=n||p,a=a||r,i!==v){if(l){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}"production"===y.env.NODE_ENV||"undefined"==typeof console||!s[u=n+":"+r]&&f<3&&(g("You are manually calling a React.PropTypes validation function for the `"+a+"` prop on `"+n+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),s[u]=!0,f++)}return null==t[r]?e?null===t[r]?new d("The "+o+" `"+a+"` is marked as required in `"+n+"`, but its value is `null`."):new d("The "+o+" `"+a+"` is marked as required in `"+n+"`, but its value is `undefined`."):null:c(t,r,n,o,a)}"production"!==y.env.NODE_ENV&&(s={},f=0);var t=e.bind(null,!1);return t.isRequired=e.bind(null,!0),t}function t(i){return r(function(e,t,r,n,o,a){return f(t=e[t])===i?null:new d("Invalid "+n+" `"+o+"` of type `"+s(t)+"` supplied to `"+r+"`, expected `"+i+"`.")})}function c(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(c);if(null===e||a(e))return!0;var t=function(e){if("function"==typeof(e=e&&(i&&e[i]||e[u])))return e}(e);if(!t)return!1;var r,n=t.call(e);if(t!==e.entries){for(;!(r=n.next()).done;)if(!c(r.value))return!1}else for(;!(r=n.next()).done;){var o=r.value;if(o&&!c(o[1]))return!1}return!0;default:return!1}}function f(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":(e=e,"symbol"===t||e&&("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)?"symbol":t)}function s(e){if(null==e)return""+e;var t=f(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}return d.prototype=Error.prototype,e.checkPropTypes=n,e.resetWarningCache=n.resetWarningCache,e.PropTypes=e}}.call(this,e("ofxWKs"))},{"./checkPropTypes":3,"./lib/ReactPropTypesSecret":7,"object-assign":1,ofxWKs:2,"react-is":10}],6:[function(t,r,e){!function(e){"production"!==e.env.NODE_ENV?(e=t("react-is"),r.exports=t("./factoryWithTypeCheckers")(e.isElement,!0)):r.exports=t("./factoryWithThrowingShims")()}.call(this,t("ofxWKs"))},{"./factoryWithThrowingShims":4,"./factoryWithTypeCheckers":5,ofxWKs:2,"react-is":10}],7:[function(e,t,r){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},{}],8:[function(e,t,N){!function(e){"use strict";function t(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:var r=e.type;switch(r){case l:case p:case i:case c:case u:case y:return r;default:var n=r&&r.$$typeof;switch(n){case f:case d:case v:case h:case s:return n;default:return t}}case a:return t}}}function r(e){return t(e)===p}var n,o,a,i,u,c,s,f,l,p,d,y,m,h,v,b,g,w,_,S,j,O,k,E,C,P,R,x,$,T;"production"!==e.env.NODE_ENV&&(n="function"==typeof Symbol&&Symbol.for,o=n?Symbol.for("react.element"):60103,a=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,u=n?Symbol.for("react.strict_mode"):60108,c=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,f=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,y=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,b=n?Symbol.for("react.block"):60121,g=n?Symbol.for("react.fundamental"):60117,w=n?Symbol.for("react.responder"):60118,_=n?Symbol.for("react.scope"):60119,S=p,j=f,O=s,k=o,E=d,C=i,P=v,R=h,x=a,$=c,e=u,n=y,T=!1,N.AsyncMode=l,N.ConcurrentMode=S,N.ContextConsumer=j,N.ContextProvider=O,N.Element=k,N.ForwardRef=E,N.Fragment=C,N.Lazy=P,N.Memo=R,N.Portal=x,N.Profiler=$,N.StrictMode=e,N.Suspense=n,N.isAsyncMode=function(e){return T||(T=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),r(e)||t(e)===l},N.isConcurrentMode=r,N.isContextConsumer=function(e){return t(e)===f},N.isContextProvider=function(e){return t(e)===s},N.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},N.isForwardRef=function(e){return t(e)===d},N.isFragment=function(e){return t(e)===i},N.isLazy=function(e){return t(e)===v},N.isMemo=function(e){return t(e)===h},N.isPortal=function(e){return t(e)===a},N.isProfiler=function(e){return t(e)===c},N.isStrictMode=function(e){return t(e)===u},N.isSuspense=function(e){return t(e)===y},N.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===p||e===c||e===u||e===y||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===h||e.$$typeof===s||e.$$typeof===f||e.$$typeof===d||e.$$typeof===g||e.$$typeof===w||e.$$typeof===_||e.$$typeof===b)},N.typeOf=t)}.call(this,e("ofxWKs"))},{ofxWKs:2}],9:[function(e,t,r){"use strict";var n="function"==typeof Symbol&&Symbol.for,o=n?Symbol.for("react.element"):60103,a=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,u=n?Symbol.for("react.strict_mode"):60108,c=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,f=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,y=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,b=n?Symbol.for("react.block"):60121,g=n?Symbol.for("react.fundamental"):60117,w=n?Symbol.for("react.responder"):60118,_=n?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case l:case p:case i:case c:case u:case y:return e;default:switch(e=e&&e.$$typeof){case f:case d:case v:case h:case s:return e;default:return t}}case a:return t}}}function j(e){return S(e)===p}r.AsyncMode=l,r.ConcurrentMode=p,r.ContextConsumer=f,r.ContextProvider=s,r.Element=o,r.ForwardRef=d,r.Fragment=i,r.Lazy=v,r.Memo=h,r.Portal=a,r.Profiler=c,r.StrictMode=u,r.Suspense=y,r.isAsyncMode=function(e){return j(e)||S(e)===l},r.isConcurrentMode=j,r.isContextConsumer=function(e){return S(e)===f},r.isContextProvider=function(e){return S(e)===s},r.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},r.isForwardRef=function(e){return S(e)===d},r.isFragment=function(e){return S(e)===i},r.isLazy=function(e){return S(e)===v},r.isMemo=function(e){return S(e)===h},r.isPortal=function(e){return S(e)===a},r.isProfiler=function(e){return S(e)===c},r.isStrictMode=function(e){return S(e)===u},r.isSuspense=function(e){return S(e)===y},r.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===p||e===c||e===u||e===y||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===h||e.$$typeof===s||e.$$typeof===f||e.$$typeof===d||e.$$typeof===g||e.$$typeof===w||e.$$typeof===_||e.$$typeof===b)},r.typeOf=S},{}],10:[function(t,r,e){!function(e){"use strict";"production"===e.env.NODE_ENV?r.exports=t("./cjs/react-is.production.min.js"):r.exports=t("./cjs/react-is.development.js")}.call(this,t("ofxWKs"))},{"./cjs/react-is.development.js":8,"./cjs/react-is.production.min.js":9,ofxWKs:2}],11:[function(Ue,e,qe){!function(e){"use strict";"production"!==e.env.NODE_ENV&&function(){var y=Ue("object-assign"),b=60103,g=60106;qe.Fragment=60107,qe.StrictMode=60108,qe.Profiler=60114;var i=60109,u=60110,c=60112;qe.Suspense=60113;var s=60120,f=60115,l=60116,p=60121,t=60122,r=60117,n=60129,o=60131;"function"==typeof Symbol&&Symbol.for&&(b=(D=Symbol.for)("react.element"),g=D("react.portal"),qe.Fragment=D("react.fragment"),qe.StrictMode=D("react.strict_mode"),qe.Profiler=D("react.profiler"),i=D("react.provider"),u=D("react.context"),c=D("react.forward_ref"),qe.Suspense=D("react.suspense"),s=D("react.suspense_list"),f=D("react.memo"),l=D("react.lazy"),p=D("react.block"),t=D("react.server.block"),r=D("react.fundamental"),D("react.scope"),D("react.opaque.id"),n=D("react.debug_trace_mode"),D("react.offscreen"),o=D("react.legacy_hidden"));var a="function"==typeof Symbol&&Symbol.iterator,d="@@iterator";function w(e){if(null===e||"object"!=typeof e)return null;e=a&&e[a]||e[d];return"function"==typeof e?e:null}var m={current:null},_={current:null},h={},v=null;function S(e){v=e}h.setExtraStackFrame=function(e){v=e},h.getCurrentStack=null,h.getStackAddendum=function(){var e="";v&&(e+=v);var t=h.getCurrentStack;return t&&(e+=t()||""),e};var j={ReactCurrentDispatcher:m,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:_,IsSomeRendererActing:{current:!1},assign:y};function O(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];E("warn",e,r)}function k(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];E("error",e,r)}function E(e,t,r){var n=j.ReactDebugCurrentFrame.getStackAddendum();""!==n&&(t+="%s",r=r.concat([n]));r=r.map(function(e){return""+e});r.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,r)}j.ReactDebugCurrentFrame=h;var C={};function P(e,t){var r=e.constructor,e=r&&(r.displayName||r.name)||"ReactClass",r=e+"."+t;C[r]||(k("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,e),C[r]=!0)}var R={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,r){P(e,"forceUpdate")},enqueueReplaceState:function(e,t,r,n){P(e,"replaceState")},enqueueSetState:function(e,t,r,n){P(e,"setState")}},x={};function $(e,t,r){this.props=e,this.context=t,this.refs=x,this.updater=r||R}Object.freeze(x),$.prototype.isReactComponent={},$.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},$.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var e,T={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(e in T)T.hasOwnProperty(e)&&function(e,t){Object.defineProperty($.prototype,e,{get:function(){O("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})}(e,T[e]);function N(){}function I(e,t,r){this.props=e,this.context=t,this.refs=x,this.updater=r||R}N.prototype=$.prototype;var D=I.prototype=new N;function M(e){return e.displayName||"Context"}function A(e){if(null==e)return null;if("number"==typeof e.tag&&k("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case qe.Fragment:return"Fragment";case g:return"Portal";case qe.Profiler:return"Profiler";case qe.StrictMode:return"StrictMode";case qe.Suspense:return"Suspense";case s:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case u:return M(e)+".Consumer";case i:return M(e._context)+".Provider";case c:return t=e.render,r="ForwardRef",t=t.displayName||t.name||"",e.displayName||(""!==t?r+"("+t+")":r);case f:return A(e.type);case p:return A(e._render);case l:t=e._payload,r=e._init;try{return A(r(t))}catch(e){return null}}var t,r;return null}D.constructor=I,y(D,$.prototype),D.isPureReactComponent=!0;var F,W,V=Object.prototype.hasOwnProperty,L={key:!0,ref:!0,__self:!0,__source:!0};function U(e){if(V.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return}return void 0!==e.ref}function q(e){if(V.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return}return void 0!==e.key}var z={},Y=function(e,t,r,n,o,a,i){a={$$typeof:b,type:e,key:t,ref:r,props:i,_owner:a,_store:{}};return Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function K(e,t,r){var n,o,a,i={},u=null,c=null,s=null,f=null;if(null!=t)for(n in U(t)&&(c=t.ref,"string"==typeof(o=t).ref&&_.current&&o.__self&&_.current.stateNode!==o.__self&&(a=A(_.current.type),z[a]||(k('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',a,o.ref),z[a]=!0))),q(t)&&(u=""+t.key),s=void 0===t.__self?null:t.__self,f=void 0===t.__source?null:t.__source,t)V.call(t,n)&&!L.hasOwnProperty(n)&&(i[n]=t[n]);var l,p,d,y=arguments.length-2;if(1==y)i.children=r;else if(1<y){for(var m=Array(y),h=0;h<y;h++)m[h]=arguments[h+2];Object.freeze&&Object.freeze(m),i.children=m}if(e&&e.defaultProps){var v=e.defaultProps;for(n in v)void 0===i[n]&&(i[n]=v[n])}function b(){W||(W=!0,k("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",l))}function g(){F||(F=!0,k("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",d))}return(u||c)&&(r="function"==typeof e?e.displayName||e.name||"Unknown":e,u&&(p=i,d=r,g.isReactWarning=!0,Object.defineProperty(p,"key",{get:g,configurable:!0})),c&&(p=i,l=r,b.isReactWarning=!0,Object.defineProperty(p,"ref",{get:b,configurable:!0}))),Y(e,u,c,s,f,_.current,i)}function B(e){return"object"==typeof e&&null!==e&&e.$$typeof===b}var H=".",J=":";var Q=!1,X=/\/+/g;function G(e){return e.replace(X,"$&/")}function Z(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(e=""+e.key,r={"=":"=0",":":"=2"},"$"+e.replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var r}function ee(e,t,r,n,o){var a,i=typeof e,u=!1;if(null===(e="undefined"==i||"boolean"==i?null:e))u=!0;else switch(i){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case b:case g:u=!0}}if(u){var c,s=e,f=o(s),l=""===n?H+Z(s,0):n;return Array.isArray(f)?(c="",ee(f,t,c=null!=l?G(l)+"/":c,"",function(e){return e})):null!=f&&(B(f)&&(l=r+(!(c=f).key||s&&s.key===f.key?"":G(""+f.key)+"/")+l,f=Y(c.type,l,c.ref,c._self,c._source,c._owner,c.props)),t.push(f)),1}var p=0,d=""===n?H:n+J;if(Array.isArray(e))for(var y=0;y<e.length;y++)p+=ee(a=e[y],t,r,d+Z(a,y),o);else{f=w(e);if("function"==typeof f){n=e;f===n.entries&&(Q||O("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Q=!0);for(var m,h=f.call(n),v=0;!(m=h.next()).done;)p+=ee(a=m.value,t,r,d+Z(a,v++),o)}else if("object"==i){i=""+e;throw Error("Objects are not valid as a React child (found: "+("[object Object]"==i?"object with keys {"+Object.keys(e).join(", ")+"}":i)+"). If you meant to render a collection of children, use an array instead.")}}return p}function te(e,t,r){if(null==e)return e;var n=[],o=0;return ee(e,n,"","",function(e){return t.call(r,e,o++)}),n}var re=-1,ne=0,oe=1,ae=2;function ie(r){var e,t;if(r._status===re&&(e=(0,r._result)(),(t=r)._status=ne,(t._result=e).then(function(e){var t;r._status===ne&&(void 0===(t=e.default)&&k("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",e),(e=r)._status=oe,e._result=t)},function(e){var t;r._status===ne&&((t=r)._status=ae,t._result=e)})),r._status===oe)return r._result;throw r._result}var ue=!1;function ce(e){return"string"==typeof e||"function"==typeof e||(!(e!==qe.Fragment&&e!==qe.Profiler&&e!==n&&e!==qe.StrictMode&&e!==qe.Suspense&&e!==s&&e!==o&&!ue)||"object"==typeof e&&null!==e&&(e.$$typeof===l||e.$$typeof===f||e.$$typeof===i||e.$$typeof===u||e.$$typeof===c||e.$$typeof===r||e.$$typeof===p||e[0]===t))}function se(){var e=m.current;if(null===e)throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.");return e}var fe,le,pe,de,ye,me,he,ve=0;function be(){}var ge,we=j.ReactCurrentDispatcher;function _e(e){if(void 0===ge)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);ge=t&&t[1]||""}return"\n"+ge+e}var Se=!(be.__reactDisabledLog=!0),je=new("function"==typeof WeakMap?WeakMap:Map);function Oe(t,e){if(!t||Se)return"";var r,n=je.get(t);if(void 0!==n)return n;Se=!0;var o,a=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=we.current,we.current=null,0===ve&&(fe=console.log,le=console.info,pe=console.warn,de=console.error,ye=console.group,me=console.groupCollapsed,he=console.groupEnd,n={configurable:!0,enumerable:!0,value:be,writable:!0},Object.defineProperties(console,{info:n,log:n,warn:n,error:n,group:n,groupCollapsed:n,groupEnd:n})),ve++;try{if(e){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(i,[])}catch(e){r=e}Reflect.construct(t,[],i)}else{try{i.call()}catch(e){r=e}t.call(i.prototype)}}else{try{throw Error()}catch(e){r=e}t()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var u=e.stack.split("\n"),c=r.stack.split("\n"),s=u.length-1,f=c.length-1;1<=s&&0<=f&&u[s]!==c[f];)f--;for(;1<=s&&0<=f;s--,f--)if(u[s]!==c[f]){if(1!==s||1!==f)do{if(s--,--f<0||u[s]!==c[f]){var l="\n"+u[s].replace(" at new "," at ");return"function"==typeof t&&je.set(t,l),l}}while(1<=s&&0<=f);break}}}finally{Se=!1,we.current=o,0===--ve&&(o={configurable:!0,enumerable:!0,writable:!0},Object.defineProperties(console,{log:y({},o,{value:fe}),info:y({},o,{value:le}),warn:y({},o,{value:pe}),error:y({},o,{value:de}),group:y({},o,{value:ye}),groupCollapsed:y({},o,{value:me}),groupEnd:y({},o,{value:he})})),ve<0&&k("disabledDepth fell below zero. This is a bug in React. Please file an issue."),Error.prepareStackTrace=a}a=t?t.displayName||t.name:"",a=a?_e(a):"";return"function"==typeof t&&je.set(t,a),a}function ke(e){return Oe(e,!1)}function Ee(e,t,r){if(null==e)return"";if("function"==typeof e)return Oe(e,!(!(n=(n=e).prototype)||!n.isReactComponent));var n;if("string"==typeof e)return _e(e);switch(e){case qe.Suspense:return _e("Suspense");case s:return _e("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case c:return ke(e.render);case f:return Ee(e.type,t,r);case p:return ke(e._render);case l:var o=e._payload,a=e._init;try{return Ee(a(o),t,r)}catch(e){}}return""}var Ce={},Pe=j.ReactDebugCurrentFrame;function Re(e){var t;e?(t=e._owner,t=Ee(e.type,e._source,t?t.type:null),Pe.setExtraStackFrame(t)):Pe.setExtraStackFrame(null)}function xe(e){var t;e?(t=e._owner,S(Ee(e.type,e._source,t?t.type:null))):S(null)}function $e(){if(_.current){var e=A(_.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}var Te=!1,Ne={};function Ie(e,t){var r;e._store&&!e._store.validated&&null==e.key&&(e._store.validated=!0,r=t,(t=$e())||(r="string"==typeof r?r:r.displayName||r.name)&&(t="\n\nCheck the top-level render call using <"+r+">."),Ne[r=t]||(Ne[r]=!0,t="",e&&e._owner&&e._owner!==_.current&&(t=" It was passed a child from "+A(e._owner.type)+"."),xe(e),k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,t),xe(null)))}function De(e,t){if("object"==typeof e)if(Array.isArray(e))for(var r=0;r<e.length;r++){var n=e[r];B(n)&&Ie(n,t)}else if(B(e))e._store&&(e._store.validated=!0);else if(e){var o=w(e);if("function"==typeof o&&o!==e.entries)for(var a,i=o.call(e);!(a=i.next()).done;)B(a.value)&&Ie(a.value,t)}}function Me(e){var t,r,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==c&&n.$$typeof!==f)return;t=n.propTypes}t?(r=A(n),function(e,t,r,n,o){var a,i=Function.call.bind(Object.prototype.hasOwnProperty);for(a in e)if(i(e,a)){var u=void 0;try{if("function"!=typeof e[a]){var c=Error((n||"React class")+": "+r+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw c.name="Invariant Violation",c}u=e[a](t,a,n,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){u=e}!u||u instanceof Error||(Re(o),k("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",r,a,typeof u),Re(null)),u instanceof Error&&!(u.message in Ce)&&(Ce[u.message]=!0,Re(o),k("Failed %s type: %s",r,u.message),Re(null))}}(t,e.props,"prop",r,e)):void 0===n.PropTypes||Te||(Te=!0,k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",A(n)||"Unknown")),"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ae(e,t,r){var n,o=ce(e);o||(a="",(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),a+=(null==(t=t)||void 0===(t=t.__source)?"":"\n\nCheck your code at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+".")||$e(),null===e?n="null":Array.isArray(e)?n="array":void 0!==e&&e.$$typeof===b?(n="<"+(A(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):n=typeof e,k("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",n,a));var a=K.apply(this,arguments);if(null==a)return a;if(o)for(var i=2;i<arguments.length;i++)De(arguments[i],e);return(e===qe.Fragment?function(e){for(var t=Object.keys(e.props),r=0;r<t.length;r++){var n=t[r];if("children"!==n&&"key"!==n){xe(e),k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),xe(null);break}}null!==e.ref&&(xe(e),k("Invalid attribute `ref` supplied to `React.Fragment`."),xe(null))}:Me)(a),a}var Fe=!1;try{var We=Object.freeze({});new Map([[We,null]]),new Set([We])}catch(e){}function Ve(e,t,r){for(var n=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n,o,a=y({},e.props),i=e.key,u=e.ref,c=e._self,s=e._source,f=e._owner;if(null!=t)for(n in U(t)&&(u=t.ref,f=_.current),q(t)&&(i=""+t.key),e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)V.call(t,n)&&!L.hasOwnProperty(n)&&(void 0===t[n]&&void 0!==o?a[n]=o[n]:a[n]=t[n]);var l=arguments.length-2;if(1==l)a.children=r;else if(1<l){for(var p=Array(l),d=0;d<l;d++)p[d]=arguments[d+2];a.children=p}return Y(e.type,i,u,c,s,f,a)}.apply(this,arguments),o=2;o<arguments.length;o++)De(arguments[o],n.type);return Me(n),n}function Le(e){var t=Ae.bind(null,e);return t.type=e,Fe||(Fe=!0,O("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(t,"type",{enumerable:!1,get:function(){return O("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t}We=Ae;qe.Children={map:te,forEach:function(e,t,r){te(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return te(e,function(){t++}),t},toArray:function(e){return te(e,function(e){return e})||[]},only:function(e){if(!B(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},qe.Component=$,qe.PureComponent=I,qe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=j,qe.cloneElement=Ve,qe.createContext=function(e,t){void 0===t?t=null:null!==t&&"function"!=typeof t&&k("createContext: Expected the optional second argument to be a function. Instead received: %s",t);var r={$$typeof:u,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},n=!(r.Provider={$$typeof:i,_context:r}),o=!1,a=!1,e={$$typeof:u,_context:r,_calculateChangedBits:r._calculateChangedBits};return Object.defineProperties(e,{Provider:{get:function(){return o||(o=!0,k("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),r.Provider},set:function(e){r.Provider=e}},_currentValue:{get:function(){return r._currentValue},set:function(e){r._currentValue=e}},_currentValue2:{get:function(){return r._currentValue2},set:function(e){r._currentValue2=e}},_threadCount:{get:function(){return r._threadCount},set:function(e){r._threadCount=e}},Consumer:{get:function(){return n||(n=!0,k("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),r.Consumer}},displayName:{get:function(){return r.displayName},set:function(e){a||(O("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",e),a=!0)}}}),r.Consumer=e,r._currentRenderer=null,r._currentRenderer2=null,r},qe.createElement=We,qe.createFactory=Le,qe.createRef=function(){var e={current:null};return Object.seal(e),e},qe.forwardRef=function(t){null!=t&&t.$$typeof===f?k("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof t?k("forwardRef requires a render function but was given %s.",null===t?"null":typeof t):0!==t.length&&2!==t.length&&k("forwardRef render functions accept exactly two parameters: props and ref. %s",1===t.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=t&&(null==t.defaultProps&&null==t.propTypes||k("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"));var r,e={$$typeof:c,render:t};return Object.defineProperty(e,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(e){r=e,null==t.displayName&&(t.displayName=e)}}),e},qe.isValidElement=B,qe.lazy=function(e){var t,r,n={$$typeof:l,_payload:{_status:-1,_result:e},_init:ie};return Object.defineProperties(n,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){k("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(n,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return r},set:function(e){k("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),r=e,Object.defineProperty(n,"propTypes",{enumerable:!0})}}}),n},qe.memo=function(t,e){ce(t)||k("memo: The first argument must be a component. Instead received: %s",null===t?"null":typeof t);var r,e={$$typeof:f,type:t,compare:void 0===e?null:e};return Object.defineProperty(e,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(e){r=e,null==t.displayName&&(t.displayName=e)}}),e},qe.useCallback=function(e,t){return se().useCallback(e,t)},qe.useContext=function(e,t){var r,n=se();return void 0!==t&&k("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",t,"number"==typeof t&&Array.isArray(arguments[2])?"\n\nDid you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://reactjs.org/link/rules-of-hooks":""),void 0!==e._context&&((r=e._context).Consumer===e?k("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):r.Provider===e&&k("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")),n.useContext(e,t)},qe.useDebugValue=function(e,t){return se().useDebugValue(e,t)},qe.useEffect=function(e,t){return se().useEffect(e,t)},qe.useImperativeHandle=function(e,t,r){return se().useImperativeHandle(e,t,r)},qe.useLayoutEffect=function(e,t){return se().useLayoutEffect(e,t)},qe.useMemo=function(e,t){return se().useMemo(e,t)},qe.useReducer=function(e,t,r){return se().useReducer(e,t,r)},qe.useRef=function(e){return se().useRef(e)},qe.useState=function(e){return se().useState(e)},qe.version="17.0.2"}()}.call(this,Ue("ofxWKs"))},{"object-assign":1,ofxWKs:2}],12:[function(e,t,r){"use strict";var f=e("object-assign"),l=60103,p=60106;r.Fragment=60107,r.StrictMode=60108,r.Profiler=60114;var n=60109,o=60110,a=60112;r.Suspense=60113;var i=60115,u=60116;"function"==typeof Symbol&&Symbol.for&&(l=(b=Symbol.for)("react.element"),p=b("react.portal"),r.Fragment=b("react.fragment"),r.StrictMode=b("react.strict_mode"),r.Profiler=b("react.profiler"),n=b("react.provider"),o=b("react.context"),a=b("react.forward_ref"),r.Suspense=b("react.suspense"),i=b("react.memo"),u=b("react.lazy"));var d="function"==typeof Symbol&&Symbol.iterator;function y(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var c={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},s={};function m(e,t,r){this.props=e,this.context=t,this.refs=s,this.updater=r||c}function h(){}function v(e,t,r){this.props=e,this.context=t,this.refs=s,this.updater=r||c}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(y(85));this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},h.prototype=m.prototype;var b=v.prototype=new h;b.constructor=v,f(b,m.prototype),b.isPureReactComponent=!0;var g={current:null},w=Object.prototype.hasOwnProperty,_={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,r){var n,o={},a=null,i=null;if(null!=t)for(n in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(a=""+t.key),t)w.call(t,n)&&!_.hasOwnProperty(n)&&(o[n]=t[n]);var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){for(var c=Array(u),s=0;s<u;s++)c[s]=arguments[s+2];o.children=c}if(e&&e.defaultProps)for(n in u=e.defaultProps)void 0===o[n]&&(o[n]=u[n]);return{$$typeof:l,type:e,key:a,ref:i,props:o,_owner:g.current}}function j(e){return"object"==typeof e&&null!==e&&e.$$typeof===l}var O=/\/+/g;function k(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(e=""+e.key,r={"=":"=0",":":"=2"},"$"+e.replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var r}function E(e,t,r,n,o){var a,i,u=!1;if(null===(e="undefined"===(s=typeof e)||"boolean"===s?null:e))u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case l:case p:u=!0}}if(u)return o=o(u=e),e=""===n?"."+k(u,0):n,Array.isArray(o)?(r="",E(o,t,r=null!=e?e.replace(O,"$&/")+"/":r,"",function(e){return e})):null!=o&&(j(o)&&(a=r+(!(i=o).key||u&&u.key===o.key?"":(""+o.key).replace(O,"$&/")+"/")+e,o={$$typeof:l,type:i.type,key:a,ref:i.ref,props:i.props,_owner:i._owner}),t.push(o)),1;if(u=0,n=""===n?".":n+":",Array.isArray(e))for(var c=0;c<e.length;c++){var s,f=n+k(s=e[c],c);u+=E(s,t,r,f,o)}else if("function"==typeof(f=null!==(i=e)&&"object"==typeof i&&"function"==typeof(i=d&&i[d]||i["@@iterator"])?i:null))for(e=f.call(e),c=0;!(s=e.next()).done;)u+=E(s=s.value,t,r,f=n+k(s,c++),o);else if("object"===s)throw t=""+e,Error(y(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return u}function C(e,t,r){if(null==e)return e;var n=[],o=0;return E(e,n,"","",function(e){return t.call(r,e,o++)}),n}function P(t){var e;if(-1===t._status&&(e=(e=t._result)(),t._status=0,(t._result=e).then(function(e){0===t._status&&(e=e.default,t._status=1,t._result=e)},function(e){0===t._status&&(t._status=2,t._result=e)})),1===t._status)return t._result;throw t._result}var R={current:null};function x(){var e=R.current;if(null===e)throw Error(y(321));return e}b={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:g,IsSomeRendererActing:{current:!1},assign:f};r.Children={map:C,forEach:function(e,t,r){C(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return C(e,function(){t++}),t},toArray:function(e){return C(e,function(e){return e})||[]},only:function(e){if(!j(e))throw Error(y(143));return e}},r.Component=m,r.PureComponent=v,r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=b,r.cloneElement=function(e,t,r){if(null==e)throw Error(y(267,e));var n=f({},e.props),o=e.key,a=e.ref,i=e._owner;if(null!=t)for(u in void 0!==t.ref&&(a=t.ref,i=g.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps&&(c=e.type.defaultProps),t)w.call(t,u)&&!_.hasOwnProperty(u)&&(n[u]=(void 0===t[u]&&void 0!==c?c:t)[u]);var u=arguments.length-2;if(1===u)n.children=r;else if(1<u){for(var c=Array(u),s=0;s<u;s++)c[s]=arguments[s+2];n.children=c}return{$$typeof:l,type:e.type,key:o,ref:a,props:n,_owner:i}},r.createContext=function(e,t){return(e={$$typeof:o,_calculateChangedBits:t=void 0===t?null:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:n,_context:e},e.Consumer=e},r.createElement=S,r.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},r.createRef=function(){return{current:null}},r.forwardRef=function(e){return{$$typeof:a,render:e}},r.isValidElement=j,r.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:P}},r.memo=function(e,t){return{$$typeof:i,type:e,compare:void 0===t?null:t}},r.useCallback=function(e,t){return x().useCallback(e,t)},r.useContext=function(e,t){return x().useContext(e,t)},r.useDebugValue=function(){},r.useEffect=function(e,t){return x().useEffect(e,t)},r.useImperativeHandle=function(e,t,r){return x().useImperativeHandle(e,t,r)},r.useLayoutEffect=function(e,t){return x().useLayoutEffect(e,t)},r.useMemo=function(e,t){return x().useMemo(e,t)},r.useReducer=function(e,t,r){return x().useReducer(e,t,r)},r.useRef=function(e){return x().useRef(e)},r.useState=function(e){return x().useState(e)},r.version="17.0.2"},{"object-assign":1}],13:[function(t,r,e){!function(e){"use strict";"production"===e.env.NODE_ENV?r.exports=t("./cjs/react.production.min.js"):r.exports=t("./cjs/react.development.js")}.call(this,t("ofxWKs"))},{"./cjs/react.development.js":11,"./cjs/react.production.min.js":12,ofxWKs:2}],14:[function(e,t,r){"use strict";function i(e){return(i="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)}var a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};t=c(t);if(t&&t.has(e))return t.get(e);var r,n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(r in e){var a;"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&((a=o?Object.getOwnPropertyDescriptor(e,r):null)&&(a.get||a.set)?Object.defineProperty(n,r,a):n[r]=e[r])}n.default=e,t&&t.set(e,n);return n}(e("react")),u=(n=e("prop-types"))&&n.__esModule?n:{default:n};function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=o(r);return function(e,t){{if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined")}return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n?(e=o(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments))}}function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var n,p,d=function(){!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&&f(e,t)}(o,a.Component);var e,t,r,n=l(o);function o(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(e=n.call(this,e)).state={error:null,isLoading:!0,form:null},e}return e=o,r=[{key:"propTypes",get:function(){return{form_id:u.default.number,show_title:u.default.string,show_desc:u.default.string}}}],(t=[{key:"componentDidUpdate",value:function(e){e.form_id===this.props.form_id&&e.show_title===this.props.show_title&&e.show_desc===this.props.show_desc||this.componentDidMount()}},{key:"componentDidMount",value:function(){var t=this,e=new FormData;e.append("nonce",wpforms_divi_builder.nonce),e.append("action","wpforms_divi_preview"),e.append("form_id",this.props.form_id),e.append("show_title",this.props.show_title),e.append("show_desc",this.props.show_desc),fetch(wpforms_divi_builder.ajax_url,{method:"POST",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/x-www-form-urlencoded","Cache-Control":"no-cache"},body:new URLSearchParams(e)}).then(function(e){return e.json()}).then(function(e){t.setState({isLoading:!1,form:e.data})},function(e){t.setState({isLoading:!1,error:e})})}},{key:"render",value:function(){var e=this.state,t=e.error,r=e.isLoaded,e=e.form;return t||!e?a.default.createElement("div",{className:"wpforms-divi-form-placeholder"},a.default.createElement("img",{src:wpforms_divi_builder.placeholder}),a.default.createElement("h3",null,wpforms_divi_builder.placeholder_title)):a.default.createElement("div",{className:r?"wpforms-divi-form-preview loading":"wpforms-divi-form-preview"},a.default.createElement("div",{dangerouslySetInnerHTML:{__html:e}}))}}])&&s(e.prototype,t),r&&s(e,r),o}();p="wpforms_selector",(e="slug")in(n=d)?Object.defineProperty(n,e,{value:p,enumerable:!0,configurable:!0,writable:!0}):n[e]=p,jQuery(window).on("et_builder_api_ready",function(e,t){t.registerModules([d])}).on("wpformsDiviModuleDisplay",function(e){window.wpforms.init()}),jQuery(document).on("wpformsReady",function(e){var t=jQuery;t(".choicesjs-select").each(function(){var e=t(this).data("choicesjs");e&&"function"==typeof e.disable&&e.disable()})})},{"prop-types":6,react:13}]},{},[14]);
1
+ !function n(o,a,i){function u(r,e){if(!a[r]){if(!o[r]){var t="function"==typeof require&&require;if(!e&&t)return t(r,!0);if(c)return c(r,!0);throw new Error("Cannot find module '"+r+"'")}t=a[r]={exports:{}};o[r][0].call(t.exports,function(e){var t=o[r][1][e];return u(t||e)},t,t.exports,n,o,a,i)}return a[r].exports}for(var c="function"==typeof require&&require,e=0;e<i.length;e++)u(i[e]);return u}({1:[function(e,t,r){"use strict";var c=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(e){n[e]=e}),"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},n)).join("")?void 0:1}catch(e){return}}()?Object.assign:function(e,t){for(var r,n=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),o=1;o<arguments.length;o++){for(var a in r=Object(arguments[o]))s.call(r,a)&&(n[a]=r[a]);if(c)for(var i=c(r),u=0;u<i.length;u++)f.call(r,i[u])&&(n[i[u]]=r[i[u]])}return n}},{}],2:[function(e,t,r){t=t.exports={};function n(){}t.nextTick=function(){var e="undefined"!=typeof window&&window.setImmediate,t="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(e)return function(e){return window.setImmediate(e)};if(t){var r=[];return window.addEventListener("message",function(e){var t=e.source;t!==window&&null!==t||"process-tick"!==e.data||(e.stopPropagation(),0<r.length&&r.shift()())},!0),function(e){r.push(e),window.postMessage("process-tick","*")}}return function(e){setTimeout(e,0)}}(),t.title="browser",t.browser=!0,t.env={},t.argv=[],t.on=n,t.addListener=n,t.once=n,t.off=n,t.removeListener=n,t.removeAllListeners=n,t.emit=n,t.binding=function(e){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(e){throw new Error("process.chdir is not supported")}},{}],3:[function(t,r,e){!function(c){"use strict";var s,f,l,p=function(){};function e(e,t,r,n,o){if("production"!==c.env.NODE_ENV)for(var a in e)if(l(e,a)){var i;try{if("function"!=typeof e[a]){var u=Error((n||"React class")+": "+r+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.");throw u.name="Invariant Violation",u}i=e[a](t,a,n,r,null,s)}catch(e){i=e}!i||i instanceof Error||p((n||"React class")+": type specification of "+r+" `"+a+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof i+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),i instanceof Error&&!(i.message in f)&&(f[i.message]=!0,a=o?o():"",p("Failed "+r+" type: "+i.message+(null!=a?a:"")))}}"production"!==c.env.NODE_ENV&&(s=t("./lib/ReactPropTypesSecret"),f={},l=Function.call.bind(Object.prototype.hasOwnProperty),p=function(e){e="Warning: "+e;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(e){}}),e.resetWarningCache=function(){"production"!==c.env.NODE_ENV&&(f={})},r.exports=e}.call(this,t("Xp6JUx"))},{"./lib/ReactPropTypesSecret":7,Xp6JUx:2}],4:[function(e,t,r){"use strict";var i=e("./lib/ReactPropTypesSecret");function n(){}function o(){}o.resetWarningCache=n,t.exports=function(){function e(e,t,r,n,o,a){if(a!==i){a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}var r={array:e.isRequired=e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:n};return r.PropTypes=r}},{"./lib/ReactPropTypesSecret":7}],5:[function(e,t,r){!function(y){"use strict";var m=e("react-is"),h=e("object-assign"),v=e("./lib/ReactPropTypesSecret"),n=e("./checkPropTypes"),b=Function.call.bind(Object.prototype.hasOwnProperty),g=function(){};function o(){return null}"production"!==y.env.NODE_ENV&&(g=function(e){e="Warning: "+e;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(e){}}),t.exports=function(a,l){var i="function"==typeof Symbol&&Symbol.iterator,u="@@iterator";var p="<<anonymous>>",e={array:t("array"),bool:t("boolean"),func:t("function"),number:t("number"),object:t("object"),string:t("string"),symbol:t("symbol"),any:r(o),arrayOf:function(c){return r(function(e,t,r,n,o){if("function"!=typeof c)return new d("Property `"+o+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var a=e[t];if(!Array.isArray(a))return new d("Invalid "+n+" `"+o+"` of type `"+f(a)+"` supplied to `"+r+"`, expected an array.");for(var i=0;i<a.length;i++){var u=c(a,i,r,n,o+"["+i+"]",v);if(u instanceof Error)return u}return null})},element:r(function(e,t,r,n,o){return t=e[t],a(t)?null:new d("Invalid "+n+" `"+o+"` of type `"+f(t)+"` supplied to `"+r+"`, expected a single ReactElement.")}),elementType:r(function(e,t,r,n,o){return t=e[t],m.isValidElementType(t)?null:new d("Invalid "+n+" `"+o+"` of type `"+f(t)+"` supplied to `"+r+"`, expected a single ReactElement type.")}),instanceOf:function(i){return r(function(e,t,r,n,o){if(e[t]instanceof i)return null;var a=i.name||p;return new d("Invalid "+n+" `"+o+"` of type `"+((t=e[t]).constructor&&t.constructor.name?t.constructor.name:p)+"` supplied to `"+r+"`, expected instance of `"+a+"`.")})},node:r(function(e,t,r,n,o){return c(e[t])?null:new d("Invalid "+n+" `"+o+"` supplied to `"+r+"`, expected a ReactNode.")}),objectOf:function(c){return r(function(e,t,r,n,o){if("function"!=typeof c)return new d("Property `"+o+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var a,i=e[t];if("object"!==(t=f(i)))return new d("Invalid "+n+" `"+o+"` of type `"+t+"` supplied to `"+r+"`, expected an object.");for(a in i)if(b(i,a)){var u=c(i,a,r,n,o+"."+a,v);if(u instanceof Error)return u}return null})},oneOf:function(u){if(Array.isArray(u))return r(function(e,t,r,n,o){for(var a=e[t],i=0;i<u.length;i++)if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(a,u[i]))return null;t=JSON.stringify(u,function(e,t){return"symbol"===s(t)?String(t):t});return new d("Invalid "+n+" `"+o+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+t+".")});"production"!==y.env.NODE_ENV&&g(1<arguments.length?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array.");return o},oneOfType:function(i){if(!Array.isArray(i))return"production"!==y.env.NODE_ENV&&g("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var e=0;e<i.length;e++){var t=i[e];if("function"!=typeof t)return g("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+function(e){var t=s(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}(t)+" at index "+e+"."),o}return r(function(e,t,r,n,o){for(var a=0;a<i.length;a++)if(null==(0,i[a])(e,t,r,n,o,v))return null;return new d("Invalid "+n+" `"+o+"` supplied to `"+r+"`.")})},shape:function(c){return r(function(e,t,r,n,o){var a,i=e[t];if("object"!==(t=f(i)))return new d("Invalid "+n+" `"+o+"` of type `"+t+"` supplied to `"+r+"`, expected `object`.");for(a in c){var u=c[a];if(u){u=u(i,a,r,n,o+"."+a,v);if(u)return u}}return null})},exact:function(s){return r(function(e,t,r,n,o){var a,i=e[t],u=f(i);if("object"!==u)return new d("Invalid "+n+" `"+o+"` of type `"+u+"` supplied to `"+r+"`, expected `object`.");for(a in h({},e[t],s)){var c=s[a];if(!c)return new d("Invalid "+n+" `"+o+"` key `"+a+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(e[t],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(s),null," "));c=c(i,a,r,n,o+"."+a,v);if(c)return c}return null})}};function d(e){this.message=e,this.stack=""}function r(c){var s,f;function e(e,t,r,n,o,a,i){if(n=n||p,a=a||r,i!==v){if(l){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}"production"===y.env.NODE_ENV||"undefined"==typeof console||!s[u=n+":"+r]&&f<3&&(g("You are manually calling a React.PropTypes validation function for the `"+a+"` prop on `"+n+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),s[u]=!0,f++)}return null==t[r]?e?null===t[r]?new d("The "+o+" `"+a+"` is marked as required in `"+n+"`, but its value is `null`."):new d("The "+o+" `"+a+"` is marked as required in `"+n+"`, but its value is `undefined`."):null:c(t,r,n,o,a)}"production"!==y.env.NODE_ENV&&(s={},f=0);var t=e.bind(null,!1);return t.isRequired=e.bind(null,!0),t}function t(i){return r(function(e,t,r,n,o,a){return f(t=e[t])===i?null:new d("Invalid "+n+" `"+o+"` of type `"+s(t)+"` supplied to `"+r+"`, expected `"+i+"`.")})}function c(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(c);if(null===e||a(e))return!0;var t=function(e){if("function"==typeof(e=e&&(i&&e[i]||e[u])))return e}(e);if(!t)return!1;var r,n=t.call(e);if(t!==e.entries){for(;!(r=n.next()).done;)if(!c(r.value))return!1}else for(;!(r=n.next()).done;){var o=r.value;if(o&&!c(o[1]))return!1}return!0;default:return!1}}function f(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":(e=e,"symbol"===t||e&&("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)?"symbol":t)}function s(e){if(null==e)return""+e;var t=f(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}return d.prototype=Error.prototype,e.checkPropTypes=n,e.resetWarningCache=n.resetWarningCache,e.PropTypes=e}}.call(this,e("Xp6JUx"))},{"./checkPropTypes":3,"./lib/ReactPropTypesSecret":7,Xp6JUx:2,"object-assign":1,"react-is":10}],6:[function(t,r,e){!function(e){"production"!==e.env.NODE_ENV?(e=t("react-is"),r.exports=t("./factoryWithTypeCheckers")(e.isElement,!0)):r.exports=t("./factoryWithThrowingShims")()}.call(this,t("Xp6JUx"))},{"./factoryWithThrowingShims":4,"./factoryWithTypeCheckers":5,Xp6JUx:2,"react-is":10}],7:[function(e,t,r){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},{}],8:[function(e,t,N){!function(e){"use strict";function t(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:var r=e.type;switch(r){case l:case p:case i:case c:case u:case y:return r;default:var n=r&&r.$$typeof;switch(n){case f:case d:case v:case h:case s:return n;default:return t}}case a:return t}}}function r(e){return t(e)===p}var n,o,a,i,u,c,s,f,l,p,d,y,m,h,v,b,g,w,_,S,j,O,k,E,C,P,R,x,$,T;"production"!==e.env.NODE_ENV&&(n="function"==typeof Symbol&&Symbol.for,o=n?Symbol.for("react.element"):60103,a=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,u=n?Symbol.for("react.strict_mode"):60108,c=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,f=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,y=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,b=n?Symbol.for("react.block"):60121,g=n?Symbol.for("react.fundamental"):60117,w=n?Symbol.for("react.responder"):60118,_=n?Symbol.for("react.scope"):60119,S=p,j=f,O=s,k=o,E=d,C=i,P=v,R=h,x=a,$=c,e=u,n=y,T=!1,N.AsyncMode=l,N.ConcurrentMode=S,N.ContextConsumer=j,N.ContextProvider=O,N.Element=k,N.ForwardRef=E,N.Fragment=C,N.Lazy=P,N.Memo=R,N.Portal=x,N.Profiler=$,N.StrictMode=e,N.Suspense=n,N.isAsyncMode=function(e){return T||(T=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),r(e)||t(e)===l},N.isConcurrentMode=r,N.isContextConsumer=function(e){return t(e)===f},N.isContextProvider=function(e){return t(e)===s},N.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},N.isForwardRef=function(e){return t(e)===d},N.isFragment=function(e){return t(e)===i},N.isLazy=function(e){return t(e)===v},N.isMemo=function(e){return t(e)===h},N.isPortal=function(e){return t(e)===a},N.isProfiler=function(e){return t(e)===c},N.isStrictMode=function(e){return t(e)===u},N.isSuspense=function(e){return t(e)===y},N.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===p||e===c||e===u||e===y||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===h||e.$$typeof===s||e.$$typeof===f||e.$$typeof===d||e.$$typeof===g||e.$$typeof===w||e.$$typeof===_||e.$$typeof===b)},N.typeOf=t)}.call(this,e("Xp6JUx"))},{Xp6JUx:2}],9:[function(e,t,r){"use strict";var n="function"==typeof Symbol&&Symbol.for,o=n?Symbol.for("react.element"):60103,a=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,u=n?Symbol.for("react.strict_mode"):60108,c=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,f=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,y=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,b=n?Symbol.for("react.block"):60121,g=n?Symbol.for("react.fundamental"):60117,w=n?Symbol.for("react.responder"):60118,_=n?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case l:case p:case i:case c:case u:case y:return e;default:switch(e=e&&e.$$typeof){case f:case d:case v:case h:case s:return e;default:return t}}case a:return t}}}function j(e){return S(e)===p}r.AsyncMode=l,r.ConcurrentMode=p,r.ContextConsumer=f,r.ContextProvider=s,r.Element=o,r.ForwardRef=d,r.Fragment=i,r.Lazy=v,r.Memo=h,r.Portal=a,r.Profiler=c,r.StrictMode=u,r.Suspense=y,r.isAsyncMode=function(e){return j(e)||S(e)===l},r.isConcurrentMode=j,r.isContextConsumer=function(e){return S(e)===f},r.isContextProvider=function(e){return S(e)===s},r.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},r.isForwardRef=function(e){return S(e)===d},r.isFragment=function(e){return S(e)===i},r.isLazy=function(e){return S(e)===v},r.isMemo=function(e){return S(e)===h},r.isPortal=function(e){return S(e)===a},r.isProfiler=function(e){return S(e)===c},r.isStrictMode=function(e){return S(e)===u},r.isSuspense=function(e){return S(e)===y},r.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===p||e===c||e===u||e===y||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===h||e.$$typeof===s||e.$$typeof===f||e.$$typeof===d||e.$$typeof===g||e.$$typeof===w||e.$$typeof===_||e.$$typeof===b)},r.typeOf=S},{}],10:[function(t,r,e){!function(e){"use strict";"production"===e.env.NODE_ENV?r.exports=t("./cjs/react-is.production.min.js"):r.exports=t("./cjs/react-is.development.js")}.call(this,t("Xp6JUx"))},{"./cjs/react-is.development.js":8,"./cjs/react-is.production.min.js":9,Xp6JUx:2}],11:[function(qe,e,We){!function(e){"use strict";"production"!==e.env.NODE_ENV&&function(){var y=qe("object-assign"),b=60103,g=60106;We.Fragment=60107,We.StrictMode=60108,We.Profiler=60114;var i=60109,u=60110,c=60112;We.Suspense=60113;var s=60120,f=60115,l=60116,p=60121,t=60122,r=60117,n=60129,o=60131;"function"==typeof Symbol&&Symbol.for&&(b=(Le=Symbol.for)("react.element"),g=Le("react.portal"),We.Fragment=Le("react.fragment"),We.StrictMode=Le("react.strict_mode"),We.Profiler=Le("react.profiler"),i=Le("react.provider"),u=Le("react.context"),c=Le("react.forward_ref"),We.Suspense=Le("react.suspense"),s=Le("react.suspense_list"),f=Le("react.memo"),l=Le("react.lazy"),p=Le("react.block"),t=Le("react.server.block"),r=Le("react.fundamental"),Le("react.scope"),Le("react.opaque.id"),n=Le("react.debug_trace_mode"),Le("react.offscreen"),o=Le("react.legacy_hidden"));var a="function"==typeof Symbol&&Symbol.iterator,d="@@iterator";function w(e){if(null===e||"object"!=typeof e)return null;e=a&&e[a]||e[d];return"function"==typeof e?e:null}var m={current:null},_={current:null},h={},v=null;function S(e){v=e}h.setExtraStackFrame=function(e){v=e},h.getCurrentStack=null,h.getStackAddendum=function(){var e="";v&&(e+=v);var t=h.getCurrentStack;return t&&(e+=t()||""),e};var j={ReactCurrentDispatcher:m,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:_,IsSomeRendererActing:{current:!1},assign:y};function O(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];E("warn",e,r)}function k(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];E("error",e,r)}function E(e,t,r){var n=j.ReactDebugCurrentFrame.getStackAddendum();""!==n&&(t+="%s",r=r.concat([n]));r=r.map(function(e){return""+e});r.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,r)}j.ReactDebugCurrentFrame=h;var C={};function P(e,t){var r=e.constructor,e=r&&(r.displayName||r.name)||"ReactClass",r=e+"."+t;C[r]||(k("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,e),C[r]=!0)}var R={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,r){P(e,"forceUpdate")},enqueueReplaceState:function(e,t,r,n){P(e,"replaceState")},enqueueSetState:function(e,t,r,n){P(e,"setState")}},x={};function $(e,t,r){this.props=e,this.context=t,this.refs=x,this.updater=r||R}Object.freeze(x),$.prototype.isReactComponent={},$.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},$.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var e,T={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(e in T)T.hasOwnProperty(e)&&function(e,t){Object.defineProperty($.prototype,e,{get:function(){O("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})}(e,T[e]);function N(){}function I(e,t,r){this.props=e,this.context=t,this.refs=x,this.updater=r||R}N.prototype=$.prototype;var D=I.prototype=new N;function M(e){return e.displayName||"Context"}function A(e){if(null==e)return null;if("number"==typeof e.tag&&k("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case We.Fragment:return"Fragment";case g:return"Portal";case We.Profiler:return"Profiler";case We.StrictMode:return"StrictMode";case We.Suspense:return"Suspense";case s:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case u:return M(e)+".Consumer";case i:return M(e._context)+".Provider";case c:return t=e.render,r="ForwardRef",t=t.displayName||t.name||"",e.displayName||(""!==t?r+"("+t+")":r);case f:return A(e.type);case p:return A(e._render);case l:t=e._payload,r=e._init;try{return A(r(t))}catch(e){return null}}var t,r;return null}D.constructor=I,y(D,$.prototype),D.isPureReactComponent=!0;var F,U,V=Object.prototype.hasOwnProperty,L={key:!0,ref:!0,__self:!0,__source:!0};function q(e){if(V.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return}return void 0!==e.ref}function W(e){if(V.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return}return void 0!==e.key}var z={},J=function(e,t,r,n,o,a,i){a={$$typeof:b,type:e,key:t,ref:r,props:i,_owner:a,_store:{}};return Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function X(e,t,r){var n,o,a,i={},u=null,c=null,s=null,f=null;if(null!=t)for(n in q(t)&&(c=t.ref,"string"==typeof(o=t).ref&&_.current&&o.__self&&_.current.stateNode!==o.__self&&(a=A(_.current.type),z[a]||(k('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',a,o.ref),z[a]=!0))),W(t)&&(u=""+t.key),s=void 0===t.__self?null:t.__self,f=void 0===t.__source?null:t.__source,t)V.call(t,n)&&!L.hasOwnProperty(n)&&(i[n]=t[n]);var l,p,d,y=arguments.length-2;if(1==y)i.children=r;else if(1<y){for(var m=Array(y),h=0;h<y;h++)m[h]=arguments[h+2];Object.freeze&&Object.freeze(m),i.children=m}if(e&&e.defaultProps){var v=e.defaultProps;for(n in v)void 0===i[n]&&(i[n]=v[n])}function b(){U||(U=!0,k("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",l))}function g(){F||(F=!0,k("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",d))}return(u||c)&&(r="function"==typeof e?e.displayName||e.name||"Unknown":e,u&&(p=i,d=r,g.isReactWarning=!0,Object.defineProperty(p,"key",{get:g,configurable:!0})),c&&(p=i,l=r,b.isReactWarning=!0,Object.defineProperty(p,"ref",{get:b,configurable:!0}))),J(e,u,c,s,f,_.current,i)}function Y(e){return"object"==typeof e&&null!==e&&e.$$typeof===b}var B=".",H=":";var Q=!1,G=/\/+/g;function K(e){return e.replace(G,"$&/")}function Z(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(e=""+e.key,r={"=":"=0",":":"=2"},"$"+e.replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var r}function ee(e,t,r,n,o){var a,i=typeof e,u=!1;if(null===(e="undefined"==i||"boolean"==i?null:e))u=!0;else switch(i){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case b:case g:u=!0}}if(u){var c,s=e,f=o(s),l=""===n?B+Z(s,0):n;return Array.isArray(f)?(c="",ee(f,t,c=null!=l?K(l)+"/":c,"",function(e){return e})):null!=f&&(Y(f)&&(l=r+(!(c=f).key||s&&s.key===f.key?"":K(""+f.key)+"/")+l,f=J(c.type,l,c.ref,c._self,c._source,c._owner,c.props)),t.push(f)),1}var p=0,d=""===n?B:n+H;if(Array.isArray(e))for(var y=0;y<e.length;y++)p+=ee(a=e[y],t,r,d+Z(a,y),o);else{f=w(e);if("function"==typeof f){n=e;f===n.entries&&(Q||O("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Q=!0);for(var m,h=f.call(n),v=0;!(m=h.next()).done;)p+=ee(a=m.value,t,r,d+Z(a,v++),o)}else if("object"==i){i=""+e;throw Error("Objects are not valid as a React child (found: "+("[object Object]"==i?"object with keys {"+Object.keys(e).join(", ")+"}":i)+"). If you meant to render a collection of children, use an array instead.")}}return p}function te(e,t,r){if(null==e)return e;var n=[],o=0;return ee(e,n,"","",function(e){return t.call(r,e,o++)}),n}var re=-1,ne=0,oe=1,ae=2;function ie(r){var e,t;if(r._status===re&&(e=(0,r._result)(),(t=r)._status=ne,(t._result=e).then(function(e){var t;r._status===ne&&(void 0===(t=e.default)&&k("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",e),(e=r)._status=oe,e._result=t)},function(e){var t;r._status===ne&&((t=r)._status=ae,t._result=e)})),r._status===oe)return r._result;throw r._result}var ue=!1;function ce(e){return"string"==typeof e||"function"==typeof e||(!(e!==We.Fragment&&e!==We.Profiler&&e!==n&&e!==We.StrictMode&&e!==We.Suspense&&e!==s&&e!==o&&!ue)||"object"==typeof e&&null!==e&&(e.$$typeof===l||e.$$typeof===f||e.$$typeof===i||e.$$typeof===u||e.$$typeof===c||e.$$typeof===r||e.$$typeof===p||e[0]===t))}function se(){var e=m.current;if(null===e)throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.");return e}var fe,le,pe,de,ye,me,he,ve=0;function be(){}var ge,we=j.ReactCurrentDispatcher;function _e(e){if(void 0===ge)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);ge=t&&t[1]||""}return"\n"+ge+e}var Se=!(be.__reactDisabledLog=!0),je=new("function"==typeof WeakMap?WeakMap:Map);function Oe(t,e){if(!t||Se)return"";var r,n=je.get(t);if(void 0!==n)return n;Se=!0;var o,a=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=we.current,we.current=null,0===ve&&(fe=console.log,le=console.info,pe=console.warn,de=console.error,ye=console.group,me=console.groupCollapsed,he=console.groupEnd,n={configurable:!0,enumerable:!0,value:be,writable:!0},Object.defineProperties(console,{info:n,log:n,warn:n,error:n,group:n,groupCollapsed:n,groupEnd:n})),ve++;try{if(e){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(i,[])}catch(e){r=e}Reflect.construct(t,[],i)}else{try{i.call()}catch(e){r=e}t.call(i.prototype)}}else{try{throw Error()}catch(e){r=e}t()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var u=e.stack.split("\n"),c=r.stack.split("\n"),s=u.length-1,f=c.length-1;1<=s&&0<=f&&u[s]!==c[f];)f--;for(;1<=s&&0<=f;s--,f--)if(u[s]!==c[f]){if(1!==s||1!==f)do{if(s--,--f<0||u[s]!==c[f]){var l="\n"+u[s].replace(" at new "," at ");return"function"==typeof t&&je.set(t,l),l}}while(1<=s&&0<=f);break}}}finally{Se=!1,we.current=o,0===--ve&&(o={configurable:!0,enumerable:!0,writable:!0},Object.defineProperties(console,{log:y({},o,{value:fe}),info:y({},o,{value:le}),warn:y({},o,{value:pe}),error:y({},o,{value:de}),group:y({},o,{value:ye}),groupCollapsed:y({},o,{value:me}),groupEnd:y({},o,{value:he})})),ve<0&&k("disabledDepth fell below zero. This is a bug in React. Please file an issue."),Error.prepareStackTrace=a}a=t?t.displayName||t.name:"",a=a?_e(a):"";return"function"==typeof t&&je.set(t,a),a}function ke(e){return Oe(e,!1)}function Ee(e,t,r){if(null==e)return"";if("function"==typeof e)return Oe(e,!(!(n=(n=e).prototype)||!n.isReactComponent));var n;if("string"==typeof e)return _e(e);switch(e){case We.Suspense:return _e("Suspense");case s:return _e("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case c:return ke(e.render);case f:return Ee(e.type,t,r);case p:return ke(e._render);case l:var o=e._payload,a=e._init;try{return Ee(a(o),t,r)}catch(e){}}return""}var Ce={},Pe=j.ReactDebugCurrentFrame;function Re(e){var t;e?(t=e._owner,t=Ee(e.type,e._source,t?t.type:null),Pe.setExtraStackFrame(t)):Pe.setExtraStackFrame(null)}function xe(e){var t;e?(t=e._owner,S(Ee(e.type,e._source,t?t.type:null))):S(null)}function $e(){if(_.current){var e=A(_.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}var Te=!1,Ne={};function Ie(e,t){var r;e._store&&!e._store.validated&&null==e.key&&(e._store.validated=!0,r=t,(t=$e())||(r="string"==typeof r?r:r.displayName||r.name)&&(t="\n\nCheck the top-level render call using <"+r+">."),Ne[r=t]||(Ne[r]=!0,t="",e&&e._owner&&e._owner!==_.current&&(t=" It was passed a child from "+A(e._owner.type)+"."),xe(e),k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,t),xe(null)))}function De(e,t){if("object"==typeof e)if(Array.isArray(e))for(var r=0;r<e.length;r++){var n=e[r];Y(n)&&Ie(n,t)}else if(Y(e))e._store&&(e._store.validated=!0);else if(e){var o=w(e);if("function"==typeof o&&o!==e.entries)for(var a,i=o.call(e);!(a=i.next()).done;)Y(a.value)&&Ie(a.value,t)}}function Me(e){var t,r,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==c&&n.$$typeof!==f)return;t=n.propTypes}t?(r=A(n),function(e,t,r,n,o){var a,i=Function.call.bind(Object.prototype.hasOwnProperty);for(a in e)if(i(e,a)){var u=void 0;try{if("function"!=typeof e[a]){var c=Error((n||"React class")+": "+r+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw c.name="Invariant Violation",c}u=e[a](t,a,n,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){u=e}!u||u instanceof Error||(Re(o),k("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",r,a,typeof u),Re(null)),u instanceof Error&&!(u.message in Ce)&&(Ce[u.message]=!0,Re(o),k("Failed %s type: %s",r,u.message),Re(null))}}(t,e.props,"prop",r,e)):void 0===n.PropTypes||Te||(Te=!0,k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",A(n)||"Unknown")),"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ae(e,t,r){var n,o=ce(e);o||(a="",(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),a+=(null==(t=t)||void 0===(t=t.__source)?"":"\n\nCheck your code at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+".")||$e(),null===e?n="null":Array.isArray(e)?n="array":void 0!==e&&e.$$typeof===b?(n="<"+(A(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):n=typeof e,k("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",n,a));var a=X.apply(this,arguments);if(null==a)return a;if(o)for(var i=2;i<arguments.length;i++)De(arguments[i],e);return(e===We.Fragment?function(e){for(var t=Object.keys(e.props),r=0;r<t.length;r++){var n=t[r];if("children"!==n&&"key"!==n){xe(e),k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),xe(null);break}}null!==e.ref&&(xe(e),k("Invalid attribute `ref` supplied to `React.Fragment`."),xe(null))}:Me)(a),a}var Fe=!1;try{var Ue=Object.freeze({});new Map([[Ue,null]]),new Set([Ue])}catch(e){}var Ve=Ae,Le=function(e,t,r){for(var n=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n,o,a=y({},e.props),i=e.key,u=e.ref,c=e._self,s=e._source,f=e._owner;if(null!=t)for(n in q(t)&&(u=t.ref,f=_.current),W(t)&&(i=""+t.key),e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)V.call(t,n)&&!L.hasOwnProperty(n)&&(void 0===t[n]&&void 0!==o?a[n]=o[n]:a[n]=t[n]);var l=arguments.length-2;if(1==l)a.children=r;else if(1<l){for(var p=Array(l),d=0;d<l;d++)p[d]=arguments[d+2];a.children=p}return J(e.type,i,u,c,s,f,a)}.apply(this,arguments),o=2;o<arguments.length;o++)De(arguments[o],n.type);return Me(n),n},D=function(e){var t=Ae.bind(null,e);return t.type=e,Fe||(Fe=!0,O("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(t,"type",{enumerable:!1,get:function(){return O("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t},Ue={map:te,forEach:function(e,t,r){te(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return te(e,function(){t++}),t},toArray:function(e){return te(e,function(e){return e})||[]},only:function(e){if(!Y(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};We.Children=Ue,We.Component=$,We.PureComponent=I,We.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=j,We.cloneElement=Le,We.createContext=function(e,t){void 0===t?t=null:null!==t&&"function"!=typeof t&&k("createContext: Expected the optional second argument to be a function. Instead received: %s",t);var r={$$typeof:u,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},n=!(r.Provider={$$typeof:i,_context:r}),o=!1,a=!1,e={$$typeof:u,_context:r,_calculateChangedBits:r._calculateChangedBits};return Object.defineProperties(e,{Provider:{get:function(){return o||(o=!0,k("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),r.Provider},set:function(e){r.Provider=e}},_currentValue:{get:function(){return r._currentValue},set:function(e){r._currentValue=e}},_currentValue2:{get:function(){return r._currentValue2},set:function(e){r._currentValue2=e}},_threadCount:{get:function(){return r._threadCount},set:function(e){r._threadCount=e}},Consumer:{get:function(){return n||(n=!0,k("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),r.Consumer}},displayName:{get:function(){return r.displayName},set:function(e){a||(O("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",e),a=!0)}}}),r.Consumer=e,r._currentRenderer=null,r._currentRenderer2=null,r},We.createElement=Ve,We.createFactory=D,We.createRef=function(){var e={current:null};return Object.seal(e),e},We.forwardRef=function(t){null!=t&&t.$$typeof===f?k("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof t?k("forwardRef requires a render function but was given %s.",null===t?"null":typeof t):0!==t.length&&2!==t.length&&k("forwardRef render functions accept exactly two parameters: props and ref. %s",1===t.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=t&&(null==t.defaultProps&&null==t.propTypes||k("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"));var r,e={$$typeof:c,render:t};return Object.defineProperty(e,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(e){r=e,null==t.displayName&&(t.displayName=e)}}),e},We.isValidElement=Y,We.lazy=function(e){var t,r,n={$$typeof:l,_payload:{_status:-1,_result:e},_init:ie};return Object.defineProperties(n,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){k("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(n,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return r},set:function(e){k("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),r=e,Object.defineProperty(n,"propTypes",{enumerable:!0})}}}),n},We.memo=function(t,e){ce(t)||k("memo: The first argument must be a component. Instead received: %s",null===t?"null":typeof t);var r,e={$$typeof:f,type:t,compare:void 0===e?null:e};return Object.defineProperty(e,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(e){r=e,null==t.displayName&&(t.displayName=e)}}),e},We.useCallback=function(e,t){return se().useCallback(e,t)},We.useContext=function(e,t){var r,n=se();return void 0!==t&&k("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",t,"number"==typeof t&&Array.isArray(arguments[2])?"\n\nDid you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://reactjs.org/link/rules-of-hooks":""),void 0!==e._context&&((r=e._context).Consumer===e?k("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):r.Provider===e&&k("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")),n.useContext(e,t)},We.useDebugValue=function(e,t){return se().useDebugValue(e,t)},We.useEffect=function(e,t){return se().useEffect(e,t)},We.useImperativeHandle=function(e,t,r){return se().useImperativeHandle(e,t,r)},We.useLayoutEffect=function(e,t){return se().useLayoutEffect(e,t)},We.useMemo=function(e,t){return se().useMemo(e,t)},We.useReducer=function(e,t,r){return se().useReducer(e,t,r)},We.useRef=function(e){return se().useRef(e)},We.useState=function(e){return se().useState(e)},We.version="17.0.2"}()}.call(this,qe("Xp6JUx"))},{Xp6JUx:2,"object-assign":1}],12:[function(e,t,r){"use strict";var f=e("object-assign"),l=60103,p=60106;r.Fragment=60107,r.StrictMode=60108,r.Profiler=60114;var n=60109,o=60110,a=60112;r.Suspense=60113;var i=60115,u=60116;"function"==typeof Symbol&&Symbol.for&&(l=(b=Symbol.for)("react.element"),p=b("react.portal"),r.Fragment=b("react.fragment"),r.StrictMode=b("react.strict_mode"),r.Profiler=b("react.profiler"),n=b("react.provider"),o=b("react.context"),a=b("react.forward_ref"),r.Suspense=b("react.suspense"),i=b("react.memo"),u=b("react.lazy"));var d="function"==typeof Symbol&&Symbol.iterator;function y(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var c={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},s={};function m(e,t,r){this.props=e,this.context=t,this.refs=s,this.updater=r||c}function h(){}function v(e,t,r){this.props=e,this.context=t,this.refs=s,this.updater=r||c}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(y(85));this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},h.prototype=m.prototype;var b=v.prototype=new h;b.constructor=v,f(b,m.prototype),b.isPureReactComponent=!0;var g={current:null},w=Object.prototype.hasOwnProperty,_={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,r){var n,o={},a=null,i=null;if(null!=t)for(n in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(a=""+t.key),t)w.call(t,n)&&!_.hasOwnProperty(n)&&(o[n]=t[n]);var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){for(var c=Array(u),s=0;s<u;s++)c[s]=arguments[s+2];o.children=c}if(e&&e.defaultProps)for(n in u=e.defaultProps)void 0===o[n]&&(o[n]=u[n]);return{$$typeof:l,type:e,key:a,ref:i,props:o,_owner:g.current}}function j(e){return"object"==typeof e&&null!==e&&e.$$typeof===l}var O=/\/+/g;function k(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(e=""+e.key,r={"=":"=0",":":"=2"},"$"+e.replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var r}function E(e,t,r,n,o){var a,i,u=!1;if(null===(e="undefined"===(s=typeof e)||"boolean"===s?null:e))u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case l:case p:u=!0}}if(u)return o=o(u=e),e=""===n?"."+k(u,0):n,Array.isArray(o)?(r="",E(o,t,r=null!=e?e.replace(O,"$&/")+"/":r,"",function(e){return e})):null!=o&&(j(o)&&(a=r+(!(i=o).key||u&&u.key===o.key?"":(""+o.key).replace(O,"$&/")+"/")+e,o={$$typeof:l,type:i.type,key:a,ref:i.ref,props:i.props,_owner:i._owner}),t.push(o)),1;if(u=0,n=""===n?".":n+":",Array.isArray(e))for(var c=0;c<e.length;c++){var s,f=n+k(s=e[c],c);u+=E(s,t,r,f,o)}else if("function"==typeof(f=null!==(i=e)&&"object"==typeof i&&"function"==typeof(i=d&&i[d]||i["@@iterator"])?i:null))for(e=f.call(e),c=0;!(s=e.next()).done;)u+=E(s=s.value,t,r,f=n+k(s,c++),o);else if("object"===s)throw t=""+e,Error(y(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return u}function C(e,t,r){if(null==e)return e;var n=[],o=0;return E(e,n,"","",function(e){return t.call(r,e,o++)}),n}function P(t){var e;if(-1===t._status&&(e=(e=t._result)(),t._status=0,(t._result=e).then(function(e){0===t._status&&(e=e.default,t._status=1,t._result=e)},function(e){0===t._status&&(t._status=2,t._result=e)})),1===t._status)return t._result;throw t._result}var R={current:null};function x(){var e=R.current;if(null===e)throw Error(y(321));return e}b={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:g,IsSomeRendererActing:{current:!1},assign:f};r.Children={map:C,forEach:function(e,t,r){C(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return C(e,function(){t++}),t},toArray:function(e){return C(e,function(e){return e})||[]},only:function(e){if(!j(e))throw Error(y(143));return e}},r.Component=m,r.PureComponent=v,r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=b,r.cloneElement=function(e,t,r){if(null==e)throw Error(y(267,e));var n=f({},e.props),o=e.key,a=e.ref,i=e._owner;if(null!=t)for(u in void 0!==t.ref&&(a=t.ref,i=g.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps&&(c=e.type.defaultProps),t)w.call(t,u)&&!_.hasOwnProperty(u)&&(n[u]=(void 0===t[u]&&void 0!==c?c:t)[u]);var u=arguments.length-2;if(1===u)n.children=r;else if(1<u){for(var c=Array(u),s=0;s<u;s++)c[s]=arguments[s+2];n.children=c}return{$$typeof:l,type:e.type,key:o,ref:a,props:n,_owner:i}},r.createContext=function(e,t){return(e={$$typeof:o,_calculateChangedBits:t=void 0===t?null:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:n,_context:e},e.Consumer=e},r.createElement=S,r.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},r.createRef=function(){return{current:null}},r.forwardRef=function(e){return{$$typeof:a,render:e}},r.isValidElement=j,r.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:P}},r.memo=function(e,t){return{$$typeof:i,type:e,compare:void 0===t?null:t}},r.useCallback=function(e,t){return x().useCallback(e,t)},r.useContext=function(e,t){return x().useContext(e,t)},r.useDebugValue=function(){},r.useEffect=function(e,t){return x().useEffect(e,t)},r.useImperativeHandle=function(e,t,r){return x().useImperativeHandle(e,t,r)},r.useLayoutEffect=function(e,t){return x().useLayoutEffect(e,t)},r.useMemo=function(e,t){return x().useMemo(e,t)},r.useReducer=function(e,t,r){return x().useReducer(e,t,r)},r.useRef=function(e){return x().useRef(e)},r.useState=function(e){return x().useState(e)},r.version="17.0.2"},{"object-assign":1}],13:[function(t,r,e){!function(e){"use strict";"production"===e.env.NODE_ENV?r.exports=t("./cjs/react.production.min.js"):r.exports=t("./cjs/react.development.js")}.call(this,t("Xp6JUx"))},{"./cjs/react.development.js":11,"./cjs/react.production.min.js":12,Xp6JUx:2}],14:[function(e,t,r){"use strict";function i(e){return(i="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)}var n,a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};t=c(t);if(t&&t.has(e))return t.get(e);var r,n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(r in e){var a;"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&((a=o?Object.getOwnPropertyDescriptor(e,r):null)&&(a.get||a.set)?Object.defineProperty(n,r,a):n[r]=e[r])}n.default=e,t&&t.set(e,n);return n}(e("react")),u=(n=e("prop-types"))&&n.__esModule?n:{default:n};function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=o(r);return function(e,t){{if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined")}return function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e)}(this,n?(e=o(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments))}}function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p,d,y,m=function(){!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&&f(e,t)}(o,a.Component);var e,t,r,n=l(o);function o(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(e=n.call(this,e)).state={error:null,isLoading:!0,form:null},e}return e=o,r=[{key:"propTypes",get:function(){return{form_id:u.default.number,show_title:u.default.string,show_desc:u.default.string}}}],(t=[{key:"componentDidUpdate",value:function(e){e.form_id===this.props.form_id&&e.show_title===this.props.show_title&&e.show_desc===this.props.show_desc||this.componentDidMount()}},{key:"componentDidMount",value:function(){var t=this,e=new FormData;e.append("nonce",wpforms_divi_builder.nonce),e.append("action","wpforms_divi_preview"),e.append("form_id",this.props.form_id),e.append("show_title",this.props.show_title),e.append("show_desc",this.props.show_desc),fetch(wpforms_divi_builder.ajax_url,{method:"POST",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/x-www-form-urlencoded","Cache-Control":"no-cache"},body:new URLSearchParams(e)}).then(function(e){return e.json()}).then(function(e){t.setState({isLoading:!1,form:e.data})},function(e){t.setState({isLoading:!1,error:e})})}},{key:"render",value:function(){var e=this.state,t=e.error,r=e.isLoaded,e=e.form;return t||!e?a.default.createElement("div",{className:"wpforms-divi-form-placeholder"},a.default.createElement("img",{src:wpforms_divi_builder.placeholder}),a.default.createElement("h3",null,wpforms_divi_builder.placeholder_title)):a.default.createElement("div",{className:r?"wpforms-divi-form-preview loading":"wpforms-divi-form-preview"},a.default.createElement("div",{dangerouslySetInnerHTML:{__html:e}}))}}])&&s(e.prototype,t),r&&s(e,r),o}();y="wpforms_selector",(d="slug")in(p=m)?Object.defineProperty(p,d,{value:y,enumerable:!0,configurable:!0,writable:!0}):p[d]=y,jQuery(window).on("et_builder_api_ready",function(e,t){t.registerModules([m])}).on("wpformsDiviModuleDisplay",function(e){window.wpforms.init()}),jQuery(document).on("wpformsReady",function(e){var t=jQuery;t(".choicesjs-select").each(function(){var e=t(this).data("choicesjs");e&&"function"==typeof e.disable&&e.disable()})})},{"prop-types":6,react:13}]},{},[14]);
assets/js/wpforms.min.js CHANGED
@@ -1 +1 @@
1
- "use strict";var wpforms=window.wpforms||function(s,f,m){var u={init:function(){m(u.ready),m(f).on("load",function(){"function"==typeof m.ready.then?m.ready.then(u.load):u.load()}),u.bindUIActions(),u.bindOptinMonster()},ready:function(){u.clearUrlQuery(),u.setUserIndentifier(),u.loadValidation(),u.loadDatePicker(),u.loadTimePicker(),u.loadInputMask(),u.loadSmartPhoneField(),u.loadPayments(),u.loadMailcheck(),u.loadChoicesJS(),m(".wpforms-randomize").each(function(){for(var e=m(this),t=e.children();t.length;)e.append(t.splice(Math.floor(Math.random()*t.length),1)[0])}),m(".wpforms-page-button").prop("disabled",!1),m(s).trigger("wpformsReady")},load:function(){},clearUrlQuery:function(){var e=f.location,t=e.search;-1!==t.indexOf("wpforms_form_id=")&&(t=t.replace(/([&?]wpforms_form_id=[0-9]*$|wpforms_form_id=[0-9]*&|[?&]wpforms_form_id=[0-9]*(?=#))/,""),history.replaceState({},null,e.origin+e.pathname+t))},loadValidation:function(){void 0!==m.fn.validate&&(m(".wpforms-input-temp-name").each(function(e,t){var r=Math.floor(9999*Math.random())+1;m(this).attr("name","wpf-temp-"+r)}),m(".wpforms-validate input[type=url]").change(function(){var e=m(this).val();if(!e)return!1;"http://"!==e.substr(0,7)&&"https://"!==e.substr(0,8)&&m(this).val("https://"+e)}),m.validator.messages.required=wpforms_settings.val_required,m.validator.messages.url=wpforms_settings.val_url,m.validator.messages.email=wpforms_settings.val_email,m.validator.messages.number=wpforms_settings.val_number,void 0!==m.fn.payment&&m.validator.addMethod("creditcard",function(e,t){e=m.payment.validateCardNumber(e);return this.optional(t)||e},wpforms_settings.val_creditcard),m.validator.addMethod("extension",function(e,t,r){return r="string"==typeof r?r.replace(/,/g,"|"):"png|jpe?g|gif",this.optional(t)||e.match(new RegExp("\\.("+r+")$","i"))},wpforms_settings.val_fileextension),m.validator.addMethod("maxsize",function(e,t,r){var a,o,i=r,r=this.optional(t);if(r)return r;if(t.files&&t.files.length)for(a=0,o=t.files.length;a<o;a++)if(t.files[a].size>i)return!1;return!0},wpforms_settings.val_filesize),m.validator.methods.email=function(e,t){var r=/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e),e=/^(?!\.)(?!.*?\.\.).*[^.]$/.test(e);return this.optional(t)||r&&e},m.validator.addMethod("restricted-email",function(e,r){var a=this,t=m(r),o=t.closest(".wpforms-field"),i=t.closest(".wpforms-form"),s="pending";return!t.val().length||(this.startRequest(r),m.post({url:wpforms_settings.ajaxurl,type:"post",async:!1,data:{action:"wpforms_restricted_email",form_id:i.data("formid"),field_id:o.data("field-id"),email:t.val()},dataType:"json",success:function(e){var t={};(s=e.success&&e.data)?(a.resetInternals(),a.toHide=a.errorsFor(r),a.showErrors()):(t[r.name]=wpforms_settings.val_email_restricted,a.showErrors(t)),a.stopRequest(r,s)}}),s)},wpforms_settings.val_email_restricted),m.validator.addMethod("confirm",function(e,t,r){return e===m(t).closest(".wpforms-field").find("input:first-child").val()},wpforms_settings.val_confirm),m.validator.addMethod("required-payment",function(e,t){return 0<u.amountSanitize(e)},wpforms_settings.val_requiredpayment),m.validator.addMethod("time12h",function(e,t){return this.optional(t)||/^((0?[1-9]|1[012])(:[0-5]\d){1,2}(\ ?[AP]M))$/i.test(e)},wpforms_settings.val_time12h),m.validator.addMethod("time24h",function(e,t){return this.optional(t)||/^(([0-1]?[0-9])|([2][0-3])):([0-5]?[0-9])(\ ?[AP]M)?$/i.test(e)},wpforms_settings.val_time24h),m.validator.addMethod("time-limit",function(e,t){var r=m(t),a=r.data("min-time"),t=r.data("max-time"),r=r.prop("required");return void 0===a||(!(r||!u.empty(e))||(u.compareTimesGreaterThan(t,a)?u.compareTimesGreaterThan(e,a)&&u.compareTimesGreaterThan(t,e):u.compareTimesGreaterThan(e,a)&&u.compareTimesGreaterThan(e,t)||u.compareTimesGreaterThan(a,e)&&u.compareTimesGreaterThan(t,e)))},function(e,t){var r=m(t),t=r.data("min-time"),r=r.data("max-time"),t=t.replace(/^00:([0-9]{2})pm$/,"12:$1pm"),r=r.replace(/^00:([0-9]{2})pm$/,"12:$1pm");return t=t.replace(/(am|pm)/g," $1").toUpperCase(),r=r.replace(/(am|pm)/g," $1").toUpperCase(),wpforms_settings.val_time_limit.replace("{minTime}",t).replace("{maxTime}",r)}),m.validator.addMethod("check-limit",function(e,t){var r=m(t).closest("ul"),t=r.find('input[type="checkbox"]:checked'),r=parseInt(r.attr("data-choice-limit")||0,10);return 0===r||t.length<=r},function(e,t){t=parseInt(m(t).closest("ul").attr("data-choice-limit")||0,10);return wpforms_settings.val_checklimit.replace("{#}",t)}),void 0!==m.fn.intlTelInput&&m.validator.addMethod("smart-phone-field",function(e,t){return!e.match(/[^\d()\-+\s]/)&&(this.optional(t)||m(t).intlTelInput("isValidNumber"))},wpforms_settings.val_phone),m.validator.addMethod("empty-blanks",function(e,t){return void 0===m.fn.inputmask||!(e.indexOf(t.inputmask.opts.placeholder)+1)},wpforms_settings.val_empty_blanks),m.validator.addMethod("required-positive-number",function(e,t){return 0<u.amountSanitize(e)},wpforms_settings.val_number_positive),m.validator.addMethod("us-phone-field",function(e,t){return!e.match(/[^\d()\-+\s]/)&&(this.optional(t)||10===e.replace(/[^\d]/g,"").length)},wpforms_settings.val_phone),m.validator.addMethod("int-phone-field",function(e,t){return!e.match(/[^\d()\-+\s]/)&&(this.optional(t)||0<e.replace(/[^\d]/g,"").length)},wpforms_settings.val_phone),m.validator.addMethod("password-strength",function(e,t){return WPFormsPasswordField.passwordStrength(e,t)>=Number(m(t).data("password-strength-level"))},wpforms_settings.val_password_strength),m(".wpforms-validate").each(function(){var e=m(this),t=e.data("formid"),t=void 0!==f["wpforms_"+t]&&f["wpforms_"+t].hasOwnProperty("validate")?f["wpforms_"+t].validate:"undefined"!=typeof wpforms_validate?wpforms_validate:{errorClass:"wpforms-error",validClass:"wpforms-valid",ignore:":hidden:not(textarea.wp-editor-area), .wpforms-conditional-hide textarea.wp-editor-area",errorPlacement:function(e,t){u.isLikertScaleField(t)?(t.closest("table").hasClass("single-row")?t.closest(".wpforms-field"):t.closest("tr").find("th")).append(e):u.isWrappedField(t)?t.closest(".wpforms-field").append(e):u.isDateTimeField(t)?u.dateTimeErrorPlacement(t,e):u.isFieldInColumn(t)?t.parent().append(e):e.insertAfter(t)},highlight:function(e,t,r){var a=m(e),o=a.closest(".wpforms-field"),e=a.attr("name");("radio"===a.attr("type")||"checkbox"===a.attr("type")?o.find('input[name="'+e+'"]'):a).addClass(t).removeClass(r),o.addClass("wpforms-has-error")},unhighlight:function(e,t,r){var a=m(e),o=a.closest(".wpforms-field"),e=a.attr("name");("radio"===a.attr("type")||"checkbox"===a.attr("type")?o.find('input[name="'+e+'"]'):a).addClass(r).removeClass(t),o.removeClass("wpforms-has-error")},submitHandler:function(o){function e(){var t=m(o),r=t.find(".wpforms-submit"),e=r.data("alt-text"),a=r.get(0).recaptchaID;if(t.data("token")&&0===m(".wpforms-token",t).length&&m('<input type="hidden" class="wpforms-token" name="wpforms[token]" />').val(t.data("token")).appendTo(t),r.prop("disabled",!0),t.find("#wpforms-field_recaptcha-error").remove(),e&&r.text(e),!u.empty(a)||0===a)return grecaptcha.execute(a).then(null,function(e){e=null===e?"":"<br>"+e,t.find(".wpforms-recaptcha-container").append('<label id="wpforms-field_recaptcha-error" class="wpforms-error"> '+wpforms_settings.val_recaptcha_fail_msg+e+"</label>"),r.prop("disabled",!1)}),!1;m(".wpforms-input-temp-name").removeAttr("name"),u.formSubmit(t)}return"function"==typeof wpformsRecaptchaV3Execute?wpformsRecaptchaV3Execute(e):e()},invalidHandler:function(e,t){void 0!==t.errorList[0]&&u.scrollToError(m(t.errorList[0].element))},onkeyup:function(e,t){m(e).hasClass("wpforms-novalidate-onkeyup")||9===t.which&&""===this.elementValue(e)||-1!==m.inArray(t.keyCode,[16,17,18,20,35,36,37,38,39,40,45,144,225])||(e.name in this.submitted||e.name in this.invalid)&&this.element(e)},onfocusout:function(e){var t=!1;m(e).hasClass("wpforms-novalidate-onkeyup")&&!e.value&&(t=!0),(t=!this.checkable(e)&&(e.name in this.submitted||!this.optional(e))?!0:t)&&this.element(e)},onclick:function(e){var t=!1,r=(e||{}).type,a=m(e);-1<["checkbox","radio"].indexOf(r)&&((a=a.hasClass("wpforms-likert-scale-option")?a.closest("tr"):a.closest(".wpforms-field")).find("label.wpforms-error").remove(),t=!0),t&&this.element(e)}};e.validate(t)}))},isFieldInColumn:function(e){return e.parent().hasClass("wpforms-one-half")||e.parent().hasClass("wpforms-two-fifths")||e.parent().hasClass("wpforms-one-fifth")},isDateTimeField:function(e){return e.hasClass("wpforms-timepicker")||e.hasClass("wpforms-datepicker")||e.is("select")&&e.attr("class").match(/date-month|date-day|date-year/)},isWrappedField:function(e){return"checkbox"===e.attr("type")||"radio"===e.attr("type")||"range"===e.attr("type")||"select"===e.is("select")||e.parent().hasClass("iti")||e.hasClass("wpforms-validation-group-member")||e.hasClass("choicesjs-select")||e.hasClass("wpforms-net-promoter-score-option")},isLikertScaleField:function(e){return e.hasClass("wpforms-likert-scale-option")},dateTimeErrorPlacement:function(e,t){var r=e.closest(".wpforms-field-row-block, .wpforms-field-date-time");r.length?r.find("label.wpforms-error").length||r.append(t):e.closest(".wpforms-field").append(t)},loadDatePicker:function(){void 0!==m.fn.flatpickr&&m(".wpforms-datepicker-wrap").each(function(){var a=m(this),e=a.find("input"),t=a.closest(".wpforms-form").data("formid"),r=a.closest(".wpforms-field").data("field-id"),t=void 0!==f["wpforms_"+t+"_"+r]&&f["wpforms_"+t+"_"+r].hasOwnProperty("datepicker")?f["wpforms_"+t+"_"+r].datepicker:void 0!==f["wpforms_"+t]&&f["wpforms_"+t].hasOwnProperty("datepicker")?f["wpforms_"+t].datepicker:"undefined"!=typeof wpforms_datepicker?wpforms_datepicker:{disableMobile:!0};!t.hasOwnProperty("locale")&&"undefined"!=typeof wpforms_settings&&wpforms_settings.hasOwnProperty("locale")&&(t.locale=wpforms_settings.locale),t.wrap=!0,t.dateFormat=e.data("date-format"),1===e.data("disable-past-dates")&&(t.minDate="today");var o=e.data("limit-days"),i=["sun","mon","tue","wed","thu","fri","sat"];o&&""!==o&&(o=o.split(","),t.disable=[function(e){for(var t in o)if(i.indexOf(o[t])===e.getDay())return!1;return!0}]),t.onChange=function(e,t,r){t=""===t?"none":"block";a.find(".wpforms-datepicker-clear").css("display",t)},a.flatpickr(t)})},loadTimePicker:function(){void 0!==m.fn.timepicker&&m(".wpforms-timepicker").each(function(){var e=m(this),t=e.closest(".wpforms-form").data("formid"),r=e.closest(".wpforms-field").data("field-id"),t=void 0!==f["wpforms_"+t+"_"+r]&&f["wpforms_"+t+"_"+r].hasOwnProperty("timepicker")?f["wpforms_"+t+"_"+r].timepicker:void 0!==f["wpforms_"+t]&&f["wpforms_"+t].hasOwnProperty("timepicker")?f["wpforms_"+t].timepicker:"undefined"!=typeof wpforms_timepicker?wpforms_timepicker:{scrollDefault:"now",forceRoundTime:!0};e.timepicker(t)})},loadInputMask:function(){void 0!==m.fn.inputmask&&m(".wpforms-masked-input").inputmask()},loadSmartPhoneField:function(){var a,e,t;void 0!==m.fn.intlTelInput&&(a={},wpforms_settings.gdpr||(a.geoIpLookup=u.currentIpToCountry),wpforms_settings.gdpr&&(e=this.getFirstBrowserLanguage(),t=-1<e.indexOf("-")?e.split("-").pop():""),t=t&&(f.intlTelInputGlobals.getCountryData().filter(function(e){return e.iso2===t.toLowerCase()}).length?t:""),a.initialCountry=wpforms_settings.gdpr&&t?t:"auto",m(".wpforms-smart-phone-field").each(function(e,t){var r=m(t);a.hiddenInput=r.closest(".wpforms-field-phone").data("field-id"),a.utilsScript=wpforms_settings.wpforms_plugin_url+"pro/assets/js/vendor/jquery.intl-tel-input-utils.js",r.intlTelInput(a),r.attr("name","wpf-temp-"+r.attr("name")),r.addClass("wpforms-input-temp-name"),r.on("blur input",function(){!r.intlTelInput("isValidNumber")&&u.empty(f.WPFormsEditEntry)||r.siblings('input[type="hidden"]').val(r.intlTelInput("getNumber"))})}),m(".wpforms-form").on("wpformsBeforeFormSubmit",function(){m(this).find(".wpforms-smart-phone-field").trigger("input")}))},loadPayments:function(){m(".wpforms-payment-total").each(function(e,t){u.amountTotal(this)}),void 0!==m.fn.payment&&(m(".wpforms-field-credit-card-cardnumber").payment("formatCardNumber"),m(".wpforms-field-credit-card-cardcvc").payment("formatCardCVC"))},loadMailcheck:function(){wpforms_settings.mailcheck_enabled&&void 0!==m.fn.mailcheck&&(0<wpforms_settings.mailcheck_domains.length&&(Mailcheck.defaultDomains=Mailcheck.defaultDomains.concat(wpforms_settings.mailcheck_domains)),0<wpforms_settings.mailcheck_toplevel_domains.length&&(Mailcheck.defaultTopLevelDomains=Mailcheck.defaultTopLevelDomains.concat(wpforms_settings.mailcheck_toplevel_domains)),m(s).on("blur",".wpforms-field-email input",function(){var e=m(this),o=e.attr("id");e.mailcheck({suggested:function(e,t){t.address.match(/^xn--/)&&(t.full=punycode.toUnicode(decodeURI(t.full)),a=t.full.split("@"),t.address=a[0],t.domain=a[1]),t.domain.match(/^xn--/)&&(t.domain=punycode.toUnicode(decodeURI(t.domain)));var r=decodeURI(t.address).replaceAll(/[<>'"()/\\|:;=@%&\s]/gi,"").substr(0,64),a=decodeURI(t.domain).replaceAll(/[<>'"()/\\|:;=@%&+_\s]/gi,"");t='<a href="#" class="mailcheck-suggestion" data-id="'+o+'" title="'+wpforms_settings.val_email_suggestion_title+'">'+r+"@"+a+"</a>",t=wpforms_settings.val_email_suggestion.replace("{suggestion}",t),e.closest(".wpforms-field").find("#"+o+"_suggestion").remove(),e.parent().append('<label class="wpforms-error mailcheck-error" id="'+o+'_suggestion">'+t+"</label>")},empty:function(){m("#"+o+"_suggestion").remove()}})}),m(s).on("click",".wpforms-field-email .mailcheck-suggestion",function(e){var t=m(this),r=t.closest(".wpforms-field"),a=t.data("id");e.preventDefault(),r.find("#"+a).val(t.text()),t.parent().remove()}))},loadChoicesJS:function(){"function"==typeof f.Choices&&m(".wpforms-field-select-style-modern .choicesjs-select, .wpforms-field-payment-select .choicesjs-select").each(function(e,t){var r=f.wpforms_choicesjs_config||{},a=m(t).data("search-enabled");r.searchEnabled=void 0===a||a,r.callbackOnInit=function(){var t=this,r=m(t.passedElement.element),a=m(t.input.element),e=r.data("size-class");r.removeAttr("hidden").addClass(t.config.classNames.input+"--hidden"),e&&m(t.containerOuter.element).addClass(e),r.prop("multiple")&&t.getValue(!0).length&&a.addClass(t.config.classNames.input+"--hidden"),r.on("change",function(){var e;r.prop("multiple")&&(0<t.getValue(!0).length?a.addClass(t.config.classNames.input+"--hidden"):a.removeClass(t.config.classNames.input+"--hidden")),(e=r.closest("form").data("validator"))&&e.element(r)})},r.callbackOnCreateTemplates=function(){var r=m(this.passedElement.element);return{option:function(e){var t=Choices.defaults.templates.option.call(this,e);return void 0!==e.placeholder&&!0===e.placeholder&&t.classList.add("placeholder"),r.hasClass("wpforms-payment-price")&&void 0!==e.customProperties&&null!==e.customProperties&&(t.dataset.amount=e.customProperties),t}}},m(t).data("choicesjs",new Choices(t,r))})},bindUIActions:function(){m(s).on("click",".wpforms-page-button",function(e){e.preventDefault(),u.pagebreakNav(this)}),m(s).on("change input",".wpforms-payment-price",function(){u.amountTotal(this,!0)}),m(s).on("input",".wpforms-payment-user-input",function(){var e=m(this),t=e.val();e.val(t.replace(/[^0-9.,]/g,""))}),m(s).on("focusout",".wpforms-payment-user-input",function(){var e=m(this),t=e.val();if(!t)return t;t=u.amountSanitize(t),t=u.amountFormat(t);e.val(t)}),m(s).on("wpformsProcessConditionals",function(e,t){u.amountTotal(t,!0)}),m(".wpforms-field-rating-item").hover(function(){m(this).parent().find(".wpforms-field-rating-item").removeClass("selected hover"),m(this).prevAll().addBack().addClass("hover")},function(){m(this).parent().find(".wpforms-field-rating-item").removeClass("selected hover"),m(this).parent().find("input:checked").parent().prevAll().addBack().addClass("selected")}),m(s).on("change",".wpforms-field-rating-item input",function(){var e=m(this);e.closest(".wpforms-field-rating-items").find(".wpforms-field-rating-item").removeClass("hover selected"),e.parent().prevAll().addBack().addClass("selected")}),m(function(){m(".wpforms-field-rating-item input:checked").change()}),m(s).on("keypress",".wpforms-image-choices-item label",function(e){var t=m(this);if(t.closest(".wpforms-field").hasClass("wpforms-conditional-hide"))return e.preventDefault(),!1;13===e.which&&m("#"+t.attr("for")).click()}),f.document.documentMode&&m(s).on("click",".wpforms-image-choices-item img",function(){m(this).closest("label").find("input").click()}),m(s).on("change",".wpforms-field-checkbox input, .wpforms-field-radio input, .wpforms-field-payment-multiple input, .wpforms-field-payment-checkbox input, .wpforms-field-gdpr-checkbox input",function(e){var t=m(this);if(t.closest(".wpforms-field").hasClass("wpforms-conditional-hide"))return e.preventDefault(),!1;switch(t.attr("type")){case"radio":t.closest("ul").find("li").removeClass("wpforms-selected").find("input[type=radio]").removeProp("checked"),t.prop("checked",!0).closest("li").addClass("wpforms-selected");break;case"checkbox":t.is(":checked")?(t.closest("li").addClass("wpforms-selected"),t.prop("checked",!0)):(t.closest("li").removeClass("wpforms-selected"),t.prop("checked",!1))}}),m(s).on("change",'.wpforms-field-file-upload input[type=file]:not(".dropzone-input")',function(){var e=m(this),t=e.closest("form.wpforms-form").find('.wpforms-field-file-upload input:not(".dropzone-input")'),a=0,r=Number(wpforms_settings.post_max_size),o='<div class="wpforms-error-container-post_max_size">'+wpforms_settings.val_post_max_size+"</div>",i=e.closest("form.wpforms-form").find(".wpforms-submit-container"),s=i.find("button.wpforms-submit"),e=i.prev();t.each(function(){for(var e=m(this),t=0,r=e[0].files.length;t<r;t++)a+=e[0].files[t].size}),r<a?(a=Number((a/1048576).toFixed(3)),r=Number((r/1048576).toFixed(3)),o=o.replace(/{totalSize}/,a).replace(/{maxSize}/,r),e.hasClass("wpforms-error-container")?(e.find(".wpforms-error-container-post_max_size").remove(),e.append(o)):i.before('<div class="wpforms-error-container">{errorMsg}</span></div>'.replace(/{errorMsg}/,o)),s.prop("disabled",!0)):(e.find(".wpforms-error-container-post_max_size").remove(),s.prop("disabled",!1))}),m(s).on("change input",".wpforms-field-number-slider input[type=range]",function(e){var t=m(e.target).siblings(".wpforms-field-number-slider-hint");t.html(t.data("hint").replace("{value}","<b>"+e.target.value+"</b>"))}),m(s).on("keydown",".wpforms-form input",function(e){var t,r;13!==e.keyCode||0!==(r=(t=m(this)).closest(".wpforms-page")).length&&(["text","tel","number","email","url","radio","checkbox"].indexOf(t.attr("type"))<0||(t.hasClass("wpforms-datepicker")&&t.flatpickr("close"),e.preventDefault(),(r.hasClass("last")?r.closest(".wpforms-form").find(".wpforms-submit"):r.find(".wpforms-page-next")).click()))}),m(s).on("keypress",".wpforms-field-number input",function(e){return/^[-0-9.]+$/.test(String.fromCharCode(e.keyCode||e.which))})},entryPreviewFieldPageChange:function(e,t,r){console.warn("WARNING! Obsolete function called. Function wpforms.entryPreviewFieldPageChange has been deprecated, please use the WPFormsEntryPreview.pageChange function instead!"),WPFormsEntryPreview.pageChange(e,t,r)},entryPreviewFieldUpdate:function(e,t){console.warn("WARNING! Obsolete function called. Function wpforms.entryPreviewFieldUpdate has been deprecated, please use the WPFormsEntryPreview.update function instead!"),WPFormsEntryPreview.update(e,t)},scrollToError:function(e){var t;0!==e.length&&(0===(t=0===(t=e.find(".wpforms-field.wpforms-has-error")).length?e.closest(".wpforms-field"):t).length||void 0!==(e=t.offset())&&u.animateScrollTop(e.top-75,750).done(function(){var e=t.find(".wpforms-error").first();"function"==typeof e.focus&&e.focus()}))},pagebreakNav:function(e){var t=m(e),r=!0,a=t.data("action"),o=t.data("page"),i=o,s=o+1,n=o-1,p=t.closest(".wpforms-form"),l=p.find(".wpforms-page-"+o),c=p.find(".wpforms-submit-container"),d=p.find(".wpforms-page-indicator"),e=p.find(".wpforms-recaptcha-container"),o=!1;u.saveTinyMCE(),o=!1!==f.wpforms_pageScroll&&(u.empty(f.wpform_pageScroll)?0!==d.data("scroll")&&75:f.wpform_pageScroll),"next"===a?(void 0!==m.fn.validate&&(l.find(":input").each(function(e,t){m(t).attr("name")&&(m(t).valid()||(r=!1))}),u.scrollToError(l)),r&&(t.trigger("wpformsBeforePageChange",[i=s,p]),l.hide(),(s=p.find(".wpforms-page-"+s)).show(),s.hasClass("last")&&(e.show(),c.show()),o&&u.animateScrollTop(p.offset().top-o,750),t.trigger("wpformsPageChange",[i,p]))):"prev"===a&&(t.trigger("wpformsBeforePageChange",[i=n,p]),l.hide(),p.find(".wpforms-page-"+n).show(),e.hide(),c.hide(),o&&u.animateScrollTop(p.offset().top-o),t.trigger("wpformsPageChange",[i,p])),d&&(o=d.data("indicator"),t=d.data("indicator-color"),"connector"===o||"circles"===o?(d.find(".wpforms-page-indicator-page").removeClass("active"),d.find(".wpforms-page-indicator-page-"+i).addClass("active"),d.find(".wpforms-page-indicator-page-number").removeAttr("style"),d.find(".active .wpforms-page-indicator-page-number").css("background-color",t),"connector"===o&&(d.find(".wpforms-page-indicator-page-triangle").removeAttr("style"),d.find(".active .wpforms-page-indicator-page-triangle").css("border-top-color",t))):"progress"===o&&(t=d.find(".wpforms-page-indicator-page-title"),o=d.find(".wpforms-page-indicator-page-title-sep"),p=i/p.find(".wpforms-page").length*100,d.find(".wpforms-page-indicator-page-progress").css("width",p+"%"),d.find(".wpforms-page-indicator-steps-current").text(i),t.data("page-"+i+"-title")?(t.css("display","inline").text(t.data("page-"+i+"-title")),o.css("display","inline")):(t.css("display","none"),o.css("display","none"))))},bindOptinMonster:function(){s.addEventListener("om.Campaign.load",function(e){u.ready(),u.optinMonsterRecaptchaReset(e.detail.Campaign.data.id)}),m(s).on("OptinMonsterOnShow",function(e,t,r){u.ready(),u.optinMonsterRecaptchaReset(t.optin)})},optinMonsterRecaptchaReset:function(e){var t,r=m("#om-"+e).find(".wpforms-form"),a=r.find(".wpforms-recaptcha-container"),o=r.find(".g-recaptcha");r.length&&o.length&&(e=o.attr("data-sitekey"),t="recaptcha-"+Date.now(),r=a.hasClass("wpforms-is-hcaptcha")?hcaptcha:grecaptcha,o.remove(),a.prepend('<div class="g-recaptcha" id="'+t+'" data-sitekey="'+e+'"></div>'),r.render(t,{sitekey:e,callback:function(){wpformsRecaptchaCallback(m("#"+t))}}))},amountTotal:function(e,r){r=r||!1;var a=m(e).closest(".wpforms-form"),t=u.getCurrency(),e=u.amountTotalCalc(a),e=u.amountFormat(e),o="left"===t.symbol_pos?t.symbol+" "+e:e+" "+t.symbol;a.find(".wpforms-payment-total").each(function(e,t){"hidden"===m(this).attr("type")||"text"===m(this).attr("type")?(m(this).val(o),"text"===m(this).attr("type")&&r&&a.data("validator")&&m(this).valid()):m(this).text(o)})},amountTotalCalc:function(e){var a=0;return m(".wpforms-payment-price",e).each(function(){var e=0,t=m(this),r=t.attr("type");t.closest(".wpforms-field-payment-single").hasClass("wpforms-conditional-hide")||("text"===r||"hidden"===r?e=t.val():"radio"!==r&&"checkbox"!==r||!t.is(":checked")?t.is("select")&&0<t.find("option:selected").length&&(e=t.find("option:selected").data("amount")):e=t.data("amount"),u.empty(e)||(e=u.amountSanitize(e),a=Number(a)+Number(e)))}),a},amountSanitize:function(e){var t=u.getCurrency();return e=e.toString().replace(/[^0-9.,]/g,""),","===t.decimal_sep?("."===t.thousands_sep&&-1!==e.indexOf(t.thousands_sep)?e=e.replace(new RegExp("\\"+t.thousands_sep,"g"),""):""===t.thousands_sep&&-1!==e.indexOf(".")&&(e=e.replace(/\./g,"")),e=e.replace(t.decimal_sep,".")):","===t.thousands_sep&&-1!==e.indexOf(t.thousands_sep)&&(e=e.replace(new RegExp("\\"+t.thousands_sep,"g"),"")),u.numberFormat(e,t.decimals,".","")},amountFormat:function(e){var t,r=u.getCurrency();return e=String(e),","===r.decimal_sep&&-1!==e.indexOf(r.decimal_sep)&&(t=e.indexOf(r.decimal_sep),e=e.substr(0,t)+"."+e.substr(t+1,e.length-1)),","===r.thousands_sep&&-1!==e.indexOf(r.thousands_sep)&&(e=e.replace(/,/g,"")),u.empty(e)&&(e=0),u.numberFormat(e,r.decimals,r.decimal_sep,r.thousands_sep)},getCurrency:function(){var e={code:"USD",thousands_sep:",",decimals:2,decimal_sep:".",symbol:"$",symbol_pos:"left"};return void 0!==wpforms_settings.currency_code&&(e.code=wpforms_settings.currency_code),void 0!==wpforms_settings.currency_thousands&&(e.thousands_sep=wpforms_settings.currency_thousands),void 0!==wpforms_settings.currency_decimals&&(e.decimals=wpforms_settings.currency_decimals),void 0!==wpforms_settings.currency_decimal&&(e.decimal_sep=wpforms_settings.currency_decimal),void 0!==wpforms_settings.currency_symbol&&(e.symbol=wpforms_settings.currency_symbol),void 0!==wpforms_settings.currency_symbol_pos&&(e.symbol_pos=wpforms_settings.currency_symbol_pos),e},numberFormat:function(e,t,r,a){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var o=isFinite(+e)?+e:0,i=isFinite(+t)?Math.abs(t):0,s=void 0===a?",":a,e=void 0===r?".":r,o=(i?(t=o,a=i,r=Math.pow(10,a),""+(Math.round(t*r)/r).toFixed(a)):""+Math.round(o)).split(".");return 3<o[0].length&&(o[0]=o[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,s)),(o[1]||"").length<i&&(o[1]=o[1]||"",o[1]+=new Array(i-o[1].length+1).join("0")),o.join(e)},empty:function(e){for(var t,r=[void 0,null,!1,0,"","0"],a=0,o=r.length;a<o;a++)if(e===r[a])return!0;if("object"!=typeof e)return!1;for(t in e)if(e.hasOwnProperty(t))return!1;return!0},setUserIndentifier:function(){if((!f.hasRequiredConsent&&"undefined"!=typeof wpforms_settings&&wpforms_settings.uuid_cookie||f.hasRequiredConsent&&f.hasRequiredConsent())&&!u.getCookie("_wpfuuid")){for(var e,t=new Array(36),r="0123456789abcdef",a=0;a<36;a++)t[a]=r.substr(Math.floor(16*Math.random()),1);t[14]="4",t[19]=r.substr(3&t[19]|8,1),t[8]=t[13]=t[18]=t[23]="-",e=t.join(""),u.createCookie("_wpfuuid",e,3999)}},createCookie:function(e,t,r){var a,o="",i="";wpforms_settings.is_ssl&&(i=";secure"),o=r?"-1"===r?"":((a=new Date).setTime(a.getTime()+24*r*60*60*1e3),";expires="+a.toGMTString()):";expires=Thu, 01 Jan 1970 00:00:01 GMT",s.cookie=e+"="+t+o+";path=/;samesite=strict"+i},getCookie:function(e){for(var t=e+"=",r=s.cookie.split(";"),a=0;a<r.length;a++){for(var o=r[a];" "===o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(t))return o.substring(t.length,o.length)}return null},removeCookie:function(e){u.createCookie(e,"",-1)},getFirstBrowserLanguage:function(){var e,t,r=f.navigator,a=["language","browserLanguage","systemLanguage","userLanguage"];if(Array.isArray(r.languages))for(e=0;e<r.languages.length;e++)if((t=r.languages[e])&&t.length)return t;for(e=0;e<a.length;e++)if((t=r[a[e]])&&t.length)return t;return""},currentIpToCountry:function(r){function t(){m.get("https://ipapi.co/jsonp",function(){},"jsonp").always(function(e){var t=e&&e.country?e.country:"";t||(t=-1<(e=u.getFirstBrowserLanguage()).indexOf("-")?e.split("-").pop():""),r(t)})}m.get("https://geo.wpforms.com/v3/geolocate/json").done(function(e){e&&e.country_iso?r(e.country_iso):t()}).fail(function(e){t()})},formSubmit:function(e){e instanceof jQuery||(e=m(e)),u.saveTinyMCE(),e.trigger("wpformsBeforeFormSubmit"),e.hasClass("wpforms-ajax-form")&&"undefined"!=typeof FormData?u.formSubmitAjax(e):u.formSubmitNormal(e)},formSubmitNormal:function(e){var t,r;e.length&&(r=(t=e.find(".wpforms-submit")).get(0).recaptchaID,u.empty(r)&&0!==r||(t.get(0).recaptchaID=!1),e.get(0).submit())},resetFormRecaptcha:function(e){var t,r;e&&e.length&&("undefined"==typeof hcaptcha&&"undefined"==typeof grecaptcha||(t=e.find(".wpforms-recaptcha-container").hasClass("wpforms-is-hcaptcha")?hcaptcha:grecaptcha,r=e.find(".wpforms-submit").get(0).recaptchaID,u.empty(r)&&0!==r&&(r=e.find(".g-recaptcha").data("recaptcha-id")),u.empty(r)&&0!==r||t.reset(r)))},consoleLogAjaxError:function(e){e?console.error("WPForms AJAX submit error:\n%s",e):console.error("WPForms AJAX submit error")},displayFormAjaxErrors:function(e,t){"string"!=typeof t?(t=t&&"errors"in t?t.errors:null,u.empty(t)||u.empty(t.general)&&u.empty(t.field)?u.consoleLogAjaxError():(u.empty(t.general)||u.displayFormAjaxGeneralErrors(e,t.general),u.empty(t.field)||u.displayFormAjaxFieldErrors(e,t.field))):u.displayFormAjaxGeneralErrors(e,t)},displayFormAjaxGeneralErrors:function(r,e){r&&r.length&&(u.empty(e)||("string"!=typeof e?m.each(e,function(e,t){switch(e){case"header":r.prepend(t);break;case"footer":r.find(".wpforms-submit-container").before(t);break;case"recaptcha":r.find(".wpforms-recaptcha-container").append(t)}}):r.find(".wpforms-submit-container").before('<div class="wpforms-error-container">'+e+"</div>")))},clearFormAjaxGeneralErrors:function(e){e.find(".wpforms-error-container").remove(),e.find("#wpforms-field_recaptcha-error").remove()},displayFormAjaxFieldErrors:function(e,t){e&&e.length&&(u.empty(t)||(e=e.data("validator"))&&(e.showErrors(t),e.focusInvalid()))},formSubmitAjax:function(o){if(!o.length)return m.Deferred().reject();var t,e,i=o.closest(".wpforms-container"),s=o.find(".wpforms-submit-spinner");return i.css("opacity",.6),s.show(),u.clearFormAjaxGeneralErrors(o),(e=new FormData(o.get(0))).append("action","wpforms_submit"),e.append("page_url",f.location.href),e={type:"post",dataType:"json",url:wpforms_settings.ajaxurl,data:e,cache:!1,contentType:!1,processData:!1,success:function(e){if(e){if(!e.data||!e.data.action_required)return e.success?(o.trigger("wpformsAjaxSubmitSuccess",e),e.data?e.data.redirect_url?(o.trigger("wpformsAjaxSubmitBeforeRedirect",e),void(f.location=e.data.redirect_url)):void(e.data.confirmation&&(i.html(e.data.confirmation),t=i.find("div.wpforms-confirmation-scroll"),i.trigger("wpformsAjaxSubmitSuccessConfirmation",e),t.length&&u.animateScrollTop(t.offset().top-100))):void 0):(u.resetFormRecaptcha(o),u.displayFormAjaxErrors(o,e.data),void o.trigger("wpformsAjaxSubmitFailed",e));o.trigger("wpformsAjaxSubmitActionRequired",e)}else u.consoleLogAjaxError()},error:function(e,t,r){u.consoleLogAjaxError(r),o.trigger("wpformsAjaxSubmitError",[e,t,r])},complete:function(e,t){var r,a;e.responseJSON&&e.responseJSON.data&&e.responseJSON.data.action_required||((a=(r=o.find(".wpforms-submit")).data("submit-text"))&&r.text(a),r.prop("disabled",!1),i.css("opacity",""),s.hide(),o.trigger("wpformsAjaxSubmitCompleted",[e,t]))}},o.trigger("wpformsAjaxBeforeSubmit"),m.ajax(e)},animateScrollTop:function(e,t,r){return t=t||1e3,r="function"==typeof r?r:function(){},m("html, body").animate({scrollTop:parseInt(e,10)},{duration:t,complete:r}).promise()},saveTinyMCE:function(){"undefined"!=typeof tinyMCE&&tinyMCE.triggerSave()},isFunction:function(e){return!!(e&&e.constructor&&e.call&&e.apply)},compareTimesGreaterThan:function(e,t){e=e.replace(/(am|pm)/g," $1").toUpperCase(),t=t.replace(/(am|pm)/g," $1").toUpperCase();e=Date.parse("01 Jan 2021 "+e);return Date.parse("01 Jan 2021 "+t)<=e}};return u}(document,window,jQuery);wpforms.init();
1
+ "use strict";var wpforms=window.wpforms||function(s,f,m){var u={init:function(){m(u.ready),m(f).on("load",function(){"function"==typeof m.ready.then?m.ready.then(u.load):u.load()}),u.bindUIActions(),u.bindOptinMonster()},ready:function(){u.clearUrlQuery(),u.setUserIndentifier(),u.loadValidation(),u.loadDatePicker(),u.loadTimePicker(),u.loadInputMask(),u.loadSmartPhoneField(),u.loadPayments(),u.loadMailcheck(),u.loadChoicesJS(),m(".wpforms-randomize").each(function(){for(var e=m(this),t=e.children();t.length;)e.append(t.splice(Math.floor(Math.random()*t.length),1)[0])}),m(".wpforms-page-button").prop("disabled",!1),m(s).trigger("wpformsReady")},load:function(){},clearUrlQuery:function(){var e=f.location,t=e.search;-1!==t.indexOf("wpforms_form_id=")&&(t=t.replace(/([&?]wpforms_form_id=[0-9]*$|wpforms_form_id=[0-9]*&|[?&]wpforms_form_id=[0-9]*(?=#))/,""),history.replaceState({},null,e.origin+e.pathname+t))},loadValidation:function(){void 0!==m.fn.validate&&(m(".wpforms-input-temp-name").each(function(e,t){var r=Math.floor(9999*Math.random())+1;m(this).attr("name","wpf-temp-"+r)}),m(".wpforms-validate input[type=url]").change(function(){var e=m(this).val();if(!e)return!1;"http://"!==e.substr(0,7)&&"https://"!==e.substr(0,8)&&m(this).val("https://"+e)}),m.validator.messages.required=wpforms_settings.val_required,m.validator.messages.url=wpforms_settings.val_url,m.validator.messages.email=wpforms_settings.val_email,m.validator.messages.number=wpforms_settings.val_number,void 0!==m.fn.payment&&m.validator.addMethod("creditcard",function(e,t){e=m.payment.validateCardNumber(e);return this.optional(t)||e},wpforms_settings.val_creditcard),m.validator.addMethod("extension",function(e,t,r){return r="string"==typeof r?r.replace(/,/g,"|"):"png|jpe?g|gif",this.optional(t)||e.match(new RegExp("\\.("+r+")$","i"))},wpforms_settings.val_fileextension),m.validator.addMethod("maxsize",function(e,t,r){var a,o,i=r,r=this.optional(t);if(r)return r;if(t.files&&t.files.length)for(a=0,o=t.files.length;a<o;a++)if(t.files[a].size>i)return!1;return!0},wpforms_settings.val_filesize),m.validator.methods.email=function(e,t){var r=/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e),e=/^(?!\.)(?!.*?\.\.).*[^.]$/.test(e);return this.optional(t)||r&&e},m.validator.addMethod("restricted-email",function(e,r){var a=this,t=m(r),o=t.closest(".wpforms-field"),i=t.closest(".wpforms-form"),s="pending";return!t.val().length||(this.startRequest(r),m.post({url:wpforms_settings.ajaxurl,type:"post",async:!1,data:{action:"wpforms_restricted_email",form_id:i.data("formid"),field_id:o.data("field-id"),email:t.val()},dataType:"json",success:function(e){var t={};(s=e.success&&e.data)?(a.resetInternals(),a.toHide=a.errorsFor(r),a.showErrors()):(t[r.name]=wpforms_settings.val_email_restricted,a.showErrors(t)),a.stopRequest(r,s)}}),s)},wpforms_settings.val_email_restricted),m.validator.addMethod("confirm",function(e,t,r){return e===m(t).closest(".wpforms-field").find("input:first-child").val()},wpforms_settings.val_confirm),m.validator.addMethod("required-payment",function(e,t){return 0<u.amountSanitize(e)},wpforms_settings.val_requiredpayment),m.validator.addMethod("time12h",function(e,t){return this.optional(t)||/^((0?[1-9]|1[012])(:[0-5]\d){1,2}(\ ?[AP]M))$/i.test(e)},wpforms_settings.val_time12h),m.validator.addMethod("time24h",function(e,t){return this.optional(t)||/^(([0-1]?[0-9])|([2][0-3])):([0-5]?[0-9])(\ ?[AP]M)?$/i.test(e)},wpforms_settings.val_time24h),m.validator.addMethod("time-limit",function(e,t){var r=m(t),a=r.data("min-time"),t=r.data("max-time"),r=r.prop("required");return void 0===a||(!(r||!u.empty(e))||(u.compareTimesGreaterThan(t,a)?u.compareTimesGreaterThan(e,a)&&u.compareTimesGreaterThan(t,e):u.compareTimesGreaterThan(e,a)&&u.compareTimesGreaterThan(e,t)||u.compareTimesGreaterThan(a,e)&&u.compareTimesGreaterThan(t,e)))},function(e,t){var r=m(t),t=r.data("min-time"),r=r.data("max-time"),t=t.replace(/^00:([0-9]{2})pm$/,"12:$1pm"),r=r.replace(/^00:([0-9]{2})pm$/,"12:$1pm");return t=t.replace(/(am|pm)/g," $1").toUpperCase(),r=r.replace(/(am|pm)/g," $1").toUpperCase(),wpforms_settings.val_time_limit.replace("{minTime}",t).replace("{maxTime}",r)}),m.validator.addMethod("check-limit",function(e,t){var r=m(t).closest("ul"),t=r.find('input[type="checkbox"]:checked'),r=parseInt(r.attr("data-choice-limit")||0,10);return 0===r||t.length<=r},function(e,t){t=parseInt(m(t).closest("ul").attr("data-choice-limit")||0,10);return wpforms_settings.val_checklimit.replace("{#}",t)}),void 0!==m.fn.intlTelInput&&m.validator.addMethod("smart-phone-field",function(e,t){return!e.match(/[^\d()\-+\s]/)&&(this.optional(t)||m(t).intlTelInput("isValidNumber"))},wpforms_settings.val_phone),m.validator.addMethod("empty-blanks",function(e,t){return void 0===m.fn.inputmask||!(e.indexOf(t.inputmask.opts.placeholder)+1)},wpforms_settings.val_empty_blanks),m.validator.addMethod("required-positive-number",function(e,t){return 0<u.amountSanitize(e)},wpforms_settings.val_number_positive),m.validator.addMethod("us-phone-field",function(e,t){return!e.match(/[^\d()\-+\s]/)&&(this.optional(t)||10===e.replace(/[^\d]/g,"").length)},wpforms_settings.val_phone),m.validator.addMethod("int-phone-field",function(e,t){return!e.match(/[^\d()\-+\s]/)&&(this.optional(t)||0<e.replace(/[^\d]/g,"").length)},wpforms_settings.val_phone),m.validator.addMethod("password-strength",function(e,t){return WPFormsPasswordField.passwordStrength(e,t)>=Number(m(t).data("password-strength-level"))},wpforms_settings.val_password_strength),m(".wpforms-validate").each(function(){var e=m(this),t=e.data("formid"),t=void 0!==f["wpforms_"+t]&&f["wpforms_"+t].hasOwnProperty("validate")?f["wpforms_"+t].validate:"undefined"!=typeof wpforms_validate?wpforms_validate:{errorClass:"wpforms-error",validClass:"wpforms-valid",ignore:":hidden:not(textarea.wp-editor-area), .wpforms-conditional-hide textarea.wp-editor-area",errorPlacement:function(e,t){u.isLikertScaleField(t)?(t.closest("table").hasClass("single-row")?t.closest(".wpforms-field"):t.closest("tr").find("th")).append(e):u.isWrappedField(t)?t.closest(".wpforms-field").append(e):u.isDateTimeField(t)?u.dateTimeErrorPlacement(t,e):u.isFieldInColumn(t)?t.parent().append(e):e.insertAfter(t)},highlight:function(e,t,r){var a=m(e),o=a.closest(".wpforms-field"),e=a.attr("name");("radio"===a.attr("type")||"checkbox"===a.attr("type")?o.find('input[name="'+e+'"]'):a).addClass(t).removeClass(r),o.addClass("wpforms-has-error")},unhighlight:function(e,t,r){var a=m(e),o=a.closest(".wpforms-field"),e=a.attr("name");("radio"===a.attr("type")||"checkbox"===a.attr("type")?o.find('input[name="'+e+'"]'):a).addClass(r).removeClass(t),o.removeClass("wpforms-has-error")},submitHandler:function(o){function e(){var t=m(o),r=t.find(".wpforms-submit"),e=r.data("alt-text"),a=r.get(0).recaptchaID;if(t.data("token")&&0===m(".wpforms-token",t).length&&m('<input type="hidden" class="wpforms-token" name="wpforms[token]" />').val(t.data("token")).appendTo(t),r.prop("disabled",!0),t.find("#wpforms-field_recaptcha-error").remove(),e&&r.text(e),!u.empty(a)||0===a)return grecaptcha.execute(a).then(null,function(e){e=null===e?"":"<br>"+e,t.find(".wpforms-recaptcha-container").append('<label id="wpforms-field_recaptcha-error" class="wpforms-error"> '+wpforms_settings.val_recaptcha_fail_msg+e+"</label>"),r.prop("disabled",!1)}),!1;m(".wpforms-input-temp-name").removeAttr("name"),u.formSubmit(t)}return"function"==typeof wpformsRecaptchaV3Execute?wpformsRecaptchaV3Execute(e):e()},invalidHandler:function(e,t){void 0!==t.errorList[0]&&u.scrollToError(m(t.errorList[0].element))},onkeyup:function(e,t){m(e).hasClass("wpforms-novalidate-onkeyup")||9===t.which&&""===this.elementValue(e)||-1!==m.inArray(t.keyCode,[16,17,18,20,35,36,37,38,39,40,45,144,225])||(e.name in this.submitted||e.name in this.invalid)&&this.element(e)},onfocusout:function(e){var t=!1;m(e).hasClass("wpforms-novalidate-onkeyup")&&!e.value&&(t=!0),(t=!this.checkable(e)&&(e.name in this.submitted||!this.optional(e))?!0:t)&&this.element(e)},onclick:function(e){var t=!1,r=(e||{}).type,a=m(e);-1<["checkbox","radio"].indexOf(r)&&((a=a.hasClass("wpforms-likert-scale-option")?a.closest("tr"):a.closest(".wpforms-field")).find("label.wpforms-error").remove(),t=!0),t&&this.element(e)}};e.validate(t)}))},isFieldInColumn:function(e){return e.parent().hasClass("wpforms-one-half")||e.parent().hasClass("wpforms-two-fifths")||e.parent().hasClass("wpforms-one-fifth")},isDateTimeField:function(e){return e.hasClass("wpforms-timepicker")||e.hasClass("wpforms-datepicker")||e.is("select")&&e.attr("class").match(/date-month|date-day|date-year/)},isWrappedField:function(e){return"checkbox"===e.attr("type")||"radio"===e.attr("type")||"range"===e.attr("type")||"select"===e.is("select")||e.parent().hasClass("iti")||e.hasClass("wpforms-validation-group-member")||e.hasClass("choicesjs-select")||e.hasClass("wpforms-net-promoter-score-option")},isLikertScaleField:function(e){return e.hasClass("wpforms-likert-scale-option")},dateTimeErrorPlacement:function(e,t){var r=e.closest(".wpforms-field-row-block, .wpforms-field-date-time");r.length?r.find("label.wpforms-error").length||r.append(t):e.closest(".wpforms-field").append(t)},loadDatePicker:function(){void 0!==m.fn.flatpickr&&m(".wpforms-datepicker-wrap").each(function(){var a=m(this),e=a.find("input"),t=a.closest(".wpforms-form").data("formid"),r=a.closest(".wpforms-field").data("field-id"),t=void 0!==f["wpforms_"+t+"_"+r]&&f["wpforms_"+t+"_"+r].hasOwnProperty("datepicker")?f["wpforms_"+t+"_"+r].datepicker:void 0!==f["wpforms_"+t]&&f["wpforms_"+t].hasOwnProperty("datepicker")?f["wpforms_"+t].datepicker:"undefined"!=typeof wpforms_datepicker?wpforms_datepicker:{disableMobile:!0};!t.hasOwnProperty("locale")&&"undefined"!=typeof wpforms_settings&&wpforms_settings.hasOwnProperty("locale")&&(t.locale=wpforms_settings.locale),t.wrap=!0,t.dateFormat=e.data("date-format"),1===e.data("disable-past-dates")&&(t.minDate="today");var o=e.data("limit-days"),i=["sun","mon","tue","wed","thu","fri","sat"];o&&""!==o&&(o=o.split(","),t.disable=[function(e){for(var t in o)if(i.indexOf(o[t])===e.getDay())return!1;return!0}]),t.onChange=function(e,t,r){t=""===t?"none":"block";a.find(".wpforms-datepicker-clear").css("display",t)},a.flatpickr(t)})},loadTimePicker:function(){void 0!==m.fn.timepicker&&m(".wpforms-timepicker").each(function(){var e=m(this),t=e.closest(".wpforms-form").data("formid"),r=e.closest(".wpforms-field").data("field-id"),t=void 0!==f["wpforms_"+t+"_"+r]&&f["wpforms_"+t+"_"+r].hasOwnProperty("timepicker")?f["wpforms_"+t+"_"+r].timepicker:void 0!==f["wpforms_"+t]&&f["wpforms_"+t].hasOwnProperty("timepicker")?f["wpforms_"+t].timepicker:"undefined"!=typeof wpforms_timepicker?wpforms_timepicker:{scrollDefault:"now",forceRoundTime:!0};e.timepicker(t)})},loadInputMask:function(){void 0!==m.fn.inputmask&&m(".wpforms-masked-input").inputmask()},loadSmartPhoneField:function(){var a,e,t;void 0!==m.fn.intlTelInput&&(a={},wpforms_settings.gdpr||(a.geoIpLookup=u.currentIpToCountry),wpforms_settings.gdpr&&(e=this.getFirstBrowserLanguage(),t=-1<e.indexOf("-")?e.split("-").pop():""),t=t&&(f.intlTelInputGlobals.getCountryData().filter(function(e){return e.iso2===t.toLowerCase()}).length?t:""),a.initialCountry=wpforms_settings.gdpr&&t?t:"auto",m(".wpforms-smart-phone-field").each(function(e,t){var r=m(t);a.hiddenInput=r.closest(".wpforms-field-phone").data("field-id"),a.utilsScript=wpforms_settings.wpforms_plugin_url+"pro/assets/js/vendor/jquery.intl-tel-input-utils.js",r.intlTelInput(a),r.attr("name","wpf-temp-"+r.attr("name")),r.addClass("wpforms-input-temp-name"),r.on("blur input",function(){!r.intlTelInput("isValidNumber")&&u.empty(f.WPFormsEditEntry)||r.siblings('input[type="hidden"]').val(r.intlTelInput("getNumber"))})}),m(".wpforms-form").on("wpformsBeforeFormSubmit",function(){m(this).find(".wpforms-smart-phone-field").trigger("input")}))},loadPayments:function(){m(".wpforms-payment-total").each(function(e,t){u.amountTotal(this)}),void 0!==m.fn.payment&&(m(".wpforms-field-credit-card-cardnumber").payment("formatCardNumber"),m(".wpforms-field-credit-card-cardcvc").payment("formatCardCVC"))},loadMailcheck:function(){wpforms_settings.mailcheck_enabled&&void 0!==m.fn.mailcheck&&(0<wpforms_settings.mailcheck_domains.length&&(Mailcheck.defaultDomains=Mailcheck.defaultDomains.concat(wpforms_settings.mailcheck_domains)),0<wpforms_settings.mailcheck_toplevel_domains.length&&(Mailcheck.defaultTopLevelDomains=Mailcheck.defaultTopLevelDomains.concat(wpforms_settings.mailcheck_toplevel_domains)),m(s).on("blur",".wpforms-field-email input",function(){var e=m(this),o=e.attr("id");e.mailcheck({suggested:function(e,t){t.address.match(/^xn--/)&&(t.full=punycode.toUnicode(decodeURI(t.full)),a=t.full.split("@"),t.address=a[0],t.domain=a[1]),t.domain.match(/^xn--/)&&(t.domain=punycode.toUnicode(decodeURI(t.domain)));var r=decodeURI(t.address).replaceAll(/[<>'"()/\\|:;=@%&\s]/gi,"").substr(0,64),a=decodeURI(t.domain).replaceAll(/[<>'"()/\\|:;=@%&+_\s]/gi,"");t='<a href="#" class="mailcheck-suggestion" data-id="'+o+'" title="'+wpforms_settings.val_email_suggestion_title+'">'+r+"@"+a+"</a>",t=wpforms_settings.val_email_suggestion.replace("{suggestion}",t),e.closest(".wpforms-field").find("#"+o+"_suggestion").remove(),e.parent().append('<label class="wpforms-error mailcheck-error" id="'+o+'_suggestion">'+t+"</label>")},empty:function(){m("#"+o+"_suggestion").remove()}})}),m(s).on("click",".wpforms-field-email .mailcheck-suggestion",function(e){var t=m(this),r=t.closest(".wpforms-field"),a=t.data("id");e.preventDefault(),r.find("#"+a).val(t.text()),t.parent().remove()}))},loadChoicesJS:function(){"function"==typeof f.Choices&&m(".wpforms-field-select-style-modern .choicesjs-select, .wpforms-field-payment-select .choicesjs-select").each(function(e,t){var r=f.wpforms_choicesjs_config||{},a=m(t).data("search-enabled");r.searchEnabled=void 0===a||a,r.callbackOnInit=function(){var t=this,r=m(t.passedElement.element),a=m(t.input.element),e=r.data("size-class");r.removeAttr("hidden").addClass(t.config.classNames.input+"--hidden"),e&&m(t.containerOuter.element).addClass(e),r.prop("multiple")&&t.getValue(!0).length&&a.addClass(t.config.classNames.input+"--hidden"),r.on("change",function(){var e;r.prop("multiple")&&(0<t.getValue(!0).length?a.addClass(t.config.classNames.input+"--hidden"):a.removeClass(t.config.classNames.input+"--hidden")),(e=r.closest("form").data("validator"))&&e.element(r)})},r.callbackOnCreateTemplates=function(){var r=m(this.passedElement.element);return{option:function(e){var t=Choices.defaults.templates.option.call(this,e);return void 0!==e.placeholder&&!0===e.placeholder&&t.classList.add("placeholder"),r.hasClass("wpforms-payment-price")&&void 0!==e.customProperties&&null!==e.customProperties&&(t.dataset.amount=e.customProperties),t}}},m(t).data("choicesjs",new Choices(t,r))})},bindUIActions:function(){m(s).on("click",".wpforms-page-button",function(e){e.preventDefault(),u.pagebreakNav(this)}),m(s).on("change input",".wpforms-payment-price",function(){u.amountTotal(this,!0)}),m(s).on("input",".wpforms-payment-user-input",function(){var e=m(this),t=e.val();e.val(t.replace(/[^0-9.,]/g,""))}),m(s).on("focusout",".wpforms-payment-user-input",function(){var e=m(this),t=e.val();if(!t)return t;t=u.amountSanitize(t),t=u.amountFormat(t);e.val(t)}),m(s).on("wpformsProcessConditionals",function(e,t){u.amountTotal(t,!0)}),m(".wpforms-field-rating-item").hover(function(){m(this).parent().find(".wpforms-field-rating-item").removeClass("selected hover"),m(this).prevAll().addBack().addClass("hover")},function(){m(this).parent().find(".wpforms-field-rating-item").removeClass("selected hover"),m(this).parent().find("input:checked").parent().prevAll().addBack().addClass("selected")}),m(s).on("change",".wpforms-field-rating-item input",function(){var e=m(this);e.closest(".wpforms-field-rating-items").find(".wpforms-field-rating-item").removeClass("hover selected"),e.parent().prevAll().addBack().addClass("selected")}),m(function(){m(".wpforms-field-rating-item input:checked").change()}),m(s).on("keypress",".wpforms-image-choices-item label",function(e){var t=m(this);if(t.closest(".wpforms-field").hasClass("wpforms-conditional-hide"))return e.preventDefault(),!1;13===e.which&&m("#"+t.attr("for")).click()}),f.document.documentMode&&m(s).on("click",".wpforms-image-choices-item img",function(){m(this).closest("label").find("input").click()}),m(s).on("change",".wpforms-field-checkbox input, .wpforms-field-radio input, .wpforms-field-payment-multiple input, .wpforms-field-payment-checkbox input, .wpforms-field-gdpr-checkbox input",function(e){var t=m(this);if(t.closest(".wpforms-field").hasClass("wpforms-conditional-hide"))return e.preventDefault(),!1;switch(t.attr("type")){case"radio":t.closest("ul").find("li").removeClass("wpforms-selected").find("input[type=radio]").removeProp("checked"),t.prop("checked",!0).closest("li").addClass("wpforms-selected");break;case"checkbox":t.is(":checked")?(t.closest("li").addClass("wpforms-selected"),t.prop("checked",!0)):(t.closest("li").removeClass("wpforms-selected"),t.prop("checked",!1))}}),m(s).on("change",'.wpforms-field-file-upload input[type=file]:not(".dropzone-input")',function(){var e=m(this),t=e.closest("form.wpforms-form").find('.wpforms-field-file-upload input:not(".dropzone-input")'),a=0,r=Number(wpforms_settings.post_max_size),o='<div class="wpforms-error-container-post_max_size">'+wpforms_settings.val_post_max_size+"</div>",i=e.closest("form.wpforms-form").find(".wpforms-submit-container"),s=i.find("button.wpforms-submit"),e=i.prev();t.each(function(){for(var e=m(this),t=0,r=e[0].files.length;t<r;t++)a+=e[0].files[t].size}),r<a?(a=Number((a/1048576).toFixed(3)),r=Number((r/1048576).toFixed(3)),o=o.replace(/{totalSize}/,a).replace(/{maxSize}/,r),e.hasClass("wpforms-error-container")?(e.find(".wpforms-error-container-post_max_size").remove(),e.append(o)):i.before('<div class="wpforms-error-container">{errorMsg}</span></div>'.replace(/{errorMsg}/,o)),s.prop("disabled",!0)):(e.find(".wpforms-error-container-post_max_size").remove(),s.prop("disabled",!1))}),m(s).on("change input",".wpforms-field-number-slider input[type=range]",function(e){var t=m(e.target).siblings(".wpforms-field-number-slider-hint");t.html(t.data("hint").replace("{value}","<b>"+e.target.value+"</b>"))}),m(s).on("keydown",".wpforms-form input",function(e){var t,r;13!==e.keyCode||0!==(r=(t=m(this)).closest(".wpforms-page")).length&&(["text","tel","number","email","url","radio","checkbox"].indexOf(t.attr("type"))<0||(t.hasClass("wpforms-datepicker")&&t.flatpickr("close"),e.preventDefault(),(r.hasClass("last")?r.closest(".wpforms-form").find(".wpforms-submit"):r.find(".wpforms-page-next")).click()))}),m(s).on("keypress",".wpforms-field-number input",function(e){return/^[-0-9.]+$/.test(String.fromCharCode(e.keyCode||e.which))})},entryPreviewFieldPageChange:function(e,t,r){console.warn("WARNING! Obsolete function called. Function wpforms.entryPreviewFieldPageChange has been deprecated, please use the WPFormsEntryPreview.pageChange function instead!"),WPFormsEntryPreview.pageChange(e,t,r)},entryPreviewFieldUpdate:function(e,t){console.warn("WARNING! Obsolete function called. Function wpforms.entryPreviewFieldUpdate has been deprecated, please use the WPFormsEntryPreview.update function instead!"),WPFormsEntryPreview.update(e,t)},scrollToError:function(e){var t;0!==e.length&&(0===(t=0===(t=e.find(".wpforms-field.wpforms-has-error")).length?e.closest(".wpforms-field"):t).length||void 0!==(e=t.offset())&&u.animateScrollTop(e.top-75,750).done(function(){var e=t.find(".wpforms-error").first();"function"==typeof e.focus&&e.focus()}))},pagebreakNav:function(e){var t=m(e),r=!0,a=t.data("action"),o=t.data("page"),i=o,s=o+1,n=o-1,p=t.closest(".wpforms-form"),l=p.find(".wpforms-page-"+o),c=p.find(".wpforms-submit-container"),d=p.find(".wpforms-page-indicator"),e=p.find(".wpforms-recaptcha-container"),o=!1;u.saveTinyMCE(),o=!1!==f.wpforms_pageScroll&&(u.empty(f.wpform_pageScroll)?0!==d.data("scroll")&&75:f.wpform_pageScroll),"next"===a?(void 0!==m.fn.validate&&(l.find(":input").each(function(e,t){m(t).attr("name")&&(m(t).valid()||(r=!1))}),u.scrollToError(l)),r&&(t.trigger("wpformsBeforePageChange",[i=s,p]),l.hide(),(s=p.find(".wpforms-page-"+s)).show(),s.hasClass("last")&&(e.show(),c.show()),o&&u.animateScrollTop(p.offset().top-o,750),t.trigger("wpformsPageChange",[i,p]))):"prev"===a&&(t.trigger("wpformsBeforePageChange",[i=n,p]),l.hide(),p.find(".wpforms-page-"+n).show(),e.hide(),c.hide(),o&&u.animateScrollTop(p.offset().top-o),t.trigger("wpformsPageChange",[i,p])),d&&(o=d.data("indicator"),t=d.data("indicator-color"),"connector"===o||"circles"===o?(d.find(".wpforms-page-indicator-page").removeClass("active"),d.find(".wpforms-page-indicator-page-"+i).addClass("active"),d.find(".wpforms-page-indicator-page-number").removeAttr("style"),d.find(".active .wpforms-page-indicator-page-number").css("background-color",t),"connector"===o&&(d.find(".wpforms-page-indicator-page-triangle").removeAttr("style"),d.find(".active .wpforms-page-indicator-page-triangle").css("border-top-color",t))):"progress"===o&&(t=d.find(".wpforms-page-indicator-page-title"),o=d.find(".wpforms-page-indicator-page-title-sep"),p=i/p.find(".wpforms-page").length*100,d.find(".wpforms-page-indicator-page-progress").css("width",p+"%"),d.find(".wpforms-page-indicator-steps-current").text(i),t.data("page-"+i+"-title")?(t.css("display","inline").text(t.data("page-"+i+"-title")),o.css("display","inline")):(t.css("display","none"),o.css("display","none"))))},bindOptinMonster:function(){s.addEventListener("om.Campaign.load",function(e){u.ready(),u.optinMonsterRecaptchaReset(e.detail.Campaign.data.id)}),m(s).on("OptinMonsterOnShow",function(e,t,r){u.ready(),u.optinMonsterRecaptchaReset(t.optin)})},optinMonsterRecaptchaReset:function(e){var t,r=m("#om-"+e).find(".wpforms-form"),a=r.find(".wpforms-recaptcha-container"),o=r.find(".g-recaptcha");r.length&&o.length&&(e=o.attr("data-sitekey"),t="recaptcha-"+Date.now(),r=a.hasClass("wpforms-is-hcaptcha")?hcaptcha:grecaptcha,o.remove(),a.prepend('<div class="g-recaptcha" id="'+t+'" data-sitekey="'+e+'"></div>'),r.render(t,{sitekey:e,callback:function(){wpformsRecaptchaCallback(m("#"+t))}}))},amountTotal:function(e,r){r=r||!1;var a=m(e).closest(".wpforms-form"),t=u.getCurrency(),e=u.amountTotalCalc(a),e=u.amountFormat(e),o="left"===t.symbol_pos?t.symbol+" "+e:e+" "+t.symbol;a.find(".wpforms-payment-total").each(function(e,t){"hidden"===m(this).attr("type")||"text"===m(this).attr("type")?(m(this).val(o),"text"===m(this).attr("type")&&r&&a.data("validator")&&m(this).valid()):m(this).text(o)})},amountTotalCalc:function(e){var a=0;return m(".wpforms-payment-price",e).each(function(){var e=0,t=m(this),r=t.attr("type");t.closest(".wpforms-field-payment-single").hasClass("wpforms-conditional-hide")||("text"===r||"hidden"===r?e=t.val():"radio"!==r&&"checkbox"!==r||!t.is(":checked")?t.is("select")&&0<t.find("option:selected").length&&(e=t.find("option:selected").data("amount")):e=t.data("amount"),u.empty(e)||(e=u.amountSanitize(e),a=Number(a)+Number(e)))}),a},amountSanitize:function(e){var t=u.getCurrency();return e=e.toString().replace(/[^0-9.,]/g,""),","===t.decimal_sep?("."===t.thousands_sep&&-1!==e.indexOf(t.thousands_sep)?e=e.replace(new RegExp("\\"+t.thousands_sep,"g"),""):""===t.thousands_sep&&-1!==e.indexOf(".")&&(e=e.replace(/\./g,"")),e=e.replace(t.decimal_sep,".")):","===t.thousands_sep&&-1!==e.indexOf(t.thousands_sep)&&(e=e.replace(new RegExp("\\"+t.thousands_sep,"g"),"")),u.numberFormat(e,t.decimals,".","")},amountFormat:function(e){var t,r=u.getCurrency();return e=String(e),","===r.decimal_sep&&-1!==e.indexOf(r.decimal_sep)&&(t=e.indexOf(r.decimal_sep),e=e.substr(0,t)+"."+e.substr(t+1,e.length-1)),","===r.thousands_sep&&-1!==e.indexOf(r.thousands_sep)&&(e=e.replace(/,/g,"")),u.empty(e)&&(e=0),u.numberFormat(e,r.decimals,r.decimal_sep,r.thousands_sep)},getCurrency:function(){var e={code:"USD",thousands_sep:",",decimals:2,decimal_sep:".",symbol:"$",symbol_pos:"left"};return void 0!==wpforms_settings.currency_code&&(e.code=wpforms_settings.currency_code),void 0!==wpforms_settings.currency_thousands&&(e.thousands_sep=wpforms_settings.currency_thousands),void 0!==wpforms_settings.currency_decimals&&(e.decimals=wpforms_settings.currency_decimals),void 0!==wpforms_settings.currency_decimal&&(e.decimal_sep=wpforms_settings.currency_decimal),void 0!==wpforms_settings.currency_symbol&&(e.symbol=wpforms_settings.currency_symbol),void 0!==wpforms_settings.currency_symbol_pos&&(e.symbol_pos=wpforms_settings.currency_symbol_pos),e},numberFormat:function(e,t,r,a){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var o,i,s,e=isFinite(+e)?+e:0,t=isFinite(+t)?Math.abs(t):0,a=void 0===a?",":a,r=void 0===r?".":r,e=(t?(o=e,i=t,s=Math.pow(10,i),""+(Math.round(o*s)/s).toFixed(i)):""+Math.round(e)).split(".");return 3<e[0].length&&(e[0]=e[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,a)),(e[1]||"").length<t&&(e[1]=e[1]||"",e[1]+=new Array(t-e[1].length+1).join("0")),e.join(r)},empty:function(e){for(var t,r=[void 0,null,!1,0,"","0"],a=0,o=r.length;a<o;a++)if(e===r[a])return!0;if("object"!=typeof e)return!1;for(t in e)if(e.hasOwnProperty(t))return!1;return!0},setUserIndentifier:function(){if((!f.hasRequiredConsent&&"undefined"!=typeof wpforms_settings&&wpforms_settings.uuid_cookie||f.hasRequiredConsent&&f.hasRequiredConsent())&&!u.getCookie("_wpfuuid")){for(var e,t=new Array(36),r="0123456789abcdef",a=0;a<36;a++)t[a]=r.substr(Math.floor(16*Math.random()),1);t[14]="4",t[19]=r.substr(3&t[19]|8,1),t[8]=t[13]=t[18]=t[23]="-",e=t.join(""),u.createCookie("_wpfuuid",e,3999)}},createCookie:function(e,t,r){var a,o="",i="";wpforms_settings.is_ssl&&(i=";secure"),o=r?"-1"===r?"":((a=new Date).setTime(a.getTime()+24*r*60*60*1e3),";expires="+a.toGMTString()):";expires=Thu, 01 Jan 1970 00:00:01 GMT",s.cookie=e+"="+t+o+";path=/;samesite=strict"+i},getCookie:function(e){for(var t=e+"=",r=s.cookie.split(";"),a=0;a<r.length;a++){for(var o=r[a];" "===o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(t))return o.substring(t.length,o.length)}return null},removeCookie:function(e){u.createCookie(e,"",-1)},getFirstBrowserLanguage:function(){var e,t,r=f.navigator,a=["language","browserLanguage","systemLanguage","userLanguage"];if(Array.isArray(r.languages))for(e=0;e<r.languages.length;e++)if((t=r.languages[e])&&t.length)return t;for(e=0;e<a.length;e++)if((t=r[a[e]])&&t.length)return t;return""},currentIpToCountry:function(r){function t(){m.get("https://ipapi.co/jsonp",function(){},"jsonp").always(function(e){var t=e&&e.country?e.country:"";t||(t=-1<(e=u.getFirstBrowserLanguage()).indexOf("-")?e.split("-").pop():""),r(t)})}m.get("https://geo.wpforms.com/v3/geolocate/json").done(function(e){e&&e.country_iso?r(e.country_iso):t()}).fail(function(e){t()})},formSubmit:function(e){e instanceof jQuery||(e=m(e)),u.saveTinyMCE(),e.trigger("wpformsBeforeFormSubmit"),e.hasClass("wpforms-ajax-form")&&"undefined"!=typeof FormData?u.formSubmitAjax(e):u.formSubmitNormal(e)},formSubmitNormal:function(e){var t,r;e.length&&(r=(t=e.find(".wpforms-submit")).get(0).recaptchaID,u.empty(r)&&0!==r||(t.get(0).recaptchaID=!1),e.get(0).submit())},resetFormRecaptcha:function(e){var t,r;e&&e.length&&("undefined"==typeof hcaptcha&&"undefined"==typeof grecaptcha||(t=e.find(".wpforms-recaptcha-container").hasClass("wpforms-is-hcaptcha")?hcaptcha:grecaptcha,r=e.find(".wpforms-submit").get(0).recaptchaID,u.empty(r)&&0!==r&&(r=e.find(".g-recaptcha").data("recaptcha-id")),u.empty(r)&&0!==r||t.reset(r)))},consoleLogAjaxError:function(e){e?console.error("WPForms AJAX submit error:\n%s",e):console.error("WPForms AJAX submit error")},displayFormAjaxErrors:function(e,t){"string"!=typeof t?(t=t&&"errors"in t?t.errors:null,u.empty(t)||u.empty(t.general)&&u.empty(t.field)?u.consoleLogAjaxError():(u.empty(t.general)||u.displayFormAjaxGeneralErrors(e,t.general),u.empty(t.field)||u.displayFormAjaxFieldErrors(e,t.field))):u.displayFormAjaxGeneralErrors(e,t)},displayFormAjaxGeneralErrors:function(r,e){r&&r.length&&(u.empty(e)||("string"!=typeof e?m.each(e,function(e,t){switch(e){case"header":r.prepend(t);break;case"footer":r.find(".wpforms-submit-container").before(t);break;case"recaptcha":r.find(".wpforms-recaptcha-container").append(t)}}):r.find(".wpforms-submit-container").before('<div class="wpforms-error-container">'+e+"</div>")))},clearFormAjaxGeneralErrors:function(e){e.find(".wpforms-error-container").remove(),e.find("#wpforms-field_recaptcha-error").remove()},displayFormAjaxFieldErrors:function(e,t){e&&e.length&&(u.empty(t)||(e=e.data("validator"))&&(e.showErrors(t),e.focusInvalid()))},formSubmitAjax:function(o){if(!o.length)return m.Deferred().reject();var t,e,i=o.closest(".wpforms-container"),s=o.find(".wpforms-submit-spinner");return i.css("opacity",.6),s.show(),u.clearFormAjaxGeneralErrors(o),(e=new FormData(o.get(0))).append("action","wpforms_submit"),e.append("page_url",f.location.href),e={type:"post",dataType:"json",url:wpforms_settings.ajaxurl,data:e,cache:!1,contentType:!1,processData:!1,success:function(e){if(e){if(!e.data||!e.data.action_required)return e.success?(o.trigger("wpformsAjaxSubmitSuccess",e),e.data?e.data.redirect_url?(o.trigger("wpformsAjaxSubmitBeforeRedirect",e),void(f.location=e.data.redirect_url)):void(e.data.confirmation&&(i.html(e.data.confirmation),t=i.find("div.wpforms-confirmation-scroll"),i.trigger("wpformsAjaxSubmitSuccessConfirmation",e),t.length&&u.animateScrollTop(t.offset().top-100))):void 0):(u.resetFormRecaptcha(o),u.displayFormAjaxErrors(o,e.data),void o.trigger("wpformsAjaxSubmitFailed",e));o.trigger("wpformsAjaxSubmitActionRequired",e)}else u.consoleLogAjaxError()},error:function(e,t,r){u.consoleLogAjaxError(r),o.trigger("wpformsAjaxSubmitError",[e,t,r])},complete:function(e,t){var r,a;e.responseJSON&&e.responseJSON.data&&e.responseJSON.data.action_required||((a=(r=o.find(".wpforms-submit")).data("submit-text"))&&r.text(a),r.prop("disabled",!1),i.css("opacity",""),s.hide(),o.trigger("wpformsAjaxSubmitCompleted",[e,t]))}},o.trigger("wpformsAjaxBeforeSubmit"),m.ajax(e)},animateScrollTop:function(e,t,r){return t=t||1e3,r="function"==typeof r?r:function(){},m("html, body").animate({scrollTop:parseInt(e,10)},{duration:t,complete:r}).promise()},saveTinyMCE:function(){"undefined"!=typeof tinyMCE&&tinyMCE.triggerSave()},isFunction:function(e){return!!(e&&e.constructor&&e.call&&e.apply)},compareTimesGreaterThan:function(e,t){e=e.replace(/(am|pm)/g," $1").toUpperCase(),t=t.replace(/(am|pm)/g," $1").toUpperCase();e=Date.parse("01 Jan 2021 "+e);return Date.parse("01 Jan 2021 "+t)<=e}};return u}(document,window,jQuery);wpforms.init();
assets/languages/wpforms-lite.pot CHANGED
@@ -1,15 +1,15 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: WPForms Lite 1.7.2\n"
4
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wpforms-lite\n"
5
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
6
  "Language-Team: LANGUAGE <LL@li.org>\n"
7
  "MIME-Version: 1.0\n"
8
  "Content-Type: text/plain; charset=UTF-8\n"
9
  "Content-Transfer-Encoding: 8bit\n"
10
- "POT-Creation-Date: 2022-01-04T09:40:45+00:00\n"
11
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12
- "X-Generator: WP-CLI 2.5.0\n"
13
  "X-Domain: wpforms-lite\n"
14
 
15
  #. Plugin Name of the plugin
@@ -24,7 +24,7 @@ msgstr ""
24
  #: src/Integrations/Divi/Divi.php:207
25
  #: src/Integrations/Divi/WPFormsSelector.php:35
26
  #: src/Integrations/Elementor/Widget.php:41
27
- #: src/Integrations/Gutenberg/FormSelector.php:90
28
  #: src/Lite/Admin/DashboardWidget.php:162
29
  msgid "WPForms"
30
  msgstr ""
@@ -152,7 +152,7 @@ msgstr ""
152
  #: includes/admin/admin.php:157
153
  #: includes/admin/builder/class-builder.php:506
154
  #: src/Admin/Education/Builder/Captcha.php:156
155
- #: src/Integrations/Gutenberg/FormSelector.php:103
156
  #: wpforms.php:148
157
  msgid "Heads up!"
158
  msgstr ""
@@ -1355,7 +1355,7 @@ msgid "About Us"
1355
  msgstr ""
1356
 
1357
  #: includes/admin/class-about.php:114
1358
- #: src/Admin/Builder/Help.php:243
1359
  msgid "Getting Started"
1360
  msgstr ""
1361
 
@@ -2051,7 +2051,7 @@ msgid "Info"
2051
  msgstr ""
2052
 
2053
  #: includes/admin/class-menu.php:122
2054
- #: src/Admin/Builder/Help.php:247
2055
  msgid "Addons"
2056
  msgstr ""
2057
 
@@ -2278,7 +2278,7 @@ msgstr ""
2278
 
2279
  #: includes/admin/class-settings.php:388
2280
  #: includes/class-frontend.php:1629
2281
- #: includes/functions.php:2014
2282
  msgid "This field is required."
2283
  msgstr ""
2284
 
@@ -4802,7 +4802,7 @@ msgid "Saturday"
4802
  msgstr ""
4803
 
4804
  #. translators: %d - a page ID.
4805
- #: includes/functions.php:3084
4806
  msgid "#%d (no title)"
4807
  msgstr ""
4808
 
@@ -4827,7 +4827,7 @@ msgstr ""
4827
  #: src/Integrations/Divi/WPFormsSelector.php:60
4828
  #: src/Integrations/Elementor/Widget.php:115
4829
  #: src/Integrations/Elementor/Widget.php:143
4830
- #: src/Integrations/Gutenberg/FormSelector.php:100
4831
  #: templates/emails/summary-body-plain.php:32
4832
  #: templates/emails/summary-body.php:59
4833
  msgid "Form"
@@ -5425,15 +5425,15 @@ msgstr ""
5425
  msgid "Form ID: %d"
5426
  msgstr ""
5427
 
5428
- #: src/Admin/Builder/Help.php:244
5429
  msgid "Functionality"
5430
  msgstr ""
5431
 
5432
- #: src/Admin/Builder/Help.php:245
5433
  msgid "Styling"
5434
  msgstr ""
5435
 
5436
- #: src/Admin/Builder/Help.php:246
5437
  msgid "Extending"
5438
  msgstr ""
5439
 
@@ -6575,12 +6575,12 @@ msgid "Select form"
6575
  msgstr ""
6576
 
6577
  #: src/Integrations/Divi/WPFormsSelector.php:67
6578
- #: src/Integrations/Gutenberg/FormSelector.php:101
6579
  msgid "Show Title"
6580
  msgstr ""
6581
 
6582
  #: src/Integrations/Divi/WPFormsSelector.php:77
6583
- #: src/Integrations/Gutenberg/FormSelector.php:102
6584
  msgid "Show Description"
6585
  msgstr ""
6586
 
@@ -6616,39 +6616,39 @@ msgstr ""
6616
  msgid "Select a form"
6617
  msgstr ""
6618
 
6619
- #: src/Integrations/Gutenberg/FormSelector.php:91
6620
  msgid "Select and display one of your forms."
6621
  msgstr ""
6622
 
6623
- #: src/Integrations/Gutenberg/FormSelector.php:93
6624
  msgid "form"
6625
  msgstr ""
6626
 
6627
- #: src/Integrations/Gutenberg/FormSelector.php:94
6628
  msgid "contact"
6629
  msgstr ""
6630
 
6631
- #: src/Integrations/Gutenberg/FormSelector.php:95
6632
  msgid "survey"
6633
  msgstr ""
6634
 
6635
- #: src/Integrations/Gutenberg/FormSelector.php:98
6636
  msgid "Select a Form"
6637
  msgstr ""
6638
 
6639
- #: src/Integrations/Gutenberg/FormSelector.php:99
6640
  msgid "Form Settings"
6641
  msgstr ""
6642
 
6643
- #: src/Integrations/Gutenberg/FormSelector.php:104
6644
  msgid "Do not forget to test your form."
6645
  msgstr ""
6646
 
6647
- #: src/Integrations/Gutenberg/FormSelector.php:105
6648
  msgid "Check out our complete guide!"
6649
  msgstr ""
6650
 
6651
- #: src/Integrations/Gutenberg/FormSelector.php:252
6652
  msgid "The form cannot be displayed."
6653
  msgstr ""
6654
 
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: WPForms Lite 1.7.2.1\n"
4
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wpforms-lite\n"
5
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
6
  "Language-Team: LANGUAGE <LL@li.org>\n"
7
  "MIME-Version: 1.0\n"
8
  "Content-Type: text/plain; charset=UTF-8\n"
9
  "Content-Transfer-Encoding: 8bit\n"
10
+ "POT-Creation-Date: 2022-02-02T14:30:46+02:00\n"
11
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12
+ "X-Generator: WP-CLI 2.6.0\n"
13
  "X-Domain: wpforms-lite\n"
14
 
15
  #. Plugin Name of the plugin
24
  #: src/Integrations/Divi/Divi.php:207
25
  #: src/Integrations/Divi/WPFormsSelector.php:35
26
  #: src/Integrations/Elementor/Widget.php:41
27
+ #: src/Integrations/Gutenberg/FormSelector.php:91
28
  #: src/Lite/Admin/DashboardWidget.php:162
29
  msgid "WPForms"
30
  msgstr ""
152
  #: includes/admin/admin.php:157
153
  #: includes/admin/builder/class-builder.php:506
154
  #: src/Admin/Education/Builder/Captcha.php:156
155
+ #: src/Integrations/Gutenberg/FormSelector.php:104
156
  #: wpforms.php:148
157
  msgid "Heads up!"
158
  msgstr ""
1355
  msgstr ""
1356
 
1357
  #: includes/admin/class-about.php:114
1358
+ #: src/Admin/Builder/Help.php:249
1359
  msgid "Getting Started"
1360
  msgstr ""
1361
 
2051
  msgstr ""
2052
 
2053
  #: includes/admin/class-menu.php:122
2054
+ #: src/Admin/Builder/Help.php:253
2055
  msgid "Addons"
2056
  msgstr ""
2057
 
2278
 
2279
  #: includes/admin/class-settings.php:388
2280
  #: includes/class-frontend.php:1629
2281
+ #: includes/functions.php:2020
2282
  msgid "This field is required."
2283
  msgstr ""
2284
 
4802
  msgstr ""
4803
 
4804
  #. translators: %d - a page ID.
4805
+ #: includes/functions.php:3090
4806
  msgid "#%d (no title)"
4807
  msgstr ""
4808
 
4827
  #: src/Integrations/Divi/WPFormsSelector.php:60
4828
  #: src/Integrations/Elementor/Widget.php:115
4829
  #: src/Integrations/Elementor/Widget.php:143
4830
+ #: src/Integrations/Gutenberg/FormSelector.php:101
4831
  #: templates/emails/summary-body-plain.php:32
4832
  #: templates/emails/summary-body.php:59
4833
  msgid "Form"
5425
  msgid "Form ID: %d"
5426
  msgstr ""
5427
 
5428
+ #: src/Admin/Builder/Help.php:250
5429
  msgid "Functionality"
5430
  msgstr ""
5431
 
5432
+ #: src/Admin/Builder/Help.php:251
5433
  msgid "Styling"
5434
  msgstr ""
5435
 
5436
+ #: src/Admin/Builder/Help.php:252
5437
  msgid "Extending"
5438
  msgstr ""
5439
 
6575
  msgstr ""
6576
 
6577
  #: src/Integrations/Divi/WPFormsSelector.php:67
6578
+ #: src/Integrations/Gutenberg/FormSelector.php:102
6579
  msgid "Show Title"
6580
  msgstr ""
6581
 
6582
  #: src/Integrations/Divi/WPFormsSelector.php:77
6583
+ #: src/Integrations/Gutenberg/FormSelector.php:103
6584
  msgid "Show Description"
6585
  msgstr ""
6586
 
6616
  msgid "Select a form"
6617
  msgstr ""
6618
 
6619
+ #: src/Integrations/Gutenberg/FormSelector.php:92
6620
  msgid "Select and display one of your forms."
6621
  msgstr ""
6622
 
6623
+ #: src/Integrations/Gutenberg/FormSelector.php:94
6624
  msgid "form"
6625
  msgstr ""
6626
 
6627
+ #: src/Integrations/Gutenberg/FormSelector.php:95
6628
  msgid "contact"
6629
  msgstr ""
6630
 
6631
+ #: src/Integrations/Gutenberg/FormSelector.php:96
6632
  msgid "survey"
6633
  msgstr ""
6634
 
6635
+ #: src/Integrations/Gutenberg/FormSelector.php:99
6636
  msgid "Select a Form"
6637
  msgstr ""
6638
 
6639
+ #: src/Integrations/Gutenberg/FormSelector.php:100
6640
  msgid "Form Settings"
6641
  msgstr ""
6642
 
6643
+ #: src/Integrations/Gutenberg/FormSelector.php:105
6644
  msgid "Do not forget to test your form."
6645
  msgstr ""
6646
 
6647
+ #: src/Integrations/Gutenberg/FormSelector.php:106
6648
  msgid "Check out our complete guide!"
6649
  msgstr ""
6650
 
6651
+ #: src/Integrations/Gutenberg/FormSelector.php:253
6652
  msgid "The form cannot be displayed."
6653
  msgstr ""
6654
 
changelog.txt CHANGED
@@ -1,5 +1,12 @@
1
  == Changelog ==
2
 
 
 
 
 
 
 
 
3
  = 1.7.2 =
4
  - Added: Search by form name and description is available on the Forms Overview page.
5
  - Added: New "Author" column in the Forms Overview table to display a name of a person who created the form.
1
  == Changelog ==
2
 
3
+ = 1.7.2.1 =
4
+ - Fixed: Compatibility with PHP 8.0 and PHP 8.1.
5
+ - Fixed: Compatibility with WordPress 5.9, including its new Full Site Editing feature.
6
+ - Fixed: Broken cache directory path if `WP_CONTENT_DIR` is set in the `wp-config.php` without trailing slash.
7
+ - Fixed: PHP Notice when using the `wpforms_log()` function in certain conditions.
8
+ - Fixed: Type mismatch brakes a list of scheduled actions in Action Scheduler if typed arguments are passed.
9
+
10
  = 1.7.2 =
11
  - Added: Search by form name and description is available on the Forms Overview page.
12
  - Added: New "Author" column in the Forms Overview table to display a name of a person who created the form.
includes/class-db.php CHANGED
@@ -430,4 +430,66 @@ abstract class WPForms_DB {
430
  // phpcs:ignore WordPress.DB.DirectDatabaseQuery.NoCaching
431
  return $wpdb->get_var( $wpdb->prepare( 'SHOW TABLES LIKE %s', $table ) ) === $table;
432
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
433
  }
430
  // phpcs:ignore WordPress.DB.DirectDatabaseQuery.NoCaching
431
  return $wpdb->get_var( $wpdb->prepare( 'SHOW TABLES LIKE %s', $table ) ) === $table;
432
  }
433
+
434
+ /**
435
+ * Build WHERE for a query.
436
+ *
437
+ * @since 1.7.2.1
438
+ *
439
+ * @param array $args Optional args.
440
+ * @param array $keys Allowed arg items.
441
+ * @param string|string[] $formats Formats of arg items.
442
+ *
443
+ * @return string
444
+ */
445
+ protected function build_query_where( $args, $keys = [], $formats = [] ) {
446
+
447
+ $formats = array_pad( $formats, count( $keys ), '%d' );
448
+ $where = '';
449
+
450
+ foreach ( $keys as $index => $key ) {
451
+ // Value `$args[ $key ]` can be a natural number and a numeric string.
452
+ // We should skip empty string values, but continue working with '0'.
453
+ if ( empty( $args[ $key ] ) && $args[ $key ] !== '0' ) {
454
+ continue;
455
+ }
456
+
457
+ $ids = $this->prepare_in( $args[ $key ], $formats[ $index ] );
458
+
459
+ $where .= empty( $where ) ? 'WHERE' : 'AND';
460
+ $where .= " `{$key}` IN ( {$ids} ) ";
461
+ }
462
+
463
+ return $where;
464
+ }
465
+
466
+ /**
467
+ * Changes array of items into string of items, separated by comma and sql-escaped.
468
+ *
469
+ * @see https://coderwall.com/p/zepnaw
470
+ *
471
+ * @since 1.7.2.1
472
+ *
473
+ * @param mixed|array $items Item(s) to be joined into string.
474
+ * @param string $format Can be %s or %d.
475
+ *
476
+ * @return string Items separated by comma and sql-escaped.
477
+ */
478
+ private function prepare_in( $items, $format = '%s' ) {
479
+
480
+ global $wpdb;
481
+
482
+ $items = (array) $items;
483
+ $how_many = count( $items );
484
+
485
+ if ( $how_many === 0 ) {
486
+ return '';
487
+ }
488
+
489
+ $placeholders = array_fill( 0, $how_many, $format );
490
+ $prepared_format = implode( ',', $placeholders );
491
+
492
+ // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared
493
+ return $wpdb->prepare( $prepared_format, $items );
494
+ }
495
  }
includes/fields/class-email.php CHANGED
@@ -587,7 +587,7 @@ class WPForms_Field_Email extends WPForms_Field {
587
 
588
  $form_id = filter_input( INPUT_POST, 'form_id', FILTER_SANITIZE_NUMBER_INT );
589
  $field_id = filter_input( INPUT_POST, 'field_id', FILTER_SANITIZE_NUMBER_INT );
590
- $email = filter_input( INPUT_POST, 'email', FILTER_SANITIZE_STRING );
591
 
592
  if ( ! $form_id || ! $field_id || ! $email ) {
593
  wp_send_json_error();
@@ -617,7 +617,7 @@ class WPForms_Field_Email extends WPForms_Field {
617
  // Run a security check.
618
  check_ajax_referer( 'wpforms-builder', 'nonce' );
619
 
620
- $content = filter_input( INPUT_GET, 'content', FILTER_SANITIZE_STRING );
621
 
622
  if ( ! $content ) {
623
  wp_send_json_error();
587
 
588
  $form_id = filter_input( INPUT_POST, 'form_id', FILTER_SANITIZE_NUMBER_INT );
589
  $field_id = filter_input( INPUT_POST, 'field_id', FILTER_SANITIZE_NUMBER_INT );
590
+ $email = filter_input( INPUT_POST, 'email', FILTER_SANITIZE_FULL_SPECIAL_CHARS );
591
 
592
  if ( ! $form_id || ! $field_id || ! $email ) {
593
  wp_send_json_error();
617
  // Run a security check.
618
  check_ajax_referer( 'wpforms-builder', 'nonce' );
619
 
620
+ $content = filter_input( INPUT_GET, 'content', FILTER_SANITIZE_FULL_SPECIAL_CHARS );
621
 
622
  if ( ! $content ) {
623
  wp_send_json_error();
includes/functions.php CHANGED
@@ -1899,24 +1899,30 @@ function wpforms_log( $title = '', $message = '', $args = array() ) {
1899
 
1900
  // Filter logs types from Tools -> Logs page.
1901
  $logs_types = wpforms_setting( 'logs-types', false );
 
1902
  if ( $logs_types && empty( array_intersect( $logs_types, $types ) ) ) {
1903
  return;
1904
  }
1905
 
1906
  // Filter user roles from Tools -> Logs page.
1907
- global $current_user;
1908
- $logs_user_roles = wpforms_setting( 'logs-user-roles', false );
1909
- if ( $logs_user_roles && empty( array_intersect( $logs_user_roles, $current_user->roles ) ) ) {
 
 
 
1910
  return;
1911
  }
1912
 
1913
  // Filter logs users from Tools -> Logs page.
1914
  $logs_users = wpforms_setting( 'logs-users', false );
1915
- if ( $logs_users && ! in_array( $current_user->ID, $logs_users, true ) ) {
 
1916
  return;
1917
  }
1918
 
1919
  $log = wpforms()->get( 'log' );
 
1920
  if ( ! method_exists( $log, 'add' ) ) {
1921
  return;
1922
  }
@@ -1927,7 +1933,7 @@ function wpforms_log( $title = '', $message = '', $args = array() ) {
1927
  $types,
1928
  isset( $args['form_id'] ) ? absint( $args['form_id'] ) : 0,
1929
  isset( $args['parent'] ) ? absint( $args['parent'] ) : 0,
1930
- $current_user->ID
1931
  );
1932
  }
1933
 
@@ -2704,7 +2710,7 @@ function wpforms_upload_dir() {
2704
  */
2705
  $custom_uploads_root = apply_filters( 'wpforms_upload_root', $wpforms_upload_root );
2706
 
2707
- if ( wp_is_writable( $custom_uploads_root ) ) {
2708
  $wpforms_upload_root = wp_is_stream( $custom_uploads_root )
2709
  ? $custom_uploads_root
2710
  : realpath( $custom_uploads_root );
1899
 
1900
  // Filter logs types from Tools -> Logs page.
1901
  $logs_types = wpforms_setting( 'logs-types', false );
1902
+
1903
  if ( $logs_types && empty( array_intersect( $logs_types, $types ) ) ) {
1904
  return;
1905
  }
1906
 
1907
  // Filter user roles from Tools -> Logs page.
1908
+ $current_user = function_exists( 'wp_get_current_user' ) ? wp_get_current_user() : null;
1909
+ $current_user_id = $current_user ? $current_user->ID : 0;
1910
+ $current_user_roles = $current_user ? $current_user->roles : [];
1911
+ $logs_user_roles = wpforms_setting( 'logs-user-roles', false );
1912
+
1913
+ if ( $logs_user_roles && empty( array_intersect( $logs_user_roles, $current_user_roles ) ) ) {
1914
  return;
1915
  }
1916
 
1917
  // Filter logs users from Tools -> Logs page.
1918
  $logs_users = wpforms_setting( 'logs-users', false );
1919
+
1920
+ if ( $logs_users && ! in_array( $current_user_id, $logs_users, true ) ) {
1921
  return;
1922
  }
1923
 
1924
  $log = wpforms()->get( 'log' );
1925
+
1926
  if ( ! method_exists( $log, 'add' ) ) {
1927
  return;
1928
  }
1933
  $types,
1934
  isset( $args['form_id'] ) ? absint( $args['form_id'] ) : 0,
1935
  isset( $args['parent'] ) ? absint( $args['parent'] ) : 0,
1936
+ $current_user_id
1937
  );
1938
  }
1939
 
2710
  */
2711
  $custom_uploads_root = apply_filters( 'wpforms_upload_root', $wpforms_upload_root );
2712
 
2713
+ if ( is_dir( $custom_uploads_root ) && wp_is_writable( $custom_uploads_root ) ) {
2714
  $wpforms_upload_root = wp_is_stream( $custom_uploads_root )
2715
  ? $custom_uploads_root
2716
  : realpath( $custom_uploads_root );
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: wpforms, jaredatch, smub, slaFFik
3
  Tags: contact form, contact form plugin, forms, form builder, custom form, contact button, contact me, custom contact form, form manager, form, forms builder, forms creator, captcha, recaptcha, Akismet, email form, web form, feedback form, payment form, survey form, donation form, email submit form, message form, mailchimp, mailchimp form, aweber, aweber form, paypal, paypal form, stripe, stripe form, getresponse, getresponse form, email subscription, contact form widget, user registration form, wordpress registration, wordpress login form, feedback
4
  Requires at least: 4.9
5
- Tested up to: 5.8
6
- Stable tag: 1.7.2
7
  Requires PHP: 5.5
8
  License: GNU General Public License v2.0 or later
9
 
@@ -428,6 +428,13 @@ Syed Balkhi
428
 
429
  == Changelog ==
430
 
 
 
 
 
 
 
 
431
  = 1.7.2 =
432
  - Added: Search by form name and description is available on the Forms Overview page.
433
  - Added: New "Author" column in the Forms Overview table to display a name of a person who created the form.
2
  Contributors: wpforms, jaredatch, smub, slaFFik
3
  Tags: contact form, contact form plugin, forms, form builder, custom form, contact button, contact me, custom contact form, form manager, form, forms builder, forms creator, captcha, recaptcha, Akismet, email form, web form, feedback form, payment form, survey form, donation form, email submit form, message form, mailchimp, mailchimp form, aweber, aweber form, paypal, paypal form, stripe, stripe form, getresponse, getresponse form, email subscription, contact form widget, user registration form, wordpress registration, wordpress login form, feedback
4
  Requires at least: 4.9
5
+ Tested up to: 5.9
6
+ Stable tag: 1.7.2.1
7
  Requires PHP: 5.5
8
  License: GNU General Public License v2.0 or later
9
 
428
 
429
  == Changelog ==
430
 
431
+ = 1.7.2.1 =
432
+ - Fixed: Compatibility with PHP 8.0 and PHP 8.1.
433
+ - Fixed: Compatibility with WordPress 5.9, including its new Full Site Editing feature.
434
+ - Fixed: Broken cache directory path if `WP_CONTENT_DIR` is set in the `wp-config.php` without trailing slash.
435
+ - Fixed: PHP Notice when using the `wpforms_log()` function in certain conditions.
436
+ - Fixed: Type mismatch brakes a list of scheduled actions in Action Scheduler if typed arguments are passed.
437
+
438
  = 1.7.2 =
439
  - Added: Search by form name and description is available on the Forms Overview page.
440
  - Added: New "Author" column in the Forms Overview table to display a name of a person who created the form.
src/Admin/Builder/Help.php CHANGED
@@ -56,7 +56,7 @@ class Help {
56
  $upload_dir = wpforms_upload_dir();
57
  $upload_path = ! empty( $upload_dir['path'] )
58
  ? trailingslashit( wp_normalize_path( $upload_dir['path'] ) )
59
- : WP_CONTENT_DIR . 'uploads/wpforms/';
60
 
61
  $this->settings = [
62
 
@@ -66,7 +66,13 @@ class Help {
66
  // Docs cache file (full path).
67
  'cache_file' => $upload_path . 'cache/docs.json',
68
 
69
- // Docs cache time to live in seconds.
 
 
 
 
 
 
70
  'cache_ttl' => (int) apply_filters( 'wpforms_admin_builder_help_cache_ttl', WEEK_IN_SECONDS ),
71
 
72
  // Static URLs.
56
  $upload_dir = wpforms_upload_dir();
57
  $upload_path = ! empty( $upload_dir['path'] )
58
  ? trailingslashit( wp_normalize_path( $upload_dir['path'] ) )
59
+ : trailingslashit( WP_CONTENT_DIR ) . 'uploads/wpforms/';
60
 
61
  $this->settings = [
62
 
66
  // Docs cache file (full path).
67
  'cache_file' => $upload_path . 'cache/docs.json',
68
 
69
+ /*
70
+ * Allow modifying Help Docs cache TTL (time to live).
71
+ *
72
+ * @since 1.6.3
73
+ *
74
+ * @param int $cache_ttl Cache TTL in seconds. Defaults to 1 week.
75
+ */
76
  'cache_ttl' => (int) apply_filters( 'wpforms_admin_builder_help_cache_ttl', WEEK_IN_SECONDS ),
77
 
78
  // Static URLs.
src/Admin/Tools/Views/Logs.php CHANGED
@@ -259,8 +259,8 @@ class Logs extends View {
259
  $settings = get_option( 'wpforms_settings' );
260
  $was_enabled = ! empty( $settings['logs-enable'] ) ? $settings['logs-enable'] : 0;
261
  $settings['logs-enable'] = filter_input( INPUT_POST, 'logs-enable', FILTER_VALIDATE_BOOLEAN );
262
- $logs_types = filter_input( INPUT_POST, 'logs-types', FILTER_SANITIZE_STRING, FILTER_REQUIRE_ARRAY );
263
- $logs_user_roles = filter_input( INPUT_POST, 'logs-user-roles', FILTER_SANITIZE_STRING, FILTER_REQUIRE_ARRAY );
264
  $logs_users = filter_input( INPUT_POST, 'logs-users', FILTER_SANITIZE_NUMBER_INT, FILTER_REQUIRE_ARRAY );
265
 
266
  if ( $was_enabled ) {
259
  $settings = get_option( 'wpforms_settings' );
260
  $was_enabled = ! empty( $settings['logs-enable'] ) ? $settings['logs-enable'] : 0;
261
  $settings['logs-enable'] = filter_input( INPUT_POST, 'logs-enable', FILTER_VALIDATE_BOOLEAN );
262
+ $logs_types = filter_input( INPUT_POST, 'logs-types', FILTER_SANITIZE_FULL_SPECIAL_CHARS, FILTER_REQUIRE_ARRAY );
263
+ $logs_user_roles = filter_input( INPUT_POST, 'logs-user-roles', FILTER_SANITIZE_FULL_SPECIAL_CHARS, FILTER_REQUIRE_ARRAY );
264
  $logs_users = filter_input( INPUT_POST, 'logs-users', FILTER_SANITIZE_NUMBER_INT, FILTER_REQUIRE_ARRAY );
265
 
266
  if ( $was_enabled ) {
src/Helpers/CacheBase.php CHANGED
@@ -127,7 +127,7 @@ abstract class CacheBase {
127
  $upload_dir = wpforms_upload_dir();
128
  $upload_path = ! empty( $upload_dir['path'] )
129
  ? trailingslashit( wp_normalize_path( $upload_dir['path'] ) )
130
- : WP_CONTENT_DIR . 'uploads/wpforms/';
131
 
132
  return $upload_path . 'cache/';
133
  }
127
  $upload_dir = wpforms_upload_dir();
128
  $upload_path = ! empty( $upload_dir['path'] )
129
  ? trailingslashit( wp_normalize_path( $upload_dir['path'] ) )
130
+ : trailingslashit( WP_CONTENT_DIR ) . 'uploads/wpforms/';
131
 
132
  return $upload_path . 'cache/';
133
  }
src/Integrations/Divi/Divi.php CHANGED
@@ -233,8 +233,8 @@ class Divi implements IntegrationInterface {
233
  check_ajax_referer( 'wpforms_divi_builder', 'nonce' );
234
 
235
  $form_id = absint( filter_input( INPUT_POST, 'form_id', FILTER_SANITIZE_NUMBER_INT ) );
236
- $show_title = 'on' === filter_input( INPUT_POST, 'show_title', FILTER_SANITIZE_STRING );
237
- $show_desc = 'on' === filter_input( INPUT_POST, 'show_desc', FILTER_SANITIZE_STRING );
238
 
239
  add_filter(
240
  'wpforms_frontend_container_class',
233
  check_ajax_referer( 'wpforms_divi_builder', 'nonce' );
234
 
235
  $form_id = absint( filter_input( INPUT_POST, 'form_id', FILTER_SANITIZE_NUMBER_INT ) );
236
+ $show_title = 'on' === filter_input( INPUT_POST, 'show_title', FILTER_SANITIZE_FULL_SPECIAL_CHARS );
237
+ $show_desc = 'on' === filter_input( INPUT_POST, 'show_desc', FILTER_SANITIZE_FULL_SPECIAL_CHARS );
238
 
239
  add_filter(
240
  'wpforms_frontend_container_class',
src/Integrations/Gutenberg/FormSelector.php CHANGED
@@ -52,7 +52,7 @@ class FormSelector implements IntegrationInterface {
52
  public function register_block() {
53
 
54
  $disable_css_setting = wpforms_setting( 'disable-css', '1' );
55
- $editor_style = ! empty( $disable_css_setting ) ? 'wpforms-gutenberg-form-selector' : '';
56
 
57
  $attributes = [
58
  'formId' => [
@@ -73,7 +73,8 @@ class FormSelector implements IntegrationInterface {
73
  'wpforms/form-selector',
74
  [
75
  'attributes' => \apply_filters( 'wpforms_gutenberg_form_selector_attributes', $attributes ),
76
- 'editor_style' => $editor_style,
 
77
  'render_callback' => [ $this, 'get_form_html' ],
78
  ]
79
  );
@@ -127,7 +128,7 @@ class FormSelector implements IntegrationInterface {
127
  wp_register_style(
128
  'wpforms-gutenberg-form-selector',
129
  WPFORMS_PLUGIN_URL . "assets/css/wpforms-{$css_file}{$min}.css",
130
- [ 'wp-edit-blocks' ],
131
  WPFORMS_VERSION
132
  );
133
  }
52
  public function register_block() {
53
 
54
  $disable_css_setting = wpforms_setting( 'disable-css', '1' );
55
+ $block_style = ! empty( $disable_css_setting ) ? 'wpforms-gutenberg-form-selector' : '';
56
 
57
  $attributes = [
58
  'formId' => [
73
  'wpforms/form-selector',
74
  [
75
  'attributes' => \apply_filters( 'wpforms_gutenberg_form_selector_attributes', $attributes ),
76
+ 'style' => $block_style,
77
+ 'editor_style' => 'wpforms-integrations',
78
  'render_callback' => [ $this, 'get_form_html' ],
79
  ]
80
  );
128
  wp_register_style(
129
  'wpforms-gutenberg-form-selector',
130
  WPFORMS_PLUGIN_URL . "assets/css/wpforms-{$css_file}{$min}.css",
131
+ [ 'wp-edit-blocks', 'wpforms-integrations' ],
132
  WPFORMS_VERSION
133
  );
134
  }
src/Loader.php CHANGED
@@ -122,7 +122,7 @@ class Loader {
122
  ],
123
  [
124
  'name' => 'Admin\Tools\Tools',
125
- 'hook' => 'admin_init',
126
  ],
127
  [
128
  'name' => 'Admin\Pages\Addons',
122
  ],
123
  [
124
  'name' => 'Admin\Tools\Tools',
125
+ 'hook' => 'current_screen',
126
  ],
127
  [
128
  'name' => 'Admin\Pages\Addons',
src/Logger/ListTable.php CHANGED
@@ -93,7 +93,7 @@ class ListTable extends WP_List_Table {
93
  */
94
  private function get_items_type() {
95
 
96
- return filter_input( INPUT_GET, 'log_type', FILTER_SANITIZE_STRING );
97
  }
98
 
99
  /**
@@ -119,7 +119,7 @@ class ListTable extends WP_List_Table {
119
  */
120
  private function get_request_search_query() {
121
 
122
- return filter_input( INPUT_GET, 's', FILTER_SANITIZE_STRING );
123
  }
124
 
125
  /**
93
  */
94
  private function get_items_type() {
95
 
96
+ return filter_input( INPUT_GET, 'log_type', FILTER_SANITIZE_FULL_SPECIAL_CHARS );
97
  }
98
 
99
  /**
119
  */
120
  private function get_request_search_query() {
121
 
122
+ return filter_input( INPUT_GET, 's', FILTER_SANITIZE_FULL_SPECIAL_CHARS );
123
  }
124
 
125
  /**
src/Logger/Records.php CHANGED
@@ -37,6 +37,7 @@ class Records implements Countable, Iterator {
37
  *
38
  * @return \WPForms\Logger\Record|null Return null when no items in collection.
39
  */
 
40
  public function current() {
41
 
42
  return $this->valid() ? $this->list[ $this->iterator_position ] : null;
@@ -47,6 +48,7 @@ class Records implements Countable, Iterator {
47
  *
48
  * @since 1.6.3
49
  */
 
50
  public function next() {
51
 
52
  ++ $this->iterator_position;
@@ -59,6 +61,7 @@ class Records implements Countable, Iterator {
59
  *
60
  * @return int
61
  */
 
62
  public function key() {
63
 
64
  return $this->iterator_position;
@@ -71,6 +74,7 @@ class Records implements Countable, Iterator {
71
  *
72
  * @return bool
73
  */
 
74
  public function valid() {
75
 
76
  return isset( $this->list[ $this->iterator_position ] );
@@ -81,6 +85,7 @@ class Records implements Countable, Iterator {
81
  *
82
  * @since 1.6.3
83
  */
 
84
  public function rewind() {
85
 
86
  $this->iterator_position = 0;
@@ -93,6 +98,7 @@ class Records implements Countable, Iterator {
93
  *
94
  * @return int
95
  */
 
96
  public function count() {
97
 
98
  return count( $this->list );
@@ -105,6 +111,7 @@ class Records implements Countable, Iterator {
105
  *
106
  * @param \WPForms\Logger\Record $record Record.
107
  */
 
108
  public function push( $record ) {
109
 
110
  if ( ! is_a( $record, '\WPForms\Logger\Record' ) ) {
@@ -118,6 +125,7 @@ class Records implements Countable, Iterator {
118
  *
119
  * @since 1.6.3
120
  */
 
121
  public function clear() {
122
 
123
  $this->list = [];
37
  *
38
  * @return \WPForms\Logger\Record|null Return null when no items in collection.
39
  */
40
+ #[\ReturnTypeWillChange]
41
  public function current() {
42
 
43
  return $this->valid() ? $this->list[ $this->iterator_position ] : null;
48
  *
49
  * @since 1.6.3
50
  */
51
+ #[\ReturnTypeWillChange]
52
  public function next() {
53
 
54
  ++ $this->iterator_position;
61
  *
62
  * @return int
63
  */
64
+ #[\ReturnTypeWillChange]
65
  public function key() {
66
 
67
  return $this->iterator_position;
74
  *
75
  * @return bool
76
  */
77
+ #[\ReturnTypeWillChange]
78
  public function valid() {
79
 
80
  return isset( $this->list[ $this->iterator_position ] );
85
  *
86
  * @since 1.6.3
87
  */
88
+ #[\ReturnTypeWillChange]
89
  public function rewind() {
90
 
91
  $this->iterator_position = 0;
98
  *
99
  * @return int
100
  */
101
+ #[\ReturnTypeWillChange]
102
  public function count() {
103
 
104
  return count( $this->list );
111
  *
112
  * @param \WPForms\Logger\Record $record Record.
113
  */
114
+ #[\ReturnTypeWillChange]
115
  public function push( $record ) {
116
 
117
  if ( ! is_a( $record, '\WPForms\Logger\Record' ) ) {
125
  *
126
  * @since 1.6.3
127
  */
128
+ #[\ReturnTypeWillChange]
129
  public function clear() {
130
 
131
  $this->list = [];
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit7b2c8288d35236a31400c8c1eba7a588::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit0dbe9d3c83c36b21a651be634a153f2b::getLoader();
vendor/composer/ClassLoader.php CHANGED
@@ -42,21 +42,75 @@ namespace Composer\Autoload;
42
  */
43
  class ClassLoader
44
  {
 
 
 
45
  // PSR-4
 
 
 
 
46
  private $prefixLengthsPsr4 = array();
 
 
 
 
47
  private $prefixDirsPsr4 = array();
 
 
 
 
48
  private $fallbackDirsPsr4 = array();
49
 
50
  // PSR-0
 
 
 
 
51
  private $prefixesPsr0 = array();
 
 
 
 
52
  private $fallbackDirsPsr0 = array();
53
 
 
54
  private $useIncludePath = false;
 
 
 
 
 
55
  private $classMap = array();
 
 
56
  private $classMapAuthoritative = false;
 
 
 
 
 
57
  private $missingClasses = array();
 
 
58
  private $apcuPrefix;
59
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
60
  public function getPrefixes()
61
  {
62
  if (!empty($this->prefixesPsr0)) {
@@ -66,28 +120,47 @@ class ClassLoader
66
  return array();
67
  }
68
 
 
 
 
 
69
  public function getPrefixesPsr4()
70
  {
71
  return $this->prefixDirsPsr4;
72
  }
73
 
 
 
 
 
74
  public function getFallbackDirs()
75
  {
76
  return $this->fallbackDirsPsr0;
77
  }
78
 
 
 
 
 
79
  public function getFallbackDirsPsr4()
80
  {
81
  return $this->fallbackDirsPsr4;
82
  }
83
 
 
 
 
 
84
  public function getClassMap()
85
  {
86
  return $this->classMap;
87
  }
88
 
89
  /**
90
- * @param array $classMap Class to filename map
 
 
 
91
  */
92
  public function addClassMap(array $classMap)
93
  {
@@ -102,9 +175,11 @@ class ClassLoader
102
  * Registers a set of PSR-0 directories for a given prefix, either
103
  * appending or prepending to the ones previously set for this prefix.
104
  *
105
- * @param string $prefix The prefix
106
- * @param array|string $paths The PSR-0 root directories
107
- * @param bool $prepend Whether to prepend the directories
 
 
108
  */
109
  public function add($prefix, $paths, $prepend = false)
110
  {
@@ -147,11 +222,13 @@ class ClassLoader
147
  * Registers a set of PSR-4 directories for a given namespace, either
148
  * appending or prepending to the ones previously set for this namespace.
149
  *
150
- * @param string $prefix The prefix/namespace, with trailing '\\'
151
- * @param array|string $paths The PSR-4 base directories
152
- * @param bool $prepend Whether to prepend the directories
153
  *
154
  * @throws \InvalidArgumentException
 
 
155
  */
156
  public function addPsr4($prefix, $paths, $prepend = false)
157
  {
@@ -195,8 +272,10 @@ class ClassLoader
195
  * Registers a set of PSR-0 directories for a given prefix,
196
  * replacing any others previously set for this prefix.
197
  *
198
- * @param string $prefix The prefix
199
- * @param array|string $paths The PSR-0 base directories
 
 
200
  */
201
  public function set($prefix, $paths)
202
  {
@@ -211,10 +290,12 @@ class ClassLoader
211
  * Registers a set of PSR-4 directories for a given namespace,
212
  * replacing any others previously set for this namespace.
213
  *
214
- * @param string $prefix The prefix/namespace, with trailing '\\'
215
- * @param array|string $paths The PSR-4 base directories
216
  *
217
  * @throws \InvalidArgumentException
 
 
218
  */
219
  public function setPsr4($prefix, $paths)
220
  {
@@ -234,6 +315,8 @@ class ClassLoader
234
  * Turns on searching the include path for class files.
235
  *
236
  * @param bool $useIncludePath
 
 
237
  */
238
  public function setUseIncludePath($useIncludePath)
239
  {
@@ -256,6 +339,8 @@ class ClassLoader
256
  * that have not been registered with the class map.
257
  *
258
  * @param bool $classMapAuthoritative
 
 
259
  */
260
  public function setClassMapAuthoritative($classMapAuthoritative)
261
  {
@@ -276,6 +361,8 @@ class ClassLoader
276
  * APCu prefix to use to cache found/not-found classes, if the extension is enabled.
277
  *
278
  * @param string|null $apcuPrefix
 
 
279
  */
280
  public function setApcuPrefix($apcuPrefix)
281
  {
@@ -296,25 +383,44 @@ class ClassLoader
296
  * Registers this instance as an autoloader.
297
  *
298
  * @param bool $prepend Whether to prepend the autoloader or not
 
 
299
  */
300
  public function register($prepend = false)
301
  {
302
  spl_autoload_register(array($this, 'loadClass'), true, $prepend);
 
 
 
 
 
 
 
 
 
 
 
303
  }
304
 
305
  /**
306
  * Unregisters this instance as an autoloader.
 
 
307
  */
308
  public function unregister()
309
  {
310
  spl_autoload_unregister(array($this, 'loadClass'));
 
 
 
 
311
  }
312
 
313
  /**
314
  * Loads the given class or interface.
315
  *
316
  * @param string $class The name of the class
317
- * @return bool|null True if loaded, null otherwise
318
  */
319
  public function loadClass($class)
320
  {
@@ -323,6 +429,8 @@ class ClassLoader
323
 
324
  return true;
325
  }
 
 
326
  }
327
 
328
  /**
@@ -367,6 +475,21 @@ class ClassLoader
367
  return $file;
368
  }
369
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
370
  private function findFileWithExtension($class, $ext)
371
  {
372
  // PSR-4 lookup
@@ -438,6 +561,10 @@ class ClassLoader
438
  * Scope isolated include.
439
  *
440
  * Prevents access to $this/self from included files.
 
 
 
 
441
  */
442
  function includeFile($file)
443
  {
42
  */
43
  class ClassLoader
44
  {
45
+ /** @var ?string */
46
+ private $vendorDir;
47
+
48
  // PSR-4
49
+ /**
50
+ * @var array[]
51
+ * @psalm-var array<string, array<string, int>>
52
+ */
53
  private $prefixLengthsPsr4 = array();
54
+ /**
55
+ * @var array[]
56
+ * @psalm-var array<string, array<int, string>>
57
+ */
58
  private $prefixDirsPsr4 = array();
59
+ /**
60
+ * @var array[]
61
+ * @psalm-var array<string, string>
62
+ */
63
  private $fallbackDirsPsr4 = array();
64
 
65
  // PSR-0
66
+ /**
67
+ * @var array[]
68
+ * @psalm-var array<string, array<string, string[]>>
69
+ */
70
  private $prefixesPsr0 = array();
71
+ /**
72
+ * @var array[]
73
+ * @psalm-var array<string, string>
74
+ */
75
  private $fallbackDirsPsr0 = array();
76
 
77
+ /** @var bool */
78
  private $useIncludePath = false;
79
+
80
+ /**
81
+ * @var string[]
82
+ * @psalm-var array<string, string>
83
+ */
84
  private $classMap = array();
85
+
86
+ /** @var bool */
87
  private $classMapAuthoritative = false;
88
+
89
+ /**
90
+ * @var bool[]
91
+ * @psalm-var array<string, bool>
92
+ */
93
  private $missingClasses = array();
94
+
95
+ /** @var ?string */
96
  private $apcuPrefix;
97
 
98
+ /**
99
+ * @var self[]
100
+ */
101
+ private static $registeredLoaders = array();
102
+
103
+ /**
104
+ * @param ?string $vendorDir
105
+ */
106
+ public function __construct($vendorDir = null)
107
+ {
108
+ $this->vendorDir = $vendorDir;
109
+ }
110
+
111
+ /**
112
+ * @return string[]
113
+ */
114
  public function getPrefixes()
115
  {
116
  if (!empty($this->prefixesPsr0)) {
120
  return array();
121
  }
122
 
123
+ /**
124
+ * @return array[]
125
+ * @psalm-return array<string, array<int, string>>
126
+ */
127
  public function getPrefixesPsr4()
128
  {
129
  return $this->prefixDirsPsr4;
130
  }
131
 
132
+ /**
133
+ * @return array[]
134
+ * @psalm-return array<string, string>
135
+ */
136
  public function getFallbackDirs()
137
  {
138
  return $this->fallbackDirsPsr0;
139
  }
140
 
141
+ /**
142
+ * @return array[]
143
+ * @psalm-return array<string, string>
144
+ */
145
  public function getFallbackDirsPsr4()
146
  {
147
  return $this->fallbackDirsPsr4;
148
  }
149
 
150
+ /**
151
+ * @return string[] Array of classname => path
152
+ * @psalm-return array<string, string>
153
+ */
154
  public function getClassMap()
155
  {
156
  return $this->classMap;
157
  }
158
 
159
  /**
160
+ * @param string[] $classMap Class to filename map
161
+ * @psalm-param array<string, string> $classMap
162
+ *
163
+ * @return void
164
  */
165
  public function addClassMap(array $classMap)
166
  {
175
  * Registers a set of PSR-0 directories for a given prefix, either
176
  * appending or prepending to the ones previously set for this prefix.
177
  *
178
+ * @param string $prefix The prefix
179
+ * @param string[]|string $paths The PSR-0 root directories
180
+ * @param bool $prepend Whether to prepend the directories
181
+ *
182
+ * @return void
183
  */
184
  public function add($prefix, $paths, $prepend = false)
185
  {
222
  * Registers a set of PSR-4 directories for a given namespace, either
223
  * appending or prepending to the ones previously set for this namespace.
224
  *
225
+ * @param string $prefix The prefix/namespace, with trailing '\\'
226
+ * @param string[]|string $paths The PSR-4 base directories
227
+ * @param bool $prepend Whether to prepend the directories
228
  *
229
  * @throws \InvalidArgumentException
230
+ *
231
+ * @return void
232
  */
233
  public function addPsr4($prefix, $paths, $prepend = false)
234
  {
272
  * Registers a set of PSR-0 directories for a given prefix,
273
  * replacing any others previously set for this prefix.
274
  *
275
+ * @param string $prefix The prefix
276
+ * @param string[]|string $paths The PSR-0 base directories
277
+ *
278
+ * @return void
279
  */
280
  public function set($prefix, $paths)
281
  {
290
  * Registers a set of PSR-4 directories for a given namespace,
291
  * replacing any others previously set for this namespace.
292
  *
293
+ * @param string $prefix The prefix/namespace, with trailing '\\'
294
+ * @param string[]|string $paths The PSR-4 base directories
295
  *
296
  * @throws \InvalidArgumentException
297
+ *
298
+ * @return void
299
  */
300
  public function setPsr4($prefix, $paths)
301
  {
315
  * Turns on searching the include path for class files.
316
  *
317
  * @param bool $useIncludePath
318
+ *
319
+ * @return void
320
  */
321
  public function setUseIncludePath($useIncludePath)
322
  {
339
  * that have not been registered with the class map.
340
  *
341
  * @param bool $classMapAuthoritative
342
+ *
343
+ * @return void
344
  */
345
  public function setClassMapAuthoritative($classMapAuthoritative)
346
  {
361
  * APCu prefix to use to cache found/not-found classes, if the extension is enabled.
362
  *
363
  * @param string|null $apcuPrefix
364
+ *
365
+ * @return void
366
  */
367
  public function setApcuPrefix($apcuPrefix)
368
  {
383
  * Registers this instance as an autoloader.
384
  *
385
  * @param bool $prepend Whether to prepend the autoloader or not
386
+ *
387
+ * @return void
388
  */
389
  public function register($prepend = false)
390
  {
391
  spl_autoload_register(array($this, 'loadClass'), true, $prepend);
392
+
393
+ if (null === $this->vendorDir) {
394
+ return;
395
+ }
396
+
397
+ if ($prepend) {
398
+ self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders;
399
+ } else {
400
+ unset(self::$registeredLoaders[$this->vendorDir]);
401
+ self::$registeredLoaders[$this->vendorDir] = $this;
402
+ }
403
  }
404
 
405
  /**
406
  * Unregisters this instance as an autoloader.
407
+ *
408
+ * @return void
409
  */
410
  public function unregister()
411
  {
412
  spl_autoload_unregister(array($this, 'loadClass'));
413
+
414
+ if (null !== $this->vendorDir) {
415
+ unset(self::$registeredLoaders[$this->vendorDir]);
416
+ }
417
  }
418
 
419
  /**
420
  * Loads the given class or interface.
421
  *
422
  * @param string $class The name of the class
423
+ * @return true|null True if loaded, null otherwise
424
  */
425
  public function loadClass($class)
426
  {
429
 
430
  return true;
431
  }
432
+
433
+ return null;
434
  }
435
 
436
  /**
475
  return $file;
476
  }
477
 
478
+ /**
479
+ * Returns the currently registered loaders indexed by their corresponding vendor directories.
480
+ *
481
+ * @return self[]
482
+ */
483
+ public static function getRegisteredLoaders()
484
+ {
485
+ return self::$registeredLoaders;
486
+ }
487
+
488
+ /**
489
+ * @param string $class
490
+ * @param string $ext
491
+ * @return string|false
492
+ */
493
  private function findFileWithExtension($class, $ext)
494
  {
495
  // PSR-4 lookup
561
  * Scope isolated include.
562
  *
563
  * Prevents access to $this/self from included files.
564
+ *
565
+ * @param string $file
566
+ * @return void
567
+ * @private
568
  */
569
  function includeFile($file)
570
  {
vendor/composer/InstalledVersions.php CHANGED
@@ -1,301 +1,350 @@
1
  <?php
2
 
3
-
4
-
5
-
6
-
7
-
8
-
9
-
10
-
11
-
12
 
13
  namespace Composer;
14
 
 
15
  use Composer\Semver\VersionParser;
16
 
17
-
18
-
19
-
20
-
21
-
 
 
22
  class InstalledVersions
23
  {
24
- private static $installed = array (
25
- 'root' =>
26
- array (
27
- 'pretty_version' => 'dev-develop',
28
- 'version' => 'dev-develop',
29
- 'aliases' =>
30
- array (
31
- ),
32
- 'reference' => '41605f9be7500a5deac47f9cd2548e0a5c1522f6',
33
- 'name' => 'awesomemotive/wpforms',
34
- ),
35
- 'versions' =>
36
- array (
37
- 'awesomemotive/wpforms' =>
38
- array (
39
- 'pretty_version' => 'dev-develop',
40
- 'version' => 'dev-develop',
41
- 'aliases' =>
42
- array (
43
- ),
44
- 'reference' => '41605f9be7500a5deac47f9cd2548e0a5c1522f6',
45
- ),
46
- 'goodby/csv' =>
47
- array (
48
- 'pretty_version' => '1.3.0',
49
- 'version' => '1.3.0.0',
50
- 'aliases' =>
51
- array (
52
- ),
53
- 'reference' => 'e71217b8d6110f3d1ac3784ef9b8a2383c3398b9',
54
- ),
55
- 'mk-j/php_xlsxwriter' =>
56
- array (
57
- 'pretty_version' => '0.38',
58
- 'version' => '0.38.0.0',
59
- 'aliases' =>
60
- array (
61
- ),
62
- 'reference' => '00579529fea072851789505b2dec0d14cdfffe60',
63
- ),
64
- 'roave/security-advisories' =>
65
- array (
66
- 'pretty_version' => 'dev-latest',
67
- 'version' => 'dev-latest',
68
- 'aliases' =>
69
- array (
70
- 0 => '9999999-dev',
71
- ),
72
- 'reference' => '07314cf15422b2e162d591fe8ef2b850612b808f',
73
- ),
74
- 'symfony/css-selector' =>
75
- array (
76
- 'pretty_version' => 'v2.8.52',
77
- 'version' => '2.8.52.0',
78
- 'aliases' =>
79
- array (
80
- ),
81
- 'reference' => '7b1692e418d7ccac24c373528453bc90e42797de',
82
- ),
83
- 'symfony/polyfill-iconv' =>
84
- array (
85
- 'pretty_version' => 'v1.18.1',
86
- 'version' => '1.18.1.0',
87
- 'aliases' =>
88
- array (
89
- ),
90
- 'reference' => '6c2f78eb8f5ab8eaea98f6d414a5915f2e0fce36',
91
- ),
92
- 'symfony/polyfill-mbstring' =>
93
- array (
94
- 'pretty_version' => 'v1.18.1',
95
- 'version' => '1.18.1.0',
96
- 'aliases' =>
97
- array (
98
- ),
99
- 'reference' => 'a6977d63bf9a0ad4c65cd352709e230876f9904a',
100
- ),
101
- 'tijsverkoyen/css-to-inline-styles' =>
102
- array (
103
- 'pretty_version' => '2.2.3',
104
- 'version' => '2.2.3.0',
105
- 'aliases' =>
106
- array (
107
- ),
108
- 'reference' => 'b43b05cf43c1b6d849478965062b6ef73e223bb5',
109
- ),
110
- 'true/punycode' =>
111
- array (
112
- 'pretty_version' => 'v2.1.1',
113
- 'version' => '2.1.1.0',
114
- 'aliases' =>
115
- array (
116
- ),
117
- 'reference' => 'a4d0c11a36dd7f4e7cd7096076cab6d3378a071e',
118
- ),
119
- 'woocommerce/action-scheduler' =>
120
- array (
121
- 'pretty_version' => '3.2.1',
122
- 'version' => '3.2.1.0',
123
- 'aliases' =>
124
- array (
125
- ),
126
- 'reference' => '3c24064f115cd55e972d73d5d48f14133ac60b0d',
127
- ),
128
- ),
129
- );
130
-
131
-
132
-
133
-
134
-
135
-
136
-
137
- public static function getInstalledPackages()
138
- {
139
- return array_keys(self::$installed['versions']);
140
- }
141
-
142
-
143
-
144
-
145
-
146
-
147
-
148
-
149
-
150
- public static function isInstalled($packageName)
151
- {
152
- return isset(self::$installed['versions'][$packageName]);
153
- }
154
-
155
-
156
-
157
-
158
-
159
-
160
-
161
-
162
-
163
-
164
-
165
-
166
-
167
-
168
- public static function satisfies(VersionParser $parser, $packageName, $constraint)
169
- {
170
- $constraint = $parser->parseConstraints($constraint);
171
- $provided = $parser->parseConstraints(self::getVersionRanges($packageName));
172
-
173
- return $provided->matches($constraint);
174
- }
175
-
176
-
177
-
178
-
179
-
180
-
181
-
182
-
183
-
184
-
185
- public static function getVersionRanges($packageName)
186
- {
187
- if (!isset(self::$installed['versions'][$packageName])) {
188
- throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
189
- }
190
-
191
- $ranges = array();
192
- if (isset(self::$installed['versions'][$packageName]['pretty_version'])) {
193
- $ranges[] = self::$installed['versions'][$packageName]['pretty_version'];
194
- }
195
- if (array_key_exists('aliases', self::$installed['versions'][$packageName])) {
196
- $ranges = array_merge($ranges, self::$installed['versions'][$packageName]['aliases']);
197
- }
198
- if (array_key_exists('replaced', self::$installed['versions'][$packageName])) {
199
- $ranges = array_merge($ranges, self::$installed['versions'][$packageName]['replaced']);
200
- }
201
- if (array_key_exists('provided', self::$installed['versions'][$packageName])) {
202
- $ranges = array_merge($ranges, self::$installed['versions'][$packageName]['provided']);
203
- }
204
-
205
- return implode(' || ', $ranges);
206
- }
207
-
208
-
209
-
210
-
211
-
212
- public static function getVersion($packageName)
213
- {
214
- if (!isset(self::$installed['versions'][$packageName])) {
215
- throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
216
- }
217
-
218
- if (!isset(self::$installed['versions'][$packageName]['version'])) {
219
- return null;
220
- }
221
-
222
- return self::$installed['versions'][$packageName]['version'];
223
- }
224
-
225
-
226
-
227
-
228
-
229
- public static function getPrettyVersion($packageName)
230
- {
231
- if (!isset(self::$installed['versions'][$packageName])) {
232
- throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
233
- }
234
-
235
- if (!isset(self::$installed['versions'][$packageName]['pretty_version'])) {
236
- return null;
237
- }
238
-
239
- return self::$installed['versions'][$packageName]['pretty_version'];
240
- }
241
-
242
-
243
-
244
-
245
-
246
- public static function getReference($packageName)
247
- {
248
- if (!isset(self::$installed['versions'][$packageName])) {
249
- throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
250
- }
251
-
252
- if (!isset(self::$installed['versions'][$packageName]['reference'])) {
253
- return null;
254
- }
255
-
256
- return self::$installed['versions'][$packageName]['reference'];
257
- }
258
-
259
-
260
-
261
-
262
-
263
- public static function getRootPackage()
264
- {
265
- return self::$installed['root'];
266
- }
267
-
268
-
269
-
270
-
271
-
272
-
273
-
274
- public static function getRawData()
275
- {
276
- return self::$installed;
277
- }
278
-
279
-
280
-
281
-
282
-
283
-
284
-
285
-
286
-
287
-
288
-
289
-
290
-
291
-
292
-
293
-
294
-
295
-
296
-
297
- public static function reload($data)
298
- {
299
- self::$installed = $data;
300
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
301
  }
1
  <?php
2
 
3
+ /*
4
+ * This file is part of Composer.
5
+ *
6
+ * (c) Nils Adermann <naderman@naderman.de>
7
+ * Jordi Boggiano <j.boggiano@seld.be>
8
+ *
9
+ * For the full copyright and license information, please view the LICENSE
10
+ * file that was distributed with this source code.
11
+ */
12
 
13
  namespace Composer;
14
 
15
+ use Composer\Autoload\ClassLoader;
16
  use Composer\Semver\VersionParser;
17
 
18
+ /**
19
+ * This class is copied in every Composer installed project and available to all
20
+ *
21
+ * See also https://getcomposer.org/doc/07-runtime.md#installed-versions
22
+ *
23
+ * To require its presence, you can require `composer-runtime-api ^2.0`
24
+ */
25
  class InstalledVersions
26
  {
27
+ /**
28
+ * @var mixed[]|null
29
+ * @psalm-var array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}|array{}|null
30
+ */
31
+ private static $installed;
32
+
33
+ /**
34
+ * @var bool|null
35
+ */
36
+ private static $canGetVendors;
37
+
38
+ /**
39
+ * @var array[]
40
+ * @psalm-var array<string, array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>
41
+ */
42
+ private static $installedByVendor = array();
43
+
44
+ /**
45
+ * Returns a list of all package names which are present, either by being installed, replaced or provided
46
+ *
47
+ * @return string[]
48
+ * @psalm-return list<string>
49
+ */
50
+ public static function getInstalledPackages()
51
+ {
52
+ $packages = array();
53
+ foreach (self::getInstalled() as $installed) {
54
+ $packages[] = array_keys($installed['versions']);
55
+ }
56
+
57
+ if (1 === \count($packages)) {
58
+ return $packages[0];
59
+ }
60
+
61
+ return array_keys(array_flip(\call_user_func_array('array_merge', $packages)));
62
+ }
63
+
64
+ /**
65
+ * Returns a list of all package names with a specific type e.g. 'library'
66
+ *
67
+ * @param string $type
68
+ * @return string[]
69
+ * @psalm-return list<string>
70
+ */
71
+ public static function getInstalledPackagesByType($type)
72
+ {
73
+ $packagesByType = array();
74
+
75
+ foreach (self::getInstalled() as $installed) {
76
+ foreach ($installed['versions'] as $name => $package) {
77
+ if (isset($package['type']) && $package['type'] === $type) {
78
+ $packagesByType[] = $name;
79
+ }
80
+ }
81
+ }
82
+
83
+ return $packagesByType;
84
+ }
85
+
86
+ /**
87
+ * Checks whether the given package is installed
88
+ *
89
+ * This also returns true if the package name is provided or replaced by another package
90
+ *
91
+ * @param string $packageName
92
+ * @param bool $includeDevRequirements
93
+ * @return bool
94
+ */
95
+ public static function isInstalled($packageName, $includeDevRequirements = true)
96
+ {
97
+ foreach (self::getInstalled() as $installed) {
98
+ if (isset($installed['versions'][$packageName])) {
99
+ return $includeDevRequirements || empty($installed['versions'][$packageName]['dev_requirement']);
100
+ }
101
+ }
102
+
103
+ return false;
104
+ }
105
+
106
+ /**
107
+ * Checks whether the given package satisfies a version constraint
108
+ *
109
+ * e.g. If you want to know whether version 2.3+ of package foo/bar is installed, you would call:
110
+ *
111
+ * Composer\InstalledVersions::satisfies(new VersionParser, 'foo/bar', '^2.3')
112
+ *
113
+ * @param VersionParser $parser Install composer/semver to have access to this class and functionality
114
+ * @param string $packageName
115
+ * @param string|null $constraint A version constraint to check for, if you pass one you have to make sure composer/semver is required by your package
116
+ * @return bool
117
+ */
118
+ public static function satisfies(VersionParser $parser, $packageName, $constraint)
119
+ {
120
+ $constraint = $parser->parseConstraints($constraint);
121
+ $provided = $parser->parseConstraints(self::getVersionRanges($packageName));
122
+
123
+ return $provided->matches($constraint);
124
+ }
125
+
126
+ /**
127
+ * Returns a version constraint representing all the range(s) which are installed for a given package
128
+ *
129
+ * It is easier to use this via isInstalled() with the $constraint argument if you need to check
130
+ * whether a given version of a package is installed, and not just whether it exists
131
+ *
132
+ * @param string $packageName
133
+ * @return string Version constraint usable with composer/semver
134
+ */
135
+ public static function getVersionRanges($packageName)
136
+ {
137
+ foreach (self::getInstalled() as $installed) {
138
+ if (!isset($installed['versions'][$packageName])) {
139
+ continue;
140
+ }
141
+
142
+ $ranges = array();
143
+ if (isset($installed['versions'][$packageName]['pretty_version'])) {
144
+ $ranges[] = $installed['versions'][$packageName]['pretty_version'];
145
+ }
146
+ if (array_key_exists('aliases', $installed['versions'][$packageName])) {
147
+ $ranges = array_merge($ranges, $installed['versions'][$packageName]['aliases']);
148
+ }
149
+ if (array_key_exists('replaced', $installed['versions'][$packageName])) {
150
+ $ranges = array_merge($ranges, $installed['versions'][$packageName]['replaced']);
151
+ }
152
+ if (array_key_exists('provided', $installed['versions'][$packageName])) {
153
+ $ranges = array_merge($ranges, $installed['versions'][$packageName]['provided']);
154
+ }
155
+
156
+ return implode(' || ', $ranges);
157
+ }
158
+
159
+ throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
160
+ }
161
+
162
+ /**
163
+ * @param string $packageName
164
+ * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as version, use satisfies or getVersionRanges if you need to know if a given version is present
165
+ */
166
+ public static function getVersion($packageName)
167
+ {
168
+ foreach (self::getInstalled() as $installed) {
169
+ if (!isset($installed['versions'][$packageName])) {
170
+ continue;
171
+ }
172
+
173
+ if (!isset($installed['versions'][$packageName]['version'])) {
174
+ return null;
175
+ }
176
+
177
+ return $installed['versions'][$packageName]['version'];
178
+ }
179
+
180
+ throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
181
+ }
182
+
183
+ /**
184
+ * @param string $packageName
185
+ * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as version, use satisfies or getVersionRanges if you need to know if a given version is present
186
+ */
187
+ public static function getPrettyVersion($packageName)
188
+ {
189
+ foreach (self::getInstalled() as $installed) {
190
+ if (!isset($installed['versions'][$packageName])) {
191
+ continue;
192
+ }
193
+
194
+ if (!isset($installed['versions'][$packageName]['pretty_version'])) {
195
+ return null;
196
+ }
197
+
198
+ return $installed['versions'][$packageName]['pretty_version'];
199
+ }
200
+
201
+ throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
202
+ }
203
+
204
+ /**
205
+ * @param string $packageName
206
+ * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as reference
207
+ */
208
+ public static function getReference($packageName)
209
+ {
210
+ foreach (self::getInstalled() as $installed) {
211
+ if (!isset($installed['versions'][$packageName])) {
212
+ continue;
213
+ }
214
+
215
+ if (!isset($installed['versions'][$packageName]['reference'])) {
216
+ return null;
217
+ }
218
+
219
+ return $installed['versions'][$packageName]['reference'];
220
+ }
221
+
222
+ throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
223
+ }
224
+
225
+ /**
226
+ * @param string $packageName
227
+ * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as install path. Packages of type metapackages also have a null install path.
228
+ */
229
+ public static function getInstallPath($packageName)
230
+ {
231
+ foreach (self::getInstalled() as $installed) {
232
+ if (!isset($installed['versions'][$packageName])) {
233
+ continue;
234
+ }
235
+
236
+ return isset($installed['versions'][$packageName]['install_path']) ? $installed['versions'][$packageName]['install_path'] : null;
237
+ }
238
+
239
+ throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
240
+ }
241
+
242
+ /**
243
+ * @return array
244
+ * @psalm-return array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}
245
+ */
246
+ public static function getRootPackage()
247
+ {
248
+ $installed = self::getInstalled();
249
+
250
+ return $installed[0]['root'];
251
+ }
252
+
253
+ /**
254
+ * Returns the raw installed.php data for custom implementations
255
+ *
256
+ * @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect.
257
+ * @return array[]
258
+ * @psalm-return array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}
259
+ */
260
+ public static function getRawData()
261
+ {
262
+ @trigger_error('getRawData only returns the first dataset loaded, which may not be what you expect. Use getAllRawData() instead which returns all datasets for all autoloaders present in the process.', E_USER_DEPRECATED);
263
+
264
+ if (null === self::$installed) {
265
+ // only require the installed.php file if this file is loaded from its dumped location,
266
+ // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937
267
+ if (substr(__DIR__, -8, 1) !== 'C') {
268
+ self::$installed = include __DIR__ . '/installed.php';
269
+ } else {
270
+ self::$installed = array();
271
+ }
272
+ }
273
+
274
+ return self::$installed;
275
+ }
276
+
277
+ /**
278
+ * Returns the raw data of all installed.php which are currently loaded for custom implementations
279
+ *
280
+ * @return array[]
281
+ * @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>
282
+ */
283
+ public static function getAllRawData()
284
+ {
285
+ return self::getInstalled();
286
+ }
287
+
288
+ /**
289
+ * Lets you reload the static array from another file
290
+ *
291
+ * This is only useful for complex integrations in which a project needs to use
292
+ * this class but then also needs to execute another project's autoloader in process,
293
+ * and wants to ensure both projects have access to their version of installed.php.
294
+ *
295
+ * A typical case would be PHPUnit, where it would need to make sure it reads all
296
+ * the data it needs from this class, then call reload() with
297
+ * `require $CWD/vendor/composer/installed.php` (or similar) as input to make sure
298
+ * the project in which it runs can then also use this class safely, without
299
+ * interference between PHPUnit's dependencies and the project's dependencies.
300
+ *
301
+ * @param array[] $data A vendor/composer/installed.php data set
302
+ * @return void
303
+ *
304
+ * @psalm-param array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>} $data
305
+ */
306
+ public static function reload($data)
307
+ {
308
+ self::$installed = $data;
309
+ self::$installedByVendor = array();
310
+ }
311
+
312
+ /**
313
+ * @return array[]
314
+ * @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>
315
+ */
316
+ private static function getInstalled()
317
+ {
318
+ if (null === self::$canGetVendors) {
319
+ self::$canGetVendors = method_exists('Composer\Autoload\ClassLoader', 'getRegisteredLoaders');
320
+ }
321
+
322
+ $installed = array();
323
+
324
+ if (self::$canGetVendors) {
325
+ foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) {
326
+ if (isset(self::$installedByVendor[$vendorDir])) {
327
+ $installed[] = self::$installedByVendor[$vendorDir];
328
+ } elseif (is_file($vendorDir.'/composer/installed.php')) {
329
+ $installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php';
330
+ if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) {
331
+ self::$installed = $installed[count($installed) - 1];
332
+ }
333
+ }
334
+ }
335
+ }
336
+
337
+ if (null === self::$installed) {
338
+ // only require the installed.php file if this file is loaded from its dumped location,
339
+ // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937
340
+ if (substr(__DIR__, -8, 1) !== 'C') {
341
+ self::$installed = require __DIR__ . '/installed.php';
342
+ } else {
343
+ self::$installed = array();
344
+ }
345
+ }
346
+ $installed[] = self::$installed;
347
+
348
+ return $installed;
349
+ }
350
  }
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit7b2c8288d35236a31400c8c1eba7a588
6
  {
7
  private static $loader;
8
 
@@ -24,15 +24,15 @@ class ComposerAutoloaderInit7b2c8288d35236a31400c8c1eba7a588
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
- spl_autoload_register(array('ComposerAutoloaderInit7b2c8288d35236a31400c8c1eba7a588', 'loadClassLoader'), true, true);
28
- self::$loader = $loader = new \Composer\Autoload\ClassLoader();
29
- spl_autoload_unregister(array('ComposerAutoloaderInit7b2c8288d35236a31400c8c1eba7a588', 'loadClassLoader'));
30
 
31
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
32
  if ($useStaticLoader) {
33
  require __DIR__ . '/autoload_static.php';
34
 
35
- call_user_func(\Composer\Autoload\ComposerStaticInit7b2c8288d35236a31400c8c1eba7a588::getInitializer($loader));
36
  } else {
37
  $map = require __DIR__ . '/autoload_namespaces.php';
38
  foreach ($map as $namespace => $path) {
@@ -53,23 +53,28 @@ class ComposerAutoloaderInit7b2c8288d35236a31400c8c1eba7a588
53
  $loader->register(true);
54
 
55
  if ($useStaticLoader) {
56
- $includeFiles = Composer\Autoload\ComposerStaticInit7b2c8288d35236a31400c8c1eba7a588::$files;
57
  } else {
58
  $includeFiles = require __DIR__ . '/autoload_files.php';
59
  }
60
  foreach ($includeFiles as $fileIdentifier => $file) {
61
- composerRequire7b2c8288d35236a31400c8c1eba7a588($fileIdentifier, $file);
62
  }
63
 
64
  return $loader;
65
  }
66
  }
67
 
68
- function composerRequire7b2c8288d35236a31400c8c1eba7a588($fileIdentifier, $file)
 
 
 
 
 
69
  {
70
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
71
- require $file;
72
-
73
  $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
 
 
74
  }
75
  }
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit0dbe9d3c83c36b21a651be634a153f2b
6
  {
7
  private static $loader;
8
 
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
+ spl_autoload_register(array('ComposerAutoloaderInit0dbe9d3c83c36b21a651be634a153f2b', 'loadClassLoader'), true, true);
28
+ self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
29
+ spl_autoload_unregister(array('ComposerAutoloaderInit0dbe9d3c83c36b21a651be634a153f2b', 'loadClassLoader'));
30
 
31
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
32
  if ($useStaticLoader) {
33
  require __DIR__ . '/autoload_static.php';
34
 
35
+ call_user_func(\Composer\Autoload\ComposerStaticInit0dbe9d3c83c36b21a651be634a153f2b::getInitializer($loader));
36
  } else {
37
  $map = require __DIR__ . '/autoload_namespaces.php';
38
  foreach ($map as $namespace => $path) {
53
  $loader->register(true);
54
 
55
  if ($useStaticLoader) {
56
+ $includeFiles = Composer\Autoload\ComposerStaticInit0dbe9d3c83c36b21a651be634a153f2b::$files;
57
  } else {
58
  $includeFiles = require __DIR__ . '/autoload_files.php';
59
  }
60
  foreach ($includeFiles as $fileIdentifier => $file) {
61
+ composerRequire0dbe9d3c83c36b21a651be634a153f2b($fileIdentifier, $file);
62
  }
63
 
64
  return $loader;
65
  }
66
  }
67
 
68
+ /**
69
+ * @param string $fileIdentifier
70
+ * @param string $file
71
+ * @return void
72
+ */
73
+ function composerRequire0dbe9d3c83c36b21a651be634a153f2b($fileIdentifier, $file)
74
  {
75
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
 
 
76
  $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
77
+
78
+ require $file;
79
  }
80
  }
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit7b2c8288d35236a31400c8c1eba7a588
8
  {
9
  public static $files = array (
10
  '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php',
@@ -75,10 +75,10 @@ class ComposerStaticInit7b2c8288d35236a31400c8c1eba7a588
75
  public static function getInitializer(ClassLoader $loader)
76
  {
77
  return \Closure::bind(function () use ($loader) {
78
- $loader->prefixLengthsPsr4 = ComposerStaticInit7b2c8288d35236a31400c8c1eba7a588::$prefixLengthsPsr4;
79
- $loader->prefixDirsPsr4 = ComposerStaticInit7b2c8288d35236a31400c8c1eba7a588::$prefixDirsPsr4;
80
- $loader->prefixesPsr0 = ComposerStaticInit7b2c8288d35236a31400c8c1eba7a588::$prefixesPsr0;
81
- $loader->classMap = ComposerStaticInit7b2c8288d35236a31400c8c1eba7a588::$classMap;
82
 
83
  }, null, ClassLoader::class);
84
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit0dbe9d3c83c36b21a651be634a153f2b
8
  {
9
  public static $files = array (
10
  '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php',
75
  public static function getInitializer(ClassLoader $loader)
76
  {
77
  return \Closure::bind(function () use ($loader) {
78
+ $loader->prefixLengthsPsr4 = ComposerStaticInit0dbe9d3c83c36b21a651be634a153f2b::$prefixLengthsPsr4;
79
+ $loader->prefixDirsPsr4 = ComposerStaticInit0dbe9d3c83c36b21a651be634a153f2b::$prefixDirsPsr4;
80
+ $loader->prefixesPsr0 = ComposerStaticInit0dbe9d3c83c36b21a651be634a153f2b::$prefixesPsr0;
81
+ $loader->classMap = ComposerStaticInit0dbe9d3c83c36b21a651be634a153f2b::$classMap;
82
 
83
  }, null, ClassLoader::class);
84
  }
vendor/composer/installed.php CHANGED
@@ -1,106 +1,108 @@
1
- <?php return array (
2
- 'root' =>
3
- array (
4
- 'pretty_version' => 'dev-develop',
5
- 'version' => 'dev-develop',
6
- 'aliases' =>
7
- array (
 
 
 
8
  ),
9
- 'reference' => '41605f9be7500a5deac47f9cd2548e0a5c1522f6',
10
- 'name' => 'awesomemotive/wpforms',
11
- ),
12
- 'versions' =>
13
- array (
14
- 'awesomemotive/wpforms' =>
15
- array (
16
- 'pretty_version' => 'dev-develop',
17
- 'version' => 'dev-develop',
18
- 'aliases' =>
19
- array (
20
- ),
21
- 'reference' => '41605f9be7500a5deac47f9cd2548e0a5c1522f6',
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
  ),
23
- 'goodby/csv' =>
24
- array (
25
- 'pretty_version' => '1.3.0',
26
- 'version' => '1.3.0.0',
27
- 'aliases' =>
28
- array (
29
- ),
30
- 'reference' => 'e71217b8d6110f3d1ac3784ef9b8a2383c3398b9',
31
- ),
32
- 'mk-j/php_xlsxwriter' =>
33
- array (
34
- 'pretty_version' => '0.38',
35
- 'version' => '0.38.0.0',
36
- 'aliases' =>
37
- array (
38
- ),
39
- 'reference' => '00579529fea072851789505b2dec0d14cdfffe60',
40
- ),
41
- 'roave/security-advisories' =>
42
- array (
43
- 'pretty_version' => 'dev-latest',
44
- 'version' => 'dev-latest',
45
- 'aliases' =>
46
- array (
47
- 0 => '9999999-dev',
48
- ),
49
- 'reference' => '07314cf15422b2e162d591fe8ef2b850612b808f',
50
- ),
51
- 'symfony/css-selector' =>
52
- array (
53
- 'pretty_version' => 'v2.8.52',
54
- 'version' => '2.8.52.0',
55
- 'aliases' =>
56
- array (
57
- ),
58
- 'reference' => '7b1692e418d7ccac24c373528453bc90e42797de',
59
- ),
60
- 'symfony/polyfill-iconv' =>
61
- array (
62
- 'pretty_version' => 'v1.18.1',
63
- 'version' => '1.18.1.0',
64
- 'aliases' =>
65
- array (
66
- ),
67
- 'reference' => '6c2f78eb8f5ab8eaea98f6d414a5915f2e0fce36',
68
- ),
69
- 'symfony/polyfill-mbstring' =>
70
- array (
71
- 'pretty_version' => 'v1.18.1',
72
- 'version' => '1.18.1.0',
73
- 'aliases' =>
74
- array (
75
- ),
76
- 'reference' => 'a6977d63bf9a0ad4c65cd352709e230876f9904a',
77
- ),
78
- 'tijsverkoyen/css-to-inline-styles' =>
79
- array (
80
- 'pretty_version' => '2.2.3',
81
- 'version' => '2.2.3.0',
82
- 'aliases' =>
83
- array (
84
- ),
85
- 'reference' => 'b43b05cf43c1b6d849478965062b6ef73e223bb5',
86
- ),
87
- 'true/punycode' =>
88
- array (
89
- 'pretty_version' => 'v2.1.1',
90
- 'version' => '2.1.1.0',
91
- 'aliases' =>
92
- array (
93
- ),
94
- 'reference' => 'a4d0c11a36dd7f4e7cd7096076cab6d3378a071e',
95
- ),
96
- 'woocommerce/action-scheduler' =>
97
- array (
98
- 'pretty_version' => '3.2.1',
99
- 'version' => '3.2.1.0',
100
- 'aliases' =>
101
- array (
102
- ),
103
- 'reference' => '3c24064f115cd55e972d73d5d48f14133ac60b0d',
104
- ),
105
- ),
106
  );
1
+ <?php return array(
2
+ 'root' => array(
3
+ 'pretty_version' => 'dev-master',
4
+ 'version' => 'dev-master',
5
+ 'type' => 'library',
6
+ 'install_path' => __DIR__ . '/../../',
7
+ 'aliases' => array(),
8
+ 'reference' => '0bf12b9c7d14b89ed874b10a3898fee6503f0301',
9
+ 'name' => 'awesomemotive/wpforms',
10
+ 'dev' => true,
11
  ),
12
+ 'versions' => array(
13
+ 'awesomemotive/wpforms' => array(
14
+ 'pretty_version' => 'dev-master',
15
+ 'version' => 'dev-master',
16
+ 'type' => 'library',
17
+ 'install_path' => __DIR__ . '/../../',
18
+ 'aliases' => array(),
19
+ 'reference' => '0bf12b9c7d14b89ed874b10a3898fee6503f0301',
20
+ 'dev_requirement' => false,
21
+ ),
22
+ 'goodby/csv' => array(
23
+ 'pretty_version' => 'dev-master',
24
+ 'version' => 'dev-master',
25
+ 'type' => 'library',
26
+ 'install_path' => __DIR__ . '/../goodby/csv',
27
+ 'aliases' => array(
28
+ 0 => '9999999-dev',
29
+ ),
30
+ 'reference' => '0fb8031424b4450638d01f8f1db04fd5d7e28474',
31
+ 'dev_requirement' => false,
32
+ ),
33
+ 'mk-j/php_xlsxwriter' => array(
34
+ 'pretty_version' => '0.38',
35
+ 'version' => '0.38.0.0',
36
+ 'type' => 'project',
37
+ 'install_path' => __DIR__ . '/../mk-j/php_xlsxwriter',
38
+ 'aliases' => array(),
39
+ 'reference' => '00579529fea072851789505b2dec0d14cdfffe60',
40
+ 'dev_requirement' => false,
41
+ ),
42
+ 'roave/security-advisories' => array(
43
+ 'pretty_version' => 'dev-latest',
44
+ 'version' => 'dev-latest',
45
+ 'type' => 'metapackage',
46
+ 'install_path' => NULL,
47
+ 'aliases' => array(
48
+ 0 => '9999999-dev',
49
+ ),
50
+ 'reference' => 'fa60732bcafd446e9ff858eefa06cdcbae8d9823',
51
+ 'dev_requirement' => true,
52
+ ),
53
+ 'symfony/css-selector' => array(
54
+ 'pretty_version' => 'v2.8.52',
55
+ 'version' => '2.8.52.0',
56
+ 'type' => 'library',
57
+ 'install_path' => __DIR__ . '/../symfony/css-selector',
58
+ 'aliases' => array(),
59
+ 'reference' => '7b1692e418d7ccac24c373528453bc90e42797de',
60
+ 'dev_requirement' => false,
61
+ ),
62
+ 'symfony/polyfill-iconv' => array(
63
+ 'pretty_version' => 'v1.18.1',
64
+ 'version' => '1.18.1.0',
65
+ 'type' => 'library',
66
+ 'install_path' => __DIR__ . '/../symfony/polyfill-iconv',
67
+ 'aliases' => array(),
68
+ 'reference' => '6c2f78eb8f5ab8eaea98f6d414a5915f2e0fce36',
69
+ 'dev_requirement' => false,
70
+ ),
71
+ 'symfony/polyfill-mbstring' => array(
72
+ 'pretty_version' => 'v1.18.1',
73
+ 'version' => '1.18.1.0',
74
+ 'type' => 'library',
75
+ 'install_path' => __DIR__ . '/../symfony/polyfill-mbstring',
76
+ 'aliases' => array(),
77
+ 'reference' => 'a6977d63bf9a0ad4c65cd352709e230876f9904a',
78
+ 'dev_requirement' => false,
79
+ ),
80
+ 'tijsverkoyen/css-to-inline-styles' => array(
81
+ 'pretty_version' => '2.2.3',
82
+ 'version' => '2.2.3.0',
83
+ 'type' => 'library',
84
+ 'install_path' => __DIR__ . '/../tijsverkoyen/css-to-inline-styles',
85
+ 'aliases' => array(),
86
+ 'reference' => 'b43b05cf43c1b6d849478965062b6ef73e223bb5',
87
+ 'dev_requirement' => false,
88
+ ),
89
+ 'true/punycode' => array(
90
+ 'pretty_version' => 'v2.1.1',
91
+ 'version' => '2.1.1.0',
92
+ 'type' => 'library',
93
+ 'install_path' => __DIR__ . '/../true/punycode',
94
+ 'aliases' => array(),
95
+ 'reference' => 'a4d0c11a36dd7f4e7cd7096076cab6d3378a071e',
96
+ 'dev_requirement' => false,
97
+ ),
98
+ 'woocommerce/action-scheduler' => array(
99
+ 'pretty_version' => '3.2.1',
100
+ 'version' => '3.2.1.0',
101
+ 'type' => 'wordpress-plugin',
102
+ 'install_path' => __DIR__ . '/../woocommerce/action-scheduler',
103
+ 'aliases' => array(),
104
+ 'reference' => '3c24064f115cd55e972d73d5d48f14133ac60b0d',
105
+ 'dev_requirement' => false,
106
+ ),
107
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
108
  );
vendor/goodby/csv/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) <year> <copyright holders>
2
 
3
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
 
1
+ Copyright (c) 2018 Craftsman Software, Inc.
2
 
3
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
 
vendor/goodby/csv/src/Goodby/CSV/Export/Standard/CsvFileObject.php CHANGED
@@ -47,7 +47,8 @@ class CsvFileObject extends SplFileObject
47
  * @param useless $escape THIS PARAM IS UNSED, BUT REQUIRED EXISTS, see https://bugs.php.net/bug.php?id=68479 and https://github.com/goodby/csv/issues/56
48
  * @return int|void
49
  */
50
- public function fputcsv($fields, $delimiter = null, $enclosure = null, $escape = null)
 
51
  {
52
  // Temporary output a line to memory to get line as string
53
  $fp = fopen('php://temp', 'w+');
47
  * @param useless $escape THIS PARAM IS UNSED, BUT REQUIRED EXISTS, see https://bugs.php.net/bug.php?id=68479 and https://github.com/goodby/csv/issues/56
48
  * @return int|void
49
  */
50
+ #[ReturnTypeWillChange]
51
+ public function fputcsv($fields, $delimiter = null, $enclosure = null, $escape = null, $eol = null)
52
  {
53
  // Temporary output a line to memory to get line as string
54
  $fp = fopen('php://temp', 'w+');
wpforms.php CHANGED
@@ -7,7 +7,7 @@
7
  * Requires PHP: 5.5
8
  * Author: WPForms
9
  * Author URI: https://wpforms.com
10
- * Version: 1.7.2
11
  * Text Domain: wpforms-lite
12
  * Domain Path: assets/languages
13
  *
@@ -32,7 +32,7 @@ if ( ! defined( 'ABSPATH' ) ) {
32
 
33
  // Plugin version.
34
  if ( ! defined( 'WPFORMS_VERSION' ) ) {
35
- define( 'WPFORMS_VERSION', '1.7.2' );
36
  }
37
 
38
  // Plugin Folder Path.
7
  * Requires PHP: 5.5
8
  * Author: WPForms
9
  * Author URI: https://wpforms.com
10
+ * Version: 1.7.2.1
11
  * Text Domain: wpforms-lite
12
  * Domain Path: assets/languages
13
  *
32
 
33
  // Plugin version.
34
  if ( ! defined( 'WPFORMS_VERSION' ) ) {
35
+ define( 'WPFORMS_VERSION', '1.7.2.1' );
36
  }
37
 
38
  // Plugin Folder Path.