Photo Gallery by Envira – Responsive Image Gallery for WordPress - Version 1.8.5

Version Description

Download this release

Release Info

Developer chrisakelley
Plugin Icon 128x128 Photo Gallery by Envira – Responsive Image Gallery for WordPress
Version 1.8.5
Comparing to
See all releases

Code changes from version 1.8.3.3 to 1.8.5

Files changed (69) hide show
  1. assets/css/admin.css +1 -1
  2. assets/css/envira.css +1 -1
  3. assets/css/metabox.css +1 -1339
  4. assets/css/settings.css +1 -1
  5. assets/css/welcome.css +1 -1053
  6. assets/images/audio_icon.png +0 -0
  7. assets/images/background.jpeg +0 -0
  8. assets/images/drag-drop-icon.png +0 -0
  9. assets/images/envira-admin.png +0 -0
  10. assets/images/envira-logo-color.svg +41 -0
  11. assets/images/envira-pattern.jpg +0 -0
  12. assets/images/features/albums-icon.png +0 -0
  13. assets/images/features/deeplinking-icon.png +0 -0
  14. assets/images/features/gallery-templates-icon.png +0 -0
  15. assets/images/features/image-compress-icon.png +0 -0
  16. assets/images/features/lightroom-icon.png +0 -0
  17. assets/images/features/logo-elementor.png +0 -0
  18. assets/images/features/proofing-icon.png +0 -0
  19. assets/images/features/protection-icon.png +0 -0
  20. assets/images/features/slideshow-icon.png +0 -0
  21. assets/images/features/social-icon.png +0 -0
  22. assets/images/features/videos-icon.png +0 -0
  23. assets/images/features/woo-icon.png +0 -0
  24. assets/images/mobile.jpg +0 -0
  25. assets/images/pagination-addon.png +0 -0
  26. assets/images/pagination-icon.png +0 -0
  27. assets/images/partners/allinone.png +0 -0
  28. assets/images/partners/forminator.gif +0 -0
  29. assets/images/partners/google-apps.png +0 -0
  30. assets/images/partners/google-drive.png +0 -0
  31. assets/images/partners/imagify.svg +32 -0
  32. assets/images/partners/pdf-embedder.png +0 -0
  33. assets/images/partners/shortpixel.png +0 -0
  34. assets/images/partners/smush.gif +0 -0
  35. assets/images/partners/soliloquy.png +0 -0
  36. assets/images/partners/sugar-calendar.png +0 -0
  37. assets/images/partners/the-events-calendar.gif +0 -0
  38. assets/images/proofing-icon.png +0 -0
  39. assets/images/responsive-icon.png +0 -0
  40. assets/images/social-icon.png +0 -0
  41. assets/images/socialsharing.png +0 -0
  42. assets/images/tags-addon.png +0 -0
  43. assets/images/tags-icon.png +0 -0
  44. assets/images/videos-addon.png +0 -0
  45. assets/images/videos-icon.png +0 -0
  46. assets/js/admin.js +49 -39
  47. assets/js/clipboard.js +0 -740
  48. assets/js/envira-gutenberg.js +2 -6
  49. assets/js/envira-gutenberg.js.LICENSE.txt +14 -0
  50. assets/js/envira.js +327 -269
  51. assets/js/lib/enviratope-item.js +0 -67
  52. assets/js/lib/fancybox.js +1 -1
  53. assets/js/lib/isotope.js +0 -3495
  54. assets/js/lib/layout-mode.js +144 -144
  55. assets/js/lib/layout-modes/fit-rows.js +0 -70
  56. assets/js/lib/layout-modes/masonry.js +0 -75
  57. assets/js/lib/layout-modes/vertical.js +0 -59
  58. assets/js/min/admin-min.js +1 -1
  59. assets/js/min/clipboard-min.js +0 -1
  60. assets/js/min/envira-min.js +1 -1
  61. assets/js/min/welcome-min.js +1 -0
  62. assets/js/welcome.js +175 -0
  63. assets/scss/_fonts.scss +84 -40
  64. assets/scss/_mixins.scss +71 -44
  65. assets/scss/_vars.scss +3 -1
  66. assets/scss/addons.scss +45 -50
  67. assets/scss/admin.scss +216 -194
  68. assets/scss/buttons.scss +36 -0
  69. assets/scss/metabox.scss +248 -251
assets/css/admin.css CHANGED
@@ -1 +1 @@
1
- body.post-type-envira #wpcontent,body.post-type-envira_album #wpcontent{padding-left:0}body.post-type-envira .update-nag,body.post-type-envira_album .update-nag{margin-left:20px;margin-bottom:20px}body.post-type-envira .subheading,body.post-type-envira_album .subheading{background-color:#fff;height:45px;margin-left:-20px}@media (min-width: 600px) and (max-width: 767px){body.post-type-envira .subheading,body.post-type-envira_album .subheading{height:auto;padding-bottom:20px}}body.post-type-envira .subheading h1,body.post-type-envira_album .subheading h1{font-size:20px;font-weight:400;line-height:45px;margin:0 0 0 20px;padding-left:20px}body.post-type-envira div.wrap,body.post-type-envira_album div.wrap{margin:0}body.post-type-envira div.wrap a.page-title-action,body.post-type-envira_album div.wrap a.page-title-action{position:relative;top:-53px;left:115px}body.post-type-envira div.wrap a.page-title-action:hover,body.post-type-envira_album div.wrap a.page-title-action:hover{background:#95dc5e;border-color:#95dc5e;color:#fff}body.post-type-envira div.wrap>h1,body.post-type-envira div.wrap>h2,body.post-type-envira_album div.wrap>h1,body.post-type-envira_album div.wrap>h2{margin:0 0 20px 0;padding:15px 0 10px;background:#fff;font-weight:600;font-size:20px;width:100%;text-indent:20px}body.post-type-envira div.wrap>h1 a.page-title-action,body.post-type-envira div.wrap>h2 a.page-title-action,body.post-type-envira_album div.wrap>h1 a.page-title-action,body.post-type-envira_album div.wrap>h2 a.page-title-action{top:-3px;left:auto}body.post-type-envira div.wrap>h1 a.page-title-action:hover,body.post-type-envira div.wrap>h2 a.page-title-action:hover,body.post-type-envira_album div.wrap>h1 a.page-title-action:hover,body.post-type-envira_album div.wrap>h2 a.page-title-action:hover{background:#95dc5e;border-color:#95dc5e;color:#fff}body.post-type-envira div.wrap>h1 span.subtitle,body.post-type-envira div.wrap>h2 span.subtitle,body.post-type-envira_album div.wrap>h1 span.subtitle,body.post-type-envira_album div.wrap>h2 span.subtitle{float:right}body.post-type-envira div.wrap .envira-tab,body.post-type-envira_album div.wrap .envira-tab{display:none}body.post-type-envira div.wrap .envira-tab.envira-active,body.post-type-envira_album div.wrap .envira-tab.envira-active{display:block}body.post-type-envira div.wrap div.envira-code,body.post-type-envira_album div.wrap div.envira-code{position:relative;margin:0 0 10px 0}body.post-type-envira div.wrap div.envira-code:after,body.post-type-envira_album div.wrap div.envira-code:after{content:"";display:table;clear:both}body.post-type-envira div.wrap div.envira-code code,body.post-type-envira_album div.wrap div.envira-code code{display:block;font-size:11px;padding:5px 20px 5px 5px}body.post-type-envira div.wrap div.envira-code a.envira-clipboard,body.post-type-envira_album div.wrap div.envira-code a.envira-clipboard{position:absolute;top:5px;right:5px;color:#23282d}body.post-type-envira div.wrap div.envira-code a.envira-clipboard span,body.post-type-envira_album div.wrap div.envira-code a.envira-clipboard span{display:block;text-indent:-9999px}body.post-type-envira .button,body.post-type-envira_album .button{-webkit-border-radius:2px;-moz-border-radius:2px;-o-border-radius:2px;border-radius:2px;padding:0 16px 1px;height:33px;line-height:30px;text-decoration:none;text-shadow:none;font-weight:600;-webkit-box-shadow:none;box-shadow:none}body.post-type-envira .button.button-small,body.post-type-envira_album .button.button-small{padding:0 8px 1px;line-height:22px;height:24px}body.post-type-envira .button.button-x-large,body.post-type-envira_album .button.button-x-large{padding:0 32px 1px;line-height:48px;height:50px;font-size:18px;text-transform:uppercase}@media (min-width: 600px) and (max-width: 767px){body.post-type-envira .button,body.post-type-envira_album .button{margin-top:10px}}body.post-type-envira .button.show-settings,body.post-type-envira_album .button.show-settings{height:auto}body.post-type-envira .button.button-primary,body.post-type-envira_album .button.button-primary{background:#7cc048;border-color:#7cc048;-webkit-box-shadow:none;box-shadow:none;color:#fff}body.post-type-envira .button.button-primary:hover,body.post-type-envira_album .button.button-primary:hover{background:#95dc5e;border-color:#95dc5e;color:#fff}body.post-type-envira .button.button-danger,body.post-type-envira_album .button.button-danger{background:#e02626;border-color:#e02626;-webkit-box-shadow:none;box-shadow:none;color:#fff}body.post-type-envira .button.button-danger:hover,body.post-type-envira_album .button.button-danger:hover{background:#f85959;border-color:#f85959;color:#fff}body.post-type-envira div#TB_window div.wrap,body.post-type-envira_album div#TB_window div.wrap{margin:10px 20px 0 2px}body.post-type-envira.locale-fr-fr div.wrap a.page-title-action,body.post-type-envira_album.locale-fr-fr div.wrap a.page-title-action{left:220px}#envira-header-temp{position:relative}#envira-header{background-color:#7cc048;height:120px}@media (max-width: 599px){#envira-header{padding-top:46px}}#envira-header h1.envira-logo{margin:0;line-height:120px;margin-left:20px}#envira-header h1.envira-logo img{max-width:339px;height:auto;width:90%}@media (min-width: 600px) and (max-width: 767px){#envira-header h1.envira-logo img{width:90%}}@media (max-width: 599px){#wpbody{padding-top:0}}body.post-type-envira_album div.wrap a.page-title-action{left:180px !important}body.post-type-envira_album div.wrap>h1 a.page-title-action,body.post-type-envira_album div.wrap>h2 a.page-title-action{top:-3px !important;left:auto !important}body.post-php.post-type-envira_album div.wrap a.page-title-action{left:200px !important}body.post-php.post-type-envira_album div.wrap>h1 a.page-title-action,body.post-php.post-type-envira_album div.wrap>h2 a.page-title-action{top:-3px !important;left:auto !important}body.post-php.post-type-envira div.wrap a.page-title-action{left:140px !important}body.post-php.post-type-envira div.wrap>h1 a.page-title-action,body.post-php.post-type-envira div.wrap>h2 a.page-title-action{top:-3px !important;left:auto !important}body.post-php.post-type-envira div.wrap span.subtitle{display:block;margin-top:-10px;padding-left:21px}body.edit-php.post-type-envira div.wrap span.subtitle{display:block;margin-top:-15px;margin-bottom:10px;padding-left:22px}.envira-notice{position:relative;margin:0 0 20px 0;padding:20px;-webkit-border-radius:2px;-moz-border-radius:2px;-o-border-radius:2px;border-radius:2px}.envira-notice p.envira-intro{border:none !important;margin:0 0 20px 0 !important;padding:0 !important}.envira-notice .dashicons.star{color:#ff982d;line-height:1.3;font-size:15px;width:15px;height:15px}.envira-notice .notice-dismiss{top:10px;right:10px;color:#fff}.envira-notice .notice-dismiss:before{color:#fff;width:26px;height:26px;font-size:22px}.envira-notice .no-margin-top{margin-top:0}.envira-notice.success{background:#7cc048;color:#fff;border:none}.envira-notice.success .button.button-primary{background-color:#95dc5e;border-color:#95dc5e}.envira-notice.warning{background:#fcf8e3;border:1px solid #faebcc}.envira-notice.warning .notice-dismiss{color:#000}.envira-notice.warning .notice-dismiss:before{color:#000}.envira-notice.error{border-top:1px solid #dc3232;border-right:1px solid #dc3232;border-bottom:1px solid #dc3232}.envira-tab .two-column-list{display:table;width:100%}.envira-tab .two-column-list ul{list-style:none;margin-left:0;padding-left:1em;text-indent:-1em;width:45%;padding-right:10px;float:left}.envira-tab .two-column-list ul li:before{content:"+ "}.envira-tab .two-column-list ul li{line-height:1.5}.upgrade-content .two-column-list li{line-height:21px}.cta-buttons{margin-top:40px}body.post-type-envira.edit-php div.wrap,body.post-type-envira.post-new-php div.wrap,body.post-type-envira.post-php div.wrap,body.post-type-envira_album.edit-php div.wrap,body.post-type-envira_album.post-new-php div.wrap,body.post-type-envira_album.post-php div.wrap{margin:0}body.post-type-envira.edit-php div.wrap>div.error,body.post-type-envira.edit-php div.wrap>div.notice,body.post-type-envira.edit-php div.wrap>div.updated,body.post-type-envira.post-new-php div.wrap>div.error,body.post-type-envira.post-new-php div.wrap>div.notice,body.post-type-envira.post-new-php div.wrap>div.updated,body.post-type-envira.post-php div.wrap>div.error,body.post-type-envira.post-php div.wrap>div.notice,body.post-type-envira.post-php div.wrap>div.updated,body.post-type-envira_album.edit-php div.wrap>div.error,body.post-type-envira_album.edit-php div.wrap>div.notice,body.post-type-envira_album.edit-php div.wrap>div.updated,body.post-type-envira_album.post-new-php div.wrap>div.error,body.post-type-envira_album.post-new-php div.wrap>div.notice,body.post-type-envira_album.post-new-php div.wrap>div.updated,body.post-type-envira_album.post-php div.wrap>div.error,body.post-type-envira_album.post-php div.wrap>div.notice,body.post-type-envira_album.post-php div.wrap>div.updated{margin-left:20px;margin-right:20px}body.post-type-envira.edit-tags-php div.wrap,body.post-type-envira.taxonomy-envira-tag div.wrap{margin:0}body.post-type-envira.edit-tags-php div.wrap>div.error,body.post-type-envira.edit-tags-php div.wrap>div.notice,body.post-type-envira.edit-tags-php div.wrap>div.updated,body.post-type-envira.taxonomy-envira-tag div.wrap>div.error,body.post-type-envira.taxonomy-envira-tag div.wrap>div.notice,body.post-type-envira.taxonomy-envira-tag div.wrap>div.updated{margin-left:20px;margin-right:20px}body.post-type-envira.edit-tags-php div.wrap form.search-form,body.post-type-envira.edit-tags-php div.wrap form#edittag,body.post-type-envira.edit-tags-php div.wrap #col-container,body.post-type-envira.taxonomy-envira-tag div.wrap form.search-form,body.post-type-envira.taxonomy-envira-tag div.wrap form#edittag,body.post-type-envira.taxonomy-envira-tag div.wrap #col-container{margin:0 20px}body.post-type-envira.edit-tags-php div.wrap .button,body.post-type-envira.taxonomy-envira-tag div.wrap .button{height:28px;line-height:26px}body.post-type-envira div.wrap{margin:0 20px}.media-modal .media-modal-content .media-frame-content .attachments-browser.envira-gallery-editor div.envira-gallery-error{position:absolute;top:50px;left:0;right:300px}.media-modal .media-modal-content .media-frame-content .attachments-browser.envira-gallery-editor ul.attachments li.attachment{width:20%}.media-modal .media-modal-content .media-frame-content .attachments-browser.envira-gallery-editor ul.attachments li.attachment div.attachment-preview div.thumbnail img{position:absolute;z-index:1;top:0;left:0;width:100%;height:100%;opacity:0.2}.media-modal .media-modal-content .media-frame-content .attachments-browser.envira-gallery-editor ul.attachments li.attachment div.attachment-preview div.thumbnail strong{position:absolute;z-index:2;height:50%;top:0;left:0;right:0;padding:10px;text-align:center;overflow:hidden;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;vertical-align:bottom;background:rgba(0,0,0,0.07);text-shadow:1px 1px #ddd}.media-modal .media-modal-content .media-frame-content .attachments-browser.envira-gallery-editor ul.attachments li.attachment div.attachment-preview div.thumbnail strong span{display:block;position:absolute;bottom:10px;left:0;right:0;padding:0 10px;text-align:center}.media-modal .media-modal-content .media-frame-content .attachments-browser.envira-gallery-editor ul.attachments li.attachment div.attachment-preview div.thumbnail code{position:absolute;z-index:2;height:50%;bottom:0;left:0;right:0;padding:10px;text-align:center;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;vertical-align:middle;text-shadow:1px 1px #ddd}.media-modal .media-modal-content .media-frame-content .attachments-browser.envira-gallery-editor div.media-sidebar div.settings .name{text-align:left}body.post-type-envira .postbox-header{display:none}.envira-admin-litevspro-section h3{font-size:42px;line-height:50px;font-weight:600;margin:5px auto}@media screen and (max-width: 782px){body.post-type-envira .wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.check-column){display:table-cell}}@media screen and (max-width: 640px){body.post-type-envira div.wrap h1,body.post-type-envira_album div.wrap h1{padding-bottom:40px}body.post-type-envira div.wrap h1 span.subtitle,body.post-type-envira_album div.wrap h1 span.subtitle{clear:both;width:100%;padding:0}}@media screen and (max-width: 340px){body.post-type-envira div.wrap h1,body.post-type-envira_album div.wrap h1{text-align:center}body.post-type-envira div.wrap h1 a.page-title-action,body.post-type-envira_album div.wrap h1 a.page-title-action{display:block;text-align:center;margin:10px 0 0 0}}.addon-tag{position:absolute;display:inline-block;padding:.75em 3em .75em 1.1em;overflow:hidden;color:#fff;z-index:999;font-weight:bold;left:0;font-size:1.3em}div.addon-tag:after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:#1c45ba;-webkit-transform-origin:100% 0;-ms-transform-origin:100% 0;transform-origin:100% 0;-webkit-transform:skew(-45deg);-ms-transform:skew(-45deg);transform:skew(-45deg);z-index:-1}
1
+ .wp-core-ui .button.envira-button{border-radius:6px}.wp-core-ui .envira-primary-button{border-color:#7cc048;color:#fff;background-color:#7cc048}.wp-core-ui .envira-primary-button:hover{background:#95dc5e;border-color:#95dc5e;color:#fff}.wp-core-ui .envira-secondary-button{border-color:#f5f5f5;color:#646464;background-color:#f5f5f5;box-shadow:0 2px 5px rgba(0,0,0,.08)}.wp-core-ui .envira-secondary-button:hover{border-color:#ebebeb;color:#646464;background-color:#ebebeb;box-shadow:0 2px 5px rgba(0,0,0,.08)}body.post-type-envira #wpcontent,body.post-type-envira_album #wpcontent{padding-left:0}body.post-type-envira .update-nag,body.post-type-envira_album .update-nag{margin-left:20px;margin-bottom:20px}body.post-type-envira .subheading,body.post-type-envira_album .subheading{background-color:#fff;height:45px;margin-left:-20px}@media(min-width: 600px)and (max-width: 767px){body.post-type-envira .subheading,body.post-type-envira_album .subheading{height:auto;padding-bottom:20px}}body.post-type-envira .subheading h1,body.post-type-envira_album .subheading h1{font-size:20px;font-weight:400;line-height:45px;margin:0 0 0 20px;padding-left:20px}body.post-type-envira div.wrap,body.post-type-envira_album div.wrap{margin:0}body.post-type-envira div.wrap a.page-title-action,body.post-type-envira_album div.wrap a.page-title-action{position:relative;top:-53px;left:115px}body.post-type-envira div.wrap a.page-title-action:hover,body.post-type-envira_album div.wrap a.page-title-action:hover{background:#95dc5e;border-color:#95dc5e;color:#fff}body.post-type-envira div.wrap>h1,body.post-type-envira div.wrap>h2,body.post-type-envira_album div.wrap>h1,body.post-type-envira_album div.wrap>h2{margin:0 0 20px 0;padding:15px 0 10px;background:#fff;font-weight:600;font-size:20px;width:100%;text-indent:20px}body.post-type-envira div.wrap>h1 a.page-title-action,body.post-type-envira div.wrap>h2 a.page-title-action,body.post-type-envira_album div.wrap>h1 a.page-title-action,body.post-type-envira_album div.wrap>h2 a.page-title-action{top:-3px;left:auto}body.post-type-envira div.wrap>h1 a.page-title-action:hover,body.post-type-envira div.wrap>h2 a.page-title-action:hover,body.post-type-envira_album div.wrap>h1 a.page-title-action:hover,body.post-type-envira_album div.wrap>h2 a.page-title-action:hover{background:#95dc5e;border-color:#95dc5e;color:#fff}body.post-type-envira div.wrap>h1 span.subtitle,body.post-type-envira div.wrap>h2 span.subtitle,body.post-type-envira_album div.wrap>h1 span.subtitle,body.post-type-envira_album div.wrap>h2 span.subtitle{float:right}body.post-type-envira div.wrap .envira-tab,body.post-type-envira_album div.wrap .envira-tab{display:none}body.post-type-envira div.wrap .envira-tab.envira-active,body.post-type-envira_album div.wrap .envira-tab.envira-active{display:block}body.post-type-envira div.wrap div.envira-code,body.post-type-envira_album div.wrap div.envira-code{position:relative;margin:0 0 10px 0}body.post-type-envira div.wrap div.envira-code:after,body.post-type-envira_album div.wrap div.envira-code:after{content:"";display:table;clear:both}body.post-type-envira div.wrap div.envira-code code,body.post-type-envira_album div.wrap div.envira-code code{display:block;font-size:11px;padding:5px 20px 5px 5px}body.post-type-envira div.wrap div.envira-code a.envira-clipboard,body.post-type-envira_album div.wrap div.envira-code a.envira-clipboard{position:absolute;top:5px;right:5px;color:#23282d}body.post-type-envira div.wrap div.envira-code a.envira-clipboard span,body.post-type-envira_album div.wrap div.envira-code a.envira-clipboard span{display:block;text-indent:-9999px}body.post-type-envira .button,body.post-type-envira_album .button{-webkit-border-radius:2px;-moz-border-radius:2px;-o-border-radius:2px;border-radius:2px;padding:0 16px 1px;height:33px;line-height:30px;text-decoration:none;text-shadow:none;font-weight:600;-webkit-box-shadow:none;box-shadow:none}body.post-type-envira .button.button-small,body.post-type-envira_album .button.button-small{padding:0 8px 1px;line-height:22px;height:24px}body.post-type-envira .button.button-x-large,body.post-type-envira_album .button.button-x-large{padding:0 32px 1px;line-height:48px;height:50px;font-size:18px;text-transform:uppercase}@media(min-width: 600px)and (max-width: 767px){body.post-type-envira .button,body.post-type-envira_album .button{margin-top:10px}}body.post-type-envira .button.show-settings,body.post-type-envira_album .button.show-settings{height:auto}body.post-type-envira .button.button-primary,body.post-type-envira_album .button.button-primary{background:#7cc048;border-color:#7cc048;-webkit-box-shadow:none;box-shadow:none;color:#fff}body.post-type-envira .button.button-primary:hover,body.post-type-envira_album .button.button-primary:hover{background:#95dc5e;border-color:#95dc5e;color:#fff}body.post-type-envira .button.button-danger,body.post-type-envira_album .button.button-danger{background:#e02626;border-color:#e02626;-webkit-box-shadow:none;box-shadow:none;color:#fff}body.post-type-envira .button.button-danger:hover,body.post-type-envira_album .button.button-danger:hover{background:#f85959;border-color:#f85959;color:#fff}body.post-type-envira div#TB_window div.wrap,body.post-type-envira_album div#TB_window div.wrap{margin:10px 20px 0 2px}body.post-type-envira.locale-fr-fr div.wrap a.page-title-action,body.post-type-envira_album.locale-fr-fr div.wrap a.page-title-action{left:220px}#envira-header-temp{position:relative}#envira-top-notification{position:relative;background-color:#7cc048;text-align:center;color:#fff;height:40px;vertical-align:middle}#envira-top-notification p{margin:0;padding:0;line-height:40px;font-size:16px}#envira-top-notification a{color:#fff}#envira-top-notification .envira-dismiss{position:absolute;top:10px;right:10px}#envira-header{background-color:#ebebeb;background-image:url("../images/background.jpeg");background-repeat:repeat;height:120px}@media(max-width: 599px){#envira-header{padding-top:46px}}#envira-header h1.envira-logo{margin:0;line-height:140px;margin-left:20px}#envira-header h1.envira-logo img{max-width:339px}@media(min-width: 600px)and (max-width: 767px){#envira-header h1.envira-logo img{width:90%}}@media(max-width: 599px){#wpbody{padding-top:0}}body.post-type-envira_album div.wrap a.page-title-action{left:180px !important}body.post-type-envira_album div.wrap>h1 a.page-title-action,body.post-type-envira_album div.wrap>h2 a.page-title-action{top:-3px !important;left:auto !important}body.post-php.post-type-envira_album div.wrap a.page-title-action{left:200px !important}body.post-php.post-type-envira_album div.wrap>h1 a.page-title-action,body.post-php.post-type-envira_album div.wrap>h2 a.page-title-action{top:-3px !important;left:auto !important}body.post-php.post-type-envira div.wrap a.page-title-action{left:140px !important}body.post-php.post-type-envira div.wrap>h1 a.page-title-action,body.post-php.post-type-envira div.wrap>h2 a.page-title-action{top:-3px !important;left:auto !important}body.post-php.post-type-envira div.wrap span.subtitle{display:block;margin-top:-10px;padding-left:21px}body.edit-php.post-type-envira div.wrap span.subtitle{display:block;margin-top:-15px;margin-bottom:10px;padding-left:22px}.envira-notice{position:relative;margin:0 0 20px 0;padding:20px;-webkit-border-radius:2px;-moz-border-radius:2px;-o-border-radius:2px;border-radius:2px}.envira-notice p.envira-intro{border:none !important;margin:0 0 20px 0 !important;padding:0 !important}.envira-notice .dashicons.star{color:#ff982d;line-height:1.3;font-size:15px;width:15px;height:15px}.envira-notice .notice-dismiss{top:10px;right:10px;color:#fff}.envira-notice .notice-dismiss:before{color:#fff;width:26px;height:26px;font-size:22px}.envira-notice .no-margin-top{margin-top:0}.envira-notice.success{background:#7cc048;color:#fff;border:none}.envira-notice.success .button.button-primary{background-color:#95dc5e;border-color:#95dc5e}.envira-notice.warning{background:#fcf8e3;border:1px solid #faebcc}.envira-notice.warning .notice-dismiss{color:#000}.envira-notice.warning .notice-dismiss:before{color:#000}.envira-notice.error{border-top:1px solid #dc3232;border-right:1px solid #dc3232;border-bottom:1px solid #dc3232}.envira-tab .two-column-list{display:table;width:100%}.envira-tab .two-column-list ul{list-style:none;margin-left:0;padding-left:1em;text-indent:-1em;width:45%;padding-right:10px;float:left}.envira-tab .two-column-list ul li:before{content:"+ "}.envira-tab .two-column-list ul li{line-height:1.5}.upgrade-content .two-column-list li{line-height:21px}.cta-buttons{margin-top:40px}body.post-type-envira.edit-php div.wrap,body.post-type-envira.post-new-php div.wrap,body.post-type-envira.post-php div.wrap,body.post-type-envira_album.edit-php div.wrap,body.post-type-envira_album.post-new-php div.wrap,body.post-type-envira_album.post-php div.wrap{margin:0}body.post-type-envira.edit-php div.wrap>div.error,body.post-type-envira.edit-php div.wrap>div.notice,body.post-type-envira.edit-php div.wrap>div.updated,body.post-type-envira.post-new-php div.wrap>div.error,body.post-type-envira.post-new-php div.wrap>div.notice,body.post-type-envira.post-new-php div.wrap>div.updated,body.post-type-envira.post-php div.wrap>div.error,body.post-type-envira.post-php div.wrap>div.notice,body.post-type-envira.post-php div.wrap>div.updated,body.post-type-envira_album.edit-php div.wrap>div.error,body.post-type-envira_album.edit-php div.wrap>div.notice,body.post-type-envira_album.edit-php div.wrap>div.updated,body.post-type-envira_album.post-new-php div.wrap>div.error,body.post-type-envira_album.post-new-php div.wrap>div.notice,body.post-type-envira_album.post-new-php div.wrap>div.updated,body.post-type-envira_album.post-php div.wrap>div.error,body.post-type-envira_album.post-php div.wrap>div.notice,body.post-type-envira_album.post-php div.wrap>div.updated{margin-left:20px;margin-right:20px}body.post-type-envira.edit-tags-php div.wrap,body.post-type-envira.taxonomy-envira-tag div.wrap{margin:0}body.post-type-envira.edit-tags-php div.wrap>div.error,body.post-type-envira.edit-tags-php div.wrap>div.notice,body.post-type-envira.edit-tags-php div.wrap>div.updated,body.post-type-envira.taxonomy-envira-tag div.wrap>div.error,body.post-type-envira.taxonomy-envira-tag div.wrap>div.notice,body.post-type-envira.taxonomy-envira-tag div.wrap>div.updated{margin-left:20px;margin-right:20px}body.post-type-envira.edit-tags-php div.wrap form.search-form,body.post-type-envira.edit-tags-php div.wrap form#edittag,body.post-type-envira.edit-tags-php div.wrap #col-container,body.post-type-envira.taxonomy-envira-tag div.wrap form.search-form,body.post-type-envira.taxonomy-envira-tag div.wrap form#edittag,body.post-type-envira.taxonomy-envira-tag div.wrap #col-container{margin:0 20px}body.post-type-envira.edit-tags-php div.wrap .button,body.post-type-envira.taxonomy-envira-tag div.wrap .button{height:28px;line-height:26px}body.post-type-envira div.wrap{margin:0 20px}.media-modal .media-modal-content .media-frame-content .attachments-browser.envira-gallery-editor div.envira-gallery-error{position:absolute;top:50px;left:0;right:300px}.media-modal .media-modal-content .media-frame-content .attachments-browser.envira-gallery-editor ul.attachments li.attachment{width:20%}.media-modal .media-modal-content .media-frame-content .attachments-browser.envira-gallery-editor ul.attachments li.attachment div.attachment-preview div.thumbnail img{position:absolute;z-index:1;top:0;left:0;width:100%;height:100%;opacity:.2}.media-modal .media-modal-content .media-frame-content .attachments-browser.envira-gallery-editor ul.attachments li.attachment div.attachment-preview div.thumbnail strong{position:absolute;z-index:2;height:50%;top:0;left:0;right:0;padding:10px;text-align:center;overflow:hidden;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;vertical-align:bottom;background:rgba(0,0,0,.07);text-shadow:1px 1px #ddd}.media-modal .media-modal-content .media-frame-content .attachments-browser.envira-gallery-editor ul.attachments li.attachment div.attachment-preview div.thumbnail strong span{display:block;position:absolute;bottom:10px;left:0;right:0;padding:0 10px;text-align:center}.media-modal .media-modal-content .media-frame-content .attachments-browser.envira-gallery-editor ul.attachments li.attachment div.attachment-preview div.thumbnail code{position:absolute;z-index:2;height:50%;bottom:0;left:0;right:0;padding:10px;text-align:center;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;vertical-align:middle;text-shadow:1px 1px #ddd}.media-modal .media-modal-content .media-frame-content .attachments-browser.envira-gallery-editor div.media-sidebar div.settings .name{text-align:left}body.post-type-envira .postbox-header{display:none}.envira-admin-litevspro-section h3{font-size:42px;line-height:50px;font-weight:600;margin:5px auto}@media screen and (max-width: 782px){body.post-type-envira .wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.check-column){display:table-cell}}@media screen and (max-width: 640px){body.post-type-envira div.wrap h1,body.post-type-envira_album div.wrap h1{padding-bottom:40px}body.post-type-envira div.wrap h1 span.subtitle,body.post-type-envira_album div.wrap h1 span.subtitle{clear:both;width:100%;padding:0}}@media screen and (max-width: 340px){body.post-type-envira div.wrap h1,body.post-type-envira_album div.wrap h1{text-align:center}body.post-type-envira div.wrap h1 a.page-title-action,body.post-type-envira_album div.wrap h1 a.page-title-action{display:block;text-align:center;margin:10px 0 0 0}}.addon-tag{position:absolute;display:inline-block;padding:.75em 3em .75em 1.1em;overflow:hidden;color:#fff;z-index:999;font-weight:bold;left:0;font-size:1.3em}div.addon-tag:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:#1c45ba;-webkit-transform-origin:100% 0;-ms-transform-origin:100% 0;transform-origin:100% 0;-webkit-transform:skew(-45deg);-ms-transform:skew(-45deg);transform:skew(-45deg);z-index:-1}
assets/css/envira.css CHANGED
@@ -1 +1 @@
1
- .envira-gallery-wrap,.envira-gallery-wrap *,.envira-tags-filter-list,.envira-tags-filter-list *{background:none;border:0 none;border-radius:0;-webkit-border-radius:0;-moz-border-radius:0;float:none;font-size:100%;height:auto;letter-spacing:normal;list-style:none;outline:none;position:static;text-decoration:none;text-indent:0;text-shadow:none;text-transform:none;width:auto;visibility:visible;overflow:visible;margin:0;padding:0;line-height:1;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-shadow:none;-moz-box-shadow:none;-ms-box-shadow:none;-o-box-shadow:none;box-shadow:none;-webkit-appearance:none;transition:none;-webkit-transition:none;-moz-transition:none;-o-transition:none;-ms-transition:none}.envira-tags-filter-list{clear:both;margin:0 0 10px 0}.envira-tags-filter-list li.envira-tags-filter,.envira-tags-filter-list li.envira-tag-filter{float:left;margin:0 20px 10px 0}.envira-tags-filter-list .envira-tag-filter-link{font-size:13px;font-weight:bold}.envira-breadcrumbs{display:block;margin:0 0 20px 0;padding:10px;background:#eee}.envira-breadcrumbs a{text-decoration:none}.envira-gallery-wrap{width:100%;margin:0 auto 20px auto}.envira-gallery-wrap .envira-pagination{margin:0 0 20px 0}.envira-gallery-wrap .envira-gallery-description{clear:both}.envira-gallery-wrap .envira-gallery-public{width:100%;margin:0 auto 20px auto;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.envira-gallery-wrap .envira-gallery-public.envira-clear{clear:both}.envira-gallery-wrap .envira-gallery-public.envira-clear:after{clear:both;content:'.';display:block;height:0;line-height:0;overflow:auto;visibility:hidden;zoom:1}.envira-gallery-wrap .envira-gallery-public .envira-gallery-item-inner{position:relative}.envira-gallery-wrap .envira-gallery-public .envira-gallery-item-inner .envira-gallery-position-overlay{box-sizing:border-box;position:absolute;overflow:visible;z-index:999}.envira-gallery-wrap .envira-gallery-public .envira-gallery-item-inner .envira-gallery-position-overlay.envira-gallery-top-left{top:0;left:0;padding:5px 0 0 5px}.envira-gallery-wrap .envira-gallery-public .envira-gallery-item-inner .envira-gallery-position-overlay.envira-gallery-top-right{top:0;right:0;padding:5px 5px 0 0;text-align:right}.envira-gallery-wrap .envira-gallery-public .envira-gallery-item-inner .envira-gallery-position-overlay.envira-gallery-bottom-left{bottom:0;left:0;padding:0 0 5px 5px}.envira-gallery-wrap .envira-gallery-public .envira-gallery-item-inner .envira-gallery-position-overlay.envira-gallery-bottom-right{bottom:0;right:0;padding:0 5px 5px 0;text-align:right}.envira-gallery-wrap .envira-gallery-public .envira-gallery-item{float:left}.envira-gallery-wrap .envira-gallery-public .envira-gallery-item>.envira-gallery-link{display:block;outline:none;border:0 none;position:relative}.envira-gallery-wrap .envira-gallery-public .envira-gallery-item img{float:none;display:block;margin:0 auto;padding:0;max-width:100%}.envira-gallery-wrap .envira-gallery-public .envira-gallery-item iframe,.envira-gallery-wrap .envira-gallery-public .envira-gallery-item video{display:block;margin:0 auto;width:100%}.envira-gallery-wrap .envira-gallery-public.envira-gallery-1-columns .envira-gallery-item{clear:both;width:100%}.envira-gallery-wrap .envira-gallery-public.envira-gallery-2-columns .envira-gallery-item{width:50%}.envira-gallery-wrap .envira-gallery-public.envira-gallery-2-columns .envira-gallery-item:nth-child(2n+1){clear:both}.envira-gallery-wrap .envira-gallery-public.envira-gallery-3-columns .envira-gallery-item{width:33.33%}.envira-gallery-wrap .envira-gallery-public.envira-gallery-3-columns .envira-gallery-item:nth-child(3n+1){clear:both}.envira-gallery-wrap .envira-gallery-public.envira-gallery-4-columns .envira-gallery-item{width:25%;margin:0;padding:0;box-sizing:border-box}.envira-gallery-wrap .envira-gallery-public.envira-gallery-4-columns .envira-gallery-item:nth-child(4n+1){clear:both}.envira-gallery-wrap .envira-gallery-public.envira-gallery-5-columns .envira-gallery-item{width:20%}.envira-gallery-wrap .envira-gallery-public.envira-gallery-5-columns .envira-gallery-item:nth-child(5n+1){clear:both}.envira-gallery-wrap .envira-gallery-public.envira-gallery-6-columns .envira-gallery-item{width:16.66%}.envira-gallery-wrap .envira-gallery-public.envira-gallery-6-columns .envira-gallery-item:nth-child(6n+1){clear:both}.envira-gallery-wrap .envira-gallery-public.enviratope .envira-gallery-item{clear:none !important}.envira-gallery-wrap .envira-gallery-public.envira-gallery-css-animations .envira-gallery-item img{opacity:0;transition:all .2s ease-in-out}.envira-gallery-wrap .envira-gallery-public.envira-gallery-css-animations .envira-gallery-item a:hover img{opacity:1 !important}.envira-gallery-public.justified-gallery .envira-gallery-item-inner{position:absolute}.envira-gallery-wrap.envira-gallery-rtl .envira-gallery-public .envira-gallery-item{float:right}@media only screen and (max-width: 768px){.envira-gallery-wrap .envira-gallery-public.envira-gallery-4-columns .envira-gallery-item{width:33%}.envira-gallery-wrap .envira-gallery-public.envira-gallery-4-columns .envira-gallery-item:nth-child(4n+1){clear:none}.envira-gallery-wrap .envira-gallery-public.envira-gallery-4-columns .envira-gallery-item:nth-child(3n+1){clear:both}.envira-gallery-wrap .envira-gallery-public.envira-gallery-5-columns .envira-gallery-item{width:33%}.envira-gallery-wrap .envira-gallery-public.envira-gallery-5-columns .envira-gallery-item:nth-child(5n+1){clear:none}.envira-gallery-wrap .envira-gallery-public.envira-gallery-5-columns .envira-gallery-item:nth-child(3n+1){clear:both}.envira-gallery-wrap .envira-gallery-public.envira-gallery-6-columns .envira-gallery-item{width:33%}.envira-gallery-wrap .envira-gallery-public.envira-gallery-6-columns .envira-gallery-item:nth-child(6n+1){clear:none}.envira-gallery-wrap .envira-gallery-public.envira-gallery-6-columns .envira-gallery-item:nth-child(3n+1){clear:both}.envira-gallery-wrap .envira-gallery-public.enviratope .envira-gallery-item{clear:none !important}}@media only screen and (max-width: 459px){.envira-gallery-wrap .envira-gallery-public.envira-gallery-2-columns .envira-gallery-item,.envira-gallery-wrap .envira-gallery-public.envira-gallery-3-columns .envira-gallery-item,.envira-gallery-wrap .envira-gallery-public.envira-gallery-4-columns .envira-gallery-item,.envira-gallery-wrap .envira-gallery-public.envira-gallery-5-columns .envira-gallery-item,.envira-gallery-wrap .envira-gallery-public.envira-gallery-6-columns .envira-gallery-item{width:50% !important}.envira-gallery-wrap .envira-gallery-public.envira-gallery-2-columns .envira-gallery-item:nth-child(3n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-2-columns .envira-gallery-item:nth-child(4n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-2-columns .envira-gallery-item:nth-child(5n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-2-columns .envira-gallery-item:nth-child(6n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-3-columns .envira-gallery-item:nth-child(3n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-3-columns .envira-gallery-item:nth-child(4n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-3-columns .envira-gallery-item:nth-child(5n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-3-columns .envira-gallery-item:nth-child(6n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-4-columns .envira-gallery-item:nth-child(3n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-4-columns .envira-gallery-item:nth-child(4n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-4-columns .envira-gallery-item:nth-child(5n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-4-columns .envira-gallery-item:nth-child(6n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-5-columns .envira-gallery-item:nth-child(3n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-5-columns .envira-gallery-item:nth-child(4n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-5-columns .envira-gallery-item:nth-child(5n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-5-columns .envira-gallery-item:nth-child(6n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-6-columns .envira-gallery-item:nth-child(3n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-6-columns .envira-gallery-item:nth-child(4n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-6-columns .envira-gallery-item:nth-child(5n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-6-columns .envira-gallery-item:nth-child(6n+1){clear:none !important}.envira-gallery-wrap .envira-gallery-public.envira-gallery-2-columns .envira-gallery-item:nth-child(2n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-3-columns .envira-gallery-item:nth-child(2n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-4-columns .envira-gallery-item:nth-child(2n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-5-columns .envira-gallery-item:nth-child(2n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-6-columns .envira-gallery-item:nth-child(2n+1){clear:both !important}.envira-gallery-wrap .envira-gallery-public.enviratope .envira-gallery-item{clear:none !important}}@media only screen and (max-width: 320px){.envira-gallery-wrap .envira-gallery-public.envira-gallery-1-columns .envira-gallery-item,.envira-gallery-wrap .envira-gallery-public.envira-gallery-2-columns .envira-gallery-item,.envira-gallery-wrap .envira-gallery-public.envira-gallery-3-columns .envira-gallery-item,.envira-gallery-wrap .envira-gallery-public.envira-gallery-4-columns .envira-gallery-item,.envira-gallery-wrap .envira-gallery-public.envira-gallery-5-columns .envira-gallery-item,.envira-gallery-wrap .envira-gallery-public.envira-gallery-6-columns .envira-gallery-item{width:100% !important}.envira-gallery-wrap .envira-gallery-public.envira-gallery-1-columns .envira-gallery-item:nth-child(2n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-1-columns .envira-gallery-item:nth-child(3n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-1-columns .envira-gallery-item:nth-child(4n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-1-columns .envira-gallery-item:nth-child(5n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-1-columns .envira-gallery-item:nth-child(6n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-2-columns .envira-gallery-item:nth-child(2n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-2-columns .envira-gallery-item:nth-child(3n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-2-columns .envira-gallery-item:nth-child(4n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-2-columns .envira-gallery-item:nth-child(5n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-2-columns .envira-gallery-item:nth-child(6n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-3-columns .envira-gallery-item:nth-child(2n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-3-columns .envira-gallery-item:nth-child(3n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-3-columns .envira-gallery-item:nth-child(4n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-3-columns .envira-gallery-item:nth-child(5n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-3-columns .envira-gallery-item:nth-child(6n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-4-columns .envira-gallery-item:nth-child(2n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-4-columns .envira-gallery-item:nth-child(3n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-4-columns .envira-gallery-item:nth-child(4n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-4-columns .envira-gallery-item:nth-child(5n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-4-columns .envira-gallery-item:nth-child(6n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-5-columns .envira-gallery-item:nth-child(2n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-5-columns .envira-gallery-item:nth-child(3n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-5-columns .envira-gallery-item:nth-child(4n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-5-columns .envira-gallery-item:nth-child(5n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-5-columns .envira-gallery-item:nth-child(6n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-6-columns .envira-gallery-item:nth-child(2n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-6-columns .envira-gallery-item:nth-child(3n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-6-columns .envira-gallery-item:nth-child(4n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-6-columns .envira-gallery-item:nth-child(5n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-6-columns .envira-gallery-item:nth-child(6n+1){clear:both}.envira-gallery-wrap .envira-gallery-public.enviratope .envira-gallery-item{clear:none !important}}.envirabox-wrap,.envirabox-skin,.envirabox-outer,.envirabox-inner,.envirabox-image,.envirabox-wrap iframe,.envirabox-wrap object,.envirabox-nav,.envirabox-nav span,.envirabox-tmp,.envirabox-buttons,.envirabox-thumbs,.envirabox-wrap *,.envirabox-thumbs *,.envirabox-buttons *{background:none;border:0 none;border-radius:0;-webkit-border-radius:0;-moz-border-radius:0;float:none;font-size:100%;height:auto;letter-spacing:normal;list-style:none;outline:none;position:static;text-decoration:none;text-indent:0;text-shadow:none;text-transform:none;width:auto;visibility:visible;overflow:visible;margin:0;padding:0;line-height:1;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-shadow:none;-moz-box-shadow:none;-ms-box-shadow:none;-o-box-shadow:none;box-shadow:none;-webkit-appearance:none;transition:none;-webkit-transition:none;-moz-transition:none;-o-transition:none;-ms-transition:none}.envirabox-wrap{position:absolute;top:0;left:0;z-index:988020}.envirabox-skin{position:relative;background:#f9f9f9;color:#444;text-shadow:none;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.envirabox-opened{z-index:988030}.envirabox-opened .envirabox-skin{-webkit-box-shadow:0 10px 25px rgba(0,0,0,0.5);-moz-box-shadow:0 10px 25px rgba(0,0,0,0.5);box-shadow:0 10px 25px rgba(0,0,0,0.5)}.envirabox-outer,.envirabox-inner{position:relative}.envirabox-inner{overflow:hidden}.envirabox-inner .envirabox-position-overlay{box-sizing:border-box;position:absolute;overflow:visible;z-index:988041;padding:0}.envirabox-inner .envirabox-position-overlay.envira-gallery-top-left{top:0;left:0}.envirabox-inner .envirabox-position-overlay.envira-gallery-top-right{top:0;right:0;text-align:right}.envirabox-inner .envirabox-position-overlay.envira-gallery-bottom-left{bottom:0;left:0}.envirabox-inner .envirabox-position-overlay.envira-gallery-bottom-right{bottom:0;right:0;text-align:right}.envirabox-type-iframe .envirabox-inner{-webkit-overflow-scrolling:touch}.envirabox-error{color:#444;font:13px/20px "Helvetica Neue",Helvetica,Arial,sans-serif;margin:0;padding:15px;white-space:nowrap}.envirabox-image,.envirabox-iframe{display:block;width:100%;height:100%}.envirabox-image{max-width:100%;max-height:100%}#envirabox-loading,.envirabox-close,.envirabox-prev span,.envirabox-next span{background-image:url("images/envirabox_sprite.png")}#envirabox-loading{position:fixed;top:50%;left:50%;margin-top:-22px;margin-left:-22px;background-position:0 -108px;opacity:0.8;cursor:pointer;z-index:988060}#envirabox-loading div{width:44px;height:44px;background:url("images/envirabox_loading.gif") center center no-repeat}.envirabox-close{position:absolute;top:-18px;right:-18px;width:36px;height:36px;cursor:pointer;z-index:988040}.envirabox-nav{position:absolute;top:0;width:40%;height:100%;cursor:pointer;text-decoration:none;background:transparent url("images/blank.gif");-webkit-tap-highlight-color:transparent;z-index:988040}.envirabox-prev{left:0}.envirabox-next{right:0}.envirabox-prev.envirabox-arrows-outside{left:-100px}.envirabox-next.envirabox-arrows-outside{right:-100px}.envirabox-nav span{position:absolute;top:50%;width:36px;height:34px;margin-top:-18px;cursor:pointer;z-index:988040;visibility:hidden}body.envira-touch .envirabox-nav span{visibility:visible}.envirabox-prev span{left:10px;background-position:0 -36px}.envirabox-next span{right:10px;background-position:0 -72px}.envirabox-nav:hover span{visibility:visible}.envirabox-tmp{position:absolute;top:-99999px;left:-99999px;max-width:99999px;max-height:99999px;overflow:visible !important}a.envirabox-close,a.envirabox-nav,a.fancy-close:hover,a.envirabox-nav:hover{border:0}.envirabox-lock{overflow:visible !important;width:auto}.envirabox-lock body{overflow:hidden !important}.envirabox-lock-test{overflow-y:hidden !important}.envirabox-overlay{position:absolute;top:0;left:0;overflow:hidden;display:none;z-index:988010;background:url("images/envirabox_overlay.png")}.envirabox-overlay-fixed{position:fixed;bottom:0;right:0}.envirabox-lock .envirabox-overlay{overflow:auto;overflow-y:scroll}.envirabox-title{visibility:hidden;font-size:13px;line-height:20px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;position:relative;text-shadow:none;z-index:988090}.envirabox-opened .envirabox-title{visibility:visible}.envirabox-title-float-wrap{position:absolute;bottom:auto;right:50%;margin-top:20px;z-index:988050;text-align:center}.envirabox-title-float-wrap .child{display:inline-block;margin-right:-100%;padding:2px 20px;background:transparent;background:rgba(0,0,0,0.8);-webkit-border-radius:15px;-moz-border-radius:15px;border-radius:15px;text-shadow:0 1px 2px #222;color:#FFF;line-height:24px;white-space:normal}.envirabox-title-float-wrap.envirabox-title-text-wrap .child{white-space:normal}.envirabox-title-outside-wrap{position:relative;margin-top:10px;color:#fff}.envirabox-title-inside-wrap{padding-top:10px}.envirabox-title-over-wrap{position:absolute;bottom:0;left:0;color:#fff;padding:10px;background:#000;background:rgba(0,0,0,0.8)}#envirabox-buttons{position:fixed;left:0;width:100%;z-index:988050}#envirabox-buttons.top{top:10px}#envirabox-buttons.bottom{bottom:10px}#envirabox-buttons.bottom.has-padding{bottom:80px}#envirabox-buttons.top.has-padding{top:80px}#envirabox-buttons ul{display:block;width:auto;height:30px;margin:0 auto;padding:0;list-style:none;border:1px solid #111;border-radius:3px;-webkit-box-shadow:inset 0 0 0 1px rgba(255,255,255,0.05);-moz-box-shadow:inset 0 0 0 1px rgba(255,255,255,0.05);box-shadow:inset 0 0 0 1px rgba(255,255,255,0.05);background:#323232;background:-moz-linear-gradient(top, #444 0%, #343434 50%, #292929 50%, #333 100%);background:-webkit-gradient(linear, left top, left bottom, color-stop(0%, #444), color-stop(50%, #343434), color-stop(50%, #292929), color-stop(100%, #333));background:-webkit-linear-gradient(top, #444 0%, #343434 50%, #292929 50%, #333 100%);background:-o-linear-gradient(top, #444 0%, #343434 50%, #292929 50%, #333 100%);background:-ms-linear-gradient(top, #444 0%, #343434 50%, #292929 50%, #333 100%);background:linear-gradient(top, #444 0%, #343434 50%, #292929 50%, #333 100%);filter:progid:DXImageTransform.Microsoft.gradient( startColorstr='#444444', endColorstr='#222222',GradientType=0 )}#envirabox-buttons ul li{float:left;margin:0;padding:0}#envirabox-buttons ul li#envirabox-buttons-title span{display:block;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px;line-height:30px;padding:0 10px;color:#fff}#envirabox-buttons a{display:block;width:30px;height:30px;text-indent:-9999px;background-color:transparent;background-image:url("images/envirabox_buttons.png");background-repeat:no-repeat;outline:none;opacity:0.8}#envirabox-buttons a:hover{opacity:1}#envirabox-buttons a.btnPrev{background-position:5px 0}#envirabox-buttons a.btnNext{background-position:-33px 0;border-right:1px solid #3e3e3e}#envirabox-buttons a.btnPlay{background-position:0 -30px}#envirabox-buttons a.btnPlayOn{background-position:-30px -30px}#envirabox-buttons a.btnToggle,#envirabox-buttons a.btnFullscreen{background-position:3px -60px;border-left:1px solid #111;border-right:1px solid #3e3e3e;width:35px}#envirabox-buttons a.btnToggleOn,#envirabox-buttons a.btnFullscreenOn{background-position:-27px -60px}#envirabox-buttons a.btnClose{border-left:1px solid #111;width:35px;background-position:-56px 0px}#envirabox-buttons a.btnDisabled{opacity:0.4;cursor:default}#envirabox-thumbs{position:fixed;left:0;width:100%;overflow:hidden;z-index:988050;box-sizing:border-box}#envirabox-thumbs.top{top:2px}#envirabox-thumbs.top.has-other-content{top:50px}#envirabox-thumbs.bottom{bottom:2px}#envirabox-thumbs.bottom.has-other-content{bottom:50px}#envirabox-thumbs.inline{position:absolute}#envirabox-thumbs *{box-sizing:border-box}#envirabox-thumbs ul{position:relative;list-style:none;margin:0;padding:0}#envirabox-thumbs ul li{border:3px solid #fff;float:left;margin:5px;opacity:1}#envirabox-thumbs ul li.active{opacity:0.75;border:3px solid #888}#envirabox-thumbs ul li:hover{opacity:0.75}#envirabox-thumbs ul li a{display:block;position:relative;overflow:hidden;border:1px solid #222;background:#111;outline:none}#envirabox-thumbs ul li img{display:block;position:relative;border:0;padding:0;max-width:none}@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2 / 1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx){#envirabox-loading,.envirabox-close,.envirabox-prev span,.envirabox-next span{background-image:url("images/envirabox_sprite@2x.png");background-size:44px 152px}#envirabox-loading div{background-image:url("images/envirabox_loading@2x.gif");background-size:24px 24px}}
1
+ .envira-gallery-wrap,.envira-gallery-wrap *,.envira-tags-filter-list,.envira-tags-filter-list *{background:none;border:0 none;border-radius:0;-webkit-border-radius:0;-moz-border-radius:0;float:none;font-size:100%;height:auto;letter-spacing:normal;list-style:none;outline:none;position:static;text-decoration:none;text-indent:0;text-shadow:none;text-transform:none;width:auto;visibility:visible;overflow:visible;margin:0;padding:0;line-height:1;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-shadow:none;-moz-box-shadow:none;-ms-box-shadow:none;-o-box-shadow:none;box-shadow:none;-webkit-appearance:none;transition:none;-webkit-transition:none;-moz-transition:none;-o-transition:none;-ms-transition:none}.envira-tags-filter-list{clear:both;margin:0 0 10px 0}.envira-tags-filter-list li.envira-tags-filter,.envira-tags-filter-list li.envira-tag-filter{float:left;margin:0 20px 10px 0}.envira-tags-filter-list .envira-tag-filter-link{font-size:13px;font-weight:bold}.envira-breadcrumbs{display:block;margin:0 0 20px 0;padding:10px;background:#eee}.envira-breadcrumbs a{text-decoration:none}.envira-gallery-wrap{width:100%;margin:0 auto 20px auto}.envira-gallery-wrap .envira-pagination{margin:0 0 20px 0}.envira-gallery-wrap .envira-gallery-description{clear:both}.envira-gallery-wrap .envira-gallery-public{width:100%;margin:0 auto 20px auto;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.envira-gallery-wrap .envira-gallery-public.envira-clear{clear:both}.envira-gallery-wrap .envira-gallery-public.envira-clear:after{clear:both;content:".";display:block;height:0;line-height:0;overflow:auto;visibility:hidden;zoom:1}.envira-gallery-wrap .envira-gallery-public .envira-gallery-item-inner{position:relative}.envira-gallery-wrap .envira-gallery-public .envira-gallery-item-inner .envira-gallery-position-overlay{box-sizing:border-box;position:absolute;overflow:visible;z-index:999}.envira-gallery-wrap .envira-gallery-public .envira-gallery-item-inner .envira-gallery-position-overlay.envira-gallery-top-left{top:0;left:0;padding:5px 0 0 5px}.envira-gallery-wrap .envira-gallery-public .envira-gallery-item-inner .envira-gallery-position-overlay.envira-gallery-top-right{top:0;right:0;padding:5px 5px 0 0;text-align:right}.envira-gallery-wrap .envira-gallery-public .envira-gallery-item-inner .envira-gallery-position-overlay.envira-gallery-bottom-left{bottom:0;left:0;padding:0 0 5px 5px}.envira-gallery-wrap .envira-gallery-public .envira-gallery-item-inner .envira-gallery-position-overlay.envira-gallery-bottom-right{bottom:0;right:0;padding:0 5px 5px 0;text-align:right}.envira-gallery-wrap .envira-gallery-public .envira-gallery-item{float:left}.envira-gallery-wrap .envira-gallery-public .envira-gallery-item>.envira-gallery-link{display:block;outline:none;border:0 none;position:relative}.envira-gallery-wrap .envira-gallery-public .envira-gallery-item img{float:none;display:block;margin:0 auto;padding:0;max-width:100%}.envira-gallery-wrap .envira-gallery-public .envira-gallery-item iframe,.envira-gallery-wrap .envira-gallery-public .envira-gallery-item video{display:block;margin:0 auto;width:100%}.envira-gallery-wrap .envira-gallery-public.envira-gallery-1-columns .envira-gallery-item{clear:both;width:100%}.envira-gallery-wrap .envira-gallery-public.envira-gallery-2-columns .envira-gallery-item{width:50%}.envira-gallery-wrap .envira-gallery-public.envira-gallery-2-columns .envira-gallery-item:nth-child(2n+1){clear:both}.envira-gallery-wrap .envira-gallery-public.envira-gallery-3-columns .envira-gallery-item{width:33.33%}.envira-gallery-wrap .envira-gallery-public.envira-gallery-3-columns .envira-gallery-item:nth-child(3n+1){clear:both}.envira-gallery-wrap .envira-gallery-public.envira-gallery-4-columns .envira-gallery-item{width:25%;margin:0;padding:0;box-sizing:border-box}.envira-gallery-wrap .envira-gallery-public.envira-gallery-4-columns .envira-gallery-item:nth-child(4n+1){clear:both}.envira-gallery-wrap .envira-gallery-public.envira-gallery-5-columns .envira-gallery-item{width:20%}.envira-gallery-wrap .envira-gallery-public.envira-gallery-5-columns .envira-gallery-item:nth-child(5n+1){clear:both}.envira-gallery-wrap .envira-gallery-public.envira-gallery-6-columns .envira-gallery-item{width:16.66%}.envira-gallery-wrap .envira-gallery-public.envira-gallery-6-columns .envira-gallery-item:nth-child(6n+1){clear:both}.envira-gallery-wrap .envira-gallery-public.enviratope .envira-gallery-item{clear:none !important}.envira-gallery-wrap .envira-gallery-public.envira-gallery-css-animations .envira-gallery-item img{opacity:0;transition:all .2s ease-in-out}.envira-gallery-wrap .envira-gallery-public.envira-gallery-css-animations .envira-gallery-item a:hover img{opacity:1 !important}.envira-gallery-public.justified-gallery .envira-gallery-item-inner{position:absolute}.envira-gallery-wrap.envira-gallery-rtl .envira-gallery-public .envira-gallery-item{float:right}@media only screen and (max-width: 768px){.envira-gallery-wrap .envira-gallery-public.envira-gallery-4-columns .envira-gallery-item{width:33%}.envira-gallery-wrap .envira-gallery-public.envira-gallery-4-columns .envira-gallery-item:nth-child(4n+1){clear:none}.envira-gallery-wrap .envira-gallery-public.envira-gallery-4-columns .envira-gallery-item:nth-child(3n+1){clear:both}.envira-gallery-wrap .envira-gallery-public.envira-gallery-5-columns .envira-gallery-item{width:33%}.envira-gallery-wrap .envira-gallery-public.envira-gallery-5-columns .envira-gallery-item:nth-child(5n+1){clear:none}.envira-gallery-wrap .envira-gallery-public.envira-gallery-5-columns .envira-gallery-item:nth-child(3n+1){clear:both}.envira-gallery-wrap .envira-gallery-public.envira-gallery-6-columns .envira-gallery-item{width:33%}.envira-gallery-wrap .envira-gallery-public.envira-gallery-6-columns .envira-gallery-item:nth-child(6n+1){clear:none}.envira-gallery-wrap .envira-gallery-public.envira-gallery-6-columns .envira-gallery-item:nth-child(3n+1){clear:both}.envira-gallery-wrap .envira-gallery-public.enviratope .envira-gallery-item{clear:none !important}}@media only screen and (max-width: 459px){.envira-gallery-wrap .envira-gallery-public.envira-gallery-2-columns .envira-gallery-item,.envira-gallery-wrap .envira-gallery-public.envira-gallery-3-columns .envira-gallery-item,.envira-gallery-wrap .envira-gallery-public.envira-gallery-4-columns .envira-gallery-item,.envira-gallery-wrap .envira-gallery-public.envira-gallery-5-columns .envira-gallery-item,.envira-gallery-wrap .envira-gallery-public.envira-gallery-6-columns .envira-gallery-item{width:50% !important}.envira-gallery-wrap .envira-gallery-public.envira-gallery-2-columns .envira-gallery-item:nth-child(3n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-2-columns .envira-gallery-item:nth-child(4n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-2-columns .envira-gallery-item:nth-child(5n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-2-columns .envira-gallery-item:nth-child(6n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-3-columns .envira-gallery-item:nth-child(3n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-3-columns .envira-gallery-item:nth-child(4n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-3-columns .envira-gallery-item:nth-child(5n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-3-columns .envira-gallery-item:nth-child(6n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-4-columns .envira-gallery-item:nth-child(3n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-4-columns .envira-gallery-item:nth-child(4n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-4-columns .envira-gallery-item:nth-child(5n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-4-columns .envira-gallery-item:nth-child(6n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-5-columns .envira-gallery-item:nth-child(3n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-5-columns .envira-gallery-item:nth-child(4n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-5-columns .envira-gallery-item:nth-child(5n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-5-columns .envira-gallery-item:nth-child(6n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-6-columns .envira-gallery-item:nth-child(3n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-6-columns .envira-gallery-item:nth-child(4n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-6-columns .envira-gallery-item:nth-child(5n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-6-columns .envira-gallery-item:nth-child(6n+1){clear:none !important}.envira-gallery-wrap .envira-gallery-public.envira-gallery-2-columns .envira-gallery-item:nth-child(2n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-3-columns .envira-gallery-item:nth-child(2n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-4-columns .envira-gallery-item:nth-child(2n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-5-columns .envira-gallery-item:nth-child(2n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-6-columns .envira-gallery-item:nth-child(2n+1){clear:both !important}.envira-gallery-wrap .envira-gallery-public.enviratope .envira-gallery-item{clear:none !important}}@media only screen and (max-width: 320px){.envira-gallery-wrap .envira-gallery-public.envira-gallery-1-columns .envira-gallery-item,.envira-gallery-wrap .envira-gallery-public.envira-gallery-2-columns .envira-gallery-item,.envira-gallery-wrap .envira-gallery-public.envira-gallery-3-columns .envira-gallery-item,.envira-gallery-wrap .envira-gallery-public.envira-gallery-4-columns .envira-gallery-item,.envira-gallery-wrap .envira-gallery-public.envira-gallery-5-columns .envira-gallery-item,.envira-gallery-wrap .envira-gallery-public.envira-gallery-6-columns .envira-gallery-item{width:100% !important}.envira-gallery-wrap .envira-gallery-public.envira-gallery-1-columns .envira-gallery-item:nth-child(2n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-1-columns .envira-gallery-item:nth-child(3n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-1-columns .envira-gallery-item:nth-child(4n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-1-columns .envira-gallery-item:nth-child(5n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-1-columns .envira-gallery-item:nth-child(6n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-2-columns .envira-gallery-item:nth-child(2n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-2-columns .envira-gallery-item:nth-child(3n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-2-columns .envira-gallery-item:nth-child(4n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-2-columns .envira-gallery-item:nth-child(5n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-2-columns .envira-gallery-item:nth-child(6n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-3-columns .envira-gallery-item:nth-child(2n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-3-columns .envira-gallery-item:nth-child(3n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-3-columns .envira-gallery-item:nth-child(4n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-3-columns .envira-gallery-item:nth-child(5n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-3-columns .envira-gallery-item:nth-child(6n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-4-columns .envira-gallery-item:nth-child(2n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-4-columns .envira-gallery-item:nth-child(3n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-4-columns .envira-gallery-item:nth-child(4n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-4-columns .envira-gallery-item:nth-child(5n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-4-columns .envira-gallery-item:nth-child(6n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-5-columns .envira-gallery-item:nth-child(2n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-5-columns .envira-gallery-item:nth-child(3n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-5-columns .envira-gallery-item:nth-child(4n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-5-columns .envira-gallery-item:nth-child(5n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-5-columns .envira-gallery-item:nth-child(6n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-6-columns .envira-gallery-item:nth-child(2n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-6-columns .envira-gallery-item:nth-child(3n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-6-columns .envira-gallery-item:nth-child(4n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-6-columns .envira-gallery-item:nth-child(5n+1),.envira-gallery-wrap .envira-gallery-public.envira-gallery-6-columns .envira-gallery-item:nth-child(6n+1){clear:both}.envira-gallery-wrap .envira-gallery-public.enviratope .envira-gallery-item{clear:none !important}}.envirabox-wrap,.envirabox-skin,.envirabox-outer,.envirabox-inner,.envirabox-image,.envirabox-wrap iframe,.envirabox-wrap object,.envirabox-nav,.envirabox-nav span,.envirabox-tmp,.envirabox-buttons,.envirabox-thumbs,.envirabox-wrap *,.envirabox-thumbs *,.envirabox-buttons *{background:none;border:0 none;border-radius:0;-webkit-border-radius:0;-moz-border-radius:0;float:none;font-size:100%;height:auto;letter-spacing:normal;list-style:none;outline:none;position:static;text-decoration:none;text-indent:0;text-shadow:none;text-transform:none;width:auto;visibility:visible;overflow:visible;margin:0;padding:0;line-height:1;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-shadow:none;-moz-box-shadow:none;-ms-box-shadow:none;-o-box-shadow:none;box-shadow:none;-webkit-appearance:none;transition:none;-webkit-transition:none;-moz-transition:none;-o-transition:none;-ms-transition:none}.envirabox-wrap{position:absolute;top:0;left:0;z-index:988020}.envirabox-skin{position:relative;background:#f9f9f9;color:#444;text-shadow:none;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.envirabox-opened{z-index:988030}.envirabox-opened .envirabox-skin{-webkit-box-shadow:0 10px 25px rgba(0,0,0,.5);-moz-box-shadow:0 10px 25px rgba(0,0,0,.5);box-shadow:0 10px 25px rgba(0,0,0,.5)}.envirabox-outer,.envirabox-inner{position:relative}.envirabox-inner{overflow:hidden}.envirabox-inner .envirabox-position-overlay{box-sizing:border-box;position:absolute;overflow:visible;z-index:988041;padding:0}.envirabox-inner .envirabox-position-overlay.envira-gallery-top-left{top:0;left:0}.envirabox-inner .envirabox-position-overlay.envira-gallery-top-right{top:0;right:0;text-align:right}.envirabox-inner .envirabox-position-overlay.envira-gallery-bottom-left{bottom:0;left:0}.envirabox-inner .envirabox-position-overlay.envira-gallery-bottom-right{bottom:0;right:0;text-align:right}.envirabox-type-iframe .envirabox-inner{-webkit-overflow-scrolling:touch}.envirabox-error{color:#444;font:13px/20px "Helvetica Neue",Helvetica,Arial,sans-serif;margin:0;padding:15px;white-space:nowrap}.envirabox-image,.envirabox-iframe{display:block;width:100%;height:100%}.envirabox-image{max-width:100%;max-height:100%}#envirabox-loading,.envirabox-close,.envirabox-prev span,.envirabox-next span{background-image:url("images/envirabox_sprite.png")}#envirabox-loading{position:fixed;top:50%;left:50%;margin-top:-22px;margin-left:-22px;background-position:0 -108px;opacity:.8;cursor:pointer;z-index:988060}#envirabox-loading div{width:44px;height:44px;background:url("images/envirabox_loading.gif") center center no-repeat}.envirabox-close{position:absolute;top:-18px;right:-18px;width:36px;height:36px;cursor:pointer;z-index:988040}.envirabox-nav{position:absolute;top:0;width:40%;height:100%;cursor:pointer;text-decoration:none;background:rgba(0,0,0,0) url("images/blank.gif");-webkit-tap-highlight-color:rgba(0,0,0,0);z-index:988040}.envirabox-prev{left:0}.envirabox-next{right:0}.envirabox-prev.envirabox-arrows-outside{left:-100px}.envirabox-next.envirabox-arrows-outside{right:-100px}.envirabox-nav span{position:absolute;top:50%;width:36px;height:34px;margin-top:-18px;cursor:pointer;z-index:988040;visibility:hidden}body.envira-touch .envirabox-nav span{visibility:visible}.envirabox-prev span{left:10px;background-position:0 -36px}.envirabox-next span{right:10px;background-position:0 -72px}.envirabox-nav:hover span{visibility:visible}.envirabox-tmp{position:absolute;top:-99999px;left:-99999px;max-width:99999px;max-height:99999px;overflow:visible !important}a.envirabox-close,a.envirabox-nav,a.fancy-close:hover,a.envirabox-nav:hover{border:0}.envirabox-lock{overflow:visible !important;width:auto}.envirabox-lock body{overflow:hidden !important}.envirabox-lock-test{overflow-y:hidden !important}.envirabox-overlay{position:absolute;top:0;left:0;overflow:hidden;display:none;z-index:988010;background:url("images/envirabox_overlay.png")}.envirabox-overlay-fixed{position:fixed;bottom:0;right:0}.envirabox-lock .envirabox-overlay{overflow:auto;overflow-y:scroll}.envirabox-title{visibility:hidden;font-size:13px;line-height:20px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;position:relative;text-shadow:none;z-index:988090}.envirabox-opened .envirabox-title{visibility:visible}.envirabox-title-float-wrap{position:absolute;bottom:auto;right:50%;margin-top:20px;z-index:988050;text-align:center}.envirabox-title-float-wrap .child{display:inline-block;margin-right:-100%;padding:2px 20px;background:rgba(0,0,0,0);background:rgba(0,0,0,.8);-webkit-border-radius:15px;-moz-border-radius:15px;border-radius:15px;text-shadow:0 1px 2px #222;color:#fff;line-height:24px;white-space:normal}.envirabox-title-float-wrap.envirabox-title-text-wrap .child{white-space:normal}.envirabox-title-outside-wrap{position:relative;margin-top:10px;color:#fff}.envirabox-title-inside-wrap{padding-top:10px}.envirabox-title-over-wrap{position:absolute;bottom:0;left:0;color:#fff;padding:10px;background:#000;background:rgba(0,0,0,.8)}#envirabox-buttons{position:fixed;left:0;width:100%;z-index:988050}#envirabox-buttons.top{top:10px}#envirabox-buttons.bottom{bottom:10px}#envirabox-buttons.bottom.has-padding{bottom:80px}#envirabox-buttons.top.has-padding{top:80px}#envirabox-buttons ul{display:block;width:auto;height:30px;margin:0 auto;padding:0;list-style:none;border:1px solid #111;border-radius:3px;-webkit-box-shadow:inset 0 0 0 1px rgba(255,255,255,.05);-moz-box-shadow:inset 0 0 0 1px rgba(255,255,255,.05);box-shadow:inset 0 0 0 1px rgba(255,255,255,.05);background:#323232;background:-moz-linear-gradient(top, rgb(68, 68, 68) 0%, rgb(52, 52, 52) 50%, rgb(41, 41, 41) 50%, rgb(51, 51, 51) 100%);background:-webkit-gradient(linear, left top, left bottom, color-stop(0%, rgb(68, 68, 68)), color-stop(50%, rgb(52, 52, 52)), color-stop(50%, rgb(41, 41, 41)), color-stop(100%, rgb(51, 51, 51)));background:-webkit-linear-gradient(top, rgb(68, 68, 68) 0%, rgb(52, 52, 52) 50%, rgb(41, 41, 41) 50%, rgb(51, 51, 51) 100%);background:-o-linear-gradient(top, rgb(68, 68, 68) 0%, rgb(52, 52, 52) 50%, rgb(41, 41, 41) 50%, rgb(51, 51, 51) 100%);background:-ms-linear-gradient(top, rgb(68, 68, 68) 0%, rgb(52, 52, 52) 50%, rgb(41, 41, 41) 50%, rgb(51, 51, 51) 100%);background:linear-gradient(top, rgb(68, 68, 68) 0%, rgb(52, 52, 52) 50%, rgb(41, 41, 41) 50%, rgb(51, 51, 51) 100%);filter:progid:DXImageTransform.Microsoft.gradient( startColorstr="#444444", endColorstr="#222222",GradientType=0 )}#envirabox-buttons ul li{float:left;margin:0;padding:0}#envirabox-buttons ul li#envirabox-buttons-title span{display:block;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px;line-height:30px;padding:0 10px;color:#fff}#envirabox-buttons a{display:block;width:30px;height:30px;text-indent:-9999px;background-color:rgba(0,0,0,0);background-image:url("images/envirabox_buttons.png");background-repeat:no-repeat;outline:none;opacity:.8}#envirabox-buttons a:hover{opacity:1}#envirabox-buttons a.btnPrev{background-position:5px 0}#envirabox-buttons a.btnNext{background-position:-33px 0;border-right:1px solid #3e3e3e}#envirabox-buttons a.btnPlay{background-position:0 -30px}#envirabox-buttons a.btnPlayOn{background-position:-30px -30px}#envirabox-buttons a.btnToggle,#envirabox-buttons a.btnFullscreen{background-position:3px -60px;border-left:1px solid #111;border-right:1px solid #3e3e3e;width:35px}#envirabox-buttons a.btnToggleOn,#envirabox-buttons a.btnFullscreenOn{background-position:-27px -60px}#envirabox-buttons a.btnClose{border-left:1px solid #111;width:35px;background-position:-56px 0px}#envirabox-buttons a.btnDisabled{opacity:.4;cursor:default}#envirabox-thumbs{position:fixed;left:0;width:100%;overflow:hidden;z-index:988050;box-sizing:border-box}#envirabox-thumbs.top{top:2px}#envirabox-thumbs.top.has-other-content{top:50px}#envirabox-thumbs.bottom{bottom:2px}#envirabox-thumbs.bottom.has-other-content{bottom:50px}#envirabox-thumbs.inline{position:absolute}#envirabox-thumbs *{box-sizing:border-box}#envirabox-thumbs ul{position:relative;list-style:none;margin:0;padding:0}#envirabox-thumbs ul li{border:3px solid #fff;float:left;margin:5px;opacity:1}#envirabox-thumbs ul li.active{opacity:.75;border:3px solid #888}#envirabox-thumbs ul li:hover{opacity:.75}#envirabox-thumbs ul li a{display:block;position:relative;overflow:hidden;border:1px solid #222;background:#111;outline:none}#envirabox-thumbs ul li img{display:block;position:relative;border:0;padding:0;max-width:none}@media only screen and (-webkit-min-device-pixel-ratio: 2),only screen and (min--moz-device-pixel-ratio: 2),only screen and (-o-min-device-pixel-ratio: 2/1),only screen and (min-device-pixel-ratio: 2),only screen and (min-resolution: 192dpi),only screen and (min-resolution: 2dppx){#envirabox-loading,.envirabox-close,.envirabox-prev span,.envirabox-next span{background-image:url("images/envirabox_sprite@2x.png");background-size:44px 152px}#envirabox-loading div{background-image:url("images/envirabox_loading@2x.gif");background-size:24px 24px}}
assets/css/metabox.css CHANGED
@@ -1,1339 +1 @@
1
- /* ==========================================================================
2
- metabox.css loads on any Envira Gallery and Album Create/Edit Screen
3
-
4
- Any styles that will be used by the main Gallery / Album editor screen should be
5
- added to this file
6
- ========================================================================== */
7
- /* ==========================================================================
8
- Imports
9
- ========================================================================== */
10
- /* ==========================================================================
11
- Variables SCSS
12
- ========================================================================== */
13
- /* ==========================================================================
14
- Mixins
15
- ========================================================================== */
16
- /**
17
- * Media Query
18
- */
19
- /**
20
- * Border-Radius
21
- */
22
- /* ==========================================================================
23
- Messages
24
- ========================================================================== */
25
- body.post-type-envira {
26
- /**
27
- * Add left and right margins to ensure the message notification horizontally lines up
28
- * with the metaboxes
29
- */ }
30
- body.post-type-envira #message {
31
- margin: 5px 20px 15px 20px; }
32
- body.post-type-envira #wp-link-wrap {
33
- z-index: 180105 !important; }
34
- body.post-type-envira #wp-link-backdrop {
35
- z-index: 160105 !important; }
36
-
37
- /* ==========================================================================
38
- Form
39
- - The envira-gallery class is assigned to the Gallery and Album Add/Edit screens form.
40
- ========================================================================== */
41
- form#post.envira-gallery {
42
- /**
43
- * Re-establish the left and right margins, so there's spacing between the Admin Menu
44
- * and the content
45
- */
46
- margin: 0 20px;
47
- /**
48
- * Defined so we override WordPress' default styles
49
- */ }
50
- form#post.envira-gallery #poststuff {
51
- /* ==========================================================================
52
- Envira Gallery Shared Styles for Types and Settings
53
- ========================================================================== */
54
- /**
55
- * Intro Text
56
- */
57
- /**
58
- * Help Video
59
- * - Can be placed inside p.envira-intro by JS, or outside p.envira-intro when
60
- * viewing the Images tab for a Dynamic or Default Gallery
61
- */
62
- /**
63
- * Image Grid
64
- * - Used on the Images tab for Default Galleries, as well as the Preview Metabox
65
- */
66
- /* ==========================================================================
67
- Envira Gallery Type
68
- ========================================================================== */
69
- /* ==========================================================================
70
- Envira Albums Drag & Drop Area
71
- ========================================================================== */
72
- /* ==========================================================================
73
- Envira Gallery Settings
74
- Envira Albums Settings
75
- ========================================================================== */
76
- /* ==========================================================================
77
- Envira Gallery Preview Metabox
78
- ========================================================================== */ }
79
- form#post.envira-gallery #poststuff p.envira-intro {
80
- margin: 0;
81
- padding: 0 0 30px 0;
82
- border-bottom: 1px solid #ddd;
83
- font-size: 16px;
84
- font-weight: 700; }
85
- form#post.envira-gallery #poststuff p.envira-intro small {
86
- margin: 5px 0 0 0;
87
- display: block;
88
- font-weight: 400; }
89
- form#post.envira-gallery #poststuff p.envira-intro small a {
90
- text-decoration: none;
91
- font-weight: 600; }
92
- form#post.envira-gallery #poststuff div.envira-video-help {
93
- position: relative;
94
- z-index: 1;
95
- width: 100%;
96
- margin: 20px 0 0 0; }
97
- form#post.envira-gallery #poststuff div.envira-video-help iframe {
98
- position: relative;
99
- z-index: 1;
100
- width: 100%;
101
- height: auto;
102
- min-height: 300px; }
103
- form#post.envira-gallery #poststuff div.envira-video-help a.envira-video-close {
104
- position: absolute;
105
- z-index: 2;
106
- top: -12px;
107
- right: -12px;
108
- width: 24px;
109
- height: 24px;
110
- line-height: 24px;
111
- -webkit-border-radius: 50%;
112
- -moz-border-radius: 50%;
113
- -o-border-radius: 50%;
114
- border-radius: 50%;
115
- background: #f5f5f5;
116
- color: #000;
117
- text-align: center;
118
- text-decoration: none; }
119
- form#post.envira-gallery #poststuff ul.envira-gallery-images-output {
120
- width: 100%;
121
- /**
122
- * List View
123
- */ }
124
- form#post.envira-gallery #poststuff ul.envira-gallery-images-output li {
125
- position: relative;
126
- display: inline-block;
127
- width: 150px;
128
- margin: 0 20px 20px 0;
129
- padding: 0;
130
- list-style: none;
131
- vertical-align: top;
132
- -moz-background-clip: padding;
133
- -webkit-background-clip: padding-box;
134
- background-clip: padding-box;
135
- background: #f7f7f7;
136
- /**
137
- * If, for some reason, the image doesn't exist or fails to load,
138
- * the placeholder logo is displayed
139
- */
140
- /**
141
- * Metadata
142
- */
143
- /**
144
- * Tick Icon
145
- */
146
- /**
147
- * Edit / Delete Buttons
148
- */
149
- /**
150
- * Selected state
151
- */
152
- /**
153
- * Multiple selection sorting - stacks images when the user has selected more than one image + dragged them
154
- */ }
155
- form#post.envira-gallery #poststuff ul.envira-gallery-images-output li img {
156
- display: block;
157
- width: 150px;
158
- height: 150px; }
159
- form#post.envira-gallery #poststuff ul.envira-gallery-images-output li div.placeholder-image {
160
- display: block;
161
- width: 148px;
162
- height: 149px;
163
- background: url(images/icons/leaf.svg) center no-repeat;
164
- background-size: 64px 64px;
165
- border-left: 1px solid #dfdfdf;
166
- border-top: 1px solid #dfdfdf;
167
- border-right: 1px solid #dfdfdf; }
168
- form#post.envira-gallery #poststuff ul.envira-gallery-images-output li div.meta {
169
- width: 148px;
170
- overflow: hidden;
171
- text-align: center;
172
- border-left: 1px solid #dfdfdf;
173
- border-bottom: 1px solid #dfdfdf;
174
- border-right: 1px solid #dfdfdf;
175
- /**
176
- * Title
177
- */
178
- /**
179
- * Additional metadata
180
- */ }
181
- form#post.envira-gallery #poststuff ul.envira-gallery-images-output li div.meta div.title {
182
- font-size: 12px;
183
- font-weight: 700;
184
- width: 138px;
185
- height: 18px;
186
- line-height: 18px;
187
- margin: 8px 5px;
188
- overflow: hidden;
189
- /**
190
- * Hint
191
- * - Displays the full title on hover
192
- */ }
193
- form#post.envira-gallery #poststuff ul.envira-gallery-images-output li div.meta div.title a.hint {
194
- position: absolute;
195
- display: inline-block;
196
- bottom: 10px;
197
- right: 10px;
198
- width: 16px;
199
- height: 16px;
200
- background: #f7f7f7; }
201
- form#post.envira-gallery #poststuff ul.envira-gallery-images-output li div.meta div.title a.hint.hidden {
202
- display: none; }
203
- form#post.envira-gallery #poststuff ul.envira-gallery-images-output li div.meta div.additional {
204
- display: none;
205
- margin: 5px 0 0 0;
206
- font-weight: 400; }
207
- form#post.envira-gallery #poststuff ul.envira-gallery-images-output li a.check {
208
- display: none;
209
- position: absolute;
210
- right: 5px;
211
- top: 5px;
212
- width: 24px;
213
- height: 24px;
214
- background-color: #eee;
215
- -webkit-box-shadow: 0 0 0 1px #fff, 0 0 0 2px rgba(0, 0, 0, 0.15);
216
- box-shadow: 0 0 0 1px #fff, 0 0 0 2px rgba(0, 0, 0, 0.15); }
217
- form#post.envira-gallery #poststuff ul.envira-gallery-images-output li a.check div.media-modal-icon {
218
- display: none;
219
- width: 15px;
220
- height: 15px;
221
- margin: 5px 0 0 5px;
222
- background-position: -21px 0; }
223
- form#post.envira-gallery #poststuff ul.envira-gallery-images-output li a.dashicons {
224
- position: absolute;
225
- display: block;
226
- top: 5px;
227
- left: 5px;
228
- width: 25px;
229
- height: 25px;
230
- line-height: 25px;
231
- font-size: 18px;
232
- /* Controls the icon size */
233
- outline: none;
234
- z-index: 20;
235
- border-radius: 2px;
236
- -moz-border-radius: 2px;
237
- -webkit-border-radius: 2px; }
238
- form#post.envira-gallery #poststuff ul.envira-gallery-images-output li a.dashicons.envira-gallery-modify-image {
239
- background: #0085ba;
240
- color: #ffffff; }
241
- form#post.envira-gallery #poststuff ul.envira-gallery-images-output li a.dashicons.envira-gallery-remove-image {
242
- left: 35px;
243
- background: #e02626;
244
- color: #ffffff; }
245
- form#post.envira-gallery #poststuff ul.envira-gallery-images-output li.selected {
246
- width: 148px;
247
- border: 2px solid #7cc048 !important; }
248
- form#post.envira-gallery #poststuff ul.envira-gallery-images-output li.selected a.check {
249
- display: block;
250
- background-color: #7cc048;
251
- -webkit-box-shadow: 0 0 0 1px #fff, 0 0 0 2px #7cc048;
252
- box-shadow: 0 0 0 1px #fff, 0 0 0 2px #7cc048; }
253
- form#post.envira-gallery #poststuff ul.envira-gallery-images-output li.selected a.check div.media-modal-icon {
254
- display: block; }
255
- form#post.envira-gallery #poststuff ul.envira-gallery-images-output li.selected div.meta {
256
- width: 146px; }
257
- form#post.envira-gallery #poststuff ul.envira-gallery-images-output li.ui-sortable-helper li {
258
- position: absolute;
259
- top: 0;
260
- left: 0; }
261
- form#post.envira-gallery #poststuff ul.envira-gallery-images-output.list li {
262
- position: relative;
263
- z-index: 2;
264
- display: block;
265
- width: 100%;
266
- margin: 0 0 10px 0;
267
- padding: 10px 15px;
268
- background: #fff;
269
- border: 1px solid #ddd;
270
- -webkit-box-sizing: border-box;
271
- -moz-box-sizing: border-box;
272
- box-sizing: border-box;
273
- border-radius: 2px;
274
- -moz-border-radius: 2px;
275
- -webkit-border-radius: 2px;
276
- /**
277
- * Metadata
278
- */
279
- /**
280
- * Checkbox
281
- * - Always display
282
- */ }
283
- form#post.envira-gallery #poststuff ul.envira-gallery-images-output.list li img {
284
- display: inline-block;
285
- width: 75px;
286
- margin-left: 45px; }
287
- form#post.envira-gallery #poststuff ul.envira-gallery-images-output.list li div.meta {
288
- position: absolute;
289
- z-index: 1;
290
- left: 0;
291
- display: inline-block;
292
- width: 100%;
293
- padding: 0 80px 0 150px;
294
- border: none;
295
- font-weight: 700;
296
- text-align: left;
297
- -webkit-box-sizing: border-box;
298
- -moz-box-sizing: border-box;
299
- box-sizing: border-box;
300
- /**
301
- * Title
302
- */
303
- /**
304
- * Additional metadata
305
- * - Displayed in list view
306
- */ }
307
- form#post.envira-gallery #poststuff ul.envira-gallery-images-output.list li div.meta div.title {
308
- display: block;
309
- width: 100%;
310
- height: auto;
311
- font-size: 16px;
312
- margin: 0;
313
- padding: 0; }
314
- form#post.envira-gallery #poststuff ul.envira-gallery-images-output.list li div.meta div.title a.hint {
315
- display: none; }
316
- form#post.envira-gallery #poststuff ul.envira-gallery-images-output.list li div.meta div.additional {
317
- display: block; }
318
- form#post.envira-gallery #poststuff ul.envira-gallery-images-output.list li a.check {
319
- display: block;
320
- position: absolute;
321
- left: 15px;
322
- top: 35px; }
323
- form#post.envira-gallery #poststuff ul.envira-gallery-images-output.list li a.envira-gallery-remove-image {
324
- left: auto;
325
- top: 10px;
326
- right: 10px; }
327
- form#post.envira-gallery #poststuff ul.envira-gallery-images-output.list li a.envira-gallery-modify-image {
328
- left: auto;
329
- top: 10px;
330
- right: 40px; }
331
- form#post.envira-gallery #poststuff #envira-gallery {
332
- margin: 60px 0 20px 0; }
333
- form#post.envira-gallery #poststuff #envira-gallery {
334
- /**
335
- * Hide the title bar of the metabox, so we have a seamless style
336
- */
337
- /**
338
- * Tabs
339
- * - Move up vertically so they sit above the metabox
340
- */
341
- /**
342
- * Tab Settings
343
- */ }
344
- form#post.envira-gallery #poststuff #envira-gallery .handlediv {
345
- display: none; }
346
- form#post.envira-gallery #poststuff #envira-gallery .hndle {
347
- display: none; }
348
- form#post.envira-gallery #poststuff #envira-gallery h2.nav-tab-wrapper {
349
- margin: -56px 0 0 -1px;
350
- /* The height of the tab */
351
- padding: 0;
352
- border-bottom: none;
353
- /**
354
- * Increase tab sizes and style
355
- */ }
356
- form#post.envira-gallery #poststuff #envira-gallery h2.nav-tab-wrapper .nav-tab {
357
- display: inline-block;
358
- width: 49%;
359
- margin: 0;
360
- padding: 15px 0;
361
- text-align: center;
362
- font-size: 16px;
363
- border-color: #e5e5e5;
364
- /* Matches the metabox border for a seamless UI */
365
- background: #f5f5f5;
366
- /**
367
- * Envira Gallery Icon
368
- */
369
- /**
370
- * External Gallery Tab
371
- */
372
- /**
373
- * Hover and Active States
374
- */
375
- /**
376
- * Focus State
377
- * - Remove WordPress' blue focus box from tabs
378
- */
379
- /**
380
- * Hides the radio input on a label
381
- * The radio input will be selected when the label is clicked
382
- */ }
383
- form#post.envira-gallery #poststuff #envira-gallery h2.nav-tab-wrapper .nav-tab.nav-tab-native-envira-gallery span {
384
- display: inline-block;
385
- background: url(images/icons/leaf.svg) 0 5px no-repeat;
386
- background-size: 14px 14px;
387
- text-indent: 20px; }
388
- form#post.envira-gallery #poststuff #envira-gallery h2.nav-tab-wrapper .nav-tab.nav-tab-external-gallery {
389
- margin-right: -1px; }
390
- form#post.envira-gallery #poststuff #envira-gallery h2.nav-tab-wrapper .nav-tab:hover, form#post.envira-gallery #poststuff #envira-gallery h2.nav-tab-wrapper .nav-tab.envira-active {
391
- background: #ffffff;
392
- border-bottom: 1px solid #ffffff; }
393
- form#post.envira-gallery #poststuff #envira-gallery h2.nav-tab-wrapper .nav-tab:focus {
394
- -webkit-box-shadow: none;
395
- -moz-box-shadow: none;
396
- box-shadow: none; }
397
- form#post.envira-gallery #poststuff #envira-gallery h2.nav-tab-wrapper .nav-tab:last-child {
398
- float: right; }
399
- form#post.envira-gallery #poststuff #envira-gallery h2.nav-tab-wrapper .nav-tab input[type=radio] {
400
- display: none; }
401
- form#post.envira-gallery #poststuff #envira-gallery .inside {
402
- margin: 0;
403
- padding: 0;
404
- /**
405
- * Native Envira Gallery Uploader / Select Files
406
- * - Styles the pluploader instance to look the way we want it
407
- * - Also see responsive styles at the end of this file
408
- */ }
409
- form#post.envira-gallery #poststuff #envira-gallery .inside #envira-gallery-native #plupload-upload-ui {
410
- /* Reserves the space needed for the drag-drop-area, which is loaded using JS */
411
- height: 210px;
412
- /**
413
- * A drag-drop-area div is always output, whether we're on a touch
414
- * device or not. WordPress will only style this div if its parent
415
- * has the .drag-drop class (i.e. touch devices won't get any CSS styling)
416
- *
417
- * The below CSS ensures that the drag drop area looks consistent
418
- * regardless of device used, and then adjusts the layout if drag-drop is supported.
419
- */
420
- /**
421
- * Select Files from Other Sources Button
422
- */
423
- /**
424
- * When the uploader supports drag and drop, a .drag-drop
425
- * class is appended to #drag-drop-area by WordPress
426
- *
427
- * We use this to show certain descriptions
428
- */
429
- /**
430
- * Upload Progress Bar
431
- */
432
- /**
433
- * Upload Progress Bar
434
- */ }
435
- form#post.envira-gallery #poststuff #envira-gallery .inside #envira-gallery-native #plupload-upload-ui #drag-drop-area {
436
- display: none;
437
- border: 4px dashed #b4b9be;
438
- height: 200px; }
439
- form#post.envira-gallery #poststuff #envira-gallery .inside #envira-gallery-native #plupload-upload-ui #drag-drop-area .drag-drop-inside {
440
- margin: 0 auto 0 auto; }
441
- form#post.envira-gallery #poststuff #envira-gallery .inside #envira-gallery-native #plupload-upload-ui #drag-drop-area .drag-drop-inside p {
442
- display: block;
443
- text-align: center;
444
- color: #a0a5aa;
445
- position: absolute;
446
- top: 50%;
447
- left: 50%;
448
- margin: -10px 0 0 -10px;
449
- /**
450
- * "Drop Files here"
451
- */ }
452
- form#post.envira-gallery #poststuff #envira-gallery .inside #envira-gallery-native #plupload-upload-ui #drag-drop-area .drag-drop-inside p.drag-drop-info {
453
- display: none;
454
- font-size: 20px; }
455
- form#post.envira-gallery #poststuff #envira-gallery .inside #envira-gallery-native #plupload-upload-ui #drag-drop-area .drag-drop-inside p.drag-drop-buttons {
456
- text-align: center;
457
- position: relative;
458
- top: 20px;
459
- left: 0;
460
- margin: 0; }
461
- form#post.envira-gallery #poststuff #envira-gallery .inside #envira-gallery-native #plupload-upload-ui a.envira-media-library.button {
462
- display: none;
463
- position: absolute;
464
- margin: 0 auto;
465
- left: 280px;
466
- right: 0;
467
- width: 230px;
468
- top: 115px;
469
- text-align: center; }
470
- form#post.envira-gallery #poststuff #envira-gallery .inside #envira-gallery-native #plupload-upload-ui.drag-drop #drag-drop-area .drag-drop-inside {
471
- width: 520px;
472
- margin: 50px auto 0 auto; }
473
- form#post.envira-gallery #poststuff #envira-gallery .inside #envira-gallery-native #plupload-upload-ui.drag-drop #drag-drop-area .drag-drop-inside p {
474
- position: relative;
475
- top: 0;
476
- left: 0;
477
- margin: 0; }
478
- form#post.envira-gallery #poststuff #envira-gallery .inside #envira-gallery-native #plupload-upload-ui.drag-drop #drag-drop-area .drag-drop-inside p.drag-drop-info {
479
- display: block; }
480
- form#post.envira-gallery #poststuff #envira-gallery .inside #envira-gallery-native #plupload-upload-ui.drag-drop #drag-drop-area .drag-drop-inside p.drag-drop-buttons {
481
- margin: 10px 0 0 0;
482
- text-align: left; }
483
- form#post.envira-gallery #poststuff #envira-gallery .inside #envira-gallery-native #plupload-upload-ui .envira-progress-bar {
484
- display: none;
485
- width: 100%;
486
- position: relative;
487
- height: 10px;
488
- width: 100%;
489
- margin: 10px auto;
490
- border-radius: 10px;
491
- background: #dfdfdf;
492
- background: rgba(0, 0, 0, 0.1); }
493
- form#post.envira-gallery #poststuff #envira-gallery .inside #envira-gallery-native #plupload-upload-ui .envira-progress-bar .envira-progress-bar-inner {
494
- height: 10px;
495
- min-width: 20px;
496
- width: 0;
497
- background: #aaa;
498
- background: rgba(0, 0, 0, 0.2);
499
- border-radius: 10px;
500
- -webkit-transition: width 300ms;
501
- -moz-transition: width 300ms;
502
- -ms-transition: width 300ms;
503
- -o-transition: width 300ms;
504
- transition: width 300ms; }
505
- form#post.envira-gallery #poststuff #envira-gallery .inside #envira-gallery-native #plupload-upload-ui .envira-progress-bar .envira-progress-bar-status {
506
- clear: both;
507
- position: absolute;
508
- right: 0;
509
- width: 50%;
510
- height: 30px;
511
- margin: 12px 0 0 0;
512
- text-align: right; }
513
- form#post.envira-gallery #poststuff #envira-gallery .inside #envira-gallery-native #plupload-upload-ui .envira-progress-bar .envira-progress-bar-status .done {
514
- display: none; }
515
- form#post.envira-gallery #poststuff #envira-gallery .inside #envira-gallery-native #plupload-upload-ui .envira-progress-adding-images {
516
- display: none;
517
- width: 100%;
518
- position: relative;
519
- height: 10px;
520
- width: 100%;
521
- margin: 5px auto;
522
- border-radius: 10px;
523
- /* background: #dfdfdf;
524
- background: rgba(0,0,0,.1);
525
- */ }
526
- form#post.envira-gallery #poststuff #envira-gallery .inside #envira-gallery-native #plupload-upload-ui .envira-progress-adding-images .envira-progress-bar-inner {
527
- height: 10px;
528
- min-width: 20px;
529
- width: 0;
530
- /* background: #aaa;
531
- background: rgba(0,0,0,.2);*/
532
- border-radius: 10px;
533
- /* -webkit-transition: width 300ms;
534
- -moz-transition: width 300ms;
535
- -ms-transition: width 300ms;
536
- -o-transition: width 300ms;
537
- transition: width 300ms;*/ }
538
- form#post.envira-gallery #poststuff #envira-gallery .inside #envira-gallery-native #plupload-upload-ui .envira-progress-adding-images .envira-progress-status {
539
- clear: both;
540
- position: absolute;
541
- right: 0;
542
- width: 50%;
543
- height: 30px;
544
- margin: 12px 0 0 0;
545
- text-align: right;
546
- color: green;
547
- -webkit-transition: 0.05s color ease-in-out;
548
- transition: 0.05s color ease-in-out; }
549
- form#post.envira-gallery #poststuff #envira-gallery .inside #envira-gallery-native #plupload-upload-ui .envira-progress-adding-images .envira-progress-status .spinner {
550
- float: right;
551
- margin-top: 0;
552
- visibility: visible; }
553
- form#post.envira-gallery #poststuff #envira-gallery .inside #envira-gallery-native #plupload-upload-ui .envira-progress-adding-images .envira-progress-status .adding_images {
554
- float: right;
555
- display: inline-block; }
556
- form#post.envira-gallery #poststuff #envira-gallery .inside #envira-gallery-native #plupload-upload-ui p.upload-flash-bypass {
557
- display: none; }
558
- form#post.envira-gallery #poststuff #envira-gallery .inside div.envira-tab {
559
- padding: 20px;
560
- /**
561
- * External Gallery Tab Area
562
- */ }
563
- form#post.envira-gallery #poststuff #envira-gallery .inside div.envira-tab#envira-gallery-external {
564
- text-align: center;
565
- /**
566
- * Header
567
- */
568
- /**
569
- * External Gallery Types
570
- */
571
- /**
572
- * Upgrade Button
573
- */ }
574
- form#post.envira-gallery #poststuff #envira-gallery .inside div.envira-tab#envira-gallery-external p.envira-intro {
575
- margin: 0 0 20px 0;
576
- padding: 0;
577
- border: none; }
578
- form#post.envira-gallery #poststuff #envira-gallery .inside div.envira-tab#envira-gallery-external ul#envira-gallery-types-nav {
579
- margin: 0 0 40px 0;
580
- text-align: center; }
581
- form#post.envira-gallery #poststuff #envira-gallery .inside div.envira-tab#envira-gallery-external ul#envira-gallery-types-nav li {
582
- display: inline-block;
583
- margin: 0 20px 0 0;
584
- vertical-align: top;
585
- /**
586
- * Pro uses a <label> element so the user can select the Gallery Type
587
- * Lite uses an <a> element so the user can go to the Upgrade URL
588
- */
589
- /**
590
- * Hover State
591
- * Selected State
592
- */
593
- /**
594
- * Featured Content
595
- */
596
- /**
597
- * Instagram
598
- */ }
599
- form#post.envira-gallery #poststuff #envira-gallery .inside div.envira-tab#envira-gallery-external ul#envira-gallery-types-nav li:last-child {
600
- margin: 0; }
601
- form#post.envira-gallery #poststuff #envira-gallery .inside div.envira-tab#envira-gallery-external ul#envira-gallery-types-nav li label,
602
- form#post.envira-gallery #poststuff #envira-gallery .inside div.envira-tab#envira-gallery-external ul#envira-gallery-types-nav li a {
603
- float: left;
604
- width: 110px; }
605
- form#post.envira-gallery #poststuff #envira-gallery .inside div.envira-tab#envira-gallery-external ul#envira-gallery-types-nav li label input,
606
- form#post.envira-gallery #poststuff #envira-gallery .inside div.envira-tab#envira-gallery-external ul#envira-gallery-types-nav li a input {
607
- display: none; }
608
- form#post.envira-gallery #poststuff #envira-gallery .inside div.envira-tab#envira-gallery-external ul#envira-gallery-types-nav li label div.icon,
609
- form#post.envira-gallery #poststuff #envira-gallery .inside div.envira-tab#envira-gallery-external ul#envira-gallery-types-nav li a div.icon {
610
- width: 110px;
611
- height: 110px;
612
- margin: 0 0 10px 0;
613
- border: 1px solid #ddd;
614
- background-size: 64px 64px;
615
- background-position: center;
616
- background-repeat: no-repeat; }
617
- form#post.envira-gallery #poststuff #envira-gallery .inside div.envira-tab#envira-gallery-external ul#envira-gallery-types-nav li label div.title,
618
- form#post.envira-gallery #poststuff #envira-gallery .inside div.envira-tab#envira-gallery-external ul#envira-gallery-types-nav li a div.title {
619
- font-weight: 700; }
620
- form#post.envira-gallery #poststuff #envira-gallery .inside div.envira-tab#envira-gallery-external ul#envira-gallery-types-nav li:hover label div.icon,
621
- form#post.envira-gallery #poststuff #envira-gallery .inside div.envira-tab#envira-gallery-external ul#envira-gallery-types-nav li:hover a div.icon, form#post.envira-gallery #poststuff #envira-gallery .inside div.envira-tab#envira-gallery-external ul#envira-gallery-types-nav li.envira-active label div.icon,
622
- form#post.envira-gallery #poststuff #envira-gallery .inside div.envira-tab#envira-gallery-external ul#envira-gallery-types-nav li.envira-active a div.icon {
623
- background-color: #f7fcf3;
624
- border-color: #7cc048; }
625
- form#post.envira-gallery #poststuff #envira-gallery .inside div.envira-tab#envira-gallery-external ul#envira-gallery-types-nav li#envira-gallery-type-fc label div.icon,
626
- form#post.envira-gallery #poststuff #envira-gallery .inside div.envira-tab#envira-gallery-external ul#envira-gallery-types-nav li#envira-gallery-type-fc a div.icon {
627
- background-image: url(../images/types/fc.png); }
628
- form#post.envira-gallery #poststuff #envira-gallery .inside div.envira-tab#envira-gallery-external ul#envira-gallery-types-nav li#envira-gallery-type-instagram label div.icon,
629
- form#post.envira-gallery #poststuff #envira-gallery .inside div.envira-tab#envira-gallery-external ul#envira-gallery-types-nav li#envira-gallery-type-instagram a div.icon {
630
- background-image: url(../images/types/instagram.png); }
631
- form#post.envira-gallery #poststuff #envira-gallery .inside div.envira-tab#envira-gallery-external a.button.button-x-large {
632
- margin-top: 30px; }
633
- form#post.envira-gallery #poststuff #envira-albums .inside #envira-types #envira-album-native {
634
- position: relative;
635
- /**
636
- * Galleries (Drop Target)
637
- */
638
- /**
639
- * Drag & Drop Instructions
640
- */ }
641
- form#post.envira-gallery #poststuff #envira-albums .inside #envira-types #envira-album-native ul#envira-album-drag-drop-area {
642
- z-index: 2;
643
- min-height: 200px;
644
- margin: 0;
645
- padding: 20px;
646
- border: 4px dashed #b4b9be;
647
- -webkit-box-sizing: border-box;
648
- -moz-box-sizing: border-box;
649
- box-sizing: border-box; }
650
- form#post.envira-gallery #poststuff #envira-albums .inside #envira-types #envira-album-native ul#envira-album-drag-drop-area li {
651
- cursor: move; }
652
- form#post.envira-gallery #poststuff #envira-albums .inside #envira-types #envira-album-native p.drag-drop-info {
653
- position: absolute;
654
- top: 80px;
655
- z-index: 1;
656
- margin: 0 auto;
657
- left: 0;
658
- right: 0;
659
- text-align: center;
660
- color: #a0a5aa;
661
- font-size: 20px;
662
- -webkit-box-sizing: border-box;
663
- -moz-box-sizing: border-box;
664
- box-sizing: border-box; }
665
- form#post.envira-gallery #poststuff #envira-albums .inside #envira-types #envira-album-native p.drag-drop-info span {
666
- display: block; }
667
- form#post.envira-gallery #poststuff #envira-albums .inside #envira-types #envira-album-native p.drag-drop-info span.click {
668
- font-size: 18px; }
669
- form#post.envira-gallery #poststuff #envira-albums .inside #envira-types #envira-album-native p.drag-drop-info small {
670
- display: block;
671
- margin: 5px 0;
672
- font-size: 14px; }
673
- form#post.envira-gallery #poststuff #envira-gallery-settings,
674
- form#post.envira-gallery #poststuff #envira-albums-settings {
675
- background: #f7f7f7;
676
- /* The background for tabs, full height */
677
- /**
678
- * Clearfix
679
- */
680
- /**
681
- * Hide the title bar of the metabox, so we have a seamless style
682
- */
683
- /**
684
- * Tabs
685
- */
686
- /**
687
- * Settings
688
- */ }
689
- form#post.envira-gallery #poststuff #envira-gallery-settings:after,
690
- form#post.envira-gallery #poststuff #envira-albums-settings:after {
691
- content: "";
692
- display: table;
693
- clear: both; }
694
- form#post.envira-gallery #poststuff #envira-gallery-settings .handlediv,
695
- form#post.envira-gallery #poststuff #envira-albums-settings .handlediv {
696
- display: none; }
697
- form#post.envira-gallery #poststuff #envira-gallery-settings .hndle,
698
- form#post.envira-gallery #poststuff #envira-albums-settings .hndle {
699
- display: none; }
700
- form#post.envira-gallery #poststuff #envira-gallery-settings .inside,
701
- form#post.envira-gallery #poststuff #envira-albums-settings .inside {
702
- margin: 0;
703
- padding: 0; }
704
- form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav,
705
- form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav {
706
- width: 160px;
707
- margin: 0;
708
- padding: 0;
709
- border-right: 1px solid #ddd; }
710
- form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li,
711
- form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li {
712
- float: left;
713
- width: 100%;
714
- margin: 0;
715
- padding: 0;
716
- /**
717
- * Last Item
718
- */
719
- /**
720
- * Tab Icons
721
- */ }
722
- form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li a,
723
- form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li a {
724
- float: left;
725
- width: 120px;
726
- margin: 0 20px;
727
- padding: 20px 0 20px 25px;
728
- text-decoration: none;
729
- color: #999;
730
- border-bottom: 1px solid #ddd;
731
- background-position: left center;
732
- background-repeat: no-repeat;
733
- -webkit-box-sizing: border-box;
734
- -moz-box-sizing: border-box;
735
- box-sizing: border-box;
736
- transition: none;
737
- -webkit-transition: none;
738
- /**
739
- * Hover and Active States
740
- */
741
- /**
742
- * Focus State
743
- * - Remove WordPress' blue focus box from tabs
744
- */ }
745
- form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li a:hover, form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li a.envira-active,
746
- form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li a:hover,
747
- form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li a.envira-active {
748
- width: 161px;
749
- margin: -1px 0 0 0;
750
- padding: 20px 20px 20px 45px;
751
- text-decoration: none;
752
- color: #444;
753
- border-top: 1px solid #ddd;
754
- border-bottom: 1px solid #ddd;
755
- border-right: 1px solid #ffffff;
756
- background-color: #ffffff;
757
- background-position: 20px center; }
758
- form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li a:focus,
759
- form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li a:focus {
760
- -webkit-box-shadow: none;
761
- -moz-box-shadow: none;
762
- box-shadow: none; }
763
- form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li:last-child a,
764
- form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li:last-child a {
765
- border-bottom: none; }
766
- form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li:last-child a:hover,
767
- form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li:last-child a:hover {
768
- border-bottom: none; }
769
- form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li.envira-images a, form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li.envira-galleries a,
770
- form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li.envira-images a,
771
- form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li.envira-galleries a {
772
- background-image: url(images/icons/leaf.svg);
773
- background-size: 16px 16px; }
774
- form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li.envira-config a,
775
- form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li.envira-config a {
776
- background-image: url(images/icons/configuration.svg);
777
- background-size: 16px 16px; }
778
- form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li.envira-lightbox a,
779
- form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li.envira-lightbox a {
780
- background-image: url(images/icons/lightbox.svg);
781
- background-size: 16px 16px; }
782
- form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li.envira-mobile a,
783
- form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li.envira-mobile a {
784
- background-image: url(images/icons/mobile.svg);
785
- background-size: 16px 16px; }
786
- form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li.envira-breadcrumbs a,
787
- form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li.envira-breadcrumbs a {
788
- background-image: url(images/icons/breadcrumbs.svg);
789
- background-size: 16px 16px; }
790
- form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li.envira-comments a,
791
- form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li.envira-comments a {
792
- background-image: url(images/icons/comments.svg);
793
- background-size: 16px 16px; }
794
- form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li.envira-downloads a,
795
- form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li.envira-downloads a {
796
- background-image: url(images/icons/downloads.svg);
797
- background-size: 16px 16px; }
798
- form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li.envira-exif a,
799
- form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li.envira-exif a {
800
- background-image: url(images/icons/exif.svg);
801
- background-size: 16px 16px; }
802
- form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li.envira-pagination a,
803
- form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li.envira-pagination a {
804
- background-image: url(images/icons/pagination.svg);
805
- background-size: 16px 16px; }
806
- form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li.envira-pinterest a,
807
- form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li.envira-pinterest a {
808
- background-image: url(images/icons/pinterest.svg);
809
- background-size: 16px 16px; }
810
- form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li.envira-proofing a,
811
- form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li.envira-proofing a {
812
- background-image: url(images/icons/proofing.svg);
813
- background-size: 16px 16px; }
814
- form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li.envira-printing a,
815
- form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li.envira-printing a {
816
- background-image: url(images/icons/printing.svg);
817
- background-size: 16px 16px; }
818
- form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li.envira-slideshow a,
819
- form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li.envira-slideshow a {
820
- background-image: url(images/icons/slideshow.svg);
821
- background-size: 16px 16px; }
822
- form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li.envira-standalone a,
823
- form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li.envira-standalone a {
824
- background-image: url(images/icons/standalone.svg);
825
- background-size: 16px 16px; }
826
- form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li.envira-social a,
827
- form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li.envira-social a {
828
- background-image: url(images/icons/social.svg);
829
- background-size: 16px 16px; }
830
- form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li.envira-tags a,
831
- form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li.envira-tags a {
832
- background-image: url(images/icons/tags.svg);
833
- background-size: 16px 16px; }
834
- form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li.envira-videos a,
835
- form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li.envira-videos a {
836
- background-image: url(images/icons/video.svg);
837
- background-size: 16px 16px; }
838
- form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li.envira-watermarking a,
839
- form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li.envira-watermarking a {
840
- background-image: url(images/icons/watermark.svg);
841
- background-size: 16px 16px; }
842
- form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li.envira-woocommerce a,
843
- form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li.envira-woocommerce a {
844
- background-image: url(images/icons/woocommerce.svg);
845
- background-size: 16px 16px; }
846
- form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li.envira-zoom a,
847
- form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li.envira-zoom a {
848
- background-image: url(images/icons/zoom.svg);
849
- background-size: 16px 16px; }
850
- form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li.envira-misc a,
851
- form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li.envira-misc a {
852
- background-image: url(images/icons/misc.svg);
853
- background-size: 16px 16px; }
854
- form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs,
855
- form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs {
856
- margin: 0 0 0 160px;
857
- /* Must match #ul#envira-tabs-nav width */
858
- padding: 20px;
859
- -webkit-box-sizing: border-box;
860
- -moz-box-sizing: border-box;
861
- box-sizing: border-box;
862
- background: #ffffff;
863
- border-left: 1px solid #ddd;
864
- /**
865
- * Headings
866
- */
867
- /**
868
- * All Tabs
869
- */
870
- /**
871
- * Upsell/Upgrade Call To Actions
872
- */
873
- /**
874
- * Tab: Images
875
- */
876
- /**
877
- * Tab: Galleries
878
- * - Used on Albums
879
- */
880
- /**
881
- * Clearfix
882
- */ }
883
- form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs h2,
884
- form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs h2 {
885
- clear: none; }
886
- form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs table.form-table,
887
- form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs table.form-table {
888
- clear: none;
889
- margin: 0 0 40px 0;
890
- /**
891
- * Row padding
892
- */
893
- /**
894
- * Sub Headings
895
- * - Used to denote an Addon's settings within a settings tab e.g. the Mobile tab
896
- */
897
- /**
898
- * Full width labels (used for checkboxes that we don't want to be inline)
899
- */
900
- /**
901
- * Full width textareas
902
- */
903
- /**
904
- * Checkbox alignment
905
- */
906
- /**
907
- * Descriptions
908
- */ }
909
- form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs table.form-table.no-margin,
910
- form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs table.form-table.no-margin {
911
- margin: 0; }
912
- form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs table.form-table th, form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs table.form-table td,
913
- form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs table.form-table th,
914
- form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs table.form-table td {
915
- padding-top: 20px;
916
- padding-bottom: 20px; }
917
- form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs table.form-table tr.sub-heading th,
918
- form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs table.form-table tr.sub-heading th {
919
- margin: 0;
920
- padding: 20px 0 0 0;
921
- font-style: italic;
922
- font-weight: 400;
923
- font-size: 16px; }
924
- form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs table.form-table label.full-width,
925
- form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs table.form-table label.full-width {
926
- display: block;
927
- margin: 0 0 5px 0; }
928
- form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs table.form-table label.full-width:first-child,
929
- form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs table.form-table label.full-width:first-child {
930
- margin-top: 5px; }
931
- form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs table.form-table textarea,
932
- form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs table.form-table textarea {
933
- width: 100%; }
934
- form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs table.form-table input[type=checkbox],
935
- form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs table.form-table input[type=checkbox] {
936
- margin-bottom: 2px; }
937
- form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs table.form-table p.description,
938
- form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs table.form-table span.description,
939
- form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs table.form-table p.description,
940
- form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs table.form-table span.description {
941
- font-size: 13px;
942
- font-style: italic;
943
- color: #666; }
944
- form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs .upgrade-header,
945
- form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs .upgrade-header {
946
- display: table;
947
- margin-bottom: 10px;
948
- width: 100%;
949
- border-bottom: 1px solid #ccc;
950
- padding-bottom: 15px; }
951
- form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs .upgrade-header img,
952
- form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs .upgrade-header img {
953
- float: left; }
954
- form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs .upgrade-header h2,
955
- form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs .upgrade-header h2 {
956
- float: left;
957
- font-size: 24px;
958
- line-height: 24px;
959
- font-weight: 500;
960
- margin-top: 0px;
961
- max-width: 80%;
962
- padding-top: 0; }
963
- form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs .upgrade-content .hero-image-exterior,
964
- form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs .upgrade-content .hero-image-exterior {
965
- border: 1px solid #ccc;
966
- width: 100%;
967
- max-width: 100%;
968
- display: table; }
969
- form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs .upgrade-content .hero-image-exterior .interior,
970
- form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs .upgrade-content .hero-image-exterior .interior {
971
- padding: 10px; }
972
- form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs .upgrade-content .hero-image-exterior .interior img,
973
- form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs .upgrade-content .hero-image-exterior .interior img {
974
- width: 100%;
975
- display: table; }
976
- form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs .upgrade-content .two-column-list,
977
- form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs .upgrade-content .two-column-list {
978
- display: table;
979
- width: 100%; }
980
- form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs .upgrade-content .two-column-list ul,
981
- form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs .upgrade-content .two-column-list ul {
982
- list-style: none;
983
- list-style-position: inside;
984
- width: 45%;
985
- float: left; }
986
- form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs .upgrade-content .cta-buttons,
987
- form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs .upgrade-content .cta-buttons {
988
- margin-top: 30px; }
989
- form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs .upgrade-content .cta-buttons a,
990
- form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs .upgrade-content .cta-buttons a {
991
- display: inline-block;
992
- margin-right: 20px; }
993
- form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs #envira-tab-images,
994
- form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs #envira-tab-images {
995
- /**
996
- * Inline Navigation
997
- * - Select All
998
- * - List View / Grid View
999
- * - Edit / Delete Selected Items
1000
- */
1001
- /**
1002
- * Images
1003
- * - Show move cursor
1004
- */ }
1005
- form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs #envira-tab-images nav,
1006
- form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs #envira-tab-images nav {
1007
- width: 100%;
1008
- /**
1009
- * Edit / Delete Selected
1010
- * - Hidden by default, shown by JS when image(s) are selected
1011
- */ }
1012
- form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs #envira-tab-images nav.envira-tab-options,
1013
- form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs #envira-tab-images nav.envira-tab-options {
1014
- margin: 20px 0; }
1015
- form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs #envira-tab-images nav a.dashicons,
1016
- form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs #envira-tab-images nav a.dashicons {
1017
- position: absolute;
1018
- color: #999; }
1019
- form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs #envira-tab-images nav a.dashicons.dashicons-grid-view,
1020
- form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs #envira-tab-images nav a.dashicons.dashicons-grid-view {
1021
- right: 20px; }
1022
- form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs #envira-tab-images nav a.dashicons.dashicons-list-view,
1023
- form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs #envira-tab-images nav a.dashicons.dashicons-list-view {
1024
- right: 50px; }
1025
- form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs #envira-tab-images nav a.dashicons.selected,
1026
- form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs #envira-tab-images nav a.dashicons.selected {
1027
- color: #23282d; }
1028
- form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs #envira-tab-images nav a.dashicons span,
1029
- form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs #envira-tab-images nav a.dashicons span {
1030
- display: inline-block;
1031
- text-indent: -9999px; }
1032
- form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs #envira-tab-images nav.envira-select-options,
1033
- form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs #envira-tab-images nav.envira-select-options {
1034
- display: none; }
1035
- form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs #envira-tab-images ul#envira-gallery-output li,
1036
- form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs #envira-tab-images ul#envira-gallery-output li {
1037
- cursor: move; }
1038
- form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs #envira-tab-galleries,
1039
- form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs #envira-tab-galleries {
1040
- /**
1041
- * Inline Navigation
1042
- * - Search
1043
- */
1044
- /**
1045
- * Images
1046
- * - Show move cursor
1047
- * - Hide Edit & Delete icons, as these are only displayed when the gallery is assigned to the Album
1048
- */ }
1049
- form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs #envira-tab-galleries nav,
1050
- form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs #envira-tab-galleries nav {
1051
- width: 100%;
1052
- /**
1053
- * Bulk Action Buttons
1054
- * - Hidden by default, shown by JS when galleries(s) are selected
1055
- */ }
1056
- form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs #envira-tab-galleries nav.envira-tab-options,
1057
- form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs #envira-tab-galleries nav.envira-tab-options {
1058
- height: 40px;
1059
- margin: 20px 0;
1060
- position: relative;
1061
- /**
1062
- * Add Galleries to Album Button
1063
- */
1064
- /**
1065
- * Search
1066
- */ }
1067
- form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs #envira-tab-galleries nav.envira-tab-options a.envira-galleries-add,
1068
- form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs #envira-tab-galleries nav.envira-tab-options a.envira-galleries-add {
1069
- display: none;
1070
- /* Displayed via JS when Galleries selected */
1071
- position: absolute;
1072
- top: 0;
1073
- left: 0; }
1074
- form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs #envira-tab-galleries nav.envira-tab-options input#envira-albums-gallery-search,
1075
- form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs #envira-tab-galleries nav.envira-tab-options input#envira-albums-gallery-search {
1076
- position: absolute;
1077
- top: 0;
1078
- right: 0; }
1079
- form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs #envira-tab-galleries nav.envira-select-options,
1080
- form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs #envira-tab-galleries nav.envira-select-options {
1081
- display: none; }
1082
- form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs #envira-tab-galleries ul.envira-gallery-images-output li,
1083
- form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs #envira-tab-galleries ul.envira-gallery-images-output li {
1084
- cursor: move; }
1085
- form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs #envira-tab-galleries ul.envira-gallery-images-output li a.envira-gallery-remove-image,
1086
- form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs #envira-tab-galleries ul.envira-gallery-images-output li a.envira-gallery-modify-image,
1087
- form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs #envira-tab-galleries ul.envira-gallery-images-output li a.envira-gallery-remove-image,
1088
- form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs #envira-tab-galleries ul.envira-gallery-images-output li a.envira-gallery-modify-image {
1089
- display: none; }
1090
- form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs:after,
1091
- form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs:after {
1092
- content: "";
1093
- display: table;
1094
- clear: both; }
1095
- form#post.envira-gallery #poststuff #envira-gallery-preview {
1096
- /**
1097
- * Clearfix
1098
- */
1099
- /**
1100
- * Hide the title bar of the metabox, so we have a seamless style
1101
- */ }
1102
- form#post.envira-gallery #poststuff #envira-gallery-preview:after {
1103
- content: "";
1104
- display: table;
1105
- clear: both; }
1106
- form#post.envira-gallery #poststuff #envira-gallery-preview button.handlediv {
1107
- display: none; }
1108
- form#post.envira-gallery #poststuff #envira-gallery-preview h2.hndle {
1109
- display: none; }
1110
- form#post.envira-gallery #poststuff #envira-gallery-preview .inside {
1111
- margin: 0;
1112
- padding: 20px; }
1113
-
1114
- /* ==========================================================================
1115
- Media Modal (Insert Images and Edit Metadata)
1116
- ========================================================================== */
1117
- .media-modal {
1118
- /**
1119
- * Header Buttons
1120
- */
1121
- /**
1122
- * Upload
1123
- */
1124
- /**
1125
- * Insert
1126
- */
1127
- /**
1128
- * Attachments
1129
- * - Ensures that images fill each <li> attachment block, providing compatibility from WordPress 4.0 upwards
1130
- * - Removed as breaks 4.4, 4.5
1131
- ul.attachments {
1132
- li.attachment {
1133
- width: 20%;
1134
-
1135
- img {
1136
- width: 100%;
1137
- height: 100%;
1138
- }
1139
- }
1140
- }
1141
- */
1142
- /**
1143
- * Albums: Select Gallery Cover Image
1144
- * - Add some top spacing so that a selected cover image that's on the first line of the results
1145
- * doesn't have its checkmark cut off
1146
- */
1147
- /**
1148
- * Bulk Edit Attachments
1149
- * - Restore cursor to default, so the user doesn't think they can click an image
1150
- */
1151
- /**
1152
- * Edit
1153
- */ }
1154
- .media-modal .edit-attachment-frame .edit-media-header button.right {
1155
- border-right: 1px solid #ddd; }
1156
- .media-modal .uploader-inline {
1157
- /**
1158
- * Don't display the 'Select Files from Other Sources' button that we add to plupload
1159
- * when we're in a modal.
1160
- */ }
1161
- .media-modal .uploader-inline a.envira-media-library.button {
1162
- display: none; }
1163
- .media-modal .envira-progress-bar .envira-progress-bar-status {
1164
- display: none; }
1165
- .media-modal .attachment.details {
1166
- -webkit-box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px #7cc048;
1167
- box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px #7cc048; }
1168
- .media-modal .attachment.details .check {
1169
- background-color: #7cc048;
1170
- -webkit-box-shadow: 0 0 0 1px #fff, 0 0 0 2px #7cc048;
1171
- box-shadow: 0 0 0 1px #fff, 0 0 0 2px #7cc048; }
1172
- .media-modal ul.attachments.envira-albums-gallery-cover-image {
1173
- padding: 10px; }
1174
- .media-modal ul.attachments.envira-bulk-edit li.attachment {
1175
- cursor: default; }
1176
- .media-modal ul.attachments.envira-bulk-edit li.attachment .attachment-preview {
1177
- cursor: default; }
1178
- .media-modal .attachment-details .attachment-info {
1179
- padding: 16px;
1180
- /**
1181
- * Settings
1182
- * - Contains one or more setting elements (Title, Alt etc)
1183
- */
1184
- /**
1185
- * Actions
1186
- * - Save Button
1187
- * - Spinner
1188
- */ }
1189
- .media-modal .attachment-details .attachment-info .settings {
1190
- margin: 0;
1191
- padding: 0;
1192
- border: none;
1193
- /**
1194
- * Individual Setting (Title, Alt etc)
1195
- */ }
1196
- .media-modal .attachment-details .attachment-info .settings .setting {
1197
- margin: 0 0 20px 0;
1198
- padding: 0 0 20px 0;
1199
- border-bottom: 1px solid #ddd;
1200
- /**
1201
- * Input
1202
- */ }
1203
- .media-modal .attachment-details .attachment-info .settings .setting input[type="text"],
1204
- .media-modal .attachment-details .attachment-info .settings .setting textarea {
1205
- display: block;
1206
- width: 100%;
1207
- min-width: 100%;
1208
- margin: 0; }
1209
- .media-modal .attachment-details .attachment-info .settings .setting input[type="checkbox"] {
1210
- float: left;
1211
- margin: 0 5px 0 0; }
1212
- .media-modal .attachment-details .attachment-info .settings .setting select {
1213
- margin: 0; }
1214
- .media-modal .attachment-details .attachment-info .settings .setting span {
1215
- /**
1216
- * Title
1217
- */
1218
- /**
1219
- * Description
1220
- */ }
1221
- .media-modal .attachment-details .attachment-info .settings .setting span.name {
1222
- display: block;
1223
- width: 100%;
1224
- min-width: 100%;
1225
- margin: 0;
1226
- padding: 0;
1227
- text-align: left;
1228
- font-weight: 700;
1229
- font-size: 14px; }
1230
- .media-modal .attachment-details .attachment-info .settings .setting span.description {
1231
- text-align: left;
1232
- font-style: normal;
1233
- font-size: 13px;
1234
- font-style: italic;
1235
- color: #666; }
1236
- .media-modal .attachment-details .attachment-info .settings .setting div.description {
1237
- clear: both;
1238
- float: left;
1239
- margin: 5px 0 0 0;
1240
- text-align: left;
1241
- font-size: 13px;
1242
- font-style: italic;
1243
- color: #666; }
1244
- .media-modal .attachment-details .attachment-info div.actions {
1245
- /**
1246
- * Ensure button renders at correct height
1247
- */ }
1248
- .media-modal .attachment-details .attachment-info div.actions a.button {
1249
- display: inline-block; }
1250
-
1251
- /* ==========================================================================
1252
- Retina
1253
- ========================================================================== */
1254
- @media (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {
1255
- /**
1256
- * WP media-views.css doesn't use .wp-core-ui for the x2 icons, therefore they never get applied
1257
- */
1258
- .wp-core-ui a.check .media-modal-icon {
1259
- background-image: url(../../../../../wp-includes/images/uploader-icons-2x.png) !important;
1260
- -webkit-background-size: 134px 15px;
1261
- background-size: 134px 15px; } }
1262
-
1263
- /* ==========================================================================
1264
- Responsive
1265
- ========================================================================== */
1266
- @media screen and (max-width: 1100px) {
1267
- /* ==========================================================================
1268
- Form
1269
- - The envira-gallery class is assigned to the Gallery and Album Add/Edit screens form.
1270
- ========================================================================== */
1271
- form#post.envira-gallery #poststuff #envira-gallery,
1272
- form#post.envira-gallery #poststuff #envira-albums {
1273
- /**
1274
- * Tab Settings
1275
- */ }
1276
- form#post.envira-gallery #poststuff #envira-gallery .inside,
1277
- form#post.envira-gallery #poststuff #envira-albums .inside {
1278
- /**
1279
- * Native Envira Gallery
1280
- */ }
1281
- form#post.envira-gallery #poststuff #envira-gallery .inside #envira-gallery-native #plupload-upload-ui.drag-drop #drag-drop-area,
1282
- form#post.envira-gallery #poststuff #envira-albums .inside #envira-gallery-native #plupload-upload-ui.drag-drop #drag-drop-area {
1283
- border-color: #d5d5d5; }
1284
- form#post.envira-gallery #poststuff #envira-gallery .inside #envira-gallery-native #plupload-upload-ui.drag-drop #drag-drop-area .drag-drop-inside,
1285
- form#post.envira-gallery #poststuff #envira-albums .inside #envira-gallery-native #plupload-upload-ui.drag-drop #drag-drop-area .drag-drop-inside {
1286
- width: 100%;
1287
- margin-top: 20px; }
1288
- form#post.envira-gallery #poststuff #envira-gallery .inside #envira-gallery-native #plupload-upload-ui.drag-drop #drag-drop-area .drag-drop-inside p.drag-drop-buttons,
1289
- form#post.envira-gallery #poststuff #envira-albums .inside #envira-gallery-native #plupload-upload-ui.drag-drop #drag-drop-area .drag-drop-inside p.drag-drop-buttons {
1290
- text-align: center; }
1291
- form#post.envira-gallery #poststuff #envira-gallery .inside #envira-gallery-native #plupload-upload-ui a.envira-media-library.button,
1292
- form#post.envira-gallery #poststuff #envira-albums .inside #envira-gallery-native #plupload-upload-ui a.envira-media-library.button {
1293
- left: 0;
1294
- right: 0;
1295
- width: 235px;
1296
- top: 145px; } }
1297
-
1298
- @media screen and (max-width: 768px) {
1299
- /* ==========================================================================
1300
- Form
1301
- - The envira-gallery class is assigned to the Gallery and Album Add/Edit screens form.
1302
- ========================================================================== */
1303
- form#post.envira-gallery #poststuff {
1304
- /* ==========================================================================
1305
- Envira Gallery Settings
1306
- Envira Albums Settings
1307
- ========================================================================== */ }
1308
- form#post.envira-gallery #poststuff #envira-gallery-settings,
1309
- form#post.envira-gallery #poststuff #envira-albums-settings {
1310
- /**
1311
- * Tabs
1312
- */
1313
- /**
1314
- * Settings
1315
- */ }
1316
- form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav,
1317
- form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav {
1318
- width: 60px; }
1319
- form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li a,
1320
- form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li a {
1321
- width: 60px;
1322
- height: 60px;
1323
- margin: 0;
1324
- padding: 0;
1325
- text-indent: -9999px;
1326
- background-position: center; }
1327
- form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li a:hover, form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li a.envira-active,
1328
- form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li a:hover,
1329
- form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li a.envira-active {
1330
- width: 60px;
1331
- height: 60px;
1332
- margin: 0;
1333
- padding: 0;
1334
- text-indent: -9999px;
1335
- background-position: center; }
1336
- form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs,
1337
- form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs {
1338
- margin: 0 0 0 60px;
1339
- /* Must match #ul#envira-tabs-nav width */ } }
1
+ body.post-type-envira #message{margin:5px 20px 15px 20px}body.post-type-envira #wp-link-wrap{z-index:180105 !important}body.post-type-envira #wp-link-backdrop{z-index:160105 !important}form#post.envira-gallery{margin:0 20px}form#post.envira-gallery #poststuff p.envira-intro{margin:0;padding:0 0 30px 0;border-bottom:1px solid #ddd;font-size:16px;font-weight:700}form#post.envira-gallery #poststuff p.envira-intro small{margin:5px 0 0 0;display:block;font-weight:400}form#post.envira-gallery #poststuff p.envira-intro small a{text-decoration:none;font-weight:600}form#post.envira-gallery #poststuff div.envira-video-help{position:relative;z-index:1;width:100%;margin:20px 0 0 0}form#post.envira-gallery #poststuff div.envira-video-help iframe{position:relative;z-index:1;width:100%;height:auto;min-height:300px}form#post.envira-gallery #poststuff div.envira-video-help a.envira-video-close{position:absolute;z-index:2;top:-12px;right:-12px;width:24px;height:24px;line-height:24px;-webkit-border-radius:50%;-moz-border-radius:50%;-o-border-radius:50%;border-radius:50%;background:#f5f5f5;color:#000;text-align:center;text-decoration:none}form#post.envira-gallery #poststuff ul.envira-gallery-images-output{width:100%}form#post.envira-gallery #poststuff ul.envira-gallery-images-output li{position:relative;display:inline-block;width:150px;margin:0 20px 20px 0;padding:0;list-style:none;vertical-align:top;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;background:#f7f7f7}form#post.envira-gallery #poststuff ul.envira-gallery-images-output li img{display:block;width:150px;height:150px}form#post.envira-gallery #poststuff ul.envira-gallery-images-output li div.placeholder-image{display:block;width:148px;height:149px;background:url(images/icons/leaf.svg) center no-repeat;background-size:64px 64px;border-left:1px solid #dfdfdf;border-top:1px solid #dfdfdf;border-right:1px solid #dfdfdf}form#post.envira-gallery #poststuff ul.envira-gallery-images-output li div.meta{width:148px;overflow:hidden;text-align:center;border-left:1px solid #dfdfdf;border-bottom:1px solid #dfdfdf;border-right:1px solid #dfdfdf}form#post.envira-gallery #poststuff ul.envira-gallery-images-output li div.meta div.title{font-size:12px;font-weight:700;width:138px;height:18px;line-height:18px;margin:8px 5px;overflow:hidden}form#post.envira-gallery #poststuff ul.envira-gallery-images-output li div.meta div.title a.hint{position:absolute;display:inline-block;bottom:10px;right:10px;width:16px;height:16px;background:#f7f7f7}form#post.envira-gallery #poststuff ul.envira-gallery-images-output li div.meta div.title a.hint.hidden{display:none}form#post.envira-gallery #poststuff ul.envira-gallery-images-output li div.meta div.additional{display:none;margin:5px 0 0 0;font-weight:400}form#post.envira-gallery #poststuff ul.envira-gallery-images-output li a.check{display:none;position:absolute;right:5px;top:5px;width:24px;height:24px;background-color:#eee;-webkit-box-shadow:0 0 0 1px #fff,0 0 0 2px rgba(0,0,0,.15);box-shadow:0 0 0 1px #fff,0 0 0 2px rgba(0,0,0,.15)}form#post.envira-gallery #poststuff ul.envira-gallery-images-output li a.check div.media-modal-icon{display:none;width:15px;height:15px;margin:5px 0 0 5px;background-position:-21px 0}form#post.envira-gallery #poststuff ul.envira-gallery-images-output li a.dashicons{position:absolute;display:block;top:5px;left:5px;width:25px;height:25px;line-height:25px;font-size:18px;outline:none;z-index:20;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px}form#post.envira-gallery #poststuff ul.envira-gallery-images-output li a.dashicons.envira-gallery-modify-image{background:#0085ba;color:#fff}form#post.envira-gallery #poststuff ul.envira-gallery-images-output li a.dashicons.envira-gallery-remove-image{left:35px;background:#e02626;color:#fff}form#post.envira-gallery #poststuff ul.envira-gallery-images-output li.selected{width:148px;border:2px solid #7cc048 !important}form#post.envira-gallery #poststuff ul.envira-gallery-images-output li.selected a.check{display:block;background-color:#7cc048;-webkit-box-shadow:0 0 0 1px #fff,0 0 0 2px #7cc048;box-shadow:0 0 0 1px #fff,0 0 0 2px #7cc048}form#post.envira-gallery #poststuff ul.envira-gallery-images-output li.selected a.check div.media-modal-icon{display:block}form#post.envira-gallery #poststuff ul.envira-gallery-images-output li.selected div.meta{width:146px}form#post.envira-gallery #poststuff ul.envira-gallery-images-output li.ui-sortable-helper li{position:absolute;top:0;left:0}form#post.envira-gallery #poststuff ul.envira-gallery-images-output.list li{position:relative;z-index:2;display:block;width:100%;margin:0 0 10px 0;padding:10px 15px;background:#fff;border:1px solid #ddd;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px}form#post.envira-gallery #poststuff ul.envira-gallery-images-output.list li img{display:inline-block;width:75px;margin-left:45px}form#post.envira-gallery #poststuff ul.envira-gallery-images-output.list li div.meta{position:absolute;z-index:1;left:0;display:inline-block;width:100%;padding:0 80px 0 150px;border:none;font-weight:700;text-align:left;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}form#post.envira-gallery #poststuff ul.envira-gallery-images-output.list li div.meta div.title{display:block;width:100%;height:auto;font-size:16px;margin:0;padding:0}form#post.envira-gallery #poststuff ul.envira-gallery-images-output.list li div.meta div.title a.hint{display:none}form#post.envira-gallery #poststuff ul.envira-gallery-images-output.list li div.meta div.additional{display:block}form#post.envira-gallery #poststuff ul.envira-gallery-images-output.list li a.check{display:block;position:absolute;left:15px;top:35px}form#post.envira-gallery #poststuff ul.envira-gallery-images-output.list li a.envira-gallery-remove-image{left:auto;top:10px;right:10px}form#post.envira-gallery #poststuff ul.envira-gallery-images-output.list li a.envira-gallery-modify-image{left:auto;top:10px;right:40px}form#post.envira-gallery #poststuff #envira-gallery{margin:60px 0 20px 0}form#post.envira-gallery #poststuff #envira-gallery .handlediv{display:none}form#post.envira-gallery #poststuff #envira-gallery .hndle{display:none}form#post.envira-gallery #poststuff #envira-gallery h2.nav-tab-wrapper{margin:-56px 0 0 -1px;padding:0;border-bottom:none}form#post.envira-gallery #poststuff #envira-gallery h2.nav-tab-wrapper .nav-tab{display:inline-block;width:49.7%;margin:0;padding:15px 0;text-align:center;font-size:16px;border-color:#e5e5e5;background:#f5f5f5;border-top-left-radius:6px;border-top-right-radius:6px}form#post.envira-gallery #poststuff #envira-gallery h2.nav-tab-wrapper .nav-tab.nav-tab-native-envira-gallery span{display:inline-block;background:url(images/icons/leaf.svg) 0 5px no-repeat;background-size:14px 14px;text-indent:20px}form#post.envira-gallery #poststuff #envira-gallery h2.nav-tab-wrapper .nav-tab.nav-tab-external-gallery{margin-right:-1px}form#post.envira-gallery #poststuff #envira-gallery h2.nav-tab-wrapper .nav-tab:hover,form#post.envira-gallery #poststuff #envira-gallery h2.nav-tab-wrapper .nav-tab.envira-active{background:#fff;border-bottom:1px solid #fff}form#post.envira-gallery #poststuff #envira-gallery h2.nav-tab-wrapper .nav-tab:focus{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}form#post.envira-gallery #poststuff #envira-gallery h2.nav-tab-wrapper .nav-tab:last-child{float:right}form#post.envira-gallery #poststuff #envira-gallery h2.nav-tab-wrapper .nav-tab input[type=radio]{display:none}form#post.envira-gallery #poststuff #envira-gallery .inside{margin:0;padding:0}form#post.envira-gallery #poststuff #envira-gallery .inside #envira-gallery-native #plupload-upload-ui{height:210px}form#post.envira-gallery #poststuff #envira-gallery .inside #envira-gallery-native #plupload-upload-ui #drag-drop-area{display:none;border:4px dashed #b4b9be;height:200px}form#post.envira-gallery #poststuff #envira-gallery .inside #envira-gallery-native #plupload-upload-ui #drag-drop-area .drag-drop-inside{margin:0 auto 0 auto}form#post.envira-gallery #poststuff #envira-gallery .inside #envira-gallery-native #plupload-upload-ui #drag-drop-area .drag-drop-inside p{display:block;text-align:center;color:#a0a5aa;position:absolute;top:50%;left:50%;margin:-10px 0 0 -10px}form#post.envira-gallery #poststuff #envira-gallery .inside #envira-gallery-native #plupload-upload-ui #drag-drop-area .drag-drop-inside p.drag-drop-info{display:none;font-size:20px}form#post.envira-gallery #poststuff #envira-gallery .inside #envira-gallery-native #plupload-upload-ui #drag-drop-area .drag-drop-inside p.drag-drop-buttons{text-align:center;position:relative;top:20px;left:0;margin:0}form#post.envira-gallery #poststuff #envira-gallery .inside #envira-gallery-native #plupload-upload-ui #drag-drop-area .drag-drop-inside p.drag-drop-buttons #plupload-browse-button{border-radius:6px;border-color:#7cc048;color:#fff;background-color:#7cc048}form#post.envira-gallery #poststuff #envira-gallery .inside #envira-gallery-native #plupload-upload-ui a.envira-media-library.button{display:none;position:absolute;margin:0 auto;left:280px;right:0;width:230px;top:115px;text-align:center}form#post.envira-gallery #poststuff #envira-gallery .inside #envira-gallery-native #plupload-upload-ui.drag-drop #drag-drop-area .drag-drop-inside{width:520px;margin:50px auto 0 auto}form#post.envira-gallery #poststuff #envira-gallery .inside #envira-gallery-native #plupload-upload-ui.drag-drop #drag-drop-area .drag-drop-inside p{position:relative;top:0;left:0;margin:0}form#post.envira-gallery #poststuff #envira-gallery .inside #envira-gallery-native #plupload-upload-ui.drag-drop #drag-drop-area .drag-drop-inside p.drag-drop-info{display:block}form#post.envira-gallery #poststuff #envira-gallery .inside #envira-gallery-native #plupload-upload-ui.drag-drop #drag-drop-area .drag-drop-inside p.drag-drop-buttons{margin:10px 0 0 0;text-align:left}form#post.envira-gallery #poststuff #envira-gallery .inside #envira-gallery-native #plupload-upload-ui .envira-progress-bar{display:none;width:100%;position:relative;height:10px;width:100%;margin:10px auto;border-radius:10px;background:#dfdfdf;background:rgba(0,0,0,.1)}form#post.envira-gallery #poststuff #envira-gallery .inside #envira-gallery-native #plupload-upload-ui .envira-progress-bar .envira-progress-bar-inner{height:10px;min-width:20px;width:0;background:#aaa;background:rgba(0,0,0,.2);border-radius:10px;-webkit-transition:width 300ms;-moz-transition:width 300ms;-ms-transition:width 300ms;-o-transition:width 300ms;transition:width 300ms}form#post.envira-gallery #poststuff #envira-gallery .inside #envira-gallery-native #plupload-upload-ui .envira-progress-bar .envira-progress-bar-status{clear:both;position:absolute;right:0;width:50%;height:30px;margin:12px 0 0 0;text-align:right}form#post.envira-gallery #poststuff #envira-gallery .inside #envira-gallery-native #plupload-upload-ui .envira-progress-bar .envira-progress-bar-status .done{display:none}form#post.envira-gallery #poststuff #envira-gallery .inside #envira-gallery-native #plupload-upload-ui .envira-progress-adding-images{display:none;width:100%;position:relative;height:10px;width:100%;margin:5px auto;border-radius:10px}form#post.envira-gallery #poststuff #envira-gallery .inside #envira-gallery-native #plupload-upload-ui .envira-progress-adding-images .envira-progress-bar-inner{height:10px;min-width:20px;width:0;border-radius:10px}form#post.envira-gallery #poststuff #envira-gallery .inside #envira-gallery-native #plupload-upload-ui .envira-progress-adding-images .envira-progress-status{clear:both;position:absolute;right:0;width:50%;height:30px;margin:12px 0 0 0;text-align:right;color:green;-webkit-transition:.05s color ease-in-out;transition:.05s color ease-in-out}form#post.envira-gallery #poststuff #envira-gallery .inside #envira-gallery-native #plupload-upload-ui .envira-progress-adding-images .envira-progress-status .spinner{float:right;margin-top:0;visibility:visible}form#post.envira-gallery #poststuff #envira-gallery .inside #envira-gallery-native #plupload-upload-ui .envira-progress-adding-images .envira-progress-status .adding_images{float:right;display:inline-block}form#post.envira-gallery #poststuff #envira-gallery .inside #envira-gallery-native #plupload-upload-ui p.upload-flash-bypass{display:none}form#post.envira-gallery #poststuff #envira-gallery .inside div.envira-tab{padding:20px}form#post.envira-gallery #poststuff #envira-gallery .inside div.envira-tab#envira-gallery-external{text-align:center}form#post.envira-gallery #poststuff #envira-gallery .inside div.envira-tab#envira-gallery-external p.envira-intro{margin:0 0 20px 0;padding:0;border:none}form#post.envira-gallery #poststuff #envira-gallery .inside div.envira-tab#envira-gallery-external ul#envira-gallery-types-nav{margin:0 0 40px 0;text-align:center}form#post.envira-gallery #poststuff #envira-gallery .inside div.envira-tab#envira-gallery-external ul#envira-gallery-types-nav li{display:inline-block;margin:0 20px 0 0;vertical-align:top}form#post.envira-gallery #poststuff #envira-gallery .inside div.envira-tab#envira-gallery-external ul#envira-gallery-types-nav li:last-child{margin:0}form#post.envira-gallery #poststuff #envira-gallery .inside div.envira-tab#envira-gallery-external ul#envira-gallery-types-nav li label,form#post.envira-gallery #poststuff #envira-gallery .inside div.envira-tab#envira-gallery-external ul#envira-gallery-types-nav li a{float:left;width:110px}form#post.envira-gallery #poststuff #envira-gallery .inside div.envira-tab#envira-gallery-external ul#envira-gallery-types-nav li label input,form#post.envira-gallery #poststuff #envira-gallery .inside div.envira-tab#envira-gallery-external ul#envira-gallery-types-nav li a input{display:none}form#post.envira-gallery #poststuff #envira-gallery .inside div.envira-tab#envira-gallery-external ul#envira-gallery-types-nav li label div.icon,form#post.envira-gallery #poststuff #envira-gallery .inside div.envira-tab#envira-gallery-external ul#envira-gallery-types-nav li a div.icon{width:110px;height:110px;margin:0 0 10px 0;border:1px solid #ddd;background-size:64px 64px;background-position:center;background-repeat:no-repeat}form#post.envira-gallery #poststuff #envira-gallery .inside div.envira-tab#envira-gallery-external ul#envira-gallery-types-nav li label div.title,form#post.envira-gallery #poststuff #envira-gallery .inside div.envira-tab#envira-gallery-external ul#envira-gallery-types-nav li a div.title{font-weight:700}form#post.envira-gallery #poststuff #envira-gallery .inside div.envira-tab#envira-gallery-external ul#envira-gallery-types-nav li:hover label div.icon,form#post.envira-gallery #poststuff #envira-gallery .inside div.envira-tab#envira-gallery-external ul#envira-gallery-types-nav li:hover a div.icon,form#post.envira-gallery #poststuff #envira-gallery .inside div.envira-tab#envira-gallery-external ul#envira-gallery-types-nav li.envira-active label div.icon,form#post.envira-gallery #poststuff #envira-gallery .inside div.envira-tab#envira-gallery-external ul#envira-gallery-types-nav li.envira-active a div.icon{background-color:#f7fcf3;border-color:#7cc048}form#post.envira-gallery #poststuff #envira-gallery .inside div.envira-tab#envira-gallery-external ul#envira-gallery-types-nav li#envira-gallery-type-fc label div.icon,form#post.envira-gallery #poststuff #envira-gallery .inside div.envira-tab#envira-gallery-external ul#envira-gallery-types-nav li#envira-gallery-type-fc a div.icon{background-image:url(../images/types/fc.png)}form#post.envira-gallery #poststuff #envira-gallery .inside div.envira-tab#envira-gallery-external ul#envira-gallery-types-nav li#envira-gallery-type-instagram label div.icon,form#post.envira-gallery #poststuff #envira-gallery .inside div.envira-tab#envira-gallery-external ul#envira-gallery-types-nav li#envira-gallery-type-instagram a div.icon{background-image:url(../images/types/instagram.png)}form#post.envira-gallery #poststuff #envira-gallery .inside div.envira-tab#envira-gallery-external a.button.button-x-large{margin-top:30px}form#post.envira-gallery #poststuff #envira-albums .inside #envira-types #envira-album-native{position:relative}form#post.envira-gallery #poststuff #envira-albums .inside #envira-types #envira-album-native ul#envira-album-drag-drop-area{z-index:2;min-height:200px;margin:0;padding:20px;border:4px dashed #b4b9be;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}form#post.envira-gallery #poststuff #envira-albums .inside #envira-types #envira-album-native ul#envira-album-drag-drop-area li{cursor:move}form#post.envira-gallery #poststuff #envira-albums .inside #envira-types #envira-album-native p.drag-drop-info{position:absolute;top:80px;z-index:1;margin:0 auto;left:0;right:0;text-align:center;color:#a0a5aa;font-size:20px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}form#post.envira-gallery #poststuff #envira-albums .inside #envira-types #envira-album-native p.drag-drop-info span{display:block}form#post.envira-gallery #poststuff #envira-albums .inside #envira-types #envira-album-native p.drag-drop-info span.click{font-size:18px}form#post.envira-gallery #poststuff #envira-albums .inside #envira-types #envira-album-native p.drag-drop-info small{display:block;margin:5px 0;font-size:14px}form#post.envira-gallery #poststuff #envira-gallery-settings,form#post.envira-gallery #poststuff #envira-albums-settings{background:#f7f7f7}form#post.envira-gallery #poststuff #envira-gallery-settings:after,form#post.envira-gallery #poststuff #envira-albums-settings:after{content:"";display:table;clear:both}form#post.envira-gallery #poststuff #envira-gallery-settings .handlediv,form#post.envira-gallery #poststuff #envira-albums-settings .handlediv{display:none}form#post.envira-gallery #poststuff #envira-gallery-settings .hndle,form#post.envira-gallery #poststuff #envira-albums-settings .hndle{display:none}form#post.envira-gallery #poststuff #envira-gallery-settings .inside,form#post.envira-gallery #poststuff #envira-albums-settings .inside{margin:0;padding:0}form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav,form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav{width:160px;margin:0;padding:0;border-right:1px solid #ddd}form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li,form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li{float:left;width:100%;margin:0;padding:0}form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li a,form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li a{float:left;width:120px;margin:0 20px;padding:20px 0 20px 25px;text-decoration:none;color:#999;border-bottom:1px solid #ddd;background-position:left center;background-repeat:no-repeat;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;transition:none;-webkit-transition:none}form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li a:hover,form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li a.envira-active,form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li a:hover,form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li a.envira-active{width:161px;margin:-1px 0 0 0;padding:20px 20px 20px 45px;text-decoration:none;color:#444;border-top:1px solid #ddd;border-bottom:1px solid #ddd;border-right:1px solid #fff;background-color:#fff;background-position:20px center;border-left:5px solid #7cc048}form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li a:focus,form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li a:focus{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li:last-child a,form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li:last-child a{border-bottom:none}form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li:last-child a:hover,form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li:last-child a:hover{border-bottom:none}form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li.envira-images a,form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li.envira-galleries a,form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li.envira-images a,form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li.envira-galleries a{background-image:url(images/icons/leaf.svg);background-size:16px 16px}form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li.envira-config a,form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li.envira-config a{background-image:url(images/icons/configuration.svg);background-size:16px 16px}form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li.envira-lightbox a,form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li.envira-lightbox a{background-image:url(images/icons/lightbox.svg);background-size:16px 16px}form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li.envira-mobile a,form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li.envira-mobile a{background-image:url(images/icons/mobile.svg);background-size:16px 16px}form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li.envira-breadcrumbs a,form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li.envira-breadcrumbs a{background-image:url(images/icons/breadcrumbs.svg);background-size:16px 16px}form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li.envira-comments a,form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li.envira-comments a{background-image:url(images/icons/comments.svg);background-size:16px 16px}form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li.envira-downloads a,form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li.envira-downloads a{background-image:url(images/icons/downloads.svg);background-size:16px 16px}form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li.envira-exif a,form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li.envira-exif a{background-image:url(images/icons/exif.svg);background-size:16px 16px}form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li.envira-pagination a,form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li.envira-pagination a{background-image:url(images/icons/pagination.svg);background-size:16px 16px}form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li.envira-pinterest a,form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li.envira-pinterest a{background-image:url(images/icons/pinterest.svg);background-size:16px 16px}form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li.envira-proofing a,form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li.envira-proofing a{background-image:url(images/icons/proofing.svg);background-size:16px 16px}form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li.envira-printing a,form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li.envira-printing a{background-image:url(images/icons/printing.svg);background-size:16px 16px}form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li.envira-slideshow a,form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li.envira-slideshow a{background-image:url(images/icons/slideshow.svg);background-size:16px 16px}form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li.envira-standalone a,form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li.envira-standalone a{background-image:url(images/icons/standalone.svg);background-size:16px 16px}form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li.envira-social a,form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li.envira-social a{background-image:url(images/icons/social.svg);background-size:16px 16px}form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li.envira-tags a,form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li.envira-tags a{background-image:url(images/icons/tags.svg);background-size:16px 16px}form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li.envira-videos a,form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li.envira-videos a{background-image:url(images/icons/video.svg);background-size:16px 16px}form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li.envira-watermarking a,form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li.envira-watermarking a{background-image:url(images/icons/watermark.svg);background-size:16px 16px}form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li.envira-woocommerce a,form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li.envira-woocommerce a{background-image:url(images/icons/woocommerce.svg);background-size:16px 16px}form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li.envira-zoom a,form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li.envira-zoom a{background-image:url(images/icons/zoom.svg);background-size:16px 16px}form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li.envira-misc a,form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li.envira-misc a{background-image:url(images/icons/misc.svg);background-size:16px 16px}form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs,form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs{margin:0 0 0 160px;padding:20px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;background:#fff;border-left:1px solid #ddd}form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs h2,form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs h2{clear:none}form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs table.form-table,form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs table.form-table{clear:none;margin:0 0 40px 0}form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs table.form-table.no-margin,form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs table.form-table.no-margin{margin:0}form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs table.form-table th,form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs table.form-table td,form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs table.form-table th,form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs table.form-table td{padding-top:20px;padding-bottom:20px}form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs table.form-table tr.sub-heading th,form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs table.form-table tr.sub-heading th{margin:0;padding:20px 0 0 0;font-style:italic;font-weight:400;font-size:16px}form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs table.form-table label.full-width,form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs table.form-table label.full-width{display:block;margin:0 0 5px 0}form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs table.form-table label.full-width:first-child,form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs table.form-table label.full-width:first-child{margin-top:5px}form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs table.form-table textarea,form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs table.form-table textarea{width:100%}form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs table.form-table input[type=checkbox],form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs table.form-table input[type=checkbox]{margin-bottom:2px}form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs table.form-table p.description,form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs table.form-table span.description,form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs table.form-table p.description,form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs table.form-table span.description{font-size:13px;font-style:italic;color:#666}form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs .upgrade-header,form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs .upgrade-header{display:table;margin-bottom:10px;width:100%;border-bottom:1px solid #ccc;padding-bottom:15px}form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs .upgrade-header img,form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs .upgrade-header img{float:left}form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs .upgrade-header h2,form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs .upgrade-header h2{float:left;font-size:24px;line-height:24px;font-weight:500;margin-top:0px;max-width:80%;padding-top:0}form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs .upgrade-content .hero-image-exterior,form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs .upgrade-content .hero-image-exterior{border:1px solid #ccc;width:100%;max-width:100%;display:table}form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs .upgrade-content .hero-image-exterior .interior,form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs .upgrade-content .hero-image-exterior .interior{padding:10px}form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs .upgrade-content .hero-image-exterior .interior img,form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs .upgrade-content .hero-image-exterior .interior img{width:100%;display:table}form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs .upgrade-content .two-column-list,form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs .upgrade-content .two-column-list{display:table;width:100%}form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs .upgrade-content .two-column-list ul,form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs .upgrade-content .two-column-list ul{list-style:none;list-style-position:inside;width:45%;float:left}form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs .upgrade-content .cta-buttons,form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs .upgrade-content .cta-buttons{margin-top:30px}form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs .upgrade-content .cta-buttons a,form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs .upgrade-content .cta-buttons a{display:inline-block;margin-right:20px}form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs #envira-tab-images nav,form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs #envira-tab-images nav{width:100%}form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs #envira-tab-images nav.envira-tab-options,form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs #envira-tab-images nav.envira-tab-options{margin:20px 0}form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs #envira-tab-images nav a.dashicons,form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs #envira-tab-images nav a.dashicons{position:absolute;color:#999}form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs #envira-tab-images nav a.dashicons.dashicons-grid-view,form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs #envira-tab-images nav a.dashicons.dashicons-grid-view{right:20px}form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs #envira-tab-images nav a.dashicons.dashicons-list-view,form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs #envira-tab-images nav a.dashicons.dashicons-list-view{right:50px}form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs #envira-tab-images nav a.dashicons.selected,form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs #envira-tab-images nav a.dashicons.selected{color:#23282d}form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs #envira-tab-images nav a.dashicons span,form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs #envira-tab-images nav a.dashicons span{display:inline-block;text-indent:-9999px}form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs #envira-tab-images nav.envira-select-options,form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs #envira-tab-images nav.envira-select-options{display:none}form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs #envira-tab-images ul#envira-gallery-output li,form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs #envira-tab-images ul#envira-gallery-output li{cursor:move}form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs #envira-tab-galleries nav,form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs #envira-tab-galleries nav{width:100%}form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs #envira-tab-galleries nav.envira-tab-options,form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs #envira-tab-galleries nav.envira-tab-options{height:40px;margin:20px 0;position:relative}form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs #envira-tab-galleries nav.envira-tab-options a.envira-galleries-add,form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs #envira-tab-galleries nav.envira-tab-options a.envira-galleries-add{display:none;position:absolute;top:0;left:0}form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs #envira-tab-galleries nav.envira-tab-options input#envira-albums-gallery-search,form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs #envira-tab-galleries nav.envira-tab-options input#envira-albums-gallery-search{position:absolute;top:0;right:0}form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs #envira-tab-galleries nav.envira-select-options,form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs #envira-tab-galleries nav.envira-select-options{display:none}form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs #envira-tab-galleries ul.envira-gallery-images-output li,form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs #envira-tab-galleries ul.envira-gallery-images-output li{cursor:move}form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs #envira-tab-galleries ul.envira-gallery-images-output li a.envira-gallery-remove-image,form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs #envira-tab-galleries ul.envira-gallery-images-output li a.envira-gallery-modify-image,form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs #envira-tab-galleries ul.envira-gallery-images-output li a.envira-gallery-remove-image,form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs #envira-tab-galleries ul.envira-gallery-images-output li a.envira-gallery-modify-image{display:none}form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs:after,form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs:after{content:"";display:table;clear:both}form#post.envira-gallery #poststuff #envira-gallery-preview:after{content:"";display:table;clear:both}form#post.envira-gallery #poststuff #envira-gallery-preview button.handlediv{display:none}form#post.envira-gallery #poststuff #envira-gallery-preview h2.hndle{display:none}form#post.envira-gallery #poststuff #envira-gallery-preview .inside{margin:0;padding:20px}.media-modal .edit-attachment-frame .edit-media-header button.right{border-right:1px solid #ddd}.media-modal .uploader-inline a.envira-media-library.button{display:none}.media-modal .envira-progress-bar .envira-progress-bar-status{display:none}.media-modal .attachment.details{-webkit-box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 7px #7cc048;box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 7px #7cc048}.media-modal .attachment.details .check{background-color:#7cc048;-webkit-box-shadow:0 0 0 1px #fff,0 0 0 2px #7cc048;box-shadow:0 0 0 1px #fff,0 0 0 2px #7cc048}.media-modal ul.attachments.envira-albums-gallery-cover-image{padding:10px}.media-modal ul.attachments.envira-bulk-edit li.attachment{cursor:default}.media-modal ul.attachments.envira-bulk-edit li.attachment .attachment-preview{cursor:default}.media-modal .attachment-details .attachment-info{padding:16px}.media-modal .attachment-details .attachment-info .settings{margin:0;padding:0;border:none}.media-modal .attachment-details .attachment-info .settings .setting{margin:0 0 20px 0;padding:0 0 20px 0;border-bottom:1px solid #ddd}.media-modal .attachment-details .attachment-info .settings .setting input[type=text],.media-modal .attachment-details .attachment-info .settings .setting textarea{display:block;width:100%;min-width:100%;margin:0}.media-modal .attachment-details .attachment-info .settings .setting input[type=checkbox]{float:left;margin:0 5px 0 0}.media-modal .attachment-details .attachment-info .settings .setting select{margin:0}.media-modal .attachment-details .attachment-info .settings .setting span.name{display:block;width:100%;min-width:100%;margin:0;padding:0;text-align:left;font-weight:700;font-size:14px}.media-modal .attachment-details .attachment-info .settings .setting span.description{text-align:left;font-style:normal;font-size:13px;font-style:italic;color:#666}.media-modal .attachment-details .attachment-info .settings .setting div.description{clear:both;float:left;margin:5px 0 0 0;text-align:left;font-size:13px;font-style:italic;color:#666}.media-modal .attachment-details .attachment-info div.actions a.button{display:inline-block}@media(-webkit-min-device-pixel-ratio: 1.25),(min-resolution: 120dpi){.wp-core-ui a.check .media-modal-icon{background-image:url(../../../../../wp-includes/images/uploader-icons-2x.png) !important;-webkit-background-size:134px 15px;background-size:134px 15px}}@media screen and (max-width: 1100px){form#post.envira-gallery #poststuff #envira-gallery .inside #envira-gallery-native #plupload-upload-ui.drag-drop #drag-drop-area,form#post.envira-gallery #poststuff #envira-albums .inside #envira-gallery-native #plupload-upload-ui.drag-drop #drag-drop-area{border-color:#d5d5d5}form#post.envira-gallery #poststuff #envira-gallery .inside #envira-gallery-native #plupload-upload-ui.drag-drop #drag-drop-area .drag-drop-inside,form#post.envira-gallery #poststuff #envira-albums .inside #envira-gallery-native #plupload-upload-ui.drag-drop #drag-drop-area .drag-drop-inside{width:100%;margin-top:20px}form#post.envira-gallery #poststuff #envira-gallery .inside #envira-gallery-native #plupload-upload-ui.drag-drop #drag-drop-area .drag-drop-inside p.drag-drop-buttons,form#post.envira-gallery #poststuff #envira-albums .inside #envira-gallery-native #plupload-upload-ui.drag-drop #drag-drop-area .drag-drop-inside p.drag-drop-buttons{text-align:center}form#post.envira-gallery #poststuff #envira-gallery .inside #envira-gallery-native #plupload-upload-ui a.envira-media-library.button,form#post.envira-gallery #poststuff #envira-albums .inside #envira-gallery-native #plupload-upload-ui a.envira-media-library.button{left:0;right:0;width:235px;top:145px}}@media screen and (max-width: 768px){form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav,form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav{width:60px}form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li a,form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li a{width:60px;height:60px;margin:0;padding:0;text-indent:-9999px;background-position:center}form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li a:hover,form#post.envira-gallery #poststuff #envira-gallery-settings ul#envira-tabs-nav li a.envira-active,form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li a:hover,form#post.envira-gallery #poststuff #envira-albums-settings ul#envira-tabs-nav li a.envira-active{width:60px;height:60px;margin:0;padding:0;text-indent:-9999px;background-position:center}form#post.envira-gallery #poststuff #envira-gallery-settings #envira-tabs,form#post.envira-gallery #poststuff #envira-albums-settings #envira-tabs{margin:0 0 0 60px}}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/css/settings.css CHANGED
@@ -1 +1 @@
1
- .envira-tab label{margin-top:7px;display:block}.nav-tab{float:left}#envira-gallery-settings{padding:20px 0}#envira-gallery-settings #envira-gallery-refresh-submit{margin-left:10px}#envira-gallery-settings .envira-hideme{display:none}#envira-gallery-settings .envira-clear{clear:both}#envira-gallery-settings .envira-clear:after{clear:both;content:'.';display:block;height:0;line-height:0;overflow:auto;visibility:hidden;zoom:1}#envira-gallery-settings .envira-gallery{margin:15px 0 20px}#envira-gallery-settings .envira-tab{display:none}#envira-gallery-settings .envira-tab.envira-active{display:block}#envira-gallery-settings .envira-tab th{width:170px;padding-right:40px}@media (min-width: 600px) and (max-width: 767px){#envira-gallery-settings .envira-tab th{width:auto}}#envira-gallery-settings .envira-tab input[type="text"],#envira-gallery-settings .envira-tab input[type="number"],#envira-gallery-settings .envira-tab input[type="password"],#envira-gallery-settings .envira-tab select,#envira-gallery-settings .envira-tab textarea{width:350px;padding-right:0;font-size:13px}@media (min-width: 600px) and (max-width: 767px){#envira-gallery-settings .envira-tab input[type="text"],#envira-gallery-settings .envira-tab input[type="number"],#envira-gallery-settings .envira-tab input[type="password"],#envira-gallery-settings .envira-tab select,#envira-gallery-settings .envira-tab textarea{width:100%}}#envira-gallery-settings .envira-tab input[type="text"],#envira-gallery-settings .envira-tab input[type="number"],#envira-gallery-settings .envira-tab input[type="password"]{height:32px}@media (min-width: 600px) and (max-width: 767px){#envira-gallery-settings .envira-tab input[type="text"],#envira-gallery-settings .envira-tab input[type="number"],#envira-gallery-settings .envira-tab input[type="password"]{height:auto}}#envira-gallery-settings .envira-tab a.envira-clipboard{width:33px;padding:0}#envira-gallery-settings .envira-tab #envira-gallery-settings-submit{margin:40px 0 0 0px}#envira-gallery-settings #envira-gallery-refresh-submit{vertical-align:baseline}#envira-tabs .form-table th,#envira-tabs .form-table td{padding-top:40px;padding-bottom:40px}@media (min-width: 768px) and (max-width: 991px){#envira-tabs .form-table th{padding-top:40px;padding-bottom:10px;padding-right:0px !important}}@media (min-width: 600px) and (max-width: 767px){#envira-tabs .form-table th{padding-top:40px;padding-bottom:10px;padding-right:0px !important}}@media (min-width: 768px) and (max-width: 991px){#envira-tabs .form-table tr#envira-settings-key-box th{padding-top:20px}}@media (min-width: 600px) and (max-width: 767px){#envira-tabs .form-table tr#envira-settings-key-box th{padding-top:20px}}@media (min-width: 768px) and (max-width: 991px){#envira-tabs .form-table td{padding-top:0;padding-right:0px}}@media (min-width: 600px) and (max-width: 767px){#envira-tabs .form-table td{padding-top:0;padding-right:0px}}#envira-tabs .form-table tr{border-bottom:1px solid #ddd}#envira-tabs .form-table tr.no-bottom-border{border-bottom:0}#envira-tabs .description{color:#666;font-size:13px;margin-top:10px}#envira-tabs-nav{border-bottom:0 !important;background-color:#fff;height:50px;padding-left:20px;margin:0 0 0 -20px;display:table;width:100%}@media (min-width: 600px) and (max-width: 767px){#envira-tabs-nav{height:auto;background-color:transparent;margin:5px 0 0 0;padding:0 10px;display:table}}#envira-tabs-nav a{float:left;border-left:1px solid #f1f1f1;border-right:1px solid #f1f1f1;border-top:0;color:#6b6e72;background:none;line-height:50px;font-size:13px;padding:0 15px;margin:0}@media (min-width: 600px) and (max-width: 767px){#envira-tabs-nav a{-webkit-border-radius:5px;-moz-border-radius:5px;-o-border-radius:5px;border-radius:5px;background-color:#f7f7f7;padding:0px 20px;margin:5px 5px 0px 0;border:1px solid #ddd;line-height:35px;min-height:30px}}#envira-tabs-nav .envira-active{background-color:#f1f1f1;border-left:0;border-right:0;border-top:0;color:#000}@media (min-width: 600px) and (max-width: 767px){#envira-tabs-nav .envira-active{background-color:#6b6e72;color:#fff}}@media (min-width: 600px) and (max-width: 767px){#envira-tabs-nav a:hover{background-color:#6b6e72;color:#fff}}@media only screen and (max-width: 770px){#envira-gallery-settings #envira-gallery-settings-submit{margin:40px 0 0 0}}
1
+ .envira-tab label{margin-top:7px;display:block}.nav-tab{float:left}#envira-gallery-settings{padding:20px 0}#envira-gallery-settings #envira-gallery-refresh-submit{margin-left:10px}#envira-gallery-settings .envira-hideme{display:none}#envira-gallery-settings .envira-clear{clear:both}#envira-gallery-settings .envira-clear:after{clear:both;content:".";display:block;height:0;line-height:0;overflow:auto;visibility:hidden;zoom:1}#envira-gallery-settings .envira-gallery{margin:15px 0 20px}#envira-gallery-settings .envira-tab{display:none}#envira-gallery-settings .envira-tab.envira-active{display:block}#envira-gallery-settings .envira-tab th{width:170px;padding-right:40px}@media(min-width: 600px)and (max-width: 767px){#envira-gallery-settings .envira-tab th{width:auto}}#envira-gallery-settings .envira-tab input[type=text],#envira-gallery-settings .envira-tab input[type=number],#envira-gallery-settings .envira-tab input[type=password],#envira-gallery-settings .envira-tab select,#envira-gallery-settings .envira-tab textarea{width:350px;padding-right:0;font-size:13px}@media(min-width: 600px)and (max-width: 767px){#envira-gallery-settings .envira-tab input[type=text],#envira-gallery-settings .envira-tab input[type=number],#envira-gallery-settings .envira-tab input[type=password],#envira-gallery-settings .envira-tab select,#envira-gallery-settings .envira-tab textarea{width:100%}}#envira-gallery-settings .envira-tab input[type=text],#envira-gallery-settings .envira-tab input[type=number],#envira-gallery-settings .envira-tab input[type=password]{height:32px}@media(min-width: 600px)and (max-width: 767px){#envira-gallery-settings .envira-tab input[type=text],#envira-gallery-settings .envira-tab input[type=number],#envira-gallery-settings .envira-tab input[type=password]{height:auto}}#envira-gallery-settings .envira-tab a.envira-clipboard{width:33px;padding:0}#envira-gallery-settings .envira-tab #envira-gallery-settings-submit{margin:40px 0 0 0px}#envira-gallery-settings #envira-gallery-refresh-submit{vertical-align:baseline}#envira-tabs .form-table th,#envira-tabs .form-table td{padding-top:40px;padding-bottom:40px}@media(min-width: 768px)and (max-width: 991px){#envira-tabs .form-table th{padding-top:40px;padding-bottom:10px;padding-right:0px !important}}@media(min-width: 600px)and (max-width: 767px){#envira-tabs .form-table th{padding-top:40px;padding-bottom:10px;padding-right:0px !important}}@media(min-width: 768px)and (max-width: 991px){#envira-tabs .form-table tr#envira-settings-key-box th{padding-top:20px}}@media(min-width: 600px)and (max-width: 767px){#envira-tabs .form-table tr#envira-settings-key-box th{padding-top:20px}}@media(min-width: 768px)and (max-width: 991px){#envira-tabs .form-table td{padding-top:0;padding-right:0px}}@media(min-width: 600px)and (max-width: 767px){#envira-tabs .form-table td{padding-top:0;padding-right:0px}}#envira-tabs .form-table tr{border-bottom:1px solid #ddd}#envira-tabs .form-table tr.no-bottom-border{border-bottom:0}#envira-tabs .description{color:#666;font-size:13px;margin-top:10px}#envira-tabs-nav{border-bottom:0 !important;background-color:#fff;height:50px;padding-left:20px;margin:0 0 0 -20px;display:table;width:100%}@media(min-width: 600px)and (max-width: 767px){#envira-tabs-nav{height:auto;background-color:rgba(0,0,0,0);margin:5px 0 0 0;padding:0 10px;display:table}}#envira-tabs-nav a{float:left;border-left:1px solid #f1f1f1;border-right:1px solid #f1f1f1;border-top:0;color:#6b6e72;background:none;line-height:50px;font-size:13px;padding:0 15px;margin:0}@media(min-width: 600px)and (max-width: 767px){#envira-tabs-nav a{-webkit-border-radius:5px;-moz-border-radius:5px;-o-border-radius:5px;border-radius:5px;background-color:#f7f7f7;padding:0px 20px;margin:5px 5px 0px 0;border:1px solid #ddd;line-height:35px;min-height:30px}}#envira-tabs-nav .envira-active{background-color:#f1f1f1;border-left:0;border-right:0;border-top:0;color:#000}@media(min-width: 600px)and (max-width: 767px){#envira-tabs-nav .envira-active{background-color:#6b6e72;color:#fff}}@media(min-width: 600px)and (max-width: 767px){#envira-tabs-nav a:hover{background-color:#6b6e72;color:#fff}}@media only screen and (max-width: 770px){#envira-gallery-settings #envira-gallery-settings-submit{margin:40px 0 0 0}}
assets/css/welcome.css CHANGED
@@ -1,1053 +1 @@
1
- @font-face {
2
- font-family: 'envira';
3
- src: url("../fonts/envira.eot");
4
- src: url("../fonts/envira.eot?#iefix") format("embedded-opentype"), url("../fonts/envira.woff") format("woff"), url("../fonts/envira.ttf") format("truetype"), url("../fonts/envira.svg#envira") format("svg");
5
- font-weight: normal;
6
- font-style: normal; }
7
-
8
- [class*='envira-']:before {
9
- display: inline-block;
10
- font-family: 'envira';
11
- font-style: normal;
12
- font-weight: normal;
13
- line-height: 1;
14
- -webkit-font-smoothing: antialiased;
15
- -moz-osx-font-smoothing: grayscale; }
16
-
17
- .envira-configuration:before {
18
- content: '\0041'; }
19
-
20
- .envira-leaf:before {
21
- content: '\0042'; }
22
-
23
- .envira-lightbox:before {
24
- content: '\0044'; }
25
-
26
- .envira-misc:before {
27
- content: '\0045'; }
28
-
29
- .envira-mobile:before {
30
- content: '\0046'; }
31
-
32
- .envira-pagination:before {
33
- content: '\0047'; }
34
-
35
- .envira-proofing:before {
36
- content: '\0048'; }
37
-
38
- .envira-slideshow:before {
39
- content: '\0049'; }
40
-
41
- .envira-tags:before {
42
- content: '\004a'; }
43
-
44
- .envira-thumbnails:before {
45
- content: '\004b'; }
46
-
47
- .envira-video:before {
48
- content: '\004c'; }
49
-
50
- .envira-watermark:before {
51
- content: '\004d'; }
52
-
53
- .envira-cloud-download:before {
54
- content: '\004e'; }
55
-
56
- .envira-toggle-on:before {
57
- content: '\004f'; }
58
-
59
- .envira-plus-circle:before {
60
- content: '\0050'; }
61
-
62
- .envira-down-arrow:before {
63
- content: '\0051'; }
64
-
65
- .envira-list:before {
66
- content: '\0052'; }
67
-
68
- .envira-grid:before {
69
- content: '\0053'; }
70
-
71
- .envira-pinterest-p:before {
72
- content: '\0054'; }
73
-
74
- .envira-whatsapp-p:before {
75
- content: '\0054'; }
76
-
77
- .envira-pencil:before {
78
- content: '\0055'; }
79
-
80
- .envira-close:before {
81
- content: '\0056'; }
82
-
83
- .envira-check:before {
84
- content: '\0057'; }
85
-
86
- .envira-welcome-wrap {
87
- padding: 20px 30px; }
88
- .envira-welcome-wrap .nav-tab-wrapper a {
89
- font-weight: 400;
90
- font-size: 18px;
91
- line-height: 24px; }
92
- .envira-welcome-wrap .nav-tab-wrapper a.nav-tab-active {
93
- font-weight: 600; }
94
- .envira-welcome-wrap .nav-tab {
95
- margin-right: 0.85em; }
96
- .envira-welcome-wrap .envira-title {
97
- width: 100%;
98
- margin-bottom: 20px; }
99
- .envira-welcome-wrap .envira-title h1.welcome-header {
100
- background: none;
101
- font-size: 42px;
102
- font-weight: 400;
103
- padding-left: 0; }
104
- .envira-welcome-wrap .envira-title h1.welcome-header span {
105
- color: #7cc048;
106
- margin-right: -10px;
107
- text-indent: 0;
108
- line-height: 1;
109
- font-size: 33px; }
110
- .envira-welcome-wrap .envira-title h1.welcome-header,
111
- .envira-welcome-wrap .envira-title .about-text {
112
- text-indent: 10px; }
113
- .envira-welcome-wrap .envira-title .about-text {
114
- font-size: 21px;
115
- line-height: 32px;
116
- font-weight: 200; }
117
- .envira-welcome-wrap .envira-welcome-sidebar {
118
- float: right;
119
- width: 20%;
120
- padding: 15px; }
121
- .envira-welcome-wrap .envira-welcome-sidebar .sidebox {
122
- background: #e6e6e6;
123
- padding: 20px;
124
- font-size: 14px;
125
- margin-bottom: 20px; }
126
- .envira-welcome-wrap .envira-welcome-sidebar .sidebox h4 {
127
- font-weight: 600;
128
- line-height: 1.3;
129
- color: #000;
130
- margin: 0 0 10px 0; }
131
- .envira-welcome-wrap .envira-welcome-sidebar .sidebox input[type='password'],
132
- .envira-welcome-wrap .envira-welcome-sidebar .sidebox input[type='text'],
133
- .envira-welcome-wrap .envira-welcome-sidebar .sidebox input[type='email'] {
134
- width: 100%; }
135
- .envira-welcome-wrap .envira-welcome-sidebar .sidebox input[type='submit'],
136
- .envira-welcome-wrap .envira-welcome-sidebar .sidebox input[type='button'] {
137
- margin: 10px 0 0; }
138
- .envira-welcome-wrap .envira-welcome-sidebar .sidebox .form-row {
139
- margin: 2px 0;
140
- width: 100%;
141
- font-size: 14px;
142
- line-break: 14px; }
143
- .envira-welcome-wrap .envira-welcome-sidebar .sidebox .form-row input[type='checkbox'] {
144
- margin: 2px; }
145
- .envira-welcome-wrap .envira-welcome-sidebar .sidebox .form-row label {
146
- margin-left: 5px;
147
- font-size: 12px; }
148
- .envira-welcome-wrap .envira-welcome-sidebar .sidebox.warning {
149
- background: #950303;
150
- color: white; }
151
- .envira-welcome-wrap .envira-welcome-sidebar .sidebox.warning h4 {
152
- color: #ffae00; }
153
- .envira-welcome-wrap .envira-welcome-sidebar .sidebox.warning p strong {
154
- color: #ffae00; }
155
- .envira-welcome-wrap .envira-welcome-sidebar sidebox:last-of-type {
156
- margin-bottom: 0; }
157
- .envira-welcome-wrap .envira-welcome-main,
158
- .envira-welcome-wrap .envira-get-started-main,
159
- .envira-welcome-wrap .envira-support-main {
160
- width: 75%;
161
- float: left; }
162
- .envira-welcome-wrap .envira-wrap {
163
- padding: 20px; }
164
-
165
- .changelog-main {
166
- padding: 0 10px; }
167
- .changelog-main ul {
168
- list-style: disc;
169
- list-style-position: inside; }
170
-
171
- /*------------------------------------------------------------------------------
172
- * 1.0 Welcome Screen
173
- *----------------------------------------------------------------------------*/
174
- /*
175
- * 1.1 Version Badge
176
- */
177
- .envirabadge {
178
- color: #d84800;
179
- display: inline-block;
180
- font: 400 150px/1 dashicons !important; }
181
-
182
- .envirabadge:before {
183
- content: "\f448"; }
184
-
185
- .about-wrap .envirabadge {
186
- position: absolute;
187
- top: 0;
188
- right: 0; }
189
-
190
- .index_page_enviracredits code,
191
- .index_page_enviraabout code {
192
- background-color: #e0e0e0;
193
- color: #636363;
194
- font-size: 1em; }
195
-
196
- @media only screen and (max-width: 500px) {
197
- .about-wrap .envirabadge {
198
- position: relative;
199
- margin: 10px auto;
200
- top: auto;
201
- right: auto; } }
202
-
203
- /*
204
- * 1.2 About Panel
205
- */
206
- body.post-type-envira div.wrap.about-wrap {
207
- padding-top: 20px;
208
- padding-left: 20px; }
209
- body.post-type-envira div.wrap.about-wrap h1.welcome-header {
210
- background: none;
211
- font-size: 42px;
212
- font-weight: 400;
213
- padding-left: 0; }
214
- body.post-type-envira div.wrap.about-wrap h1.welcome-header,
215
- body.post-type-envira div.wrap.about-wrap .about-text {
216
- text-indent: 10px; }
217
- body.post-type-envira div.wrap.about-wrap .nav-tab {
218
- padding: 15px; }
219
-
220
- /*
221
- * 1.2.1 Headline Feature
222
- */
223
- .envira_page_envira-gallery-lite-welcome .enviraheadline-feature {
224
- margin-bottom: 2em;
225
- margin-top: 3em;
226
- padding: 2em 3em; }
227
-
228
- .envira_page_envira-gallery-lite-welcome .enviraheadline {
229
- margin: 0 auto;
230
- width: 45em; }
231
-
232
- .envira_page_envira-gallery-lite-welcome .enviraheadline span.dashicons {
233
- background-color: #f1f1f1;
234
- color: #d84800;
235
- clear: left;
236
- font-size: 100px;
237
- float: left;
238
- height: 100px;
239
- line-height: 100px;
240
- margin: 0 15px 15px 0;
241
- text-align: center;
242
- width: 100px; }
243
-
244
- .envira_page_envira-gallery-support .headline-title {
245
- font-size: 2.2em;
246
- font-weight: 300;
247
- line-height: 2;
248
- margin: 1em 0 1em;
249
- text-align: center; }
250
-
251
- .envira_page_envira-gallery-lite-welcome .enviraheadline-feature p {
252
- font-size: 1.15em;
253
- margin: 1.15em auto 0.6em 0; }
254
-
255
- .envira_page_envira-gallery-lite-welcome .envira-features-section,
256
- .envira_page_envira-gallery-lite-welcome .envira-recent-section,
257
- .envira_page_envira-gallery-lite-get-started .envira-features-section,
258
- .envira_page_envira-gallery-lite-get-started .envira-recent-section,
259
- .envira_page_envira-gallery-support .envira-features-section,
260
- .envira_page_envira-gallery-support .envira-recent-section {
261
- border-bottom: 1px solid #ccc;
262
- clear: both;
263
- margin-bottom: 20px;
264
- margin-top: 10px;
265
- overflow: hidden;
266
- padding-bottom: 2em;
267
- word-break: break-word; }
268
- .envira_page_envira-gallery-lite-welcome .envira-features-section p,
269
- .envira_page_envira-gallery-lite-welcome .envira-recent-section p,
270
- .envira_page_envira-gallery-lite-get-started .envira-features-section p,
271
- .envira_page_envira-gallery-lite-get-started .envira-recent-section p,
272
- .envira_page_envira-gallery-support .envira-features-section p,
273
- .envira_page_envira-gallery-support .envira-recent-section p {
274
- font-size: 14px;
275
- line-height: 1.5; }
276
- .envira_page_envira-gallery-lite-welcome .envira-features-section img,
277
- .envira_page_envira-gallery-lite-welcome .envira-recent-section img,
278
- .envira_page_envira-gallery-lite-get-started .envira-features-section img,
279
- .envira_page_envira-gallery-lite-get-started .envira-recent-section img,
280
- .envira_page_envira-gallery-support .envira-features-section img,
281
- .envira_page_envira-gallery-support .envira-recent-section img {
282
- margin-bottom: 20px; }
283
- .envira_page_envira-gallery-lite-welcome .envira-features-section code,
284
- .envira_page_envira-gallery-lite-welcome .envira-recent-section code,
285
- .envira_page_envira-gallery-lite-get-started .envira-features-section code,
286
- .envira_page_envira-gallery-lite-get-started .envira-recent-section code,
287
- .envira_page_envira-gallery-support .envira-features-section code,
288
- .envira_page_envira-gallery-support .envira-recent-section code {
289
- word-break: break-all; }
290
- .envira_page_envira-gallery-lite-welcome .envira-features-section span.dashicons,
291
- .envira_page_envira-gallery-lite-welcome .envira-recent-section span.dashicons,
292
- .envira_page_envira-gallery-lite-get-started .envira-features-section span.dashicons,
293
- .envira_page_envira-gallery-lite-get-started .envira-recent-section span.dashicons,
294
- .envira_page_envira-gallery-support .envira-features-section span.dashicons,
295
- .envira_page_envira-gallery-support .envira-recent-section span.dashicons {
296
- /* DELETE */
297
- background-color: #fff;
298
- border-radius: 50%;
299
- clear: left;
300
- color: #d84800;
301
- font-size: 50px;
302
- float: left;
303
- height: 80px;
304
- line-height: 80px;
305
- margin: 0 15px 15px 0;
306
- text-align: center;
307
- width: 80px; }
308
- .envira_page_envira-gallery-lite-welcome .envira-features-section img.icon,
309
- .envira_page_envira-gallery-lite-welcome .envira-recent-section img.icon,
310
- .envira_page_envira-gallery-lite-get-started .envira-features-section img.icon,
311
- .envira_page_envira-gallery-lite-get-started .envira-recent-section img.icon,
312
- .envira_page_envira-gallery-support .envira-features-section img.icon,
313
- .envira_page_envira-gallery-support .envira-recent-section img.icon {
314
- background-color: transparent;
315
- clear: left;
316
- font-size: 50px;
317
- float: left;
318
- line-height: 80px;
319
- margin: 0 15px 15px 0;
320
- text-align: center;
321
- width: 80px; }
322
- .envira_page_envira-gallery-lite-welcome .envira-features-section h4.feature-title,
323
- .envira_page_envira-gallery-lite-welcome .envira-recent-section h4.feature-title,
324
- .envira_page_envira-gallery-lite-get-started .envira-features-section h4.feature-title,
325
- .envira_page_envira-gallery-lite-get-started .envira-recent-section h4.feature-title,
326
- .envira_page_envira-gallery-support .envira-features-section h4.feature-title,
327
- .envira_page_envira-gallery-support .envira-recent-section h4.feature-title {
328
- color: #7cc048;
329
- font-size: 1.35em;
330
- margin-bottom: 0.6em;
331
- margin-top: 0; }
332
- .envira_page_envira-gallery-lite-welcome .envira-features-section span.badge,
333
- .envira_page_envira-gallery-lite-welcome .envira-recent-section span.badge,
334
- .envira_page_envira-gallery-lite-get-started .envira-features-section span.badge,
335
- .envira_page_envira-gallery-lite-get-started .envira-recent-section span.badge,
336
- .envira_page_envira-gallery-support .envira-features-section span.badge,
337
- .envira_page_envira-gallery-support .envira-recent-section span.badge {
338
- font-size: 0.7em;
339
- font-weight: 500;
340
- display: inline-block;
341
- text-transform: uppercase;
342
- background-color: #7cc048;
343
- color: white;
344
- padding: 3px 5px;
345
- border-radius: 15%; }
346
- .envira_page_envira-gallery-lite-welcome .envira-features-section .headline-title,
347
- .envira_page_envira-gallery-lite-welcome .envira-recent-section .headline-title,
348
- .envira_page_envira-gallery-lite-get-started .envira-features-section .headline-title,
349
- .envira_page_envira-gallery-lite-get-started .envira-recent-section .headline-title,
350
- .envira_page_envira-gallery-support .envira-features-section .headline-title,
351
- .envira_page_envira-gallery-support .envira-recent-section .headline-title {
352
- font-size: 25px;
353
- font-weight: 400;
354
- line-height: 1.5;
355
- margin: 1em auto 2em;
356
- text-align: center;
357
- color: #000; }
358
- .envira_page_envira-gallery-lite-welcome .envira-features-section .envira-feature-with-images,
359
- .envira_page_envira-gallery-lite-welcome .envira-recent-section .envira-feature-with-images,
360
- .envira_page_envira-gallery-lite-get-started .envira-features-section .envira-feature-with-images,
361
- .envira_page_envira-gallery-lite-get-started .envira-recent-section .envira-feature-with-images,
362
- .envira_page_envira-gallery-support .envira-features-section .envira-feature-with-images,
363
- .envira_page_envira-gallery-support .envira-recent-section .envira-feature-with-images {
364
- border-bottom: 1px solid #ccc;
365
- margin-bottom: 5em;
366
- padding-bottom: 2em; }
367
- .envira_page_envira-gallery-lite-welcome .envira-features-section .envira-feature,
368
- .envira_page_envira-gallery-lite-welcome .envira-features-section .envira-feature-imaged,
369
- .envira_page_envira-gallery-lite-welcome .envira-recent-section .envira-feature,
370
- .envira_page_envira-gallery-lite-welcome .envira-recent-section .envira-feature-imaged,
371
- .envira_page_envira-gallery-lite-get-started .envira-features-section .envira-feature,
372
- .envira_page_envira-gallery-lite-get-started .envira-features-section .envira-feature-imaged,
373
- .envira_page_envira-gallery-lite-get-started .envira-recent-section .envira-feature,
374
- .envira_page_envira-gallery-lite-get-started .envira-recent-section .envira-feature-imaged,
375
- .envira_page_envira-gallery-support .envira-features-section .envira-feature,
376
- .envira_page_envira-gallery-support .envira-features-section .envira-feature-imaged,
377
- .envira_page_envira-gallery-support .envira-recent-section .envira-feature,
378
- .envira_page_envira-gallery-support .envira-recent-section .envira-feature-imaged {
379
- float: left;
380
- margin-bottom: 3em;
381
- margin-right: 4.799999999%;
382
- width: 47.6%; }
383
- .envira_page_envira-gallery-lite-welcome .envira-features-section .envira-feature.opposite,
384
- .envira_page_envira-gallery-lite-welcome .envira-features-section .envira-feature-imaged.anon,
385
- .envira_page_envira-gallery-lite-welcome .envira-recent-section .envira-feature.opposite,
386
- .envira_page_envira-gallery-lite-welcome .envira-recent-section .envira-feature-imaged.anon,
387
- .envira_page_envira-gallery-lite-get-started .envira-features-section .envira-feature.opposite,
388
- .envira_page_envira-gallery-lite-get-started .envira-features-section .envira-feature-imaged.anon,
389
- .envira_page_envira-gallery-lite-get-started .envira-recent-section .envira-feature.opposite,
390
- .envira_page_envira-gallery-lite-get-started .envira-recent-section .envira-feature-imaged.anon,
391
- .envira_page_envira-gallery-support .envira-features-section .envira-feature.opposite,
392
- .envira_page_envira-gallery-support .envira-features-section .envira-feature-imaged.anon,
393
- .envira_page_envira-gallery-support .envira-recent-section .envira-feature.opposite,
394
- .envira_page_envira-gallery-support .envira-recent-section .envira-feature-imaged.anon {
395
- margin-right: 0; }
396
- .envira_page_envira-gallery-lite-welcome .envira-features-section .envira-feature code,
397
- .envira_page_envira-gallery-lite-welcome .envira-recent-section .envira-feature code,
398
- .envira_page_envira-gallery-lite-get-started .envira-features-section .envira-feature code,
399
- .envira_page_envira-gallery-lite-get-started .envira-recent-section .envira-feature code,
400
- .envira_page_envira-gallery-support .envira-features-section .envira-feature code,
401
- .envira_page_envira-gallery-support .envira-recent-section .envira-feature code {
402
- font-size: 0.95em;
403
- line-height: 1.5; }
404
- .envira_page_envira-gallery-lite-welcome .envira-features-section .envira-big-icon,
405
- .envira_page_envira-gallery-lite-welcome .envira-recent-section .envira-big-icon,
406
- .envira_page_envira-gallery-lite-get-started .envira-features-section .envira-big-icon,
407
- .envira_page_envira-gallery-lite-get-started .envira-recent-section .envira-big-icon,
408
- .envira_page_envira-gallery-support .envira-features-section .envira-big-icon,
409
- .envira_page_envira-gallery-support .envira-recent-section .envira-big-icon {
410
- font-size: 80px;
411
- float: left;
412
- margin-left: 10px; }
413
- .envira_page_envira-gallery-lite-welcome .envira-features-section .envira-big-icon.envira-leaf,
414
- .envira_page_envira-gallery-lite-welcome .envira-recent-section .envira-big-icon.envira-leaf,
415
- .envira_page_envira-gallery-lite-get-started .envira-features-section .envira-big-icon.envira-leaf,
416
- .envira_page_envira-gallery-lite-get-started .envira-recent-section .envira-big-icon.envira-leaf,
417
- .envira_page_envira-gallery-support .envira-features-section .envira-big-icon.envira-leaf,
418
- .envira_page_envira-gallery-support .envira-recent-section .envira-big-icon.envira-leaf {
419
- color: #7cc048; }
420
-
421
- .envira_page_envira-gallery-lite-welcome .envira-feature:after,
422
- .envira_page_envira-gallery-lite-get-started .envira-feature:after,
423
- .envira_page_envira-gallery-support .envira-feature:after {
424
- clear: both;
425
- content: "";
426
- margin-bottom: 2em; }
427
-
428
- .envira_page_envira-gallery-lite-welcome .envira-feature-imaged p,
429
- .envira_page_envira-gallery-lite-get-started .envira-feature-imaged p,
430
- .envira_page_envira-gallery-support .envira-feature-imaged p {
431
- clear: left;
432
- font-size: 1.1em; }
433
-
434
- .envira_page_envira-gallery-lite-welcome .envira-feature-imaged img,
435
- .envira_page_envira-gallery-lite-get-started .envira-feature-imaged img,
436
- .envira_page_envira-gallery-support .envira-feature-imaged img {
437
- clear: left; }
438
-
439
- .envira_page_envira-gallery-lite-welcome .envira-feature .feature-title,
440
- .envira_page_envira-gallery-lite-get-started .envira-feature .feature-title,
441
- .envira_page_envira-gallery-support .envira-feature .feature-title {
442
- font-size: 1em;
443
- line-height: 1.5;
444
- margin-bottom: 0;
445
- margin-left: 110px;
446
- margin-top: 0;
447
- text-align: left; }
448
-
449
- .envira_page_envira-gallery-lite-welcome .envira-feature p,
450
- .envira_page_envira-gallery-lite-get-started .envira-feature p,
451
- .envira_page_envira-gallery-support .envira-feature p {
452
- margin-left: 110px; }
453
-
454
- /*
455
- * 1.2.3 Changelog Section
456
- */
457
- .envira_page_envira-gallery-lite-welcome .envira-recent-section,
458
- .envira_page_envira-gallery-lite-welcome .envira-posts,
459
- .envira_page_envira-gallery-lite-get-started .envira-recent-section,
460
- .envira_page_envira-gallery-lite-get-started .envira-posts,
461
- .envira_page_envira-gallery-support .envira-recent-section,
462
- .envira_page_envira-gallery-support .envira-posts {
463
- clear: both;
464
- margin-bottom: 20px;
465
- margin-top: 10px;
466
- padding-bottom: 0; }
467
- .envira_page_envira-gallery-lite-welcome .envira-recent-section h3,
468
- .envira_page_envira-gallery-lite-welcome .envira-posts h3,
469
- .envira_page_envira-gallery-lite-get-started .envira-recent-section h3,
470
- .envira_page_envira-gallery-lite-get-started .envira-posts h3,
471
- .envira_page_envira-gallery-support .envira-recent-section h3,
472
- .envira_page_envira-gallery-support .envira-posts h3 {
473
- margin-top: 0;
474
- color: #7cc048;
475
- font-size: 1.50em;
476
- line-height: 1.5;
477
- font-weight: 500; }
478
- .envira_page_envira-gallery-lite-welcome .envira-recent-section img.post-image,
479
- .envira_page_envira-gallery-lite-welcome .envira-posts img.post-image,
480
- .envira_page_envira-gallery-lite-get-started .envira-recent-section img.post-image,
481
- .envira_page_envira-gallery-lite-get-started .envira-posts img.post-image,
482
- .envira_page_envira-gallery-support .envira-recent-section img.post-image,
483
- .envira_page_envira-gallery-support .envira-posts img.post-image {
484
- max-width: 100%; }
485
-
486
- .envira_page_envira-gallery-lite-welcome .envira-recent-section,
487
- .envira_page_envira-gallery-lite-get-started .envira-recent-section,
488
- .envira_page_envira-gallery-support .envira-recent-section {
489
- padding-bottom: 20px; }
490
-
491
- .envira_page_envira-gallery-lite-welcome .envira-recent-section:after,
492
- .envira_page_envira-gallery-lite-get-started .envira-recent-section:after,
493
- .envira_page_envira-gallery-support .envira-recent-section:after {
494
- clear: both;
495
- content: "";
496
- display: table; }
497
-
498
- .envira_page_envira-gallery-lite-welcome .enviratwo-column div,
499
- .envira_page_envira-gallery-lite-get-started .enviratwo-column div,
500
- .envira_page_envira-gallery-support .enviratwo-column div {
501
- float: left;
502
- margin-right: 4.799999999%;
503
- position: relative;
504
- width: 47.6%; }
505
-
506
- .envira_page_envira-gallery-lite-welcome .envirathree-column .enviracolumn,
507
- .envira_page_envira-gallery-lite-get-started .envirathree-column .enviracolumn,
508
- .envira_page_envira-gallery-support .envirathree-column .enviracolumn {
509
- float: left;
510
- margin-right: 5%;
511
- position: relative;
512
- width: 29.95%; }
513
-
514
- .envira_page_envira-gallery-lite-welcome .enviratwo-column .enviracolumn:nth-of-type(2n),
515
- .envira_page_envira-gallery-lite-welcome .envirathree-column .enviracolumn:nth-of-type(3n),
516
- .envira_page_envira-gallery-lite-get-started .enviratwo-column .enviracolumn:nth-of-type(2n),
517
- .envira_page_envira-gallery-lite-get-started .envirathree-column .enviracolumn:nth-of-type(3n),
518
- .envira_page_envira-gallery-support .enviratwo-column .enviracolumn:nth-of-type(2n),
519
- .envira_page_envira-gallery-support .envirathree-column .enviracolumn:nth-of-type(3n) {
520
- margin-right: 0; }
521
-
522
- .envira_page_envira-gallery-lite-welcome .envira-recent,
523
- .envira_page_envira-gallery-lite-get-started .envira-recent,
524
- .envira_page_envira-gallery-support .envira-recent {
525
- margin-right: 0; }
526
- .envira_page_envira-gallery-lite-welcome .envira-recent p,
527
- .envira_page_envira-gallery-lite-get-started .envira-recent p,
528
- .envira_page_envira-gallery-support .envira-recent p {
529
- margin-bottom: 0; }
530
-
531
- .envira_page_envira-gallery-lite-welcome .envira-recent:after,
532
- .envira_page_envira-gallery-lite-get-started .envira-recent:after,
533
- .envira_page_envira-gallery-support .envira-recent:after {
534
- clear: both;
535
- content: "";
536
- display: table; }
537
-
538
- .envira_page_envira-gallery-lite-welcome .envira-recent .title,
539
- .envira_page_envira-gallery-lite-get-started .envira-recent .title,
540
- .envira_page_envira-gallery-support .envira-recent .title {
541
- font-size: 14px;
542
- margin-bottom: 0.75em;
543
- margin-top: 0; }
544
-
545
- .envira_page_envira-gallery-lite-welcome .envira-recent-url,
546
- .envira_page_envira-gallery-lite-get-started .envira-recent-url,
547
- .envira_page_envira-gallery-support .envira-recent-url {
548
- text-align: center; }
549
-
550
- .envira_page_envira-gallery-lite-welcome .envira-assets,
551
- .envira_page_envira-gallery-lite-get-started .envira-assets,
552
- .envira_page_envira-gallery-support .envira-assets {
553
- clear: both;
554
- margin-bottom: 3em; }
555
-
556
- .envira_page_envira-gallery-lite-welcome article.docs li,
557
- .envira_page_envira-gallery-lite-get-started article.docs li,
558
- .envira_page_envira-gallery-support article.docs li {
559
- width: 45%;
560
- display: inline-block; }
561
-
562
- .envira_page_envira-gallery-support h3.headline-title {
563
- margin-bottom: 1em; }
564
-
565
- .envira_page_envira-gallery-lite-welcome .envira-recent-section {
566
- padding-bottom: 30px; }
567
- .envira_page_envira-gallery-lite-welcome .envira-recent-section h3.headline-title {
568
- margin-bottom: 1.25em; }
569
- .envira_page_envira-gallery-lite-welcome .envira-recent-section.last-section {
570
- padding-top: 0px;
571
- padding-bottom: 0; }
572
- .envira_page_envira-gallery-lite-welcome .envira-recent-section.last-section h3 {
573
- margin-bottom: 1.25em; }
574
-
575
- #changelog-envira-gallery h3 {
576
- background: #7cc048;
577
- color: white;
578
- font-weight: 500;
579
- width: 100%;
580
- padding: 5px; }
581
-
582
- #changelog-envira-gallery ul {
583
- list-style: inside; }
584
-
585
- #changelog-envira-gallery li {
586
- width: 80%;
587
- vertical-align: top; }
588
-
589
- .envira-headline-button {
590
- margin: 20px auto 0 auto; }
591
- .envira-headline-button .button.button-primary {
592
- font-size: 17px;
593
- line-height: 30px; }
594
-
595
- div.label {
596
- float: left;
597
- margin-right: 10px; }
598
-
599
- div.icons-container {
600
- display: table;
601
- clear: both; }
602
-
603
- ul.social-icons {
604
- float: left;
605
- margin-top: 0px;
606
- margin-bottom: 5px; }
607
- ul.social-icons li {
608
- float: left;
609
- width: 20px;
610
- height: 20px;
611
- margin-right: 5px; }
612
- ul.social-icons li a {
613
- width: 20px;
614
- height: 20px;
615
- background-size: 20px 20px;
616
- text-decoration: none;
617
- text-indent: -999em;
618
- float: left; }
619
- ul.social-icons li a.facebook {
620
- background-image: url(../images/icons/facebook-black.svg);
621
- background-repeat: no-repeat; }
622
- ul.social-icons li a.twitter {
623
- background-image: url(../images/icons/twitter-black.svg);
624
- background-repeat: no-repeat; }
625
- ul.social-icons li a.instagram {
626
- background-image: url(../images/icons/instagram-black.svg);
627
- background-repeat: no-repeat;
628
- opacity: 0.7; }
629
- ul.social-icons li a.youtube {
630
- background-image: url(../images/icons/youtube-black.svg);
631
- background-repeat: no-repeat; }
632
- ul.social-icons li a.pinterest {
633
- background-image: url(../images/icons/pinterest-black.svg);
634
- background-repeat: no-repeat; }
635
-
636
- /*------------------------------------------------------------------------------
637
- * 2.0 Addon Screen
638
- *----------------------------------------------------------------------------*/
639
- body.envira_page_envira-gallery-lite-welcome-addons #wpfooter {
640
- position: relative; }
641
-
642
- body.envira_page_envira-gallery-lite-welcome-addons .envira-addons-area.unlicensed h3 {
643
- display: none; }
644
-
645
- body.envira_page_envira-gallery-lite-welcome-addons #envira-addons .envira-addons-area .envira-addon p {
646
- font-size: 18px; }
647
-
648
- /*------------------------------------------------------------------------------
649
- * 3.0 Upgrade Screen
650
- *----------------------------------------------------------------------------*/
651
- .upgrade-wrap {
652
- text-align: center; }
653
- .upgrade-wrap h3 {
654
- font-size: 28px;
655
- line-height: 28px;
656
- font-weight: 400;
657
- margin: 35px auto 10px auto; }
658
- .upgrade-wrap h4.headline-subtitle {
659
- font-size: 20px;
660
- line-height: 24px;
661
- font-weight: 200;
662
- margin: 20px auto;
663
- display: block; }
664
- .upgrade-wrap a.button {
665
- margin: 10px auto;
666
- display: table;
667
- clear: both; }
668
-
669
- .upgrade-list {
670
- display: table;
671
- margin-bottom: 40px;
672
- border-bottom: 1px solid #ccc;
673
- padding-bottom: 35px; }
674
- .upgrade-list ul {
675
- width: 85%;
676
- margin: 20px auto; }
677
- .upgrade-list li {
678
- width: 50%;
679
- margin: 20px auto;
680
- float: left;
681
- display: block;
682
- font-size: 16px;
683
- line-height: 18px;
684
- min-height: 75px; }
685
- .upgrade-list li .interior {
686
- padding: 0 10px; }
687
- .upgrade-list li h5 {
688
- font-size: 18px;
689
- line-height: 24px;
690
- margin: 5px auto;
691
- font-weight: 700; }
692
- .upgrade-list li p {
693
- margin: 0; }
694
-
695
- .upgrade-video {
696
- position: relative;
697
- padding-bottom: 56.25%;
698
- /* 16:9 */
699
- padding-top: 25px;
700
- height: 0; }
701
-
702
- .upgrade-video iframe {
703
- position: absolute;
704
- top: 0;
705
- left: 0;
706
- width: 100%;
707
- height: 100%; }
708
-
709
- /*------------------------------------------------------------------------------
710
- * 4.0 Lite vs Pro
711
- *----------------------------------------------------------------------------*/
712
- body.envira_page_envira-gallery-lite-litevspro .envira-get-started-main {
713
- width: 100%; }
714
-
715
- #envira-admin-litevspro .centered {
716
- text-align: center; }
717
-
718
- #envira-admin-litevspro h1 {
719
- font-size: 34px;
720
- line-height: 32px; }
721
-
722
- #envira-admin-litevspro p.centered {
723
- font-size: 18px;
724
- line-height: 21px; }
725
-
726
- #envira-admin-litevspro.wrap {
727
- margin-left: 0;
728
- margin-right: 0; }
729
-
730
- #envira-admin-litevspro .litevspro-table-header {
731
- background: #fff;
732
- border-right: 1px solid #DDDDDD;
733
- border-left: 1px solid #DDDDDD; }
734
-
735
- #envira-admin-litevspro .envira-admin-litevspro-section {
736
- margin: 0 0 30px 0;
737
- padding: 30px;
738
- line-height: 2; }
739
- #envira-admin-litevspro .envira-admin-litevspro-section.no-bottom {
740
- margin-bottom: 0;
741
- padding-bottom: 0; }
742
- #envira-admin-litevspro .envira-admin-litevspro-section.litevspro-table-header {
743
- padding-bottom: 15px; }
744
-
745
- #envira-admin-litevspro table tr td {
746
- border-bottom: 1px solid #DDDDDD;
747
- border-right: 1px solid #DDDDDD;
748
- padding: 30px;
749
- vertical-align: top;
750
- width: 33%; }
751
- #envira-admin-litevspro table tr td p {
752
- font-size: 18px;
753
- line-height: 24px; }
754
-
755
- #envira-admin-litevspro table tr td:last-child {
756
- border-right: 0; }
757
-
758
- #envira-admin-litevspro table {
759
- border-bottom: 0; }
760
-
761
- #envira-admin-litevspro .envira-admin-litevspro-section-hero {
762
- border-top: 0;
763
- font-size: 16px;
764
- line-height: 18px; }
765
- #envira-admin-litevspro .envira-admin-litevspro-section-hero p {
766
- text-align: center;
767
- font-size: 16px;
768
- line-height: 18px; }
769
- #envira-admin-litevspro .envira-admin-litevspro-section-hero h3.call-to-action {
770
- font-size: 21px;
771
- font-weight: 500;
772
- text-align: center; }
773
- #envira-admin-litevspro .envira-admin-litevspro-section-hero span.envira-deal {
774
- font-weight: 500;
775
- color: green; }
776
-
777
- #envira-admin-litevspro .envira-admin-litevspro-section-table {
778
- padding-left: 0;
779
- padding-right: 0;
780
- padding-top: 0; }
781
- #envira-admin-litevspro .envira-admin-litevspro-section-table table {
782
- width: 100%; }
783
- #envira-admin-litevspro .envira-admin-litevspro-section-table table tr td:first-child {
784
- border-left: 1px solid #DDDDDD;
785
- border-bottom-color: #dddddd;
786
- border-bottom-style: solid;
787
- border-bottom-width: 1px; }
788
- #envira-admin-litevspro .envira-admin-litevspro-section-table table tr td:last-child {
789
- border-right: 1px solid #DDDDDD;
790
- border-bottom-color: #dddddd;
791
- border-bottom-style: solid;
792
- border-bottom-width: 1px;
793
- background-color: #F3F9FE; }
794
- #envira-admin-litevspro .envira-admin-litevspro-section-table table tr:first-child td {
795
- border-top: 1px solid #DDD; }
796
- #envira-admin-litevspro .envira-admin-litevspro-section-table table th {
797
- text-align: left;
798
- font-weight: 600;
799
- font-size: 18px;
800
- padding-left: 30px;
801
- padding-bottom: 20px;
802
- padding-top: 20px;
803
- border-top: 1px solid #DDDDDD;
804
- border-right: 1px solid #DDDDDD;
805
- vertical-align: middle; }
806
- #envira-admin-litevspro .envira-admin-litevspro-section-table table th:last-child {
807
- border-right: 1px solid #DDDDDD; }
808
- #envira-admin-litevspro .envira-admin-litevspro-section-table table th:first-child {
809
- border-left: 1px solid #DDDDDD; }
810
- #envira-admin-litevspro .envira-admin-litevspro-section-table table td {
811
- background: #fff; }
812
- #envira-admin-litevspro .envira-admin-litevspro-section-table table td strong {
813
- display: block; }
814
- #envira-admin-litevspro .envira-admin-litevspro-section-table table p {
815
- background-repeat: no-repeat;
816
- background-size: 15px auto;
817
- background-position: 0 6px;
818
- margin: 0; }
819
- #envira-admin-litevspro .envira-admin-litevspro-section-table table p.features-full {
820
- padding-left: 30px;
821
- background-position: 0 4px;
822
- background-image: url(../images/icons/litevspro/tick.svg); }
823
- #envira-admin-litevspro .envira-admin-litevspro-section-table table p.features-none {
824
- padding-left: 30px;
825
- background-position: 6px 6px;
826
- background-image: url(../images/icons/litevspro/cross_red.svg);
827
- background-size: 15px auto; }
828
- #envira-admin-litevspro .envira-admin-litevspro-section-table table p.features-partial {
829
- padding-left: 30px;
830
- background-position: 6px 6px;
831
- background-size: 15px auto;
832
- background-image: url(../images/icons/litevspro/cross.svg); }
833
-
834
- /*------------------------------------------------------------------------------
835
- * 5.0 Getting Started (Revised)
836
- *----------------------------------------------------------------------------*/
837
- .envira-get-started-section {
838
- margin-top: 20px; }
839
- .envira-get-started-section .centered {
840
- text-align: center; }
841
- .envira-get-started-section .envira-admin-get-started-panel {
842
- display: flex;
843
- background: white;
844
- padding: 20px;
845
- font-size: 16px;
846
- line-height: 25px;
847
- margin-bottom: 20px; }
848
- .envira-get-started-section .envira-admin-get-started-panel h2 {
849
- font-size: 2em;
850
- font-weight: 500;
851
- line-height: 1.2em;
852
- margin-top: 0;
853
- margin-bottom: 0;
854
- text-transform: capitalize; }
855
- .envira-get-started-section .envira-admin-get-started-panel p {
856
- font-size: 16px;
857
- line-height: 20px; }
858
- .envira-get-started-section .envira-admin-get-started-panel p a {
859
- font-weight: 500;
860
- color: #7cc048;
861
- text-decoration: none; }
862
- .envira-get-started-section .envira-admin-get-started-panel p a:hover {
863
- text-decoration: underline; }
864
- .envira-get-started-section .envira-admin-get-started-panel ul {
865
- list-style: disc;
866
- list-style-position: inside; }
867
- .envira-get-started-section .envira-admin-get-started-panel ul.list-of-links {
868
- list-style: none; }
869
- .envira-get-started-section .envira-admin-get-started-panel ul.list-of-links a {
870
- color: #7cc048;
871
- text-decoration: none; }
872
- .envira-get-started-section .envira-admin-get-started-panel ul.list-of-links a:hover {
873
- text-decoration: underline; }
874
- .envira-get-started-section .envira-admin-get-started-panel .feature-photo-column {
875
- padding-left: 30px;
876
- max-width: 360px;
877
- min-width: 350px;
878
- display: inherit; }
879
- .envira-get-started-section .envira-admin-get-started-panel .feature-photo-column img {
880
- width: 100%;
881
- margin: auto; }
882
- .envira-get-started-section .envira-admin-get-started-panel .feature-photo-column.photo-left {
883
- padding-left: 0;
884
- padding-right: 30px; }
885
- .envira-get-started-section .envira-admin-get-started-panel.mini-panel .feature-photo-column {
886
- padding-top: 10px; }
887
- .envira-get-started-section .envira-admin-get-started-panel.mini-panel .feature-photo-column a {
888
- margin: 0 auto;
889
- height: auto; }
890
- .envira-get-started-section .envira-admin-get-started-panel.mini-panel .feature-photo-column img {
891
- width: auto;
892
- margin: 0 auto; }
893
- .envira-get-started-section .envira-admin-get-started-banner {
894
- display: flex;
895
- background: black;
896
- color: white;
897
- padding: 10px 0;
898
- margin-bottom: 20px; }
899
- .envira-get-started-section .envira-admin-get-started-banner .banner-text {
900
- display: block;
901
- margin: 0 auto;
902
- padding: 10px 0 0 0;
903
- text-align: center;
904
- font-size: 1.5em;
905
- text-align: left; }
906
- .envira-get-started-section .envira-admin-get-started-banner .banner-text h3 {
907
- font-size: 1.5em;
908
- line-height: 1.3em;
909
- margin: 5px auto;
910
- color: white; }
911
- .envira-get-started-section .envira-admin-get-started-banner .banner-button {
912
- margin: auto;
913
- max-width: 33%;
914
- height: 100%;
915
- vertical-align: middle; }
916
- .envira-get-started-section .envira-admin-get-started-banner .banner-button a {
917
- height: auto;
918
- padding: 15px 25px;
919
- font-size: 1.45em;
920
- display: block;
921
- margin: auto; }
922
-
923
- /*------------------------------------------------------------------------------
924
- * 1.0 Media Queries
925
- *----------------------------------------------------------------------------*/
926
- @media screen and (max-width: 782px) {
927
- .envira-welcome-wrap .envira-welcome-sidebar {
928
- float: none;
929
- width: 100%;
930
- padding: 0; }
931
- .envira-welcome-wrap .envira-welcome-main {
932
- float: none;
933
- width: 100%; }
934
- .envira-welcome-wrap .envira-title h1.welcome-header {
935
- line-height: 42px; }
936
- .envira-welcome-wrap .envira-title h1.welcome-header,
937
- .envira-welcome-wrap .envira-title .about-text {
938
- text-indent: 0; }
939
- .enviraheadline-feature,
940
- .envira-features-section,
941
- .envira-recent-section {
942
- margin-left: 20px;
943
- margin-right: 20px; }
944
- .envira_page_envira-gallery-lite-welcome .enviraheadline-feature {
945
- padding: 0; }
946
- .envira_page_envira-gallery-lite-welcome .enviraheadline {
947
- margin: 0;
948
- width: 97%; }
949
- .envira_page_envira-gallery-lite-welcome .envira-features-section {
950
- clear: both;
951
- margin-bottom: 0;
952
- margin-top: 2em;
953
- padding-bottom: 2em; }
954
- .envira_page_envira-gallery-lite-welcome .envira-features-section .envira-feature-with-images {
955
- margin-bottom: 2em; }
956
- .envira_page_envira-gallery-lite-welcome .envira-features-section .headline-title {
957
- margin-bottom: 1em; }
958
- .envira_page_envira-gallery-lite-welcome .envira-recent-section .changelog-title {
959
- font-size: 1.25em;
960
- line-height: 1.5;
961
- margin-bottom: 0.5em;
962
- margin-top: 0.5em; }
963
- .envira_page_envira-gallery-lite-welcome .envira-features-section .feature-title,
964
- .envira_page_envira-gallery-lite-welcome .envira-recent-section .title {
965
- font-size: 1.25em;
966
- line-height: 1.25;
967
- margin-top: 0.6em;
968
- text-align: left; }
969
- .envira_page_envira-gallery-lite-welcome .envira-features-section .envira-feature,
970
- .envira_page_envira-gallery-lite-welcome .envira-features-section .envira-feature-imaged {
971
- clear: both;
972
- float: left;
973
- margin-bottom: 1em;
974
- margin-top: 1em;
975
- margin-right: 0;
976
- padding-right: 1em;
977
- width: 100%; }
978
- .envira_page_envira-gallery-lite-welcome .envira-features-section .envira-feature-imaged p {
979
- font-size: 1em; }
980
- .envira_page_envira-gallery-lite-welcome .envira-features-section .envira-feature span {
981
- margin-top: 0.33em; }
982
- .envira_page_envira-gallery-lite-welcome .envira-feature.opposite .feature-title,
983
- .envira_page_envira-gallery-lite-welcome .envira-feature.opposite p {
984
- float: none; }
985
- .envira_page_envira-gallery-lite-welcome .envira-recent-section {
986
- clear: both;
987
- margin-bottom: 2em;
988
- margin-top: 2em; }
989
- .envira_page_envira-gallery-lite-welcome .envira-recent {
990
- margin-bottom: 0; }
991
- .envira_page_envira-gallery-lite-welcome .envira-recent-section .changelog-title {
992
- margin-bottom: 0.5em; }
993
- .envira_page_envira-gallery-lite-welcome .envira-recent .title {
994
- font-size: 1em; }
995
- .envira_page_envira-gallery-lite-welcome .envira-recent p {
996
- margin-bottom: 1em; }
997
- .envira_page_envira-gallery-lite-welcome .envira-recent-section .two-col > div,
998
- .envira_page_envira-gallery-lite-welcome .envira-recent-section .three-col .col {
999
- margin-top: 0;
1000
- padding-bottom: 0.5em;
1001
- width: 100%; }
1002
- .envira_page_envira-gallery-lite-welcome .envirathree-column .enviracolumn {
1003
- width: 100%; } }
1004
-
1005
- @media screen and (max-width: 1400px) {
1006
- .envira-admin-get-started-banner.middle .banner-text,
1007
- .envira-admin-get-started-banner.bottom .banner-text {
1008
- padding: 10px 0 0 10px; }
1009
- .envira-admin-get-started-banner.middle .banner-text h3,
1010
- .envira-admin-get-started-banner.bottom .banner-text h3 {
1011
- line-height: 1.3em; }
1012
- .envira-admin-get-started-banner.middle .banner-button,
1013
- .envira-admin-get-started-banner.bottom .banner-button {
1014
- margin-right: 10px; }
1015
- .envira-admin-get-started-banner.middle .banner-button a,
1016
- .envira-admin-get-started-banner.bottom .banner-button a {
1017
- font-size: 16px; } }
1018
-
1019
- @media screen and (max-width: 1120px) {
1020
- .envira-admin-get-started-banner.middle .banner-button a,
1021
- .envira-admin-get-started-banner.bottom .banner-button a {
1022
- font-size: 14px; } }
1023
-
1024
- @media screen and (max-width: 360px) {
1025
- .envira_page_envira-gallery-lite-welcome .enviraheadline {
1026
- text-align: center; }
1027
- .envira_page_envira-gallery-lite-welcome .enviraheadline span.dashicons {
1028
- clear: none;
1029
- font-size: 80px;
1030
- float: none;
1031
- height: 80px;
1032
- line-height: 80px;
1033
- margin: 0 auto;
1034
- width: 80px; }
1035
- .envira_page_envira-gallery-lite-welcome .enviraheadline-feature .headline-title,
1036
- .envira_page_envira-gallery-lite-welcome .envira-features-section .headline-title {
1037
- font-size: 1.5em;
1038
- line-height: 1.5;
1039
- text-align: left; }
1040
- .envira_page_envira-gallery-lite-welcome .enviraheadline-feature .headline-title {
1041
- margin: 1em 0 0; }
1042
- .envira_page_envira-gallery-lite-welcome .enviraheadline-feature p {
1043
- margin: 1.15em auto 0.6em 0;
1044
- text-align: left;
1045
- width: auto; }
1046
- .envira_page_envira-gallery-lite-welcome .envira-features-section .envira-feature {
1047
- text-align: center; }
1048
- .envira_page_envira-gallery-lite-welcome .envira-features-section span.dashicons {
1049
- float: none; }
1050
- .envira_page_envira-gallery-lite-welcome .envira-features-section .feature-title,
1051
- .envira_page_envira-gallery-lite-welcome .envira-features-section p {
1052
- margin-left: 0;
1053
- text-align: left; } }
1
+ body.envira_page_envira-gallery-lite-welcome,body.envira_page_envira-gallery-lite-get-started,body.envira_page_envira-gallery-lite-upgrade,body.envira_page_envira-gallery-lite-partners,body.envira_page_envira-gallery-lite-litevspro{background-color:#fff}body.envira_page_envira-gallery-lite-welcome #envira-header,body.envira_page_envira-gallery-lite-get-started #envira-header,body.envira_page_envira-gallery-lite-upgrade #envira-header,body.envira_page_envira-gallery-lite-partners #envira-header,body.envira_page_envira-gallery-lite-litevspro #envira-header{height:160px}body.envira_page_envira-gallery-lite-welcome .nav-tab-wrapper,body.envira_page_envira-gallery-lite-get-started .nav-tab-wrapper,body.envira_page_envira-gallery-lite-upgrade .nav-tab-wrapper,body.envira_page_envira-gallery-lite-partners .nav-tab-wrapper,body.envira_page_envira-gallery-lite-litevspro .nav-tab-wrapper{border:none;margin-top:-50px}body.envira_page_envira-gallery-lite-welcome .nav-tab,body.envira_page_envira-gallery-lite-get-started .nav-tab,body.envira_page_envira-gallery-lite-upgrade .nav-tab,body.envira_page_envira-gallery-lite-partners .nav-tab,body.envira_page_envira-gallery-lite-litevspro .nav-tab{font-size:16px;border:none;background:rgba(0,0,0,0);padding:10px 24px;font-weight:400;margin-left:20px}body.envira_page_envira-gallery-lite-welcome .nav-tab-active,body.envira_page_envira-gallery-lite-get-started .nav-tab-active,body.envira_page_envira-gallery-lite-upgrade .nav-tab-active,body.envira_page_envira-gallery-lite-partners .nav-tab-active,body.envira_page_envira-gallery-lite-litevspro .nav-tab-active{background-color:#fff;font-weight:600;border-top-left-radius:6px;border-top-right-radius:6px}.envira-welcome-wrap{padding:30px 60px}.envira-welcome-wrap .nav-tab-wrapper a{font-weight:400;font-size:18px;line-height:24px}.envira-welcome-wrap .nav-tab-wrapper a.nav-tab-active{font-weight:600}.envira-welcome-wrap .nav-tab{margin-right:.85em}.envira-welcome-wrap .envira-title{width:100%;margin-bottom:20px}.envira-welcome-wrap .envira-title h1.welcome-header{background:none;font-size:42px;font-weight:400;padding-left:0}.envira-welcome-wrap .envira-title h1.welcome-header span{color:#7cc048;margin-right:-10px;text-indent:0;line-height:1;font-size:33px}.envira-welcome-wrap .envira-title h1.welcome-header,.envira-welcome-wrap .envira-title .about-text{text-indent:10px}.envira-welcome-wrap .envira-title .about-text{font-size:21px;line-height:32px;font-weight:200}.envira-welcome-wrap .envira-welcome-sidebar{float:right;width:20%;padding:15px}.envira-welcome-wrap .envira-welcome-sidebar .sidebox{background:#e6e6e6;padding:20px;font-size:14px;margin-bottom:20px}.envira-welcome-wrap .envira-welcome-sidebar .sidebox h4{font-weight:600;line-height:1.3;color:#000;margin:0 0 10px 0}.envira-welcome-wrap .envira-welcome-sidebar .sidebox input[type=password],.envira-welcome-wrap .envira-welcome-sidebar .sidebox input[type=text],.envira-welcome-wrap .envira-welcome-sidebar .sidebox input[type=email]{width:100%}.envira-welcome-wrap .envira-welcome-sidebar .sidebox input[type=submit],.envira-welcome-wrap .envira-welcome-sidebar .sidebox input[type=button]{margin:10px 0 0}.envira-welcome-wrap .envira-welcome-sidebar .sidebox .form-row{margin:2px 0;width:100%;font-size:14px;line-break:14px}.envira-welcome-wrap .envira-welcome-sidebar .sidebox .form-row input[type=checkbox]{margin:2px}.envira-welcome-wrap .envira-welcome-sidebar .sidebox .form-row label{margin-left:5px;font-size:12px}.envira-welcome-wrap .envira-welcome-sidebar .sidebox.warning{background:#950303;color:#fff}.envira-welcome-wrap .envira-welcome-sidebar .sidebox.warning h4{color:#ffae00}.envira-welcome-wrap .envira-welcome-sidebar .sidebox.warning p strong{color:#ffae00}.envira-welcome-wrap .envira-welcome-sidebar sidebox:last-of-type{margin-bottom:0}.envira-welcome-wrap .envira-wrap{padding:20px}.envira-panel{display:flex;background:#fff;padding:60px;font-size:16px;line-height:25px;margin-bottom:60px}.envira-panel h2{font-size:2em;font-weight:500;line-height:1.2em;margin-top:0;margin-bottom:0;text-transform:capitalize}.envira-panel p{font-size:16px;line-height:20px}.envira-panel p a{font-weight:500;color:#7cc048;text-decoration:none}.envira-panel p a:hover{text-decoration:underline}.envira-panel ul{list-style:disc;list-style-position:inside}.envira-panel ul.list-of-links{list-style:none}.envira-panel ul.list-of-links a{color:#7cc048;text-decoration:none}.envira-panel ul.list-of-links a:hover{text-decoration:underline}.envira-panel .feature-photo-column{padding-left:30px;display:inherit}.envira-panel .feature-photo-column img{width:100%;margin:auto}.envira-panel .feature-photo-column.photo-left{padding-left:0;padding-right:30px}.envira-panel.mini-panel .feature-photo-column{padding-top:10px}.envira-panel.mini-panel .feature-photo-column a{margin:0 auto;height:auto}.envira-panel.mini-panel .feature-photo-column img{width:auto;margin:0 auto}.about-wrap .envirabadge{position:absolute;top:0;right:0}.index_page_enviracredits code,.index_page_enviraabout code{background-color:#e0e0e0;color:#636363;font-size:1em}@media only screen and (max-width: 500px){.about-wrap .envirabadge{position:relative;margin:10px auto;top:auto;right:auto}}body.post-type-envira div.wrap.about-wrap{padding-top:20px;padding-left:20px}body.post-type-envira div.wrap.about-wrap h1.welcome-header{background:none;font-size:42px;font-weight:400;padding-left:0}body.post-type-envira div.wrap.about-wrap h1.welcome-header,body.post-type-envira div.wrap.about-wrap .about-text{text-indent:10px}body.post-type-envira div.wrap.about-wrap .nav-tab{padding:15px}.envira_page_envira-gallery-lite-welcome .enviraheadline-feature{margin-bottom:2em;margin-top:3em;padding:2em 3em}.envira_page_envira-gallery-lite-welcome .enviraheadline{margin:0 auto;width:45em}.envira_page_envira-gallery-lite-welcome .enviraheadline span.dashicons{background-color:#f1f1f1;color:#d84800;clear:left;font-size:100px;float:left;height:100px;line-height:100px;margin:0 15px 15px 0;text-align:center;width:100px}.envira_page_envira-gallery-support .headline-title{font-size:2.2em;font-weight:300;line-height:2;margin:1em 0 1em;text-align:center}.envira_page_envira-gallery-lite-welcome .enviraheadline-feature p{font-size:1.15em;margin:1.15em auto .6em 0}.envira_page_envira-gallery-lite-welcome .envira-features-section,.envira_page_envira-gallery-lite-welcome .envira-recent-section,.envira_page_envira-gallery-lite-get-started .envira-features-section,.envira_page_envira-gallery-lite-get-started .envira-recent-section,.envira_page_envira-gallery-support .envira-features-section,.envira_page_envira-gallery-support .envira-recent-section{border-bottom:1px solid #ccc;clear:both;margin-bottom:20px;margin-top:10px;overflow:hidden;padding-bottom:2em;word-break:break-word}.envira_page_envira-gallery-lite-welcome .envira-features-section p,.envira_page_envira-gallery-lite-welcome .envira-recent-section p,.envira_page_envira-gallery-lite-get-started .envira-features-section p,.envira_page_envira-gallery-lite-get-started .envira-recent-section p,.envira_page_envira-gallery-support .envira-features-section p,.envira_page_envira-gallery-support .envira-recent-section p{font-size:14px;line-height:1.5}.envira_page_envira-gallery-lite-welcome .envira-features-section img,.envira_page_envira-gallery-lite-welcome .envira-recent-section img,.envira_page_envira-gallery-lite-get-started .envira-features-section img,.envira_page_envira-gallery-lite-get-started .envira-recent-section img,.envira_page_envira-gallery-support .envira-features-section img,.envira_page_envira-gallery-support .envira-recent-section img{margin-bottom:20px}.envira_page_envira-gallery-lite-welcome .envira-features-section code,.envira_page_envira-gallery-lite-welcome .envira-recent-section code,.envira_page_envira-gallery-lite-get-started .envira-features-section code,.envira_page_envira-gallery-lite-get-started .envira-recent-section code,.envira_page_envira-gallery-support .envira-features-section code,.envira_page_envira-gallery-support .envira-recent-section code{word-break:break-all}.envira_page_envira-gallery-lite-welcome .envira-features-section span.dashicons,.envira_page_envira-gallery-lite-welcome .envira-recent-section span.dashicons,.envira_page_envira-gallery-lite-get-started .envira-features-section span.dashicons,.envira_page_envira-gallery-lite-get-started .envira-recent-section span.dashicons,.envira_page_envira-gallery-support .envira-features-section span.dashicons,.envira_page_envira-gallery-support .envira-recent-section span.dashicons{background-color:#fff;border-radius:50%;clear:left;color:#d84800;font-size:50px;float:left;height:80px;line-height:80px;margin:0 15px 15px 0;text-align:center;width:80px}.envira_page_envira-gallery-lite-welcome .envira-features-section img.icon,.envira_page_envira-gallery-lite-welcome .envira-recent-section img.icon,.envira_page_envira-gallery-lite-get-started .envira-features-section img.icon,.envira_page_envira-gallery-lite-get-started .envira-recent-section img.icon,.envira_page_envira-gallery-support .envira-features-section img.icon,.envira_page_envira-gallery-support .envira-recent-section img.icon{background-color:rgba(0,0,0,0);clear:left;font-size:50px;float:left;line-height:80px;margin:0 15px 15px 0;text-align:center;width:80px}.envira_page_envira-gallery-lite-welcome .envira-features-section h4.feature-title,.envira_page_envira-gallery-lite-welcome .envira-recent-section h4.feature-title,.envira_page_envira-gallery-lite-get-started .envira-features-section h4.feature-title,.envira_page_envira-gallery-lite-get-started .envira-recent-section h4.feature-title,.envira_page_envira-gallery-support .envira-features-section h4.feature-title,.envira_page_envira-gallery-support .envira-recent-section h4.feature-title{color:#7cc048;font-size:1.35em;margin-bottom:.6em;margin-top:0}.envira_page_envira-gallery-lite-welcome .envira-features-section span.badge,.envira_page_envira-gallery-lite-welcome .envira-recent-section span.badge,.envira_page_envira-gallery-lite-get-started .envira-features-section span.badge,.envira_page_envira-gallery-lite-get-started .envira-recent-section span.badge,.envira_page_envira-gallery-support .envira-features-section span.badge,.envira_page_envira-gallery-support .envira-recent-section span.badge{font-size:.7em;font-weight:500;display:inline-block;text-transform:uppercase;background-color:#7cc048;color:#fff;padding:3px 5px;border-radius:15%}.envira_page_envira-gallery-lite-welcome .envira-features-section .headline-title,.envira_page_envira-gallery-lite-welcome .envira-recent-section .headline-title,.envira_page_envira-gallery-lite-get-started .envira-features-section .headline-title,.envira_page_envira-gallery-lite-get-started .envira-recent-section .headline-title,.envira_page_envira-gallery-support .envira-features-section .headline-title,.envira_page_envira-gallery-support .envira-recent-section .headline-title{font-size:25px;font-weight:400;line-height:1.5;margin:1em auto 2em;text-align:center;color:#000}.envira_page_envira-gallery-lite-welcome .envira-features-section .envira-feature-with-images,.envira_page_envira-gallery-lite-welcome .envira-recent-section .envira-feature-with-images,.envira_page_envira-gallery-lite-get-started .envira-features-section .envira-feature-with-images,.envira_page_envira-gallery-lite-get-started .envira-recent-section .envira-feature-with-images,.envira_page_envira-gallery-support .envira-features-section .envira-feature-with-images,.envira_page_envira-gallery-support .envira-recent-section .envira-feature-with-images{border-bottom:1px solid #ccc;margin-bottom:5em;padding-bottom:2em}.envira_page_envira-gallery-lite-welcome .envira-features-section .envira-feature code,.envira_page_envira-gallery-lite-welcome .envira-recent-section .envira-feature code,.envira_page_envira-gallery-lite-get-started .envira-features-section .envira-feature code,.envira_page_envira-gallery-lite-get-started .envira-recent-section .envira-feature code,.envira_page_envira-gallery-support .envira-features-section .envira-feature code,.envira_page_envira-gallery-support .envira-recent-section .envira-feature code{font-size:.95em;line-height:1.5}.envira_page_envira-gallery-lite-welcome .envira-features-section .envira-big-icon,.envira_page_envira-gallery-lite-welcome .envira-recent-section .envira-big-icon,.envira_page_envira-gallery-lite-get-started .envira-features-section .envira-big-icon,.envira_page_envira-gallery-lite-get-started .envira-recent-section .envira-big-icon,.envira_page_envira-gallery-support .envira-features-section .envira-big-icon,.envira_page_envira-gallery-support .envira-recent-section .envira-big-icon{font-size:80px;float:left;margin-left:10px}.envira_page_envira-gallery-lite-welcome .envira-features-section .envira-big-icon.envira-leaf,.envira_page_envira-gallery-lite-welcome .envira-recent-section .envira-big-icon.envira-leaf,.envira_page_envira-gallery-lite-get-started .envira-features-section .envira-big-icon.envira-leaf,.envira_page_envira-gallery-lite-get-started .envira-recent-section .envira-big-icon.envira-leaf,.envira_page_envira-gallery-support .envira-features-section .envira-big-icon.envira-leaf,.envira_page_envira-gallery-support .envira-recent-section .envira-big-icon.envira-leaf{color:#7cc048}.envira_page_envira-gallery-lite-welcome .envira-feature .feature-title,.envira_page_envira-gallery-lite-get-started .envira-feature .feature-title,.envira_page_envira-gallery-support .envira-feature .feature-title{font-size:1em;line-height:1.5;margin-bottom:0;margin-top:0}body.envira_page_envira-gallery-lite-welcome-addons #wpfooter{position:relative}body.envira_page_envira-gallery-lite-welcome-addons .envira-addons-area.unlicensed h3{display:none}body.envira_page_envira-gallery-lite-welcome-addons #envira-addons .envira-addons-area .envira-addon p{font-size:18px}.envira-lite-updates-panel{display:block;background-color:#f5f5f5;border-radius:6px}.envira-pro-updates-panel{display:block}.envira-pro-updates-features{display:flex}.envira-pro-updates-features .envira-feature{display:flex;flex-direction:column;align-self:center;padding:20px;text-align:center}.envira-pro-updates-features .envira-feature img{max-height:125px;width:auto;align-self:center;margin-bottom:15px}.upgrade-wrap{text-align:center;margin-bottom:60px}.upgrade-wrap h2{font-size:32px;line-height:28px;font-weight:400;margin:35px auto 10px auto}.upgrade-wrap h4.headline-subtitle{font-size:24px;line-height:24px;font-weight:200;margin:20px auto;display:block}.upgrade-wrap a.button{font-size:21px;height:50px;line-height:48px}.upgrade-list{display:grid;grid-template-columns:repeat(2, 1fr);column-gap:30px;border-radius:6px;padding:60px;background:#f5f5f5}.upgrade-list .interior{background:#fff;border-radius:6px;padding:30px;text-align:center;margin-bottom:30px;height:354px;display:flex;justify-content:center;align-items:center}.upgrade-list .interior a{text-decoration:none;display:flex;flex-direction:column;align-items:center;vertical-align:middle}.upgrade-list .interior a img{max-height:125px}.upgrade-list .interior a h5{font-size:16px;color:#000}.upgrade-list .interior a p{font-size:18px;color:#000}.upgrade-list li{width:50%;margin:20px auto;float:left;display:block;font-size:16px;line-height:18px;min-height:315px}.upgrade-list li h5{font-size:18px;line-height:24px;margin:20px auto;font-weight:700}.upgrade-list li h5 a{text-decoration:none;color:#000}.upgrade-list li p{margin:0}.upgrade-video{position:relative;padding-bottom:56.25%;padding-top:25px;height:0}.upgrade-video iframe{position:absolute;top:0;left:0;width:100%;height:100%}body.envira_page_envira-gallery-lite-litevspro .envira-get-started-main{width:100%}#envira-admin-litevspro .centered{text-align:center}#envira-admin-litevspro h1{font-size:34px;line-height:32px}#envira-admin-litevspro p.centered{font-size:18px;line-height:21px}#envira-admin-litevspro.wrap{margin-left:0;margin-right:0}#envira-admin-litevspro .litevspro-table-header{background:#fff}#envira-admin-litevspro .envira-admin-litevspro-section{margin:0 0 30px 0;padding:30px;line-height:2}#envira-admin-litevspro .envira-admin-litevspro-section.no-bottom{margin-bottom:0;padding-bottom:0}#envira-admin-litevspro .envira-admin-litevspro-section.litevspro-table-header{padding-bottom:30px}#envira-admin-litevspro table tr td{border-bottom:1px solid #ddd;border-right:1px solid #ddd;padding:30px;vertical-align:top;width:33%}#envira-admin-litevspro table tr td p{font-size:18px;line-height:24px}#envira-admin-litevspro table tr td:last-child{border-right:0}#envira-admin-litevspro table{border-bottom:0}#envira-admin-litevspro .envira-admin-litevspro-section-hero{border-top:0;font-size:16px;line-height:18px}#envira-admin-litevspro .envira-admin-litevspro-section-hero p{text-align:center;font-size:16px;line-height:18px}#envira-admin-litevspro .envira-admin-litevspro-section-hero .call-to-action{font-size:21px;font-weight:500;text-align:center}#envira-admin-litevspro .envira-admin-litevspro-section-hero .call-to-action .button{font-size:28px;height:60px;line-height:58px}#envira-admin-litevspro .envira-admin-litevspro-section-hero span.envira-deal{font-weight:500;color:green}#envira-admin-litevspro .envira-admin-litevspro-section-table{padding-left:0;padding-right:0;padding-top:0}#envira-admin-litevspro .envira-admin-litevspro-section-table table{width:100%;background:#f5f5f5}#envira-admin-litevspro .envira-admin-litevspro-section-table table tr td:first-child{border-left:1px solid #ddd;border-bottom-color:#ddd;border-bottom-style:solid;border-bottom-width:1px}#envira-admin-litevspro .envira-admin-litevspro-section-table table tr td:last-child{border-right:1px solid #ddd;border-bottom-color:#ddd;border-bottom-style:solid;border-bottom-width:1px;background-color:#f3f9fe}#envira-admin-litevspro .envira-admin-litevspro-section-table table tr:first-child td{border-top:1px solid #ddd}#envira-admin-litevspro .envira-admin-litevspro-section-table table th{text-align:left;font-weight:600;font-size:18px;padding-left:30px;padding-bottom:20px;padding-top:20px;border-top:1px solid #ddd;border-right:1px solid #ddd;vertical-align:middle}#envira-admin-litevspro .envira-admin-litevspro-section-table table th:last-child{border-right:1px solid #ddd}#envira-admin-litevspro .envira-admin-litevspro-section-table table th:first-child{border-left:1px solid #ddd}#envira-admin-litevspro .envira-admin-litevspro-section-table table td{background:#fff}#envira-admin-litevspro .envira-admin-litevspro-section-table table td strong{display:block}#envira-admin-litevspro .envira-admin-litevspro-section-table table p{background-repeat:no-repeat;background-size:15px auto;background-position:0 6px;margin:0}#envira-admin-litevspro .envira-admin-litevspro-section-table table p.features-full{padding-left:30px;background-position:0 4px;background-image:url(../images/icons/litevspro/tick.svg)}#envira-admin-litevspro .envira-admin-litevspro-section-table table p.features-none{padding-left:30px;background-position:6px 6px;background-image:url(../images/icons/litevspro/cross_red.svg);background-size:15px auto}#envira-admin-litevspro .envira-admin-litevspro-section-table table p.features-partial{padding-left:30px;background-position:6px 6px;background-size:15px auto;background-image:url(../images/icons/litevspro/cross.svg)}.envira-get-started-section{margin-top:20px}.envira-get-started-section .centered{text-align:center}.envira-get-started-section .envira-admin-get-started-panel{background:url("../images/envira-pattern.jpg") repeat repeat;color:#fff;border-radius:6px}.envira-get-started-section .envira-admin-get-started-panel h3{padding:0;margin:0 0 10px 0}.envira-get-started-section .envira-admin-get-started-panel h2,.envira-get-started-section .envira-admin-get-started-panel h3{color:#fff}.envira-get-started-section .envira-admin-get-started-panel p{font-size:18px;line-height:1.5;margin:30px 0}.envira-get-started-section .envira-admin-get-started-panel .button.envira-button{font-size:21px;height:50px;line-height:48px}.envira-get-started-section .envira-admin-get-started-panel .feature-photo-column{padding-left:30px;max-width:360px;min-width:350px;display:inherit}.envira-get-started-section .envira-admin-get-started-panel .feature-photo-column img{width:100%;margin:auto}.envira-get-started-section .envira-admin-get-started-panel .feature-photo-column.photo-left{padding-left:0;padding-right:30px}.envira-get-started-section .envira-admin-upgrade-panel{background-color:#f5f5f5;border-radius:6px;box-shadow:0 2px 5px rgba(0,0,0,.08);overflow:hidden;font-size:18px}.envira-get-started-section .envira-admin-upgrade-panel p{font-size:18px}.envira-get-started-section .envira-admin-upgrade-panel .feature-photo-column{position:relative;margin-right:-120px;margin-bottom:-540px;width:100%}.envira-get-started-section .envira-admin-upgrade-panel .feature-photo-column img{position:absolute;right:-30px;top:0}.envira-get-started-section .envira-admin-upgrade-panel .button.envira-button{font-size:21px;height:50px;line-height:48px}.envira-get-started-section .envira-admin-docs-panel{background-color:#f5f5f5;border-radius:6px;box-shadow:0 2px 5px rgba(0,0,0,.08);overflow:hidden;font-size:18px}.envira-get-started-section .envira-admin-docs-panel .envira-admin-header{display:flex;vertical-align:middle;align-items:center;justify-content:space-between;width:100%}.envira-get-started-section .envira-admin-get-started-banner{display:flex;background:#000;color:#fff;padding:10px 0;margin-bottom:60px;border-radius:6px}.envira-get-started-section .envira-admin-get-started-banner .banner-text{display:block;margin:0 auto;padding:10px 0 0 0;text-align:center;font-size:1.5em;text-align:left}.envira-get-started-section .envira-admin-get-started-banner .banner-text h3{font-size:1.5em;line-height:1.3em;margin:5px auto;color:#fff}.envira-get-started-section .envira-admin-get-started-banner .banner-button{margin:auto;max-width:33%;height:100%;vertical-align:middle}.envira-get-started-section .envira-admin-get-started-banner .banner-button a{height:auto;padding:15px 25px;font-size:1.45em;display:block;margin:auto}.envira-get-started-section .envira-help-section .button.envira-button{height:40px;line-height:40px;font-size:18px}.envira-admin-3-col{display:flex;flex-wrap:wrap;margin-bottom:0px}.envira-admin-3-col .envira-cols{flex-grow:1;width:26%;text-align:center;background-color:#f5f5f5;border-radius:6px;padding:3%;margin-left:20px}.envira-admin-3-col .envira-cols:first-child{margin-left:0}.envira-admin-3-col .envira-cols h3{font-size:24px}.envira-admin-3-col .envira-cols p{max-width:80%;font-size:16px;margin:20px auto}.lionsher-partners-wrap{display:grid;grid-template-columns:repeat(3, 1fr);column-gap:30px;padding-top:30px}.lionsher-partners{background-color:#f5f5f5;margin-bottom:30px;border-radius:6px}.lionsher-partners-main{display:flex;flex-direction:row;padding:30px 30px 20px;flex-grow:1;text-align:left;height:120px}.lionsher-partners-main h3{padding-top:0;margin-top:0}.lionsher-partners-main img{padding-right:15px}.lionsher-partners-footer{display:flex;text-align:left;align-items:center;vertical-align:middle;padding:20px;border-top:1px solid #e6e6e6}.lionsher-partners-footer .lionsher-partners-install-wrap{margin-left:auto}.lionsher-partners-footer .spinner{display:none}.lionsher-partners-footer .lionsher-partners-button{font-size:16px !important;height:40px !important;line-height:38px !important;border-radius:6px !important}.lionsher-partner-status{font-weight:bold}.lionsher-partner-status span{font-weight:normal}@media screen and (max-width: 800px){.upgrade-list{grid-template-columns:repeat(1, 1fr)}.lionsher-partners-wrap{grid-template-columns:repeat(1, 1fr)}.envira-admin-3-col,.envira-pro-updates-features{display:block}.feature-photo-column img{display:none}.envira-panel{display:block}.envira-get-started-section .envira-admin-upgrade-panel{display:flex;overflow:visible}.envira-admin-3-col .envira-cols{width:100%;margin:0;margin-bottom:30px}.envira-welcome-wrap .envira-welcome-sidebar{float:none;width:100%;padding:0}.envira-welcome-wrap .envira-welcome-main{float:none;width:100%}.envira-welcome-wrap .envira-title h1.welcome-header{line-height:42px}.envira-welcome-wrap .envira-title h1.welcome-header,.envira-welcome-wrap .envira-title .about-text{text-indent:0}.enviraheadline-feature,.envira-features-section,.envira-recent-section{margin-left:20px;margin-right:20px}.envira_page_envira-gallery-lite-welcome .enviraheadline-feature{padding:0}.envira_page_envira-gallery-lite-welcome .enviraheadline{margin:0;width:97%}.envira_page_envira-gallery-lite-welcome .envira-features-section{clear:both;margin-bottom:0;margin-top:2em;padding-bottom:2em}.envira_page_envira-gallery-lite-welcome .envira-features-section .envira-feature-with-images{margin-bottom:2em}.envira_page_envira-gallery-lite-welcome .envira-features-section .headline-title{margin-bottom:1em}.envira_page_envira-gallery-lite-welcome .envira-recent-section .changelog-title{font-size:1.25em;line-height:1.5;margin-bottom:.5em;margin-top:.5em}.envira_page_envira-gallery-lite-welcome .envira-features-section .feature-title,.envira_page_envira-gallery-lite-welcome .envira-recent-section .title{font-size:1.25em;line-height:1.25;margin-top:.6em;text-align:left}.envira_page_envira-gallery-lite-welcome .envira-features-section .envira-feature,.envira_page_envira-gallery-lite-welcome .envira-features-section .envira-feature-imaged{clear:both;float:left;margin-bottom:1em;margin-top:1em;margin-right:0;padding-right:1em;width:100%}.envira_page_envira-gallery-lite-welcome .envira-features-section .envira-feature-imaged p{font-size:1em}.envira_page_envira-gallery-lite-welcome .envira-features-section .envira-feature span{margin-top:.33em}.envira_page_envira-gallery-lite-welcome .envira-feature.opposite .feature-title,.envira_page_envira-gallery-lite-welcome .envira-feature.opposite p{float:none}.envira_page_envira-gallery-lite-welcome .envira-recent-section{clear:both;margin-bottom:2em;margin-top:2em}.envira_page_envira-gallery-lite-welcome .envira-recent{margin-bottom:0}.envira_page_envira-gallery-lite-welcome .envira-recent-section .changelog-title{margin-bottom:.5em}.envira_page_envira-gallery-lite-welcome .envira-recent .title{font-size:1em}.envira_page_envira-gallery-lite-welcome .envira-recent p{margin-bottom:1em}.envira_page_envira-gallery-lite-welcome .envira-recent-section .two-col>div,.envira_page_envira-gallery-lite-welcome .envira-recent-section .three-col .col{margin-top:0;padding-bottom:.5em;width:100%}.envira_page_envira-gallery-lite-welcome .envirathree-column .enviracolumn{width:100%}}@media screen and (max-width: 1400px){.lionsher-partners-wrap{grid-template-columns:repeat(2, 1fr)}.envira-admin-get-started-banner.middle .banner-text,.envira-admin-get-started-banner.bottom .banner-text{padding:10px 0 0 10px}.envira-admin-get-started-banner.middle .banner-text h3,.envira-admin-get-started-banner.bottom .banner-text h3{line-height:1.3em}.envira-admin-get-started-banner.middle .banner-button,.envira-admin-get-started-banner.bottom .banner-button{margin-right:10px}.envira-admin-get-started-banner.middle .banner-button a,.envira-admin-get-started-banner.bottom .banner-button a{font-size:16px}}@media screen and (max-width: 1120px){.envira-admin-get-started-banner.middle .banner-button a,.envira-admin-get-started-banner.bottom .banner-button a{font-size:14px}}@media screen and (max-width: 360px){.envira_page_envira-gallery-lite-welcome .enviraheadline{text-align:center}.envira_page_envira-gallery-lite-welcome .enviraheadline span.dashicons{clear:none;font-size:80px;float:none;height:80px;line-height:80px;margin:0 auto;width:80px}.envira_page_envira-gallery-lite-welcome .enviraheadline-feature .headline-title,.envira_page_envira-gallery-lite-welcome .envira-features-section .headline-title{font-size:1.5em;line-height:1.5;text-align:left}.envira_page_envira-gallery-lite-welcome .enviraheadline-feature .headline-title{margin:1em 0 0}.envira_page_envira-gallery-lite-welcome .enviraheadline-feature p{margin:1.15em auto .6em 0;text-align:left;width:auto}.envira_page_envira-gallery-lite-welcome .envira-features-section .envira-feature{text-align:center}.envira_page_envira-gallery-lite-welcome .envira-features-section span.dashicons{float:none}.envira_page_envira-gallery-lite-welcome .envira-features-section .feature-title,.envira_page_envira-gallery-lite-welcome .envira-features-section p{margin-left:0;text-align:left}}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/images/audio_icon.png ADDED
Binary file
assets/images/background.jpeg ADDED
Binary file
assets/images/drag-drop-icon.png ADDED
Binary file
assets/images/envira-admin.png ADDED
Binary file
assets/images/envira-logo-color.svg ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 25.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
+ viewBox="0 0 612 72" style="enable-background:new 0 0 612 72;" xml:space="preserve">
5
+ <style type="text/css">
6
+ .st0{fill:#7BC049;}
7
+ .st1{fill:#231F20;}
8
+ </style>
9
+ <g transform="matrix(0.942465,0,0,0.942465,4.40232,15.7483)">
10
+ <path class="st0" d="M21.5,18.3c2.2,4.1,6.2,10.5,8.9,12.5c2.8,2,5.8,3.5-0.6,0.8c-6.4-2.7-11-10.3-14.1-16.1
11
+ C13.3,11.1,11.2,7,6.8,4C2.4,1,7.3,3.1,7.3,3.1C15.4,7.1,18.4,12.5,21.5,18.3 M13,31.4c8.8,6.9,17.2,4,21,3.6l6.9,6.8h2.5l-7.9-7.9
12
+ c-0.1-4.7,10.8-35.2-36-35.2C4.6,16.3,4.1,24.5,13,31.4"/>
13
+ </g>
14
+ <path class="st1" d="M56.2,14h29.4v2.8H59.2v16.2h23.7v2.8H59.2v16.6h26.6v2.8H56.2V14z"/>
15
+ <path class="st1" d="M98.1,14h2.9l28.5,36V14h3v41.3h-2.3l-29.1-36.7v36.7h-3V14z"/>
16
+ <path class="st1" d="M143.6,14h3.4l16.2,38l16.2-38h3.2l-18.2,41.6h-2.7L143.6,14z"/>
17
+ <rect x="194.2" y="14" class="st1" width="3.1" height="41.3"/>
18
+ <path class="st1" d="M229.3,35.4c1.7,0,3.3-0.2,4.8-0.6c1.5-0.4,2.7-1.1,3.8-1.9c1.1-0.8,1.9-1.8,2.5-3c0.6-1.2,0.9-2.5,0.9-4v-0.1
19
+ c0-2.8-1-5-3.1-6.6c-2.1-1.6-5-2.4-8.8-2.4h-14.1v18.6H229.3z M212.3,14h17.4c2.6,0,4.8,0.4,6.8,1.1c2,0.7,3.6,1.7,4.8,3
20
+ c1,1,1.8,2.1,2.3,3.5c0.5,1.3,0.8,2.7,0.8,4.2v0.1c0,1.7-0.3,3.3-0.9,4.6c-0.6,1.4-1.5,2.5-2.5,3.5c-1.1,1-2.4,1.8-3.8,2.4
21
+ c-1.5,0.6-3.1,1-4.8,1.3l13.6,17.6H242l-13.2-17.1h-0.1h-13.4v17.1h-3.1V14z"/>
22
+ <path class="st1" d="M285.3,41l-10.9-23.9L263.5,41H285.3z M273,13.7h2.9l19.2,41.6h-3.4l-5.3-11.6h-24.4L257,55.3h-3.2L273,13.7z"
23
+ />
24
+ <path class="st1" d="M325.1,56c-3.2,0-6.2-0.6-8.8-1.6c-2.6-1.1-4.9-2.6-6.8-4.5c-1.9-1.9-3.3-4.2-4.3-6.7c-1-2.6-1.5-5.4-1.5-8.4
25
+ v-0.1c0-2.9,0.5-5.6,1.6-8.2c1-2.6,2.5-4.9,4.4-6.8c1.9-1.9,4.1-3.5,6.8-4.6c2.6-1.1,5.5-1.7,8.6-1.7c1.8,0,3.5,0.1,4.9,0.4
26
+ c1.5,0.3,2.8,0.6,4.1,1.1c1.3,0.5,2.4,1.1,3.6,1.7c1.1,0.7,2.2,1.5,3.3,2.4l-4.6,5.5c-0.8-0.7-1.6-1.3-2.4-1.8
27
+ c-0.8-0.6-1.7-1-2.6-1.4c-0.9-0.4-1.9-0.7-3-0.9c-1.1-0.2-2.3-0.3-3.6-0.3c-1.9,0-3.7,0.4-5.3,1.2c-1.6,0.8-3.1,1.8-4.2,3.2
28
+ c-1.2,1.3-2.2,2.9-2.8,4.6c-0.7,1.8-1,3.6-1,5.6v0.1c0,2.1,0.3,4.1,1,5.9c0.7,1.8,1.6,3.4,2.9,4.7c1.2,1.3,2.7,2.3,4.4,3.1
29
+ c1.7,0.8,3.6,1.1,5.8,1.1c2,0,3.8-0.3,5.5-0.8c1.7-0.6,3.2-1.3,4.5-2.3v-7.7h-10.6v-6.3h17.6v17.4c-1,0.9-2.2,1.7-3.4,2.5
30
+ c-1.2,0.8-2.6,1.5-4,2.1c-1.4,0.6-3,1-4.6,1.4C328.6,55.9,326.9,56,325.1,56z"/>
31
+ <path class="st1" d="M379.2,38.9L372,22.4L365,38.9H379.2z M368.8,13.7h6.7l18.2,41.6H386l-4.2-10h-19.5l-4.2,10h-7.4L368.8,13.7z"
32
+ />
33
+ <path class="st1" d="M403.1,14h7.3v34.7h21.7v6.6h-29V14z"/>
34
+ <path class="st1" d="M442.1,14h7.3v34.7H471v6.6h-29V14z"/>
35
+ <path class="st1" d="M481,14h30.6v6.5h-23.4v10.7h20.7v6.5h-20.7v11.1h23.7v6.5H481V14z"/>
36
+ <path class="st1" d="M540.8,34.5c2.6,0,4.7-0.6,6.2-1.9c1.5-1.2,2.3-2.9,2.3-5.1v-0.1c0-2.2-0.7-3.9-2.2-5.1
37
+ c-1.5-1.2-3.6-1.7-6.3-1.7h-10.6v13.9H540.8z M522.9,14h18.4c2.6,0,4.9,0.4,6.9,1.1c2,0.7,3.7,1.7,5,3c1.1,1.1,1.9,2.5,2.5,4
38
+ c0.6,1.5,0.9,3.2,0.9,5v0.1c0,1.7-0.3,3.2-0.7,4.6c-0.5,1.4-1.2,2.6-2,3.6c-0.9,1-1.9,1.9-3.1,2.7c-1.2,0.7-2.5,1.3-4,1.7l11.1,15.6
39
+ h-8.6l-10.2-14.4h-0.1h-9v14.4h-7.3V14z"/>
40
+ <path class="st1" d="M580.1,39l-16.4-25h8.6l11.6,18.3L595.5,14h8.3l-16.4,24.9v16.5h-7.3V39z"/>
41
+ </svg>
assets/images/envira-pattern.jpg ADDED
Binary file
assets/images/features/albums-icon.png ADDED
Binary file
assets/images/features/deeplinking-icon.png ADDED
Binary file
assets/images/features/gallery-templates-icon.png ADDED
Binary file
assets/images/features/image-compress-icon.png ADDED
Binary file
assets/images/features/lightroom-icon.png ADDED
Binary file
assets/images/features/logo-elementor.png ADDED
Binary file
assets/images/features/proofing-icon.png ADDED
Binary file
assets/images/features/protection-icon.png ADDED
Binary file
assets/images/features/slideshow-icon.png ADDED
Binary file
assets/images/features/social-icon.png ADDED
Binary file
assets/images/features/videos-icon.png ADDED
Binary file
assets/images/features/woo-icon.png ADDED
Binary file
assets/images/mobile.jpg ADDED
Binary file
assets/images/pagination-addon.png ADDED
Binary file
assets/images/pagination-icon.png ADDED
Binary file
assets/images/partners/allinone.png ADDED
Binary file
assets/images/partners/forminator.gif ADDED
Binary file
assets/images/partners/google-apps.png ADDED
Binary file
assets/images/partners/google-drive.png ADDED
Binary file
assets/images/partners/imagify.svg ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg width="256px" height="256px" viewBox="0 0 256 256" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">
3
+ <!-- Generator: Sketch 3.4.4 (17249) - http://www.bohemiancoding.com/sketch -->
4
+ <title>WordPress Plugin </title>
5
+ <desc>Created with Sketch.</desc>
6
+ <defs></defs>
7
+ <g id="Marketing-stuff" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">
8
+ <g id="WordPress-Plugin-" sketch:type="MSArtboardGroup">
9
+ <g id="Group-+-Group" sketch:type="MSLayerGroup" transform="translate(-1.000000, 0.000000)">
10
+ <g id="Group" transform="translate(0.626812, 0.000000)" sketch:type="MSShapeGroup">
11
+ <rect id="Rectangle-7" fill="#2E3243" x="0.373188406" y="0" width="256" height="256"></rect>
12
+ <path d="M81.9742306,158.483219 L54.1635666,109.918063 L64.2449323,103.97844 L61.2900493,96.6412582 L43.3869343,106.948252 L79.0193476,169.139602 L106.830012,153.06768 C107.003828,150.272563 107.351462,147.477446 107.699095,144.68233 L101.094062,147.302752 L81.9742306,158.483219 L81.9742306,158.483219 Z" id="Shape" fill="#FFFFFF"></path>
13
+ <path d="M70.6761484,87.033044 L79.0193476,83.8885375 L77.1073644,76.3766609 L60.7685993,82.6656738 L85.798197,148.875005 L108.741995,140.140265 C109.611078,136.821063 111.001611,133.501862 112.565961,130.357356 L90.3174299,138.917401 L70.6761484,87.033044 L70.6761484,87.033044 Z" id="Shape" fill="#FFFFFF"></path>
14
+ <path d="M114.477944,64.6721089 L103.179862,112.189096 L137.943192,105.026609 C140.028992,103.97844 142.114792,103.104966 144.374408,102.406187 C146.981658,101.532713 149.588908,100.833934 152.196157,100.309849 C155.324857,99.7857647 158.627373,99.4363751 161.92989,99.4363751 L162.103706,99.4363751 L164.710956,99.4363751 L172.185072,97.8641219 L150.284174,78.2983037 L141.593342,89.1293816 L114.477944,64.6721089 L114.477944,64.6721089 Z" id="Shape" fill="#FFFFFF"></path>
15
+ <ellipse id="Oval" fill="#FFFFFF" cx="156.367757" cy="64.1480245" rx="6.77884936" ry="6.81309739"></ellipse>
16
+ <path d="M116.563744,123.544258 C118.997177,119.875667 121.95206,116.731161 125.08076,113.761349 L98.4868124,119.176888 L87.1887302,64.3227193 L167.665839,47.7267129 L178.790105,102.056797 C181.744988,103.104966 184.699871,104.32783 187.480937,105.725388 L173.749422,38.4678882 L78.1502643,58.0337064 L92.5770463,128.435713 L116.563744,123.544258 L116.563744,123.544258 Z" id="Shape" fill="#FFFFFF"></path>
17
+ <ellipse id="Oval" fill="#00A8DC" cx="161.40844" cy="155.164018" rx="4.17159961" ry="4.19267532"></ellipse>
18
+ <path d="M162.277523,104.502524 C134.988309,104.502524 112.739778,126.863459 112.739778,154.465239 C112.739778,160.579557 113.782678,166.344485 115.868477,171.760024 L132.554876,171.760024 C130.121443,167.392654 128.557093,162.5012 128.035643,157.260356 L122.647327,157.260356 C121.082977,157.260356 120.040077,156.037492 120.040077,154.465239 C120.040077,152.892985 121.256794,151.670122 122.647327,151.670122 L128.035643,151.670122 C128.557093,144.158245 131.511976,137.519843 136.031209,132.104304 L132.207243,128.261018 C131.164343,127.212849 131.164343,125.465901 132.207243,124.417732 C133.250142,123.369563 134.988309,123.369563 136.031209,124.417732 L139.855175,128.261018 C145.243491,123.718953 151.848524,120.749141 159.32264,120.225057 L159.32264,114.634823 C159.32264,113.06257 160.539357,111.839706 161.92989,111.839706 C163.49424,111.839706 164.710956,113.06257 164.710956,114.634823 L164.710956,120.225057 C171.489806,120.749141 177.747205,123.369563 182.961704,127.387544 L185.916588,125.291206 C187.480937,124.068343 189.566737,124.243037 190.95727,125.640596 C192.347804,127.038154 192.52162,129.309187 191.304904,130.706745 L169.230189,162.15181 C165.232406,166.169791 158.975007,166.344485 154.803407,162.5012 C154.62959,162.326505 154.62959,162.326505 154.455774,162.15181 C150.457991,158.13383 150.457991,151.320732 154.455774,147.302752 C154.977224,146.778667 155.324857,146.429278 155.846307,146.079888 L155.846307,146.079888 L177.747205,131.056135 C173.227972,127.911628 167.839656,126.16468 161.92989,126.16468 C146.286391,126.16468 133.771592,138.917401 133.771592,154.639933 C133.771592,161.103641 135.857392,167.043265 139.507542,171.760024 L184.526054,171.760024 C188.176204,167.043265 190.262004,161.103641 190.262004,154.639933 C190.262004,150.971343 189.566737,147.652141 188.350021,144.507635 L192.347804,138.917401 C194.433603,142.935382 195.65032,147.302752 195.997953,152.019511 L201.386269,152.019511 C202.950619,152.019511 203.993519,153.242375 203.993519,154.814628 C203.993519,156.386881 202.776803,157.609745 201.386269,157.609745 L195.997953,157.609745 C195.65032,162.850589 194.08597,167.742044 191.47872,172.109414 L208.686569,172.109414 C210.598552,166.693875 211.815268,160.928946 211.815268,154.814628 C211.641452,126.863459 189.566737,104.502524 162.277523,104.502524 L162.277523,104.502524 Z" id="Shape" fill="#00A8DC"></path>
19
+ </g>
20
+ <g id="Group" transform="translate(43.000000, 194.489583)" fill="#FFFFFF" sketch:type="MSShapeGroup">
21
+ <path d="M3.77407837,0.466865079 L0.644354843,0.466865079 C0.30683564,0.466865079 0,0.776137858 0,1.11633791 L0,23.5386144 C0,23.8788144 0.30683564,24.1880872 0.644354843,24.1880872 L3.77407837,24.1880872 C4.11159757,24.1880872 4.41843321,23.8788144 4.41843321,23.5386144 L4.41843321,1.11633791 C4.38774965,0.776137858 4.08091401,0.466865079 3.77407837,0.466865079 L3.77407837,0.466865079 Z" id="Shape"></path>
22
+ <path d="M38.0093602,0.611552716 C37.9786767,0.333207215 37.7638917,0.11671627 37.395689,0.11671627 L36.8433848,0.11671627 C36.5365492,0.11671627 36.3831313,0.240425381 36.2603971,0.456916326 L28.8656582,16.446319 L28.7736075,16.446319 L21.3788686,0.456916326 C21.2868179,0.240425381 21.0720329,0.11671627 20.7958808,0.11671627 L20.2435767,0.11671627 C19.8753739,0.11671627 19.660589,0.364134493 19.6299054,0.611552716 L15.6410421,23.3740292 C15.579675,23.8379384 15.855827,24.1472112 16.2853969,24.1472112 L19.3230698,24.1472112 C19.6299054,24.1472112 19.9060575,23.8688657 19.9367411,23.6523747 L21.9004891,10.8175544 L21.9925398,10.8175544 L27.9451513,24.1162839 C28.0372019,24.3327748 28.2213033,24.4874112 28.528139,24.4874112 L29.1418102,24.4874112 C29.4486459,24.4874112 29.6327473,24.3327748 29.724798,24.1162839 L35.6160422,10.8175544 L35.7080929,10.8175544 L37.7025246,23.6523747 C37.7638917,23.899793 38.0400438,24.1472112 38.3468794,24.1472112 L41.4152358,24.1472112 C41.8448057,24.1472112 42.1209578,23.8379384 42.0289071,23.3740292 L38.0093602,0.611552716 L38.0093602,0.611552716 Z" id="Shape"></path>
23
+ <path d="M62.0639694,0.487843604 C61.9719187,0.271352659 61.8185008,0.11671627 61.4809816,0.11671627 L61.1434624,0.11671627 C60.8366268,0.11671627 60.683209,0.271352659 60.5604747,0.487843604 L50.0973794,23.2812474 C49.8825945,23.7142293 50.1587465,24.1472112 50.6803671,24.1472112 L53.5953057,24.1472112 C54.1476098,24.1472112 54.4237619,23.8070111 54.5771797,23.4668111 L56.2340922,19.8173923 L66.2983012,19.8173923 L67.9552136,23.4668111 C68.2006821,23.9307202 68.4154671,24.1472112 68.9370877,24.1472112 L71.8520263,24.1472112 C72.3429633,24.1472112 72.6191154,23.7142293 72.435014,23.2812474 L62.0639694,0.487843604 L62.0639694,0.487843604 Z M57.9216882,16.0442644 L61.2048296,8.59079041 L61.2968803,8.59079041 L64.6413887,16.0442644 L57.9216882,16.0442644 L57.9216882,16.0442644 Z" id="Shape"></path>
24
+ <path d="M100.514948,12.3090566 L94.0713998,12.3090566 C93.7031971,12.3090566 93.427045,12.5874021 93.427045,12.9585294 L93.427045,15.6182753 C93.427045,15.9584754 93.7031971,16.2368209 94.0713998,16.2368209 L96.7715535,16.2368209 L96.7715535,19.1130577 C96.0965151,19.3914032 94.6543875,19.9480942 92.7826901,19.9480942 C88.5483583,19.9480942 85.2345334,16.3914573 85.2345334,12.1853475 C85.2345334,7.94831041 88.5483583,4.3298189 92.7520066,4.3298189 C94.5930204,4.3298189 96.3726671,5.01021901 97.8147946,6.30916469 C98.1216303,6.58751019 98.4284659,6.58751019 98.6739344,6.30916469 L100.760417,4.11332796 C101.036569,3.83498246 101.005885,3.43292784 100.729733,3.15458234 C98.4591495,1.17523656 95.5442109,1.77635684e-15 92.5372216,1.77635684e-15 C85.8482047,1.77635684e-15 80.478581,5.44320091 80.478581,12.2162748 C80.478581,18.9893486 85.8482047,24.3397677 92.5372216,24.3397677 C97.4159083,24.3397677 100.883151,22.143931 100.883151,22.143931 C101.005885,22.0511491 101.159303,21.8655855 101.159303,21.58724 L101.159303,12.9276021 C101.097936,12.6183294 100.852467,12.3090566 100.514948,12.3090566 L100.514948,12.3090566 Z" id="Shape"></path>
25
+ <path d="M116.444092,0.466865079 L113.314368,0.466865079 C112.976849,0.466865079 112.670013,0.776137858 112.670013,1.11633791 L112.670013,23.5386144 C112.670013,23.8788144 112.976849,24.1880872 113.314368,24.1880872 L116.444092,24.1880872 C116.781611,24.1880872 117.088447,23.8788144 117.088447,23.5386144 L117.088447,1.11633791 C117.088447,0.776137858 116.781611,0.466865079 116.444092,0.466865079 L116.444092,0.466865079 Z" id="Shape"></path>
26
+ <path d="M144.252919,0.466865079 L130.56805,0.466865079 C130.199847,0.466865079 129.923695,0.776137858 129.923695,1.11633791 L129.923695,23.5386144 C129.923695,23.8788144 130.199847,24.1880872 130.56805,24.1880872 L133.66709,24.1880872 C134.004609,24.1880872 134.311444,23.8788144 134.311444,23.5386144 L134.311444,14.9717584 L142.596007,14.9717584 C142.933526,14.9717584 143.240362,14.6624856 143.240362,14.3222856 L143.240362,11.5388306 C143.240362,11.1986305 142.933526,10.8893577 142.596007,10.8893577 L134.311444,10.8893577 L134.311444,4.51833848 L144.252919,4.51833848 C144.621122,4.51833848 144.897274,4.2090657 144.897274,3.86886565 L144.897274,1.08541064 C144.897274,0.776137858 144.651805,0.466865079 144.252919,0.466865079 L144.252919,0.466865079 Z" id="Shape"></path>
27
+ <path d="M172.362315,0.466865079 L168.895072,0.466865079 C168.61892,0.466865079 168.465502,0.621501469 168.342768,0.776137858 L162.973144,8.56981188 L157.60352,0.776137858 C157.51147,0.652428747 157.327368,0.466865079 157.051216,0.466865079 L153.614657,0.466865079 C153.062353,0.466865079 152.816884,1.02355608 153.062353,1.45653797 L160.733244,12.7759217 L160.733244,23.5386144 C160.733244,23.8788144 161.009396,24.1880872 161.377599,24.1880872 L164.476639,24.1880872 C164.814158,24.1880872 165.120994,23.8788144 165.120994,23.5386144 L165.120994,12.7140671 L172.883935,1.42561069 C173.160087,0.992628803 172.883935,0.466865079 172.362315,0.466865079 L172.362315,0.466865079 Z" id="Shape"></path>
28
+ </g>
29
+ </g>
30
+ </g>
31
+ </g>
32
+ </svg>
assets/images/partners/pdf-embedder.png ADDED
Binary file
assets/images/partners/shortpixel.png ADDED
Binary file
assets/images/partners/smush.gif ADDED
Binary file
assets/images/partners/soliloquy.png ADDED
Binary file
assets/images/partners/sugar-calendar.png ADDED
Binary file
assets/images/partners/the-events-calendar.gif ADDED
Binary file
assets/images/proofing-icon.png ADDED
Binary file
assets/images/responsive-icon.png ADDED
Binary file
assets/images/social-icon.png ADDED
Binary file
assets/images/socialsharing.png ADDED
Binary file
assets/images/tags-addon.png ADDED
Binary file
assets/images/tags-icon.png ADDED
Binary file
assets/images/videos-addon.png ADDED
Binary file
assets/images/videos-icon.png ADDED
Binary file
assets/js/admin.js CHANGED
@@ -5,46 +5,56 @@
5
  *
6
  * @since 1.5.0
7
  */
8
- jQuery( document ).ready( function( $ ) {
9
-
10
- $("#screen-meta-links").prependTo("#envira-header-temp");
11
- $("#screen-meta").prependTo("#envira-header-temp");
12
 
13
  /**
14
- * Copy to Clipboard
15
- */
16
- if ( typeof Clipboard !== 'undefined' ) {
17
- $( document ).on( 'click', '.envira-clipboard', function( e ) {
18
- var envira_clipboard = new Clipboard('.envira-clipboard');
19
- e.preventDefault();
20
- } );
21
- }
22
 
23
  /**
24
- * Dismissable Notices
25
- * - Sends an AJAX request to mark the notice as dismissed
26
- */
27
- $( 'div.envira-notice' ).on( 'click', '.notice-dismiss', function( e ) {
28
-
29
- e.preventDefault();
30
-
31
- $( this ).closest( 'div.envira-notice' ).fadeOut();
32
-
33
- // If this is a dismissible notice, it means we need to send an AJAX request
34
- if ( $( this ).hasClass( 'is-dismissible' ) ) {
35
- $.post(
36
- envira_gallery_admin.ajax,
37
- {
38
- action: 'envira_gallery_ajax_dismiss_notice',
39
- nonce: envira_gallery_admin.dismiss_notice_nonce,
40
- notice: $( this ).parent().data( 'notice' )
41
- },
42
- function( response ) {
43
- },
44
- 'json'
45
- );
46
- }
47
-
48
- } );
49
-
50
- });
 
 
 
 
 
 
 
 
 
 
 
5
  *
6
  * @since 1.5.0
7
  */
8
+ jQuery(document).ready(function ($) {
9
+ $('#screen-meta-links').prependTo('#envira-header-temp');
10
+ $('#screen-meta').prependTo('#envira-header-temp');
 
11
 
12
  /**
13
+ * Copy to Clipboard
14
+ */
15
+ if (typeof ClipboardJS !== 'undefined') {
16
+ $(document).on('click', '.envira-clipboard', function (e) {
17
+ var envira_clipboard = new ClipboardJS('.envira-clipboard');
18
+ e.preventDefault();
19
+ });
20
+ }
21
 
22
  /**
23
+ * Dismissable Notices
24
+ * - Sends an AJAX request to mark the notice as dismissed
25
+ */
26
+ $('div.envira-notice').on('click', '.notice-dismiss', function (e) {
27
+ e.preventDefault();
28
+
29
+ $(this).closest('div.envira-notice').fadeOut();
30
+
31
+ // If this is a dismissible notice, it means we need to send an AJAX request
32
+ if ($(this).hasClass('is-dismissible')) {
33
+ $.post(
34
+ envira_gallery_admin.ajax,
35
+ {
36
+ action: 'envira_gallery_ajax_dismiss_notice',
37
+ nonce: envira_gallery_admin.dismiss_notice_nonce,
38
+ notice: $(this).parent().data('notice'),
39
+ },
40
+ function (response) {},
41
+ 'json',
42
+ );
43
+ }
44
+ });
45
+
46
+ $('#envira-top-notification').on('click', '.envira-dismiss', function (e) {
47
+ e.preventDefault();
48
+
49
+ $(this).closest('div.envira-header-notification').fadeOut();
50
+ $.post(
51
+ envira_gallery_admin.ajax,
52
+ {
53
+ action: 'envira_gallery_ajax_dismiss_topbar',
54
+ nonce: envira_gallery_admin.dismiss_topbar_nonce,
55
+ },
56
+ function (response) {},
57
+ 'json',
58
+ );
59
+ });
60
+ });
assets/js/clipboard.js DELETED
@@ -1,740 +0,0 @@
1
- /*!
2
- * clipboard.js v1.5.10
3
- * https://zenorocha.github.io/clipboard.js
4
- *
5
- * Licensed MIT © Zeno Rocha
6
- */
7
- (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Clipboard = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
8
- var matches = require('matches-selector')
9
-
10
- module.exports = function (element, selector, checkYoSelf) {
11
- var parent = checkYoSelf ? element : element.parentNode
12
-
13
- while (parent && parent !== document) {
14
- if (matches(parent, selector)) return parent;
15
- parent = parent.parentNode
16
- }
17
- }
18
-
19
- },{"matches-selector":5}],2:[function(require,module,exports){
20
- var closest = require('closest');
21
-
22
- /**
23
- * Delegates event to a selector.
24
- *
25
- * @param {Element} element
26
- * @param {String} selector
27
- * @param {String} type
28
- * @param {Function} callback
29
- * @param {Boolean} useCapture
30
- * @return {Object}
31
- */
32
- function delegate(element, selector, type, callback, useCapture) {
33
- var listenerFn = listener.apply(this, arguments);
34
-
35
- element.addEventListener(type, listenerFn, useCapture);
36
-
37
- return {
38
- destroy: function() {
39
- element.removeEventListener(type, listenerFn, useCapture);
40
- }
41
- }
42
- }
43
-
44
- /**
45
- * Finds closest match and invokes callback.
46
- *
47
- * @param {Element} element
48
- * @param {String} selector
49
- * @param {String} type
50
- * @param {Function} callback
51
- * @return {Function}
52
- */
53
- function listener(element, selector, type, callback) {
54
- return function(e) {
55
- e.delegateTarget = closest(e.target, selector, true);
56
-
57
- if (e.delegateTarget) {
58
- callback.call(element, e);
59
- }
60
- }
61
- }
62
-
63
- module.exports = delegate;
64
-
65
- },{"closest":1}],3:[function(require,module,exports){
66
- /**
67
- * Check if argument is a HTML element.
68
- *
69
- * @param {Object} value
70
- * @return {Boolean}
71
- */
72
- exports.node = function(value) {
73
- return value !== undefined
74
- && value instanceof HTMLElement
75
- && value.nodeType === 1;
76
- };
77
-
78
- /**
79
- * Check if argument is a list of HTML elements.
80
- *
81
- * @param {Object} value
82
- * @return {Boolean}
83
- */
84
- exports.nodeList = function(value) {
85
- var type = Object.prototype.toString.call(value);
86
-
87
- return value !== undefined
88
- && (type === '[object NodeList]' || type === '[object HTMLCollection]')
89
- && ('length' in value)
90
- && (value.length === 0 || exports.node(value[0]));
91
- };
92
-
93
- /**
94
- * Check if argument is a string.
95
- *
96
- * @param {Object} value
97
- * @return {Boolean}
98
- */
99
- exports.string = function(value) {
100
- return typeof value === 'string'
101
- || value instanceof String;
102
- };
103
-
104
- /**
105
- * Check if argument is a function.
106
- *
107
- * @param {Object} value
108
- * @return {Boolean}
109
- */
110
- exports.fn = function(value) {
111
- var type = Object.prototype.toString.call(value);
112
-
113
- return type === '[object Function]';
114
- };
115
-
116
- },{}],4:[function(require,module,exports){
117
- var is = require('./is');
118
- var delegate = require('delegate');
119
-
120
- /**
121
- * Validates all params and calls the right
122
- * listener function based on its target type.
123
- *
124
- * @param {String|HTMLElement|HTMLCollection|NodeList} target
125
- * @param {String} type
126
- * @param {Function} callback
127
- * @return {Object}
128
- */
129
- function listen(target, type, callback) {
130
- if (!target && !type && !callback) {
131
- throw new Error('Missing required arguments');
132
- }
133
-
134
- if (!is.string(type)) {
135
- throw new TypeError('Second argument must be a String');
136
- }
137
-
138
- if (!is.fn(callback)) {
139
- throw new TypeError('Third argument must be a Function');
140
- }
141
-
142
- if (is.node(target)) {
143
- return listenNode(target, type, callback);
144
- }
145
- else if (is.nodeList(target)) {
146
- return listenNodeList(target, type, callback);
147
- }
148
- else if (is.string(target)) {
149
- return listenSelector(target, type, callback);
150
- }
151
- else {
152
- throw new TypeError('First argument must be a String, HTMLElement, HTMLCollection, or NodeList');
153
- }
154
- }
155
-
156
- /**
157
- * Adds an event listener to a HTML element
158
- * and returns a remove listener function.
159
- *
160
- * @param {HTMLElement} node
161
- * @param {String} type
162
- * @param {Function} callback
163
- * @return {Object}
164
- */
165
- function listenNode(node, type, callback) {
166
- node.addEventListener(type, callback);
167
-
168
- return {
169
- destroy: function() {
170
- node.removeEventListener(type, callback);
171
- }
172
- }
173
- }
174
-
175
- /**
176
- * Add an event listener to a list of HTML elements
177
- * and returns a remove listener function.
178
- *
179
- * @param {NodeList|HTMLCollection} nodeList
180
- * @param {String} type
181
- * @param {Function} callback
182
- * @return {Object}
183
- */
184
- function listenNodeList(nodeList, type, callback) {
185
- Array.prototype.forEach.call(nodeList, function(node) {
186
- node.addEventListener(type, callback);
187
- });
188
-
189
- return {
190
- destroy: function() {
191
- Array.prototype.forEach.call(nodeList, function(node) {
192
- node.removeEventListener(type, callback);
193
- });
194
- }
195
- }
196
- }
197
-
198
- /**
199
- * Add an event listener to a selector
200
- * and returns a remove listener function.
201
- *
202
- * @param {String} selector
203
- * @param {String} type
204
- * @param {Function} callback
205
- * @return {Object}
206
- */
207
- function listenSelector(selector, type, callback) {
208
- return delegate(document.body, selector, type, callback);
209
- }
210
-
211
- module.exports = listen;
212
-
213
- },{"./is":3,"delegate":2}],5:[function(require,module,exports){
214
-
215
- /**
216
- * Element prototype.
217
- */
218
-
219
- var proto = Element.prototype;
220
-
221
- /**
222
- * Vendor function.
223
- */
224
-
225
- var vendor = proto.matchesSelector
226
- || proto.webkitMatchesSelector
227
- || proto.mozMatchesSelector
228
- || proto.msMatchesSelector
229
- || proto.oMatchesSelector;
230
-
231
- /**
232
- * Expose `match()`.
233
- */
234
-
235
- module.exports = match;
236
-
237
- /**
238
- * Match `el` to `selector`.
239
- *
240
- * @param {Element} el
241
- * @param {String} selector
242
- * @return {Boolean}
243
- * @api public
244
- */
245
-
246
- function match(el, selector) {
247
- if (vendor) return vendor.call(el, selector);
248
- var nodes = el.parentNode.querySelectorAll(selector);
249
- for (var i = 0; i < nodes.length; ++i) {
250
- if (nodes[i] == el) return true;
251
- }
252
- return false;
253
- }
254
- },{}],6:[function(require,module,exports){
255
- function select(element) {
256
- var selectedText;
257
-
258
- if (element.nodeName === 'INPUT' || element.nodeName === 'TEXTAREA') {
259
- element.focus();
260
- element.setSelectionRange(0, element.value.length);
261
-
262
- selectedText = element.value;
263
- }
264
- else {
265
- if (element.hasAttribute('contenteditable')) {
266
- element.focus();
267
- }
268
-
269
- var selection = window.getSelection();
270
- var range = document.createRange();
271
-
272
- range.selectNodeContents(element);
273
- selection.removeAllRanges();
274
- selection.addRange(range);
275
-
276
- selectedText = selection.toString();
277
- }
278
-
279
- return selectedText;
280
- }
281
-
282
- module.exports = select;
283
-
284
- },{}],7:[function(require,module,exports){
285
- function E () {
286
- // Keep this empty so it's easier to inherit from
287
- // (via https://github.com/lipsmack from https://github.com/scottcorgan/tiny-emitter/issues/3)
288
- }
289
-
290
- E.prototype = {
291
- on: function (name, callback, ctx) {
292
- var e = this.e || (this.e = {});
293
-
294
- (e[name] || (e[name] = [])).push({
295
- fn: callback,
296
- ctx: ctx
297
- });
298
-
299
- return this;
300
- },
301
-
302
- once: function (name, callback, ctx) {
303
- var self = this;
304
- function listener () {
305
- self.off(name, listener);
306
- callback.apply(ctx, arguments);
307
- };
308
-
309
- listener._ = callback
310
- return this.on(name, listener, ctx);
311
- },
312
-
313
- emit: function (name) {
314
- var data = [].slice.call(arguments, 1);
315
- var evtArr = ((this.e || (this.e = {}))[name] || []).slice();
316
- var i = 0;
317
- var len = evtArr.length;
318
-
319
- for (i; i < len; i++) {
320
- evtArr[i].fn.apply(evtArr[i].ctx, data);
321
- }
322
-
323
- return this;
324
- },
325
-
326
- off: function (name, callback) {
327
- var e = this.e || (this.e = {});
328
- var evts = e[name];
329
- var liveEvents = [];
330
-
331
- if (evts && callback) {
332
- for (var i = 0, len = evts.length; i < len; i++) {
333
- if (evts[i].fn !== callback && evts[i].fn._ !== callback)
334
- liveEvents.push(evts[i]);
335
- }
336
- }
337
-
338
- // Remove event from queue to prevent memory leak
339
- // Suggested by https://github.com/lazd
340
- // Ref: https://github.com/scottcorgan/tiny-emitter/commit/c6ebfaa9bc973b33d110a84a307742b7cf94c953#commitcomment-5024910
341
-
342
- (liveEvents.length)
343
- ? e[name] = liveEvents
344
- : delete e[name];
345
-
346
- return this;
347
- }
348
- };
349
-
350
- module.exports = E;
351
-
352
- },{}],8:[function(require,module,exports){
353
- (function (global, factory) {
354
- if (typeof define === "function" && define.amd) {
355
- define(['module', 'select'], factory);
356
- } else if (typeof exports !== "undefined") {
357
- factory(module, require('select'));
358
- } else {
359
- var mod = {
360
- exports: {}
361
- };
362
- factory(mod, global.select);
363
- global.clipboardAction = mod.exports;
364
- }
365
- })(this, function (module, _select) {
366
- 'use strict';
367
-
368
- var _select2 = _interopRequireDefault(_select);
369
-
370
- function _interopRequireDefault(obj) {
371
- return obj && obj.__esModule ? obj : {
372
- default: obj
373
- };
374
- }
375
-
376
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
377
- return typeof obj;
378
- } : function (obj) {
379
- return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj;
380
- };
381
-
382
- function _classCallCheck(instance, Constructor) {
383
- if (!(instance instanceof Constructor)) {
384
- throw new TypeError("Cannot call a class as a function");
385
- }
386
- }
387
-
388
- var _createClass = function () {
389
- function defineProperties(target, props) {
390
- for (var i = 0; i < props.length; i++) {
391
- var descriptor = props[i];
392
- descriptor.enumerable = descriptor.enumerable || false;
393
- descriptor.configurable = true;
394
- if ("value" in descriptor) descriptor.writable = true;
395
- Object.defineProperty(target, descriptor.key, descriptor);
396
- }
397
- }
398
-
399
- return function (Constructor, protoProps, staticProps) {
400
- if (protoProps) defineProperties(Constructor.prototype, protoProps);
401
- if (staticProps) defineProperties(Constructor, staticProps);
402
- return Constructor;
403
- };
404
- }();
405
-
406
- var ClipboardAction = function () {
407
- /**
408
- * @param {Object} options
409
- */
410
-
411
- function ClipboardAction(options) {
412
- _classCallCheck(this, ClipboardAction);
413
-
414
- this.resolveOptions(options);
415
- this.initSelection();
416
- }
417
-
418
- /**
419
- * Defines base properties passed from constructor.
420
- * @param {Object} options
421
- */
422
-
423
-
424
- ClipboardAction.prototype.resolveOptions = function resolveOptions() {
425
- var options = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0];
426
-
427
- this.action = options.action;
428
- this.emitter = options.emitter;
429
- this.target = options.target;
430
- this.text = options.text;
431
- this.trigger = options.trigger;
432
-
433
- this.selectedText = '';
434
- };
435
-
436
- ClipboardAction.prototype.initSelection = function initSelection() {
437
- if (this.text) {
438
- this.selectFake();
439
- } else if (this.target) {
440
- this.selectTarget();
441
- }
442
- };
443
-
444
- ClipboardAction.prototype.selectFake = function selectFake() {
445
- var _this = this;
446
-
447
- var isRTL = document.documentElement.getAttribute('dir') == 'rtl';
448
-
449
- this.removeFake();
450
-
451
- this.fakeHandler = document.body.addEventListener('click', function () {
452
- return _this.removeFake();
453
- });
454
-
455
- this.fakeElem = document.createElement('textarea');
456
- // Prevent zooming on iOS
457
- this.fakeElem.style.fontSize = '12pt';
458
- // Reset box model
459
- this.fakeElem.style.border = '0';
460
- this.fakeElem.style.padding = '0';
461
- this.fakeElem.style.margin = '0';
462
- // Move element out of screen horizontally
463
- this.fakeElem.style.position = 'fixed';
464
- this.fakeElem.style[isRTL ? 'right' : 'left'] = '-9999px';
465
- // Move element to the same position vertically
466
- this.fakeElem.style.top = (window.pageYOffset || document.documentElement.scrollTop) + 'px';
467
- this.fakeElem.setAttribute('readonly', '');
468
- this.fakeElem.value = this.text;
469
-
470
- document.body.appendChild(this.fakeElem);
471
-
472
- this.selectedText = (0, _select2.default)(this.fakeElem);
473
- this.copyText();
474
- };
475
-
476
- ClipboardAction.prototype.removeFake = function removeFake() {
477
- if (this.fakeHandler) {
478
- document.body.removeEventListener('click');
479
- this.fakeHandler = null;
480
- }
481
-
482
- if (this.fakeElem) {
483
- document.body.removeChild(this.fakeElem);
484
- this.fakeElem = null;
485
- }
486
- };
487
-
488
- ClipboardAction.prototype.selectTarget = function selectTarget() {
489
- this.selectedText = (0, _select2.default)(this.target);
490
- this.copyText();
491
- };
492
-
493
- ClipboardAction.prototype.copyText = function copyText() {
494
- var succeeded = undefined;
495
-
496
- try {
497
- succeeded = document.execCommand(this.action);
498
- } catch (err) {
499
- succeeded = false;
500
- }
501
-
502
- this.handleResult(succeeded);
503
- };
504
-
505
- ClipboardAction.prototype.handleResult = function handleResult(succeeded) {
506
- if (succeeded) {
507
- this.emitter.emit('success', {
508
- action: this.action,
509
- text: this.selectedText,
510
- trigger: this.trigger,
511
- clearSelection: this.clearSelection.bind(this)
512
- });
513
- } else {
514
- this.emitter.emit('error', {
515
- action: this.action,
516
- trigger: this.trigger,
517
- clearSelection: this.clearSelection.bind(this)
518
- });
519
- }
520
- };
521
-
522
- ClipboardAction.prototype.clearSelection = function clearSelection() {
523
- if (this.target) {
524
- this.target.blur();
525
- }
526
-
527
- window.getSelection().removeAllRanges();
528
- };
529
-
530
- ClipboardAction.prototype.destroy = function destroy() {
531
- this.removeFake();
532
- };
533
-
534
- _createClass(ClipboardAction, [{
535
- key: 'action',
536
- set: function set() {
537
- var action = arguments.length <= 0 || arguments[0] === undefined ? 'copy' : arguments[0];
538
-
539
- this._action = action;
540
-
541
- if (this._action !== 'copy' && this._action !== 'cut') {
542
- throw new Error('Invalid "action" value, use either "copy" or "cut"');
543
- }
544
- },
545
- get: function get() {
546
- return this._action;
547
- }
548
- }, {
549
- key: 'target',
550
- set: function set(target) {
551
- if (target !== undefined) {
552
- if (target && (typeof target === 'undefined' ? 'undefined' : _typeof(target)) === 'object' && target.nodeType === 1) {
553
- if (this.action === 'copy' && target.hasAttribute('disabled')) {
554
- throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');
555
- }
556
-
557
- if (this.action === 'cut' && (target.hasAttribute('readonly') || target.hasAttribute('disabled'))) {
558
- throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');
559
- }
560
-
561
- this._target = target;
562
- } else {
563
- throw new Error('Invalid "target" value, use a valid Element');
564
- }
565
- }
566
- },
567
- get: function get() {
568
- return this._target;
569
- }
570
- }]);
571
-
572
- return ClipboardAction;
573
- }();
574
-
575
- module.exports = ClipboardAction;
576
- });
577
-
578
- },{"select":6}],9:[function(require,module,exports){
579
- (function (global, factory) {
580
- if (typeof define === "function" && define.amd) {
581
- define(['module', './clipboard-action', 'tiny-emitter', 'good-listener'], factory);
582
- } else if (typeof exports !== "undefined") {
583
- factory(module, require('./clipboard-action'), require('tiny-emitter'), require('good-listener'));
584
- } else {
585
- var mod = {
586
- exports: {}
587
- };
588
- factory(mod, global.clipboardAction, global.tinyEmitter, global.goodListener);
589
- global.clipboard = mod.exports;
590
- }
591
- })(this, function (module, _clipboardAction, _tinyEmitter, _goodListener) {
592
- 'use strict';
593
-
594
- var _clipboardAction2 = _interopRequireDefault(_clipboardAction);
595
-
596
- var _tinyEmitter2 = _interopRequireDefault(_tinyEmitter);
597
-
598
- var _goodListener2 = _interopRequireDefault(_goodListener);
599
-
600
- function _interopRequireDefault(obj) {
601
- return obj && obj.__esModule ? obj : {
602
- default: obj
603
- };
604
- }
605
-
606
- function _classCallCheck(instance, Constructor) {
607
- if (!(instance instanceof Constructor)) {
608
- throw new TypeError("Cannot call a class as a function");
609
- }
610
- }
611
-
612
- function _possibleConstructorReturn(self, call) {
613
- if (!self) {
614
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
615
- }
616
-
617
- return call && (typeof call === "object" || typeof call === "function") ? call : self;
618
- }
619
-
620
- function _inherits(subClass, superClass) {
621
- if (typeof superClass !== "function" && superClass !== null) {
622
- throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
623
- }
624
-
625
- subClass.prototype = Object.create(superClass && superClass.prototype, {
626
- constructor: {
627
- value: subClass,
628
- enumerable: false,
629
- writable: true,
630
- configurable: true
631
- }
632
- });
633
- if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
634
- }
635
-
636
- var Clipboard = function (_Emitter) {
637
- _inherits(Clipboard, _Emitter);
638
-
639
- /**
640
- * @param {String|HTMLElement|HTMLCollection|NodeList} trigger
641
- * @param {Object} options
642
- */
643
-
644
- function Clipboard(trigger, options) {
645
- _classCallCheck(this, Clipboard);
646
-
647
- var _this = _possibleConstructorReturn(this, _Emitter.call(this));
648
-
649
- _this.resolveOptions(options);
650
- _this.listenClick(trigger);
651
- return _this;
652
- }
653
-
654
- /**
655
- * Defines if attributes would be resolved using internal setter functions
656
- * or custom functions that were passed in the constructor.
657
- * @param {Object} options
658
- */
659
-
660
-
661
- Clipboard.prototype.resolveOptions = function resolveOptions() {
662
- var options = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0];
663
-
664
- this.action = typeof options.action === 'function' ? options.action : this.defaultAction;
665
- this.target = typeof options.target === 'function' ? options.target : this.defaultTarget;
666
- this.text = typeof options.text === 'function' ? options.text : this.defaultText;
667
- };
668
-
669
- Clipboard.prototype.listenClick = function listenClick(trigger) {
670
- var _this2 = this;
671
-
672
- this.listener = (0, _goodListener2.default)(trigger, 'click', function (e) {
673
- return _this2.onClick(e);
674
- });
675
- };
676
-
677
- Clipboard.prototype.onClick = function onClick(e) {
678
- var trigger = e.delegateTarget || e.currentTarget;
679
-
680
- if (this.clipboardAction) {
681
- this.clipboardAction = null;
682
- }
683
-
684
- this.clipboardAction = new _clipboardAction2.default({
685
- action: this.action(trigger),
686
- target: this.target(trigger),
687
- text: this.text(trigger),
688
- trigger: trigger,
689
- emitter: this
690
- });
691
- };
692
-
693
- Clipboard.prototype.defaultAction = function defaultAction(trigger) {
694
- return getAttributeValue('action', trigger);
695
- };
696
-
697
- Clipboard.prototype.defaultTarget = function defaultTarget(trigger) {
698
- var selector = getAttributeValue('target', trigger);
699
-
700
- if (selector) {
701
- return document.querySelector(selector);
702
- }
703
- };
704
-
705
- Clipboard.prototype.defaultText = function defaultText(trigger) {
706
- return getAttributeValue('text', trigger);
707
- };
708
-
709
- Clipboard.prototype.destroy = function destroy() {
710
- this.listener.destroy();
711
-
712
- if (this.clipboardAction) {
713
- this.clipboardAction.destroy();
714
- this.clipboardAction = null;
715
- }
716
- };
717
-
718
- return Clipboard;
719
- }(_tinyEmitter2.default);
720
-
721
- /**
722
- * Helper function to retrieve attribute value.
723
- * @param {String} suffix
724
- * @param {Element} element
725
- */
726
- function getAttributeValue(suffix, element) {
727
- var attribute = 'data-clipboard-' + suffix;
728
-
729
- if (!element.hasAttribute(attribute)) {
730
- return;
731
- }
732
-
733
- return element.getAttribute(attribute);
734
- }
735
-
736
- module.exports = Clipboard;
737
- });
738
-
739
- },{"./clipboard-action":8,"good-listener":4,"tiny-emitter":7}]},{},[9])(9)
740
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/js/envira-gutenberg.js CHANGED
@@ -1,6 +1,2 @@
1
- window.wp=window.wp||{},window.wp.enviraGutenberg=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=32)}([function(e,t){e.exports=window.React},function(e,t,n){e.exports=n(23)()},function(e,t){e.exports=window.wp.i18n},function(e,t){e.exports=window.wp.element},function(e,t){e.exports=window.wp.components},function(e,t){e.exports=window.wp.data},function(e,t){e.exports=window.wp.compose},function(e,t){e.exports=window.wp.blockEditor},function(e,t){e.exports=window.wp.apiFetch},function(e,t){e.exports=window.ReactDOM},function(e,t,n){var r;
2
- /*!
3
- Copyright (c) 2017 Jed Watson.
4
- Licensed under the MIT License (MIT), see
5
- http://jedwatson.github.io/classnames
6
- */!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)&&r.length){var a=o.apply(null,r);a&&e.push(a)}else if("object"===i)for(var u in r)n.call(r,u)&&r[u]&&e.push(u)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=(a=r,u=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(u),"/*# ".concat(s," */")),i=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot).concat(e," */")}));return[n].concat(i).concat([o]).join("\n")}var a,u,s;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2],"{").concat(n,"}"):n})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];null!=i&&(r[i]=!0)}for(var a=0;a<e.length;a++){var u=e[a];null!=u[0]&&r[u[0]]||(n&&!u[2]?u[2]=n:n&&(u[2]="(".concat(u[2],") and (").concat(n,")")),t.push(u))}},t}},function(e,t,n){"use strict";var r,o={},i=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},a=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}();function u(e,t){for(var n=[],r={},o=0;o<e.length;o++){var i=e[o],a=t.base?i[0]+t.base:i[0],u={css:i[1],media:i[2],sourceMap:i[3]};r[a]?r[a].parts.push(u):n.push(r[a]={id:a,parts:[u]})}return n}function s(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=o[r.id],a=0;if(i){for(i.refs++;a<i.parts.length;a++)i.parts[a](r.parts[a]);for(;a<r.parts.length;a++)i.parts.push(g(r.parts[a],t))}else{for(var u=[];a<r.parts.length;a++)u.push(g(r.parts[a],t));o[r.id]={id:r.id,refs:1,parts:u}}}}function l(e){var t=document.createElement("style");if(void 0===e.attributes.nonce){var r=n.nc;r&&(e.attributes.nonce=r)}if(Object.keys(e.attributes).forEach((function(n){t.setAttribute(n,e.attributes[n])})),"function"==typeof e.insert)e.insert(t);else{var o=a(e.insert||"head");if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(t)}return t}var c,p=(c=[],function(e,t){return c[e]=t,c.filter(Boolean).join("\n")});function f(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=p(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function d(e,t,n){var r=n.css,o=n.media,i=n.sourceMap;if(o&&e.setAttribute("media",o),i&&btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var h=null,m=0;function g(e,t){var n,r,o;if(t.singleton){var i=m++;n=h||(h=l(t)),r=f.bind(null,n,i,!1),o=f.bind(null,n,i,!0)}else n=l(t),r=d.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).attributes="object"==typeof t.attributes?t.attributes:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=i());var n=u(e,t);return s(n,t),function(e){for(var r=[],i=0;i<n.length;i++){var a=n[i],l=o[a.id];l&&(l.refs--,r.push(l))}e&&s(u(e,t),t);for(var c=0;c<r.length;c++){var p=r[c];if(0===p.refs){for(var f=0;f<p.parts.length;f++)p.parts[f]();delete o[p.id]}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),a=s(i),u=s(n(1));function s(e){return e&&e.__esModule?e:{default:e}}var l={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},c=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],p=function(e,t){t.style.fontSize=e.fontSize,t.style.fontFamily=e.fontFamily,t.style.fontWeight=e.fontWeight,t.style.fontStyle=e.fontStyle,t.style.letterSpacing=e.letterSpacing,t.style.textTransform=e.textTransform},f=!("undefined"==typeof window||!window.navigator)&&/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent),d=function(){return f?"_"+Math.random().toString(36).substr(2,12):void 0},h=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.inputRef=function(e){n.input=e,"function"==typeof n.props.inputRef&&n.props.inputRef(e)},n.placeHolderSizerRef=function(e){n.placeHolderSizer=e},n.sizerRef=function(e){n.sizer=e},n.state={inputWidth:e.minWidth,inputId:e.id||d()},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=e.id;t!==this.props.id&&this.setState({inputId:t||d()})}},{key:"componentDidUpdate",value:function(e,t){t.inputWidth!==this.state.inputWidth&&"function"==typeof this.props.onAutosize&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(this.mounted&&window.getComputedStyle){var e=this.input&&window.getComputedStyle(this.input);e&&(p(e,this.sizer),this.placeHolderSizer&&p(e,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(this.mounted&&this.sizer&&void 0!==this.sizer.scrollWidth){var e=void 0;e=this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:this.sizer.scrollWidth+2,(e+="number"===this.props.type&&void 0===this.props.extraWidth?16:parseInt(this.props.extraWidth)||0)<this.props.minWidth&&(e=this.props.minWidth),e!==this.state.inputWidth&&this.setState({inputWidth:e})}}},{key:"getInput",value:function(){return this.input}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"renderStyles",value:function(){var e=this.props.injectStyles;return f&&e?a.default.createElement("style",{dangerouslySetInnerHTML:{__html:"input#"+this.state.inputId+"::-ms-clear {display: none;}"}}):null}},{key:"render",value:function(){var e=[this.props.defaultValue,this.props.value,""].reduce((function(e,t){return null!=e?e:t})),t=r({},this.props.style);t.display||(t.display="inline-block");var n=r({boxSizing:"content-box",width:this.state.inputWidth+"px"},this.props.inputStyle),o=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(this.props,[]);return function(e){c.forEach((function(t){return delete e[t]}))}(o),o.className=this.props.inputClassName,o.id=this.state.inputId,o.style=n,a.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),a.default.createElement("input",r({},o,{ref:this.inputRef})),a.default.createElement("div",{ref:this.sizerRef,style:l},e),this.props.placeholder?a.default.createElement("div",{ref:this.placeHolderSizerRef,style:l},this.props.placeholder):null)}}]),t}(i.Component);h.propTypes={className:u.default.string,defaultValue:u.default.any,extraWidth:u.default.oneOfType([u.default.number,u.default.string]),id:u.default.string,injectStyles:u.default.bool,inputClassName:u.default.string,inputRef:u.default.func,inputStyle:u.default.object,minWidth:u.default.oneOfType([u.default.number,u.default.string]),onAutosize:u.default.func,onChange:u.default.func,placeholder:u.default.string,placeholderIsMinWidth:u.default.bool,style:u.default.object,value:u.default.any},h.defaultProps={minWidth:1,injectStyles:!0},t.default=h},function(e,t){e.exports=window.lodash},function(e,t){e.exports=window.wp.blob},function(e,t){e.exports=window.wp.blocks},function(e,t){e.exports=window.wp.editor},function(e,t,n){var r;e.exports=(r=n(0),function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=11)}([function(e,t,n){var r;!function(){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)&&r.length){var a=n.apply(null,r);a&&e.push(a)}else if("object"===i)for(var u in r)o.call(r,u)&&r[u]&&e.push(u)}}return e.join(" ")}var o={}.hasOwnProperty;void 0!==e&&e.exports?(n.default=n,e.exports=n):void 0!==(r=function(){return n}.apply(t,[]))&&(e.exports=r)}()},function(e,t){e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Progress=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(8));t.Progress=r.default},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var o,i=(t.prefixClass="react-sweet-progress",t.DEFAULT_TRAIL_COLOR="#efefef",t.STATUSES={ACTIVE:"active",SUCCESS:"success",ERROR:"error",DEFAULT:"default"});t.COLOR_MAP=(r(o={},i.ACTIVE,"#138ce4"),r(o,i.SUCCESS,"#049e51"),r(o,i.ERROR,"#e23f33"),o)},function(e,t){e.exports={"react-sweet-progress-line":"react-sweet-progress-line","react-sweet-progress-line-inner":"react-sweet-progress-line-inner","react-sweet-progress-line-inner-status-active":"react-sweet-progress-line-inner-status-active","active-anim":"active-anim"}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var u in i)void 0===n[u]&&(n[u]=i[u]);else n||(n=i||{});if(1===a)n.children=o;else if(a>1){for(var s=Array(a),l=0;l<a;l++)s[l]=arguments[l+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(1),s=r(u),l=r(n(0)),c=r(n(9)),p=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"getPathStyles",value:function(){var e=this.props,t=(e.prefixClass,e.percent),n=e.strokeWidth,r=e.gapDegree,o=void 0===r?0:r,i=(e.gapPosition,50-n/2),a=-2*i,u="M 50,50 m 0,"+-i+"\n a "+i+","+i+" 0 1 1 0,"+-a+"\n a "+i+","+i+" 0 1 1 "+-0+","+a,s=2*Math.PI*i;return{pathString:u,trailPathStyle:{strokeDasharray:s-o+"px "+s+"px",strokeDashoffset:"-"+o/2+"px",transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s"},strokePathStyle:{strokeDasharray:t/100*(s-o)+"px "+s+"px",strokeDashoffset:"-"+o/2+"px",transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s"}}}},{key:"render",value:function(){var e=this,t=this.props,n=t.prefixClass,r=t.strokeWidth,a=t.strokeColor,u=t.trailColor,p=t.style,f=t.className,d=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["prefixClass","strokeWidth","strokeColor","trailColor","style","className"]),h=(0,l.default)(c.default[n+"-circle"],f),m=this.getPathStyles(),g=m.pathString,b=m.trailPathStyle,v=m.strokePathStyle;return delete d.percent,delete d.gapDegree,delete d.gapPosition,s.default.createElement("svg",o({className:h,viewBox:"0 0 100 100",style:p},d),i("path",{d:g,stroke:u,strokeWidth:r,fillOpacity:"0",style:b}),s.default.createElement("path",{d:g,stroke:a,strokeWidth:r,fillOpacity:"0",ref:function(t){e.path=t},style:v}))}}]),t}(u.Component);t.default=p},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var u in i)void 0===n[u]&&(n[u]=i[u]);else n||(n=i||{});if(1===a)n.children=o;else if(a>1){for(var s=Array(a),l=0;l<a;l++)s[l]=arguments[l+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(1),u=(r(a),n(0)),s=(r(u),n(4)),l=(r(s),function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"render",value:function(){var e=this.props.size?{width:this.props.size,height:this.props.size}:{width:"20px",height:"20px"};switch(this.props.name){case"success":return o("svg",{version:"1.1",viewBox:"0 0 512 512",style:e},void 0,o("path",{fill:"#049e51",d:"M489,255.9c0-0.2,0-0.5,0-0.7c0-1.6,0-3.2-0.1-4.7c0-0.9-0.1-1.8-0.1-2.8c0-0.9-0.1-1.8-0.1-2.7 c-0.1-1.1-0.1-2.2-0.2-3.3c0-0.7-0.1-1.4-0.1-2.1c-0.1-1.2-0.2-2.4-0.3-3.6c0-0.5-0.1-1.1-0.1-1.6c-0.1-1.3-0.3-2.6-0.4-4 c0-0.3-0.1-0.7-0.1-1C474.3,113.2,375.7,22.9,256,22.9S37.7,113.2,24.5,229.5c0,0.3-0.1,0.7-0.1,1c-0.1,1.3-0.3,2.6-0.4,4 c-0.1,0.5-0.1,1.1-0.1,1.6c-0.1,1.2-0.2,2.4-0.3,3.6c0,0.7-0.1,1.4-0.1,2.1c-0.1,1.1-0.1,2.2-0.2,3.3c0,0.9-0.1,1.8-0.1,2.7 c0,0.9-0.1,1.8-0.1,2.8c0,1.6-0.1,3.2-0.1,4.7c0,0.2,0,0.5,0,0.7c0,0,0,0,0,0.1s0,0,0,0.1c0,0.2,0,0.5,0,0.7c0,1.6,0,3.2,0.1,4.7 c0,0.9,0.1,1.8,0.1,2.8c0,0.9,0.1,1.8,0.1,2.7c0.1,1.1,0.1,2.2,0.2,3.3c0,0.7,0.1,1.4,0.1,2.1c0.1,1.2,0.2,2.4,0.3,3.6 c0,0.5,0.1,1.1,0.1,1.6c0.1,1.3,0.3,2.6,0.4,4c0,0.3,0.1,0.7,0.1,1C37.7,398.8,136.3,489.1,256,489.1s218.3-90.3,231.5-206.5 c0-0.3,0.1-0.7,0.1-1c0.1-1.3,0.3-2.6,0.4-4c0.1-0.5,0.1-1.1,0.1-1.6c0.1-1.2,0.2-2.4,0.3-3.6c0-0.7,0.1-1.4,0.1-2.1 c0.1-1.1,0.1-2.2,0.2-3.3c0-0.9,0.1-1.8,0.1-2.7c0-0.9,0.1-1.8,0.1-2.8c0-1.6,0.1-3.2,0.1-4.7c0-0.2,0-0.5,0-0.7 C489,256,489,256,489,255.9C489,256,489,256,489,255.9z",id:"XMLID_3_"}),o("g",{fill:"none",stroke:"#FFFFFF",strokeWidth:30,strokeMiterlimit:10},void 0,o("line",{x1:"213.6",x2:"369.7",y1:"344.2",y2:"188.2"}),o("line",{x1:"233.8",x2:"154.7",y1:"345.2",y2:"266.1"})));case"error":return o("svg",{version:"1.1",viewBox:"0 0 50 50",style:e},void 0,o("circle",{fill:"#e23f33",cx:"25",cy:"25",r:"25"}),o("polyline",{fill:"none",stroke:"#FFFFFF",strokeWidth:3,strokeLinecap:"round",strokeMiterlimit:10,points:"16,34 25,25 34,16"}),o("polyline",{fill:"none",stroke:"#FFFFFF",strokeWidth:3,strokeLinecap:"round",strokeMiterlimit:10,points:"16,16 25,25 34,34"}));default:return null}}}]),t}(a.Component));t.default=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var u in i)void 0===n[u]&&(n[u]=i[u]);else n||(n=i||{});if(1===a)n.children=o;else if(a>1){for(var s=Array(a),l=0;l<a;l++)s[l]=arguments[l+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),i=(r(n(1)),n(0)),a=r(i),u=r((n(3),n(4)));t.default=function(e){var t=e.prefixClass,n=e.percent,r=e.className,i=e.status,s=e.background,l=e.trailColor,c=(0,a.default)(u.default[t+"-line"],r),p=(0,a.default)(u.default[t+"-line-inner"],function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},u.default[t+"-line-inner-status-"+i],!!i));return o("div",{className:c,style:{backgroundColor:l}},void 0,o("div",{className:p,style:{width:n+"%",backgroundColor:s}}))}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var u in i)void 0===n[u]&&(n[u]=i[u]);else n||(n=i||{});if(1===a)n.children=o;else if(a>1){for(var s=Array(a),l=0;l<a;l++)s[l]=arguments[l+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(1),s=(r(u),n(0)),l=r(s),c=n(3),p=r(n(10)),f=r(n(7)),d=r(n(5)),h=r(n(6)),m=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={status:e.status||c.STATUSES.ACTIVE},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"getSymbolByStatus",value:function(e,t){switch(e){case c.STATUSES.SUCCESS:return i(h.default,{name:"success",size:t});case c.STATUSES.ERROR:return i(h.default,{name:"error",size:t});default:return this.props.percent+"%"}}},{key:"render",value:function(){var e,t=this.props,n=t.percent,r=t.status,a=t.theme,u=t.style,s=t.className,h=t.symbolClassName,m=t.type,g=t.width,b=t.strokeWidth;e=0===n?c.STATUSES.DEFAULT:n>=100&&!r?c.STATUSES.SUCCESS:r||c.STATUSES.ACTIVE;var v=a&&a[e],y=v?v.color:c.COLOR_MAP[e],w=v?v.trailColor:c.DEFAULT_TRAIL_COLOR;if("circle"===m){var E=g||132,O=.16*E+6,_=1.25*O,C=v&&v.symbol||this.getSymbolByStatus(e,_),S=o({width:E,height:E,fontSize:O},u),x=b||6;return i("div",{className:c.prefixClass+"-circle-outer",style:S},void 0,i(d.default,{percent:n,strokeWidth:x,strokeColor:y,trailColor:w,prefixClass:c.prefixClass,gapDegree:0,gapPosition:"top"}),i("div",{className:p.default[c.prefixClass+"-symbol-absolute"]},void 0,i("div",{className:(0,l.default)(p.default[c.prefixClass+"-symbol"],h)},void 0,C)))}var k=v&&v.symbol||this.getSymbolByStatus(e);return i("div",{className:(0,l.default)(p.default[""+c.prefixClass],s),style:u},void 0,i(f.default,{prefixClass:c.prefixClass,percent:n,status:e,background:y,trailColor:w}),i("div",{className:(0,l.default)(p.default[c.prefixClass+"-symbol"],h)},void 0,k))}}]),t}(u.Component);m.defaultProps={percent:0},t.default=m},function(e,t){e.exports={"react-sweet-progress-circle":"react-sweet-progress-circle"}},function(e,t){e.exports={"react-sweet-progress":"react-sweet-progress","react-sweet-progress-symbol":"react-sweet-progress-symbol","react-sweet-progress-symbol-absolute":"react-sweet-progress-symbol-absolute","react-sweet-progress-circle-outer":"react-sweet-progress-circle-outer"}},function(e,t,n){n(2),e.exports=n(2)}]))},function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},function(e,t,n){"use strict";(function(e){var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return(function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}())}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,o=void 0!==e&&e.Math===Math?e:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),i="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(o):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},a=2;var u=20,s=["top","right","bottom","left","width","height","size","weight"],l="undefined"!=typeof MutationObserver,c=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function u(){n&&(n=!1,e()),r&&l()}function s(){i(u)}function l(){var e=Date.now();if(n){if(e-o<a)return;r=!0}else n=!0,r=!1,setTimeout(s,t);o=e}return l}(this.refresh.bind(this),u)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;s.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),p=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},f=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||o},d=y(0,0,0,0);function h(e){return parseFloat(e)||0}function m(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+h(e["border-"+n+"-width"])}),0)}function g(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return d;var r=f(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=h(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,u=h(r.width),s=h(r.height);if("border-box"===r.boxSizing&&(Math.round(u+i)!==t&&(u-=m(r,"left","right")+i),Math.round(s+a)!==n&&(s-=m(r,"top","bottom")+a)),!function(e){return e===f(e).document.documentElement}(e)){var l=Math.round(u+i)-t,c=Math.round(s+a)-n;1!==Math.abs(l)&&(u-=l),1!==Math.abs(c)&&(s-=c)}return y(o.left,o.top,u,s)}var b="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof f(e).SVGGraphicsElement}:function(e){return e instanceof f(e).SVGElement&&"function"==typeof e.getBBox};function v(e){return r?b(e)?function(e){var t=e.getBBox();return y(0,0,t.width,t.height)}(e):g(e):d}function y(e,t,n,r){return{x:e,y:t,width:n,height:r}}var w=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=y(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=v(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),E=function(e,t){var n,r,o,i,a,u,s,l=(r=(n=t).x,o=n.y,i=n.width,a=n.height,u="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,s=Object.create(u.prototype),p(s,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),s);p(this,{target:e,contentRect:l})},O=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new w(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new E(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),_="undefined"!=typeof WeakMap?new WeakMap:new n,C=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=c.getInstance(),r=new O(t,n,this);_.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){C.prototype[e]=function(){var t;return(t=_.get(this))[e].apply(t,arguments)}}));var S=void 0!==o.ResizeObserver?o.ResizeObserver:C;t.a=S}).call(this,n(25))},function(e,t,n){var r=n(22);"string"==typeof r&&(r=[[e.i,r,""]]);var o={insert:"head",singleton:!1};n(12)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(11)(!1)).push([e.i,'.react-sweet-progress{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%}.react-sweet-progress-symbol{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start;width:35px;height:20px;padding-left:10px;color:rgba(0,0,0,0.7);font-weight:200}.react-sweet-progress-symbol-absolute{display:-ms-flexbox;display:flex;position:absolute;top:50%;left:50%;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;transform:translate3d(-50%, -50%, 0)}.react-sweet-progress-symbol-absolute .react-sweet-progress-symbol{padding:0;width:100%}.react-sweet-progress-circle-outer{position:relative;display:inline-block;vertical-align:middle}.react-sweet-progress-line{width:100%;border-radius:100px;background-color:#efefef;vertical-align:middle}.react-sweet-progress-line-inner{position:relative;min-height:10px;border-radius:100px;transition:width 0.3s ease}.react-sweet-progress-line-inner-status-active:before{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:10px;background:#fff;animation:active-anim 2s cubic-bezier(0.25, 1, 0.6, 1) infinite;content:"";opacity:0}@keyframes active-anim{0%{width:0;opacity:.1}20%{width:0;opacity:.5}to{width:100%;opacity:0}}.react-sweet-progress-circle path{stroke-linecap:round}\n',""])},function(e,t,n){"use strict";var r=n(24);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){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}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(27);"string"==typeof r&&(r=[[e.i,r,""]]);var o={insert:"head",singleton:!1};n(12)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(11)(!1)).push([e.i,".envira-isLoading{width:100%;height:100%;display:flex;justify-content:center;align-items:center;position:relative}.envira-loading{display:inline-block;position:relative;width:64px;height:64px}.envira-loading.grey{background:#7cc048}.envira-loading div{position:absolute;top:27px;width:11px;height:11px;border-radius:50%;background:#7cc048 !important;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.envira-loading div:nth-child(1){left:6px;animation:enviraLoading1 0.6s infinite}.envira-loading div:nth-child(2){left:6px;animation:enviraLoading2 0.6s infinite}.envira-loading div:nth-child(3){left:26px;animation:enviraLoading2 0.6s infinite}.envira-loading div:nth-child(4){left:45px;animation:enviraLoading3 0.6s infinite}@keyframes enviraLoading1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes enviraLoading3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes enviraLoading2{0%{transform:translate(0, 0)}100%{transform:translate(19px, 0)}}\n",""])},function(e,t,n){var r=n(29);"string"==typeof r&&(r=[[e.i,r,""]]);var o={insert:"head",singleton:!1};n(12)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(11)(!1)).push([e.i,".envira-uploader{width:100%;display:flex;align-items:center;justify-content:center;background-color:#f7f7f7;min-height:100px}.envira-uploader .envira-media__button{border-radius:0;border:none;box-shadow:none !important;display:flex;flex-direction:column;justify-content:center;min-height:80px;width:95px;padding:0 !important;margin-right:20px}.envira-uploader .envira-media__button .dashicons-plus{margin-top:10px}.envira-uploader .envira-media__button .dashicons-format-gallery{margin-bottom:10px}.envira-uploader .envira-media__button:hover,.envira-uploader .envira-media__button:focus{border:1px solid #c8c8c8}\n",""])},function(e,t,n){var r=n(31);"string"==typeof r&&(r=[[e.i,r,""]]);var o={insert:"head",singleton:!1};n(12)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(11)(!1)).push([e.i,".envira-block-select{width:100%;padding:20px 0}.EnviraClear{width:100%}.envira-inspector-panelbody .envira-heading{margin-top:20px;margin-bottom:10px}.envira-inspector-panelbody .components-button.envira-button{margin-top:20px;color:#323232;border-color:#c8c8c8}.envira-inspector-panelbody .components-button.envira-button:hover{color:#505050;border-color:#c8c8c8}#envira-pro-control{padding:10px 0;font-size:16px}.envira-block-instructions p{font-size:16px !important}.envira-gallery-item.isSelected{border:5px solid #007eb1}.block-editor__container .envira-gallery-justified img,.block-editor__container .react-photo-gallery--gallery img{height:none !important;height:min-intrinsic !important;object-fit:contain}.envira-gallery-isotope img{width:100%}.envira-gallery-wrap{width:100%;margin:0 auto 20px auto;line-height:0 !important}.envira-gallery-wrap>.envira-gallery-public{width:100%;margin:0 auto 20px auto;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.envira-gallery-wrap>.envira-gallery-public.envira-clear{clear:both}.envira-gallery-wrap>.envira-gallery-public.envira-clear:after{clear:both;content:'.';display:block;height:0;line-height:0;overflow:auto;visibility:hidden;zoom:1}.envira-gallery-wrap>.envira-gallery-public .envira-gallery-item-inner{position:relative}.envira-gallery-wrap>.envira-gallery-public .envira-gallery-item{float:left}.envira-gallery-wrap>.envira-gallery-public .envira-gallery-item img{float:none;display:block;margin:0 auto;padding:0;width:100%;max-width:100%}.envira-gallery-wrap>.envira-gallery-public.envira-gallery-1-columns .envira-gallery-item{clear:both;width:100%}.envira-gallery-wrap>.envira-gallery-public.envira-gallery-2-columns .envira-gallery-item{width:50%}.envira-gallery-wrap>.envira-gallery-public.envira-gallery-2-columns .envira-gallery-item:nth-child(2n+1){clear:both}.envira-gallery-wrap>.envira-gallery-public.envira-gallery-3-columns .envira-gallery-item{width:33.33%}.envira-gallery-wrap>.envira-gallery-public.envira-gallery-3-columns .envira-gallery-item:nth-child(3n+1){clear:both}.envira-gallery-wrap>.envira-gallery-public.envira-gallery-4-columns .envira-gallery-item{width:25%;margin:0;padding:0;box-sizing:border-box}.envira-gallery-wrap>.envira-gallery-public.envira-gallery-4-columns .envira-gallery-item:nth-child(4n+1){clear:both}.envira-gallery-wrap>.envira-gallery-public.envira-gallery-5-columns .envira-gallery-item{width:20%}.envira-gallery-wrap>.envira-gallery-public.envira-gallery-5-columns .envira-gallery-item:nth-child(5n+1){clear:both}.envira-gallery-wrap>.envira-gallery-public.envira-gallery-6-columns .envira-gallery-item{width:16.66%}.envira-gallery-wrap>.envira-gallery-public.envira-gallery-6-columns .envira-gallery-item:nth-child(6n+1){clear:both}.envira-gallery-wrap>.envira-gallery-public.enviratope .envira-gallery-item{clear:none !important}\n",""])},function(e,t,n){"use strict";n.r(t);var r=n(16),o=n(3),i=n(8),a=n.n(i),u=n(5),s=n(2),l=n(6),c=n(17),p=n(15),f=n(18);n(21);function d(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function m(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){g(e,t,n[t])}))}return e}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function w(e,t,n){return t&&y(e.prototype,t),n&&y(e,n),e}function E(e){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function O(e){return(O="function"==typeof Symbol&&"symbol"===E(Symbol.iterator)?function(e){return E(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":E(e)})(e)}function _(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C(e,t){return!t||"object"!==O(t)&&"function"!=typeof t?_(e):t}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function x(e,t){return(x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function k(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&x(e,t)}var A=n(0),I=n.n(A);function F(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var P=function(e,t){var n;void 0===t&&(t=F);var r,o=[],i=!1;return function(){for(var a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];return i&&n===this&&t(a,o)?r:(r=e.apply(this,a),i=!0,n=this,o=a,r)}},j=n(19),D=n.n(j);var M=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,n=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(n,t),this.tags.push(n)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{var i=105===e.charCodeAt(1)&&64===e.charCodeAt(0);o.insertRule(e,i?0:o.cssRules.length)}catch(e){0}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}();var T=function(e){function t(e,t,r){var o=t.trim().split(h);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var u=0;for(e=0===a?"":e[0]+" ";u<i;++u)t[u]=n(e,t[u],r).trim();break;default:var s=u=0;for(t=[];u<i;++u)for(var l=0;l<a;++l)t[s++]=n(e[l]+" ",o[u],r).trim()}return t}function n(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(m,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,n,i){var a=e+";",u=2*t+3*n+4*i;if(944===u){e=a.indexOf(":",9)+1;var s=a.substring(e,a.length-1).trim();return s=a.substring(0,e).trim()+s+";",1===I||2===I&&o(s,1)?"-webkit-"+s+s:s}if(0===I||2===I&&!o(a,1))return a;switch(u){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(S,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(s=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+s+a;case 1005:return f.test(a)?a.replace(p,":-webkit-")+a.replace(p,":-moz-")+a:a;case 1e3:switch(t=(s=a.substring(13).trim()).indexOf("-")+1,s.charCodeAt(0)+s.charCodeAt(t)){case 226:s=a.replace(y,"tb");break;case 232:s=a.replace(y,"tb-rl");break;case 220:s=a.replace(y,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+s+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,u=(s=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|s.charCodeAt(7))){case 203:if(111>s.charCodeAt(8))break;case 115:a=a.replace(s,"-webkit-"+s)+";"+a;break;case 207:case 102:a=a.replace(s,"-webkit-"+(102<u?"inline-":"")+"box")+";"+a.replace(s,"-webkit-"+s)+";"+a.replace(s,"-ms-"+s+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return s=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+s+"-ms-flex-"+s+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(O,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(O,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===C.test(e))return 115===(s=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,i).replace(":fill-available",":stretch"):a.replace(s,"-webkit-"+s)+a.replace(s,"-moz-"+s.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+i&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(d,"$1-webkit-$2")+a}return a}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),D(2!==t?r:r.replace(_,"$1"),n,t)}function i(e,t){var n=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(E," or ($1)").substring(4):"("+t+")"}function a(e,t,n,r,o,i,a,u,l,c){for(var p,f=0,d=t;f<j;++f)switch(p=P[f].call(s,e,d,n,r,o,i,a,u,l,c)){case void 0:case!1:case!0:case null:break;default:d=p}if(d!==t)return d}function u(e){return void 0!==(e=e.prefix)&&(D=null,e?"function"!=typeof e?I=1:(I=2,D=e):I=0),u}function s(e,n){var u=e;if(33>u.charCodeAt(0)&&(u=u.trim()),u=[u],0<j){var s=a(-1,n,u,u,k,x,0,0,0,0);void 0!==s&&"string"==typeof s&&(n=s)}var p=function e(n,u,s,p,f){for(var d,h,m,y,E,O=0,_=0,C=0,S=0,P=0,D=0,T=m=d=0,L=0,R=0,B=0,V=0,N=s.length,U=N-1,z="",H="",W="",G="";L<N;){if(h=s.charCodeAt(L),L===U&&0!==_+S+C+O&&(0!==_&&(h=47===_?10:47),S=C=O=0,N++,U++),0===_+S+C+O){if(L===U&&(0<R&&(z=z.replace(c,"")),0<z.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:z+=s.charAt(L)}h=59}switch(h){case 123:for(d=(z=z.trim()).charCodeAt(0),m=1,V=++L;L<N;){switch(h=s.charCodeAt(L)){case 123:m++;break;case 125:m--;break;case 47:switch(h=s.charCodeAt(L+1)){case 42:case 47:e:{for(T=L+1;T<U;++T)switch(s.charCodeAt(T)){case 47:if(42===h&&42===s.charCodeAt(T-1)&&L+2!==T){L=T+1;break e}break;case 10:if(47===h){L=T+1;break e}}L=T}}break;case 91:h++;case 40:h++;case 34:case 39:for(;L++<U&&s.charCodeAt(L)!==h;);}if(0===m)break;L++}switch(m=s.substring(V,L),0===d&&(d=(z=z.replace(l,"").trim()).charCodeAt(0)),d){case 64:switch(0<R&&(z=z.replace(c,"")),h=z.charCodeAt(1)){case 100:case 109:case 115:case 45:R=u;break;default:R=F}if(V=(m=e(u,R,m,h,f+1)).length,0<j&&(E=a(3,m,R=t(F,z,B),u,k,x,V,h,f,p),z=R.join(""),void 0!==E&&0===(V=(m=E.trim()).length)&&(h=0,m="")),0<V)switch(h){case 115:z=z.replace(w,i);case 100:case 109:case 45:m=z+"{"+m+"}";break;case 107:m=(z=z.replace(g,"$1 $2"))+"{"+m+"}",m=1===I||2===I&&o("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=z+m,112===p&&(H+=m,m="")}else m="";break;default:m=e(u,t(u,z,B),m,p,f+1)}W+=m,m=B=R=T=d=0,z="",h=s.charCodeAt(++L);break;case 125:case 59:if(1<(V=(z=(0<R?z.replace(c,""):z).trim()).length))switch(0===T&&(d=z.charCodeAt(0),45===d||96<d&&123>d)&&(V=(z=z.replace(" ",":")).length),0<j&&void 0!==(E=a(1,z,u,n,k,x,H.length,p,f,p))&&0===(V=(z=E.trim()).length)&&(z="\0\0"),d=z.charCodeAt(0),h=z.charCodeAt(1),d){case 0:break;case 64:if(105===h||99===h){G+=z+s.charAt(L);break}default:58!==z.charCodeAt(V-1)&&(H+=r(z,d,h,z.charCodeAt(2)))}B=R=T=d=0,z="",h=s.charCodeAt(++L)}}switch(h){case 13:case 10:47===_?_=0:0===1+d&&107!==p&&0<z.length&&(R=1,z+="\0"),0<j*M&&a(0,z,u,n,k,x,H.length,p,f,p),x=1,k++;break;case 59:case 125:if(0===_+S+C+O){x++;break}default:switch(x++,y=s.charAt(L),h){case 9:case 32:if(0===S+O+_)switch(P){case 44:case 58:case 9:case 32:y="";break;default:32!==h&&(y=" ")}break;case 0:y="\\0";break;case 12:y="\\f";break;case 11:y="\\v";break;case 38:0===S+_+O&&(R=B=1,y="\f"+y);break;case 108:if(0===S+_+O+A&&0<T)switch(L-T){case 2:112===P&&58===s.charCodeAt(L-3)&&(A=P);case 8:111===D&&(A=D)}break;case 58:0===S+_+O&&(T=L);break;case 44:0===_+C+S+O&&(R=1,y+="\r");break;case 34:case 39:0===_&&(S=S===h?0:0===S?h:S);break;case 91:0===S+_+C&&O++;break;case 93:0===S+_+C&&O--;break;case 41:0===S+_+O&&C--;break;case 40:if(0===S+_+O){if(0===d)switch(2*P+3*D){case 533:break;default:d=1}C++}break;case 64:0===_+C+S+O+T+m&&(m=1);break;case 42:case 47:if(!(0<S+O+C))switch(_){case 0:switch(2*h+3*s.charCodeAt(L+1)){case 235:_=47;break;case 220:V=L,_=42}break;case 42:47===h&&42===P&&V+2!==L&&(33===s.charCodeAt(V+2)&&(H+=s.substring(V,L+1)),y="",_=0)}}0===_&&(z+=y)}D=P,P=h,L++}if(0<(V=H.length)){if(R=u,0<j&&(void 0!==(E=a(2,H,R,n,k,x,V,p,f,p))&&0===(H=E).length))return G+H+W;if(H=R.join(",")+"{"+H+"}",0!=I*A){switch(2!==I||o(H,2)||(A=0),A){case 111:H=H.replace(v,":-moz-$1")+H;break;case 112:H=H.replace(b,"::-webkit-input-$1")+H.replace(b,"::-moz-$1")+H.replace(b,":-ms-input-$1")+H}A=0}}return G+H+W}(F,u,n,0,0);return 0<j&&(void 0!==(s=a(-2,p,u,u,k,x,p.length,0,0,0))&&(p=s)),"",A=0,x=k=1,p}var l=/^\0+/g,c=/[\0\r\f]/g,p=/: */g,f=/zoo|gra/,d=/([,: ])(transform)/g,h=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,g=/@(k\w+)\s*(\S*)\s*/,b=/::(place)/g,v=/:(read-only)/g,y=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,E=/([\s\S]*?);/g,O=/-self|flex-/g,_=/[^]*?(:[rp][el]a[\w-]+)[^]*/,C=/stretch|:\s*\w+\-(?:conte|avail)/,S=/([^-])(image-set\()/,x=1,k=1,A=0,I=1,F=[],P=[],j=0,D=null,M=0;return s.use=function e(t){switch(t){case void 0:case null:j=P.length=0;break;default:if("function"==typeof t)P[j++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else M=0|!!t}return e},s.set=u,void 0!==e&&u(e),s};function L(e){e&&R.current.insert(e+"}")}var R={current:null},B=function(e,t,n,r,o,i,a,u,s,l){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return R.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===u)return t+"/*|*/";break;case 3:switch(u){case 102:case 112:return R.current.insert(n[0]+t),"";default:return t+(0===l?"/*|*/":"")}case-2:t.split("/*|*/}").forEach(L)}},V=function(e){void 0===e&&(e={});var t,n=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var r=new T(t);var o,i={};o=e.container||document.head;var a,u=document.querySelectorAll("style[data-emotion-"+n+"]");Array.prototype.forEach.call(u,(function(e){e.getAttribute("data-emotion-"+n).split(" ").forEach((function(e){i[e]=!0})),e.parentNode!==o&&o.appendChild(e)})),r.use(e.stylisPlugins)(B),a=function(e,t,n,o){var i=t.name;R.current=n,r(e,t.styles),o&&(s.inserted[i]=!0)};var s={key:n,sheet:new M({key:n,container:o,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:i,registered:{},insert:a};return s};function N(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "})),r}var U=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var o=t;do{e.insert("."+r,o,e.sheet,!0);o=o.next}while(void 0!==o)}};var z=function(e){for(var t,n=e.length,r=n^n,o=0;n>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+((1540483477*(t>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++o;switch(n){case 3:r^=(255&e.charCodeAt(o+2))<<16;case 2:r^=(255&e.charCodeAt(o+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(o)))+((1540483477*(r>>>16)&65535)<<16)}return r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16),((r^=r>>>15)>>>0).toString(36)},H={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var W=/[A-Z]|^ms/g,G=/_EMO_([^_]+?)_([^]*?)_EMO_/g,q=function(e){return 45===e.charCodeAt(1)},$=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return q(e)?e:e.replace(W,"-$&").toLowerCase()})),Y=function(e,t){if(null==t||"boolean"==typeof t)return"";switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(G,(function(e,t,n){return Z={name:t,styles:n,next:Z},t}))}return 1===H[e]||q(e)||"number"!=typeof t||0===t?t:t+"px"};function X(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Z={name:n.name,styles:n.styles,next:Z},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)Z={name:o.name,styles:o.styles,next:Z},o=o.next;return n.styles}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=X(e,t,n[o],!1);else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":r+=$(i)+":"+Y(i,a)+";";else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var u=X(e,t,a,!1);switch(i){case"animation":case"animationName":r+=$(i)+":"+u+";";break;default:r+=i+"{"+u+"}"}}else for(var s=0;s<a.length;s++)r+=$(i)+":"+Y(i,a[s])+";"}return r}(e,t,n);case"function":if(void 0!==e){var i=Z,a=n(e);return Z=i,X(e,t,a,r)}default:if(null==t)return n;var u=t[n];return void 0===u||r?n:u}}var Z,K=/label:\s*([^\s;\n{]+)\s*;/g;var J=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Z=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=X(n,t,i,!1)):o+=i[0];for(var a=1;a<e.length;a++)o+=X(n,t,e[a],46===o.charCodeAt(o.length-1)),r&&(o+=i[a]);K.lastIndex=0;for(var u,s="";null!==(u=K.exec(o));)s+="-"+u[1];return{name:z(o)+s,styles:o,next:Z}};var Q=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return J(t)},ee=Object(A.createContext)("undefined"!=typeof HTMLElement?V():null),te=Object(A.createContext)({}),ne=ee.Provider,re=function(e){return Object(A.forwardRef)((function(t,n){return Object(A.createElement)(ee.Consumer,null,(function(r){return e(t,r,n)}))}))},oe="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ie=Object.prototype.hasOwnProperty,ae=function(e,t,n,r){var o=null===n?t.css:t.css(n);"string"==typeof o&&void 0!==e.registered[o]&&(o=e.registered[o]);var i=t[oe],a=[o],u="";void 0!==t.className&&(u=N(e.registered,a,t.className));var s=J(a);U(e,s,"string"==typeof i);u+=e.key+"-"+s.name;var l={};for(var c in t)ie.call(t,c)&&"css"!==c&&c!==oe&&(l[c]=t[c]);return l.ref=r,l.className=u,Object(A.createElement)(i,l)},ue=re((function(e,t,n){return"function"==typeof e.css?Object(A.createElement)(te.Consumer,null,(function(r){return ae(t,e,r,n)})):ae(t,e,null,n)}));var se=function(e,t){var n=arguments;if(null==t||!ie.call(t,"css"))return A.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=ue;var i={};for(var a in t)ie.call(t,a)&&(i[a]=t[a]);i[oe]=e,o[1]=i;for(var u=2;u<r;u++)o[u]=n[u];return A.createElement.apply(null,o)},le=(A.Component,function e(t){for(var n=t.length,r=0,o="";r<n;r++){var i=t[r];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))a=e(i);else for(var u in a="",i)i[u]&&u&&(a&&(a+=" "),a+=u);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o});function ce(e,t,n){var r=[],o=N(e,r,n);return r.length<2?n:o+t(r)}var pe=re((function(e,t){return Object(A.createElement)(te.Consumer,null,(function(n){var r=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=J(n,t.registered);return U(t,o,!1),t.key+"-"+o.name},o={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return ce(t.registered,r,le(n))},theme:n},i=e.children(o);return!0,i}))})),fe=n(9),de=n(1),he=n.n(de),me=function(){};function ge(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function be(e,t,n){var r=[n];if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&r.push("".concat(ge(e,o)));return r.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var ve=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===O(e)&&null!==e?[e]:[]};function ye(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function we(e){return ye(e)?window.pageYOffset:e.scrollTop}function Ee(e,t){ye(e)?window.scrollTo(0,t):e.scrollTop=t}function Oe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:me,o=we(e),i=t-o,a=10,u=0;!function t(){var s,l=i*((s=(s=u+=a)/n-1)*s*s+1)+o;Ee(e,l),u<n?window.requestAnimationFrame(t):r(e)}()}function _e(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var Ce=n(13),Se=n.n(Ce);function xe(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,u=e.theme.spacing,s=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/,o=document.documentElement;if("fixed"===t.position)return o;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return o}(n),l={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return l;var c=s.getBoundingClientRect().height,p=n.getBoundingClientRect(),f=p.bottom,d=p.height,h=p.top,m=n.offsetParent.getBoundingClientRect().top,g=window.innerHeight,b=we(s),v=parseInt(getComputedStyle(n).marginBottom,10),y=parseInt(getComputedStyle(n).marginTop,10),w=m-y,E=g-h,O=w+b,_=c-b-h,C=f-g+b+v,S=b+h-y;switch(o){case"auto":case"bottom":if(E>=d)return{placement:"bottom",maxHeight:t};if(_>=d&&!a)return i&&Oe(s,C,160),{placement:"bottom",maxHeight:t};if(!a&&_>=r||a&&E>=r)return i&&Oe(s,C,160),{placement:"bottom",maxHeight:a?E-v:_-v};if("auto"===o||a){var x=t,k=a?w:O;return k>=r&&(x=Math.min(k-v-u.controlHeight,t)),{placement:"top",maxHeight:x}}if("bottom"===o)return Ee(s,C),{placement:"bottom",maxHeight:t};break;case"top":if(w>=d)return{placement:"top",maxHeight:t};if(O>=d&&!a)return i&&Oe(s,S,160),{placement:"top",maxHeight:t};if(!a&&O>=r||a&&w>=r){var A=t;return(!a&&O>=r||a&&w>=r)&&(A=a?w-y:O-y),i&&Oe(s,S,160),{placement:"top",maxHeight:A}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return l}var ke=function(e){return"auto"===e?"bottom":e},Ae=function(e){function t(){var e,n;v(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return g(_(_(n=C(this,(e=S(t)).call.apply(e,[this].concat(o))))),"state",{maxHeight:n.props.maxMenuHeight,placement:null}),g(_(_(n)),"getPlacement",(function(e){var t=n.props,r=t.minMenuHeight,o=t.maxMenuHeight,i=t.menuPlacement,a=t.menuPosition,u=t.menuShouldScrollIntoView,s=t.theme,l=n.context.getPortalPlacement;if(e){var c="fixed"===a,p=xe({maxHeight:o,menuEl:e,minHeight:r,placement:i,shouldScroll:u&&!c,isFixedPosition:c,theme:s});l&&l(p),n.setState(p)}})),g(_(_(n)),"getUpdatedProps",(function(){var e=n.props.menuPlacement,t=n.state.placement||ke(e);return b({},n.props,{placement:t,maxHeight:n.state.maxHeight})})),n}return k(t,e),w(t,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),t}(A.Component);g(Ae,"contextTypes",{getPortalPlacement:he.a.func});var Ie=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px"),textAlign:"center"}},Fe=Ie,Pe=Ie,je=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return se("div",h({css:o("noOptionsMessage",e),className:r({"menu-notice":!0,"menu-notice--no-options":!0},n)},i),t)};je.defaultProps={children:"No options"};var De=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return se("div",h({css:o("loadingMessage",e),className:r({"menu-notice":!0,"menu-notice--loading":!0},n)},i),t)};De.defaultProps={children:"Loading..."};var Me=function(e){function t(){var e,n;v(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return g(_(_(n=C(this,(e=S(t)).call.apply(e,[this].concat(o))))),"state",{placement:null}),g(_(_(n)),"getPortalPlacement",(function(e){var t=e.placement;t!==ke(n.props.menuPlacement)&&n.setState({placement:t})})),n}return k(t,e),w(t,[{key:"getChildContext",value:function(){return{getPortalPlacement:this.getPortalPlacement}}},{key:"render",value:function(){var e=this.props,t=e.appendTo,n=e.children,r=e.controlElement,o=e.menuPlacement,i=e.menuPosition,a=e.getStyles,u="fixed"===i;if(!t&&!u||!r)return null;var s=this.state.placement||ke(o),l=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),c=u?0:window.pageYOffset,p=l[s]+c,f=se("div",{css:a("menuPortal",{offset:p,position:i,rect:l})},n);return t?Object(fe.createPortal)(f,t):f}}]),t}(A.Component);g(Me,"childContextTypes",{getPortalPlacement:he.a.func});var Te=Array.isArray,Le=Object.keys,Re=Object.prototype.hasOwnProperty;function Be(e,t){try{return function e(t,n){if(t===n)return!0;if(t&&n&&"object"==O(t)&&"object"==O(n)){var r,o,i,a=Te(t),u=Te(n);if(a&&u){if((o=t.length)!=n.length)return!1;for(r=o;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(a!=u)return!1;var s=t instanceof Date,l=n instanceof Date;if(s!=l)return!1;if(s&&l)return t.getTime()==n.getTime();var c=t instanceof RegExp,p=n instanceof RegExp;if(c!=p)return!1;if(c&&p)return t.toString()==n.toString();var f=Le(t);if((o=f.length)!==Le(n).length)return!1;for(r=o;0!=r--;)if(!Re.call(n,f[r]))return!1;for(r=o;0!=r--;)if(!("_owner"===(i=f[r])&&t.$$typeof||e(t[i],n[i])))return!1;return!0}return t!=t&&n!=n}(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i))return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}var Ve=function(e){function t(){return v(this,t),C(this,S(t).apply(this,arguments))}return k(t,e),w(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.cx,o=e.isMulti,i=e.getStyles,a=e.hasValue;return se("div",{css:i("valueContainer",this.props),className:r({"value-container":!0,"value-container--is-multi":o,"value-container--has-value":a},n)},t)}}]),t}(A.Component);function Ne(){var e,t,n=(e=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return Ne=function(){return n},n}var Ue={name:"19bqh2r",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;"},ze=function(e){var t=e.size,n=d(e,["size"]);return se("svg",h({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Ue},n))},He=function(e){return se(ze,h({size:20},e),se("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},We=function(e){return se(ze,h({size:20},e),se("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Ge=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorContainer",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?o.neutral80:o.neutral40}}},qe=Ge,$e=Ge,Ye=function(){var e=Q.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(Ne()),Xe=function(e){var t=e.delay,n=e.offset;return se("span",{css:Q({animation:"".concat(Ye," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":null,height:"1em",verticalAlign:"top",width:"1em"},"")})},Ze=function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps,i=e.isRtl;return se("div",h({},o,{css:r("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)}),se(Xe,{delay:0,offset:i}),se(Xe,{delay:160,offset:!0}),se(Xe,{delay:320,offset:!i}))};Ze.defaultProps={size:4};var Ke=function(e){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:e?0:1,outline:0,padding:0,color:"inherit"}},Je=function(e){var t=e.children,n=e.innerProps;return se("div",n,t)},Qe=Je,et=Je,tt=function(e){function t(){return v(this,t),C(this,S(t).apply(this,arguments))}return k(t,e),w(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.innerProps;return se("div",n,t||se(He,{size:14}))}}]),t}(A.Component),nt=function(e){function t(){return v(this,t),C(this,S(t).apply(this,arguments))}return k(t,e),w(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.className,o=t.components,i=t.cx,a=t.data,u=t.getStyles,s=t.innerProps,l=t.isDisabled,c=t.removeProps,p=t.selectProps,f=o.Container,d=o.Label,h=o.Remove;return se(pe,null,(function(t){var o=t.css,m=t.cx;return se(f,{data:a,innerProps:b({},s,{className:m(o(u("multiValue",e.props)),i({"multi-value":!0,"multi-value--is-disabled":l},r))}),selectProps:p},se(d,{data:a,innerProps:{className:m(o(u("multiValueLabel",e.props)),i({"multi-value__label":!0},r))},selectProps:p},n),se(h,{data:a,innerProps:b({className:m(o(u("multiValueRemove",e.props)),i({"multi-value__remove":!0},r))},c),selectProps:p}))}))}}]),t}(A.Component);g(nt,"defaultProps",{cropWithEllipsis:!0});var rt={ClearIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return se("div",h({},i,{css:o("clearIndicator",e),className:r({indicator:!0,"clear-indicator":!0},n)}),t||se(He,null))},Control:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.className,i=e.isDisabled,a=e.isFocused,u=e.innerRef,s=e.innerProps,l=e.menuIsOpen;return se("div",h({ref:u,css:r("control",e),className:n({control:!0,"control--is-disabled":i,"control--is-focused":a,"control--menu-is-open":l},o)},s),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return se("div",h({},i,{css:o("dropdownIndicator",e),className:r({indicator:!0,"dropdown-indicator":!0},n)}),t||se(We,null))},DownChevron:We,CrossIcon:He,Group:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.Heading,a=e.headingProps,u=e.label,s=e.theme,l=e.selectProps;return se("div",{css:o("group",e),className:r({group:!0},n)},se(i,h({},a,{selectProps:l,theme:s,getStyles:o,cx:r}),u),se("div",null,t))},GroupHeading:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.theme,i=(e.selectProps,d(e,["className","cx","getStyles","theme","selectProps"]));return se("div",h({css:r("groupHeading",b({theme:o},i)),className:n({"group-heading":!0},t)},i))},IndicatorsContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles;return se("div",{css:o("indicatorsContainer",e),className:r({indicators:!0},n)},t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps;return se("span",h({},o,{css:r("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerRef,i=e.isHidden,a=e.isDisabled,u=e.theme,s=(e.selectProps,d(e,["className","cx","getStyles","innerRef","isHidden","isDisabled","theme","selectProps"]));return se("div",{css:r("input",b({theme:u},s))},se(Se.a,h({className:n({input:!0},t),inputRef:o,inputStyle:Ke(i),disabled:a},s)))},LoadingIndicator:Ze,Menu:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerRef,a=e.innerProps;return se("div",h({css:o("menu",e),className:r({menu:!0},n)},a,{ref:i}),t)},MenuList:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.isMulti,a=e.innerRef;return se("div",{css:o("menuList",e),className:r({"menu-list":!0,"menu-list--is-multi":i},n),ref:a},t)},MenuPortal:Me,LoadingMessage:De,NoOptionsMessage:je,MultiValue:nt,MultiValueContainer:Qe,MultiValueLabel:et,MultiValueRemove:tt,Option:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.isDisabled,a=e.isFocused,u=e.isSelected,s=e.innerRef,l=e.innerProps;return se("div",h({css:o("option",e),className:r({option:!0,"option--is-disabled":i,"option--is-focused":a,"option--is-selected":u},n),ref:s},l),t)},Placeholder:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return se("div",h({css:o("placeholder",e),className:r({placeholder:!0},n)},i),t)},SelectContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps,a=e.isDisabled,u=e.isRtl;return se("div",h({css:o("container",e),className:r({"--is-disabled":a,"--is-rtl":u},n)},i),t)},SingleValue:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.isDisabled,a=e.innerProps;return se("div",h({css:o("singleValue",e),className:r({"single-value":!0,"single-value--is-disabled":i},n)},a),t)},ValueContainer:Ve},ot=function(e){return b({},rt,e.components)},it=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}],at=function(e){for(var t=0;t<it.length;t++)e=e.replace(it[t].letters,it[t].base);return e},ut=function(e){return e.replace(/^\s+|\s+$/g,"")},st=function(e){return"".concat(e.label," ").concat(e.value)},lt={name:"1laao21-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;"},ct=function(e){return se("span",h({css:lt},e))},pt=function(e){function t(){return v(this,t),C(this,S(t).apply(this,arguments))}return k(t,e),w(t,[{key:"render",value:function(){var e=this.props,t=(e.in,e.out,e.onExited,e.appear,e.enter,e.exit,e.innerRef),n=(e.emotion,d(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]));return se("input",h({ref:t},n,{css:Q({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"},"")}))}}]),t}(A.Component),ft=function(e){function t(){return v(this,t),C(this,S(t).apply(this,arguments))}return k(t,e),w(t,[{key:"componentDidMount",value:function(){this.props.innerRef(Object(fe.findDOMNode)(this))}},{key:"componentWillUnmount",value:function(){this.props.innerRef(null)}},{key:"render",value:function(){return this.props.children}}]),t}(A.Component),dt=["boxSizing","height","overflow","paddingRight","position"],ht={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function mt(e){e.preventDefault()}function gt(e){e.stopPropagation()}function bt(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function vt(){return"ontouchstart"in window||navigator.maxTouchPoints}var yt=!(!window.document||!window.document.createElement),wt=0,Et=function(e){function t(){var e,n;v(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return g(_(_(n=C(this,(e=S(t)).call.apply(e,[this].concat(o))))),"originalStyles",{}),g(_(_(n)),"listenerOptions",{capture:!1,passive:!1}),n}return k(t,e),w(t,[{key:"componentDidMount",value:function(){var e=this;if(yt){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,o=document.body,i=o&&o.style;if(n&&dt.forEach((function(t){var n=i&&i[t];e.originalStyles[t]=n})),n&&wt<1){var a=parseInt(this.originalStyles.paddingRight,10)||0,u=document.body?document.body.clientWidth:0,s=window.innerWidth-u+a||0;Object.keys(ht).forEach((function(e){var t=ht[e];i&&(i[e]=t)})),i&&(i.paddingRight="".concat(s,"px"))}o&&vt()&&(o.addEventListener("touchmove",mt,this.listenerOptions),r&&(r.addEventListener("touchstart",bt,this.listenerOptions),r.addEventListener("touchmove",gt,this.listenerOptions))),wt+=1}}},{key:"componentWillUnmount",value:function(){var e=this;if(yt){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,o=document.body,i=o&&o.style;wt=Math.max(wt-1,0),n&&wt<1&&dt.forEach((function(t){var n=e.originalStyles[t];i&&(i[t]=n)})),o&&vt()&&(o.removeEventListener("touchmove",mt,this.listenerOptions),r&&(r.removeEventListener("touchstart",bt,this.listenerOptions),r.removeEventListener("touchmove",gt,this.listenerOptions)))}}},{key:"render",value:function(){return null}}]),t}(A.Component);g(Et,"defaultProps",{accountForScrollbars:!0});var Ot={name:"1dsbpcp",styles:"position:fixed;left:0;bottom:0;right:0;top:0;"},_t=function(e){function t(){var e,n;v(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return g(_(_(n=C(this,(e=S(t)).call.apply(e,[this].concat(o))))),"state",{touchScrollTarget:null}),g(_(_(n)),"getScrollTarget",(function(e){e!==n.state.touchScrollTarget&&n.setState({touchScrollTarget:e})})),g(_(_(n)),"blurSelectInput",(function(){document.activeElement&&document.activeElement.blur()})),n}return k(t,e),w(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.isEnabled,r=this.state.touchScrollTarget;return n?se("div",null,se("div",{onClick:this.blurSelectInput,css:Ot}),se(ft,{innerRef:this.getScrollTarget},t),r?se(Et,{touchScrollTarget:r}):null):t}}]),t}(A.PureComponent),Ct=function(e){function t(){var e,n;v(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return g(_(_(n=C(this,(e=S(t)).call.apply(e,[this].concat(o))))),"isBottom",!1),g(_(_(n)),"isTop",!1),g(_(_(n)),"scrollTarget",void 0),g(_(_(n)),"touchStart",void 0),g(_(_(n)),"cancelScroll",(function(e){e.preventDefault(),e.stopPropagation()})),g(_(_(n)),"handleEventDelta",(function(e,t){var r=n.props,o=r.onBottomArrive,i=r.onBottomLeave,a=r.onTopArrive,u=r.onTopLeave,s=n.scrollTarget,l=s.scrollTop,c=s.scrollHeight,p=s.clientHeight,f=n.scrollTarget,d=t>0,h=c-p-l,m=!1;h>t&&n.isBottom&&(i&&i(e),n.isBottom=!1),d&&n.isTop&&(u&&u(e),n.isTop=!1),d&&t>h?(o&&!n.isBottom&&o(e),f.scrollTop=c,m=!0,n.isBottom=!0):!d&&-t>l&&(a&&!n.isTop&&a(e),f.scrollTop=0,m=!0,n.isTop=!0),m&&n.cancelScroll(e)})),g(_(_(n)),"onWheel",(function(e){n.handleEventDelta(e,e.deltaY)})),g(_(_(n)),"onTouchStart",(function(e){n.touchStart=e.changedTouches[0].clientY})),g(_(_(n)),"onTouchMove",(function(e){var t=n.touchStart-e.changedTouches[0].clientY;n.handleEventDelta(e,t)})),g(_(_(n)),"getScrollTarget",(function(e){n.scrollTarget=e})),n}return k(t,e),w(t,[{key:"componentDidMount",value:function(){this.startListening(this.scrollTarget)}},{key:"componentWillUnmount",value:function(){this.stopListening(this.scrollTarget)}},{key:"startListening",value:function(e){e&&("function"==typeof e.addEventListener&&e.addEventListener("wheel",this.onWheel,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchmove",this.onTouchMove,!1))}},{key:"stopListening",value:function(e){"function"==typeof e.removeEventListener&&e.removeEventListener("wheel",this.onWheel,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchmove",this.onTouchMove,!1)}},{key:"render",value:function(){return I.a.createElement(ft,{innerRef:this.getScrollTarget},this.props.children)}}]),t}(A.Component),St=function(e){function t(){return v(this,t),C(this,S(t).apply(this,arguments))}return k(t,e),w(t,[{key:"render",value:function(){var e=this.props,t=e.isEnabled,n=d(e,["isEnabled"]);return t?I.a.createElement(Ct,n):this.props.children}}]),t}(A.Component);g(St,"defaultProps",{isEnabled:!0});var xt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.isSearchable,r=t.isMulti,o=t.label,i=t.isDisabled;switch(e){case"menu":return"Use Up and Down to choose options".concat(i?"":", press Enter to select the currently focused option",", press Escape to exit the menu, press Tab to select the option and exit the menu.");case"input":return"".concat(o||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value"}},kt=function(e,t){var n=t.value,r=t.isDisabled;if(n)switch(e){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(n,", deselected.");case"select-option":return"option ".concat(n,r?" is disabled. Select another option.":", selected.")}},At=function(e){return!!e.isDisabled},It={clearIndicator:$e,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":null,pointerEvents:t?"none":null,position:"relative"}},control:function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,o=r.colors,i=r.borderRadius,a=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?o.neutral5:o.neutral0,borderColor:t?o.neutral10:n?o.primary:o.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(o.primary):null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?o.primary:o.neutral30}}},dropdownIndicator:qe,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?o.neutral10:o.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},input:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,visibility:t?"hidden":"visible",color:o.neutral80}},loadingIndicator:function(e){var t=e.isFocused,n=e.size,r=e.theme,o=r.colors,i=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*i,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:Pe,menu:function(e){var t,n=e.placement,r=e.theme,o=r.borderRadius,i=r.spacing,a=r.colors;return g(t={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),g(t,"backgroundColor",a.neutral0),g(t,"borderRadius",o),g(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),g(t,"marginBottom",i.menuGutter),g(t,"marginTop",i.menuGutter),g(t,"position","absolute"),g(t,"width","100%"),g(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,r=t.colors,o=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:o?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,o=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused&&o.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}}},noOptionsMessage:Fe,option:function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,o=e.theme,i=o.spacing,a=o.colors;return{label:"option",backgroundColor:r?a.primary:n?a.primary25:"transparent",color:t?a.neutral20:r?a.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*i.baseUnit,"px ").concat(3*i.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:!t&&(r?a.primary:a.primary50)}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},singleValue:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{label:"singleValue",color:t?o.neutral40:o.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"calc(100% - ".concat(2*r.baseUnit,"px)"),overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},valueContainer:function(e){var t=e.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}};var Ft,Pt={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},jt={backspaceRemovesValue:!0,blurInputOnSelect:_e(),captureMenuScroll:!_e(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){var n=b({ignoreCase:!0,ignoreAccents:!0,stringify:st,trim:!0,matchFrom:"any"},Ft),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,u=n.matchFrom,s=a?ut(t):t,l=a?ut(i(e)):i(e);return r&&(s=s.toLowerCase(),l=l.toLowerCase()),o&&(s=at(s),l=at(l)),"start"===u?l.substr(0,s.length)===s:l.indexOf(s)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:At,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0},Dt=1,Mt=function(e){function t(e){var n;v(this,t),g(_(_(n=C(this,S(t).call(this,e)))),"state",{ariaLiveSelection:"",ariaLiveContext:"",focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,menuOptions:{render:[],focusable:[]},selectValue:[]}),g(_(_(n)),"blockOptionHover",!1),g(_(_(n)),"isComposing",!1),g(_(_(n)),"clearFocusValueOnUpdate",!1),g(_(_(n)),"commonProps",void 0),g(_(_(n)),"components",void 0),g(_(_(n)),"hasGroups",!1),g(_(_(n)),"initialTouchX",0),g(_(_(n)),"initialTouchY",0),g(_(_(n)),"inputIsHiddenAfterUpdate",void 0),g(_(_(n)),"instancePrefix",""),g(_(_(n)),"openAfterFocus",!1),g(_(_(n)),"scrollToFocusedOptionOnUpdate",!1),g(_(_(n)),"userIsDragging",void 0),g(_(_(n)),"controlRef",null),g(_(_(n)),"getControlRef",(function(e){n.controlRef=e})),g(_(_(n)),"focusedOptionRef",null),g(_(_(n)),"getFocusedOptionRef",(function(e){n.focusedOptionRef=e})),g(_(_(n)),"menuListRef",null),g(_(_(n)),"getMenuListRef",(function(e){n.menuListRef=e})),g(_(_(n)),"inputRef",null),g(_(_(n)),"getInputRef",(function(e){n.inputRef=e})),g(_(_(n)),"cacheComponents",(function(e){n.components=ot({components:e})})),g(_(_(n)),"focus",n.focusInput),g(_(_(n)),"blur",n.blurInput),g(_(_(n)),"onChange",(function(e,t){var r=n.props;(0,r.onChange)(e,b({},t,{name:r.name}))})),g(_(_(n)),"setValue",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"set-value",r=arguments.length>2?arguments[2]:void 0,o=n.props,i=o.closeMenuOnSelect,a=o.isMulti;n.onInputChange("",{action:"set-value"}),i&&(n.inputIsHiddenAfterUpdate=!a,n.onMenuClose()),n.clearFocusValueOnUpdate=!0,n.onChange(e,{action:t,option:r})})),g(_(_(n)),"selectOption",(function(e){var t=n.props,r=t.blurInputOnSelect,o=t.isMulti,i=n.state.selectValue;if(o)if(n.isOptionSelected(e,i)){var a=n.getOptionValue(e);n.setValue(i.filter((function(e){return n.getOptionValue(e)!==a})),"deselect-option",e),n.announceAriaLiveSelection({event:"deselect-option",context:{value:n.getOptionLabel(e)}})}else n.isOptionDisabled(e,i)?n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e),isDisabled:!0}}):(n.setValue([].concat(m(i),[e]),"select-option",e),n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e)}}));else n.isOptionDisabled(e,i)?n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e),isDisabled:!0}}):(n.setValue(e,"select-option"),n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e)}}));r&&n.blurInput()})),g(_(_(n)),"removeValue",(function(e){var t=n.state.selectValue,r=n.getOptionValue(e),o=t.filter((function(e){return n.getOptionValue(e)!==r}));n.onChange(o.length?o:null,{action:"remove-value",removedValue:e}),n.announceAriaLiveSelection({event:"remove-value",context:{value:e?n.getOptionLabel(e):""}}),n.focusInput()})),g(_(_(n)),"clearValue",(function(){var e=n.props.isMulti;n.onChange(e?[]:null,{action:"clear"})})),g(_(_(n)),"popValue",(function(){var e=n.state.selectValue,t=e[e.length-1],r=e.slice(0,e.length-1);n.announceAriaLiveSelection({event:"pop-value",context:{value:t?n.getOptionLabel(t):""}}),n.onChange(r.length?r:null,{action:"pop-value",removedValue:t})})),g(_(_(n)),"getOptionLabel",(function(e){return n.props.getOptionLabel(e)})),g(_(_(n)),"getOptionValue",(function(e){return n.props.getOptionValue(e)})),g(_(_(n)),"getStyles",(function(e,t){var r=It[e](t);r.boxSizing="border-box";var o=n.props.styles[e];return o?o(r,t):r})),g(_(_(n)),"getElementId",(function(e){return"".concat(n.instancePrefix,"-").concat(e)})),g(_(_(n)),"getActiveDescendentId",(function(){var e=n.props.menuIsOpen,t=n.state,r=t.menuOptions,o=t.focusedOption;if(o&&e){var i=r.focusable.indexOf(o),a=r.render[i];return a&&a.key}})),g(_(_(n)),"announceAriaLiveSelection",(function(e){var t=e.event,r=e.context;n.setState({ariaLiveSelection:kt(t,r)})})),g(_(_(n)),"announceAriaLiveContext",(function(e){var t=e.event,r=e.context;n.setState({ariaLiveContext:xt(t,b({},r,{label:n.props["aria-label"]}))})})),g(_(_(n)),"onMenuMouseDown",(function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),n.focusInput())})),g(_(_(n)),"onMenuMouseMove",(function(e){n.blockOptionHover=!1})),g(_(_(n)),"onControlMouseDown",(function(e){var t=n.props.openMenuOnClick;n.state.isFocused?n.props.menuIsOpen?"INPUT"!==e.target.tagName&&n.onMenuClose():t&&n.openMenu("first"):(t&&(n.openAfterFocus=!0),n.focusInput()),"INPUT"!==e.target.tagName&&e.preventDefault()})),g(_(_(n)),"onDropdownIndicatorMouseDown",(function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||n.props.isDisabled)){var t=n.props,r=t.isMulti,o=t.menuIsOpen;n.focusInput(),o?(n.inputIsHiddenAfterUpdate=!r,n.onMenuClose()):n.openMenu("first"),e.preventDefault(),e.stopPropagation()}})),g(_(_(n)),"onClearIndicatorMouseDown",(function(e){e&&"mousedown"===e.type&&0!==e.button||(n.clearValue(),e.stopPropagation(),n.openAfterFocus=!1,"touchend"===e.type?n.focusInput():setTimeout((function(){return n.focusInput()})))})),g(_(_(n)),"onScroll",(function(e){"boolean"==typeof n.props.closeMenuOnScroll?e.target instanceof HTMLElement&&ye(e.target)&&n.props.onMenuClose():"function"==typeof n.props.closeMenuOnScroll&&n.props.closeMenuOnScroll(e)&&n.props.onMenuClose()})),g(_(_(n)),"onCompositionStart",(function(){n.isComposing=!0})),g(_(_(n)),"onCompositionEnd",(function(){n.isComposing=!1})),g(_(_(n)),"onTouchStart",(function(e){var t=e.touches.item(0);t&&(n.initialTouchX=t.clientX,n.initialTouchY=t.clientY,n.userIsDragging=!1)})),g(_(_(n)),"onTouchMove",(function(e){var t=e.touches.item(0);if(t){var r=Math.abs(t.clientX-n.initialTouchX),o=Math.abs(t.clientY-n.initialTouchY);n.userIsDragging=r>5||o>5}})),g(_(_(n)),"onTouchEnd",(function(e){n.userIsDragging||(n.controlRef&&!n.controlRef.contains(e.target)&&n.menuListRef&&!n.menuListRef.contains(e.target)&&n.blurInput(),n.initialTouchX=0,n.initialTouchY=0)})),g(_(_(n)),"onControlTouchEnd",(function(e){n.userIsDragging||n.onControlMouseDown(e)})),g(_(_(n)),"onClearIndicatorTouchEnd",(function(e){n.userIsDragging||n.onClearIndicatorMouseDown(e)})),g(_(_(n)),"onDropdownIndicatorTouchEnd",(function(e){n.userIsDragging||n.onDropdownIndicatorMouseDown(e)})),g(_(_(n)),"handleInputChange",(function(e){var t=e.currentTarget.value;n.inputIsHiddenAfterUpdate=!1,n.onInputChange(t,{action:"input-change"}),n.onMenuOpen()})),g(_(_(n)),"onInputFocus",(function(e){var t=n.props,r=t.isSearchable,o=t.isMulti;n.props.onFocus&&n.props.onFocus(e),n.inputIsHiddenAfterUpdate=!1,n.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:o}}),n.setState({isFocused:!0}),(n.openAfterFocus||n.props.openMenuOnFocus)&&n.openMenu("first"),n.openAfterFocus=!1})),g(_(_(n)),"onInputBlur",(function(e){n.menuListRef&&n.menuListRef.contains(document.activeElement)?n.inputRef.focus():(n.props.onBlur&&n.props.onBlur(e),n.onInputChange("",{action:"input-blur"}),n.onMenuClose(),n.setState({focusedValue:null,isFocused:!1}))})),g(_(_(n)),"onOptionHover",(function(e){n.blockOptionHover||n.state.focusedOption===e||n.setState({focusedOption:e})})),g(_(_(n)),"shouldHideSelectedOptions",(function(){var e=n.props,t=e.hideSelectedOptions,r=e.isMulti;return void 0===t?r:t})),g(_(_(n)),"onKeyDown",(function(e){var t=n.props,r=t.isMulti,o=t.backspaceRemovesValue,i=t.escapeClearsValue,a=t.inputValue,u=t.isClearable,s=t.isDisabled,l=t.menuIsOpen,c=t.onKeyDown,p=t.tabSelectsValue,f=t.openMenuOnFocus,d=n.state,h=d.focusedOption,m=d.focusedValue,g=d.selectValue;if(!(s||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(n.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||a)return;n.focusValue("previous");break;case"ArrowRight":if(!r||a)return;n.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)n.removeValue(m);else{if(!o)return;r?n.popValue():u&&n.clearValue()}break;case"Tab":if(n.isComposing)return;if(e.shiftKey||!l||!p||!h||f&&n.isOptionSelected(h,g))return;n.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(l){if(!h)return;if(n.isComposing)return;n.selectOption(h);break}return;case"Escape":l?(n.inputIsHiddenAfterUpdate=!1,n.onInputChange("",{action:"menu-close"}),n.onMenuClose()):u&&i&&n.clearValue();break;case" ":if(a)return;if(!l){n.openMenu("first");break}if(!h)return;n.selectOption(h);break;case"ArrowUp":l?n.focusOption("up"):n.openMenu("last");break;case"ArrowDown":l?n.focusOption("down"):n.openMenu("first");break;case"PageUp":if(!l)return;n.focusOption("pageup");break;case"PageDown":if(!l)return;n.focusOption("pagedown");break;case"Home":if(!l)return;n.focusOption("first");break;case"End":if(!l)return;n.focusOption("last");break;default:return}e.preventDefault()}}));var r=e.value;n.cacheComponents=P(n.cacheComponents,Be).bind(_(_(n))),n.cacheComponents(e.components),n.instancePrefix="react-select-"+(n.props.instanceId||++Dt);var o=ve(r),i=e.menuIsOpen?n.buildMenuOptions(e,o):{render:[],focusable:[]};return n.state.menuOptions=i,n.state.selectValue=o,n}return k(t,e),w(t,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this.props,n=t.options,r=t.value,o=t.menuIsOpen,i=t.inputValue;if(this.cacheComponents(e.components),e.value!==r||e.options!==n||e.menuIsOpen!==o||e.inputValue!==i){var a=ve(e.value),u=e.menuIsOpen?this.buildMenuOptions(e,a):{render:[],focusable:[]},s=this.getNextFocusedValue(a),l=this.getNextFocusedOption(u.focusable);this.setState({menuOptions:u,selectValue:a,focusedOption:l,focusedValue:s})}null!=this.inputIsHiddenAfterUpdate&&(this.setState({inputIsHidden:this.inputIsHiddenAfterUpdate}),delete this.inputIsHiddenAfterUpdate)}},{key:"componentDidUpdate",value:function(e){var t,n,r,o,i,a=this.props,u=a.isDisabled,s=a.menuIsOpen,l=this.state.isFocused;(l&&!u&&e.isDisabled||l&&s&&!e.menuIsOpen)&&this.focusInput(),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,n=this.focusedOptionRef,r=t.getBoundingClientRect(),o=n.getBoundingClientRect(),i=n.offsetHeight/3,o.bottom+i>r.bottom?Ee(t,Math.min(n.offsetTop+n.clientHeight-t.offsetHeight+i,t.scrollHeight)):o.top-i<r.top&&Ee(t,Math.max(n.offsetTop-i,0))),this.scrollToFocusedOptionOnUpdate=!1}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){var e=this.props,t=e.isSearchable,n=e.isMulti;this.announceAriaLiveContext({event:"input",context:{isSearchable:t,isMulti:n}}),this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this.state,n=t.menuOptions,r=t.selectValue,o=t.isFocused,i=this.props.isMulti,a="first"===e?0:n.focusable.length-1;if(!i){var u=n.focusable.indexOf(r[0]);u>-1&&(a=u)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.inputIsHiddenAfterUpdate=!1,this.onMenuOpen(),this.setState({focusedValue:null,focusedOption:n.focusable[a]}),this.announceAriaLiveContext({event:"menu"})}},{key:"focusValue",value:function(e){var t=this.props,n=t.isMulti,r=t.isSearchable,o=this.state,i=o.selectValue,a=o.focusedValue;if(n){this.setState({focusedOption:null});var u=i.indexOf(a);a||(u=-1,this.announceAriaLiveContext({event:"value"}));var s=i.length-1,l=-1;if(i.length){switch(e){case"previous":l=0===u?0:-1===u?s:u-1;break;case"next":u>-1&&u<s&&(l=u+1)}-1===l&&this.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:n}}),this.setState({inputIsHidden:-1!==l,focusedValue:i[l]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state,r=n.focusedOption,o=n.menuOptions,i=o.focusable;if(i.length){var a=0,u=i.indexOf(r);r||(u=-1,this.announceAriaLiveContext({event:"menu"})),"up"===e?a=u>0?u-1:i.length-1:"down"===e?a=(u+1)%i.length:"pageup"===e?(a=u-t)<0&&(a=0):"pagedown"===e?(a=u+t)>i.length-1&&(a=i.length-1):"last"===e&&(a=i.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:i[a],focusedValue:null}),this.announceAriaLiveContext({event:"menu",context:{isDisabled:At(i[a])}})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Pt):b({},Pt,this.props.theme):Pt}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.getStyles,n=this.setValue,r=this.selectOption,o=this.props,i=o.classNamePrefix,a=o.isMulti,u=o.isRtl,s=o.options,l=this.state.selectValue,c=this.hasValue();return{cx:be.bind(null,i),clearValue:e,getStyles:t,getValue:function(){return l},hasValue:c,isMulti:a,isRtl:u,options:s,selectOption:r,setValue:n,selectProps:o,theme:this.getTheme()}}},{key:"getNextFocusedValue",value:function(e){if(this.clearFocusValueOnUpdate)return this.clearFocusValueOnUpdate=!1,null;var t=this.state,n=t.focusedValue,r=t.selectValue.indexOf(n);if(r>-1){if(e.indexOf(n)>-1)return n;if(r<e.length)return e[r]}return null}},{key:"getNextFocusedOption",value:function(e){var t=this.state.focusedOption;return t&&e.indexOf(t)>-1?t:e[0]}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.state.menuOptions.render.length}},{key:"countOptions",value:function(){return this.state.menuOptions.focusable.length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return"function"==typeof this.props.isOptionDisabled&&this.props.isOptionDisabled(e,t)}},{key:"isOptionSelected",value:function(e,t){var n=this;if(t.indexOf(e)>-1)return!0;if("function"==typeof this.props.isOptionSelected)return this.props.isOptionSelected(e,t);var r=this.getOptionValue(e);return t.some((function(e){return n.getOptionValue(e)===r}))}},{key:"filterOption",value:function(e,t){return!this.props.filterOption||this.props.filterOption(e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"buildMenuOptions",value:function(e,t){var n=this,r=e.inputValue,o=void 0===r?"":r,i=e.options,a=function(e,r){var i=n.isOptionDisabled(e,t),a=n.isOptionSelected(e,t),u=n.getOptionLabel(e),s=n.getOptionValue(e);if(!(n.shouldHideSelectedOptions()&&a||!n.filterOption({label:u,value:s,data:e},o))){var l=i?void 0:function(){return n.onOptionHover(e)},c=i?void 0:function(){return n.selectOption(e)},p="".concat(n.getElementId("option"),"-").concat(r);return{innerProps:{id:p,onClick:c,onMouseMove:l,onMouseOver:l,tabIndex:-1},data:e,isDisabled:i,isSelected:a,key:p,label:u,type:"option",value:s}}};return i.reduce((function(e,t,r){if(t.options){n.hasGroups||(n.hasGroups=!0);var o=t.options.map((function(t,n){var o=a(t,"".concat(r,"-").concat(n));return o&&e.focusable.push(t),o})).filter(Boolean);if(o.length){var i="".concat(n.getElementId("group"),"-").concat(r);e.render.push({type:"group",key:i,data:t,options:o})}}else{var u=a(t,"".concat(r));u&&(e.render.push(u),e.focusable.push(t))}return e}),{render:[],focusable:[]})}},{key:"constructAriaLiveMessage",value:function(){var e=this.state,t=e.ariaLiveContext,n=e.selectValue,r=e.focusedValue,o=e.focusedOption,i=this.props,a=i.options,u=i.menuIsOpen,s=i.inputValue,l=i.screenReaderStatus,c=r?function(e){var t=e.focusedValue,n=e.getOptionLabel,r=e.selectValue;return"value ".concat(n(t)," focused, ").concat(r.indexOf(t)+1," of ").concat(r.length,".")}({focusedValue:r,getOptionLabel:this.getOptionLabel,selectValue:n}):"",p=o&&u?function(e){var t=e.focusedOption,n=e.getOptionLabel,r=e.options;return"option ".concat(n(t)," focused").concat(t.isDisabled?" disabled":"",", ").concat(r.indexOf(t)+1," of ").concat(r.length,".")}({focusedOption:o,getOptionLabel:this.getOptionLabel,options:a}):"",f=function(e){var t=e.inputValue,n=e.screenReaderMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}({inputValue:s,screenReaderMessage:l({count:this.countOptions()})});return"".concat(c," ").concat(p," ").concat(f," ").concat(t)}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,i=e.tabIndex,a=this.components.Input,u=this.state.inputIsHidden,s=r||this.getElementId("input");if(!n)return I.a.createElement(pt,{id:s,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:me,onFocus:this.onInputFocus,readOnly:!0,disabled:t,tabIndex:i,value:""});var l={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]},c=this.commonProps,p=c.cx,f=c.theme,d=c.selectProps;return I.a.createElement(a,h({autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",cx:p,getStyles:this.getStyles,id:s,innerRef:this.getInputRef,isDisabled:t,isHidden:u,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,selectProps:d,spellCheck:"false",tabIndex:i,theme:f,type:"text",value:o},l))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.components,n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,i=t.MultiValueRemove,a=t.SingleValue,u=t.Placeholder,s=this.commonProps,l=this.props,c=l.controlShouldRenderValue,p=l.isDisabled,f=l.isMulti,d=l.inputValue,m=l.placeholder,g=this.state,b=g.selectValue,v=g.focusedValue,y=g.isFocused;if(!this.hasValue()||!c)return d?null:I.a.createElement(u,h({},s,{key:"placeholder",isDisabled:p,isFocused:y}),m);if(f)return b.map((function(t,a){var u=t===v;return I.a.createElement(n,h({},s,{components:{Container:r,Label:o,Remove:i},isFocused:u,isDisabled:p,key:e.getOptionValue(t),index:a,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:t}),e.formatOptionLabel(t,"value"))}));if(d)return null;var w=b[0];return I.a.createElement(a,h({},s,{data:w,isDisabled:p}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.components.ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return I.a.createElement(e,h({},t,{innerProps:a,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.components.LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!e||!o)return null;return I.a.createElement(e,h({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:i}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.components,t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,i=this.state.isFocused;return I.a.createElement(n,h({},r,{isDisabled:o,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.components.DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return I.a.createElement(e,h({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.components,n=t.Group,r=t.GroupHeading,o=t.Menu,i=t.MenuList,a=t.MenuPortal,u=t.LoadingMessage,s=t.NoOptionsMessage,l=t.Option,c=this.commonProps,p=this.state,f=p.focusedOption,m=p.menuOptions,g=this.props,b=g.captureMenuScroll,v=g.inputValue,y=g.isLoading,w=g.loadingMessage,E=g.minMenuHeight,O=g.maxMenuHeight,_=g.menuIsOpen,C=g.menuPlacement,S=g.menuPosition,x=g.menuPortalTarget,k=g.menuShouldBlockScroll,A=g.menuShouldScrollIntoView,F=g.noOptionsMessage,P=g.onMenuScrollToTop,j=g.onMenuScrollToBottom;if(!_)return null;var D,M=function(t){var n=f===t.data;return t.innerRef=n?e.getFocusedOptionRef:void 0,I.a.createElement(l,h({},c,t,{isFocused:n}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())D=m.render.map((function(t){if("group"===t.type){t.type;var o=d(t,["type"]),i="".concat(t.key,"-heading");return I.a.createElement(n,h({},c,o,{Heading:r,headingProps:{id:i},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return M(e)})))}if("option"===t.type)return M(t)}));else if(y){var T=w({inputValue:v});if(null===T)return null;D=I.a.createElement(u,c,T)}else{var L=F({inputValue:v});if(null===L)return null;D=I.a.createElement(s,c,L)}var R={minMenuHeight:E,maxMenuHeight:O,menuPlacement:C,menuPosition:S,menuShouldScrollIntoView:A},B=I.a.createElement(Ae,h({},c,R),(function(t){var n=t.ref,r=t.placerProps,a=r.placement,u=r.maxHeight;return I.a.createElement(o,h({},c,R,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:y,placement:a}),I.a.createElement(St,{isEnabled:b,onTopArrive:P,onBottomArrive:j},I.a.createElement(_t,{isEnabled:k},I.a.createElement(i,h({},c,{innerRef:e.getMenuListRef,isLoading:y,maxHeight:u}),D))))}));return x||"fixed"===S?I.a.createElement(a,h({},c,{appendTo:x,controlElement:this.controlRef,menuPlacement:C,menuPosition:S}),B):B}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,i=t.name,a=this.state.selectValue;if(i&&!r){if(o){if(n){var u=a.map((function(t){return e.getOptionValue(t)})).join(n);return I.a.createElement("input",{name:i,type:"hidden",value:u})}var s=a.length>0?a.map((function(t,n){return I.a.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})})):I.a.createElement("input",{name:i,type:"hidden"});return I.a.createElement("div",null,s)}var l=a[0]?this.getOptionValue(a[0]):"";return I.a.createElement("input",{name:i,type:"hidden",value:l})}}},{key:"renderLiveRegion",value:function(){return this.state.isFocused?I.a.createElement(ct,{"aria-live":"polite"},I.a.createElement("p",{id:"aria-selection-event"}," ",this.state.ariaLiveSelection),I.a.createElement("p",{id:"aria-context"}," ",this.constructAriaLiveMessage())):null}},{key:"render",value:function(){var e=this.components,t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,i=this.props,a=i.className,u=i.id,s=i.isDisabled,l=i.menuIsOpen,c=this.state.isFocused,p=this.commonProps=this.getCommonProps();return I.a.createElement(r,h({},p,{className:a,innerProps:{id:u,onKeyDown:this.onKeyDown},isDisabled:s,isFocused:c}),this.renderLiveRegion(),I.a.createElement(t,h({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:s,isFocused:c,menuIsOpen:l}),I.a.createElement(o,h({},p,{isDisabled:s}),this.renderPlaceholderOrValue(),this.renderInput()),I.a.createElement(n,h({},p,{isDisabled:s}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}]),t}(A.Component);g(Mt,"defaultProps",jt);var Tt,Lt,Rt,Bt={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null},Vt=function(e){var t,n;return n=t=function(t){function n(){var e,t;v(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return g(_(_(t=C(this,(e=S(n)).call.apply(e,[this].concat(o))))),"select",void 0),g(_(_(t)),"state",{inputValue:void 0!==t.props.inputValue?t.props.inputValue:t.props.defaultInputValue,menuIsOpen:void 0!==t.props.menuIsOpen?t.props.menuIsOpen:t.props.defaultMenuIsOpen,value:void 0!==t.props.value?t.props.value:t.props.defaultValue}),g(_(_(t)),"onChange",(function(e,n){t.callProp("onChange",e,n),t.setState({value:e})})),g(_(_(t)),"onInputChange",(function(e,n){var r=t.callProp("onInputChange",e,n);t.setState({inputValue:void 0!==r?r:e})})),g(_(_(t)),"onMenuOpen",(function(){t.callProp("onMenuOpen"),t.setState({menuIsOpen:!0})})),g(_(_(t)),"onMenuClose",(function(){t.callProp("onMenuClose"),t.setState({menuIsOpen:!1})})),t}return k(n,t),w(n,[{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"getProp",value:function(e){return void 0!==this.props[e]?this.props[e]:this.state[e]}},{key:"callProp",value:function(e){if("function"==typeof this.props[e]){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return(t=this.props)[e].apply(t,r)}}},{key:"render",value:function(){var t=this,n=this.props,r=(n.defaultInputValue,n.defaultMenuIsOpen,n.defaultValue,d(n,["defaultInputValue","defaultMenuIsOpen","defaultValue"]));return I.a.createElement(e,h({},r,{ref:function(e){t.select=e},inputValue:this.getProp("inputValue"),menuIsOpen:this.getProp("menuIsOpen"),onChange:this.onChange,onInputChange:this.onInputChange,onMenuClose:this.onMenuClose,onMenuOpen:this.onMenuOpen,value:this.getProp("value")}))}}]),n}(A.Component),g(t,"defaultProps",Bt),n},Nt=(A.Component,Vt(Mt)),Ut=n(7),zt=n(4),Ht={cacheOptions:!1,defaultOptions:!1,filterOption:null},Wt=Vt(Mt),Gt=(Tt=Wt,Rt=Lt=function(e){function t(e){var n;return v(this,t),g(_(_(n=C(this,S(t).call(this)))),"select",void 0),g(_(_(n)),"lastRequest",void 0),g(_(_(n)),"mounted",!1),g(_(_(n)),"optionsCache",{}),g(_(_(n)),"handleInputChange",(function(e,t){var r=n.props,o=r.cacheOptions,i=function(e,t,n){if(n){var r=n(e,t);if("string"==typeof r)return r}return e}(e,t,r.onInputChange);if(!i)return delete n.lastRequest,void n.setState({inputValue:"",loadedInputValue:"",loadedOptions:[],isLoading:!1,passEmptyOptions:!1});if(o&&n.optionsCache[i])n.setState({inputValue:i,loadedInputValue:i,loadedOptions:n.optionsCache[i],isLoading:!1,passEmptyOptions:!1});else{var a=n.lastRequest={};n.setState({inputValue:i,isLoading:!0,passEmptyOptions:!n.state.loadedInputValue},(function(){n.loadOptions(i,(function(e){n.mounted&&(e&&(n.optionsCache[i]=e),a===n.lastRequest&&(delete n.lastRequest,n.setState({isLoading:!1,loadedInputValue:i,loadedOptions:e||[],passEmptyOptions:!1})))}))}))}return i})),n.state={defaultOptions:Array.isArray(e.defaultOptions)?e.defaultOptions:void 0,inputValue:void 0!==e.inputValue?e.inputValue:"",isLoading:!0===e.defaultOptions,loadedOptions:[],passEmptyOptions:!1},n}return k(t,e),w(t,[{key:"componentDidMount",value:function(){var e=this;this.mounted=!0;var t=this.props.defaultOptions,n=this.state.inputValue;!0===t&&this.loadOptions(n,(function(t){if(e.mounted){var n=!!e.lastRequest;e.setState({defaultOptions:t||[],isLoading:n})}}))}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.cacheOptions!==this.props.cacheOptions&&(this.optionsCache={}),e.defaultOptions!==this.props.defaultOptions&&this.setState({defaultOptions:Array.isArray(e.defaultOptions)?e.defaultOptions:void 0})}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"loadOptions",value:function(e,t){var n=this.props.loadOptions;if(!n)return t();var r=n(e,t);r&&"function"==typeof r.then&&r.then(t,(function(){return t()}))}},{key:"render",value:function(){var e=this,t=this.props,n=(t.loadOptions,d(t,["loadOptions"])),r=this.state,o=r.defaultOptions,i=r.inputValue,a=r.isLoading,u=r.loadedInputValue,s=r.loadedOptions,l=r.passEmptyOptions?[]:i&&u?s:o||[];return I.a.createElement(Tt,h({},n,{ref:function(t){e.select=t},options:l,isLoading:a,onInputChange:this.handleInputChange}))}}]),t}(A.Component),g(Lt,"defaultProps",Ht),Rt);function qt(e){return(qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Yt(e){return(Yt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Xt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zt(e,t){return(Zt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Kt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Jt=envira_args.options.galleries.map((function(e){return Object.assign({},{value:e.id,label:e.title.rendered})})),Qt=function(e){function t(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==qt(t)&&"function"!=typeof t?Xt(e):t}(this,Yt(t).apply(this,arguments)),Kt(Xt(n),"loadOptions",(function(e){if(!e)return[];if(!n._mounted)return[];return a()({path:"/wp/v2/envira-gallery?search="+e}).then((function(e){return e})).then((function(e){return e.map((function(e){return Object.assign({},{value:e.id,label:e.title.rendered})}))}))})),Kt(Xt(n),"handleInputChange",(function(e){var t=n.props.onSelect;n.setState({selectedOption:e}),t(e)}));var r=""===n.props.title?Object(s.__)("(No Title)"):n.props.title;return n.state={selectedOption:null!=n.props.galleryId?{value:n.props.galleryId,label:r}:"",defaultOptions:Jt},n}var n,r,i;return 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&&Zt(e,t)}(t,e),n=t,(r=[{key:"componentDidMount",value:function(){this._mounted=!0}},{key:"componentWillUnmount",value:function(){this._mounted=!1}},{key:"componentDidUpdate",value:function(e){e.galleryId!=this.props.galleryId&&this._mounted&&this.setState({selectedOption:{value:this.props.galleryId,label:this.props.title}})}},{key:"render",value:function(){var e=this.state,t=e.selectedOption,n=e.defaultOptions;return wp.element.createElement(o.Fragment,null,wp.element.createElement(Gt,{placeholder:this.props.placeholder,value:t,filterOptions:!1,cacheOptions:!0,defaultOptions:n,onChange:this.handleInputChange,loadOptions:this.loadOptions}))}}])&&$t(n.prototype,r),i&&$t(n,i),t}(o.Component),en=Object(l.compose)([Object(u.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock(n);return r?{clientId:n,galleryId:r.attributes?r.attributes.galleryId:null,title:r.attributes?r.attributes.title:""}:{clientId:null,galleryId:null,title:""}})),Object(u.withDispatch)((function(e,t){var n=t.clientId;return{onSelect:function(t){e("core/block-editor").updateBlockAttributes(n,{galleryId:t.value,title:t.label})}}}))])(Qt);function tn(e){return(tn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function rn(e){return(rn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function on(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function an(e,t){return(an=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function un(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sn=[{value:"0",label:Object(s.__)("None")},{value:"1",label:Object(s.__)("Small")},{value:"5",label:Object(s.__)("Medium")},{value:"20",label:Object(s.__)("Large")},{value:"custom",label:Object(s.__)("Custom")}],ln=function(e){function t(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==tn(t)&&"function"!=typeof t?on(e):t}(this,rn(t).apply(this,arguments)),un(on(n),"changeColumns",(function(e){n.setState({columns:e.value}),n.props.updateAttribute("columns",e.value)})),un(on(n),"changeCustomMargin",(function(e){e=""==e||isNaN(e)?null:parseInt(e),n.setState({custom_margins:null===e?"":e}),n.props.updateAttribute("custom_margins",e)})),un(on(n),"changeRowHeight",(function(e){e=""==e||isNaN(e)?null:parseInt(e),n.setState({row_height:null===e?"":e}),n.props.updateAttribute("row_height",e)})),un(on(n),"changeMargins",(function(e){n.setState({margins:e}),n.props.updateAttribute("margins",e)})),un(on(n),"toggleLightbox",(function(e){n.setState({lightbox_enabled:e}),n.props.updateAttribute("lightbox_enabled",e)})),un(on(n),"toggleIsotope",(function(e){n.setState({isotope:e}),n.props.updateAttribute("isotope",e)})),un(on(n),"onLightboxThemeChange",(function(e){n.setState({lightbox_theme:e}),n.props.updateAttribute("lightbox_theme",e)})),un(on(n),"onImageSizeChange",(function(e){n.setState({image_size:e.value}),n.props.updateAttribute("image_size",e.value)})),un(on(n),"onSelectedImageTitleChange",(function(e){var t=n.state.selectedImage;t.title=e,n.setState({selectedImage:t})})),un(on(n),"clearSelectedImage",(function(e){n.props.setAttributes({selectedImage:null})})),un(on(n),"onSelectedImageTitleBlur",(function(e){var t=n.state.selectedImage,r=n.props.galleryId;t.title=e.target.value,n.setState({selectedImage:t});var o={gallery_data:{update_image:t,attach_id:t.id,updated_image:t}};return a()({path:"/wp/v2/envira-gallery/".concat(r),method:"POST",data:o})})),un(on(n),"onSelectedImageCaptionChange",(function(e){var t=n.state.selectedImage;t.caption=e,n.setState({selectedImage:t})})),un(on(n),"onSelectedImageCaptionBlur",(function(e){var t=n.state,r=t.selectedImage,o=t.galleryId;r.caption=e.target.value,n.setState({selectedImage:r});var i={gallery_data:{update_image:!0,attach_id:r.id,updated_image:r}};return a()({path:"/wp/v2/envira-gallery/".concat(o),method:"PUT",data:i}).then((function(e){return e})).then((function(e){return e}))}));var r=null!=n.props.galleryId;return n.state={hasGallery:r,column_options:envira_args.options.columns,lightbox_options:envira_args.options.lightbox_themes,sorting_options:envira_args.options.sorting_options,image_sizes:envira_args.options.image_sizes,galleryId:n.props.galleryId,columns:n.props.columns,margins:n.props.margins,custom_margins:n.props.custom_margins,row_height:n.props.row_height,lightbox_enabled:n.props.lightbox_enabled,lightbox_theme:n.props.lightbox_theme,isotope:n.props.isotope,image_size:n.props.image_size,selectedImage:n.props.selectedImage},n}var n,r,i;return 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&&an(e,t)}(t,e),n=t,(r=[{key:"componentDidMount",value:function(){this._mounted=!0}},{key:"componentWillUnmount",value:function(){this._mounted=!1}},{key:"componentDidUpdate",value:function(e){var t=null!=this.props.galleryId;if(!this._mounted)return null;this.props.selectedImage!=e.selectedImage&&this.setState({selectedImage:this.props.selectedImage}),this.props.attributes!=e.attributes&&this.setState({hasGallery:t,galleryId:this.props.galleryId,columns:this.props.columns,margins:this.props.margins,custom_margins:this.props.custom_margins,row_height:this.props.row_height,lightbox_enabled:this.props.lightbox_enabled,lightbox_theme:this.props.lightbox_theme,isotope:this.props.isotope,image_size:this.props.image_size})}},{key:"renderGalleryPanel",value:function(){var e=this.state,t=e.hasGallery,n=e.columns,r=e.margins,i=e.row_height,a=e.column_options,u=e.isotope,l=e.custom_margins;if(e.image_sizes,e.image_size,!1===t)return null;var c=sn.find((function(e){return e.value==r}));c=void 0===c?{value:"custom",label:Object(s.__)("Custom")}:c;var p=a.find((function(e){return e.value==n}));return wp.element.createElement("div",null,wp.element.createElement("h3",{className:"envira-heading"},Object(s.__)("Select Layout")),wp.element.createElement(Nt,{value:p,onChange:this.changeColumns,options:a}),"0"===this.props.columns&&wp.element.createElement(o.Fragment,null,wp.element.createElement("h3",{className:"envira-heading"},Object(s.__)("Set Row Height")),wp.element.createElement(zt.TextControl,{value:i,onChange:this.changeRowHeight})),"0"!=this.props.columns&&wp.element.createElement(o.Fragment,null,wp.element.createElement("h3",{className:"envira-heading"},Object(s.__)("Enable Isotope")),wp.element.createElement(zt.ToggleControl,{checked:u,onChange:this.toggleIsotope})),wp.element.createElement("h3",{className:"envira-heading"},Object(s.__)("Gallery Margins")),wp.element.createElement(zt.SelectControl,{value:this.props.margins,onChange:this.changeMargins,options:sn}),"custom"===c.value&&wp.element.createElement(o.Fragment,null,wp.element.createElement("h3",{className:"envira-heading"},Object(s.__)("Custom Margin")),wp.element.createElement(zt.TextControl,{value:l,onChange:this.changeCustomMargin})))}},{key:"renderLightboxPanel",value:function(){var e=this.state,t=e.hasGallery,n=e.lightbox_options,r=e.lightbox_enabled;return e.lightbox_theme,!1===t?null:wp.element.createElement(zt.PanelBody,{title:Object(s.__)("Lightbox"),className:"envira-inspector-panelbody"},wp.element.createElement("h3",{className:"envira-heading"},Object(s.__)("Enable Lightbox?")),wp.element.createElement(zt.ToggleControl,{checked:r,onChange:this.toggleLightbox}),r&&wp.element.createElement(o.Fragment,null,wp.element.createElement("h3",{className:"envira-heading"},Object(s.__)("Select Lightbox Theme")),wp.element.createElement(zt.SelectControl,{value:this.props.lightbox_theme,onChange:this.onLightboxThemeChange,options:n})))}},{key:"renderImageEditPanel",value:function(){var e=this.state.selectedImage,t="",n="";return null!=e&&(t=null!==e.title?e.title:"",n=null!==e.caption?e.caption:""),wp.element.createElement(Ut.InspectorControls,null,wp.element.createElement(zt.PanelBody,{title:Object(s.__)("Image"),className:"envira-inspector-panelbody"},wp.element.createElement(zt.Button,{onClick:this.clearSelectedImage,isLink:!0},"Go Back"),wp.element.createElement(o.Fragment,null,wp.element.createElement("h3",{className:"envira-heading"},Object(s.__)("Title")),wp.element.createElement(zt.TextControl,{value:t,onBlur:this.onSelectedImageTitleBlur,onChange:this.onSelectedImageTitleChange})),wp.element.createElement(o.Fragment,null,wp.element.createElement("h3",{className:"envira-heading"},Object(s.__)("Caption")),wp.element.createElement(zt.TextareaControl,{value:n,onBlur:this.onSelectedImageCaptionBlur,onChange:this.onSelectedImageCaptionChange}))))}},{key:"render",value:function(){var e=this.props.galleryId;return null!==this.props.selectedImage?[this.renderImageEditPanel()]:wp.element.createElement(Ut.InspectorControls,null,wp.element.createElement(zt.PanelBody,{title:Object(s.__)("Gallery"),className:"envira-inspector-panelbody"},wp.element.createElement("h3",{className:"envira-heading"},Object(s.__)("Search for a Gallery")),wp.element.createElement(en,{clientId:this.props.clientId,placeholder:" "}),null!=e&&wp.element.createElement(zt.Button,{isDefault:!0,target:"_blank",className:"envira-button",href:envira_args.admin_url+"post.php?post="+e+"&action=edit"},"Edit Gallery"),this.renderGalleryPanel()),this.renderLightboxPanel())}}])&&nn(n.prototype,r),i&&nn(n,i),t}(o.Component),cn=Object(l.compose)([Object(u.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock(n);return{clientId:n,attributes:r.attributes?r.attributes:{},galleryId:r.attributes?r.attributes.galleryId:null,columns:r.attributes?r.attributes.columns:0,margins:r.attributes?r.attributes.margins:1,row_height:r.attributes?r.attributes.row_height:100,lightbox_enabled:!!r.attributes&&r.attributes.lightbox_enabled,lightbox_theme:r.attributes?r.attributes.lightbox_theme:"base_dark",custom_margins:!!r.attributes&&r.attributes.custom_margins,isotope:!!r.attributes&&r.attributes.isotope,selectedImage:r.attributes?r.attributes.selectedImage:{},images:r.attributes?r.attributes.images:{}}})),Object(u.withDispatch)((function(e,t){var n=t.clientId;return{updateAttribute:function(t,r){e("core/block-editor").updateBlockAttributes(n,un({},t,r))}}}))])(ln),pn=Object(l.compose)([Object(u.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock(n);return{clientId:n,galleryId:r.attributes?r.attributes.galleryId:null}}))])((function(e){var t=e.galleryId;return wp.element.createElement(o.Fragment,null,wp.element.createElement(Ut.BlockControls,null,wp.element.createElement(zt.Toolbar,null,t&&wp.element.createElement(o.Fragment,null,wp.element.createElement(zt.IconButton,{className:"components-toolbar__control",label:Object(s.__)("Edit gallery"),icon:"edit",target:"_blank",href:envira_args.admin_url+"post.php?post="+t+"&action=edit"})))))}));function fn(e){return(fn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function dn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function hn(e){return(hn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function mn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gn(e,t){return(gn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var bn=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!==fn(t)&&"function"!=typeof t?mn(e):t}(this,hn(t).apply(this,arguments))).updateGallery=n.updateGallery.bind(mn(n)),n}var n,r,o;return 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&&gn(e,t)}(t,e),n=t,(r=[{key:"componentDidMount",value:function(){this._mounted=!0}},{key:"componentWillUnmount",value:function(){this._mounted=!1}},{key:"shouldComponentUpdate",value:function(e){return e.attributes.selectedImage==this.props.attributes.selectedImage&&e.attributes!=this.props.attributes}},{key:"componentDidUpdate",value:function(e){this.props.galleryId===e.galleryId&&this.updateGallery()}},{key:"updateGallery",value:function(){if(null==this.props.galleryId)return null;if(null==this.props.attributes)return null;if(!this._mounted)return null;var e="custom"===this.props.attributes.margins?this.props.attributes.custom_margins:this.props.attributes.margins,t={gallery_data:{config:{columns:this.props.attributes.columns,justified_margins:e,justified_row_height:this.props.attributes.row_height,gutter:e,margin:e,isotope:this.props.attributes.isotope,lightbox_enabled:this.props.attributes.lightbox_enabled,lightbox_theme:this.props.attributes.lightbox_theme,image_size:this.props.attributes.image_size}}};return a()({path:"/wp/v2/envira-gallery/".concat(this.props.galleryId),method:"PUT",data:t}),!0}},{key:"render",value:function(){return null}}])&&dn(n.prototype,r),o&&dn(n,o),t}(o.Component),vn=Object(l.compose)([Object(u.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock(n);return{clientId:n,galleryId:r.attributes.galleryId?r.attributes.galleryId:null,title:r.attributes.title?r.attributes.title:"",attributes:r.attributes?r.attributes:{}}}))])(bn),yn=n(10),wn=n.n(yn),En=function(e){var t=e.selected;return wp.element.createElement("div",{style:t?{left:"6px",top:"6px",position:"relative",zIndex:"1"}:{display:"none"}},wp.element.createElement("svg",{style:{fill:"white",position:"absolute"},width:"24px",height:"24px"},wp.element.createElement("circle",{cx:"12.5",cy:"12.2",r:"8.292"})),wp.element.createElement("svg",{style:{fill:"#7cc048",position:"absolute"},width:"24px",height:"24px"},wp.element.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})))};function On(e){return(On="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Cn(e){return(Cn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Sn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xn(e,t){return(xn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function kn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var An=function(e){function t(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==On(t)&&"function"!=typeof t?Sn(e):t}(this,Cn(t).apply(this,arguments)),kn(Sn(n),"outsideClick",(function(e){e.stopPropagation(),n.node.current.contains(e.target)||(n.setState({isImageSelected:!1}),n.props.setAttributes({selectedImage:null}))})),kn(Sn(n),"handleOnClick",(function(e){var t=n.state.isImageSelected;e.stopPropagation(),n.setState({isImageSelected:!t}),t?n.props.setAttributes({selectedImage:null}):n.props.setAttributes({selectedImage:n.props.data})}));var r="0"!=n.props.attributes.margins?n.props.attributes.margins:"0";return n.node=Object(o.createRef)(),n.state={isImageSelected:!1,itemStyles:{paddingLeft:"0"!=n.props.attributes.columns?r/2+"px":"0px",paddingRight:"0"!=n.props.attributes.columns?r/2+"px":"0px",paddingBottom:"0"!=n.props.attributes.columns?r+"px":"0px"}},n}var n,r,i;return 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&&xn(e,t)}(t,e),n=t,(r=[{key:"componentDidMount",value:function(){document.addEventListener("mousedown",this.outsideClick,!1)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousedown",this.outsideClick,!1)}},{key:"componentDidUpdate",value:function(e){if(e.attributes!=this.props.attributes){var t="custom"===this.props.attributes.margins?this.props.attributes.custom_margins:this.props.attributes.margins,n=null!==this.props.attributes.selectedImage&&this.props.attributes.selectedImage.id;this.setState({isImageSelected:n==this.props.data.id,itemStyles:{paddingLeft:"0"!=this.props.attributes.columns?t/2+"px":"0px",paddingRight:"0"!=this.props.attributes.columns?t/2+"px":"0px",paddingBottom:"0"!=this.props.attributes.columns?t+"px":"0px"}})}}},{key:"render",value:function(){var e=this.state.isImageSelected,t=wn()({"envira-gallery-item":!0});return wp.element.createElement("div",{className:t,style:this.state.itemStyles,ref:this.node},wp.element.createElement("div",{className:"envira-gallery-item-inner",key:this.props.key},wp.element.createElement(En,{selected:!!e}),wp.element.createElement("img",{src:this.props.data.src,onClick:this.handleOnClick})))}}])&&_n(n.prototype,r),i&&_n(n,i),t}(o.Component),In=n(20);function Fn(e){return(Fn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Pn(){return(Pn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function jn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Dn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jn(n,!0).forEach((function(t){Bn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jn(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Tn(e){return(Tn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ln(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rn(e,t){return(Rn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Bn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Vn={backgroundColor:"#eee",cursor:"pointer",overflow:"hidden",position:"relative"},Nn=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==Fn(t)&&"function"!=typeof t?Ln(e):t}(this,Tn(t).apply(this,arguments)),Bn(Ln(n),"outsideClick",(function(e){e.stopPropagation(),n.node.current.contains(e.target)||(n.setState({isSelected:!1}),n.props.setAttributes({selectedImage:null}))})),Bn(Ln(n),"handleOnClick",(function(e){var t=n.state.isSelected;e.stopPropagation(),n.setState({isSelected:!t}),t?n.props.setAttributes({selectedImage:null}):n.props.setAttributes({selectedImage:n.props.photo})})),n.node=Object(o.createRef)(),n.state={isSelected:!1},n}var n,r,i;return 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&&Rn(e,t)}(t,e),n=t,(r=[{key:"componentDidMount",value:function(){document.addEventListener("mousedown",this.outsideClick,!1),this._mounted=!0}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousedown",this.outsideClick,!1),this._mounted=!1}},{key:"componentDidUpdate",value:function(e){e.attributes!=this.props.attributes&&this._mounted&&null!=this.props.attributes.selectedImage&&this.setState({isSelected:this.props.attributes.selectedImage.id==this.props.photo.id})}},{key:"render",value:function(){var e=this.props,t=(e.index,e.onClick,e.photo),n=e.margin,r=e.direction,o=e.top,i=e.left,a=(e.max_height,e.selected,e.clientID,e.setAttributes,e.attributes,this.state.isSelected),u={display:"block",maxHeight:t.height};return"column"===r&&(u.position="absolute",u.left=i,u.top=o),wp.element.createElement("div",{style:Dn({margin:n,height:t.height,width:t.width},Vn),className:a?"":"not-selected"},wp.element.createElement(En,{selected:!!a}),wp.element.createElement("img",Pn({style:u},t,{onClick:this.handleOnClick,ref:this.node})),wp.element.createElement("style",null,".not-selected:hover{outline:2px solid #06befa}"))}}])&&Mn(n.prototype,r),i&&Mn(n,i),t}(o.Component),Un=he.a.shape({key:he.a.string,src:he.a.string.isRequired,width:he.a.number.isRequired,height:he.a.number.isRequired,alt:he.a.string,title:he.a.string,srcSet:he.a.oneOfType([he.a.string,he.a.array]),sizes:he.a.oneOfType([he.a.string,he.a.array])});Nn.propTypes={index:he.a.number.isRequired,onClick:he.a.func,photo:Un.isRequired,margin:he.a.number,top:function(e){if("column"===e.direction&&"number"!=typeof e.top)return new Error("top is a required number when direction is set to `column`")},left:function(e){if("column"===e.direction&&"number"!=typeof e.left)return new Error("left is a required number when direction is set to `column`")},direction:he.a.string};var zn=Nn,Hn=function(e,t){return t||(t=0),Number(Math.round(e+"e"+t)+"e-"+t)};function Wn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qn=function(e){for(var t=e.photos,n=e.columns,r=e.containerWidth,o=e.margin,i=(r-2*o*n)/n,a=t.map((function(e){var t=e.height/e.width*i;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wn(n,!0).forEach((function(t){Gn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wn(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{width:Hn(i,1),height:Hn(t,1)})})),u=[],s=[],l=0;l<n;l++)u[l]=Hn(l*(i+2*o),1),s[l]=0;return a.map((function(e){var t=s.reduce((function(e,t,n){return e=t<s[e]?n:e}),0);e.top=s[t],e.left=u[t],s[t]=s[t]+e.height+2*o;var n=s.reduce((function(e,t,n){return e=t>s[e]?n:e}),0);return e.containerHeight=s[n],e}))},$n=function(e){var t=e.width,n=e.height;return Hn(t/n,2)};function Yn(e){this.content=[],this.scoreFunction=e}Yn.prototype={push:function(e){this.content.push(e),this.bubbleUp(this.content.length-1)},pop:function(){var e=this.content[0],t=this.content.pop();return this.content.length>0&&(this.content[0]=t,this.sinkDown(0)),e},remove:function(e){for(var t=this.content.length,n=0;n<t;n++)if(this.content[n]==e){var r=this.content.pop();if(n==t-1)break;this.content[n]=r,this.bubbleUp(n),this.sinkDown(n);break}},size:function(){return this.content.length},bubbleUp:function(e){for(var t=this.content[e],n=this.scoreFunction(t);e>0;){var r=Math.floor((e+1)/2)-1,o=this.content[r];if(n>=this.scoreFunction(o))break;this.content[r]=t,this.content[e]=o,e=r}},sinkDown:function(e){for(var t=this.content.length,n=this.content[e],r=this.scoreFunction(n);;){var o=2*(e+1),i=o-1,a=null;if(i<t){var u=this.content[i],s=this.scoreFunction(u);s<r&&(a=i)}if(o<t){var l=this.content[o];this.scoreFunction(l)<(null==a?r:s)&&(a=o)}if(null==a)break;this.content[e]=this.content[a],this.content[a]=n,e=a}}};var Xn=function(e,t,n){return function(e,t){for(var n=[],r=t;r;)n.push(r),e[r],r=e[r];return n.reverse()}(function(e,t,n){var r={},o={},i={};i[t]=0;var a=new Yn((function(e){return e.weight}));for(a.push({id:t,weight:0});a.size();){var u=a.pop(),s=u.id;if(!o[s]){var l=e(s)||{};for(var c in o[s]=1,l){var p=u.weight+l[c];(void 0===i[c]||i[c]>p)&&(i[c]=p,a.push({id:c,weight:p}),r[c]=s)}}}if(void 0===i[n])throw new Error("There is no path from ".concat(t," to ").concat(n));return r}(e,t,n),n)},Zn=function(e,t,n){return(t-e.length*(2*n))/e.reduce((function(e,t){return e+$n(t)}),0)},Kn=function(e,t,n,r,o,i){var a=e.slice(t,n),u=Zn(a,r,i);return Math.pow(Math.abs(u-o),2)},Jn=function(e){var t=e.containerWidth,n=e.limitNodeSearch,r=e.targetRowHeight,o=e.margin,i=e.photos,a=function(e,t,n,r,o){return function(i){var a={};a[+(i=+i)]=0;for(var u=i+1;u<n.length+1&&!(u-i>r);++u)a[u.toString()]=Kn(n,i,u,t,e,o);return a}}(r,t,i,n,o),u=Xn(a,"0",i.length);u=u.map((function(e){return+e}));for(var s=1;s<u.length;++s)for(var l=i.slice(u[s-1],u[s]),c=Zn(l,t,o),p=u[s-1];p<u[s];++p)i[p].width=Hn(c*$n(i[p]),1),i[p].height=c;return i};function Qn(e){return(Qn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function er(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function tr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function nr(e){return(nr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function rr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function or(e,t){return(or=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ir(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ar=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==Qn(t)&&"function"!=typeof t?rr(e):t}(this,(e=nr(t)).call.apply(e,[this].concat(o))),ir(rr(n),"state",{containerWidth:0}),ir(rr(n),"handleClick",(function(e,t){var r=t.index,o=n.props,i=o.photos;(0,o.onClick)(e,{index:r,photo:i[r],previous:i[r-1]||null,next:i[r+1]||null})})),n}var n,r,o;return 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&&or(e,t)}(t,e),n=t,(r=[{key:"componentDidMount",value:function(){var e=this;this.animationFrameID=null,this.observer=new In.a((function(t){var n=t[0].contentRect.width;e.state.containerWidth!==n&&(e.animationFrameID=window.requestAnimationFrame((function(){e.setState({containerWidth:Math.floor(n)})})))})),this.observer.observe(this._gallery)}},{key:"componentDidUpdate",value:function(){}},{key:"componentWillUnmount",value:function(){this.observer.disconnect(),window.cancelAnimationFrame(this.animationFrameID)}},{key:"render",value:function(){var e=this,t=this.state.containerWidth;if(!t)return wp.element.createElement("div",{ref:function(t){return e._gallery=t}}," ");var n,r,o=this.props,i=o.margin,a=o.onClick,u=o.direction,s=o.photos,l=t-1;if("row"===u){var c=this.props,p=c.limitNodeSearch,f=c.targetRowHeight;"function"==typeof p&&(p=p(t)),"function"==typeof f&&(f=f(t)),void 0===p&&(p=1,t>=450&&(p=function(e){var t=e.targetRowHeight,n=e.containerWidth;return Hn(n/t/1.5)+8}({containerWidth:t,targetRowHeight:f}))),n={display:"flex",flexWrap:"wrap",flexDirection:"row"},r=Jn({containerWidth:l,limitNodeSearch:p,targetRowHeight:f,margin:i,photos:s})}if("column"===u){var d=this.props.columns;"function"==typeof d&&(d=d(t)),void 0===d&&(d=1,t>=500&&(d=2),t>=900&&(d=3),t>=1500&&(d=4)),n={position:"relative"},r=qn({containerWidth:l,columns:d,margin:i,photos:s}),n.height=r[r.length-1].containerHeight}var h=this.props,m=h.clientId,g=h.targetRowHeight,b=h.renderImage,v=void 0===b?zn:b,y=h.setAttributes,w=h.attributes;return wp.element.createElement("div",{className:"react-photo-gallery--gallery"},wp.element.createElement("div",{ref:function(t){return e._gallery=t},style:n},r.map((function(t,n){var r=t.left,o=t.top,s=(t.key,t.containerHeight,er(t,["left","top","key","containerHeight"]));return wp.element.createElement(v,{key:t.id,margin:i,index:n,photo:s,direction:u,left:r,top:o,max_height:g,clientId:m,onClick:a?e.handleClick:null,setAttributes:y,attributes:w})}))))}}])&&tr(n.prototype,r),o&&tr(n,o),t}(I.a.Component);ar.propTypes={photos:he.a.arrayOf(Un).isRequired,direction:he.a.string,onClick:he.a.func,columns:he.a.oneOfType([he.a.func,he.a.number]),targetRowHeight:he.a.oneOfType([he.a.func,he.a.number]),limitNodeSearch:he.a.oneOfType([he.a.func,he.a.number]),margin:he.a.number,renderImage:he.a.func},ar.defaultProps={margin:2,direction:"row",targetRowHeight:300};var ur=ar;function sr(e){return(sr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function lr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function cr(e,t){return!t||"object"!==sr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function pr(e){return(pr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function fr(e,t){return(fr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function dr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hr=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),cr(this,pr(t).apply(this,arguments))}var n,r,o;return 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&&fr(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){for(var e={},t=[],n=0;n<this.props.columns;n++)e["column".concat(n)]=[];for(var r=0;r<this.props.children.length;r++){var o=r%this.props.columns;e["column".concat(o)].push(wp.element.createElement("div",{style:{marginBottom:"".concat(this.props.margin,"px")}},this.props.children[r]))}for(var i=0;i<this.props.columns;i++)t.push(wp.element.createElement("div",{style:{marginLeft:"".concat(i>0?this.props.margin:0,"px"),flex:1}},e["column".concat(i)]));return wp.element.createElement("div",{className:"envira-gallery-wrap envira-gallery-isotope",style:{display:"flex"}},t)}}])&&lr(n.prototype,r),o&&lr(n,o),t}(o.Component);dr(hr,"propTypes",{columns:he.a.number.isRequired,margin:he.a.number.isRequired,images:he.a.arrayOf(he.a.element)}),dr(hr,"defaultProps",{columns:2,margin:0});var mr=hr;function gr(e){return(gr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function br(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vr(e,t){return!t||"object"!==gr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function yr(e){return(yr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function wr(e,t){return(wr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Er(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Or=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),vr(this,yr(t).apply(this,arguments))}var n,r,o;return 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&&wr(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){var e=this.props.columns,t="0"!==e?e+"-columns":"automatic",n=wn()("envira-gallery-public","envira-clear",Er({}," envira-gallery-".concat(t),!0));return wp.element.createElement("div",{className:"envira-gallery-wrap"},wp.element.createElement("div",{className:n},this.props.children))}}])&&br(n.prototype,r),o&&br(n,o),t}(o.Component);Er(Or,"propTypes",{columns:he.a.number.isRequired,margin:he.a.number.isRequired,children:he.a.arrayOf(he.a.element)}),Er(Or,"defaultProps",{columns:2,margin:0});var _r=Or;n(26);function Cr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Sr=function(e){var t,n=e.className,r=e.big,o=e.color;return wp.element.createElement(zt.Placeholder,null,wp.element.createElement("div",{className:"envira-isLoading"},wp.element.createElement("div",{className:wn()("envira-loading",(t={},Cr(t,n,n),Cr(t,"big",r),Cr(t,o,o),t))},wp.element.createElement("div",null),wp.element.createElement("div",null),wp.element.createElement("div",null),wp.element.createElement("div",null))))};Sr.propTypes={big:he.a.bool,color:he.a.oneOf(["green","gray"])},Sr.defaultProps={big:!1,color:"green"};var xr=Sr;n(28);function kr(e){return(kr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ar(){return(Ar=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Ir(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Fr(e,t){return!t||"object"!==kr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Pr(e){return(Pr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function jr(e,t){return(jr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Dr=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=Fr(this,Pr(t).apply(this,arguments))).state={isLoadingGallery:!0,isotope:!1,activeGallery:null},n}var n,r,i;return 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&&jr(e,t)}(t,e),n=t,(r=[{key:"shouldComponentUpdate",value:function(){return!0}},{key:"renderGallery",value:function(){var e=this.state,t=(e.isLoadingGallery,e.activeGallery,e.selectedImage,this.props),n=t.clientId,r=t.attributes,o=t.columns,i=t.isotope,a=t.row_height,u=t.margins,s=t.custom_margins,l=t.images,c=this.props;if(0===parseInt(o)){var p="custom"===u?s:u;return wp.element.createElement(ur,Ar({photos:l,clientID:n,targetRowHeight:parseInt(a),margin:parseInt(p)},c))}return i?wp.element.createElement(mr,{columns:parseInt(o)},Object.keys(l).map((function(e){return wp.element.createElement(An,Ar({key:e,data:l[e],attributes:r},c))}))):wp.element.createElement(_r,{columns:o},Object.keys(l).map((function(e){return wp.element.createElement(An,Ar({key:e,data:l[e],attributes:r},c))})))}},{key:"render",value:function(){var e=this.props,t=e.isSelected,n=e.images;return null!=n?null!=n?wp.element.createElement(o.Fragment,null,wp.element.createElement(Ut.MediaUploadCheck,null,wp.element.createElement(zt.DropZone,{onFilesDrop:this.props.onFilesUpload})),this.renderGallery(),t&&wp.element.createElement("div",{className:"envira-uploader"},wp.element.createElement(Ut.MediaUploadCheck,null,wp.element.createElement(zt.FormFileUpload,{isLarge:!0,className:"envira-media__button",onChange:this.props.onUpload,accept:"image/*",multiple:!0,icon:"plus"},Object(s.__)("Upload")),wp.element.createElement(Ut.MediaUpload,{onSelect:this.props.onSelect,allowedTypes:["image"],multiple:!0,render:function(e){var t=e.open;return wp.element.createElement(zt.IconButton,{className:"envira-media__button",label:Object(s.__)("Upload from Media Library"),icon:"format-gallery",onClick:t},Object(s.__)("Media Library"))}})))):wp.element.createElement(o.Fragment,null,wp.element.createElement(Ut.MediaUploadCheck,null,wp.element.createElement(zt.DropZone,{onFilesDrop:this.props.onFilesUpload}),wp.element.createElement(zt.FormFileUpload,{isLarge:!0,className:"editor-media-placeholder__button",onChange:this.props.onUpload,accept:!1,multiple:!0},Object(s.__)("Upload")),wp.element.createElement(Ut.MediaUpload,{multiple:!0,onSelect:this.props.onSelect,value:{}.id,render:function(e){var t=e.open;return wp.element.createElement(zt.Button,{isLarge:!0,className:"editor-media-placeholder__button",onClick:t},Object(s.__)("Media Library"))}}))):wp.element.createElement(o.Fragment,null,wp.element.createElement(xr,null))}}])&&Ir(n.prototype,r),i&&Ir(n,i),t}(o.Component),Mr=Object(l.compose)([Object(u.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock(n);return{clientId:n,galleryId:r.attributes.galleryId,columns:r.attributes.columns,row_height:r.attributes.row_height,margins:r.attributes.margins,isotope:r.attributes.isotope,custom_margins:r.attributes.custom_margins,image_size:r.attributes.image_size,editMode:r.attributes.editMode,images:r.attributes.images,isLoading:r.attributes.isLoading,attributes:r.attributes}})),Object(u.withDispatch)((function(e,t){var n=t.clientId;return{setLoading:function(t){e("core/block-editor").updateBlockAttributes(n,{isLoading:t})},setGallery:function(t){e("core/block-editor").updateBlockAttributes(n,{galleryId:t})},onActivateGallery:function(t){if(void 0===t)return null;e("core/block-editor").updateBlockAttributes(n,{columns:t.columns,row_height:t.justified_row_height,margins:"0"!=t.columns?t.gutter:t.justified_margins,custom_margins:"0"!=t.columns?t.gutter:t.justified_margins,lightbox_enabled:t.lightbox_enabled,isotope:t.isotope})}}}))])(Dr),Tr=wp.element.createElement("svg",{id:"envira-logo",xmlns:"http://www.w3.org/2000/svg",width:"400",height:"41.333",viewBox:"0 0 400 41.333"},wp.element.createElement("g",{id:"Layer_1_1_"},wp.element.createElement("path",{d:"M80.339,279.15c0.337,0.628,0.932,1.585,1.35,1.892c0.419,0.308,0.874,0.533-0.091,0.126 c-0.964-0.408-1.669-1.564-2.136-2.439c-0.359-0.673-0.668-1.286-1.338-1.741c-0.67-0.455,0.078-0.135,0.078-0.135 C79.427,277.451,79.871,278.276,80.339,279.15 M79.053,281.124c1.335,1.04,2.601,0.6,3.179,0.539l1.041,1.035h0.384l-1.196-1.188 c-0.009-0.712,1.636-5.325-5.441-5.325C77.792,278.841,77.719,280.084,79.053,281.124",fill:"#7bc049",transform:"matrix(4.08032 0 0 4.08032 -309.725 -1118.87)"}),wp.element.createElement("g",{transform:"matrix(4.08032 0 0 4.08032 -299.725 -1118.87)",fill:"#231f20"},wp.element.createElement("path",{d:"M82.952,276.099h4.718v0.455h-4.225v2.605h3.799v0.455h-3.799v2.662h4.273v0.455h-4.765V276.099z"}),wp.element.createElement("path",{d:"M89.679,276.099h0.464l4.576,5.77v-5.77h0.474v6.632h-0.369l-4.671-5.893v5.893h-0.474V276.099z"}),wp.element.createElement("path",{d:"M96.974,276.099h0.55l2.596,6.101l2.605-6.101h0.521l-2.918,6.679h-0.436L96.974,276.099z"}),wp.element.createElement("rect",{x:"105.093",y:"276.099",width:"0.493",height:"6.632"}),wp.element.createElement("path",{d:"M110.73,279.538c0.278,0,0.535-0.035,0.772-0.104c0.237-0.069,0.441-0.169,0.611-0.298 c0.171-0.129,0.305-0.287,0.403-0.474c0.098-0.186,0.147-0.399,0.147-0.639v-0.019c0-0.448-0.166-0.802-0.497-1.061 c-0.332-0.259-0.801-0.388-1.407-0.388h-2.264v2.984H110.73z M108.002,276.099h2.785c0.411,0,0.774,0.058,1.09,0.175 s0.575,0.276,0.777,0.478c0.158,0.158,0.281,0.343,0.369,0.554s0.133,0.437,0.133,0.677v0.019c0,0.278-0.049,0.526-0.147,0.744 c-0.098,0.218-0.234,0.406-0.407,0.564c-0.174,0.158-0.379,0.286-0.616,0.384c-0.237,0.098-0.494,0.166-0.772,0.204l2.189,2.833 h-0.625l-2.113-2.747h-0.019h-2.151v2.747h-0.493V276.099z"}),wp.element.createElement("path",{d:"M119.721,280.429l-1.743-3.837l-1.753,3.837H119.721z M117.751,276.052h0.474l3.089,6.679h-0.54 l-0.843-1.857h-3.913l-0.843,1.857h-0.512L117.751,276.052z"}),wp.element.createElement("path",{d:"M126.107,282.845c-0.518,0-0.988-0.087-1.412-0.261c-0.423-0.174-0.785-0.414-1.085-0.72 c-0.3-0.306-0.532-0.666-0.696-1.08c-0.164-0.414-0.246-0.864-0.246-1.35v-0.019c0-0.461,0.084-0.9,0.251-1.317 c0.167-0.417,0.403-0.782,0.706-1.094c0.303-0.313,0.665-0.561,1.085-0.744c0.42-0.183,0.88-0.275,1.378-0.275 c0.291,0,0.554,0.021,0.791,0.062c0.237,0.041,0.456,0.099,0.658,0.175c0.202,0.076,0.393,0.169,0.573,0.279 c0.18,0.111,0.355,0.238,0.526,0.384l-0.739,0.881c-0.126-0.107-0.256-0.205-0.388-0.294c-0.133-0.088-0.272-0.163-0.417-0.223 c-0.145-0.06-0.305-0.107-0.478-0.142c-0.174-0.035-0.365-0.052-0.573-0.052c-0.303,0-0.586,0.063-0.848,0.189 c-0.262,0.126-0.489,0.295-0.682,0.507c-0.193,0.212-0.344,0.46-0.455,0.744c-0.111,0.284-0.166,0.584-0.166,0.9v0.019 c0,0.341,0.054,0.657,0.161,0.947c0.107,0.291,0.261,0.54,0.46,0.748c0.199,0.208,0.436,0.373,0.711,0.493 c0.275,0.12,0.583,0.18,0.924,0.18c0.316,0,0.611-0.046,0.886-0.137s0.513-0.213,0.715-0.365v-1.241h-1.696v-1.014h2.823v2.785 c-0.164,0.139-0.346,0.272-0.545,0.398c-0.199,0.126-0.414,0.237-0.644,0.332c-0.231,0.095-0.478,0.169-0.744,0.223 C126.675,282.818,126.397,282.845,126.107,282.845z"}),wp.element.createElement("path",{d:"M134.785,280.097l-1.146-2.653l-1.137,2.653H134.785z M133.118,276.052h1.08l2.918,6.679h-1.232 l-0.673-1.601h-3.136l-0.682,1.601H130.2L133.118,276.052z"}),wp.element.createElement("path",{d:"M138.632,276.099h1.165v5.571h3.486v1.061h-4.652V276.099z"}),wp.element.createElement("path",{d:"M144.875,276.099h1.165v5.571h3.486v1.061h-4.652V276.099z"}),wp.element.createElement("path",{d:"M151.119,276.099h4.917v1.042h-3.752v1.724h3.325v1.042h-3.325v1.781h3.799v1.042h-4.964V276.099z"}),wp.element.createElement("path",{d:"M160.716,279.387c0.417,0,0.748-0.099,0.995-0.298c0.246-0.199,0.37-0.469,0.37-0.81v-0.019 c0-0.36-0.12-0.633-0.36-0.82c-0.24-0.186-0.578-0.279-1.014-0.279h-1.696v2.226H160.716z M157.845,276.099h2.956 c0.417,0,0.786,0.058,1.108,0.175c0.322,0.117,0.591,0.279,0.805,0.488c0.177,0.183,0.313,0.395,0.407,0.635 c0.095,0.24,0.142,0.505,0.142,0.796v0.019c0,0.272-0.039,0.516-0.118,0.734c-0.079,0.218-0.188,0.411-0.327,0.578 c-0.139,0.167-0.305,0.309-0.497,0.426s-0.406,0.207-0.64,0.27l1.791,2.511h-1.374l-1.63-2.312h-0.019h-1.44v2.312h-1.165V276.099 z"}),wp.element.createElement("path",{d:"M167.026,280.116l-2.634-4.017h1.374l1.857,2.937l1.876-2.937h1.336l-2.634,3.989v2.643h-1.175 V280.116z"}))));function Lr(e){return(Lr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Rr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Br(e,t){return!t||"object"!==Lr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Vr(e){return(Vr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Nr(e,t){return(Nr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Ur=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Br(this,Vr(t).apply(this,arguments))}var n,r,o;return 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&&Nr(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){return wp.element.createElement(zt.Placeholder,{key:"placeholder",className:"envira-block__placeholder"},wp.element.createElement("div",{className:"envira-block__placeholder-brand"},Tr),wp.element.createElement("div",{className:"envira-block-instructions"},wp.element.createElement("p",null,Object(s.__)("Drop your images here, upload new images, select images from your Media Library or select an existing gallery."))),wp.element.createElement("div",{className:"envira-block-select"},wp.element.createElement(en,{clientId:this.props.clientId,placeholder:Object(s.__)("Search for a gallery.")})),wp.element.createElement(Ut.MediaUploadCheck,null,wp.element.createElement(zt.DropZone,{onFilesDrop:this.props.onFilesUpload}),wp.element.createElement(zt.FormFileUpload,{isLarge:!0,className:"editor-media-placeholder__button",onChange:this.props.onUpload,accept:!1,multiple:!0},Object(s.__)("Upload")),wp.element.createElement(Ut.MediaUpload,{multiple:!0,onSelect:this.props.onSelect,value:{}.id,render:function(e){var t=e.open;return wp.element.createElement(zt.Button,{isLarge:!0,className:"editor-media-placeholder__button",onClick:t},Object(s.__)("Media Library"))}})))}}])&&Rr(n.prototype,r),o&&Rr(n,o),t}(o.Component),zr=Object(l.compose)([Object(u.withSelect)((function(e){return{pageTitle:(0,e("core/editor").getEditedPostAttribute)("title")}})),Object(u.withDispatch)((function(e,t){var n=t.clientId;return{setGallery:function(t){e("core/block-editor").updateBlockAttributes(n,{galleryId:t})}}}))])(Ur),Hr=n(14),Wr=function(e){var t=Object(Hr.pick)(e,["alt","id","link","caption","media_details"]);return t.src=Object(Hr.get)(e,["sizes","large","url"])||Object(Hr.get)(e,["media_details","sizes","large","source_url"])||e.url,t.media_details&&(t.height=t.media_details.height,t.width=t.media_details.width),t};function Gr(e){return(Gr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qr(){return(qr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function $r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Yr(e){return(Yr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Xr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zr(e,t){return(Zr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Kr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Jr=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==Gr(t)&&"function"!=typeof t?Xr(e):t}(this,Yr(t).apply(this,arguments)),Kr(Xr(n),"getActiveGallery",(function(e){return null==e?null:a()({path:"/wp/v2/envira-gallery/"+e}).then((function(e){return e})).then((function(e){return n.props.setAttributes({title:e.gallery_data.config.title,images:e.gallery_data.gallery,columns:e.gallery_data.config.columns,row_height:e.gallery_data.config.justified_row_height,lazyload_enabled:e.gallery_data.config.lazy_loading,lightbox_enabled:e.gallery_data.config.lightbox_enabled,lightbox_theme:e.gallery_data.config.lightbox_theme}),e.gallery_data}))})),Kr(Xr(n),"onUpload",(function(e){n.onFilesUpload(e.target.files)})),Kr(Xr(n),"onSelect",(function(e){var t=n.props.attributes,r=e.map(Wr);null===t.galleryId?n.createGallery(r):n.updateGallery(r)})),Kr(Xr(n),"onFilesUpload",(function(e){var t=n.props,r=t.setAttributes,o=t.attributes,i=o.images;n.setState({progress:0,isLoadingImages:!0});var a,u=e.length,s=i;Object(c.mediaUpload)({allowedTypes:["image"],filesList:e,onFileChange:function(e){var t=e.filter((function(e){return Object(p.isBlobURL)(e.url)}));if(0===parseInt(o.columns)){var i=e.filter((function(e){return!0!==Object(p.isBlobURL)(e.url)})),l=(a=i.map(Wr)).length/u*100;n.setState({progress:l,isLoadingImages:!0})}else a=e.map(Wr);if(s){envira_args.media_position;var c=s.concat(a);r({images:c})}else r({images:a});void 0!==t&&0!==t.length||(n.setState({isLoadingImages:!1,progress:0}),null===o.galleryId?n.createGallery(a):n.updateGallery(a))}})})),Kr(Xr(n),"updateGallery",(function(e){var t=n.props.attributes,r={gallery_data:{gallery:e}};return a()({path:"/wp/v2/envira-gallery/".concat(t.galleryId),method:"PUT",data:r}).then((function(e){return e})).then((function(e){return n.props.setAttributes({images:e.gallery_data.gallery}),e}))})),n.state={progress:0,isLoadingImages:!1},n}var n,r,i;return 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&&Zr(e,t)}(t,e),n=t,(r=[{key:"componentDidMount",value:function(){this._mounted=!0,null!==this.props.attributes.galleryId&&this.getActiveGallery(this.props.attributes.galleryId)}},{key:"componentWillUnmount",value:function(){this._mounted=!1}},{key:"componentDidUpdate",value:function(e){var t=this.props.attributes.galleryId;this.props.isSelected||this.props.setAttributes({selectedImage:null}),e.attributes.galleryId!=t&&this.getActiveGallery(t)}},{key:"createGallery",value:function(e){var t=this,n={title:this.props.pageTitle,status:"publish",gallery_data:{gallery:e}};return a()({path:"/wp/v2/envira-gallery",method:"POST",data:n}).then((function(e){return e})).then((function(e){return t.props.setGallery(e.id),e}))}},{key:"renderToolbar",value:function(){return wp.element.createElement(pn,qr({onSelect:this.onSelect},this.props))}},{key:"renderControls",value:function(){return wp.element.createElement(cn,this.props)}},{key:"renderBlock",value:function(){var e,t=this.props,n=t.clientId,r=t.attributes,i=r.galleryId,a=r.isLoading,u=r.images,s=this.state,l=s.isLoadingImages,c=s.progress;return l&&(e=wp.element.createElement(f.Progress,{percent:c,status:"success"})),a?wp.element.createElement(xr,null):null===i?wp.element.createElement(o.Fragment,null,e,wp.element.createElement(zr,{onFilesUpload:this.onFilesUpload,onUpload:this.onUpload,onSelect:this.onSelect,clientId:n})):wp.element.createElement(o.Fragment,null,e,wp.element.createElement(Mr,qr({onFilesUpload:this.onFilesUpload,onUpload:this.onUpload,onSelect:this.onSelect,images:u},this.props)))}},{key:"render",value:function(){return wp.element.createElement(o.Fragment,null,wp.element.createElement(vn,this.props),this.renderToolbar(),this.renderControls(),this.renderBlock())}}])&&$r(n.prototype,r),i&&$r(n,i),t}(o.Component),Qr=Object(l.compose)([Object(u.withSelect)((function(e){return{pageTitle:(0,e("core/editor").getEditedPostAttribute)("title")}})),Object(u.withDispatch)((function(e,t){var n=t.clientId;return{setGallery:function(t){e("core/block-editor").updateBlockAttributes(n,{galleryId:t})}}}))])(Jr);var eo,to,no,ro=wp.element.createElement("svg",(no="0 0 448 512",(to="viewBox")in(eo={width:"20px",height:"20px",viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg"})?Object.defineProperty(eo,to,{value:no,enumerable:!0,configurable:!0,writable:!0}):eo[to]=no,eo),wp.element.createElement("path",{fill:"#7abd4e",d:"M0 32c477.6 0 366.6 317.3 367.1 366.3L448 480h-26l-70.4-71.2c-39 4.2-124.4 34.5-214.4-37C47 300.3 52 214.7 0 32zm79.7 46c-49.7-23.5-5.2 9.2-5.2 9.2 45.2 31.2 66 73.7 90.2 119.9 31.5 60.2 79 139.7 144.2 167.7 65 28 34.2 12.5 6-8.5-28.2-21.2-68.2-87-91-130.2-31.7-60-61-118.6-144.2-158.1z"})),oo={id:"envira-gallery",title:Object(s.__)("Envira Gallery"),description:Object(s.__)("Select a gallery below to add it to your page."),icon:ro,category:"common",keywords:[Object(s.__)("Envira Gallery"),Object(s.__)("Photo"),Object(s.__)("Image")],supports:{align:["wide","full"]},attributes:{galleryId:{type:"int",default:null},title:{type:"string",default:""},columns:{type:"string",default:0},row_height:{type:"string",default:100},margins:{type:"string",default:1},custom_margins:{type:"string",default:1},lightbox_enabled:{type:"boolean",default:!0},lazyload_enabled:{type:"boolean",default:!0},titles_enabled:{type:"boolean",default:!0},captions_enabled:{type:"boolean",default:!0},isotope:{type:"boolean",default:!0},sort_order:{type:"string",default:""},lightbox_theme:{type:"string",default:"base_dark"},editMode:{type:"boolean",default:!1},isLoading:{type:"boolean",default:!1},selectedImage:{type:"string",default:null},images:{type:"array",default:[]}},edit:Qr,save:function(e){var t=e.attributes.galleryId,n="[envira-gallery id='".concat(t,"']");return t?wp.element.createElement(o.RawHTML,null,n):null}};n(30);Object(r.registerBlockType)("envira/envira-gallery",oo)}]);
1
+ /*! For license information please see envira-gutenberg.js.LICENSE.txt */
2
+ (()=>{var e={184:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var s in n)r.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},90:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(81),o=n.n(r),i=n(645),a=n.n(i)()(o());a.push([e.id,".envira-uploader{width:100%;display:flex;align-items:center;justify-content:center;background-color:#f7f7f7;min-height:100px}.envira-uploader .envira-media__button{border-radius:0;border:none;box-shadow:none !important;display:flex;flex-direction:column;justify-content:center;min-height:80px;width:95px;padding:0 !important;margin-right:20px}.envira-uploader .envira-media__button .dashicons-plus{margin-top:5px;margin-bottom:5px}.envira-uploader .envira-media__button .dashicons-format-gallery{margin-bottom:10px}.envira-uploader .envira-media__button:hover,.envira-uploader .envira-media__button:focus{border:1px solid #c8c8c8}.envira-uploader .components-button.has-icon.has-text .dashicon{margin-right:0}",""]);const s=a},225:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(81),o=n.n(r),i=n(645),a=n.n(i)()(o());a.push([e.id,".envira-isLoading{width:100%;height:100%;display:flex;justify-content:center;align-items:center;position:relative}.envira-loading{display:inline-block;position:relative;width:64px;height:64px}.envira-loading.grey{background:#7cc048}.envira-loading div{position:absolute;top:27px;width:11px;height:11px;border-radius:50%;background:#7cc048 !important;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.envira-loading div:nth-child(1){left:6px;animation:enviraLoading1 .6s infinite}.envira-loading div:nth-child(2){left:6px;animation:enviraLoading2 .6s infinite}.envira-loading div:nth-child(3){left:26px;animation:enviraLoading2 .6s infinite}.envira-loading div:nth-child(4){left:45px;animation:enviraLoading3 .6s infinite}@keyframes enviraLoading1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes enviraLoading3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes enviraLoading2{0%{transform:translate(0, 0)}100%{transform:translate(19px, 0)}}",""]);const s=a},106:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(81),o=n.n(r),i=n(645),a=n.n(i)()(o());a.push([e.id,'.envira-block-select{width:100%;padding:20px 0}.EnviraClear{width:100%}.envira-inspector-panelbody .envira-heading{margin-top:20px;margin-bottom:10px}.envira-inspector-panelbody .components-button.envira-button{margin-top:20px;color:#323232;border-color:#c8c8c8}.envira-inspector-panelbody .components-button.envira-button:hover{color:#505050;border-color:#c8c8c8}#envira-pro-control{padding:10px 0;font-size:16px}.envira-block-instructions p{font-size:16px !important}.envira-gallery-item.isSelected{border:5px solid #007eb1}.block-editor__container .envira-gallery-justified img,.block-editor__container .react-photo-gallery--gallery img{height:none !important;height:min-intrinsic !important;object-fit:contain}.envira-gallery-isotope img{width:100%}.envira-gallery-wrap{width:100%;margin:0 auto 20px auto;line-height:0 !important}.envira-gallery-wrap>.envira-gallery-public{width:100%;margin:0 auto 20px auto;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.envira-gallery-wrap>.envira-gallery-public.envira-clear{clear:both}.envira-gallery-wrap>.envira-gallery-public.envira-clear:after{clear:both;content:".";display:block;height:0;line-height:0;overflow:auto;visibility:hidden;zoom:1}.envira-gallery-wrap>.envira-gallery-public .envira-gallery-item-inner{position:relative}.envira-gallery-wrap>.envira-gallery-public .envira-gallery-item{float:left}.envira-gallery-wrap>.envira-gallery-public .envira-gallery-item img{float:none;display:block;margin:0 auto;padding:0;width:100%;max-width:100%}.envira-gallery-wrap>.envira-gallery-public.envira-gallery-1-columns .envira-gallery-item{clear:both;width:100%}.envira-gallery-wrap>.envira-gallery-public.envira-gallery-2-columns .envira-gallery-item{width:50%}.envira-gallery-wrap>.envira-gallery-public.envira-gallery-2-columns .envira-gallery-item:nth-child(2n+1){clear:both}.envira-gallery-wrap>.envira-gallery-public.envira-gallery-3-columns .envira-gallery-item{width:33.33%}.envira-gallery-wrap>.envira-gallery-public.envira-gallery-3-columns .envira-gallery-item:nth-child(3n+1){clear:both}.envira-gallery-wrap>.envira-gallery-public.envira-gallery-4-columns .envira-gallery-item{width:25%;margin:0;padding:0;box-sizing:border-box}.envira-gallery-wrap>.envira-gallery-public.envira-gallery-4-columns .envira-gallery-item:nth-child(4n+1){clear:both}.envira-gallery-wrap>.envira-gallery-public.envira-gallery-5-columns .envira-gallery-item{width:20%}.envira-gallery-wrap>.envira-gallery-public.envira-gallery-5-columns .envira-gallery-item:nth-child(5n+1){clear:both}.envira-gallery-wrap>.envira-gallery-public.envira-gallery-6-columns .envira-gallery-item{width:16.66%}.envira-gallery-wrap>.envira-gallery-public.envira-gallery-6-columns .envira-gallery-item:nth-child(6n+1){clear:both}.envira-gallery-wrap>.envira-gallery-public.enviratope .envira-gallery-item{clear:none !important}',""]);const s=a},591:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(81),o=n.n(r),i=n(645),a=n.n(i)()(o());a.push([e.id,'.react-sweet-progress{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%}.react-sweet-progress-symbol{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start;width:35px;height:20px;padding-left:10px;color:rgba(0,0,0,.7);font-weight:200}.react-sweet-progress-symbol-absolute{display:-ms-flexbox;display:flex;position:absolute;top:50%;left:50%;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;transform:translate3d(-50%, -50%, 0)}.react-sweet-progress-symbol-absolute .react-sweet-progress-symbol{padding:0;width:100%}.react-sweet-progress-circle-outer{position:relative;display:inline-block;vertical-align:middle}.react-sweet-progress-line{width:100%;border-radius:100px;background-color:#efefef;vertical-align:middle}.react-sweet-progress-line-inner{position:relative;min-height:10px;border-radius:100px;transition:width .3s ease}.react-sweet-progress-line-inner-status-active:before{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:10px;background:#fff;animation:active-anim 2s cubic-bezier(0.25, 1, 0.6, 1) infinite;content:"";opacity:0}@keyframes active-anim{0%{width:0;opacity:.1}20%{width:0;opacity:.5}to{width:100%;opacity:0}}.react-sweet-progress-circle path{stroke-linecap:round}',""]);const s=a},645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);r&&a[u[0]]||(void 0!==i&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),t.push(u))}},t}},81:e=>{"use strict";e.exports=function(e){return e[1]}},679:(e,t,n)=>{"use strict";var r=n(864),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=d(n);o&&o!==h&&e(t,o,r)}var a=u(n);p&&(a=a.concat(p(n)));for(var s=l(t),m=l(n),g=0;g<a.length;++g){var v=a[g];if(!(i[v]||r&&r[v]||m&&m[v]||s&&s[v])){var b=f(n,v);try{c(t,v,b)}catch(e){}}}}return t}},703:(e,t,n)=>{"use strict";var r=n(414);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=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 s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint: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:i,resetWarningCache:o};return n.PropTypes=n,n}},697:(e,t,n)=>{e.exports=n(703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},921:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,d=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function O(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case p:case i:case s:case a:case d:return e;default:switch(e=e&&e.$$typeof){case c:case f:case g:case m:case l:return e;default:return t}}case o:return t}}}function _(e){return O(e)===p}t.AsyncMode=u,t.ConcurrentMode=p,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=d,t.isAsyncMode=function(e){return _(e)||O(e)===u},t.isConcurrentMode=_,t.isContextConsumer=function(e){return O(e)===c},t.isContextProvider=function(e){return O(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return O(e)===f},t.isFragment=function(e){return O(e)===i},t.isLazy=function(e){return O(e)===g},t.isMemo=function(e){return O(e)===m},t.isPortal=function(e){return O(e)===o},t.isProfiler=function(e){return O(e)===s},t.isStrictMode=function(e){return O(e)===a},t.isSuspense=function(e){return O(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===p||e===s||e===a||e===d||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===f||e.$$typeof===b||e.$$typeof===y||e.$$typeof===w||e.$$typeof===v)},t.typeOf=O},864:(e,t,n)=>{"use strict";e.exports=n(921)},305:function(e,t,n){var r;e.exports=(r=n(196),function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=11)}([function(e,t,n){var r;!function(){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)&&r.length){var a=n.apply(null,r);a&&e.push(a)}else if("object"===i)for(var s in r)o.call(r,s)&&r[s]&&e.push(s)}}return e.join(" ")}var o={}.hasOwnProperty;void 0!==e&&e.exports?(n.default=n,e.exports=n):void 0!==(r=function(){return n}.apply(t,[]))&&(e.exports=r)}()},function(e,t){e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Progress=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(8));t.Progress=r.default},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var o,i=(t.prefixClass="react-sweet-progress",t.DEFAULT_TRAIL_COLOR="#efefef",t.STATUSES={ACTIVE:"active",SUCCESS:"success",ERROR:"error",DEFAULT:"default"});t.COLOR_MAP=(r(o={},i.ACTIVE,"#138ce4"),r(o,i.SUCCESS,"#049e51"),r(o,i.ERROR,"#e23f33"),o)},function(e,t){e.exports={"react-sweet-progress-line":"react-sweet-progress-line","react-sweet-progress-line-inner":"react-sweet-progress-line-inner","react-sweet-progress-line-inner-status-active":"react-sweet-progress-line-inner-status-active","active-anim":"active-anim"}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var s in i)void 0===n[s]&&(n[s]=i[s]);else n||(n=i||{});if(1===a)n.children=o;else if(a>1){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+3];n.children=l}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(1),u=r(c),p=r(n(0)),f=r(n(9)),d=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),l(t,[{key:"getPathStyles",value:function(){var e=this.props,t=(e.prefixClass,e.percent),n=e.strokeWidth,r=e.gapDegree,o=void 0===r?0:r,i=(e.gapPosition,50-n/2),a=-2*i,s="M 50,50 m 0,"+-i+"\n a "+i+","+i+" 0 1 1 0,"+-a+"\n a "+i+","+i+" 0 1 1 0,"+a,l=2*Math.PI*i;return{pathString:s,trailPathStyle:{strokeDasharray:l-o+"px "+l+"px",strokeDashoffset:"-"+o/2+"px",transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s"},strokePathStyle:{strokeDasharray:t/100*(l-o)+"px "+l+"px",strokeDashoffset:"-"+o/2+"px",transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s"}}}},{key:"render",value:function(){var e=this,t=this.props,n=t.prefixClass,r=t.strokeWidth,o=t.strokeColor,i=t.trailColor,l=t.style,c=t.className,d=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["prefixClass","strokeWidth","strokeColor","trailColor","style","className"]),h=(0,p.default)(f.default[n+"-circle"],c),m=this.getPathStyles(),g=m.pathString,v=m.trailPathStyle,b=m.strokePathStyle;return delete d.percent,delete d.gapDegree,delete d.gapPosition,u.default.createElement("svg",a({className:h,viewBox:"0 0 100 100",style:l},d),s("path",{d:g,stroke:i,strokeWidth:r,fillOpacity:"0",style:v}),u.default.createElement("path",{d:g,stroke:o,strokeWidth:r,fillOpacity:"0",ref:function(t){e.path=t},style:b}))}}]),t}(c.Component);t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var s in i)void 0===n[s]&&(n[s]=i[s]);else n||(n=i||{});if(1===a)n.children=o;else if(a>1){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+3];n.children=l}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(1),c=(r(l),n(0)),u=(r(c),n(4)),p=(r(u),function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),s(t,[{key:"render",value:function(){var e=this.props.size?{width:this.props.size,height:this.props.size}:{width:"20px",height:"20px"};switch(this.props.name){case"success":return a("svg",{version:"1.1",viewBox:"0 0 512 512",style:e},void 0,a("path",{fill:"#049e51",d:"M489,255.9c0-0.2,0-0.5,0-0.7c0-1.6,0-3.2-0.1-4.7c0-0.9-0.1-1.8-0.1-2.8c0-0.9-0.1-1.8-0.1-2.7 c-0.1-1.1-0.1-2.2-0.2-3.3c0-0.7-0.1-1.4-0.1-2.1c-0.1-1.2-0.2-2.4-0.3-3.6c0-0.5-0.1-1.1-0.1-1.6c-0.1-1.3-0.3-2.6-0.4-4 c0-0.3-0.1-0.7-0.1-1C474.3,113.2,375.7,22.9,256,22.9S37.7,113.2,24.5,229.5c0,0.3-0.1,0.7-0.1,1c-0.1,1.3-0.3,2.6-0.4,4 c-0.1,0.5-0.1,1.1-0.1,1.6c-0.1,1.2-0.2,2.4-0.3,3.6c0,0.7-0.1,1.4-0.1,2.1c-0.1,1.1-0.1,2.2-0.2,3.3c0,0.9-0.1,1.8-0.1,2.7 c0,0.9-0.1,1.8-0.1,2.8c0,1.6-0.1,3.2-0.1,4.7c0,0.2,0,0.5,0,0.7c0,0,0,0,0,0.1s0,0,0,0.1c0,0.2,0,0.5,0,0.7c0,1.6,0,3.2,0.1,4.7 c0,0.9,0.1,1.8,0.1,2.8c0,0.9,0.1,1.8,0.1,2.7c0.1,1.1,0.1,2.2,0.2,3.3c0,0.7,0.1,1.4,0.1,2.1c0.1,1.2,0.2,2.4,0.3,3.6 c0,0.5,0.1,1.1,0.1,1.6c0.1,1.3,0.3,2.6,0.4,4c0,0.3,0.1,0.7,0.1,1C37.7,398.8,136.3,489.1,256,489.1s218.3-90.3,231.5-206.5 c0-0.3,0.1-0.7,0.1-1c0.1-1.3,0.3-2.6,0.4-4c0.1-0.5,0.1-1.1,0.1-1.6c0.1-1.2,0.2-2.4,0.3-3.6c0-0.7,0.1-1.4,0.1-2.1 c0.1-1.1,0.1-2.2,0.2-3.3c0-0.9,0.1-1.8,0.1-2.7c0-0.9,0.1-1.8,0.1-2.8c0-1.6,0.1-3.2,0.1-4.7c0-0.2,0-0.5,0-0.7 C489,256,489,256,489,255.9C489,256,489,256,489,255.9z",id:"XMLID_3_"}),a("g",{fill:"none",stroke:"#FFFFFF",strokeWidth:30,strokeMiterlimit:10},void 0,a("line",{x1:"213.6",x2:"369.7",y1:"344.2",y2:"188.2"}),a("line",{x1:"233.8",x2:"154.7",y1:"345.2",y2:"266.1"})));case"error":return a("svg",{version:"1.1",viewBox:"0 0 50 50",style:e},void 0,a("circle",{fill:"#e23f33",cx:"25",cy:"25",r:"25"}),a("polyline",{fill:"none",stroke:"#FFFFFF",strokeWidth:3,strokeLinecap:"round",strokeMiterlimit:10,points:"16,34 25,25 34,16"}),a("polyline",{fill:"none",stroke:"#FFFFFF",strokeWidth:3,strokeLinecap:"round",strokeMiterlimit:10,points:"16,16 25,25 34,34"}));default:return null}}}]),t}(l.Component));t.default=p},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var s in i)void 0===n[s]&&(n[s]=i[s]);else n||(n=i||{});if(1===a)n.children=o;else if(a>1){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+3];n.children=l}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),i=(r(n(1)),n(0)),a=r(i),s=r((n(3),n(4)));t.default=function(e){var t=e.prefixClass,n=e.percent,r=e.className,i=e.status,l=e.background,c=e.trailColor,u=(0,a.default)(s.default[t+"-line"],r),p=(0,a.default)(s.default[t+"-line-inner"],function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},s.default[t+"-line-inner-status-"+i],!!i));return o("div",{className:u,style:{backgroundColor:c}},void 0,o("div",{className:p,style:{width:n+"%",backgroundColor:l}}))}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var s in i)void 0===n[s]&&(n[s]=i[s]);else n||(n=i||{});if(1===a)n.children=o;else if(a>1){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+3];n.children=l}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(1),l=(r(s),n(0)),c=r(l),u=n(3),p=r(n(10)),f=r(n(7)),d=r(n(5)),h=r(n(6)),m=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={status:e.status||u.STATUSES.ACTIVE},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"getSymbolByStatus",value:function(e,t){switch(e){case u.STATUSES.SUCCESS:return i(h.default,{name:"success",size:t});case u.STATUSES.ERROR:return i(h.default,{name:"error",size:t});default:return this.props.percent+"%"}}},{key:"render",value:function(){var e,t=this.props,n=t.percent,r=t.status,a=t.theme,s=t.style,l=t.className,h=t.symbolClassName,m=t.type,g=t.width,v=t.strokeWidth;e=0===n?u.STATUSES.DEFAULT:n>=100&&!r?u.STATUSES.SUCCESS:r||u.STATUSES.ACTIVE;var b=a&&a[e],y=b?b.color:u.COLOR_MAP[e],w=b?b.trailColor:u.DEFAULT_TRAIL_COLOR;if("circle"===m){var O=g||132,_=.16*O+6,S=1.25*_,x=b&&b.symbol||this.getSymbolByStatus(e,S),E=o({width:O,height:O,fontSize:_},s),k=v||6;return i("div",{className:u.prefixClass+"-circle-outer",style:E},void 0,i(d.default,{percent:n,strokeWidth:k,strokeColor:y,trailColor:w,prefixClass:u.prefixClass,gapDegree:0,gapPosition:"top"}),i("div",{className:p.default[u.prefixClass+"-symbol-absolute"]},void 0,i("div",{className:(0,c.default)(p.default[u.prefixClass+"-symbol"],h)},void 0,x)))}var C=b&&b.symbol||this.getSymbolByStatus(e);return i("div",{className:(0,c.default)(p.default[""+u.prefixClass],l),style:s},void 0,i(f.default,{prefixClass:u.prefixClass,percent:n,status:e,background:y,trailColor:w}),i("div",{className:(0,c.default)(p.default[u.prefixClass+"-symbol"],h)},void 0,C))}}]),t}(s.Component);m.defaultProps={percent:0},t.default=m},function(e,t){e.exports={"react-sweet-progress-circle":"react-sweet-progress-circle"}},function(e,t){e.exports={"react-sweet-progress":"react-sweet-progress","react-sweet-progress-symbol":"react-sweet-progress-symbol","react-sweet-progress-symbol-absolute":"react-sweet-progress-symbol-absolute","react-sweet-progress-circle-outer":"react-sweet-progress-circle-outer"}},function(e,t,n){n(2),e.exports=n(2)}]))},379:e=>{"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var i={},a=[],s=0;s<e.length;s++){var l=e[s],c=r.base?l[0]+r.base:l[0],u=i[c]||0,p="".concat(c," ").concat(u);i[c]=u+1;var f=n(p),d={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==f)t[f].references++,t[f].updater(d);else{var h=o(d,r);r.byIndex=s,t.splice(s,0,{identifier:p,updater:h,references:1})}a.push(p)}return a}function o(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var i=r(e=e||[],o=o||{});return function(e){e=e||[];for(var a=0;a<i.length;a++){var s=n(i[a]);t[s].references--}for(var l=r(e,o),c=0;c<i.length;c++){var u=n(i[c]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}i=l}}},569:e=>{"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},565:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},795:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},196:e=>{"use strict";e.exports=window.React}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{"use strict";n.r(r);const e=window.wp.blocks,t=window.wp.element,o=window.wp.apiFetch;var i=n.n(o);const a=window.wp.data,s=window.wp.i18n,l=window.wp.compose,c=window.wp.editor,u=window.wp.blob;var p=n(305),f=n(379),d=n.n(f),h=n(795),m=n.n(h),g=n(569),v=n.n(g),b=n(565),y=n.n(b),w=n(216),O=n.n(w),_=n(589),S=n.n(_),x=n(591),E={};function k(){return k=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},k.apply(this,arguments)}E.styleTagTransform=S(),E.setAttributes=y(),E.insert=v().bind(null,"head"),E.domAPI=m(),E.insertStyleElement=O(),d()(x.Z,E),x.Z&&x.Z.locals&&x.Z.locals;var C=n(196),P=n.n(C),I=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),j=Math.abs,M=String.fromCharCode,R=Object.assign;function T(e){return e.trim()}function A(e,t,n){return e.replace(t,n)}function L(e,t){return e.indexOf(t)}function D(e,t){return 0|e.charCodeAt(t)}function F(e,t,n){return e.slice(t,n)}function V(e){return e.length}function N(e){return e.length}function U(e,t){return t.push(e),e}var B=1,z=1,H=0,$=0,G=0,W="";function Z(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:B,column:z,length:a,return:""}}function q(e,t){return R(Z("",null,null,"",null,null,0),e,{length:-e.length},t)}function Y(){return G=$>0?D(W,--$):0,z--,10===G&&(z=1,B--),G}function X(){return G=$<H?D(W,$++):0,z++,10===G&&(z=1,B++),G}function K(){return D(W,$)}function J(){return $}function Q(e,t){return F(W,e,t)}function ee(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function te(e){return B=z=1,H=V(W=e),$=0,[]}function ne(e){return W="",e}function re(e){return T(Q($-1,ae(91===e?e+2:40===e?e+1:e)))}function oe(e){for(;(G=K())&&G<33;)X();return ee(e)>2||ee(G)>3?"":" "}function ie(e,t){for(;--t&&X()&&!(G<48||G>102||G>57&&G<65||G>70&&G<97););return Q(e,J()+(t<6&&32==K()&&32==X()))}function ae(e){for(;X();)switch(G){case e:return $;case 34:case 39:34!==e&&39!==e&&ae(G);break;case 40:41===e&&ae(e);break;case 92:X()}return $}function se(e,t){for(;X()&&e+G!==57&&(e+G!==84||47!==K()););return"/*"+Q(t,$-1)+"*"+M(47===e?e:X())}function le(e){for(;!ee(K());)X();return Q(e,$)}var ce="-ms-",ue="-moz-",pe="-webkit-",fe="comm",de="rule",he="decl",me="@keyframes";function ge(e,t){for(var n="",r=N(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function ve(e,t,n,r){switch(e.type){case"@import":case he:return e.return=e.return||e.value;case fe:return"";case me:return e.return=e.value+"{"+ge(e.children,r)+"}";case de:e.value=e.props.join(",")}return V(n=ge(e.children,r))?e.return=e.value+"{"+n+"}":""}function be(e,t){switch(function(e,t){return(((t<<2^D(e,0))<<2^D(e,1))<<2^D(e,2))<<2^D(e,3)}(e,t)){case 5103:return pe+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return pe+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return pe+e+ue+e+ce+e+e;case 6828:case 4268:return pe+e+ce+e+e;case 6165:return pe+e+ce+"flex-"+e+e;case 5187:return pe+e+A(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return pe+e+ce+"flex-item-"+A(e,/flex-|-self/,"")+e;case 4675:return pe+e+ce+"flex-line-pack"+A(e,/align-content|flex-|-self/,"")+e;case 5548:return pe+e+ce+A(e,"shrink","negative")+e;case 5292:return pe+e+ce+A(e,"basis","preferred-size")+e;case 6060:return pe+"box-"+A(e,"-grow","")+pe+e+ce+A(e,"grow","positive")+e;case 4554:return pe+A(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return A(A(A(e,/(zoom-|grab)/,pe+"$1"),/(image-set)/,pe+"$1"),e,"")+e;case 5495:case 3959:return A(e,/(image-set\([^]*)/,pe+"$1$`$1");case 4968:return A(A(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+pe+e+e;case 4095:case 3583:case 4068:case 2532:return A(e,/(.+)-inline(.+)/,pe+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(V(e)-1-t>6)switch(D(e,t+1)){case 109:if(45!==D(e,t+4))break;case 102:return A(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+ue+(108==D(e,t+3)?"$3":"$2-$3"))+e;case 115:return~L(e,"stretch")?be(A(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==D(e,t+1))break;case 6444:switch(D(e,V(e)-3-(~L(e,"!important")&&10))){case 107:return A(e,":",":"+pe)+e;case 101:return A(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+pe+(45===D(e,14)?"inline-":"")+"box$3$1"+pe+"$2$3$1"+ce+"$2box$3")+e}break;case 5936:switch(D(e,t+11)){case 114:return pe+e+ce+A(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return pe+e+ce+A(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return pe+e+ce+A(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return pe+e+ce+e+e}return e}function ye(e){return ne(we("",null,null,null,[""],e=te(e),0,[0],e))}function we(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,p=a,f=0,d=0,h=0,m=1,g=1,v=1,b=0,y="",w=o,O=i,_=r,S=y;g;)switch(h=b,b=X()){case 40:if(108!=h&&58==S.charCodeAt(p-1)){-1!=L(S+=A(re(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:S+=re(b);break;case 9:case 10:case 13:case 32:S+=oe(h);break;case 92:S+=ie(J()-1,7);continue;case 47:switch(K()){case 42:case 47:U(_e(se(X(),J()),t,n),l);break;default:S+="/"}break;case 123*m:s[c++]=V(S)*v;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:d>0&&V(S)-p&&U(d>32?Se(S+";",r,n,p-1):Se(A(S," ","")+";",r,n,p-2),l);break;case 59:S+=";";default:if(U(_=Oe(S,t,n,c,u,o,s,y,w=[],O=[],p),i),123===b)if(0===u)we(S,t,_,_,w,i,p,s,O);else switch(f){case 100:case 109:case 115:we(e,_,_,r&&U(Oe(e,_,_,0,0,o,s,y,o,w=[],p),O),o,O,p,s,r?w:O);break;default:we(S,_,_,_,[""],O,0,s,O)}}c=u=d=0,m=v=1,y=S="",p=a;break;case 58:p=1+V(S),d=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==Y())continue;switch(S+=M(b),b*m){case 38:v=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(V(S)-1)*v,v=1;break;case 64:45===K()&&(S+=re(X())),f=K(),u=p=V(y=S+=le(J())),b++;break;case 45:45===h&&2==V(S)&&(m=0)}}return i}function Oe(e,t,n,r,o,i,a,s,l,c,u){for(var p=o-1,f=0===o?i:[""],d=N(f),h=0,m=0,g=0;h<r;++h)for(var v=0,b=F(e,p+1,p=j(m=a[h])),y=e;v<d;++v)(y=T(m>0?f[v]+" "+b:A(b,/&\f/g,f[v])))&&(l[g++]=y);return Z(e,t,n,0===o?de:s,l,c,u)}function _e(e,t,n){return Z(e,t,n,fe,M(G),F(e,2,-2),0)}function Se(e,t,n,r){return Z(e,t,n,he,F(e,0,r),F(e,r+1,-1),r)}var xe=function(e,t,n){for(var r=0,o=0;r=o,o=K(),38===r&&12===o&&(t[n]=1),!ee(o);)X();return Q(e,$)},Ee=new WeakMap,ke=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Ee.get(n))&&!r){Ee.set(e,!0);for(var o=[],i=function(e,t){return ne(function(e,t){var n=-1,r=44;do{switch(ee(r)){case 0:38===r&&12===K()&&(t[n]=1),e[n]+=xe($-1,t,n);break;case 2:e[n]+=re(r);break;case 4:if(44===r){e[++n]=58===K()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=M(r)}}while(r=X());return e}(te(e),t))}(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},Ce=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},Pe=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case he:e.return=be(e.value,e.length);break;case me:return ge([q(e,{value:A(e.value,"@","@"+pe)})],r);case de:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return ge([q(e,{props:[A(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return ge([q(e,{props:[A(t,/:(plac\w+)/,":-webkit-input-$1")]}),q(e,{props:[A(t,/:(plac\w+)/,":-moz-$1")]}),q(e,{props:[A(t,/:(plac\w+)/,ce+"input-$1")]})],r)}return""}))}}];const Ie=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,i=e.stylisPlugins||Pe,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var l,c,u,p,f=[ve,(p=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&p(e)})],d=(c=[ke,Ce].concat(i,f),u=N(c),function(e,t,n,r){for(var o="",i=0;i<u;i++)o+=c[i](e,t,n,r)||"";return o});o=function(e,t,n,r){l=n,ge(ye(e?e+"{"+t.styles+"}":t.styles),d),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new I({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return h.sheet.hydrate(s),h};function je(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var Me=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Re=function(e,t,n){Me(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};const Te=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},Ae={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var Le=/[A-Z]|^ms/g,De=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Fe=function(e){return 45===e.charCodeAt(1)},Ve=function(e){return null!=e&&"boolean"!=typeof e},Ne=function(e){var t=Object.create(null);return function(e){return void 0===t[e]&&(t[e]=Fe(n=e)?n:n.replace(Le,"-$&").toLowerCase()),t[e];var n}}(),Ue=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(De,(function(e,t,n){return ze={name:t,styles:n,next:ze},t}))}return 1===Ae[e]||Fe(e)||"number"!=typeof t||0===t?t:t+"px"};function Be(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return ze={name:n.name,styles:n.styles,next:ze},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)ze={name:r.name,styles:r.styles,next:ze},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Be(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":Ve(a)&&(r+=Ne(i)+":"+Ue(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=Be(e,t,a);switch(i){case"animation":case"animationName":r+=Ne(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var l=0;l<a.length;l++)Ve(a[l])&&(r+=Ne(i)+":"+Ue(i,a[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=ze,i=n(e);return ze=o,Be(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var ze,He=/label:\s*([^\s;\n{]+)\s*(;|$)/g,$e=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";ze=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=Be(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=Be(n,t,e[a]),r&&(o+=i[a]);He.lastIndex=0;for(var s,l="";null!==(s=He.exec(o));)l+="-"+s[1];return{name:Te(o)+l,styles:o,next:ze}},Ge={}.hasOwnProperty,We=(0,C.createContext)("undefined"!=typeof HTMLElement?Ie({key:"css"}):null),Ze=(We.Provider,function(e){return(0,C.forwardRef)((function(t,n){var r=(0,C.useContext)(We);return e(t,r,n)}))}),qe=(0,C.createContext)({}),Ye=C.useInsertionEffect?C.useInsertionEffect:function(e){e()};function Xe(e){Ye(e)}var Ke="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Je=function(e,t){var n={};for(var r in t)Ge.call(t,r)&&(n[r]=t[r]);return n[Ke]=e,n},Qe=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Me(t,n,r),Xe((function(){return Re(t,n,r)})),null},et=Ze((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[Ke],i=[r],a="";"string"==typeof e.className?a=je(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=$e(i,void 0,(0,C.useContext)(qe));a+=t.key+"-"+s.name;var l={};for(var c in e)Ge.call(e,c)&&"css"!==c&&c!==Ke&&(l[c]=e[c]);return l.ref=n,l.className=a,(0,C.createElement)(C.Fragment,null,(0,C.createElement)(Qe,{cache:t,serialized:s,isStringTag:"string"==typeof o}),(0,C.createElement)(o,l))}));n(679);var tt=function(e,t){var n=arguments;if(null==t||!Ge.call(t,"css"))return C.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=et,o[1]=Je(e,t);for(var i=2;i<r;i++)o[i]=n[i];return C.createElement.apply(null,o)};function nt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return $e(t)}C.useInsertionEffect?C.useInsertionEffect:C.useLayoutEffect;var rt=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var i=t[r];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))a=e(i);else for(var s in a="",i)i[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o};function ot(e,t,n){var r=[],o=je(e,r,n);return r.length<2?n:o+t(r)}var it=function(e){var t=e.cache,n=e.serializedArr;return Xe((function(){for(var e=0;e<n.length;e++)Re(t,n[e],!1)})),null},at=Ze((function(e,t){var n=[],r=function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];var i=$e(r,t.registered);return n.push(i),Me(t,i,!1),t.key+"-"+i.name},o={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return ot(t.registered,r,rt(n))},theme:(0,C.useContext)(qe)},i=e.children(o);return(0,C.createElement)(C.Fragment,null,(0,C.createElement)(it,{cache:t,serializedArr:n}),i)}));function st(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function lt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ct(e,t){if(e){if("string"==typeof e)return lt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lt(e,t):void 0}}function ut(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||ct(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pt(e){return pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pt(e)}function ft(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ht(e,t,n){return t&&dt(e.prototype,t),n&&dt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function mt(e,t){return mt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},mt(e,t)}function gt(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mt(e,t)}function vt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const bt=window.ReactDOM;function yt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ot(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wt(Object(n),!0).forEach((function(t){yt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _t(e){return _t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_t(e)}function St(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function xt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_t(e);if(t){var o=_t(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return St(this,n)}}var Et=["className","clearValue","cx","getStyles","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],kt=function(){};function Ct(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Pt(e,t,n){var r=[n];if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&r.push("".concat(Ct(e,o)));return r.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var It=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===pt(e)&&null!==e?[e]:[];var t},jt=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,Ot({},st(e,Et))};function Mt(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Rt(e){return Mt(e)?window.pageYOffset:e.scrollTop}function Tt(e,t){Mt(e)?window.scrollTo(0,t):e.scrollTop=t}function At(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function Lt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:kt,o=Rt(e),i=t-o,a=10,s=0;function l(){var t=At(s+=a,o,i,n);Tt(e,t),s<n?window.requestAnimationFrame(l):r(e)}l()}function Dt(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var Ft=!1,Vt={get passive(){return Ft=!0}},Nt="undefined"!=typeof window?window:{};Nt.addEventListener&&Nt.removeEventListener&&(Nt.addEventListener("p",kt,Vt),Nt.removeEventListener("p",kt,!1));var Ut=Ft;function Bt(e){return null!=e}function zt(e,t,n){return e?t:n}function Ht(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.theme.spacing,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var u=l.getBoundingClientRect().height,p=n.getBoundingClientRect(),f=p.bottom,d=p.height,h=p.top,m=n.offsetParent.getBoundingClientRect().top,g=window.innerHeight,v=Rt(l),b=parseInt(getComputedStyle(n).marginBottom,10),y=parseInt(getComputedStyle(n).marginTop,10),w=m-y,O=g-h,_=w+v,S=u-v-h,x=f-g+v+b,E=v+h-y,k=160;switch(o){case"auto":case"bottom":if(O>=d)return{placement:"bottom",maxHeight:t};if(S>=d&&!a)return i&&Lt(l,x,k),{placement:"bottom",maxHeight:t};if(!a&&S>=r||a&&O>=r)return i&&Lt(l,x,k),{placement:"bottom",maxHeight:a?O-b:S-b};if("auto"===o||a){var C=t,P=a?w:_;return P>=r&&(C=Math.min(P-b-s.controlHeight,t)),{placement:"top",maxHeight:C}}if("bottom"===o)return i&&Tt(l,x),{placement:"bottom",maxHeight:t};break;case"top":if(w>=d)return{placement:"top",maxHeight:t};if(_>=d&&!a)return i&&Lt(l,E,k),{placement:"top",maxHeight:t};if(!a&&_>=r||a&&w>=r){var I=t;return(!a&&_>=r||a&&w>=r)&&(I=a?w-y:_-y),i&&Lt(l,E,k),{placement:"top",maxHeight:I}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}var $t=function(e){return"auto"===e?"bottom":e},Gt=(0,C.createContext)({getPortalPlacement:null}),Wt=function(e){gt(n,e);var t=xt(n);function n(){var e;ft(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={maxHeight:e.props.maxMenuHeight,placement:null},e.context=void 0,e.getPlacement=function(t){var n=e.props,r=n.minMenuHeight,o=n.maxMenuHeight,i=n.menuPlacement,a=n.menuPosition,s=n.menuShouldScrollIntoView,l=n.theme;if(t){var c="fixed"===a,u=Ht({maxHeight:o,menuEl:t,minHeight:r,placement:i,shouldScroll:s&&!c,isFixedPosition:c,theme:l}),p=e.context.getPortalPlacement;p&&p(u),e.setState(u)}},e.getUpdatedProps=function(){var t=e.props.menuPlacement,n=e.state.placement||$t(t);return Ot(Ot({},e.props),{},{placement:n,maxHeight:e.state.maxHeight})},e}return ht(n,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),n}(C.Component);Wt.contextType=Gt;var Zt=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px"),textAlign:"center"}},qt=Zt,Yt=Zt,Xt=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return tt("div",k({css:o("noOptionsMessage",e),className:r({"menu-notice":!0,"menu-notice--no-options":!0},n)},i),t)};Xt.defaultProps={children:"No options"};var Kt=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return tt("div",k({css:o("loadingMessage",e),className:r({"menu-notice":!0,"menu-notice--loading":!0},n)},i),t)};Kt.defaultProps={children:"Loading..."};var Jt,Qt,en,tn=function(e){gt(n,e);var t=xt(n);function n(){var e;ft(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={placement:null},e.getPortalPlacement=function(t){var n=t.placement;n!==$t(e.props.menuPlacement)&&e.setState({placement:n})},e}return ht(n,[{key:"render",value:function(){var e=this.props,t=e.appendTo,n=e.children,r=e.className,o=e.controlElement,i=e.cx,a=e.innerProps,s=e.menuPlacement,l=e.menuPosition,c=e.getStyles,u="fixed"===l;if(!t&&!u||!o)return null;var p=this.state.placement||$t(s),f=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(o),d=u?0:window.pageYOffset,h=f[p]+d,m=tt("div",k({css:c("menuPortal",{offset:h,position:l,rect:f}),className:i({"menu-portal":!0},r)},a),n);return tt(Gt.Provider,{value:{getPortalPlacement:this.getPortalPlacement}},t?(0,bt.createPortal)(m,t):m)}}]),n}(C.Component),nn=["size"],rn={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},on=function(e){var t=e.size,n=st(e,nn);return tt("svg",k({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:rn},n))},an=function(e){return tt(on,k({size:20},e),tt("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},sn=function(e){return tt(on,k({size:20},e),tt("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},ln=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorContainer",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?o.neutral80:o.neutral40}}},cn=ln,un=ln,pn=function(){var e=nt.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(Jt||(Qt=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],en||(en=Qt.slice(0)),Jt=Object.freeze(Object.defineProperties(Qt,{raw:{value:Object.freeze(en)}})))),fn=function(e){var t=e.delay,n=e.offset;return tt("span",{css:nt({animation:"".concat(pn," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},dn=function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps,i=e.isRtl;return tt("div",k({css:r("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)},o),tt(fn,{delay:0,offset:i}),tt(fn,{delay:160,offset:!0}),tt(fn,{delay:320,offset:!i}))};dn.defaultProps={size:4};var hn=["data"],mn=["innerRef","isDisabled","isHidden","inputClassName"],gn={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},vn={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Ot({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},gn)},bn=function(e){return Ot({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},gn)},yn=function(e){var t=e.children,n=e.innerProps;return tt("div",n,t)},wn={ClearIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return tt("div",k({css:o("clearIndicator",e),className:r({indicator:!0,"clear-indicator":!0},n)},i),t||tt(an,null))},Control:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.className,i=e.isDisabled,a=e.isFocused,s=e.innerRef,l=e.innerProps,c=e.menuIsOpen;return tt("div",k({ref:s,css:r("control",e),className:n({control:!0,"control--is-disabled":i,"control--is-focused":a,"control--menu-is-open":c},o)},l),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return tt("div",k({css:o("dropdownIndicator",e),className:r({indicator:!0,"dropdown-indicator":!0},n)},i),t||tt(sn,null))},DownChevron:sn,CrossIcon:an,Group:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.Heading,a=e.headingProps,s=e.innerProps,l=e.label,c=e.theme,u=e.selectProps;return tt("div",k({css:o("group",e),className:r({group:!0},n)},s),tt(i,k({},a,{selectProps:u,theme:c,getStyles:o,cx:r}),l),tt("div",null,t))},GroupHeading:function(e){var t=e.getStyles,n=e.cx,r=e.className,o=jt(e);o.data;var i=st(o,hn);return tt("div",k({css:t("groupHeading",e),className:n({"group-heading":!0},r)},i))},IndicatorsContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.innerProps,i=e.getStyles;return tt("div",k({css:i("indicatorsContainer",e),className:r({indicators:!0},n)},o),t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps;return tt("span",k({},o,{css:r("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.value,i=jt(e),a=i.innerRef,s=i.isDisabled,l=i.isHidden,c=i.inputClassName,u=st(i,mn);return tt("div",{className:n({"input-container":!0},t),css:r("input",e),"data-value":o||""},tt("input",k({className:n({input:!0},c),ref:a,style:bn(l),disabled:s},u)))},LoadingIndicator:dn,Menu:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerRef,a=e.innerProps;return tt("div",k({css:o("menu",e),className:r({menu:!0},n),ref:i},a),t)},MenuList:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps,a=e.innerRef,s=e.isMulti;return tt("div",k({css:o("menuList",e),className:r({"menu-list":!0,"menu-list--is-multi":s},n),ref:a},i),t)},MenuPortal:tn,LoadingMessage:Kt,NoOptionsMessage:Xt,MultiValue:function(e){var t=e.children,n=e.className,r=e.components,o=e.cx,i=e.data,a=e.getStyles,s=e.innerProps,l=e.isDisabled,c=e.removeProps,u=e.selectProps,p=r.Container,f=r.Label,d=r.Remove;return tt(at,null,(function(r){var h=r.css,m=r.cx;return tt(p,{data:i,innerProps:Ot({className:m(h(a("multiValue",e)),o({"multi-value":!0,"multi-value--is-disabled":l},n))},s),selectProps:u},tt(f,{data:i,innerProps:{className:m(h(a("multiValueLabel",e)),o({"multi-value__label":!0},n))},selectProps:u},t),tt(d,{data:i,innerProps:Ot({className:m(h(a("multiValueRemove",e)),o({"multi-value__remove":!0},n)),"aria-label":"Remove ".concat(t||"option")},c),selectProps:u}))}))},MultiValueContainer:yn,MultiValueLabel:yn,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return tt("div",k({role:"button"},n),t||tt(an,{size:14}))},Option:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.isDisabled,a=e.isFocused,s=e.isSelected,l=e.innerRef,c=e.innerProps;return tt("div",k({css:o("option",e),className:r({option:!0,"option--is-disabled":i,"option--is-focused":a,"option--is-selected":s},n),ref:l,"aria-disabled":i},c),t)},Placeholder:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return tt("div",k({css:o("placeholder",e),className:r({placeholder:!0},n)},i),t)},SelectContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps,a=e.isDisabled,s=e.isRtl;return tt("div",k({css:o("container",e),className:r({"--is-disabled":a,"--is-rtl":s},n)},i),t)},SingleValue:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.isDisabled,a=e.innerProps;return tt("div",k({css:o("singleValue",e),className:r({"single-value":!0,"single-value--is-disabled":i},n)},a),t)},ValueContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.innerProps,i=e.isMulti,a=e.getStyles,s=e.hasValue;return tt("div",k({css:a("valueContainer",e),className:r({"value-container":!0,"value-container--is-multi":i,"value-container--has-value":s},n)},o),t)}},On=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function _n(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,o=void 0!==r&&r,i=e.defaultValue,a=void 0===i?null:i,s=e.inputValue,l=e.menuIsOpen,c=e.onChange,u=e.onInputChange,p=e.onMenuClose,f=e.onMenuOpen,d=e.value,h=st(e,On),m=ut((0,C.useState)(void 0!==s?s:n),2),g=m[0],v=m[1],b=ut((0,C.useState)(void 0!==l?l:o),2),y=b[0],w=b[1],O=ut((0,C.useState)(void 0!==d?d:a),2),_=O[0],S=O[1],x=(0,C.useCallback)((function(e,t){"function"==typeof c&&c(e,t),S(e)}),[c]),E=(0,C.useCallback)((function(e,t){var n;"function"==typeof u&&(n=u(e,t)),v(void 0!==n?n:e)}),[u]),k=(0,C.useCallback)((function(){"function"==typeof f&&f(),w(!0)}),[f]),P=(0,C.useCallback)((function(){"function"==typeof p&&p(),w(!1)}),[p]),I=void 0!==s?s:g,j=void 0!==l?l:y,M=void 0!==d?d:_;return Ot(Ot({},h),{},{inputValue:I,menuIsOpen:j,onChange:x,onInputChange:E,onMenuClose:P,onMenuOpen:k,value:M})}function Sn(e){return function(e){if(Array.isArray(e))return lt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ct(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var xn=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function En(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((r=e[n])===(o=t[n])||xn(r)&&xn(o)))return!1;var r,o;return!0}for(var kn={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},Cn=function(e){return tt("span",k({css:kn},e))},Pn={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.isDisabled,o=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(r?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,a=e.selectValue,s=e.isDisabled,l=e.isSelected,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(c(a,n),".");if("menu"===t){var u=s?" disabled":"",p="".concat(l?"selected":"focused").concat(u);return"option ".concat(i," ").concat(p,", ").concat(c(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},In=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,i=e.isFocused,a=e.selectValue,s=e.selectProps,l=e.id,c=s.ariaLiveMessages,u=s.getOptionLabel,p=s.inputValue,f=s.isMulti,d=s.isOptionDisabled,h=s.isSearchable,m=s.menuIsOpen,g=s.options,v=s.screenReaderStatus,b=s.tabSelectsValue,y=s["aria-label"],w=s["aria-live"],O=(0,C.useMemo)((function(){return Ot(Ot({},Pn),c||{})}),[c]),_=(0,C.useMemo)((function(){var e,n="";if(t&&O.onChange){var r=t.option,o=t.options,i=t.removedValue,s=t.removedValues,l=t.value,c=i||r||(e=l,Array.isArray(e)?null:e),p=c?u(c):"",f=o||s||void 0,h=f?f.map(u):[],m=Ot({isDisabled:c&&d(c,a),label:p,labels:h},t);n=O.onChange(m)}return n}),[t,O,d,a,u]),S=(0,C.useMemo)((function(){var e="",t=n||r,o=!!(n&&a&&a.includes(n));if(t&&O.onFocus){var i={focused:t,label:u(t),isDisabled:d(t,a),isSelected:o,options:g,context:t===n?"menu":"value",selectValue:a};e=O.onFocus(i)}return e}),[n,r,u,d,O,g,a]),x=(0,C.useMemo)((function(){var e="";if(m&&g.length&&O.onFilter){var t=v({count:o.length});e=O.onFilter({inputValue:p,resultsMessage:t})}return e}),[o,p,m,O,g,v]),E=(0,C.useMemo)((function(){var e="";if(O.guidance){var t=r?"value":m?"menu":"input";e=O.guidance({"aria-label":y,context:t,isDisabled:n&&d(n,a),isMulti:f,isSearchable:h,tabSelectsValue:b})}return e}),[y,n,r,f,d,h,m,O,a,b]),k="".concat(S," ").concat(x," ").concat(E),P=tt(C.Fragment,null,tt("span",{id:"aria-selection"},_),tt("span",{id:"aria-context"},k)),I="initial-input-focus"===(null==t?void 0:t.action);return tt(C.Fragment,null,tt(Cn,{id:l},I&&P),tt(Cn,{"aria-live":w,"aria-atomic":"false","aria-relevant":"additions text"},i&&!I&&P))},jn=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Mn=new RegExp("["+jn.map((function(e){return e.letters})).join("")+"]","g"),Rn={},Tn=0;Tn<jn.length;Tn++)for(var An=jn[Tn],Ln=0;Ln<An.letters.length;Ln++)Rn[An.letters[Ln]]=An.base;var Dn=function(e){return e.replace(Mn,(function(e){return Rn[e]}))},Fn=function(e,t){var n;void 0===t&&(t=En);var r,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}(Dn),Vn=function(e){return e.replace(/^\s+|\s+$/g,"")},Nn=function(e){return"".concat(e.label," ").concat(e.value)},Un=["innerRef"];function Bn(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Object.entries(e).filter((function(e){var t=ut(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=ut(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(st(e,Un),"onExited","in","enter","exit","appear");return tt("input",k({ref:t},n,{css:nt({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var zn=["boxSizing","height","overflow","paddingRight","position"],Hn={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function $n(e){e.preventDefault()}function Gn(e){e.stopPropagation()}function Wn(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Zn(){return"ontouchstart"in window||navigator.maxTouchPoints}var qn=!("undefined"==typeof window||!window.document||!window.document.createElement),Yn=0,Xn={capture:!1,passive:!1},Kn=function(){return document.activeElement&&document.activeElement.blur()},Jn={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Qn(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,i=e.onTopLeave,a=(0,C.useRef)(!1),s=(0,C.useRef)(!1),l=(0,C.useRef)(0),c=(0,C.useRef)(null),u=(0,C.useCallback)((function(e,t){if(null!==c.current){var l=c.current,u=l.scrollTop,p=l.scrollHeight,f=l.clientHeight,d=c.current,h=t>0,m=p-f-u,g=!1;m>t&&a.current&&(r&&r(e),a.current=!1),h&&s.current&&(i&&i(e),s.current=!1),h&&t>m?(n&&!a.current&&n(e),d.scrollTop=p,g=!0,a.current=!0):!h&&-t>u&&(o&&!s.current&&o(e),d.scrollTop=0,g=!0,s.current=!0),g&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[n,r,o,i]),p=(0,C.useCallback)((function(e){u(e,e.deltaY)}),[u]),f=(0,C.useCallback)((function(e){l.current=e.changedTouches[0].clientY}),[]),d=(0,C.useCallback)((function(e){var t=l.current-e.changedTouches[0].clientY;u(e,t)}),[u]),h=(0,C.useCallback)((function(e){if(e){var t=!!Ut&&{passive:!1};e.addEventListener("wheel",p,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",d,t)}}),[d,f,p]),m=(0,C.useCallback)((function(e){e&&(e.removeEventListener("wheel",p,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",d,!1))}),[d,f,p]);return(0,C.useEffect)((function(){if(t){var e=c.current;return h(e),function(){m(e)}}}),[t,h,m]),function(e){c.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),i=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=(0,C.useRef)({}),i=(0,C.useRef)(null),a=(0,C.useCallback)((function(e){if(qn){var t=document.body,n=t&&t.style;if(r&&zn.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&Yn<1){var i=parseInt(o.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+i||0;Object.keys(Hn).forEach((function(e){var t=Hn[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&Zn()&&(t.addEventListener("touchmove",$n,Xn),e&&(e.addEventListener("touchstart",Wn,Xn),e.addEventListener("touchmove",Gn,Xn))),Yn+=1}}),[r]),s=(0,C.useCallback)((function(e){if(qn){var t=document.body,n=t&&t.style;Yn=Math.max(Yn-1,0),r&&Yn<1&&zn.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&Zn()&&(t.removeEventListener("touchmove",$n,Xn),e&&(e.removeEventListener("touchstart",Wn,Xn),e.removeEventListener("touchmove",Gn,Xn)))}}),[r]);return(0,C.useEffect)((function(){if(t){var e=i.current;return a(e),function(){s(e)}}}),[t,a,s]),function(e){i.current=e}}({isEnabled:n});return tt(C.Fragment,null,n&&tt("div",{onClick:Kn,css:Jn}),t((function(e){o(e),i(e)})))}var er={clearIndicator:un,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,o=r.colors,i=r.borderRadius,a=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?o.neutral5:o.neutral0,borderColor:t?o.neutral10:n?o.primary:o.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(o.primary):void 0,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?o.primary:o.neutral30}}},dropdownIndicator:cn,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?o.neutral10:o.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},input:function(e){var t=e.isDisabled,n=e.value,r=e.theme,o=r.spacing,i=r.colors;return Ot({margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,visibility:t?"hidden":"visible",color:i.neutral80,transform:n?"translateZ(0)":""},vn)},loadingIndicator:function(e){var t=e.isFocused,n=e.size,r=e.theme,o=r.colors,i=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*i,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:Yt,menu:function(e){var t,n=e.placement,r=e.theme,o=r.borderRadius,i=r.spacing,a=r.colors;return vt(t={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),vt(t,"backgroundColor",a.neutral0),vt(t,"borderRadius",o),vt(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),vt(t,"marginBottom",i.menuGutter),vt(t,"marginTop",i.menuGutter),vt(t,"position","absolute"),vt(t,"width","100%"),vt(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,r=t.colors,o=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:o||void 0===o?"ellipsis":void 0,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,o=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused?o.dangerLight:void 0,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}}},noOptionsMessage:qt,option:function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,o=e.theme,i=o.spacing,a=o.colors;return{label:"option",backgroundColor:r?a.primary:n?a.primary25:"transparent",color:t?a.neutral20:r?a.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*i.baseUnit,"px ").concat(3*i.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:t?void 0:r?a.primary:a.primary50}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,gridArea:"1 / 1 / 2 / 3",marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2}},singleValue:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{label:"singleValue",color:t?o.neutral40:o.neutral80,gridArea:"1 / 1 / 2 / 3",marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},valueContainer:function(e){var t=e.theme.spacing,n=e.isMulti,r=e.hasValue,o=e.selectProps.controlShouldRenderValue;return{alignItems:"center",display:n&&r&&o?"flex":"grid",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}},tr={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},nr={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Dt(),captureMenuScroll:!Dt(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=Ot({ignoreCase:!0,ignoreAccents:!0,stringify:Nn,trim:!0,matchFrom:"any"},undefined),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,s=n.matchFrom,l=a?Vn(t):t,c=a?Vn(i(e)):i(e);return r&&(l=l.toLowerCase(),c=c.toLowerCase()),o&&(l=Fn(l),c=Dn(c)),"start"===s?c.substr(0,l.length)===l:c.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0};function rr(e,t,n,r){return{type:"option",data:t,isDisabled:cr(e,t,n),isSelected:ur(e,t,n),label:sr(e,t),value:lr(e,t),index:r}}function or(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return rr(e,n,t,r)})).filter((function(t){return ar(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=rr(e,n,t,r);return ar(e,i)?i:void 0})).filter(Bt)}function ir(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,Sn(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function ar(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,s=t.value;return(!fr(e)||!i)&&pr(e,{label:a,value:s,data:o},r)}var sr=function(e,t){return e.getOptionLabel(t)},lr=function(e,t){return e.getOptionValue(t)};function cr(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function ur(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=lr(e,t);return n.some((function(t){return lr(e,t)===r}))}function pr(e,t,n){return!e.filterOption||e.filterOption(t,n)}var fr=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},dr=1,hr=function(e){gt(n,e);var t=xt(n);function n(e){var r;return ft(this,n),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.instancePrefix="",r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,o=n.onChange,i=n.name;t.name=i,r.ariaOnChange(e,t),o(e,t)},r.setValue=function(e,t,n){var o=r.props,i=o.closeMenuOnSelect,a=o.isMulti,s=o.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:s}),i&&(r.setState({inputIsHiddenAfterUpdate:!a}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,o=t.isMulti,i=t.name,a=r.state.selectValue,s=o&&r.isOptionSelected(e,a),l=r.isOptionDisabled(e,a);if(s){var c=r.getOptionValue(e);r.setValue(a.filter((function(e){return r.getOptionValue(e)!==c})),"deselect-option",e)}else{if(l)return void r.ariaOnChange(e,{action:"select-option",option:e,name:i});o?r.setValue([].concat(Sn(a),[e]),"select-option",e):r.setValue(e,"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,o=r.getOptionValue(e),i=n.filter((function(e){return r.getOptionValue(e)!==o})),a=zt(t,i,i[0]||null);r.onChange(a,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(zt(r.props.isMulti,[],null),{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],o=t.slice(0,t.length-1),i=zt(e,o,o[0]||null);r.onChange(i,{action:"pop-value",removedValue:n})},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Pt.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return sr(r.props,e)},r.getOptionValue=function(e){return lr(r.props,e)},r.getStyles=function(e,t){var n=er[e](t);n.boxSizing="border-box";var o=r.props.styles[e];return o?o(n,t):n},r.getElementId=function(e){return"".concat(r.instancePrefix,"-").concat(e)},r.getComponents=function(){return e=r.props,Ot(Ot({},wn),e.components);var e},r.buildCategorizedOptions=function(){return or(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return ir(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:Ot({value:e},t)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var t=r.props,n=t.isMulti,o=t.menuIsOpen;r.focusInput(),o?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu("first"),e.preventDefault()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.preventDefault(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout((function(){return r.focusInput()})))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Mt(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var o=Math.abs(n.clientX-r.initialTouchX),i=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=o>5||i>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=r.props.inputValue,n=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(n,{action:"input-change",prevInputValue:t}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){var t=r.props.inputValue;r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur",prevInputValue:t}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){r.blockOptionHover||r.state.focusedOption===e||r.setState({focusedOption:e})},r.shouldHideSelectedOptions=function(){return fr(r.props)},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,o=t.backspaceRemovesValue,i=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,l=t.isDisabled,c=t.menuIsOpen,u=t.onKeyDown,p=t.tabSelectsValue,f=t.openMenuOnFocus,d=r.state,h=d.focusedOption,m=d.focusedValue,g=d.selectValue;if(!(l||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;r.focusValue("previous");break;case"ArrowRight":if(!n||a)return;r.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)r.removeValue(m);else{if(!o)return;n?r.popValue():s&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!c||!p||!h||f&&r.isOptionSelected(h,g))return;r.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(c){if(!h)return;if(r.isComposing)return;r.selectOption(h);break}return;case"Escape":c?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:a}),r.onMenuClose()):s&&i&&r.clearValue();break;case" ":if(a)return;if(!c){r.openMenu("first");break}if(!h)return;r.selectOption(h);break;case"ArrowUp":c?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":c?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!c)return;r.focusOption("pageup");break;case"PageDown":if(!c)return;r.focusOption("pagedown");break;case"Home":if(!c)return;r.focusOption("first");break;case"End":if(!c)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.instancePrefix="react-select-"+(r.props.instanceId||++dr),r.state.selectValue=It(e.value),r}return ht(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"componentDidUpdate",value:function(e){var t,n,r,o,i,a=this.props,s=a.isDisabled,l=a.menuIsOpen,c=this.state.isFocused;(c&&!s&&e.isDisabled||c&&l&&!e.menuIsOpen)&&this.focusInput(),c&&s&&!e.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,n=this.focusedOptionRef,r=t.getBoundingClientRect(),o=n.getBoundingClientRect(),i=n.offsetHeight/3,o.bottom+i>r.bottom?Tt(t,Math.min(n.offsetTop+n.clientHeight-t.offsetHeight+i,t.scrollHeight)):o.top-i<r.top&&Tt(t,Math.max(n.offsetTop-i,0)),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(a=o+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(tr):Ot(Ot({},tr),this.props.theme):tr}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getValue,o=this.selectOption,i=this.setValue,a=this.props,s=a.isMulti,l=a.isRtl,c=a.options;return{clearValue:e,cx:t,getStyles:n,getValue:r,hasValue:this.hasValue(),isMulti:s,isRtl:l,options:c,selectOption:o,selectProps:a,setValue:i,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return cr(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return ur(this.props,e,t)}},{key:"filterOption",value:function(e,t){return pr(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,i=e.tabIndex,a=e.form,s=e.menuIsOpen,l=this.getComponents().Input,c=this.state,u=c.inputIsHidden,p=c.ariaSelection,f=this.commonProps,d=r||this.getElementId("input"),h=Ot(Ot(Ot({"aria-autocomplete":"list","aria-expanded":s,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],role:"combobox"},s&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==p?void 0:p.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?C.createElement(l,k({},f,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:d,innerRef:this.getInputRef,isDisabled:t,isHidden:u,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:i,form:a,type:"text",value:o},h)):C.createElement(Bn,k({id:d,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:kt,onFocus:this.onInputFocus,disabled:t,tabIndex:i,inputMode:"none",form:a,value:""},h))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,i=t.MultiValueRemove,a=t.SingleValue,s=t.Placeholder,l=this.commonProps,c=this.props,u=c.controlShouldRenderValue,p=c.isDisabled,f=c.isMulti,d=c.inputValue,h=c.placeholder,m=this.state,g=m.selectValue,v=m.focusedValue,b=m.isFocused;if(!this.hasValue()||!u)return d?null:C.createElement(s,k({},l,{key:"placeholder",isDisabled:p,isFocused:b,innerProps:{id:this.getElementId("placeholder")}}),h);if(f)return g.map((function(t,a){var s=t===v,c="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return C.createElement(n,k({},l,{components:{Container:r,Label:o,Remove:i},isFocused:s,isDisabled:p,key:c,index:a,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(d)return null;var y=g[0];return C.createElement(a,k({},l,{data:y,isDisabled:p}),this.formatOptionLabel(y,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return C.createElement(e,k({},t,{innerProps:a,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;return e&&o?C.createElement(e,k({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:i})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,i=this.state.isFocused;return C.createElement(n,k({},r,{isDisabled:o,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return C.createElement(e,k({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,o=t.Menu,i=t.MenuList,a=t.MenuPortal,s=t.LoadingMessage,l=t.NoOptionsMessage,c=t.Option,u=this.commonProps,p=this.state.focusedOption,f=this.props,d=f.captureMenuScroll,h=f.inputValue,m=f.isLoading,g=f.loadingMessage,v=f.minMenuHeight,b=f.maxMenuHeight,y=f.menuIsOpen,w=f.menuPlacement,O=f.menuPosition,_=f.menuPortalTarget,S=f.menuShouldBlockScroll,x=f.menuShouldScrollIntoView,E=f.noOptionsMessage,P=f.onMenuScrollToTop,I=f.onMenuScrollToBottom;if(!y)return null;var j,M=function(t,n){var r=t.type,o=t.data,i=t.isDisabled,a=t.isSelected,s=t.label,l=t.value,f=p===o,d=i?void 0:function(){return e.onOptionHover(o)},h=i?void 0:function(){return e.selectOption(o)},m="".concat(e.getElementId("option"),"-").concat(n),g={id:m,onClick:h,onMouseMove:d,onMouseOver:d,tabIndex:-1};return C.createElement(c,k({},u,{innerProps:g,data:o,isDisabled:i,isSelected:a,key:m,label:s,type:r,value:l,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())j=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,i=t.options,a=t.index,s="".concat(e.getElementId("group"),"-").concat(a),l="".concat(s,"-heading");return C.createElement(n,k({},u,{key:s,data:o,options:i,Heading:r,headingProps:{id:l,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return M(e,"".concat(a,"-").concat(e.index))})))}if("option"===t.type)return M(t,"".concat(t.index))}));else if(m){var R=g({inputValue:h});if(null===R)return null;j=C.createElement(s,u,R)}else{var T=E({inputValue:h});if(null===T)return null;j=C.createElement(l,u,T)}var A={minMenuHeight:v,maxMenuHeight:b,menuPlacement:w,menuPosition:O,menuShouldScrollIntoView:x},L=C.createElement(Wt,k({},u,A),(function(t){var n=t.ref,r=t.placerProps,a=r.placement,s=r.maxHeight;return C.createElement(o,k({},u,A,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:m,placement:a}),C.createElement(Qn,{captureEnabled:d,onTopArrive:P,onBottomArrive:I,lockEnabled:S},(function(t){return C.createElement(i,k({},u,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:m,maxHeight:s,focusedOption:p}),j)})))}));return _||"fixed"===O?C.createElement(a,k({},u,{appendTo:_,controlElement:this.controlRef,menuPlacement:w,menuPosition:O}),L):L}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,i=t.name,a=this.state.selectValue;if(i&&!r){if(o){if(n){var s=a.map((function(t){return e.getOptionValue(t)})).join(n);return C.createElement("input",{name:i,type:"hidden",value:s})}var l=a.length>0?a.map((function(t,n){return C.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})})):C.createElement("input",{name:i,type:"hidden"});return C.createElement("div",null,l)}var c=a[0]?this.getOptionValue(a[0]):"";return C.createElement("input",{name:i,type:"hidden",value:c})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.isFocused,a=t.selectValue,s=this.getFocusableOptions();return C.createElement(In,k({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:i,selectValue:a,focusableOptions:s}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,i=this.props,a=i.className,s=i.id,l=i.isDisabled,c=i.menuIsOpen,u=this.state.isFocused,p=this.commonProps=this.getCommonProps();return C.createElement(r,k({},p,{className:a,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:u}),this.renderLiveRegion(),C.createElement(t,k({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:u,menuIsOpen:c}),C.createElement(o,k({},p,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),C.createElement(n,k({},p,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,a=t.isFocused,s=t.prevWasFocused,l=e.options,c=e.value,u=e.menuIsOpen,p=e.inputValue,f=e.isMulti,d=It(c),h={};if(n&&(c!==n.value||l!==n.options||u!==n.menuIsOpen||p!==n.inputValue)){var m=u?function(e,t){return ir(or(e,t))}(e,d):[],g=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,d):null,v=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,m);h={selectValue:d,focusedOption:v,focusedValue:g,clearFocusValueOnUpdate:!1}}var b=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},y=i,w=a&&s;return a&&!w&&(y={value:zt(f,d,d[0]||null),options:d,action:"initial-input-focus"},w=!s),"initial-input-focus"===(null==i?void 0:i.action)&&(y=null),Ot(Ot(Ot({},h),b),{},{prevProps:e,ariaSelection:y,prevWasFocused:w})}}]),n}(C.Component);hr.defaultProps=nr;var mr=(0,C.forwardRef)((function(e,t){var n=_n(e);return C.createElement(hr,k({ref:t},n))}));C.Component;const gr=mr,vr=window.wp.blockEditor,br=window.wp.components;var yr=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"],wr=(0,C.forwardRef)((function(e,t){var n=function(e){var t=e.defaultOptions,n=void 0!==t&&t,r=e.cacheOptions,o=void 0!==r&&r,i=e.loadOptions;e.options;var a=e.isLoading,s=void 0!==a&&a,l=e.onInputChange,c=e.filterOption,u=void 0===c?null:c,p=st(e,yr),f=p.inputValue,d=(0,C.useRef)(void 0),h=(0,C.useRef)(!1),m=ut((0,C.useState)(Array.isArray(n)?n:void 0),2),g=m[0],v=m[1],b=ut((0,C.useState)(void 0!==f?f:""),2),y=b[0],w=b[1],O=ut((0,C.useState)(!0===n),2),_=O[0],S=O[1],x=ut((0,C.useState)(void 0),2),E=x[0],k=x[1],P=ut((0,C.useState)([]),2),I=P[0],j=P[1],M=ut((0,C.useState)(!1),2),R=M[0],T=M[1],A=ut((0,C.useState)({}),2),L=A[0],D=A[1],F=ut((0,C.useState)(void 0),2),V=F[0],N=F[1],U=ut((0,C.useState)(void 0),2),B=U[0],z=U[1];o!==B&&(D({}),z(o)),n!==V&&(v(Array.isArray(n)?n:void 0),N(n)),(0,C.useEffect)((function(){return h.current=!0,function(){h.current=!1}}),[]);var H=(0,C.useCallback)((function(e,t){if(!i)return t();var n=i(e,t);n&&"function"==typeof n.then&&n.then(t,(function(){return t()}))}),[i]);(0,C.useEffect)((function(){!0===n&&H(y,(function(e){h.current&&(v(e||[]),S(!!d.current))}))}),[]);var $=(0,C.useCallback)((function(e,t){var n=function(e,t,n){if(n){var r=n(e,t);if("string"==typeof r)return r}return e}(e,t,l);if(!n)return d.current=void 0,w(""),k(""),j([]),S(!1),void T(!1);if(o&&L[n])w(n),k(n),j(L[n]),S(!1),T(!1);else{var r=d.current={};w(n),S(!0),T(!E),H(n,(function(e){h&&r===d.current&&(d.current=void 0,S(!1),k(n),j(e||[]),T(!1),D(e?Ot(Ot({},L),{},vt({},n,e)):L))}))}}),[o,H,E,L,l]),G=R?[]:y&&E?I:g||[];return Ot(Ot({},p),{},{options:G,isLoading:_||s,onInputChange:$,filterOption:u})}(e),r=_n(n);return C.createElement(hr,k({ref:t},r))}));const Or=wr,_r=window.wp.htmlEntities;function Sr(e){return Sr="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},Sr(e)}function xr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Er(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function kr(e,t){return kr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},kr(e,t)}function Cr(e,t){if(t&&("object"===Sr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Pr(e)}function Pr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ir(e){return Ir=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ir(e)}function jr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Mr=envira_args.options.galleries.map((function(e){return Object.assign({},{value:e.id,label:e.title.rendered})})),Rr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kr(e,t)}(c,e);var n,r,o,a,l=(o=c,a=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}}(),function(){var e,t=Ir(o);if(a){var n=Ir(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Cr(this,e)});function c(e){var t;xr(this,c),jr(Pr(t=l.apply(this,arguments)),"loadOptions",(function(e){return e&&t._mounted?i()({path:"/wp/v2/envira-gallery?search="+e}).then((function(e){return e})).then((function(e){return e.map((function(e){return Object.assign({},{value:e.id,label:(0,_r.decodeEntities)(e.title.rendered)})}))})):[]})),jr(Pr(t),"handleInputChange",(function(e){var n=t.props.onSelect;t.setState({selectedOption:e}),n(e)}));var n=""===t.props.title?(0,s.__)("(No Title)"):t.props.title;return t.state={selectedOption:null!=t.props.galleryId?{value:t.props.galleryId,label:n}:"",defaultOptions:Mr},t}return n=c,(r=[{key:"componentDidMount",value:function(){this._mounted=!0}},{key:"componentWillUnmount",value:function(){this._mounted=!1}},{key:"componentDidUpdate",value:function(e){e.galleryId!=this.props.galleryId&&this._mounted&&this.setState({selectedOption:{value:this.props.galleryId,label:(0,_r.decodeEntities)(this.props.title)}})}},{key:"render",value:function(){var e=this.state,n=e.selectedOption,r=e.defaultOptions;return wp.element.createElement(t.Fragment,null,wp.element.createElement(Or,{placeholder:this.props.placeholder,value:n,filterOptions:!1,cacheOptions:!0,defaultOptions:r,onChange:this.handleInputChange,loadOptions:this.loadOptions}))}}])&&Er(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),c}(t.Component);const Tr=(0,l.compose)([(0,a.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock(n);return r?{clientId:n,galleryId:r.attributes?r.attributes.galleryId:null,title:r.attributes?r.attributes.title:""}:{clientId:null,galleryId:null,title:""}})),(0,a.withDispatch)((function(e,t){var n=t.clientId;return{onSelect:function(t){e("core/block-editor").updateBlockAttributes(n,{galleryId:t.value,title:t.label})}}}))])(Rr);function Ar(e){return Ar="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ar(e)}function Lr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Fr(e,t){return Fr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Fr(e,t)}function Vr(e,t){if(t&&("object"===Ar(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Nr(e)}function Nr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ur(e){return Ur=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ur(e)}function Br(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zr=[{value:"0",label:(0,s.__)("None")},{value:"1",label:(0,s.__)("Small")},{value:"5",label:(0,s.__)("Medium")},{value:"20",label:(0,s.__)("Large")},{value:"custom",label:(0,s.__)("Custom")}],Hr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fr(e,t)}(c,e);var n,r,o,a,l=(o=c,a=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}}(),function(){var e,t=Ur(o);if(a){var n=Ur(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Vr(this,e)});function c(e){var t;Lr(this,c),Br(Nr(t=l.apply(this,arguments)),"changeColumns",(function(e){t.setState({columns:e.value}),t.props.updateAttribute("columns",e.value)})),Br(Nr(t),"changeCustomMargin",(function(e){e=""==e||isNaN(e)?null:parseInt(e),t.setState({custom_margins:null===e?"":e}),t.props.updateAttribute("custom_margins",e)})),Br(Nr(t),"changeRowHeight",(function(e){e=""==e||isNaN(e)?null:parseInt(e),t.setState({row_height:null===e?"":e}),t.props.updateAttribute("row_height",e)})),Br(Nr(t),"changeMargins",(function(e){t.setState({margins:e}),t.props.updateAttribute("margins",e)})),Br(Nr(t),"toggleLightbox",(function(e){t.setState({lightbox_enabled:e}),t.props.updateAttribute("lightbox_enabled",e)})),Br(Nr(t),"toggleIsotope",(function(e){t.setState({isotope:e}),t.props.updateAttribute("isotope",e)})),Br(Nr(t),"onLightboxThemeChange",(function(e){t.setState({lightbox_theme:e}),t.props.updateAttribute("lightbox_theme",e)})),Br(Nr(t),"onImageSizeChange",(function(e){t.setState({image_size:e.value}),t.props.updateAttribute("image_size",e.value)})),Br(Nr(t),"onSelectedImageTitleChange",(function(e){var n=t.state.selectedImage;n.title=e,t.setState({selectedImage:n})})),Br(Nr(t),"clearSelectedImage",(function(e){t.props.setAttributes({selectedImage:null})})),Br(Nr(t),"onSelectedImageTitleBlur",(function(e){var n=t.state.selectedImage,r=t.props.galleryId;n.title=e.target.value,t.setState({selectedImage:n});var o={gallery_data:{update_image:n,attach_id:n.id,updated_image:n}};return i()({path:"/wp/v2/envira-gallery/".concat(r),method:"POST",data:o})})),Br(Nr(t),"onSelectedImageCaptionChange",(function(e){var n=t.state.selectedImage;n.caption=e,t.setState({selectedImage:n})})),Br(Nr(t),"onSelectedImageCaptionBlur",(function(e){var n=t.state,r=n.selectedImage,o=n.galleryId;r.caption=e.target.value,t.setState({selectedImage:r});var a={gallery_data:{update_image:!0,attach_id:r.id,updated_image:r}};return i()({path:"/wp/v2/envira-gallery/".concat(o),method:"PUT",data:a}).then((function(e){return e})).then((function(e){return e}))}));var n=null!=t.props.galleryId;return t.state={hasGallery:n,column_options:envira_args.options.columns,lightbox_options:envira_args.options.lightbox_themes,sorting_options:envira_args.options.sorting_options,image_sizes:envira_args.options.image_sizes,galleryId:t.props.galleryId,columns:t.props.columns,margins:t.props.margins,custom_margins:t.props.custom_margins,row_height:t.props.row_height,lightbox_enabled:t.props.lightbox_enabled,lightbox_theme:t.props.lightbox_theme,isotope:t.props.isotope,image_size:t.props.image_size,selectedImage:t.props.selectedImage},t}return n=c,(r=[{key:"componentDidMount",value:function(){this._mounted=!0}},{key:"componentWillUnmount",value:function(){this._mounted=!1}},{key:"componentDidUpdate",value:function(e){var t=null!=this.props.galleryId;if(!this._mounted)return null;this.props.selectedImage!=e.selectedImage&&this.setState({selectedImage:this.props.selectedImage}),this.props.attributes!=e.attributes&&this.setState({hasGallery:t,galleryId:this.props.galleryId,columns:this.props.columns,margins:this.props.margins,custom_margins:this.props.custom_margins,row_height:this.props.row_height,lightbox_enabled:this.props.lightbox_enabled,lightbox_theme:this.props.lightbox_theme,isotope:this.props.isotope,image_size:this.props.image_size})}},{key:"renderGalleryPanel",value:function(){var e=this.state,n=e.hasGallery,r=e.columns,o=e.margins,i=e.row_height,a=e.column_options,l=e.isotope,c=e.custom_margins;if(e.image_sizes,e.image_size,!1===n)return null;var u=zr.find((function(e){return e.value==o}));u=void 0===u?{value:"custom",label:(0,s.__)("Custom")}:u;var p=a.find((function(e){return e.value==r}));return wp.element.createElement("div",null,wp.element.createElement("h3",{className:"envira-heading"},(0,s.__)("Select Layout")),wp.element.createElement(gr,{value:p,onChange:this.changeColumns,options:a}),"0"===this.props.columns&&wp.element.createElement(t.Fragment,null,wp.element.createElement("h3",{className:"envira-heading"},(0,s.__)("Set Row Height")),wp.element.createElement(br.TextControl,{value:i,onChange:this.changeRowHeight})),"0"!=this.props.columns&&wp.element.createElement(t.Fragment,null,wp.element.createElement("h3",{className:"envira-heading"},(0,s.__)("Enable Isotope")),wp.element.createElement(br.ToggleControl,{checked:l,onChange:this.toggleIsotope})),wp.element.createElement("h3",{className:"envira-heading"},(0,s.__)("Gallery Margins")),wp.element.createElement(br.SelectControl,{value:this.props.margins,onChange:this.changeMargins,options:zr}),"custom"===u.value&&wp.element.createElement(t.Fragment,null,wp.element.createElement("h3",{className:"envira-heading"},(0,s.__)("Custom Margin")),wp.element.createElement(br.TextControl,{value:c,onChange:this.changeCustomMargin})))}},{key:"renderLightboxPanel",value:function(){var e=this.state,n=e.hasGallery,r=e.lightbox_options,o=e.lightbox_enabled;return e.lightbox_theme,!1===n?null:wp.element.createElement(br.PanelBody,{title:(0,s.__)("Lightbox"),className:"envira-inspector-panelbody"},wp.element.createElement("h3",{className:"envira-heading"},(0,s.__)("Enable Lightbox?")),wp.element.createElement(br.ToggleControl,{checked:o,onChange:this.toggleLightbox}),o&&wp.element.createElement(t.Fragment,null,wp.element.createElement("h3",{className:"envira-heading"},(0,s.__)("Select Lightbox Theme")),wp.element.createElement(br.SelectControl,{value:this.props.lightbox_theme,onChange:this.onLightboxThemeChange,options:r})))}},{key:"renderImageEditPanel",value:function(){var e=this.state.selectedImage,n="",r="";return null!=e&&(n=null!==e.title?e.title:"",r=null!==e.caption?e.caption:""),wp.element.createElement(vr.InspectorControls,{key:this.props.selectedImage.id},wp.element.createElement(br.PanelBody,{title:(0,s.__)("Image"),className:"envira-inspector-panelbody"},wp.element.createElement(br.Button,{onClick:this.clearSelectedImage,isLink:!0},"Go Back"),wp.element.createElement(t.Fragment,null,wp.element.createElement("h3",{className:"envira-heading"},(0,s.__)("Title")),wp.element.createElement(br.TextControl,{value:n,onBlur:this.onSelectedImageTitleBlur,onChange:this.onSelectedImageTitleChange})),wp.element.createElement(t.Fragment,null,wp.element.createElement("h3",{className:"envira-heading"},(0,s.__)("Caption")),wp.element.createElement(br.TextareaControl,{value:r,onBlur:this.onSelectedImageCaptionBlur,onChange:this.onSelectedImageCaptionChange}))))}},{key:"render",value:function(){var e=this.props.galleryId;return null!==this.props.selectedImage?[this.renderImageEditPanel()]:wp.element.createElement(vr.InspectorControls,null,wp.element.createElement(br.PanelBody,{title:(0,s.__)("Gallery"),className:"envira-inspector-panelbody"},wp.element.createElement("h3",{className:"envira-heading"},(0,s.__)("Search for a Gallery")),wp.element.createElement(Tr,{clientId:this.props.clientId,placeholder:" "}),null!=e&&wp.element.createElement(br.Button,{isDefault:!0,target:"_blank",className:"envira-button",href:envira_args.admin_url+"post.php?post="+e+"&action=edit"},"Edit Gallery"),this.renderGalleryPanel()),this.renderLightboxPanel())}}])&&Dr(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),c}(t.Component);const $r=(0,l.compose)([(0,a.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock(n);return{clientId:n,attributes:r.attributes?r.attributes:{},galleryId:r.attributes?r.attributes.galleryId:null,columns:r.attributes?r.attributes.columns:0,margins:r.attributes?r.attributes.margins:1,row_height:r.attributes?r.attributes.row_height:100,lightbox_enabled:!!r.attributes&&r.attributes.lightbox_enabled,lightbox_theme:r.attributes?r.attributes.lightbox_theme:"base_dark",custom_margins:!!r.attributes&&r.attributes.custom_margins,isotope:!!r.attributes&&r.attributes.isotope,selectedImage:r.attributes?r.attributes.selectedImage:{},images:r.attributes?r.attributes.images:{}}})),(0,a.withDispatch)((function(e,t){var n=t.clientId;return{updateAttribute:function(t,r){e("core/block-editor").updateBlockAttributes(n,Br({},t,r))}}}))])(Hr),Gr=(0,l.compose)([(0,a.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock(n);return{clientId:n,galleryId:r.attributes?r.attributes.galleryId:null}}))])((function(e){var n=e.galleryId;return wp.element.createElement(t.Fragment,null,wp.element.createElement(vr.BlockControls,null,wp.element.createElement(br.Toolbar,null,n&&wp.element.createElement(t.Fragment,null,wp.element.createElement(br.IconButton,{className:"components-toolbar__control",label:(0,s.__)("Edit gallery"),icon:"edit",target:"_blank",href:envira_args.admin_url+"post.php?post="+n+"&action=edit"})))))}));function Wr(e){return Wr="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},Wr(e)}function Zr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Yr(e,t){return Yr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Yr(e,t)}function Xr(e,t){if(t&&("object"===Wr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Kr(e)}function Kr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Jr(e){return Jr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Jr(e)}var Qr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Yr(e,t)}(s,e);var t,n,r,o,a=(r=s,o=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}}(),function(){var e,t=Jr(r);if(o){var n=Jr(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Xr(this,e)});function s(e){var t;return Zr(this,s),(t=a.apply(this,arguments)).updateGallery=t.updateGallery.bind(Kr(t)),t}return t=s,(n=[{key:"componentDidMount",value:function(){this._mounted=!0}},{key:"componentWillUnmount",value:function(){this._mounted=!1}},{key:"shouldComponentUpdate",value:function(e){return e.attributes.selectedImage==this.props.attributes.selectedImage&&e.attributes!=this.props.attributes}},{key:"componentDidUpdate",value:function(e){this.props.galleryId===e.galleryId&&this.updateGallery()}},{key:"updateGallery",value:function(){if(null==this.props.galleryId)return null;if(null==this.props.attributes)return null;if(!this._mounted)return null;var e="custom"===this.props.attributes.margins?this.props.attributes.custom_margins:this.props.attributes.margins,t={gallery_data:{config:{columns:this.props.attributes.columns,justified_margins:e,justified_row_height:this.props.attributes.row_height,gutter:e,margin:e,isotope:this.props.attributes.isotope,lightbox_enabled:this.props.attributes.lightbox_enabled,lightbox_theme:this.props.attributes.lightbox_theme,image_size:this.props.attributes.image_size}}};return i()({path:"/wp/v2/envira-gallery/".concat(this.props.galleryId),method:"PUT",data:t}),!0}},{key:"render",value:function(){return null}}])&&qr(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(t.Component);const eo=(0,l.compose)([(0,a.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock(n);return{clientId:n,galleryId:r.attributes.galleryId?r.attributes.galleryId:null,title:r.attributes.title?r.attributes.title:"",attributes:r.attributes?r.attributes:{}}}))])(Qr);var to=n(184),no=n.n(to);const ro=function(e){var t=e.selected;return wp.element.createElement("div",{style:t?{left:"6px",top:"6px",position:"relative",zIndex:"1"}:{display:"none"}},wp.element.createElement("svg",{style:{fill:"white",position:"absolute"},width:"24px",height:"24px"},wp.element.createElement("circle",{cx:"12.5",cy:"12.2",r:"8.292"})),wp.element.createElement("svg",{style:{fill:"#7cc048",position:"absolute"},width:"24px",height:"24px"},wp.element.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})))};function oo(e){return oo="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},oo(e)}function io(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ao(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function so(e,t){return so=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},so(e,t)}function lo(e,t){if(t&&("object"===oo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return co(e)}function co(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uo(e){return uo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},uo(e)}function po(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const fo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&so(e,t)}(s,e);var n,r,o,i,a=(o=s,i=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}}(),function(){var e,t=uo(o);if(i){var n=uo(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return lo(this,e)});function s(e){var n;io(this,s),po(co(n=a.apply(this,arguments)),"outsideClick",(function(e){e.stopPropagation();var t=document.getElementsByClassName("edit-post-sidebar");n.node.current.contains(e.target)||t instanceof Function&&t.length>0&&t.contains(e.target)||n.node.current.contains(e.target)||(n.setState({isImageSelected:!1}),n.props.setAttributes({selectedImage:null}))})),po(co(n),"handleOnClick",(function(e){var t=n.state.isImageSelected;e.stopPropagation(),n.setState({isImageSelected:!t}),t?n.props.setAttributes({selectedImage:null}):n.props.setAttributes({selectedImage:n.props.data})}));var r="0"!=n.props.attributes.margins?n.props.attributes.margins:"0";return n.node=(0,t.createRef)(),n.state={isImageSelected:!1,itemStyles:{paddingLeft:"0"!=n.props.attributes.columns?r/2+"px":"0px",paddingRight:"0"!=n.props.attributes.columns?r/2+"px":"0px",paddingBottom:"0"!=n.props.attributes.columns?r+"px":"0px"}},n}return n=s,(r=[{key:"componentDidMount",value:function(){document.addEventListener("mousedown",this.outsideClick,!1)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousedown",this.outsideClick,!1)}},{key:"componentDidUpdate",value:function(e){if(e.attributes!=this.props.attributes){var t="custom"===this.props.attributes.margins?this.props.attributes.custom_margins:this.props.attributes.margins,n=null!==this.props.attributes.selectedImage&&this.props.attributes.selectedImage.id;this.setState({isImageSelected:n==this.props.data.id,itemStyles:{paddingLeft:"0"!=this.props.attributes.columns?t/2+"px":"0px",paddingRight:"0"!=this.props.attributes.columns?t/2+"px":"0px",paddingBottom:"0"!=this.props.attributes.columns?t+"px":"0px"}})}}},{key:"render",value:function(){var e=this.state.isImageSelected,t=no()({"envira-gallery-item":!0});return wp.element.createElement("div",{className:t,style:this.state.itemStyles,ref:this.node,id:this.props.id,key:this.props.id},wp.element.createElement("div",{className:"envira-gallery-item-inner",key:this.props.id},wp.element.createElement(ro,{selected:!!e}),wp.element.createElement("img",{src:this.props.data.src,onClick:this.handleOnClick})))}}])&&ao(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),s}(t.Component);var ho=n(697),mo=n.n(ho),go=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),vo="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,bo=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),yo="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(bo):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},wo=["top","right","bottom","left","width","height","size","weight"],Oo="undefined"!=typeof MutationObserver,_o=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&s()}function a(){yo(i)}function s(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(a,20);o=e}return s}(this.refresh.bind(this))}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){vo&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Oo?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){vo&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;wo.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),So=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},xo=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||bo},Eo=jo(0,0,0,0);function ko(e){return parseFloat(e)||0}function Co(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+ko(e["border-"+n+"-width"])}),0)}var Po="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof xo(e).SVGGraphicsElement}:function(e){return e instanceof xo(e).SVGElement&&"function"==typeof e.getBBox};function Io(e){return vo?Po(e)?function(e){var t=e.getBBox();return jo(0,0,t.width,t.height)}(e):function(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Eo;var r=xo(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=ko(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,s=ko(r.width),l=ko(r.height);if("border-box"===r.boxSizing&&(Math.round(s+i)!==t&&(s-=Co(r,"left","right")+i),Math.round(l+a)!==n&&(l-=Co(r,"top","bottom")+a)),!function(e){return e===xo(e).document.documentElement}(e)){var c=Math.round(s+i)-t,u=Math.round(l+a)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(u)&&(l-=u)}return jo(o.left,o.top,s,l)}(e):Eo}function jo(e,t,n,r){return{x:e,y:t,width:n,height:r}}var Mo=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=jo(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=Io(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),Ro=function(e,t){var n,r,o,i,a,s,l,c=(r=(n=t).x,o=n.y,i=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(s.prototype),So(l,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),l);So(this,{target:e,contentRect:c})},To=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new go,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof xo(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new Mo(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof xo(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new Ro(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Ao="undefined"!=typeof WeakMap?new WeakMap:new go,Lo=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=_o.getInstance(),r=new To(t,n,this);Ao.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){Lo.prototype[e]=function(){var t;return(t=Ao.get(this))[e].apply(t,arguments)}}));const Do=void 0!==bo.ResizeObserver?bo.ResizeObserver:Lo;function Fo(e){return Fo="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},Fo(e)}function Vo(){return Vo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vo.apply(this,arguments)}function No(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Uo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?No(Object(n),!0).forEach((function(t){Zo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):No(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Bo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ho(e,t){return Ho=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ho(e,t)}function $o(e,t){if(t&&("object"===Fo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Go(e)}function Go(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wo(e){return Wo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Wo(e)}function Zo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qo={backgroundColor:"#eee",cursor:"pointer",overflow:"hidden",position:"relative"},Yo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ho(e,t)}(s,e);var n,r,o,i,a=(o=s,i=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}}(),function(){var e,t=Wo(o);if(i){var n=Wo(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return $o(this,e)});function s(e){var n;return Bo(this,s),Zo(Go(n=a.apply(this,arguments)),"outsideClick",(function(e){e.stopPropagation();var t=document.getElementsByClassName("edit-post-sidebar");n.node.current.contains(e.target)||t instanceof Function&&t.length>0&&t.contains(e.target)||(n.setState({isSelected:!1}),n.props.setAttributes({selectedImage:null}))})),Zo(Go(n),"handleOnClick",(function(e){var t=n.state.isSelected;e.stopPropagation(),n.setState({isSelected:!t}),t?n.props.setAttributes({selectedImage:null}):n.props.setAttributes({selectedImage:n.props.photo})})),n.node=(0,t.createRef)(),n.state={isSelected:!1},n}return n=s,(r=[{key:"componentDidMount",value:function(){document.addEventListener("mousedown",this.outsideClick,!1),this._mounted=!0}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousedown",this.outsideClick,!1),this._mounted=!1}},{key:"componentDidUpdate",value:function(e){e.attributes!=this.props.attributes&&this._mounted&&null!=this.props.attributes.selectedImage&&this.setState({isSelected:this.props.attributes.selectedImage.id==this.props.photo.id})}},{key:"render",value:function(){var e=this.props,t=e.index,n=(e.onClick,e.photo),r=e.margin,o=e.direction,i=e.top,a=e.left,s=(e.max_height,e.selected,e.clientID,e.setAttributes,e.attributes,this.state.isSelected),l={display:"block",maxHeight:n.height};return"column"===o&&(l.position="absolute",l.left=a,l.top=i),wp.element.createElement("div",{style:Uo({margin:r,height:n.height,width:n.width},qo),className:s?"":"not-selected",key:t},wp.element.createElement(ro,{selected:!!s}),wp.element.createElement("img",Vo({style:l},n,{onClick:this.handleOnClick,ref:this.node,key:t})),wp.element.createElement("style",null,".not-selected:hover{outline:2px solid #06befa}"))}}])&&zo(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),s}(t.Component),Xo=mo().shape({key:mo().string,src:mo().string.isRequired,width:mo().number.isRequired,height:mo().number.isRequired,alt:mo().string,title:mo().string,srcSet:mo().oneOfType([mo().string,mo().array]),sizes:mo().oneOfType([mo().string,mo().array])});Yo.propTypes={index:mo().number.isRequired,onClick:mo().func,photo:Xo.isRequired,margin:mo().number,top:function(e){if("column"===e.direction&&"number"!=typeof e.top)return new Error("top is a required number when direction is set to `column`")},left:function(e){if("column"===e.direction&&"number"!=typeof e.left)return new Error("left is a required number when direction is set to `column`")},direction:mo().string};const Ko=Yo;var Jo=function(e,t){return t||(t=0),Number(Math.round(e+"e"+t)+"e-"+t)};function Qo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ei(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qo(Object(n),!0).forEach((function(t){ti(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ti(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ni=function(e){var t=e.width,n=e.height;return Jo(t/n,2)};function ri(e){this.content=[],this.scoreFunction=e}ri.prototype={push:function(e){this.content.push(e),this.bubbleUp(this.content.length-1)},pop:function(){var e=this.content[0],t=this.content.pop();return this.content.length>0&&(this.content[0]=t,this.sinkDown(0)),e},remove:function(e){for(var t=this.content.length,n=0;n<t;n++)if(this.content[n]==e){var r=this.content.pop();if(n==t-1)break;this.content[n]=r,this.bubbleUp(n),this.sinkDown(n);break}},size:function(){return this.content.length},bubbleUp:function(e){for(var t=this.content[e],n=this.scoreFunction(t);e>0;){var r=Math.floor((e+1)/2)-1,o=this.content[r];if(n>=this.scoreFunction(o))break;this.content[r]=t,this.content[e]=o,e=r}},sinkDown:function(e){for(var t=this.content.length,n=this.content[e],r=this.scoreFunction(n);;){var o=2*(e+1),i=o-1,a=null;if(i<t){var s=this.content[i],l=this.scoreFunction(s);l<r&&(a=i)}if(o<t){var c=this.content[o];this.scoreFunction(c)<(null==a?r:l)&&(a=o)}if(null==a)break;this.content[e]=this.content[a],this.content[a]=n,e=a}}};var oi=function(e,t,n){return(t-e.length*(2*n))/e.reduce((function(e,t){return e+ni(t)}),0)},ii=function(e,t,n,r,o,i){var a=e.slice(t,n),s=oi(a,r,i);return Math.pow(Math.abs(s-o),2)},ai=function(e){var t,n,r,o,i=e.containerWidth,a=e.limitNodeSearch,s=e.targetRowHeight,l=e.margin,c=e.photos,u=function(e,t,n,r,o){return function(i){var a={};a[+(i=+i)]=0;for(var s=i+1;s<n.length+1&&!(s-i>r);++s)a[s.toString()]=ii(n,i,s,t,e,o);return a}}(s,i,c,a,l),p=(t=u,n="0",r=c.length,o=function(e,t,n){var r={},o={},i={};i[t]=0;var a=new ri((function(e){return e.weight}));for(a.push({id:t,weight:0});a.size();){var s=a.pop(),l=s.id;if(!o[l]){var c=e(l)||{};for(var u in o[l]=1,c){var p=s.weight+c[u];(void 0===i[u]||i[u]>p)&&(i[u]=p,a.push({id:u,weight:p}),r[u]=l)}}}if(void 0===i[n])throw new Error("There is no path from ".concat(t," to ").concat(n));return r}(t,n,r),function(e,t){for(var n=[],r=t;r;)n.push(r),e[r],r=e[r];return n.reverse()}(o,r));p=p.map((function(e){return+e}));for(var f=1;f<p.length;++f)for(var d=c.slice(p[f-1],p[f]),h=oi(d,i,l),m=p[f-1];m<p[f];++m)c[m].width=Jo(h*ni(c[m]),1),c[m].height=h;return c};function si(e){return si="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},si(e)}var li=["left","top","key","containerHeight"];function ci(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ui(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function pi(e,t){return pi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},pi(e,t)}function fi(e,t){if(t&&("object"===si(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return di(e)}function di(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hi(e){return hi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},hi(e)}function mi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pi(e,t)}(a,e);var t,n,r,o,i=(r=a,o=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}}(),function(){var e,t=hi(r);if(o){var n=hi(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return fi(this,e)});function a(){var e;ci(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return mi(di(e=i.call.apply(i,[this].concat(n))),"state",{containerWidth:0}),mi(di(e),"handleClick",(function(t,n){var r=n.index,o=e.props,i=o.photos;(0,o.onClick)(t,{index:r,photo:i[r],previous:i[r-1]||null,next:i[r+1]||null})})),e}return t=a,n=[{key:"componentDidMount",value:function(){var e=this;this.animationFrameID=null,this.observer=new Do((function(t){var n=t[0].contentRect.width;e.state.containerWidth!==n&&(e.animationFrameID=window.requestAnimationFrame((function(){e.setState({containerWidth:Math.floor(n)})})))})),this.observer.observe(this._gallery)}},{key:"componentDidUpdate",value:function(){}},{key:"componentWillUnmount",value:function(){this.observer.disconnect(),window.cancelAnimationFrame(this.animationFrameID)}},{key:"render",value:function(){var e=this,t=this.state.containerWidth;if(!t)return wp.element.createElement("div",{ref:function(t){return e._gallery=t}}," ");var n,r,o=this.props,i=o.margin,a=o.onClick,s=o.direction,l=o.photos,c=t-1;if("row"===s){var u=this.props,p=u.limitNodeSearch,f=u.targetRowHeight;"function"==typeof p&&(p=p(t)),"function"==typeof f&&(f=f(t)),void 0===p&&(p=1,t>=450&&(p=function(e){return Jo(e.containerWidth/e.targetRowHeight/1.5)+8}({containerWidth:t,targetRowHeight:f}))),n={display:"flex",flexWrap:"wrap",flexDirection:"row"},r=ai({containerWidth:c,limitNodeSearch:p,targetRowHeight:f,margin:i,photos:l})}if("column"===s){var d=this.props.columns;"function"==typeof d&&(d=d(t)),void 0===d&&(d=1,t>=500&&(d=2),t>=900&&(d=3),t>=1500&&(d=4)),n={position:"relative"},r=function(e){for(var t=e.columns,n=e.margin,r=(e.containerWidth-2*n*t)/t,o=e.photos.map((function(e){var t=e.height/e.width*r;return ei(ei({},e),{},{width:Jo(r,1),height:Jo(t,1)})})),i=[],a=[],s=0;s<t;s++)i[s]=Jo(s*(r+2*n),1),a[s]=0;var l=o.map((function(e){var t=a.reduce((function(e,t,n){return t<a[e]?n:e}),0);e.top=a[t],e.left=i[t],a[t]=a[t]+e.height+2*n;var r=a.reduce((function(e,t,n){return t>a[e]?n:e}),0);return e.containerHeight=a[r],e}));return l}({containerWidth:c,columns:parseInt(d),margin:i,photos:l}),n.height=r[r.length-1].containerHeight}var h=this.props,m=h.clientId,g=h.targetRowHeight,v=h.renderImage,b=void 0===v?Ko:v,y=h.setAttributes,w=h.attributes;return wp.element.createElement("div",{className:"react-photo-gallery--gallery"},wp.element.createElement("div",{ref:function(t){return e._gallery=t},style:n},r.map((function(t,n){var r=t.left,o=t.top,l=(t.key,t.containerHeight,function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,li));return wp.element.createElement(b,{key:t.id,margin:i,index:n,photo:l,direction:s,left:r,top:o,max_height:g,clientId:m,onClick:a?e.handleClick:null,setAttributes:y,attributes:w})}))))}}],n&&ui(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(P().Component);gi.propTypes={photos:mo().arrayOf(Xo).isRequired,direction:mo().string,onClick:mo().func,columns:mo().oneOfType([mo().func,mo().number,mo().string]),targetRowHeight:mo().oneOfType([mo().func,mo().number]),limitNodeSearch:mo().oneOfType([mo().func,mo().number]),margin:mo().number,renderImage:mo().func},gi.defaultProps={margin:2,direction:"row",targetRowHeight:300};const vi=gi;function bi(e){return bi="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},bi(e)}function yi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Oi(e,t){return Oi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Oi(e,t)}function _i(e,t){if(t&&("object"===bi(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)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Si(e){return Si=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Si(e)}function xi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ei=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Oi(e,t)}(a,e);var t,n,r,o,i=(r=a,o=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}}(),function(){var e,t=Si(r);if(o){var n=Si(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return _i(this,e)});function a(e){return yi(this,a),i.apply(this,arguments)}return t=a,n=[{key:"render",value:function(){for(var e={},t=[],n=0;n<this.props.columns;n++)e["column".concat(n)]=[];for(var r=0;r<this.props.children.length;r++){var o=r%this.props.columns;e["column".concat(o)].push(wp.element.createElement("div",{key:r,style:{marginBottom:"".concat(this.props.margin,"px")}},this.props.children[r]))}for(var i=0;i<this.props.columns;i++)t.push(wp.element.createElement("div",{key:i,style:{marginLeft:"".concat(i>0?this.props.margin:0,"px"),flex:1}},e["column".concat(i)]));return wp.element.createElement("div",{className:"envira-gallery-wrap envira-gallery-isotope",style:{display:"flex"}},t)}}],n&&wi(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(t.Component);xi(Ei,"propTypes",{columns:mo().number.isRequired,margin:mo().number.isRequired,images:mo().arrayOf(mo().element)}),xi(Ei,"defaultProps",{columns:2,margin:0});const ki=Ei;function Ci(e){return Ci="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},Ci(e)}function Pi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ii(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ji(e,t){return ji=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ji(e,t)}function Mi(e,t){if(t&&("object"===Ci(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)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ri(e){return Ri=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ri(e)}function Ti(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ai=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ji(e,t)}(a,e);var t,n,r,o,i=(r=a,o=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}}(),function(){var e,t=Ri(r);if(o){var n=Ri(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Mi(this,e)});function a(e){return Pi(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props.columns,t="0"!==e?e+"-columns":"automatic",n=no()("envira-gallery-public","envira-clear",Ti({}," envira-gallery-".concat(t),!0));return wp.element.createElement("div",{className:"envira-gallery-wrap"},wp.element.createElement("div",{className:n},this.props.children))}}])&&Ii(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(t.Component);Ti(Ai,"propTypes",{columns:mo().number.isRequired,margin:mo().number.isRequired,children:mo().arrayOf(mo().element)}),Ti(Ai,"defaultProps",{columns:2,margin:0});const Li=Ai;var Di=n(225),Fi={};function Vi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Fi.styleTagTransform=S(),Fi.setAttributes=y(),Fi.insert=v().bind(null,"head"),Fi.domAPI=m(),Fi.insertStyleElement=O(),d()(Di.Z,Fi),Di.Z&&Di.Z.locals&&Di.Z.locals;var Ni=function(e){var t,n=e.className,r=e.big,o=e.color;return wp.element.createElement(br.Placeholder,null,wp.element.createElement("div",{className:"envira-isLoading"},wp.element.createElement("div",{className:no()("envira-loading",(t={},Vi(t,n,n),Vi(t,"big",r),Vi(t,o,o),t))},wp.element.createElement("div",null),wp.element.createElement("div",null),wp.element.createElement("div",null),wp.element.createElement("div",null))))};Ni.propTypes={big:mo().bool,color:mo().oneOf(["green","gray"])},Ni.defaultProps={big:!1,color:"green"};const Ui=Ni;var Bi=n(90),zi={};function Hi(e){return Hi="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},Hi(e)}function $i(){return $i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$i.apply(this,arguments)}function Gi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Zi(e,t){return Zi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Zi(e,t)}function qi(e,t){if(t&&("object"===Hi(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)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Yi(e){return Yi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Yi(e)}zi.styleTagTransform=S(),zi.setAttributes=y(),zi.insert=v().bind(null,"head"),zi.domAPI=m(),zi.insertStyleElement=O(),d()(Bi.Z,zi),Bi.Z&&Bi.Z.locals&&Bi.Z.locals;var Xi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zi(e,t)}(l,e);var n,r,o,i,a=(o=l,i=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}}(),function(){var e,t=Yi(o);if(i){var n=Yi(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return qi(this,e)});function l(e){var t;return Gi(this,l),(t=a.apply(this,arguments)).state={isLoadingGallery:!0,isotope:!1,activeGallery:null},t}return n=l,r=[{key:"shouldComponentUpdate",value:function(){return!0}},{key:"renderGallery",value:function(){var e=this.state,t=(e.isLoadingGallery,e.activeGallery,e.selectedImage,this.props),n=t.clientId,r=t.attributes,o=t.columns,i=t.isotope,a=t.row_height,s=t.margins,l=t.custom_margins,c=t.images,u=this.props;if(0===parseInt(o)){var p="custom"===s?l:s;return wp.element.createElement(vi,$i({photos:c,clientID:n,targetRowHeight:parseInt(a),margin:parseInt(p)},u))}return i?wp.element.createElement(ki,{columns:parseInt(o)},Object.keys(c).map((function(e){return wp.element.createElement(fo,$i({key:e,data:c[e],attributes:r},u))}))):wp.element.createElement(Li,{columns:parseInt(o)},Object.keys(c).map((function(e){return wp.element.createElement(fo,$i({key:e,data:c[e],attributes:r},u))})))}},{key:"render",value:function(){var e=this.props,n=e.isSelected,r=e.images;return null!=r?null!=r?wp.element.createElement(t.Fragment,null,wp.element.createElement(vr.MediaUploadCheck,null,wp.element.createElement(br.DropZone,{onFilesDrop:this.props.onFilesUpload})),this.renderGallery(),n&&wp.element.createElement("div",{className:"envira-uploader"},wp.element.createElement(vr.MediaUploadCheck,null,wp.element.createElement(br.FormFileUpload,{islarge:"true",className:"envira-media__button",onChange:this.props.onUpload,accept:"image/*",multiple:!0,icon:"plus"},(0,s.__)("Upload")),wp.element.createElement(vr.MediaUpload,{onSelect:this.props.onSelect,allowedTypes:["image"],multiple:!0,render:function(e){var t=e.open;return wp.element.createElement(br.IconButton,{className:"envira-media__button",label:(0,s.__)("Upload from Media Library"),icon:"format-gallery",onClick:t},(0,s.__)("Media Library"))}})))):wp.element.createElement(t.Fragment,null,wp.element.createElement(vr.MediaUploadCheck,null,wp.element.createElement(br.DropZone,{onFilesDrop:this.props.onFilesUpload}),wp.element.createElement(br.FormFileUpload,{islarge:"true",className:"editor-media-placeholder__button",onChange:this.props.onUpload,accept:"image/*",multiple:!0},(0,s.__)("Upload")),wp.element.createElement(vr.MediaUpload,{multiple:!0,onSelect:this.props.onSelect,value:{}.id,render:function(e){var t=e.open;return wp.element.createElement(br.Button,{islarge:"true",className:"editor-media-placeholder__button",onClick:t},(0,s.__)("Media Library"))}}))):wp.element.createElement(t.Fragment,null,wp.element.createElement(Ui,null))}}],r&&Wi(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),l}(t.Component);const Ki=(0,l.compose)([(0,a.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock(n);return{clientId:n,galleryId:r.attributes.galleryId,columns:r.attributes.columns,row_height:r.attributes.row_height,margins:r.attributes.margins,isotope:r.attributes.isotope,custom_margins:r.attributes.custom_margins,image_size:r.attributes.image_size,editMode:r.attributes.editMode,images:r.attributes.images,isLoading:r.attributes.isLoading,attributes:r.attributes}})),(0,a.withDispatch)((function(e,t){var n=t.clientId;return{setLoading:function(t){e("core/block-editor").updateBlockAttributes(n,{isLoading:t})},setGallery:function(t){e("core/block-editor").updateBlockAttributes(n,{galleryId:t})},onActivateGallery:function(t){if(void 0===t)return null;e("core/block-editor").updateBlockAttributes(n,{columns:t.columns,row_height:t.justified_row_height,margins:"0"!=t.columns?t.gutter:t.justified_margins,custom_margins:"0"!=t.columns?t.gutter:t.justified_margins,lightbox_enabled:t.lightbox_enabled,isotope:t.isotope})}}}))])(Xi);function Ji(e){return Ji="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},Ji(e)}function Qi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ea(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ta(e,t){return ta=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ta(e,t)}function na(e,t){if(t&&("object"===Ji(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)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ra(e){return ra=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ra(e)}var oa=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ta(e,t)}(a,e);var t,n,r,o,i=(r=a,o=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}}(),function(){var e,t=ra(r);if(o){var n=ra(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return na(this,e)});function a(e){return Qi(this,a),i.apply(this,arguments)}return t=a,n=[{key:"render",value:function(){return wp.element.createElement(br.Placeholder,{key:"placeholder",className:"envira-block__placeholder"},wp.element.createElement("div",{className:"envira-block__placeholder-brand"},ya),wp.element.createElement("div",{className:"envira-block-instructions"},wp.element.createElement("p",null,(0,s.__)("Drop your images here, upload new images, select images from your Media Library or select an existing gallery."))),wp.element.createElement("div",{className:"envira-block-select"},wp.element.createElement(Tr,{clientId:this.props.clientId,placeholder:(0,s.__)("Search for a gallery.")})),wp.element.createElement(vr.MediaUploadCheck,null,wp.element.createElement(br.DropZone,{onFilesDrop:this.props.onFilesUpload}),wp.element.createElement(br.FormFileUpload,{islarge:"true",className:"editor-media-placeholder__button",onChange:this.props.onUpload,accept:"image/*",multiple:!0},(0,s.__)("Upload")),wp.element.createElement(vr.MediaUpload,{multiple:!0,onSelect:this.props.onSelect,value:{}.id,render:function(e){var t=e.open;return wp.element.createElement(br.Button,{islarge:"true",className:"editor-media-placeholder__button",onClick:t},(0,s.__)("Media Library"))}})))}}],n&&ea(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(t.Component);const ia=(0,l.compose)([(0,a.withSelect)((function(e){return{pageTitle:(0,e("core/editor").getEditedPostAttribute)("title")}})),(0,a.withDispatch)((function(e,t){var n=t.clientId;return{setGallery:function(t){e("core/block-editor").updateBlockAttributes(n,{galleryId:t})}}}))])(oa),aa=window.lodash;var sa=function(e){var t=(0,aa.pick)(e,["alt","id","link","caption","media_details"]);return t.src=(0,aa.get)(e,["sizes","large","url"])||(0,aa.get)(e,["media_details","sizes","large","source_url"])||e.url,t.media_details&&(t.height=t.media_details.height,t.width=t.media_details.width),t};function la(e){return la="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},la(e)}function ca(){return ca=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ca.apply(this,arguments)}function ua(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function fa(e,t){return fa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},fa(e,t)}function da(e,t){if(t&&("object"===la(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ha(e)}function ha(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ma(e){return ma=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ma(e)}function ga(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var va=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fa(e,t)}(l,e);var n,r,o,a,s=(o=l,a=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}}(),function(){var e,t=ma(o);if(a){var n=ma(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return da(this,e)});function l(e){var t;return ua(this,l),ga(ha(t=s.apply(this,arguments)),"getActiveGallery",(function(e){return null==e?null:i()({path:"/wp/v2/envira-gallery/"+e}).then((function(e){return e})).then((function(e){return t.props.setAttributes({title:e.gallery_data.config.title,images:e.gallery_data.gallery,columns:e.gallery_data.config.columns,margins:"custom",custom_margins:0===parseInt(e.gallery_data.config.columns)?e.gallery_data.config.justified_margins:e.gallery_data.config.margin,row_height:e.gallery_data.config.justified_row_height,lazyload_enabled:e.gallery_data.config.lazy_loading,lightbox_enabled:e.gallery_data.config.lightbox_enabled,lightbox_theme:e.gallery_data.config.lightbox_theme,isotope:e.gallery_data.config.isotope}),e.gallery_data}))})),ga(ha(t),"onUpload",(function(e){t.onFilesUpload(e.target.files)})),ga(ha(t),"onSelect",(function(e){var n=t.props.attributes,r=e.map(sa);null===n.galleryId?t.createGallery(r):t.updateGallery(r)})),ga(ha(t),"onFilesUpload",(function(e){var n=t.props,r=n.setAttributes,o=n.attributes,i=o.images;t.setState({progress:0,isLoadingImages:!0});var a,s=e.length,l=i;(0,c.mediaUpload)({allowedTypes:["image"],filesList:e,onFileChange:function(e){var n=e.filter((function(e){return(0,u.isBlobURL)(e.url)}));if(0===parseInt(o.columns)){var i=e.filter((function(e){return!0!==(0,u.isBlobURL)(e.url)})),c=(a=i.map(sa)).length/s*100;t.setState({progress:c,isLoadingImages:!0})}else a=e.map(sa);if(l){envira_args.media_position;var p=l.concat(a);r({images:p})}else r({images:a});void 0!==n&&0!==n.length||(t.setState({isLoadingImages:!1,progress:0}),null===o.galleryId?t.createGallery(a):t.updateGallery(a))}})})),ga(ha(t),"updateGallery",(function(e){var n=t.props.attributes,r={gallery_data:{gallery:e}};return i()({path:"/wp/v2/envira-gallery/".concat(n.galleryId),method:"PUT",data:r}).then((function(e){return e})).then((function(e){return t.props.setAttributes({images:e.gallery_data.gallery}),e}))})),t.state={progress:0,isLoadingImages:!1},t}return n=l,(r=[{key:"componentDidMount",value:function(){this._mounted=!0,null!==this.props.attributes.galleryId&&this.getActiveGallery(this.props.attributes.galleryId)}},{key:"componentWillUnmount",value:function(){this._mounted=!1}},{key:"componentDidUpdate",value:function(e){var t=this.props.attributes.galleryId;this.props.isSelected||this.props.setAttributes({selectedImage:null}),e.attributes.galleryId!=t&&this.getActiveGallery(t)}},{key:"createGallery",value:function(e){var t=this,n={title:this.props.pageTitle,status:"publish",gallery_data:{gallery:e}};return i()({path:"/wp/v2/envira-gallery",method:"POST",data:n}).then((function(e){return e})).then((function(e){return t.props.setGallery(e.id),e}))}},{key:"renderToolbar",value:function(){return wp.element.createElement(Gr,ca({onSelect:this.onSelect},this.props))}},{key:"renderControls",value:function(){return wp.element.createElement($r,this.props)}},{key:"renderBlock",value:function(){var e,n=this.props,r=n.clientId,o=n.attributes,i=o.galleryId,a=o.isLoading,s=o.images,l=this.state,c=l.isLoadingImages,u=l.progress;return c&&(e=wp.element.createElement(p.Progress,{percent:u,status:"active"})),a?wp.element.createElement(Ui,null):null===i?wp.element.createElement(t.Fragment,null,e,wp.element.createElement(ia,{onFilesUpload:this.onFilesUpload,onUpload:this.onUpload,onSelect:this.onSelect,clientId:r})):wp.element.createElement(t.Fragment,null,e,wp.element.createElement(Ki,ca({onFilesUpload:this.onFilesUpload,onUpload:this.onUpload,onSelect:this.onSelect,images:s},this.props)))}},{key:"render",value:function(){return wp.element.createElement(t.Fragment,null,wp.element.createElement(eo,this.props),this.renderToolbar(),this.renderControls(),this.renderBlock())}}])&&pa(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),l}(t.Component);const ba=(0,l.compose)([(0,a.withSelect)((function(e){return{pageTitle:(0,e("core/editor").getEditedPostAttribute)("title")}})),(0,a.withDispatch)((function(e,t){var n=t.clientId;return{setGallery:function(t){e("core/block-editor").updateBlockAttributes(n,{galleryId:t})}}}))])(va),ya=wp.element.createElement("svg",{id:"envira-logo",xmlns:"http://www.w3.org/2000/svg",width:"400",height:"41.333",viewBox:"0 0 400 41.333"},wp.element.createElement("g",{id:"Layer_1_1_"},wp.element.createElement("path",{d:"M80.339,279.15c0.337,0.628,0.932,1.585,1.35,1.892c0.419,0.308,0.874,0.533-0.091,0.126 c-0.964-0.408-1.669-1.564-2.136-2.439c-0.359-0.673-0.668-1.286-1.338-1.741c-0.67-0.455,0.078-0.135,0.078-0.135 C79.427,277.451,79.871,278.276,80.339,279.15 M79.053,281.124c1.335,1.04,2.601,0.6,3.179,0.539l1.041,1.035h0.384l-1.196-1.188 c-0.009-0.712,1.636-5.325-5.441-5.325C77.792,278.841,77.719,280.084,79.053,281.124",fill:"#7bc049",transform:"matrix(4.08032 0 0 4.08032 -309.725 -1118.87)"}),wp.element.createElement("g",{transform:"matrix(4.08032 0 0 4.08032 -299.725 -1118.87)",fill:"#231f20"},wp.element.createElement("path",{d:"M82.952,276.099h4.718v0.455h-4.225v2.605h3.799v0.455h-3.799v2.662h4.273v0.455h-4.765V276.099z"}),wp.element.createElement("path",{d:"M89.679,276.099h0.464l4.576,5.77v-5.77h0.474v6.632h-0.369l-4.671-5.893v5.893h-0.474V276.099z"}),wp.element.createElement("path",{d:"M96.974,276.099h0.55l2.596,6.101l2.605-6.101h0.521l-2.918,6.679h-0.436L96.974,276.099z"}),wp.element.createElement("rect",{x:"105.093",y:"276.099",width:"0.493",height:"6.632"}),wp.element.createElement("path",{d:"M110.73,279.538c0.278,0,0.535-0.035,0.772-0.104c0.237-0.069,0.441-0.169,0.611-0.298 c0.171-0.129,0.305-0.287,0.403-0.474c0.098-0.186,0.147-0.399,0.147-0.639v-0.019c0-0.448-0.166-0.802-0.497-1.061 c-0.332-0.259-0.801-0.388-1.407-0.388h-2.264v2.984H110.73z M108.002,276.099h2.785c0.411,0,0.774,0.058,1.09,0.175 s0.575,0.276,0.777,0.478c0.158,0.158,0.281,0.343,0.369,0.554s0.133,0.437,0.133,0.677v0.019c0,0.278-0.049,0.526-0.147,0.744 c-0.098,0.218-0.234,0.406-0.407,0.564c-0.174,0.158-0.379,0.286-0.616,0.384c-0.237,0.098-0.494,0.166-0.772,0.204l2.189,2.833 h-0.625l-2.113-2.747h-0.019h-2.151v2.747h-0.493V276.099z"}),wp.element.createElement("path",{d:"M119.721,280.429l-1.743-3.837l-1.753,3.837H119.721z M117.751,276.052h0.474l3.089,6.679h-0.54 l-0.843-1.857h-3.913l-0.843,1.857h-0.512L117.751,276.052z"}),wp.element.createElement("path",{d:"M126.107,282.845c-0.518,0-0.988-0.087-1.412-0.261c-0.423-0.174-0.785-0.414-1.085-0.72 c-0.3-0.306-0.532-0.666-0.696-1.08c-0.164-0.414-0.246-0.864-0.246-1.35v-0.019c0-0.461,0.084-0.9,0.251-1.317 c0.167-0.417,0.403-0.782,0.706-1.094c0.303-0.313,0.665-0.561,1.085-0.744c0.42-0.183,0.88-0.275,1.378-0.275 c0.291,0,0.554,0.021,0.791,0.062c0.237,0.041,0.456,0.099,0.658,0.175c0.202,0.076,0.393,0.169,0.573,0.279 c0.18,0.111,0.355,0.238,0.526,0.384l-0.739,0.881c-0.126-0.107-0.256-0.205-0.388-0.294c-0.133-0.088-0.272-0.163-0.417-0.223 c-0.145-0.06-0.305-0.107-0.478-0.142c-0.174-0.035-0.365-0.052-0.573-0.052c-0.303,0-0.586,0.063-0.848,0.189 c-0.262,0.126-0.489,0.295-0.682,0.507c-0.193,0.212-0.344,0.46-0.455,0.744c-0.111,0.284-0.166,0.584-0.166,0.9v0.019 c0,0.341,0.054,0.657,0.161,0.947c0.107,0.291,0.261,0.54,0.46,0.748c0.199,0.208,0.436,0.373,0.711,0.493 c0.275,0.12,0.583,0.18,0.924,0.18c0.316,0,0.611-0.046,0.886-0.137s0.513-0.213,0.715-0.365v-1.241h-1.696v-1.014h2.823v2.785 c-0.164,0.139-0.346,0.272-0.545,0.398c-0.199,0.126-0.414,0.237-0.644,0.332c-0.231,0.095-0.478,0.169-0.744,0.223 C126.675,282.818,126.397,282.845,126.107,282.845z"}),wp.element.createElement("path",{d:"M134.785,280.097l-1.146-2.653l-1.137,2.653H134.785z M133.118,276.052h1.08l2.918,6.679h-1.232 l-0.673-1.601h-3.136l-0.682,1.601H130.2L133.118,276.052z"}),wp.element.createElement("path",{d:"M138.632,276.099h1.165v5.571h3.486v1.061h-4.652V276.099z"}),wp.element.createElement("path",{d:"M144.875,276.099h1.165v5.571h3.486v1.061h-4.652V276.099z"}),wp.element.createElement("path",{d:"M151.119,276.099h4.917v1.042h-3.752v1.724h3.325v1.042h-3.325v1.781h3.799v1.042h-4.964V276.099z"}),wp.element.createElement("path",{d:"M160.716,279.387c0.417,0,0.748-0.099,0.995-0.298c0.246-0.199,0.37-0.469,0.37-0.81v-0.019 c0-0.36-0.12-0.633-0.36-0.82c-0.24-0.186-0.578-0.279-1.014-0.279h-1.696v2.226H160.716z M157.845,276.099h2.956 c0.417,0,0.786,0.058,1.108,0.175c0.322,0.117,0.591,0.279,0.805,0.488c0.177,0.183,0.313,0.395,0.407,0.635 c0.095,0.24,0.142,0.505,0.142,0.796v0.019c0,0.272-0.039,0.516-0.118,0.734c-0.079,0.218-0.188,0.411-0.327,0.578 c-0.139,0.167-0.305,0.309-0.497,0.426s-0.406,0.207-0.64,0.27l1.791,2.511h-1.374l-1.63-2.312h-0.019h-1.44v2.312h-1.165V276.099 z"}),wp.element.createElement("path",{d:"M167.026,280.116l-2.634-4.017h1.374l1.857,2.937l1.876-2.937h1.336l-2.634,3.989v2.643h-1.175 V280.116z"}))));var wa,Oa,_a;const Sa=wp.element.createElement("svg",(_a="0 0 448 512",(Oa="viewBox")in(wa={width:"20px",height:"20px",viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg"})?Object.defineProperty(wa,Oa,{value:_a,enumerable:!0,configurable:!0,writable:!0}):wa[Oa]=_a,wa),wp.element.createElement("path",{fill:"#7abd4e",d:"M0 32c477.6 0 366.6 317.3 367.1 366.3L448 480h-26l-70.4-71.2c-39 4.2-124.4 34.5-214.4-37C47 300.3 52 214.7 0 32zm79.7 46c-49.7-23.5-5.2 9.2-5.2 9.2 45.2 31.2 66 73.7 90.2 119.9 31.5 60.2 79 139.7 144.2 167.7 65 28 34.2 12.5 6-8.5-28.2-21.2-68.2-87-91-130.2-31.7-60-61-118.6-144.2-158.1z"})),xa={id:"envira-gallery",title:(0,s.__)("Envira Gallery"),description:(0,s.__)("Select a gallery below to add it to your page."),icon:Sa,category:"common",keywords:[(0,s.__)("Envira Gallery"),(0,s.__)("Photo"),(0,s.__)("Image")],supports:{align:["wide","full"]},attributes:{galleryId:{type:"int",default:null},title:{type:"string",default:""},columns:{type:"string",default:0},row_height:{type:"string",default:100},margins:{type:"string",default:1},custom_margins:{type:"string",default:1},lightbox_enabled:{type:"boolean",default:!0},lazyload_enabled:{type:"boolean",default:!0},titles_enabled:{type:"boolean",default:!0},captions_enabled:{type:"boolean",default:!0},isotope:{type:"boolean",default:!0},sort_order:{type:"string",default:""},lightbox_theme:{type:"string",default:"base_dark"},editMode:{type:"boolean",default:!1},isLoading:{type:"boolean",default:!1},selectedImage:{type:"string",default:null},images:{type:"array",default:[]}},edit:ba,save:function(e){var n=e.attributes.galleryId,r="[envira-gallery id='".concat(n,"']");return n?wp.element.createElement(t.RawHTML,null,r):null}};var Ea=n(106),ka={};ka.styleTagTransform=S(),ka.setAttributes=y(),ka.insert=v().bind(null,"head"),ka.domAPI=m(),ka.insertStyleElement=O(),d()(Ea.Z,ka),Ea.Z&&Ea.Z.locals&&Ea.Z.locals,(0,e.registerBlockType)("envira/envira-gallery",xa)})(),(window.wp=window.wp||{}).enviraGutenberg=r})();
 
 
 
 
assets/js/envira-gutenberg.js.LICENSE.txt ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*!
2
+ Copyright (c) 2018 Jed Watson.
3
+ Licensed under the MIT License (MIT), see
4
+ http://jedwatson.github.io/classnames
5
+ */
6
+
7
+ /** @license React v16.13.1
8
+ * react-is.production.min.js
9
+ *
10
+ * Copyright (c) Facebook, Inc. and its affiliates.
11
+ *
12
+ * This source code is licensed under the MIT license found in the
13
+ * LICENSE file in the root directory of this source tree.
14
+ */
assets/js/envira.js CHANGED
@@ -1,294 +1,352 @@
1
  /**
2
- * envira.js is a placeholder, which CodeKit attaches the following JS files to, before compiling as min/envira-min.js:
3
- */
4
  import './lib/jquery.justifiedGallery.js';
5
  import './lib/enviraJustifiedGallery-extensions.js';
6
  import './lib/touchsupport.js';
7
  import './lib/touchswipe.js';
8
  import './lib/mousewheel.js';
9
  import './lib/imagesloaded.js';
10
- import './lib/isotope.js';
11
  import './lib/fancybox.js';
12
  import './lib/responsivelyLazy.js';
13
 
14
  /**
15
- * To load more JS resources:
16
- * - Add them to the lib subfolder
17
- * - Add the to the imports directive of this file in CodeKit
18
- */
19
 
20
  /**
21
- * If a lightbox caption's link is an anchor, close the lightbox!
22
- */
23
- jQuery( document ).ready( function( $ ) {
24
-
25
  let envira_container;
26
 
27
- $( 'body' ).on( 'click', 'div.envirabox-title a[href*="#"]:not([href="#"])', function( e ) {
28
-
29
- if ( location.pathname.replace( /^\//, '' ) == this.pathname.replace( /^\//, '' ) && location.hostname == this.hostname ) {
30
- $.envirabox.close();
31
- return false;
32
- }
33
-
34
- } );
35
-
36
- /* setup lazy load event */
37
- $( document ).on( "envira_image_lazy_load_complete", function( event ) {
38
- if ( event !== undefined && ( ( event.image_id !== undefined && event.image_id !== null ) ) ) {
39
-
40
- // var envira_container = $('div.envira-gallery-public').find('img#' + event.image_id);
41
-
42
- if ($( '#envira-gallery-wrap-' + event.gallery_id ).find( '#' + event.video_id + ' iframe' ).length > 0) {
43
- envira_container = $( '#envira-gallery-wrap-' + event.gallery_id ).find( '#' + event.video_id + ' iframe' );
44
- } else if ($( '#envira-gallery-wrap-' + event.gallery_id ).find( '#' + event.video_id + ' video' ).length > 0) {
45
- envira_container = $( '#envira-gallery-wrap-' + event.gallery_id ).find( '#' + event.video_id + ' video' );
46
- } else {
47
- envira_container = $( '#envira-gallery-wrap-' + event.gallery_id ).find( 'img#' + event.image_id );
48
- }
49
-
50
- if ( $('#envira-gallery-wrap-' + event.gallery_id).find('div.envira-gallery-public').hasClass('envira-gallery-0-columns') ) {
51
- /* this is an automatic gallery */
52
- $( envira_container ).closest('div.envira-gallery-item-inner').find( 'div.envira-gallery-position-overlay' ).delay( 100 ).show();
53
- } else {
54
- /* this is a legacy gallery */
55
- $( envira_container ).closest('div.envira-gallery-item-inner').find( 'div.envira-gallery-position-overlay' ).delay( 100 ).show();
56
-
57
- /* re-do the padding bottom */
58
- /* $padding_bottom = ( $output_height / $output_width ) * 100; */
59
-
60
- var envira_lazy_width = $( envira_container ).closest('div.envira-gallery-item-inner').find('.envira-lazy').width();
61
- var ratio1 = ( event.naturalHeight / event.naturalWidth );
62
- var ratio2 = ( event.naturalHeight / envira_lazy_width );
63
-
64
- if ( ratio2 < ratio1 ) {
65
- var ratio = ratio2;
66
- } else {
67
- var ratio = ratio1;
68
- }
69
-
70
- var padding_bottom = ratio * 100;
71
-
72
- $( envira_container ).closest('div.envira-gallery-item-inner').find('.envira-lazy').css('padding-bottom', padding_bottom + '%');
73
- $( envira_container ).closest('div.envira-gallery-item-inner').find('.envira-lazy').data('envira-changed', 'true');
74
-
75
- if ( window["envira_container_" + event.gallery_id] !== undefined ) {
76
-
77
- window["envira_container_" + event.gallery_id].on( 'layoutComplete',
78
- function( event, laidOutItems ) {
79
-
80
- $( envira_container ).closest('div.envira-gallery-item-inner').find( 'span.envira-title' ).delay( 1000 ).css('visibility', 'visible');
81
- $( envira_container ).closest('div.envira-gallery-item-inner').find( 'span.envira-caption' ).delay( 1000 ).css('visibility', 'visible');
82
-
83
-
84
- }
85
- );
86
-
87
- }
88
-
89
-
90
- $('#envira-gallery-' + event.gallery_id).enviratope('layout');
91
-
92
- }
93
-
94
- }
95
- });
96
-
97
- } );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
98
 
99
  function jg_effect_desaturate(src) {
100
- var supportsCanvas = !!document.createElement('canvas').getContext;
101
- if (supportsCanvas) {
102
- var canvas = document.createElement('canvas'),
103
- context = canvas.getContext('2d'),
104
- imageData, px, length, i = 0, gray,
105
- img = new Image();
106
-
107
- img.src = src;
108
- canvas.width = img.width;
109
- canvas.height = img.height;
110
- context.drawImage(img, 0, 0);
111
-
112
- imageData = context.getImageData(0, 0, canvas.width, canvas.height);
113
- px = imageData.data;
114
- length = px.length;
115
-
116
- for (; i < length; i += 4) {
117
- gray = px[i] * .3 + px[i + 1] * .59 + px[i + 2] * .11;
118
- px[i] = px[i + 1] = px[i + 2] = gray;
119
- }
120
-
121
- context.putImageData(imageData, 0, 0);
122
- return canvas.toDataURL();
123
- } else {
124
- return src;
125
- }
 
 
 
 
126
  }
127
 
128
  function jg_effect_threshold(src) {
129
- var supportsCanvas = !!document.createElement('canvas').getContext;
130
- if (supportsCanvas) {
131
- var canvas = document.createElement('canvas'),
132
- context = canvas.getContext('2d'),
133
- imageData, px, length, i = 0, gray,
134
- img = new Image();
135
-
136
- img.src = src;
137
- canvas.width = img.width;
138
- canvas.height = img.height;
139
- context.drawImage(img, 0, 0);
140
-
141
- imageData = context.getImageData(0, 0, canvas.width, canvas.height);
142
- px = imageData.data;
143
- length = px.length;
144
-
145
- threshold = 120;
146
-
147
- for (var i=0; i<length; i+=4) {
148
- var r = px[i];
149
- var g = px[i+1];
150
- var b = px[i+2];
151
- var v = (0.2126*r + 0.7152*g + 0.0722*b >= threshold) ? 255 : 0;
152
- px[i] = px[i+1] = px[i+2] = v
153
- }
154
-
155
- context.putImageData(imageData, 0, 0);
156
- return canvas.toDataURL();
157
- } else {
158
- return src;
159
- }
 
 
 
 
160
  }
161
 
162
  function jg_effect_blur(src) {
163
- var supportsCanvas = !!document.createElement('canvas').getContext;
164
- if (supportsCanvas) {
165
- var canvas = document.createElement('canvas'),
166
- context = canvas.getContext('2d'),
167
- imageData, px, length, i = 0, gray, top_x = 0, top_y = 0, radius = 30, iterations = 1
168
- img = new Image();
169
-
170
- img.src = src;
171
- canvas.width = img.width;
172
- canvas.height = img.height;
173
- context.drawImage(img, 0, 0);
174
-
175
- var imageData;
176
- var width = img.width;
177
- var height = img.height;
178
-
179
- imageData = context.getImageData( top_x, top_y, width, height );
180
- var pixels = imageData.data;
181
-
182
- var rsum,gsum,bsum,asum,x,y,i,p,p1,p2,yp,yi,yw,idx;
183
- var wm = width - 1;
184
- var hm = height - 1;
185
- var wh = width * height;
186
- var rad1 = radius + 1;
187
-
188
- var r = [];
189
- var g = [];
190
- var b = [];
191
-
192
- var mul_sum = mul_table[radius];
193
- var shg_sum = shg_table[radius];
194
-
195
- var vmin = [];
196
- var vmax = [];
197
-
198
- while ( iterations-- > 0 ){
199
- yw = yi = 0;
200
-
201
- for ( y=0; y < height; y++ ){
202
- rsum = pixels[yw] * rad1;
203
- gsum = pixels[yw+1] * rad1;
204
- bsum = pixels[yw+2] * rad1;
205
-
206
- for( i = 1; i <= radius; i++ ){
207
- p = yw + (((i > wm ? wm : i )) << 2 );
208
- rsum += pixels[p++];
209
- gsum += pixels[p++];
210
- bsum += pixels[p++];
211
- }
212
-
213
- for ( x = 0; x < width; x++ ){
214
- r[yi] = rsum;
215
- g[yi] = gsum;
216
- b[yi] = bsum;
217
-
218
- if( y==0) {
219
- vmin[x] = ( ( p = x + rad1) < wm ? p : wm ) << 2;
220
- vmax[x] = ( ( p = x - radius) > 0 ? p << 2 : 0 );
221
- }
222
-
223
- p1 = yw + vmin[x];
224
- p2 = yw + vmax[x];
225
-
226
- rsum += pixels[p1++] - pixels[p2++];
227
- gsum += pixels[p1++] - pixels[p2++];
228
- bsum += pixels[p1++] - pixels[p2++];
229
-
230
- yi++;
231
- }
232
- yw += ( width << 2 );
233
- }
234
-
235
- for ( x = 0; x < width; x++ ){
236
- yp = x;
237
- rsum = r[yp] * rad1;
238
- gsum = g[yp] * rad1;
239
- bsum = b[yp] * rad1;
240
-
241
- for( i = 1; i <= radius; i++ ){
242
- yp += ( i > hm ? 0 : width );
243
- rsum += r[yp];
244
- gsum += g[yp];
245
- bsum += b[yp];
246
- }
247
-
248
- yi = x << 2;
249
- for ( y = 0; y < height; y++){
250
- pixels[yi] = (rsum * mul_sum) >>> shg_sum;
251
- pixels[yi+1] = (gsum * mul_sum) >>> shg_sum;
252
- pixels[yi+2] = (bsum * mul_sum) >>> shg_sum;
253
-
254
- if( x == 0 ) {
255
- vmin[y] = ( ( p = y + rad1) < hm ? p : hm ) * width;
256
- vmax[y] = ( ( p = y - radius) > 0 ? p * width : 0 );
257
- }
258
-
259
- p1 = x + vmin[y];
260
- p2 = x + vmax[y];
261
-
262
- rsum += r[p1] - r[p2];
263
- gsum += g[p1] - g[p2];
264
- bsum += b[p1] - b[p2];
265
-
266
- yi += width << 2;
267
- }
268
- }
269
- }
270
- context.putImageData( imageData, top_x, top_y );
271
-
272
- return canvas.toDataURL();
273
-
274
- } else {
275
- return src;
276
- }
 
 
 
 
 
 
 
277
  }
278
 
279
- function jg_effect_vintage( img ) {
280
- var options = {
281
- onError: function() {
282
- alert('ERROR');
283
- }
284
- };
285
- var effect = {
286
- vignette: 1,
287
- sepia: true,
288
- noise: 50,
289
- desaturate: .2,
290
- lighten: .1
291
-
292
- };
293
- new VintageJS(img, options, effect);
294
- }
1
  /**
2
+ * envira.js is a placeholder, which CodeKit attaches the following JS files to, before compiling as min/envira-min.js:
3
+ */
4
  import './lib/jquery.justifiedGallery.js';
5
  import './lib/enviraJustifiedGallery-extensions.js';
6
  import './lib/touchsupport.js';
7
  import './lib/touchswipe.js';
8
  import './lib/mousewheel.js';
9
  import './lib/imagesloaded.js';
 
10
  import './lib/fancybox.js';
11
  import './lib/responsivelyLazy.js';
12
 
13
  /**
14
+ * To load more JS resources:
15
+ * - Add them to the lib subfolder
16
+ * - Add the to the imports directive of this file in CodeKit
17
+ */
18
 
19
  /**
20
+ * If a lightbox caption's link is an anchor, close the lightbox!
21
+ */
22
+ jQuery(document).ready(function ($) {
 
23
  let envira_container;
24
 
25
+ $('body').on(
26
+ 'click',
27
+ 'div.envirabox-title a[href*="#"]:not([href="#"])',
28
+ function (e) {
29
+ if (
30
+ location.pathname.replace(/^\//, '') ==
31
+ this.pathname.replace(/^\//, '') &&
32
+ location.hostname == this.hostname
33
+ ) {
34
+ $.envirabox.close();
35
+ return false;
36
+ }
37
+ },
38
+ );
39
+
40
+ /* setup lazy load event */
41
+ $(document).on('envira_image_lazy_load_complete', function (event) {
42
+ if (
43
+ event !== undefined &&
44
+ event.image_id !== undefined &&
45
+ event.image_id !== null
46
+ ) {
47
+ // var envira_container = $('div.envira-gallery-public').find('img#' + event.image_id);
48
+
49
+ if (
50
+ $('#envira-gallery-wrap-' + event.gallery_id).find(
51
+ '#' + event.video_id + ' iframe',
52
+ ).length > 0
53
+ ) {
54
+ envira_container = $(
55
+ '#envira-gallery-wrap-' + event.gallery_id,
56
+ ).find('#' + event.video_id + ' iframe');
57
+ } else if (
58
+ $('#envira-gallery-wrap-' + event.gallery_id).find(
59
+ '#' + event.video_id + ' video',
60
+ ).length > 0
61
+ ) {
62
+ envira_container = $(
63
+ '#envira-gallery-wrap-' + event.gallery_id,
64
+ ).find('#' + event.video_id + ' video');
65
+ } else {
66
+ envira_container = $(
67
+ '#envira-gallery-wrap-' + event.gallery_id,
68
+ ).find('img#' + event.image_id);
69
+ }
70
+
71
+ if (
72
+ $('#envira-gallery-wrap-' + event.gallery_id)
73
+ .find('div.envira-gallery-public')
74
+ .hasClass('envira-gallery-0-columns')
75
+ ) {
76
+ /* this is an automatic gallery */
77
+ $(envira_container)
78
+ .closest('div.envira-gallery-item-inner')
79
+ .find('div.envira-gallery-position-overlay')
80
+ .delay(100)
81
+ .show();
82
+ } else {
83
+ /* this is a legacy gallery */
84
+ $(envira_container)
85
+ .closest('div.envira-gallery-item-inner')
86
+ .find('div.envira-gallery-position-overlay')
87
+ .delay(100)
88
+ .show();
89
+
90
+ /* re-do the padding bottom */
91
+ /* $padding_bottom = ( $output_height / $output_width ) * 100; */
92
+
93
+ var envira_lazy_width = $(envira_container)
94
+ .closest('div.envira-gallery-item-inner')
95
+ .find('.envira-lazy')
96
+ .width();
97
+ var ratio1 = event.naturalHeight / event.naturalWidth;
98
+ var ratio2 = event.naturalHeight / envira_lazy_width;
99
+
100
+ if (ratio2 < ratio1) {
101
+ var ratio = ratio2;
102
+ } else {
103
+ var ratio = ratio1;
104
+ }
105
+
106
+ var padding_bottom = ratio * 100;
107
+
108
+ $(envira_container)
109
+ .closest('div.envira-gallery-item-inner')
110
+ .find('.envira-lazy')
111
+ .css('padding-bottom', padding_bottom + '%');
112
+ $(envira_container)
113
+ .closest('div.envira-gallery-item-inner')
114
+ .find('.envira-lazy')
115
+ .data('envira-changed', 'true');
116
+
117
+ if (
118
+ window['envira_container_' + event.gallery_id] !== undefined
119
+ ) {
120
+ window['envira_container_' + event.gallery_id].on(
121
+ 'layoutComplete',
122
+ function (event, laidOutItems) {
123
+ $(envira_container)
124
+ .closest('div.envira-gallery-item-inner')
125
+ .find('span.envira-title')
126
+ .delay(1000)
127
+ .css('visibility', 'visible');
128
+ $(envira_container)
129
+ .closest('div.envira-gallery-item-inner')
130
+ .find('span.envira-caption')
131
+ .delay(1000)
132
+ .css('visibility', 'visible');
133
+ },
134
+ );
135
+ }
136
+
137
+ $('#envira-gallery-' + event.gallery_id).enviratope('layout');
138
+ }
139
+ }
140
+ });
141
+ });
142
 
143
  function jg_effect_desaturate(src) {
144
+ var supportsCanvas = !!document.createElement('canvas').getContext;
145
+ if (supportsCanvas) {
146
+ var canvas = document.createElement('canvas'),
147
+ context = canvas.getContext('2d'),
148
+ imageData,
149
+ px,
150
+ length,
151
+ i = 0,
152
+ gray,
153
+ img = new Image();
154
+
155
+ img.src = src;
156
+ canvas.width = img.width;
157
+ canvas.height = img.height;
158
+ context.drawImage(img, 0, 0);
159
+
160
+ imageData = context.getImageData(0, 0, canvas.width, canvas.height);
161
+ px = imageData.data;
162
+ length = px.length;
163
+
164
+ for (; i < length; i += 4) {
165
+ gray = px[i] * 0.3 + px[i + 1] * 0.59 + px[i + 2] * 0.11;
166
+ px[i] = px[i + 1] = px[i + 2] = gray;
167
+ }
168
+
169
+ context.putImageData(imageData, 0, 0);
170
+ return canvas.toDataURL();
171
+ } else {
172
+ return src;
173
+ }
174
  }
175
 
176
  function jg_effect_threshold(src) {
177
+ var supportsCanvas = !!document.createElement('canvas').getContext;
178
+ if (supportsCanvas) {
179
+ var canvas = document.createElement('canvas'),
180
+ context = canvas.getContext('2d'),
181
+ imageData,
182
+ px,
183
+ length,
184
+ i = 0,
185
+ gray,
186
+ img = new Image();
187
+
188
+ img.src = src;
189
+ canvas.width = img.width;
190
+ canvas.height = img.height;
191
+ context.drawImage(img, 0, 0);
192
+
193
+ imageData = context.getImageData(0, 0, canvas.width, canvas.height);
194
+ px = imageData.data;
195
+ length = px.length;
196
+
197
+ threshold = 120;
198
+
199
+ for (var i = 0; i < length; i += 4) {
200
+ var r = px[i];
201
+ var g = px[i + 1];
202
+ var b = px[i + 2];
203
+ var v = 0.2126 * r + 0.7152 * g + 0.0722 * b >= threshold ? 255 : 0;
204
+ px[i] = px[i + 1] = px[i + 2] = v;
205
+ }
206
+
207
+ context.putImageData(imageData, 0, 0);
208
+ return canvas.toDataURL();
209
+ } else {
210
+ return src;
211
+ }
212
  }
213
 
214
  function jg_effect_blur(src) {
215
+ var supportsCanvas = !!document.createElement('canvas').getContext;
216
+ if (supportsCanvas) {
217
+ var canvas = document.createElement('canvas'),
218
+ context = canvas.getContext('2d'),
219
+ imageData,
220
+ px,
221
+ length,
222
+ i = 0,
223
+ gray,
224
+ top_x = 0,
225
+ top_y = 0,
226
+ radius = 30,
227
+ iterations = 1;
228
+ img = new Image();
229
+
230
+ img.src = src;
231
+ canvas.width = img.width;
232
+ canvas.height = img.height;
233
+ context.drawImage(img, 0, 0);
234
+
235
+ var imageData;
236
+ var width = img.width;
237
+ var height = img.height;
238
+
239
+ imageData = context.getImageData(top_x, top_y, width, height);
240
+ var pixels = imageData.data;
241
+
242
+ var rsum, gsum, bsum, asum, x, y, i, p, p1, p2, yp, yi, yw, idx;
243
+ var wm = width - 1;
244
+ var hm = height - 1;
245
+ var wh = width * height;
246
+ var rad1 = radius + 1;
247
+
248
+ var r = [];
249
+ var g = [];
250
+ var b = [];
251
+
252
+ var mul_sum = mul_table[radius];
253
+ var shg_sum = shg_table[radius];
254
+
255
+ var vmin = [];
256
+ var vmax = [];
257
+
258
+ while (iterations-- > 0) {
259
+ yw = yi = 0;
260
+
261
+ for (y = 0; y < height; y++) {
262
+ rsum = pixels[yw] * rad1;
263
+ gsum = pixels[yw + 1] * rad1;
264
+ bsum = pixels[yw + 2] * rad1;
265
+
266
+ for (i = 1; i <= radius; i++) {
267
+ p = yw + ((i > wm ? wm : i) << 2);
268
+ rsum += pixels[p++];
269
+ gsum += pixels[p++];
270
+ bsum += pixels[p++];
271
+ }
272
+
273
+ for (x = 0; x < width; x++) {
274
+ r[yi] = rsum;
275
+ g[yi] = gsum;
276
+ b[yi] = bsum;
277
+
278
+ if (y == 0) {
279
+ vmin[x] = ((p = x + rad1) < wm ? p : wm) << 2;
280
+ vmax[x] = (p = x - radius) > 0 ? p << 2 : 0;
281
+ }
282
+
283
+ p1 = yw + vmin[x];
284
+ p2 = yw + vmax[x];
285
+
286
+ rsum += pixels[p1++] - pixels[p2++];
287
+ gsum += pixels[p1++] - pixels[p2++];
288
+ bsum += pixels[p1++] - pixels[p2++];
289
+
290
+ yi++;
291
+ }
292
+ yw += width << 2;
293
+ }
294
+
295
+ for (x = 0; x < width; x++) {
296
+ yp = x;
297
+ rsum = r[yp] * rad1;
298
+ gsum = g[yp] * rad1;
299
+ bsum = b[yp] * rad1;
300
+
301
+ for (i = 1; i <= radius; i++) {
302
+ yp += i > hm ? 0 : width;
303
+ rsum += r[yp];
304
+ gsum += g[yp];
305
+ bsum += b[yp];
306
+ }
307
+
308
+ yi = x << 2;
309
+ for (y = 0; y < height; y++) {
310
+ pixels[yi] = (rsum * mul_sum) >>> shg_sum;
311
+ pixels[yi + 1] = (gsum * mul_sum) >>> shg_sum;
312
+ pixels[yi + 2] = (bsum * mul_sum) >>> shg_sum;
313
+
314
+ if (x == 0) {
315
+ vmin[y] = ((p = y + rad1) < hm ? p : hm) * width;
316
+ vmax[y] = (p = y - radius) > 0 ? p * width : 0;
317
+ }
318
+
319
+ p1 = x + vmin[y];
320
+ p2 = x + vmax[y];
321
+
322
+ rsum += r[p1] - r[p2];
323
+ gsum += g[p1] - g[p2];
324
+ bsum += b[p1] - b[p2];
325
+
326
+ yi += width << 2;
327
+ }
328
+ }
329
+ }
330
+ context.putImageData(imageData, top_x, top_y);
331
+
332
+ return canvas.toDataURL();
333
+ } else {
334
+ return src;
335
+ }
336
  }
337
 
338
+ function jg_effect_vintage(img) {
339
+ var options = {
340
+ onError: function () {
341
+ alert('ERROR');
342
+ },
343
+ };
344
+ var effect = {
345
+ vignette: 1,
346
+ sepia: true,
347
+ noise: 50,
348
+ desaturate: 0.2,
349
+ lighten: 0.1,
350
+ };
351
+ new VintageJS(img, options, effect);
352
+ }
 
assets/js/lib/enviratope-item.js DELETED
@@ -1,67 +0,0 @@
1
- /**
2
- * Isotope Item
3
- **/
4
-
5
- (function(window, factory) {
6
- // universal module definition
7
- /* jshint strict: false */ /*globals define, module, require */
8
- if (typeof define == 'function' && define.amd) {
9
- // AMD
10
- define(['outlayer/outlayer'], factory);
11
- } else if (typeof module == 'object' && module.exports) {
12
- // CommonJS
13
- module.exports = factory(require('outlayer'));
14
- } else {
15
- // browser global
16
- window.Isotope = window.Isotope || {};
17
- window.Isotope.Item = factory(window.Outlayer);
18
- }
19
- })(window, function factory(Outlayer) {
20
- 'use strict';
21
-
22
- // -------------------------- Item -------------------------- //
23
- // sub-class Outlayer Item
24
- function Item() {
25
- Outlayer.Item.apply(this, arguments);
26
- }
27
-
28
- var proto = (Item.prototype = Object.create(Outlayer.Item.prototype));
29
-
30
- var _create = proto._create;
31
- proto._create = function() {
32
- // assign id, used for original-order sorting
33
- this.id = this.layout.itemGUID++;
34
- _create.call(this);
35
- this.sortData = {};
36
- };
37
-
38
- proto.updateSortData = function() {
39
- if (this.isIgnored) {
40
- return;
41
- }
42
- // default sorters
43
- this.sortData.id = this.id;
44
- // for backward compatibility
45
- this.sortData['original-order'] = this.id;
46
- this.sortData.random = Math.random();
47
- // go thru getSortData obj and apply the sorters
48
- var getSortData = this.layout.options.getSortData;
49
- var sorters = this.layout._sorters;
50
- for (var key in getSortData) {
51
- var sorter = sorters[key];
52
- this.sortData[key] = sorter(this.element, this);
53
- }
54
- };
55
-
56
- var _destroy = proto.destroy;
57
- proto.destroy = function() {
58
- // call super
59
- _destroy.apply(this, arguments);
60
- // reset display, #741
61
- this.css({
62
- display: '',
63
- });
64
- };
65
-
66
- return Item;
67
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/js/lib/fancybox.js CHANGED
@@ -6,7 +6,7 @@
6
  G = {}, y = [],
7
  f = null,
8
  o = new Image(),
9
- i = /\.(jpg|gif|png|bmp|jpeg)(.*)?$/i,
10
  k = /[^\.]\.(swf)\s*$/i,
11
  p, N = 1,
12
  h = 0,
6
  G = {}, y = [],
7
  f = null,
8
  o = new Image(),
9
+ i = /\.(jpg|gif|png|bmp|jpeg|webp)(.*)?$/i,
10
  k = /[^\.]\.(swf)\s*$/i,
11
  p, N = 1,
12
  h = 0,
assets/js/lib/isotope.js DELETED
@@ -1,3495 +0,0 @@
1
- /*!
2
- * Enviratope PACKAGED v3.0.0
3
- *
4
- * Licensed GPLv3 for open source use
5
- * or Enviratope Commercial License for commercial use
6
- *
7
- * http://enviratope.metafizzy.co
8
- * Copyright 2016 Metafizzy
9
- */
10
-
11
- /**
12
- * Bridget makes jQuery widgets
13
- * v2.0.0
14
- * MIT license
15
- */
16
-
17
- /* jshint browser: true, strict: true, undef: true, unused: true */
18
-
19
- (function (window, factory) {
20
- 'use strict';
21
- /* globals define: false, module: false, require: false */
22
-
23
- if (typeof define == 'function' && define.amd) {
24
- // AMD
25
- define('jquery-bridget/jquery-bridget', ['jquery'], function (jQuery) {
26
- factory(window, jQuery);
27
- });
28
- } else if (typeof module == 'object' && module.exports) {
29
- // CommonJS
30
- module.exports = factory(window, require('jquery'));
31
- } else {
32
- // browser global
33
- window.jQueryBridget = factory(window, window.jQuery);
34
- }
35
- })(window, function factory(window, jQuery) {
36
- 'use strict';
37
-
38
- // ----- utils ----- //
39
-
40
- var arraySlice = Array.prototype.slice;
41
-
42
- // helper function for logging errors
43
- // $.error breaks jQuery chaining
44
- var console = window.console;
45
- var logError =
46
- typeof console == 'undefined'
47
- ? function () {}
48
- : function (message) {
49
- console.error(message);
50
- };
51
-
52
- // ----- jQueryBridget ----- //
53
-
54
- function jQueryBridget(namespace, PluginClass, $) {
55
- $ = $ || jQuery || window.jQuery;
56
- if (!$) {
57
- return;
58
- }
59
-
60
- // add option method -> $().plugin('option', {...})
61
- if (!PluginClass.prototype.option) {
62
- // option setter
63
- PluginClass.prototype.option = function (opts) {
64
- // bail out if not an object
65
- if (!$.isPlainObject(opts)) {
66
- return;
67
- }
68
- this.options = $.extend(true, this.options, opts);
69
- };
70
- }
71
-
72
- // make jQuery plugin
73
- $.fn[namespace] = function (arg0 /*, arg1 */) {
74
- if (typeof arg0 == 'string') {
75
- // method call $().plugin( 'methodName', { options } )
76
- // shift arguments by 1
77
- var args = arraySlice.call(arguments, 1);
78
- return methodCall(this, arg0, args);
79
- }
80
- // just $().plugin({ options })
81
- plainCall(this, arg0);
82
- return this;
83
- };
84
-
85
- // $().plugin('methodName')
86
- function methodCall($elems, methodName, args) {
87
- var returnValue;
88
- var pluginMethodStr = '$().' + namespace + '("' + methodName + '")';
89
-
90
- $elems.each(function (i, elem) {
91
- // get instance
92
- var instance = $.data(elem, namespace);
93
- if (!instance) {
94
- logError(
95
- namespace +
96
- ' not initialized. Cannot call methods, i.e. ' +
97
- pluginMethodStr,
98
- );
99
- return;
100
- }
101
-
102
- var method = instance[methodName];
103
- if (!method || methodName.charAt(0) == '_') {
104
- logError(pluginMethodStr + ' is not a valid method');
105
- return;
106
- }
107
-
108
- // apply method, get return value
109
- var value = method.apply(instance, args);
110
- // set return value if value is returned, use only first value
111
- returnValue = returnValue === undefined ? value : returnValue;
112
- });
113
-
114
- return returnValue !== undefined ? returnValue : $elems;
115
- }
116
-
117
- function plainCall($elems, options) {
118
- $elems.each(function (i, elem) {
119
- var instance = $.data(elem, namespace);
120
- if (instance) {
121
- // set options & init
122
- instance.option(options);
123
- instance._init();
124
- } else {
125
- // initialize new instance
126
- instance = new PluginClass(elem, options);
127
- $.data(elem, namespace, instance);
128
- }
129
- });
130
- }
131
-
132
- updateJQuery($);
133
- }
134
-
135
- // ----- updateJQuery ----- //
136
-
137
- // set $.bridget for v1 backwards compatibility
138
- function updateJQuery($) {
139
- if (!$ || ($ && $.bridget)) {
140
- return;
141
- }
142
- $.bridget = jQueryBridget;
143
- }
144
-
145
- updateJQuery(jQuery || window.jQuery);
146
-
147
- // ----- ----- //
148
-
149
- return jQueryBridget;
150
- });
151
-
152
- /**
153
- * EvEmitter v1.0.2
154
- * Lil' event emitter
155
- * MIT License
156
- */
157
-
158
- /* jshint unused: true, undef: true, strict: true */
159
-
160
- (function (global, factory) {
161
- // universal module definition
162
- /* jshint strict: false */ /* globals define, module */
163
- if (typeof define == 'function' && define.amd) {
164
- // AMD - RequireJS
165
- define('ev-emitter/ev-emitter', factory);
166
- } else if (typeof module == 'object' && module.exports) {
167
- // CommonJS - Browserify, Webpack
168
- module.exports = factory();
169
- } else {
170
- // Browser globals
171
- global.EvEmitter = factory();
172
- }
173
- })(this, function () {
174
- function EvEmitter() {}
175
-
176
- var proto = EvEmitter.prototype;
177
-
178
- proto.on = function (eventName, listener) {
179
- if (!eventName || !listener) {
180
- return;
181
- }
182
- // set events hash
183
- var events = (this._events = this._events || {});
184
- // set listeners array
185
- var listeners = (events[eventName] = events[eventName] || []);
186
- // only add once
187
- if (listeners.indexOf(listener) == -1) {
188
- listeners.push(listener);
189
- }
190
-
191
- return this;
192
- };
193
-
194
- proto.once = function (eventName, listener) {
195
- if (!eventName || !listener) {
196
- return;
197
- }
198
- // add event
199
- this.on(eventName, listener);
200
- // set once flag
201
- // set onceEvents hash
202
- var onceEvents = (this._onceEvents = this._onceEvents || {});
203
- // set onceListeners object
204
- var onceListeners = (onceEvents[eventName] =
205
- onceEvents[eventName] || {});
206
- // set flag
207
- onceListeners[listener] = true;
208
-
209
- return this;
210
- };
211
-
212
- proto.off = function (eventName, listener) {
213
- var listeners = this._events && this._events[eventName];
214
- if (!listeners || !listeners.length) {
215
- return;
216
- }
217
- var index = listeners.indexOf(listener);
218
- if (index != -1) {
219
- listeners.splice(index, 1);
220
- }
221
-
222
- return this;
223
- };
224
-
225
- proto.emitEvent = function (eventName, args) {
226
- var listeners = this._events && this._events[eventName];
227
- if (!listeners || !listeners.length) {
228
- return;
229
- }
230
- var i = 0;
231
- var listener = listeners[i];
232
- args = args || [];
233
- // once stuff
234
- var onceListeners = this._onceEvents && this._onceEvents[eventName];
235
-
236
- while (listener) {
237
- var isOnce = onceListeners && onceListeners[listener];
238
- if (isOnce) {
239
- // remove listener
240
- // remove before trigger to prevent recursion
241
- this.off(eventName, listener);
242
- // unset once flag
243
- delete onceListeners[listener];
244
- }
245
- // trigger listener
246
- listener.apply(this, args);
247
- // get next listener
248
- i += isOnce ? 0 : 1;
249
- listener = listeners[i];
250
- }
251
-
252
- return this;
253
- };
254
-
255
- return EvEmitter;
256
- });
257
-
258
- /*!
259
- * getSize v2.0.2
260
- * measure size of elements
261
- * MIT license
262
- */
263
-
264
- /*jshint browser: true, strict: true, undef: true, unused: true */
265
- /*global define: false, module: false, console: false */
266
-
267
- (function (window, factory) {
268
- 'use strict';
269
-
270
- if (typeof define == 'function' && define.amd) {
271
- // AMD
272
- define('get-size/get-size', [], function () {
273
- return factory();
274
- });
275
- } else if (typeof module == 'object' && module.exports) {
276
- // CommonJS
277
- module.exports = factory();
278
- } else {
279
- // browser global
280
- window.getSize = factory();
281
- }
282
- })(window, function factory() {
283
- 'use strict';
284
-
285
- // -------------------------- helpers -------------------------- //
286
-
287
- // get a number from a string, not a percentage
288
- function getStyleSize(value) {
289
- var num = parseFloat(value);
290
- // not a percent like '100%', and a number
291
- var isValid = value.indexOf('%') == -1 && !isNaN(num);
292
- return isValid && num;
293
- }
294
-
295
- function noop() {}
296
-
297
- var logError =
298
- typeof console == 'undefined'
299
- ? noop
300
- : function (message) {
301
- console.error(message);
302
- };
303
-
304
- // -------------------------- measurements -------------------------- //
305
-
306
- var measurements = [
307
- 'paddingLeft',
308
- 'paddingRight',
309
- 'paddingTop',
310
- 'paddingBottom',
311
- 'marginLeft',
312
- 'marginRight',
313
- 'marginTop',
314
- 'marginBottom',
315
- 'borderLeftWidth',
316
- 'borderRightWidth',
317
- 'borderTopWidth',
318
- 'borderBottomWidth',
319
- ];
320
-
321
- var measurementsLength = measurements.length;
322
-
323
- function getZeroSize() {
324
- var size = {
325
- width: 0,
326
- height: 0,
327
- innerWidth: 0,
328
- innerHeight: 0,
329
- outerWidth: 0,
330
- outerHeight: 0,
331
- };
332
- for (var i = 0; i < measurementsLength; i++) {
333
- var measurement = measurements[i];
334
- size[measurement] = 0;
335
- }
336
- return size;
337
- }
338
-
339
- // -------------------------- getStyle -------------------------- //
340
-
341
- /**
342
- * getStyle, get style of element, check for Firefox bug
343
- * https://bugzilla.mozilla.org/show_bug.cgi?id=548397
344
- */
345
- function getStyle(elem) {
346
- var style = getComputedStyle(elem);
347
- if (!style) {
348
- logError(
349
- 'Style returned ' +
350
- style +
351
- '. Are you running this code in a hidden iframe on Firefox? ' +
352
- 'See http://bit.ly/getsizebug1',
353
- );
354
- }
355
- return style;
356
- }
357
-
358
- // -------------------------- setup -------------------------- //
359
-
360
- var isSetup = false;
361
-
362
- var isBoxSizeOuter;
363
-
364
- /**
365
- * setup
366
- * check isBoxSizerOuter
367
- * do on first getSize() rather than on page load for Firefox bug
368
- */
369
- function setup() {
370
- // setup once
371
- if (isSetup) {
372
- return;
373
- }
374
- isSetup = true;
375
-
376
- // -------------------------- box sizing -------------------------- //
377
-
378
- /**
379
- * WebKit measures the outer-width on style.width on border-box elems
380
- * IE & Firefox<29 measures the inner-width
381
- */
382
- var div = document.createElement('div');
383
- div.style.width = '200px';
384
- div.style.padding = '1px 2px 3px 4px';
385
- div.style.borderStyle = 'solid';
386
- div.style.borderWidth = '1px 2px 3px 4px';
387
- div.style.boxSizing = 'border-box';
388
-
389
- var body = document.body || document.documentElement;
390
- body.appendChild(div);
391
- var style = getStyle(div);
392
-
393
- getSize.isBoxSizeOuter = isBoxSizeOuter =
394
- getStyleSize(style.width) == 200;
395
- body.removeChild(div);
396
- }
397
-
398
- // -------------------------- getSize -------------------------- //
399
-
400
- function getSize(elem) {
401
- setup();
402
-
403
- // use querySeletor if elem is string
404
- if (typeof elem == 'string') {
405
- elem = document.querySelector(elem);
406
- }
407
-
408
- // do not proceed on non-objects
409
- if (!elem || typeof elem != 'object' || !elem.nodeType) {
410
- return;
411
- }
412
-
413
- var style = getStyle(elem);
414
-
415
- // if hidden, everything is 0
416
- if (style.display == 'none') {
417
- return getZeroSize();
418
- }
419
-
420
- var size = {};
421
- size.width = elem.offsetWidth;
422
- size.height = elem.offsetHeight;
423
-
424
- var isBorderBox = (size.isBorderBox = style.boxSizing == 'border-box');
425
-
426
- // get all measurements
427
- for (var i = 0; i < measurementsLength; i++) {
428
- var measurement = measurements[i];
429
- var value = style[measurement];
430
- var num = parseFloat(value);
431
- // any 'auto', 'medium' value will be 0
432
- size[measurement] = !isNaN(num) ? num : 0;
433
- }
434
-
435
- var paddingWidth = size.paddingLeft + size.paddingRight;
436
- var paddingHeight = size.paddingTop + size.paddingBottom;
437
- var marginWidth = size.marginLeft + size.marginRight;
438
- var marginHeight = size.marginTop + size.marginBottom;
439
- var borderWidth = size.borderLeftWidth + size.borderRightWidth;
440
- var borderHeight = size.borderTopWidth + size.borderBottomWidth;
441
-
442
- var isBorderBoxSizeOuter = isBorderBox && isBoxSizeOuter;
443
-
444
- // overwrite width and height if we can get it from style
445
- var styleWidth = getStyleSize(style.width);
446
- if (styleWidth !== false) {
447
- size.width =
448
- styleWidth +
449
- // add padding and border unless it's already including it
450
- (isBorderBoxSizeOuter ? 0 : paddingWidth + borderWidth);
451
- }
452
-
453
- var styleHeight = getStyleSize(style.height);
454
- if (styleHeight !== false) {
455
- size.height =
456
- styleHeight +
457
- // add padding and border unless it's already including it
458
- (isBorderBoxSizeOuter ? 0 : paddingHeight + borderHeight);
459
- }
460
-
461
- size.innerWidth = size.width - (paddingWidth + borderWidth);
462
- size.innerHeight = size.height - (paddingHeight + borderHeight);
463
-
464
- size.outerWidth = size.width + marginWidth;
465
- size.outerHeight = size.height + marginHeight;
466
-
467
- return size;
468
- }
469
-
470
- return getSize;
471
- });
472
-
473
- /**
474
- * matchesSelector v2.0.1
475
- * matchesSelector( element, '.selector' )
476
- * MIT license
477
- */
478
-
479
- /*jshint browser: true, strict: true, undef: true, unused: true */
480
-
481
- (function (window, factory) {
482
- /*global define: false, module: false */
483
- 'use strict';
484
- // universal module definition
485
- if (typeof define == 'function' && define.amd) {
486
- // AMD
487
- define('desandro-matches-selector/matches-selector', factory);
488
- } else if (typeof module == 'object' && module.exports) {
489
- // CommonJS
490
- module.exports = factory();
491
- } else {
492
- // browser global
493
- window.matchesSelector = factory();
494
- }
495
- })(window, function factory() {
496
- 'use strict';
497
-
498
- var matchesMethod = (function () {
499
- var ElemProto = Element.prototype;
500
- // check for the standard method name first
501
- if (ElemProto.matches) {
502
- return 'matches';
503
- }
504
- // check un-prefixed
505
- if (ElemProto.matchesSelector) {
506
- return 'matchesSelector';
507
- }
508
- // check vendor prefixes
509
- var prefixes = ['webkit', 'moz', 'ms', 'o'];
510
-
511
- for (var i = 0; i < prefixes.length; i++) {
512
- var prefix = prefixes[i];
513
- var method = prefix + 'MatchesSelector';
514
- if (ElemProto[method]) {
515
- return method;
516
- }
517
- }
518
- })();
519
-
520
- return function matchesSelector(elem, selector) {
521
- return elem[matchesMethod](selector);
522
- };
523
- });
524
-
525
- /**
526
- * Fizzy UI utils v2.0.1
527
- * MIT license
528
- */
529
-
530
- /*jshint browser: true, undef: true, unused: true, strict: true */
531
-
532
- (function (window, factory) {
533
- // universal module definition
534
- /*jshint strict: false */ /*globals define, module, require */
535
-
536
- if (typeof define == 'function' && define.amd) {
537
- // AMD
538
- define('fizzy-ui-utils/utils', [
539
- 'desandro-matches-selector/matches-selector',
540
- ], function (matchesSelector) {
541
- return factory(window, matchesSelector);
542
- });
543
- } else if (typeof module == 'object' && module.exports) {
544
- // CommonJS
545
- module.exports = factory(window, require('desandro-matches-selector'));
546
- } else {
547
- // browser global
548
- window.fizzyUIUtils = factory(window, window.matchesSelector);
549
- }
550
- })(window, function factory(window, matchesSelector) {
551
- var utils = {};
552
-
553
- // ----- extend ----- //
554
-
555
- // extends objects
556
- utils.extend = function (a, b) {
557
- for (var prop in b) {
558
- a[prop] = b[prop];
559
- }
560
- return a;
561
- };
562
-
563
- // ----- modulo ----- //
564
-
565
- utils.modulo = function (num, div) {
566
- return ((num % div) + div) % div;
567
- };
568
-
569
- // ----- makeArray ----- //
570
-
571
- // turn element or nodeList into an array
572
- utils.makeArray = function (obj) {
573
- var ary = [];
574
- if (Array.isArray(obj)) {
575
- // use object if already an array
576
- ary = obj;
577
- } else if (obj && typeof obj.length == 'number') {
578
- // convert nodeList to array
579
- for (var i = 0; i < obj.length; i++) {
580
- ary.push(obj[i]);
581
- }
582
- } else {
583
- // array of single index
584
- ary.push(obj);
585
- }
586
- return ary;
587
- };
588
-
589
- // ----- removeFrom ----- //
590
-
591
- utils.removeFrom = function (ary, obj) {
592
- var index = ary.indexOf(obj);
593
- if (index != -1) {
594
- ary.splice(index, 1);
595
- }
596
- };
597
-
598
- // ----- getParent ----- //
599
-
600
- utils.getParent = function (elem, selector) {
601
- while (elem != document.body) {
602
- elem = elem.parentNode;
603
- if (matchesSelector(elem, selector)) {
604
- return elem;
605
- }
606
- }
607
- };
608
-
609
- // ----- getQueryElement ----- //
610
-
611
- // use element as selector string
612
- utils.getQueryElement = function (elem) {
613
- if (typeof elem == 'string') {
614
- return document.querySelector(elem);
615
- }
616
- return elem;
617
- };
618
-
619
- // ----- handleEvent ----- //
620
-
621
- // enable .ontype to trigger from .addEventListener( elem, 'type' )
622
- utils.handleEvent = function (event) {
623
- var method = 'on' + event.type;
624
- if (this[method]) {
625
- this[method](event);
626
- }
627
- };
628
-
629
- // ----- filterFindElements ----- //
630
-
631
- utils.filterFindElements = function (elems, selector) {
632
- // make array of elems
633
- elems = utils.makeArray(elems);
634
- var ffElems = [];
635
-
636
- elems.forEach(function (elem) {
637
- // check that elem is an actual element
638
- if (!(elem instanceof HTMLElement)) {
639
- return;
640
- }
641
- // add elem if no selector
642
- if (!selector) {
643
- ffElems.push(elem);
644
- return;
645
- }
646
- // filter & find items if we have a selector
647
- // filter
648
- if (matchesSelector(elem, selector)) {
649
- ffElems.push(elem);
650
- }
651
- // find children
652
- var childElems = elem.querySelectorAll(selector);
653
- // concat childElems to filterFound array
654
- for (var i = 0; i < childElems.length; i++) {
655
- ffElems.push(childElems[i]);
656
- }
657
- });
658
-
659
- return ffElems;
660
- };
661
-
662
- // ----- debounceMethod ----- //
663
-
664
- utils.debounceMethod = function (_class, methodName, threshold) {
665
- // original method
666
- var method = _class.prototype[methodName];
667
- var timeoutName = methodName + 'Timeout';
668
-
669
- _class.prototype[methodName] = function () {
670
- var timeout = this[timeoutName];
671
- if (timeout) {
672
- clearTimeout(timeout);
673
- }
674
- var args = arguments;
675
-
676
- var _this = this;
677
- this[timeoutName] = setTimeout(function () {
678
- method.apply(_this, args);
679
- delete _this[timeoutName];
680
- }, threshold || 100);
681
- };
682
- };
683
-
684
- // ----- docReady ----- //
685
-
686
- utils.docReady = function (callback) {
687
- if (document.readyState == 'complete') {
688
- callback();
689
- } else {
690
- document.addEventListener('DOMContentLoaded', callback);
691
- }
692
- };
693
-
694
- // ----- htmlInit ----- //
695
-
696
- // http://jamesroberts.name/blog/2010/02/22/string-functions-for-javascript-trim-to-camel-case-to-dashed-and-to-underscore/
697
- utils.toDashed = function (str) {
698
- return str
699
- .replace(/(.)([A-Z])/g, function (match, $1, $2) {
700
- return $1 + '-' + $2;
701
- })
702
- .toLowerCase();
703
- };
704
-
705
- var console = window.console;
706
- /**
707
- * allow user to initialize classes via [data-namespace] or .js-namespace class
708
- * htmlInit( Widget, 'widgetName' )
709
- * options are parsed from data-namespace-options
710
- */
711
- utils.htmlInit = function (WidgetClass, namespace) {
712
- utils.docReady(function () {
713
- var dashedNamespace = utils.toDashed(namespace);
714
- var dataAttr = 'data-' + dashedNamespace;
715
- var dataAttrElems = document.querySelectorAll('[' + dataAttr + ']');
716
- var jsDashElems = document.querySelectorAll(
717
- '.js-' + dashedNamespace,
718
- );
719
- var elems = utils
720
- .makeArray(dataAttrElems)
721
- .concat(utils.makeArray(jsDashElems));
722
- var dataOptionsAttr = dataAttr + '-options';
723
- var jQuery = window.jQuery;
724
-
725
- elems.forEach(function (elem) {
726
- var attr =
727
- elem.getAttribute(dataAttr) ||
728
- elem.getAttribute(dataOptionsAttr);
729
- var options;
730
- try {
731
- options = attr && JSON.parse(attr);
732
- } catch (error) {
733
- // log error, do not initialize
734
- if (console) {
735
- console.error(
736
- 'Error parsing ' +
737
- dataAttr +
738
- ' on ' +
739
- elem.className +
740
- ': ' +
741
- error,
742
- );
743
- }
744
- return;
745
- }
746
- // initialize
747
- var instance = new WidgetClass(elem, options);
748
- // make available via $().data('layoutname')
749
- if (jQuery) {
750
- jQuery.data(elem, namespace, instance);
751
- }
752
- });
753
- });
754
- };
755
-
756
- // ----- ----- //
757
-
758
- return utils;
759
- });
760
-
761
- /**
762
- * Outlayer Item
763
- */
764
-
765
- (function (window, factory) {
766
- // universal module definition
767
- /* jshint strict: false */ /* globals define, module, require */
768
- if (typeof define == 'function' && define.amd) {
769
- // AMD - RequireJS
770
- define('outlayer/enviratope-item', [
771
- 'ev-emitter/ev-emitter',
772
- 'get-size/get-size',
773
- ], factory);
774
- } else if (typeof module == 'object' && module.exports) {
775
- // CommonJS - Browserify, Webpack
776
- module.exports = factory(require('ev-emitter'), require('get-size'));
777
- } else {
778
- // browser global
779
- window.Outlayer = {};
780
- window.Outlayer.Item = factory(window.EvEmitter, window.getSize);
781
- }
782
- })(window, function factory(EvEmitter, getSize) {
783
- 'use strict';
784
-
785
- // ----- helpers ----- //
786
-
787
- function isEmptyObj(obj) {
788
- for (var prop in obj) {
789
- return false;
790
- }
791
- prop = null;
792
- return true;
793
- }
794
-
795
- // -------------------------- CSS3 support -------------------------- //
796
-
797
- var docElemStyle = document.documentElement.style;
798
-
799
- var transitionProperty =
800
- typeof docElemStyle.transition == 'string'
801
- ? 'transition'
802
- : 'WebkitTransition';
803
- var transformProperty =
804
- typeof docElemStyle.transform == 'string'
805
- ? 'transform'
806
- : 'WebkitTransform';
807
-
808
- var transitionEndEvent = {
809
- WebkitTransition: 'webkitTransitionEnd',
810
- transition: 'transitionend',
811
- }[transitionProperty];
812
-
813
- // cache all vendor properties that could have vendor prefix
814
- var vendorProperties = {
815
- transform: transformProperty,
816
- transition: transitionProperty,
817
- transitionDuration: transitionProperty + 'Duration',
818
- transitionProperty: transitionProperty + 'Property',
819
- transitionDelay: transitionProperty + 'Delay',
820
- };
821
-
822
- // -------------------------- Item -------------------------- //
823
-
824
- function Item(element, layout) {
825
- if (!element) {
826
- return;
827
- }
828
-
829
- this.element = element;
830
- // parent layout class, i.e. Masonry, Enviratope, or Packery
831
- this.layout = layout;
832
- this.position = {
833
- x: 0,
834
- y: 0,
835
- };
836
-
837
- this._create();
838
- }
839
-
840
- // inherit EvEmitter
841
- var proto = (Item.prototype = Object.create(EvEmitter.prototype));
842
- proto.constructor = Item;
843
-
844
- proto._create = function () {
845
- // transition objects
846
- this._transn = {
847
- ingProperties: {},
848
- clean: {},
849
- onEnd: {},
850
- };
851
-
852
- this.css({
853
- position: 'absolute',
854
- });
855
- };
856
-
857
- // trigger specified handler for event type
858
- proto.handleEvent = function (event) {
859
- var method = 'on' + event.type;
860
- if (this[method]) {
861
- this[method](event);
862
- }
863
- };
864
-
865
- proto.getSize = function () {
866
- this.size = getSize(this.element);
867
- };
868
-
869
- /**
870
- * apply CSS styles to element
871
- * @param {Object} style
872
- */
873
- proto.css = function (style) {
874
- var elemStyle = this.element.style;
875
-
876
- for (var prop in style) {
877
- // use vendor property if available
878
- var supportedProp = vendorProperties[prop] || prop;
879
- elemStyle[supportedProp] = style[prop];
880
- }
881
- };
882
-
883
- // measure position, and sets it
884
- proto.getPosition = function () {
885
- var style = getComputedStyle(this.element);
886
- var isOriginLeft = this.layout._getOption('originLeft');
887
- var isOriginTop = this.layout._getOption('originTop');
888
- var xValue = style[isOriginLeft ? 'left' : 'right'];
889
- var yValue = style[isOriginTop ? 'top' : 'bottom'];
890
- // convert percent to pixels
891
- var layoutSize = this.layout.size;
892
- var x =
893
- xValue.indexOf('%') != -1
894
- ? (parseFloat(xValue) / 100) * layoutSize.width
895
- : parseInt(xValue, 10);
896
- var y =
897
- yValue.indexOf('%') != -1
898
- ? (parseFloat(yValue) / 100) * layoutSize.height
899
- : parseInt(yValue, 10);
900
-
901
- // clean up 'auto' or other non-integer values
902
- x = isNaN(x) ? 0 : x;
903
- y = isNaN(y) ? 0 : y;
904
- // remove padding from measurement
905
- x -= isOriginLeft ? layoutSize.paddingLeft : layoutSize.paddingRight;
906
- y -= isOriginTop ? layoutSize.paddingTop : layoutSize.paddingBottom;
907
-
908
- this.position.x = x;
909
- this.position.y = y;
910
- };
911
-
912
- // set settled position, apply padding
913
- proto.layoutPosition = function () {
914
- var layoutSize = this.layout.size;
915
- var style = {};
916
- var isOriginLeft = this.layout._getOption('originLeft');
917
- var isOriginTop = this.layout._getOption('originTop');
918
-
919
- // x
920
- var xPadding = isOriginLeft ? 'paddingLeft' : 'paddingRight';
921
- var xProperty = isOriginLeft ? 'left' : 'right';
922
- var xResetProperty = isOriginLeft ? 'right' : 'left';
923
-
924
- var x = this.position.x + layoutSize[xPadding];
925
- // set in percentage or pixels
926
- style[xProperty] = this.getXValue(x);
927
- // reset other property
928
- style[xResetProperty] = '';
929
-
930
- // y
931
- var yPadding = isOriginTop ? 'paddingTop' : 'paddingBottom';
932
- var yProperty = isOriginTop ? 'top' : 'bottom';
933
- var yResetProperty = isOriginTop ? 'bottom' : 'top';
934
-
935
- var y = this.position.y + layoutSize[yPadding];
936
- // set in percentage or pixels
937
- style[yProperty] = this.getYValue(y);
938
- // reset other property
939
- style[yResetProperty] = '';
940
-
941
- this.css(style);
942
- this.emitEvent('layout', [this]);
943
- };
944
-
945
- proto.getXValue = function (x) {
946
- var isHorizontal = this.layout._getOption('horizontal');
947
- return this.layout.options.percentPosition && !isHorizontal
948
- ? (x / this.layout.size.width) * 100 + '%'
949
- : x + 'px';
950
- };
951
-
952
- proto.getYValue = function (y) {
953
- var isHorizontal = this.layout._getOption('horizontal');
954
- return this.layout.options.percentPosition && isHorizontal
955
- ? (y / this.layout.size.height) * 100 + '%'
956
- : y + 'px';
957
- };
958
-
959
- proto._transitionTo = function (x, y) {
960
- this.getPosition();
961
- // get current x & y from top/left
962
- var curX = this.position.x;
963
- var curY = this.position.y;
964
-
965
- var compareX = parseInt(x, 10);
966
- var compareY = parseInt(y, 10);
967
- var didNotMove =
968
- compareX === this.position.x && compareY === this.position.y;
969
-
970
- // save end position
971
- this.setPosition(x, y);
972
-
973
- // if did not move and not transitioning, just go to layout
974
- if (didNotMove && !this.isTransitioning) {
975
- this.layoutPosition();
976
- return;
977
- }
978
-
979
- var transX = x - curX;
980
- var transY = y - curY;
981
- var transitionStyle = {};
982
- transitionStyle.transform = this.getTranslate(transX, transY);
983
-
984
- this.transition({
985
- to: transitionStyle,
986
- onTransitionEnd: {
987
- transform: this.layoutPosition,
988
- },
989
- isCleaning: true,
990
- });
991
- };
992
-
993
- proto.getTranslate = function (x, y) {
994
- // flip cooridinates if origin on right or bottom
995
- var isOriginLeft = this.layout._getOption('originLeft');
996
- var isOriginTop = this.layout._getOption('originTop');
997
- x = isOriginLeft ? x : -x;
998
- y = isOriginTop ? y : -y;
999
- return 'translate3d(' + x + 'px, ' + y + 'px, 0)';
1000
- };
1001
-
1002
- // non transition + transform support
1003
- proto.goTo = function (x, y) {
1004
- this.setPosition(x, y);
1005
- this.layoutPosition();
1006
- };
1007
-
1008
- proto.moveTo = proto._transitionTo;
1009
-
1010
- proto.setPosition = function (x, y) {
1011
- this.position.x = parseInt(x, 10);
1012
- this.position.y = parseInt(y, 10);
1013
- };
1014
-
1015
- // ----- transition ----- //
1016
-
1017
- /**
1018
- * @param {Object} style - CSS
1019
- * @param {Function} onTransitionEnd
1020
- */
1021
-
1022
- // non transition, just trigger callback
1023
- proto._nonTransition = function (args) {
1024
- this.css(args.to);
1025
- if (args.isCleaning) {
1026
- this._removeStyles(args.to);
1027
- }
1028
- for (var prop in args.onTransitionEnd) {
1029
- args.onTransitionEnd[prop].call(this);
1030
- }
1031
- };
1032
-
1033
- /**
1034
- * proper transition
1035
- * @param {Object} args - arguments
1036
- * @param {Object} to - style to transition to
1037
- * @param {Object} from - style to start transition from
1038
- * @param {Boolean} isCleaning - removes transition styles after transition
1039
- * @param {Function} onTransitionEnd - callback
1040
- */
1041
- proto.transition = function (args) {
1042
- // redirect to nonTransition if no transition duration
1043
- if (!parseFloat(this.layout.options.transitionDuration)) {
1044
- this._nonTransition(args);
1045
- return;
1046
- }
1047
-
1048
- var _transition = this._transn;
1049
- // keep track of onTransitionEnd callback by css property
1050
- for (var prop in args.onTransitionEnd) {
1051
- _transition.onEnd[prop] = args.onTransitionEnd[prop];
1052
- }
1053
- // keep track of properties that are transitioning
1054
- for (prop in args.to) {
1055
- _transition.ingProperties[prop] = true;
1056
- // keep track of properties to clean up when transition is done
1057
- if (args.isCleaning) {
1058
- _transition.clean[prop] = true;
1059
- }
1060
- }
1061
-
1062
- // set from styles
1063
- if (args.from) {
1064
- this.css(args.from);
1065
- // force redraw. http://blog.alexmaccaw.com/css-transitions
1066
- var h = this.element.offsetHeight;
1067
- // hack for JSHint to hush about unused var
1068
- h = null;
1069
- }
1070
- // enable transition
1071
- this.enableTransition(args.to);
1072
- // set styles that are transitioning
1073
- this.css(args.to);
1074
-
1075
- this.isTransitioning = true;
1076
- };
1077
-
1078
- // dash before all cap letters, including first for
1079
- // WebkitTransform => -webkit-transform
1080
- function toDashedAll(str) {
1081
- return str.replace(/([A-Z])/g, function ($1) {
1082
- return '-' + $1.toLowerCase();
1083
- });
1084
- }
1085
-
1086
- var transitionProps = 'opacity,' + toDashedAll(transformProperty);
1087
-
1088
- proto.enableTransition = function (/* style */) {
1089
- // HACK changing transitionProperty during a transition
1090
- // will cause transition to jump
1091
- if (this.isTransitioning) {
1092
- return;
1093
- }
1094
-
1095
- // make `transition: foo, bar, baz` from style object
1096
- // HACK un-comment this when enableTransition can work
1097
- // while a transition is happening
1098
- // var transitionValues = [];
1099
- // for ( var prop in style ) {
1100
- // // dash-ify camelCased properties like WebkitTransition
1101
- // prop = vendorProperties[ prop ] || prop;
1102
- // transitionValues.push( toDashedAll( prop ) );
1103
- // }
1104
- // munge number to millisecond, to match stagger
1105
- var duration = this.layout.options.transitionDuration;
1106
- duration = typeof duration == 'number' ? duration + 'ms' : duration;
1107
- // enable transition styles
1108
- this.css({
1109
- transitionProperty: transitionProps,
1110
- transitionDuration: duration,
1111
- transitionDelay: this.staggerDelay || 0,
1112
- });
1113
- // listen for transition end event
1114
- this.element.addEventListener(transitionEndEvent, this, false);
1115
- };
1116
-
1117
- // ----- events ----- //
1118
-
1119
- proto.onwebkitTransitionEnd = function (event) {
1120
- this.ontransitionend(event);
1121
- };
1122
-
1123
- proto.onotransitionend = function (event) {
1124
- this.ontransitionend(event);
1125
- };
1126
-
1127
- // properties that I munge to make my life easier
1128
- var dashedVendorProperties = {
1129
- '-webkit-transform': 'transform',
1130
- };
1131
-
1132
- proto.ontransitionend = function (event) {
1133
- // disregard bubbled events from children
1134
- if (event.target !== this.element) {
1135
- return;
1136
- }
1137
- var _transition = this._transn;
1138
- // get property name of transitioned property, convert to prefix-free
1139
- var propertyName =
1140
- dashedVendorProperties[event.propertyName] || event.propertyName;
1141
-
1142
- // remove property that has completed transitioning
1143
- delete _transition.ingProperties[propertyName];
1144
- // check if any properties are still transitioning
1145
- if (isEmptyObj(_transition.ingProperties)) {
1146
- // all properties have completed transitioning
1147
- this.disableTransition();
1148
- }
1149
- // clean style
1150
- if (propertyName in _transition.clean) {
1151
- // clean up style
1152
- this.element.style[event.propertyName] = '';
1153
- delete _transition.clean[propertyName];
1154
- }
1155
- // trigger onTransitionEnd callback
1156
- if (propertyName in _transition.onEnd) {
1157
- var onTransitionEnd = _transition.onEnd[propertyName];
1158
- onTransitionEnd.call(this);
1159
- delete _transition.onEnd[propertyName];
1160
- }
1161
-
1162
- this.emitEvent('transitionEnd', [this]);
1163
- };
1164
-
1165
- proto.disableTransition = function () {
1166
- this.removeTransitionStyles();
1167
- this.element.removeEventListener(transitionEndEvent, this, false);
1168
- this.isTransitioning = false;
1169
- };
1170
-
1171
- /**
1172
- * removes style property from element
1173
- * @param {Object} style
1174
- **/
1175
- proto._removeStyles = function (style) {
1176
- // clean up transition styles
1177
- var cleanStyle = {};
1178
- for (var prop in style) {
1179
- cleanStyle[prop] = '';
1180
- }
1181
- this.css(cleanStyle);
1182
- };
1183
-
1184
- var cleanTransitionStyle = {
1185
- transitionProperty: '',
1186
- transitionDuration: '',
1187
- transitionDelay: '',
1188
- };
1189
-
1190
- proto.removeTransitionStyles = function () {
1191
- // remove transition
1192
- this.css(cleanTransitionStyle);
1193
- };
1194
-
1195
- // ----- stagger ----- //
1196
-
1197
- proto.stagger = function (delay) {
1198
- delay = isNaN(delay) ? 0 : delay;
1199
- this.staggerDelay = delay + 'ms';
1200
- };
1201
-
1202
- // ----- show/hide/remove ----- //
1203
-
1204
- // remove element from DOM
1205
- proto.removeElem = function () {
1206
- this.element.parentNode.removeChild(this.element);
1207
- // remove display: none
1208
- this.css({ display: '' });
1209
- this.emitEvent('remove', [this]);
1210
- };
1211
-
1212
- proto.remove = function () {
1213
- // just remove element if no transition support or no transition
1214
- if (
1215
- !transitionProperty ||
1216
- !parseFloat(this.layout.options.transitionDuration)
1217
- ) {
1218
- this.removeElem();
1219
- return;
1220
- }
1221
-
1222
- // start transition
1223
- this.once('transitionEnd', function () {
1224
- this.removeElem();
1225
- });
1226
- this.hide();
1227
- };
1228
-
1229
- proto.reveal = function () {
1230
- delete this.isHidden;
1231
- // remove display: none
1232
- this.css({ display: '' });
1233
-
1234
- var options = this.layout.options;
1235
-
1236
- var onTransitionEnd = {};
1237
- var transitionEndProperty = this.getHideRevealTransitionEndProperty(
1238
- 'visibleStyle',
1239
- );
1240
- onTransitionEnd[transitionEndProperty] = this.onRevealTransitionEnd;
1241
-
1242
- this.transition({
1243
- from: options.hiddenStyle,
1244
- to: options.visibleStyle,
1245
- isCleaning: true,
1246
- onTransitionEnd: onTransitionEnd,
1247
- });
1248
- };
1249
-
1250
- proto.onRevealTransitionEnd = function () {
1251
- // check if still visible
1252
- // during transition, item may have been hidden
1253
- if (!this.isHidden) {
1254
- this.emitEvent('reveal');
1255
- }
1256
- };
1257
-
1258
- /**
1259
- * get style property use for hide/reveal transition end
1260
- * @param {String} styleProperty - hiddenStyle/visibleStyle
1261
- * @returns {String}
1262
- */
1263
- proto.getHideRevealTransitionEndProperty = function (styleProperty) {
1264
- var optionStyle = this.layout.options[styleProperty];
1265
- // use opacity
1266
- if (optionStyle.opacity) {
1267
- return 'opacity';
1268
- }
1269
- // get first property
1270
- for (var prop in optionStyle) {
1271
- return prop;
1272
- }
1273
- };
1274
-
1275
- proto.hide = function () {
1276
- // set flag
1277
- this.isHidden = true;
1278
- // remove display: none
1279
- this.css({ display: '' });
1280
-
1281
- var options = this.layout.options;
1282
-
1283
- var onTransitionEnd = {};
1284
- var transitionEndProperty = this.getHideRevealTransitionEndProperty(
1285
- 'hiddenStyle',
1286
- );
1287
- onTransitionEnd[transitionEndProperty] = this.onHideTransitionEnd;
1288
-
1289
- this.transition({
1290
- from: options.visibleStyle,
1291
- to: options.hiddenStyle,
1292
- // keep hidden stuff hidden
1293
- isCleaning: true,
1294
- onTransitionEnd: onTransitionEnd,
1295
- });
1296
- };
1297
-
1298
- proto.onHideTransitionEnd = function () {
1299
- // check if still hidden
1300
- // during transition, item may have been un-hidden
1301
- if (this.isHidden) {
1302
- this.css({ display: 'none' });
1303
- this.emitEvent('hide');
1304
- }
1305
- };
1306
-
1307
- proto.destroy = function () {
1308
- this.css({
1309
- position: '',
1310
- left: '',
1311
- right: '',
1312
- top: '',
1313
- bottom: '',
1314
- transition: '',
1315
- transform: '',
1316
- });
1317
- };
1318
-
1319
- return Item;
1320
- });
1321
-
1322
- /*!
1323
- * Outlayer v2.1.0
1324
- * the brains and guts of a layout library
1325
- * MIT license
1326
- */
1327
-
1328
- (function (window, factory) {
1329
- 'use strict' /* globals define, module, require */;
1330
- // universal module definition
1331
- /* jshint strict: false */ if (typeof define == 'function' && define.amd) {
1332
- // AMD - RequireJS
1333
- define('outlayer/outlayer', [
1334
- 'ev-emitter/ev-emitter',
1335
- 'get-size/get-size',
1336
- 'fizzy-ui-utils/utils',
1337
- './enviratope-item',
1338
- ], function (EvEmitter, getSize, utils, Item) {
1339
- return factory(window, EvEmitter, getSize, utils, Item);
1340
- });
1341
- } else if (typeof module == 'object' && module.exports) {
1342
- // CommonJS - Browserify, Webpack
1343
- module.exports = factory(
1344
- window,
1345
- require('ev-emitter'),
1346
- require('get-size'),
1347
- require('fizzy-ui-utils'),
1348
- require('./enviratope-item.js'),
1349
- );
1350
- } else {
1351
- // browser global
1352
- window.Outlayer = factory(
1353
- window,
1354
- window.EvEmitter,
1355
- window.getSize,
1356
- window.fizzyUIUtils,
1357
- window.Outlayer.Item,
1358
- );
1359
- }
1360
- })(window, function factory(window, EvEmitter, getSize, utils, Item) {
1361
- 'use strict';
1362
-
1363
- // ----- vars ----- //
1364
-
1365
- var console = window.console;
1366
- var jQuery = window.jQuery;
1367
- var noop = function () {};
1368
-
1369
- // -------------------------- Outlayer -------------------------- //
1370
-
1371
- // globally unique identifiers
1372
- var GUID = 0;
1373
- // internal store of all Outlayer intances
1374
- var instances = {};
1375
-
1376
- /**
1377
- * @param {Element, String} element
1378
- * @param {Object} options
1379
- * @constructor
1380
- */
1381
- function Outlayer(element, options) {
1382
- var queryElement = utils.getQueryElement(element);
1383
- if (!queryElement) {
1384
- if (console) {
1385
- console.error(
1386
- 'Bad element for ' +
1387
- this.constructor.namespace +
1388
- ': ' +
1389
- (queryElement || element),
1390
- );
1391
- }
1392
- return;
1393
- }
1394
- this.element = queryElement;
1395
- // add jQuery
1396
- if (jQuery) {
1397
- this.$element = jQuery(this.element);
1398
- }
1399
-
1400
- // options
1401
- this.options = utils.extend({}, this.constructor.defaults);
1402
- this.option(options);
1403
-
1404
- // add id for Outlayer.getFromElement
1405
- var id = ++GUID;
1406
- this.element.outlayerGUID = id; // expando
1407
- instances[id] = this; // associate via id
1408
-
1409
- // kick it off
1410
- this._create();
1411
-
1412
- var isInitLayout = this._getOption('initLayout');
1413
- if (isInitLayout) {
1414
- this.layout();
1415
- }
1416
- }
1417
-
1418
- // settings are for internal use only
1419
- Outlayer.namespace = 'outlayer';
1420
- Outlayer.Item = Item;
1421
-
1422
- // default options
1423
- Outlayer.defaults = {
1424
- containerStyle: {
1425
- position: 'relative',
1426
- },
1427
- initLayout: true,
1428
- originLeft: true,
1429
- originTop: true,
1430
- resize: true,
1431
- resizeContainer: true,
1432
- // item options
1433
- transitionDuration: '0.4s',
1434
- hiddenStyle: {
1435
- opacity: 0,
1436
- transform: 'scale(0.001)',
1437
- },
1438
- visibleStyle: {
1439
- opacity: 1,
1440
- transform: 'scale(1)',
1441
- },
1442
- };
1443
-
1444
- var proto = Outlayer.prototype;
1445
- // inherit EvEmitter
1446
- utils.extend(proto, EvEmitter.prototype);
1447
-
1448
- /**
1449
- * set options
1450
- * @param {Object} opts
1451
- */
1452
- proto.option = function (opts) {
1453
- utils.extend(this.options, opts);
1454
- };
1455
-
1456
- /**
1457
- * get backwards compatible option value, check old name
1458
- */
1459
- proto._getOption = function (option) {
1460
- var oldOption = this.constructor.compatOptions[option];
1461
- return oldOption && this.options[oldOption] !== undefined
1462
- ? this.options[oldOption]
1463
- : this.options[option];
1464
- };
1465
-
1466
- Outlayer.compatOptions = {
1467
- // currentName: oldName
1468
- initLayout: 'isInitLayout',
1469
- horizontal: 'isHorizontal',
1470
- layoutInstant: 'isLayoutInstant',
1471
- originLeft: 'isOriginLeft',
1472
- originTop: 'isOriginTop',
1473
- resize: 'isResizeBound',
1474
- resizeContainer: 'isResizingContainer',
1475
- };
1476
-
1477
- proto._create = function () {
1478
- // get items from children
1479
- this.reloadItems();
1480
- // elements that affect layout, but are not laid out
1481
- this.stamps = [];
1482
- this.stamp(this.options.stamp);
1483
- // set container style
1484
- utils.extend(this.element.style, this.options.containerStyle);
1485
-
1486
- // bind resize method
1487
- var canBindResize = this._getOption('resize');
1488
- if (canBindResize) {
1489
- this.bindResize();
1490
- }
1491
- };
1492
-
1493
- // goes through all children again and gets bricks in proper order
1494
- proto.reloadItems = function () {
1495
- // collection of item elements
1496
- this.items = this._itemize(this.element.children);
1497
- };
1498
-
1499
- /**
1500
- * turn elements into Outlayer.Items to be used in layout
1501
- * @param {Array or NodeList or HTMLElement} elems
1502
- * @returns {Array} items - collection of new Outlayer Items
1503
- */
1504
- proto._itemize = function (elems) {
1505
- var itemElems = this._filterFindItemElements(elems);
1506
- var Item = this.constructor.Item;
1507
-
1508
- // create new Outlayer Items for collection
1509
- var items = [];
1510
- for (var i = 0; i < itemElems.length; i++) {
1511
- var elem = itemElems[i];
1512
- var item = new Item(elem, this);
1513
- items.push(item);
1514
- }
1515
-
1516
- return items;
1517
- };
1518
-
1519
- /**
1520
- * get item elements to be used in layout
1521
- * @param {Array or NodeList or HTMLElement} elems
1522
- * @returns {Array} items - item elements
1523
- */
1524
- proto._filterFindItemElements = function (elems) {
1525
- return utils.filterFindElements(elems, this.options.itemSelector);
1526
- };
1527
-
1528
- /**
1529
- * getter method for getting item elements
1530
- * @returns {Array} elems - collection of item elements
1531
- */
1532
- proto.getItemElements = function () {
1533
- return this.items.map(function (item) {
1534
- return item.element;
1535
- });
1536
- };
1537
-
1538
- // ----- init & layout ----- //
1539
-
1540
- /**
1541
- * lays out all items
1542
- */
1543
- proto.layout = function () {
1544
- this._resetLayout();
1545
- this._manageStamps();
1546
-
1547
- // don't animate first layout
1548
- var layoutInstant = this._getOption('layoutInstant');
1549
- var isInstant =
1550
- layoutInstant !== undefined ? layoutInstant : !this._isLayoutInited;
1551
- this.layoutItems(this.items, isInstant);
1552
-
1553
- // flag for initalized
1554
- this._isLayoutInited = true;
1555
- };
1556
-
1557
- // _init is alias for layout
1558
- proto._init = proto.layout;
1559
-
1560
- /**
1561
- * logic before any new layout
1562
- */
1563
- proto._resetLayout = function () {
1564
- this.getSize();
1565
- };
1566
-
1567
- proto.getSize = function () {
1568
- this.size = getSize(this.element);
1569
- };
1570
-
1571
- /**
1572
- * get measurement from option, for columnWidth, rowHeight, gutter
1573
- * if option is String -> get element from selector string, & get size of element
1574
- * if option is Element -> get size of element
1575
- * else use option as a number
1576
- *
1577
- * @param {String} measurement
1578
- * @param {String} size - width or height
1579
- * @private
1580
- */
1581
- proto._getMeasurement = function (measurement, size) {
1582
- var option = this.options[measurement];
1583
- var elem;
1584
- if (!option) {
1585
- // default to 0
1586
- this[measurement] = 0;
1587
- } else {
1588
- // use option as an element
1589
- if (typeof option == 'string') {
1590
- elem = this.element.querySelector(option);
1591
- } else if (option instanceof HTMLElement) {
1592
- elem = option;
1593
- }
1594
- // use size of element, if element
1595
- this[measurement] = elem ? getSize(elem)[size] : option;
1596
- }
1597
- };
1598
-
1599
- /**
1600
- * layout a collection of item elements
1601
- * @api public
1602
- */
1603
- proto.layoutItems = function (items, isInstant) {
1604
- items = this._getItemsForLayout(items);
1605
-
1606
- this._layoutItems(items, isInstant);
1607
-
1608
- this._postLayout();
1609
- };
1610
-
1611
- /**
1612
- * get the items to be laid out
1613
- * you may want to skip over some items
1614
- * @param {Array} items
1615
- * @returns {Array} items
1616
- */
1617
- proto._getItemsForLayout = function (items) {
1618
- return items.filter(function (item) {
1619
- return !item.isIgnored;
1620
- });
1621
- };
1622
-
1623
- /**
1624
- * layout items
1625
- * @param {Array} items
1626
- * @param {Boolean} isInstant
1627
- */
1628
- proto._layoutItems = function (items, isInstant) {
1629
- this._emitCompleteOnItems('layout', items);
1630
-
1631
- if (!items || !items.length) {
1632
- // no items, emit event with empty array
1633
- return;
1634
- }
1635
-
1636
- var queue = [];
1637
-
1638
- items.forEach(function (item) {
1639
- // get x/y object from method
1640
- var position = this._getItemLayoutPosition(item);
1641
- // enqueue
1642
- position.item = item;
1643
- position.isInstant = isInstant || item.isLayoutInstant;
1644
- queue.push(position);
1645
- }, this);
1646
-
1647
- this._processLayoutQueue(queue);
1648
- };
1649
-
1650
- /**
1651
- * get item layout position
1652
- * @param {Outlayer.Item} item
1653
- * @returns {Object} x and y position
1654
- */
1655
- proto._getItemLayoutPosition = function (/* item */) {
1656
- return {
1657
- x: 0,
1658
- y: 0,
1659
- };
1660
- };
1661
-
1662
- /**
1663
- * iterate over array and position each item
1664
- * Reason being - separating this logic prevents 'layout invalidation'
1665
- * thx @paul_irish
1666
- * @param {Array} queue
1667
- */
1668
- proto._processLayoutQueue = function (queue) {
1669
- this.updateStagger();
1670
- queue.forEach(function (obj, i) {
1671
- this._positionItem(obj.item, obj.x, obj.y, obj.isInstant, i);
1672
- }, this);
1673
- };
1674
-
1675
- // set stagger from option in milliseconds number
1676
- proto.updateStagger = function () {
1677
- var stagger = this.options.stagger;
1678
- if (stagger === null || stagger === undefined) {
1679
- this.stagger = 0;
1680
- return;
1681
- }
1682
- this.stagger = getMilliseconds(stagger);
1683
- return this.stagger;
1684
- };
1685
-
1686
- /**
1687
- * Sets position of item in DOM
1688
- * @param {Outlayer.Item} item
1689
- * @param {Number} x - horizontal position
1690
- * @param {Number} y - vertical position
1691
- * @param {Boolean} isInstant - disables transitions
1692
- */
1693
- proto._positionItem = function (item, x, y, isInstant, i) {
1694
- if (isInstant) {
1695
- // if not transition, just set CSS
1696
- item.goTo(x, y);
1697
- } else {
1698
- item.stagger(i * this.stagger);
1699
- item.moveTo(x, y);
1700
- }
1701
- };
1702
-
1703
- /**
1704
- * Any logic you want to do after each layout,
1705
- * i.e. size the container
1706
- */
1707
- proto._postLayout = function () {
1708
- this.resizeContainer();
1709
- };
1710
-
1711
- proto.resizeContainer = function () {
1712
- var isResizingContainer = this._getOption('resizeContainer');
1713
- if (!isResizingContainer) {
1714
- return;
1715
- }
1716
- var size = this._getContainerSize();
1717
- if (size) {
1718
- this._setContainerMeasure(size.width, true);
1719
- this._setContainerMeasure(size.height, false);
1720
- }
1721
- };
1722
-
1723
- /**
1724
- * Sets width or height of container if returned
1725
- * @returns {Object} size
1726
- * @param {Number} width
1727
- * @param {Number} height
1728
- */
1729
- proto._getContainerSize = noop;
1730
-
1731
- /**
1732
- * @param {Number} measure - size of width or height
1733
- * @param {Boolean} isWidth
1734
- */
1735
- proto._setContainerMeasure = function (measure, isWidth) {
1736
- if (measure === undefined) {
1737
- return;
1738
- }
1739
-
1740
- var elemSize = this.size;
1741
- // add padding and border width if border box
1742
- if (elemSize.isBorderBox) {
1743
- measure += isWidth
1744
- ? elemSize.paddingLeft +
1745
- elemSize.paddingRight +
1746
- elemSize.borderLeftWidth +
1747
- elemSize.borderRightWidth
1748
- : elemSize.paddingBottom +
1749
- elemSize.paddingTop +
1750
- elemSize.borderTopWidth +
1751
- elemSize.borderBottomWidth;
1752
- }
1753
-
1754
- measure = Math.max(measure, 0);
1755
- this.element.style[isWidth ? 'width' : 'height'] = measure + 'px';
1756
- };
1757
-
1758
- /**
1759
- * emit eventComplete on a collection of items events
1760
- * @param {String} eventName
1761
- * @param {Array} items - Outlayer.Items
1762
- */
1763
- proto._emitCompleteOnItems = function (eventName, items) {
1764
- var _this = this;
1765
- function onComplete() {
1766
- _this.dispatchEvent(eventName + 'Complete', null, [items]);
1767
- }
1768
-
1769
- var count = items.length;
1770
- if (!items || !count) {
1771
- onComplete();
1772
- return;
1773
- }
1774
-
1775
- var doneCount = 0;
1776
- function tick() {
1777
- doneCount++;
1778
- if (doneCount == count) {
1779
- onComplete();
1780
- }
1781
- }
1782
-
1783
- // bind callback
1784
- items.forEach(function (item) {
1785
- item.once(eventName, tick);
1786
- });
1787
- };
1788
-
1789
- /**
1790
- * emits events via EvEmitter and jQuery events
1791
- * @param {String} type - name of event
1792
- * @param {Event} event - original event
1793
- * @param {Array} args - extra arguments
1794
- */
1795
- proto.dispatchEvent = function (type, event, args) {
1796
- // add original event to arguments
1797
- var emitArgs = event ? [event].concat(args) : args;
1798
- this.emitEvent(type, emitArgs);
1799
-
1800
- if (jQuery) {
1801
- // set this.$element
1802
- this.$element = this.$element || jQuery(this.element);
1803
- if (event) {
1804
- // create jQuery event
1805
- var $event = jQuery.Event(event);
1806
- $event.type = type;
1807
- this.$element.trigger($event, args);
1808
- } else {
1809
- // just trigger with type if no event available
1810
- this.$element.trigger(type, args);
1811
- }
1812
- }
1813
- };
1814
-
1815
- // -------------------------- ignore & stamps -------------------------- //
1816
-
1817
- /**
1818
- * keep item in collection, but do not lay it out
1819
- * ignored items do not get skipped in layout
1820
- * @param {Element} elem
1821
- */
1822
- proto.ignore = function (elem) {
1823
- var item = this.getItem(elem);
1824
- if (item) {
1825
- item.isIgnored = true;
1826
- }
1827
- };
1828
-
1829
- /**
1830
- * return item to layout collection
1831
- * @param {Element} elem
1832
- */
1833
- proto.unignore = function (elem) {
1834
- var item = this.getItem(elem);
1835
- if (item) {
1836
- delete item.isIgnored;
1837
- }
1838
- };
1839
-
1840
- /**
1841
- * adds elements to stamps
1842
- * @param {NodeList, Array, Element, or String} elems
1843
- */
1844
- proto.stamp = function (elems) {
1845
- elems = this._find(elems);
1846
- if (!elems) {
1847
- return;
1848
- }
1849
-
1850
- this.stamps = this.stamps.concat(elems);
1851
- // ignore
1852
- elems.forEach(this.ignore, this);
1853
- };
1854
-
1855
- /**
1856
- * removes elements to stamps
1857
- * @param {NodeList, Array, or Element} elems
1858
- */
1859
- proto.unstamp = function (elems) {
1860
- elems = this._find(elems);
1861
- if (!elems) {
1862
- return;
1863
- }
1864
-
1865
- elems.forEach(function (elem) {
1866
- // filter out removed stamp elements
1867
- utils.removeFrom(this.stamps, elem);
1868
- this.unignore(elem);
1869
- }, this);
1870
- };
1871
-
1872
- /**
1873
- * finds child elements
1874
- * @param {NodeList, Array, Element, or String} elems
1875
- * @returns {Array} elems
1876
- */
1877
- proto._find = function (elems) {
1878
- if (!elems) {
1879
- return;
1880
- }
1881
- // if string, use argument as selector string
1882
- if (typeof elems == 'string') {
1883
- elems = this.element.querySelectorAll(elems);
1884
- }
1885
- elems = utils.makeArray(elems);
1886
- return elems;
1887
- };
1888
-
1889
- proto._manageStamps = function () {
1890
- if (!this.stamps || !this.stamps.length) {
1891
- return;
1892
- }
1893
-
1894
- this._getBoundingRect();
1895
-
1896
- this.stamps.forEach(this._manageStamp, this);
1897
- };
1898
-
1899
- // update boundingLeft / Top
1900
- proto._getBoundingRect = function () {
1901
- // get bounding rect for container element
1902
- var boundingRect = this.element.getBoundingClientRect();
1903
- var size = this.size;
1904
- this._boundingRect = {
1905
- left: boundingRect.left + size.paddingLeft + size.borderLeftWidth,
1906
- top: boundingRect.top + size.paddingTop + size.borderTopWidth,
1907
- right:
1908
- boundingRect.right -
1909
- (size.paddingRight + size.borderRightWidth),
1910
- bottom:
1911
- boundingRect.bottom -
1912
- (size.paddingBottom + size.borderBottomWidth),
1913
- };
1914
- };
1915
-
1916
- /**
1917
- * @param {Element} stamp
1918
- **/
1919
- proto._manageStamp = noop;
1920
-
1921
- /**
1922
- * get x/y position of element relative to container element
1923
- * @param {Element} elem
1924
- * @returns {Object} offset - has left, top, right, bottom
1925
- */
1926
- proto._getElementOffset = function (elem) {
1927
- var boundingRect = elem.getBoundingClientRect();
1928
- var thisRect = this._boundingRect;
1929
- var size = getSize(elem);
1930
- var offset = {
1931
- left: boundingRect.left - thisRect.left - size.marginLeft,
1932
- top: boundingRect.top - thisRect.top - size.marginTop,
1933
- right: thisRect.right - boundingRect.right - size.marginRight,
1934
- bottom: thisRect.bottom - boundingRect.bottom - size.marginBottom,
1935
- };
1936
- return offset;
1937
- };
1938
-
1939
- // -------------------------- resize -------------------------- //
1940
-
1941
- // enable event handlers for listeners
1942
- // i.e. resize -> onresize
1943
- proto.handleEvent = utils.handleEvent;
1944
-
1945
- /**
1946
- * Bind layout to window resizing
1947
- */
1948
- proto.bindResize = function () {
1949
- window.addEventListener('resize', this);
1950
- this.isResizeBound = true;
1951
- };
1952
-
1953
- /**
1954
- * Unbind layout to window resizing
1955
- */
1956
- proto.unbindResize = function () {
1957
- window.removeEventListener('resize', this);
1958
- this.isResizeBound = false;
1959
- };
1960
-
1961
- proto.onresize = function () {
1962
- this.resize();
1963
- };
1964
-
1965
- utils.debounceMethod(Outlayer, 'onresize', 100);
1966
-
1967
- proto.resize = function () {
1968
- // don't trigger if size did not change
1969
- // or if resize was unbound. See #9
1970
- if (!this.isResizeBound || !this.needsResizeLayout()) {
1971
- return;
1972
- }
1973
-
1974
- this.layout();
1975
- };
1976
-
1977
- /**
1978
- * check if layout is needed post layout
1979
- * @returns Boolean
1980
- */
1981
- proto.needsResizeLayout = function () {
1982
- var size = getSize(this.element);
1983
- // check that this.size and size are there
1984
- // IE8 triggers resize on body size change, so they might not be
1985
- var hasSizes = this.size && size;
1986
- return hasSizes && size.innerWidth !== this.size.innerWidth;
1987
- };
1988
-
1989
- // -------------------------- methods -------------------------- //
1990
-
1991
- /**
1992
- * add items to Outlayer instance
1993
- * @param {Array or NodeList or Element} elems
1994
- * @returns {Array} items - Outlayer.Items
1995
- **/
1996
- proto.addItems = function (elems) {
1997
- var items = this._itemize(elems);
1998
- // add items to collection
1999
- if (items.length) {
2000
- this.items = this.items.concat(items);
2001
- }
2002
- return items;
2003
- };
2004
-
2005
- /**
2006
- * Layout newly-appended item elements
2007
- * @param {Array or NodeList or Element} elems
2008
- */
2009
- proto.appended = function (elems) {
2010
- var items = this.addItems(elems);
2011
- if (!items.length) {
2012
- return;
2013
- }
2014
- // layout and reveal just the new items
2015
- this.layoutItems(items, true);
2016
- this.reveal(items);
2017
- };
2018
-
2019
- /**
2020
- * Layout prepended elements
2021
- * @param {Array or NodeList or Element} elems
2022
- */
2023
- proto.prepended = function (elems) {
2024
- var items = this._itemize(elems);
2025
- if (!items.length) {
2026
- return;
2027
- }
2028
- // add items to beginning of collection
2029
- var previousItems = this.items.slice(0);
2030
- this.items = items.concat(previousItems);
2031
- // start new layout
2032
- this._resetLayout();
2033
- this._manageStamps();
2034
- // layout new stuff without transition
2035
- this.layoutItems(items, true);
2036
- this.reveal(items);
2037
- // layout previous items
2038
- this.layoutItems(previousItems);
2039
- };
2040
-
2041
- /**
2042
- * reveal a collection of items
2043
- * @param {Array of Outlayer.Items} items
2044
- */
2045
- proto.reveal = function (items) {
2046
- this._emitCompleteOnItems('reveal', items);
2047
- if (!items || !items.length) {
2048
- return;
2049
- }
2050
- var stagger = this.updateStagger();
2051
- items.forEach(function (item, i) {
2052
- item.stagger(i * stagger);
2053
- item.reveal();
2054
- });
2055
- };
2056
-
2057
- /**
2058
- * hide a collection of items
2059
- * @param {Array of Outlayer.Items} items
2060
- */
2061
- proto.hide = function (items) {
2062
- this._emitCompleteOnItems('hide', items);
2063
- if (!items || !items.length) {
2064
- return;
2065
- }
2066
- var stagger = this.updateStagger();
2067
- items.forEach(function (item, i) {
2068
- item.stagger(i * stagger);
2069
- item.hide();
2070
- });
2071
- };
2072
-
2073
- /**
2074
- * reveal item elements
2075
- * @param {Array}, {Element}, {NodeList} items
2076
- */
2077
- proto.revealItemElements = function (elems) {
2078
- var items = this.getItems(elems);
2079
- this.reveal(items);
2080
- };
2081
-
2082
- /**
2083
- * hide item elements
2084
- * @param {Array}, {Element}, {NodeList} items
2085
- */
2086
- proto.hideItemElements = function (elems) {
2087
- var items = this.getItems(elems);
2088
- this.hide(items);
2089
- };
2090
-
2091
- /**
2092
- * get Outlayer.Item, given an Element
2093
- * @param {Element} elem
2094
- * @param {Function} callback
2095
- * @returns {Outlayer.Item} item
2096
- */
2097
- proto.getItem = function (elem) {
2098
- // loop through items to get the one that matches
2099
- for (var i = 0; i < this.items.length; i++) {
2100
- var item = this.items[i];
2101
- if (item.element == elem) {
2102
- // return item
2103
- return item;
2104
- }
2105
- }
2106
- };
2107
-
2108
- /**
2109
- * get collection of Outlayer.Items, given Elements
2110
- * @param {Array} elems
2111
- * @returns {Array} items - Outlayer.Items
2112
- */
2113
- proto.getItems = function (elems) {
2114
- elems = utils.makeArray(elems);
2115
- var items = [];
2116
- elems.forEach(function (elem) {
2117
- var item = this.getItem(elem);
2118
- if (item) {
2119
- items.push(item);
2120
- }
2121
- }, this);
2122
-
2123
- return items;
2124
- };
2125
-
2126
- /**
2127
- * remove element(s) from instance and DOM
2128
- * @param {Array or NodeList or Element} elems
2129
- */
2130
- proto.remove = function (elems) {
2131
- var removeItems = this.getItems(elems);
2132
-
2133
- this._emitCompleteOnItems('remove', removeItems);
2134
-
2135
- // bail if no items to remove
2136
- if (!removeItems || !removeItems.length) {
2137
- return;
2138
- }
2139
-
2140
- removeItems.forEach(function (item) {
2141
- item.remove();
2142
- // remove item from collection
2143
- utils.removeFrom(this.items, item);
2144
- }, this);
2145
- };
2146
-
2147
- // ----- destroy ----- //
2148
-
2149
- // remove and disable Outlayer instance
2150
- proto.destroy = function () {
2151
- // clean up dynamic styles
2152
- var style = this.element.style;
2153
- style.height = '';
2154
- style.position = '';
2155
- style.width = '';
2156
- // destroy items
2157
- this.items.forEach(function (item) {
2158
- item.destroy();
2159
- });
2160
-
2161
- this.unbindResize();
2162
-
2163
- var id = this.element.outlayerGUID;
2164
- delete instances[id]; // remove reference to instance by id
2165
- delete this.element.outlayerGUID;
2166
- // remove data for jQuery
2167
- if (jQuery) {
2168
- jQuery.removeData(this.element, this.constructor.namespace);
2169
- }
2170
- };
2171
-
2172
- // -------------------------- data -------------------------- //
2173
-
2174
- /**
2175
- * get Outlayer instance from element
2176
- * @param {Element} elem
2177
- * @returns {Outlayer}
2178
- */
2179
- Outlayer.data = function (elem) {
2180
- elem = utils.getQueryElement(elem);
2181
- var id = elem && elem.outlayerGUID;
2182
- return id && instances[id];
2183
- };
2184
-
2185
- // -------------------------- create Outlayer class -------------------------- //
2186
-
2187
- /**
2188
- * create a layout class
2189
- * @param {String} namespace
2190
- */
2191
- Outlayer.create = function (namespace, options) {
2192
- // sub-class Outlayer
2193
- var Layout = subclass(Outlayer);
2194
- // apply new options and compatOptions
2195
- Layout.defaults = utils.extend({}, Outlayer.defaults);
2196
- utils.extend(Layout.defaults, options);
2197
- Layout.compatOptions = utils.extend({}, Outlayer.compatOptions);
2198
-
2199
- Layout.namespace = namespace;
2200
-
2201
- Layout.data = Outlayer.data;
2202
-
2203
- // sub-class Item
2204
- Layout.Item = subclass(Item);
2205
-
2206
- // -------------------------- declarative -------------------------- //
2207
-
2208
- utils.htmlInit(Layout, namespace);
2209
-
2210
- // -------------------------- jQuery bridge -------------------------- //
2211
-
2212
- // make into jQuery plugin
2213
- if (jQuery && jQuery.bridget) {
2214
- jQuery.bridget(namespace, Layout);
2215
- }
2216
-
2217
- return Layout;
2218
- };
2219
-
2220
- function subclass(Parent) {
2221
- function SubClass() {
2222
- Parent.apply(this, arguments);
2223
- }
2224
-
2225
- SubClass.prototype = Object.create(Parent.prototype);
2226
- SubClass.prototype.constructor = SubClass;
2227
-
2228
- return SubClass;
2229
- }
2230
-
2231
- // ----- helpers ----- //
2232
-
2233
- // how many milliseconds are in each unit
2234
- var msUnits = {
2235
- ms: 1,
2236
- s: 1000,
2237
- };
2238
-
2239
- // munge time-like parameter into millisecond number
2240
- // '0.4s' -> 40
2241
- function getMilliseconds(time) {
2242
- if (typeof time == 'number') {
2243
- return time;
2244
- }
2245
- var matches = time.match(/(^\d*\.?\d*)(\w*)/);
2246
- var num = matches && matches[1];
2247
- var unit = matches && matches[2];
2248
- if (!num.length) {
2249
- return 0;
2250
- }
2251
- num = parseFloat(num);
2252
- var mult = msUnits[unit] || 1;
2253
- return num * mult;
2254
- }
2255
-
2256
- // ----- fin ----- //
2257
-
2258
- // back in global
2259
- Outlayer.Item = Item;
2260
-
2261
- return Outlayer;
2262
- });
2263
-
2264
- /**
2265
- * Enviratope Item
2266
- **/
2267
-
2268
- (function (window, factory) {
2269
- // universal module definition
2270
- /* jshint strict: false */ /*globals define, module, require */
2271
- if (typeof define == 'function' && define.amd) {
2272
- // AMD
2273
- define('enviratope/item', ['outlayer/outlayer'], factory);
2274
- } else if (typeof module == 'object' && module.exports) {
2275
- // CommonJS
2276
- module.exports = factory(require('outlayer'));
2277
- } else {
2278
- // browser global
2279
- window.Enviratope = window.Enviratope || {};
2280
- window.Enviratope.Item = factory(window.Outlayer);
2281
- }
2282
- })(window, function factory(Outlayer) {
2283
- 'use strict';
2284
-
2285
- // -------------------------- Item -------------------------- //
2286
-
2287
- // sub-class Outlayer Item
2288
- function Item() {
2289
- Outlayer.Item.apply(this, arguments);
2290
- }
2291
-
2292
- var proto = (Item.prototype = Object.create(Outlayer.Item.prototype));
2293
-
2294
- var _create = proto._create;
2295
- proto._create = function () {
2296
- // assign id, used for original-order sorting
2297
- this.id = this.layout.itemGUID++;
2298
- _create.call(this);
2299
- this.sortData = {};
2300
- };
2301
-
2302
- proto.updateSortData = function () {
2303
- if (this.isIgnored) {
2304
- return;
2305
- }
2306
- // default sorters
2307
- this.sortData.id = this.id;
2308
- // for backward compatibility
2309
- this.sortData['original-order'] = this.id;
2310
- this.sortData.random = Math.random();
2311
- // go thru getSortData obj and apply the sorters
2312
- var getSortData = this.layout.options.getSortData;
2313
- var sorters = this.layout._sorters;
2314
- for (var key in getSortData) {
2315
- var sorter = sorters[key];
2316
- this.sortData[key] = sorter(this.element, this);
2317
- }
2318
- };
2319
-
2320
- var _destroy = proto.destroy;
2321
- proto.destroy = function () {
2322
- // call super
2323
- _destroy.apply(this, arguments);
2324
- // reset display, #741
2325
- this.css({
2326
- display: '',
2327
- });
2328
- };
2329
-
2330
- return Item;
2331
- });
2332
-
2333
- /**
2334
- * Enviratope LayoutMode
2335
- */
2336
-
2337
- (function (window, factory) {
2338
- // universal module definition
2339
- /* jshint strict: false */ /*globals define, module, require */
2340
- if (typeof define == 'function' && define.amd) {
2341
- // AMD
2342
- define('enviratope/layout-mode', [
2343
- 'get-size/get-size',
2344
- 'outlayer/outlayer',
2345
- ], factory);
2346
- } else if (typeof module == 'object' && module.exports) {
2347
- // CommonJS
2348
- module.exports = factory(require('get-size'), require('outlayer'));
2349
- } else {
2350
- // browser global
2351
- window.Enviratope = window.Enviratope || {};
2352
- window.Enviratope.LayoutMode = factory(window.getSize, window.Outlayer);
2353
- }
2354
- })(window, function factory(getSize, Outlayer) {
2355
- 'use strict';
2356
-
2357
- // layout mode class
2358
- function LayoutMode(enviratope) {
2359
- this.enviratope = enviratope;
2360
- // link properties
2361
- if (enviratope) {
2362
- this.options = enviratope.options[this.namespace];
2363
- this.element = enviratope.element;
2364
- this.items = enviratope.filteredItems;
2365
- this.size = enviratope.size;
2366
- }
2367
- }
2368
-
2369
- var proto = LayoutMode.prototype;
2370
-
2371
- /**
2372
- * some methods should just defer to default Outlayer method
2373
- * and reference the Enviratope instance as `this`
2374
- **/
2375
- var facadeMethods = [
2376
- '_resetLayout',
2377
- '_getItemLayoutPosition',
2378
- '_manageStamp',
2379
- '_getContainerSize',
2380
- '_getElementOffset',
2381
- 'needsResizeLayout',
2382
- '_getOption',
2383
- ];
2384
-
2385
- facadeMethods.forEach(function (methodName) {
2386
- proto[methodName] = function () {
2387
- return Outlayer.prototype[methodName].apply(
2388
- this.enviratope,
2389
- arguments,
2390
- );
2391
- };
2392
- });
2393
-
2394
- // ----- ----- //
2395
-
2396
- // for horizontal layout modes, check vertical size
2397
- proto.needsVerticalResizeLayout = function () {
2398
- // don't trigger if size did not change
2399
- var size = getSize(this.enviratope.element);
2400
- // check that this.size and size are there
2401
- // IE8 triggers resize on body size change, so they might not be
2402
- var hasSizes = this.enviratope.size && size;
2403
- return hasSizes && size.innerHeight != this.enviratope.size.innerHeight;
2404
- };
2405
-
2406
- // ----- measurements ----- //
2407
-
2408
- proto._getMeasurement = function () {
2409
- this.enviratope._getMeasurement.apply(this, arguments);
2410
- };
2411
-
2412
- proto.getColumnWidth = function () {
2413
- this.getSegmentSize('column', 'Width');
2414
- };
2415
-
2416
- proto.getRowHeight = function () {
2417
- this.getSegmentSize('row', 'Height');
2418
- };
2419
-
2420
- /**
2421
- * get columnWidth or rowHeight
2422
- * segment: 'column' or 'row'
2423
- * size 'Width' or 'Height'
2424
- **/
2425
- proto.getSegmentSize = function (segment, size) {
2426
- var segmentName = segment + size;
2427
- var outerSize = 'outer' + size;
2428
- // columnWidth / outerWidth // rowHeight / outerHeight
2429
- this._getMeasurement(segmentName, outerSize);
2430
- // got rowHeight or columnWidth, we can chill
2431
- if (this[segmentName]) {
2432
- return;
2433
- }
2434
- // fall back to item of first element
2435
- var firstItemSize = this.getFirstItemSize();
2436
- this[segmentName] =
2437
- (firstItemSize && firstItemSize[outerSize]) ||
2438
- // or size of container
2439
- this.enviratope.size['inner' + size];
2440
- };
2441
-
2442
- proto.getFirstItemSize = function () {
2443
- var firstItem = this.enviratope.filteredItems[0];
2444
- return firstItem && firstItem.element && getSize(firstItem.element);
2445
- };
2446
-
2447
- // ----- methods that should reference enviratope ----- //
2448
-
2449
- proto.layout = function () {
2450
- this.enviratope.layout.apply(this.enviratope, arguments);
2451
- };
2452
-
2453
- proto.getSize = function () {
2454
- this.enviratope.getSize();
2455
- this.size = this.enviratope.size;
2456
- };
2457
-
2458
- // -------------------------- create -------------------------- //
2459
-
2460
- LayoutMode.modes = {};
2461
-
2462
- LayoutMode.create = function (namespace, options) {
2463
- function Mode() {
2464
- LayoutMode.apply(this, arguments);
2465
- }
2466
-
2467
- Mode.prototype = Object.create(proto);
2468
- Mode.prototype.constructor = Mode;
2469
-
2470
- // default options
2471
- if (options) {
2472
- Mode.options = options;
2473
- }
2474
-
2475
- Mode.prototype.namespace = namespace;
2476
- // register in Enviratope
2477
- LayoutMode.modes[namespace] = Mode;
2478
-
2479
- return Mode;
2480
- };
2481
-
2482
- return LayoutMode;
2483
- });
2484
-
2485
- /*!
2486
- * Masonry v4.1.0
2487
- * Cascading grid layout library
2488
- * http://masonry.desandro.com
2489
- * MIT License
2490
- * by David DeSandro
2491
- */
2492
-
2493
- (function (window, factory) {
2494
- // universal module definition
2495
- /* jshint strict: false */ /*globals define, module, require */
2496
- if (typeof define == 'function' && define.amd) {
2497
- // AMD
2498
- define('masonry/masonry', [
2499
- 'outlayer/outlayer',
2500
- 'get-size/get-size',
2501
- ], factory);
2502
- } else if (typeof module == 'object' && module.exports) {
2503
- // CommonJS
2504
- module.exports = factory(require('outlayer'), require('get-size'));
2505
- } else {
2506
- // browser global
2507
- window.Masonry = factory(window.Outlayer, window.getSize);
2508
- }
2509
- })(window, function factory(Outlayer, getSize) {
2510
- // -------------------------- masonryDefinition -------------------------- //
2511
-
2512
- // create an Outlayer layout class
2513
- var Masonry = Outlayer.create('masonry');
2514
- // isFitWidth -> fitWidth
2515
- Masonry.compatOptions.fitWidth = 'isFitWidth';
2516
-
2517
- Masonry.prototype._resetLayout = function () {
2518
- this.getSize();
2519
- this._getMeasurement('columnWidth', 'outerWidth');
2520
- this._getMeasurement('gutter', 'outerWidth');
2521
- this.measureColumns();
2522
-
2523
- // reset column Y
2524
- this.colYs = [];
2525
- for (var i = 0; i < this.cols; i++) {
2526
- this.colYs.push(0);
2527
- }
2528
-
2529
- this.maxY = 0;
2530
- };
2531
-
2532
- Masonry.prototype.measureColumns = function () {
2533
- this.getContainerWidth();
2534
- // if columnWidth is 0, default to outerWidth of first item
2535
- if (!this.columnWidth) {
2536
- var firstItem = this.items[0];
2537
- var firstItemElem = firstItem && firstItem.element;
2538
- // columnWidth fall back to item of first element
2539
- this.columnWidth =
2540
- (firstItemElem && getSize(firstItemElem).outerWidth) ||
2541
- // if first elem has no width, default to size of container
2542
- this.containerWidth;
2543
- }
2544
-
2545
- var columnWidth = (this.columnWidth += this.gutter);
2546
-
2547
- // calculate columns
2548
- var containerWidth = this.containerWidth + this.gutter;
2549
- var cols = containerWidth / columnWidth;
2550
- // fix rounding errors, typically with gutters
2551
- var excess = columnWidth - (containerWidth % columnWidth);
2552
- // if overshoot is less than a pixel, round up, otherwise floor it
2553
- var mathMethod = excess && excess < 1 ? 'round' : 'floor';
2554
- cols = Math[mathMethod](cols);
2555
- this.cols = Math.max(cols, 1);
2556
- };
2557
-
2558
- Masonry.prototype.getContainerWidth = function () {
2559
- // container is parent if fit width
2560
- var isFitWidth = this._getOption('fitWidth');
2561
- var container = isFitWidth ? this.element.parentNode : this.element;
2562
- // check that this.size and size are there
2563
- // IE8 triggers resize on body size change, so they might not be
2564
- var size = getSize(container);
2565
- this.containerWidth = size && size.innerWidth;
2566
- };
2567
-
2568
- Masonry.prototype._getItemLayoutPosition = function (item) {
2569
- item.getSize();
2570
- // how many columns does this brick span
2571
- var remainder = item.size.outerWidth % this.columnWidth;
2572
- var mathMethod = remainder && remainder < 1 ? 'round' : 'ceil';
2573
- // round if off by 1 pixel, otherwise use ceil
2574
- var colSpan = Math[mathMethod](item.size.outerWidth / this.columnWidth);
2575
- colSpan = Math.min(colSpan, this.cols);
2576
-
2577
- var colGroup = this._getColGroup(colSpan);
2578
- // get the minimum Y value from the columns
2579
- var minimumY = Math.min.apply(Math, colGroup);
2580
- var shortColIndex = colGroup.indexOf(minimumY);
2581
-
2582
- // position the brick
2583
- var position = {
2584
- x: this.columnWidth * shortColIndex,
2585
- y: minimumY,
2586
- };
2587
-
2588
- // apply setHeight to necessary columns
2589
- var setHeight = minimumY + item.size.outerHeight;
2590
- var setSpan = this.cols + 1 - colGroup.length;
2591
- for (var i = 0; i < setSpan; i++) {
2592
- this.colYs[shortColIndex + i] = setHeight;
2593
- }
2594
-
2595
- return position;
2596
- };
2597
-
2598
- /**
2599
- * @param {Number} colSpan - number of columns the element spans
2600
- * @returns {Array} colGroup
2601
- */
2602
- Masonry.prototype._getColGroup = function (colSpan) {
2603
- if (colSpan < 2) {
2604
- // if brick spans only one column, use all the column Ys
2605
- return this.colYs;
2606
- }
2607
-
2608
- var colGroup = [];
2609
- // how many different places could this brick fit horizontally
2610
- var groupCount = this.cols + 1 - colSpan;
2611
- // for each group potential horizontal position
2612
- for (var i = 0; i < groupCount; i++) {
2613
- // make an array of colY values for that one group
2614
- var groupColYs = this.colYs.slice(i, i + colSpan);
2615
- // and get the max value of the array
2616
- colGroup[i] = Math.max.apply(Math, groupColYs);
2617
- }
2618
- return colGroup;
2619
- };
2620
-
2621
- Masonry.prototype._manageStamp = function (stamp) {
2622
- var stampSize = getSize(stamp);
2623
- var offset = this._getElementOffset(stamp);
2624
- // get the columns that this stamp affects
2625
- var isOriginLeft = this._getOption('originLeft');
2626
- var firstX = isOriginLeft ? offset.left : offset.right;
2627
- var lastX = firstX + stampSize.outerWidth;
2628
- var firstCol = Math.floor(firstX / this.columnWidth);
2629
- firstCol = Math.max(0, firstCol);
2630
- var lastCol = Math.floor(lastX / this.columnWidth);
2631
- // lastCol should not go over if multiple of columnWidth #425
2632
- lastCol -= lastX % this.columnWidth ? 0 : 1;
2633
- lastCol = Math.min(this.cols - 1, lastCol);
2634
- // set colYs to bottom of the stamp
2635
-
2636
- var isOriginTop = this._getOption('originTop');
2637
- var stampMaxY =
2638
- (isOriginTop ? offset.top : offset.bottom) + stampSize.outerHeight;
2639
- for (var i = firstCol; i <= lastCol; i++) {
2640
- this.colYs[i] = Math.max(stampMaxY, this.colYs[i]);
2641
- }
2642
- };
2643
-
2644
- Masonry.prototype._getContainerSize = function () {
2645
- this.maxY = Math.max.apply(Math, this.colYs);
2646
- var size = {
2647
- height: this.maxY,
2648
- };
2649
-
2650
- if (this._getOption('fitWidth')) {
2651
- size.width = this._getContainerFitWidth();
2652
- }
2653
-
2654
- return size;
2655
- };
2656
-
2657
- Masonry.prototype._getContainerFitWidth = function () {
2658
- var unusedCols = 0;
2659
- // count unused columns
2660
- var i = this.cols;
2661
- while (--i) {
2662
- if (this.colYs[i] !== 0) {
2663
- break;
2664
- }
2665
- unusedCols++;
2666
- }
2667
- // fit container to columns that have been used
2668
- return (this.cols - unusedCols) * this.columnWidth - this.gutter;
2669
- };
2670
-
2671
- Masonry.prototype.needsResizeLayout = function () {
2672
- var previousWidth = this.containerWidth;
2673
- this.getContainerWidth();
2674
- return previousWidth != this.containerWidth;
2675
- };
2676
-
2677
- return Masonry;
2678
- });
2679
-
2680
- /*!
2681
- * Masonry layout mode
2682
- * sub-classes Masonry
2683
- * http://masonry.desandro.com
2684
- */
2685
-
2686
- (function (window, factory) {
2687
- // universal module definition
2688
- /* jshint strict: false */ /*globals define, module, require */
2689
- if (typeof define == 'function' && define.amd) {
2690
- // AMD
2691
- define('enviratope/layout-modes/masonry', [
2692
- '../layout-mode',
2693
- 'masonry/masonry',
2694
- ], factory);
2695
- } else if (typeof module == 'object' && module.exports) {
2696
- // CommonJS
2697
- module.exports = factory(
2698
- require('../layout-mode'),
2699
- require('masonry-layout'),
2700
- );
2701
- } else {
2702
- // browser global
2703
- factory(window.Enviratope.LayoutMode, window.Masonry);
2704
- }
2705
- })(window, function factory(LayoutMode, Masonry) {
2706
- 'use strict';
2707
-
2708
- // -------------------------- masonryDefinition -------------------------- //
2709
-
2710
- // create an Outlayer layout class
2711
- var MasonryMode = LayoutMode.create('masonry');
2712
-
2713
- var proto = MasonryMode.prototype;
2714
-
2715
- var keepModeMethods = {
2716
- _getElementOffset: true,
2717
- layout: true,
2718
- _getMeasurement: true,
2719
- };
2720
-
2721
- // inherit Masonry prototype
2722
- for (var method in Masonry.prototype) {
2723
- // do not inherit mode methods
2724
- if (!keepModeMethods[method]) {
2725
- proto[method] = Masonry.prototype[method];
2726
- }
2727
- }
2728
-
2729
- var measureColumns = proto.measureColumns;
2730
- proto.measureColumns = function () {
2731
- // set items, used if measuring first item
2732
- this.items = this.enviratope.filteredItems;
2733
- measureColumns.call(this);
2734
- };
2735
-
2736
- // point to mode options for fitWidth
2737
- var _getOption = proto._getOption;
2738
- proto._getOption = function (option) {
2739
- if (option == 'fitWidth') {
2740
- return this.options.isFitWidth !== undefined
2741
- ? this.options.isFitWidth
2742
- : this.options.fitWidth;
2743
- }
2744
- return _getOption.apply(this.enviratope, arguments);
2745
- };
2746
-
2747
- return MasonryMode;
2748
- });
2749
-
2750
- /**
2751
- * fitRows layout mode
2752
- */
2753
-
2754
- (function (window, factory) {
2755
- // universal module definition
2756
- /* jshint strict: false */ /*globals define, module, require */
2757
- if (typeof define == 'function' && define.amd) {
2758
- // AMD
2759
- define('enviratope/layout-modes/fit-rows', ['../layout-mode'], factory);
2760
- } else if (typeof exports == 'object') {
2761
- // CommonJS
2762
- module.exports = factory(require('../layout-mode'));
2763
- } else {
2764
- // browser global
2765
- factory(window.Enviratope.LayoutMode);
2766
- }
2767
- })(window, function factory(LayoutMode) {
2768
- 'use strict';
2769
-
2770
- var FitRows = LayoutMode.create('fitRows');
2771
-
2772
- var proto = FitRows.prototype;
2773
-
2774
- proto._resetLayout = function () {
2775
- this.x = 0;
2776
- this.y = 0;
2777
- this.maxY = 0;
2778
- this._getMeasurement('gutter', 'outerWidth');
2779
- };
2780
-
2781
- proto._getItemLayoutPosition = function (item) {
2782
- item.getSize();
2783
-
2784
- var itemWidth = item.size.outerWidth + this.gutter;
2785
- // if this element cannot fit in the current row
2786
- var containerWidth = this.enviratope.size.innerWidth + this.gutter;
2787
- if (this.x !== 0 && itemWidth + this.x > containerWidth) {
2788
- this.x = 0;
2789
- this.y = this.maxY;
2790
- }
2791
-
2792
- var position = {
2793
- x: this.x,
2794
- y: this.y,
2795
- };
2796
-
2797
- this.maxY = Math.max(this.maxY, this.y + item.size.outerHeight);
2798
- this.x += itemWidth;
2799
-
2800
- return position;
2801
- };
2802
-
2803
- proto._getContainerSize = function () {
2804
- return { height: this.maxY };
2805
- };
2806
-
2807
- return FitRows;
2808
- });
2809
-
2810
- /**
2811
- * vertical layout mode
2812
- */
2813
-
2814
- (function (window, factory) {
2815
- // universal module definition
2816
- /* jshint strict: false */ /*globals define, module, require */
2817
- if (typeof define == 'function' && define.amd) {
2818
- // AMD
2819
- define('enviratope/layout-modes/vertical', ['../layout-mode'], factory);
2820
- } else if (typeof module == 'object' && module.exports) {
2821
- // CommonJS
2822
- module.exports = factory(require('../layout-mode'));
2823
- } else {
2824
- // browser global
2825
- factory(window.Enviratope.LayoutMode);
2826
- }
2827
- })(window, function factory(LayoutMode) {
2828
- 'use strict';
2829
-
2830
- var Vertical = LayoutMode.create('vertical', {
2831
- horizontalAlignment: 0,
2832
- });
2833
-
2834
- var proto = Vertical.prototype;
2835
-
2836
- proto._resetLayout = function () {
2837
- this.y = 0;
2838
- };
2839
-
2840
- proto._getItemLayoutPosition = function (item) {
2841
- item.getSize();
2842
- var x =
2843
- (this.enviratope.size.innerWidth - item.size.outerWidth) *
2844
- this.options.horizontalAlignment;
2845
- var y = this.y;
2846
- this.y += item.size.outerHeight;
2847
- return { x: x, y: y };
2848
- };
2849
-
2850
- proto._getContainerSize = function () {
2851
- return { height: this.y };
2852
- };
2853
-
2854
- return Vertical;
2855
- });
2856
-
2857
- /*!
2858
- * Enviratope v3.0.0
2859
- *
2860
- * Licensed GPLv3 for open source use
2861
- * or Enviratope Commercial License for commercial use
2862
- *
2863
- * http://enviratope.metafizzy.co
2864
- * Copyright 2016 Metafizzy
2865
- */
2866
-
2867
- (function (window, factory) {
2868
- // universal module definition
2869
- /* jshint strict: false */ /*globals define, module, require */
2870
- if (typeof define == 'function' && define.amd) {
2871
- // AMD
2872
- define([
2873
- 'outlayer/outlayer',
2874
- 'get-size/get-size',
2875
- 'desandro-matches-selector/matches-selector',
2876
- 'fizzy-ui-utils/utils',
2877
- './enviratope-item',
2878
- './layout-mode',
2879
- // include default layout modes
2880
- './layout-modes/masonry',
2881
- './layout-modes/fit-rows',
2882
- './layout-modes/vertical',
2883
- ], function (
2884
- Outlayer,
2885
- getSize,
2886
- matchesSelector,
2887
- utils,
2888
- Item,
2889
- LayoutMode,
2890
- ) {
2891
- return factory(
2892
- window,
2893
- Outlayer,
2894
- getSize,
2895
- matchesSelector,
2896
- utils,
2897
- Item,
2898
- LayoutMode,
2899
- );
2900
- });
2901
- } else if (typeof module == 'object' && module.exports) {
2902
- // CommonJS
2903
- module.exports = factory(
2904
- window,
2905
- require('outlayer'),
2906
- require('get-size'),
2907
- require('desandro-matches-selector'),
2908
- require('fizzy-ui-utils'),
2909
- require('./enviratope-item'),
2910
- require('./layout-mode'),
2911
- // include default layout modes
2912
- require('./layout-modes/masonry'),
2913
- require('./layout-modes/fit-rows'),
2914
- require('./layout-modes/vertical'),
2915
- );
2916
- } else {
2917
- // browser global
2918
- window.Enviratope = factory(
2919
- window,
2920
- window.Outlayer,
2921
- window.getSize,
2922
- window.matchesSelector,
2923
- window.fizzyUIUtils,
2924
- window.Enviratope.Item,
2925
- window.Enviratope.LayoutMode,
2926
- );
2927
- }
2928
- })(
2929
- window,
2930
- function factory(
2931
- window,
2932
- Outlayer,
2933
- getSize,
2934
- matchesSelector,
2935
- utils,
2936
- Item,
2937
- LayoutMode,
2938
- ) {
2939
- // -------------------------- vars -------------------------- //
2940
-
2941
- var jQuery = window.jQuery;
2942
-
2943
- // -------------------------- helpers -------------------------- //
2944
-
2945
- var trim = String.prototype.trim
2946
- ? function (str) {
2947
- return str.trim();
2948
- }
2949
- : function (str) {
2950
- return str.replace(/^\s+|\s+$/g, '');
2951
- };
2952
-
2953
- // -------------------------- enviratopeDefinition -------------------------- //
2954
-
2955
- // create an Outlayer layout class
2956
- var Enviratope = Outlayer.create('enviratope', {
2957
- layoutMode: 'masonry',
2958
- isJQueryFiltering: true,
2959
- sortAscending: true,
2960
- });
2961
-
2962
- Enviratope.Item = Item;
2963
- Enviratope.LayoutMode = LayoutMode;
2964
-
2965
- var proto = Enviratope.prototype;
2966
-
2967
- proto._create = function () {
2968
- this.itemGUID = 0;
2969
- // functions that sort items
2970
- this._sorters = {};
2971
- this._getSorters();
2972
- // call super
2973
- Outlayer.prototype._create.call(this);
2974
-
2975
- // create layout modes
2976
- this.modes = {};
2977
- // start filteredItems with all items
2978
- this.filteredItems = this.items;
2979
- // keep of track of sortBys
2980
- this.sortHistory = ['original-order'];
2981
- // create from registered layout modes
2982
- for (var name in LayoutMode.modes) {
2983
- this._initLayoutMode(name);
2984
- }
2985
- };
2986
-
2987
- proto.reloadItems = function () {
2988
- // reset item ID counter
2989
- this.itemGUID = 0;
2990
- // call super
2991
- Outlayer.prototype.reloadItems.call(this);
2992
- };
2993
-
2994
- proto._itemize = function () {
2995
- var items = Outlayer.prototype._itemize.apply(this, arguments);
2996
- // assign ID for original-order
2997
- for (var i = 0; i < items.length; i++) {
2998
- var item = items[i];
2999
- item.id = this.itemGUID++;
3000
- }
3001
- this._updateItemsSortData(items);
3002
- return items;
3003
- };
3004
-
3005
- // -------------------------- layout -------------------------- //
3006
-
3007
- proto._initLayoutMode = function (name) {
3008
- var Mode = LayoutMode.modes[name];
3009
- // set mode options
3010
- // HACK extend initial options, back-fill in default options
3011
- var initialOpts = this.options[name] || {};
3012
- this.options[name] = Mode.options
3013
- ? utils.extend(Mode.options, initialOpts)
3014
- : initialOpts;
3015
- // init layout mode instance
3016
- this.modes[name] = new Mode(this);
3017
- };
3018
-
3019
- proto.layout = function () {
3020
- // if first time doing layout, do all magic
3021
- if (!this._isLayoutInited && this._getOption('initLayout')) {
3022
- this.arrange();
3023
- return;
3024
- }
3025
- this._layout();
3026
- };
3027
-
3028
- // private method to be used in layout() & magic()
3029
- proto._layout = function () {
3030
- // don't animate first layout
3031
- var isInstant = this._getIsInstant();
3032
- // layout flow
3033
- this._resetLayout();
3034
- this._manageStamps();
3035
- this.layoutItems(this.filteredItems, isInstant);
3036
-
3037
- // flag for initalized
3038
- this._isLayoutInited = true;
3039
- };
3040
-
3041
- // filter + sort + layout
3042
- proto.arrange = function (opts) {
3043
- // set any options pass
3044
- this.option(opts);
3045
- this._getIsInstant();
3046
- // filter, sort, and layout
3047
-
3048
- // filter
3049
- var filtered = this._filter(this.items);
3050
- this.filteredItems = filtered.matches;
3051
-
3052
- this._bindArrangeComplete();
3053
-
3054
- if (this._isInstant) {
3055
- this._noTransition(this._hideReveal, [filtered]);
3056
- } else {
3057
- this._hideReveal(filtered);
3058
- }
3059
-
3060
- this._sort();
3061
- this._layout();
3062
- };
3063
- // alias to _init for main plugin method
3064
- proto._init = proto.arrange;
3065
-
3066
- proto._hideReveal = function (filtered) {
3067
- this.reveal(filtered.needReveal);
3068
- this.hide(filtered.needHide);
3069
- };
3070
-
3071
- // HACK
3072
- // Don't animate/transition first layout
3073
- // Or don't animate/transition other layouts
3074
- proto._getIsInstant = function () {
3075
- var isLayoutInstant = this._getOption('layoutInstant');
3076
- var isInstant =
3077
- isLayoutInstant !== undefined
3078
- ? isLayoutInstant
3079
- : !this._isLayoutInited;
3080
- this._isInstant = isInstant;
3081
- return isInstant;
3082
- };
3083
-
3084
- // listen for layoutComplete, hideComplete and revealComplete
3085
- // to trigger arrangeComplete
3086
- proto._bindArrangeComplete = function () {
3087
- // listen for 3 events to trigger arrangeComplete
3088
- var isLayoutComplete, isHideComplete, isRevealComplete;
3089
- var _this = this;
3090
- function arrangeParallelCallback() {
3091
- if (isLayoutComplete && isHideComplete && isRevealComplete) {
3092
- _this.dispatchEvent('arrangeComplete', null, [
3093
- _this.filteredItems,
3094
- ]);
3095
- }
3096
- }
3097
- this.once('layoutComplete', function () {
3098
- isLayoutComplete = true;
3099
- arrangeParallelCallback();
3100
- });
3101
- this.once('hideComplete', function () {
3102
- isHideComplete = true;
3103
- arrangeParallelCallback();
3104
- });
3105
- this.once('revealComplete', function () {
3106
- isRevealComplete = true;
3107
- arrangeParallelCallback();
3108
- });
3109
- };
3110
-
3111
- // -------------------------- filter -------------------------- //
3112
-
3113
- proto._filter = function (items) {
3114
- var filter = this.options.filter;
3115
- filter = filter || '*';
3116
- var matches = [];
3117
- var hiddenMatched = [];
3118
- var visibleUnmatched = [];
3119
-
3120
- var test = this._getFilterTest(filter);
3121
-
3122
- // test each item
3123
- for (var i = 0; i < items.length; i++) {
3124
- var item = items[i];
3125
- if (item.isIgnored) {
3126
- continue;
3127
- }
3128
- // add item to either matched or unmatched group
3129
- var isMatched = test(item);
3130
- // item.isFilterMatched = isMatched;
3131
- // add to matches if its a match
3132
- if (isMatched) {
3133
- matches.push(item);
3134
- }
3135
- // add to additional group if item needs to be hidden or revealed
3136
- if (isMatched && item.isHidden) {
3137
- hiddenMatched.push(item);
3138
- } else if (!isMatched && !item.isHidden) {
3139
- visibleUnmatched.push(item);
3140
- }
3141
- }
3142
-
3143
- // return collections of items to be manipulated
3144
- return {
3145
- matches: matches,
3146
- needReveal: hiddenMatched,
3147
- needHide: visibleUnmatched,
3148
- };
3149
- };
3150
-
3151
- // get a jQuery, function, or a matchesSelector test given the filter
3152
- proto._getFilterTest = function (filter) {
3153
- if (jQuery && this.options.isJQueryFiltering) {
3154
- // use jQuery
3155
- return function (item) {
3156
- return jQuery(item.element).is(filter);
3157
- };
3158
- }
3159
- if (typeof filter == 'function') {
3160
- // use filter as function
3161
- return function (item) {
3162
- return filter(item.element);
3163
- };
3164
- }
3165
- // default, use filter as selector string
3166
- return function (item) {
3167
- return matchesSelector(item.element, filter);
3168
- };
3169
- };
3170
-
3171
- // -------------------------- sorting -------------------------- //
3172
-
3173
- /**
3174
- * @params {Array} elems
3175
- * @public
3176
- */
3177
- proto.updateSortData = function (elems) {
3178
- // get items
3179
- var items;
3180
- if (elems) {
3181
- elems = utils.makeArray(elems);
3182
- items = this.getItems(elems);
3183
- } else {
3184
- // update all items if no elems provided
3185
- items = this.items;
3186
- }
3187
-
3188
- this._getSorters();
3189
- this._updateItemsSortData(items);
3190
- };
3191
-
3192
- proto._getSorters = function () {
3193
- var getSortData = this.options.getSortData;
3194
- for (var key in getSortData) {
3195
- var sorter = getSortData[key];
3196
- this._sorters[key] = mungeSorter(sorter);
3197
- }
3198
- };
3199
-
3200
- /**
3201
- * @params {Array} items - of Enviratope.Items
3202
- * @private
3203
- */
3204
- proto._updateItemsSortData = function (items) {
3205
- // do not update if no items
3206
- var len = items && items.length;
3207
-
3208
- for (var i = 0; len && i < len; i++) {
3209
- var item = items[i];
3210
- item.updateSortData();
3211
- }
3212
- };
3213
-
3214
- // ----- munge sorter ----- //
3215
-
3216
- // encapsulate this, as we just need mungeSorter
3217
- // other functions in here are just for munging
3218
- var mungeSorter = (function () {
3219
- // add a magic layer to sorters for convienent shorthands
3220
- // `.foo-bar` will use the text of .foo-bar querySelector
3221
- // `[foo-bar]` will use attribute
3222
- // you can also add parser
3223
- // `.foo-bar parseInt` will parse that as a number
3224
- function mungeSorter(sorter) {
3225
- // if not a string, return function or whatever it is
3226
- if (typeof sorter != 'string') {
3227
- return sorter;
3228
- }
3229
- // parse the sorter string
3230
- var args = trim(sorter).split(' ');
3231
- var query = args[0];
3232
- // check if query looks like [an-attribute]
3233
- var attrMatch = query.match(/^\[(.+)\]$/);
3234
- var attr = attrMatch && attrMatch[1];
3235
- var getValue = getValueGetter(attr, query);
3236
- // use second argument as a parser
3237
- var parser = Enviratope.sortDataParsers[args[1]];
3238
- // parse the value, if there was a parser
3239
- sorter = parser
3240
- ? function (elem) {
3241
- return elem && parser(getValue(elem));
3242
- }
3243
- : // otherwise just return value
3244
- function (elem) {
3245
- return elem && getValue(elem);
3246
- };
3247
-
3248
- return sorter;
3249
- }
3250
-
3251
- // get an attribute getter, or get text of the querySelector
3252
- function getValueGetter(attr, query) {
3253
- // if query looks like [foo-bar], get attribute
3254
- if (attr) {
3255
- return function getAttribute(elem) {
3256
- return elem.getAttribute(attr);
3257
- };
3258
- }
3259
-
3260
- // otherwise, assume its a querySelector, and get its text
3261
- return function getChildText(elem) {
3262
- var child = elem.querySelector(query);
3263
- return child && child.textContent;
3264
- };
3265
- }
3266
-
3267
- return mungeSorter;
3268
- })();
3269
-
3270
- // parsers used in getSortData shortcut strings
3271
- Enviratope.sortDataParsers = {
3272
- parseInt: function (val) {
3273
- return parseInt(val, 10);
3274
- },
3275
- parseFloat: function (val) {
3276
- return parseFloat(val);
3277
- },
3278
- };
3279
-
3280
- // ----- sort method ----- //
3281
-
3282
- // sort filteredItem order
3283
- proto._sort = function () {
3284
- var sortByOpt = this.options.sortBy;
3285
- if (!sortByOpt) {
3286
- return;
3287
- }
3288
- // concat all sortBy and sortHistory
3289
- var sortBys = [].concat.apply(sortByOpt, this.sortHistory);
3290
- // sort magic
3291
- var itemSorter = getItemSorter(sortBys, this.options.sortAscending);
3292
- this.filteredItems.sort(itemSorter);
3293
- // keep track of sortBy History
3294
- if (sortByOpt != this.sortHistory[0]) {
3295
- // add to front, oldest goes in last
3296
- this.sortHistory.unshift(sortByOpt);
3297
- }
3298
- };
3299
-
3300
- // returns a function used for sorting
3301
- function getItemSorter(sortBys, sortAsc) {
3302
- return function sorter(itemA, itemB) {
3303
- // cycle through all sortKeys
3304
- for (var i = 0; i < sortBys.length; i++) {
3305
- var sortBy = sortBys[i];
3306
- var a = itemA.sortData[sortBy];
3307
- var b = itemB.sortData[sortBy];
3308
- if (a > b || a < b) {
3309
- // if sortAsc is an object, use the value given the sortBy key
3310
- var isAscending =
3311
- sortAsc[sortBy] !== undefined
3312
- ? sortAsc[sortBy]
3313
- : sortAsc;
3314
- var direction = isAscending ? 1 : -1;
3315
- return (a > b ? 1 : -1) * direction;
3316
- }
3317
- }
3318
- return 0;
3319
- };
3320
- }
3321
-
3322
- // -------------------------- methods -------------------------- //
3323
-
3324
- // get layout mode
3325
- proto._mode = function () {
3326
- var layoutMode = this.options.layoutMode;
3327
- var mode = this.modes[layoutMode];
3328
- if (!mode) {
3329
- // TODO console.error
3330
- throw new Error('No layout mode: ' + layoutMode);
3331
- }
3332
- // HACK sync mode's options
3333
- // any options set after init for layout mode need to be synced
3334
- mode.options = this.options[layoutMode];
3335
- return mode;
3336
- };
3337
-
3338
- proto._resetLayout = function () {
3339
- // trigger original reset layout
3340
- Outlayer.prototype._resetLayout.call(this);
3341
- this._mode()._resetLayout();
3342
- };
3343
-
3344
- proto._getItemLayoutPosition = function (item) {
3345
- return this._mode()._getItemLayoutPosition(item);
3346
- };
3347
-
3348
- proto._manageStamp = function (stamp) {
3349
- this._mode()._manageStamp(stamp);
3350
- };
3351
-
3352
- proto._getContainerSize = function () {
3353
- return this._mode()._getContainerSize();
3354
- };
3355
-
3356
- proto.needsResizeLayout = function () {
3357
- return this._mode().needsResizeLayout();
3358
- };
3359
-
3360
- // -------------------------- adding & removing -------------------------- //
3361
-
3362
- // HEADS UP overwrites default Outlayer appended
3363
- proto.appended = function (elems) {
3364
- var items = this.addItems(elems);
3365
- if (!items.length) {
3366
- return;
3367
- }
3368
- // filter, layout, reveal new items
3369
- var filteredItems = this._filterRevealAdded(items);
3370
- // add to filteredItems
3371
- this.filteredItems = this.filteredItems.concat(filteredItems);
3372
- };
3373
-
3374
- // HEADS UP overwrites default Outlayer prepended
3375
- proto.prepended = function (elems) {
3376
- var items = this._itemize(elems);
3377
- if (!items.length) {
3378
- return;
3379
- }
3380
- // start new layout
3381
- this._resetLayout();
3382
- this._manageStamps();
3383
- // filter, layout, reveal new items
3384
- var filteredItems = this._filterRevealAdded(items);
3385
- // layout previous items
3386
- this.layoutItems(this.filteredItems);
3387
- // add to items and filteredItems
3388
- this.filteredItems = filteredItems.concat(this.filteredItems);
3389
- this.items = items.concat(this.items);
3390
- };
3391
-
3392
- proto._filterRevealAdded = function (items) {
3393
- var filtered = this._filter(items);
3394
- this.hide(filtered.needHide);
3395
- // reveal all new items
3396
- this.reveal(filtered.matches);
3397
- // layout new items, no transition
3398
- this.layoutItems(filtered.matches, true);
3399
- return filtered.matches;
3400
- };
3401
-
3402
- /**
3403
- * Filter, sort, and layout newly-appended item elements
3404
- * @param {Array or NodeList or Element} elems
3405
- */
3406
- proto.insert = function (elems) {
3407
- var items = this.addItems(elems);
3408
- if (!items.length) {
3409
- return;
3410
- }
3411
- // append item elements
3412
- var i, item;
3413
- var len = items.length;
3414
- for (i = 0; i < len; i++) {
3415
- item = items[i];
3416
- this.element.appendChild(item.element);
3417
- }
3418
- // filter new stuff
3419
- var filteredInsertItems = this._filter(items).matches;
3420
- // set flag
3421
- for (i = 0; i < len; i++) {
3422
- items[i].isLayoutInstant = true;
3423
- }
3424
- this.arrange();
3425
- // reset flag
3426
- for (i = 0; i < len; i++) {
3427
- delete items[i].isLayoutInstant;
3428
- }
3429
- this.reveal(filteredInsertItems);
3430
- };
3431
-
3432
- var _remove = proto.remove;
3433
- proto.remove = function (elems) {
3434
- elems = utils.makeArray(elems);
3435
- var removeItems = this.getItems(elems);
3436
- // do regular thing
3437
- _remove.call(this, elems);
3438
- // bail if no items to remove
3439
- var len = removeItems && removeItems.length;
3440
- // remove elems from filteredItems
3441
- for (var i = 0; len && i < len; i++) {
3442
- var item = removeItems[i];
3443
- // remove item from collection
3444
- utils.removeFrom(this.filteredItems, item);
3445
- }
3446
- };
3447
-
3448
- proto.shuffle = function () {
3449
- // update random sortData
3450
- for (var i = 0; i < this.items.length; i++) {
3451
- var item = this.items[i];
3452
- item.sortData.random = Math.random();
3453
- }
3454
- this.options.sortBy = 'random';
3455
- this._sort();
3456
- this._layout();
3457
- };
3458
-
3459
- /**
3460
- * trigger fn without transition
3461
- * kind of hacky to have this in the first place
3462
- * @param {Function} fn
3463
- * @param {Array} args
3464
- * @returns ret
3465
- * @private
3466
- */
3467
- proto._noTransition = function (fn, args) {
3468
- // save transitionDuration before disabling
3469
- var transitionDuration = this.options.transitionDuration;
3470
- // disable transition
3471
- this.options.transitionDuration = 0;
3472
- // do it
3473
- var returnValue = fn.apply(this, args);
3474
- // re-enable transition for reveal
3475
- this.options.transitionDuration = transitionDuration;
3476
- return returnValue;
3477
- };
3478
-
3479
- // ----- helper methods ----- //
3480
-
3481
- /**
3482
- * getter method for getting filtered item elements
3483
- * @returns {Array} elems - collection of item elements
3484
- */
3485
- proto.getFilteredItemElements = function () {
3486
- return this.filteredItems.map(function (item) {
3487
- return item.element;
3488
- });
3489
- };
3490
-
3491
- // ----- ----- //
3492
-
3493
- return Enviratope;
3494
- },
3495
- );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/js/lib/layout-mode.js CHANGED
@@ -1,144 +1,144 @@
1
- /**
2
- * Isotope LayoutMode
3
- */
4
-
5
- (function(window, factory) {
6
- // universal module definition
7
- /* jshint strict: false */ /*globals define, module, require */
8
- if (typeof define == 'function' && define.amd) {
9
- // AMD
10
- define(['get-size/get-size', 'outlayer/outlayer'], factory);
11
- } else if (typeof module == 'object' && module.exports) {
12
- // CommonJS
13
- module.exports = factory(require('get-size'), require('outlayer'));
14
- } else {
15
- // browser global
16
- window.Isotope = window.Isotope || {};
17
- window.Isotope.LayoutMode = factory(window.getSize, window.Outlayer);
18
- }
19
- })(window, function factory(getSize, Outlayer) {
20
- 'use strict';
21
-
22
- // layout mode class
23
- function LayoutMode(isotope) {
24
- this.isotope = isotope;
25
- // link properties
26
- if (isotope) {
27
- this.options = isotope.options[this.namespace];
28
- this.element = isotope.element;
29
- this.items = isotope.filteredItems;
30
- this.size = isotope.size;
31
- }
32
- }
33
-
34
- var proto = LayoutMode.prototype;
35
-
36
- /**
37
- * some methods should just defer to default Outlayer method
38
- * and reference the Isotope instance as `this`
39
- **/
40
- var facadeMethods = [
41
- '_resetLayout',
42
- '_getItemLayoutPosition',
43
- '_manageStamp',
44
- '_getContainerSize',
45
- '_getElementOffset',
46
- 'needsResizeLayout',
47
- '_getOption',
48
- ];
49
-
50
- facadeMethods.forEach(function(methodName) {
51
- proto[methodName] = function() {
52
- return Outlayer.prototype[methodName].apply(
53
- this.isotope,
54
- arguments,
55
- );
56
- };
57
- });
58
-
59
- // ----- ----- //
60
- // for horizontal layout modes, check vertical size
61
- proto.needsVerticalResizeLayout = function() {
62
- // don't trigger if size did not change
63
- var size = getSize(this.isotope.element);
64
- // check that this.size and size are there
65
- // IE8 triggers resize on body size change, so they might not be
66
- var hasSizes = this.isotope.size && size;
67
- return hasSizes && size.innerHeight != this.isotope.size.innerHeight;
68
- };
69
-
70
- // ----- measurements ----- //
71
- proto._getMeasurement = function() {
72
- this.isotope._getMeasurement.apply(this, arguments);
73
- };
74
-
75
- proto.getColumnWidth = function() {
76
- this.getSegmentSize('column', 'Width');
77
- };
78
-
79
- proto.getRowHeight = function() {
80
- this.getSegmentSize('row', 'Height');
81
- };
82
-
83
- /**
84
- * get columnWidth or rowHeight
85
- * segment: 'column' or 'row'
86
- * size 'Width' or 'Height'
87
- **/
88
- proto.getSegmentSize = function(segment, size) {
89
- var segmentName = segment + size;
90
- var outerSize = 'outer' + size;
91
- // columnWidth / outerWidth // rowHeight / outerHeight
92
- this._getMeasurement(segmentName, outerSize);
93
- // got rowHeight or columnWidth, we can chill
94
- if (this[segmentName]) {
95
- return;
96
- }
97
- // fall back to item of first element
98
- var firstItemSize = this.getFirstItemSize();
99
- this[segmentName] =
100
- (firstItemSize && firstItemSize[outerSize]) ||
101
- // or size of container
102
- this.isotope.size['inner' + size];
103
- };
104
-
105
- proto.getFirstItemSize = function() {
106
- var firstItem = this.isotope.filteredItems[0];
107
- return firstItem && firstItem.element && getSize(firstItem.element);
108
- };
109
-
110
- // ----- methods that should reference isotope ----- //
111
- proto.layout = function() {
112
- this.isotope.layout.apply(this.isotope, arguments);
113
- };
114
-
115
- proto.getSize = function() {
116
- this.isotope.getSize();
117
- this.size = this.isotope.size;
118
- };
119
-
120
- // -------------------------- create -------------------------- //
121
- LayoutMode.modes = {};
122
-
123
- LayoutMode.create = function(namespace, options) {
124
- function Mode() {
125
- LayoutMode.apply(this, arguments);
126
- }
127
-
128
- Mode.prototype = Object.create(proto);
129
- Mode.prototype.constructor = Mode;
130
-
131
- // default options
132
- if (options) {
133
- Mode.options = options;
134
- }
135
-
136
- Mode.prototype.namespace = namespace;
137
- // register in Isotope
138
- LayoutMode.modes[namespace] = Mode;
139
-
140
- return Mode;
141
- };
142
-
143
- return LayoutMode;
144
- });
1
+ /**
2
+ * Isotope LayoutMode
3
+ */
4
+
5
+ (function(window, factory) {
6
+ // universal module definition
7
+ /* jshint strict: false */ /*globals define, module, require */
8
+ if (typeof define == 'function' && define.amd) {
9
+ // AMD
10
+ define(['get-size/get-size', 'outlayer/outlayer'], factory);
11
+ } else if (typeof module == 'object' && module.exports) {
12
+ // CommonJS
13
+ module.exports = factory(require('get-size'), require('outlayer'));
14
+ } else {
15
+ // browser global
16
+ window.Isotope = window.Isotope || {};
17
+ window.Isotope.LayoutMode = factory(window.getSize, window.Outlayer);
18
+ }
19
+ })(window, function factory(getSize, Outlayer) {
20
+ 'use strict';
21
+
22
+ // layout mode class
23
+ function LayoutMode(isotope) {
24
+ this.isotope = isotope;
25
+ // link properties
26
+ if (isotope) {
27
+ this.options = isotope.options[this.namespace];
28
+ this.element = isotope.element;
29
+ this.items = isotope.filteredItems;
30
+ this.size = isotope.size;
31
+ }
32
+ }
33
+
34
+ var proto = LayoutMode.prototype;
35
+
36
+ /**
37
+ * some methods should just defer to default Outlayer method
38
+ * and reference the Isotope instance as `this`
39
+ **/
40
+ var facadeMethods = [
41
+ '_resetLayout',
42
+ '_getItemLayoutPosition',
43
+ '_manageStamp',
44
+ '_getContainerSize',
45
+ '_getElementOffset',
46
+ 'needsResizeLayout',
47
+ '_getOption',
48
+ ];
49
+
50
+ facadeMethods.forEach(function(methodName) {
51
+ proto[methodName] = function() {
52
+ return Outlayer.prototype[methodName].apply(
53
+ this.isotope,
54
+ arguments,
55
+ );
56
+ };
57
+ });
58
+
59
+ // ----- ----- //
60
+ // for horizontal layout modes, check vertical size
61
+ proto.needsVerticalResizeLayout = function() {
62
+ // don't trigger if size did not change
63
+ var size = getSize(this.isotope.element);
64
+ // check that this.size and size are there
65
+ // IE8 triggers resize on body size change, so they might not be
66
+ var hasSizes = this.isotope.size && size;
67
+ return hasSizes && size.innerHeight != this.isotope.size.innerHeight;
68
+ };
69
+
70
+ // ----- measurements ----- //
71
+ proto._getMeasurement = function() {
72
+ this.isotope._getMeasurement.apply(this, arguments);
73
+ };
74
+
75
+ proto.getColumnWidth = function() {
76
+ this.getSegmentSize('column', 'Width');
77
+ };
78
+
79
+ proto.getRowHeight = function() {
80
+ this.getSegmentSize('row', 'Height');
81
+ };
82
+
83
+ /**
84
+ * get columnWidth or rowHeight
85
+ * segment: 'column' or 'row'
86
+ * size 'Width' or 'Height'
87
+ **/
88
+ proto.getSegmentSize = function(segment, size) {
89
+ var segmentName = segment + size;
90
+ var outerSize = 'outer' + size;
91
+ // columnWidth / outerWidth // rowHeight / outerHeight
92
+ this._getMeasurement(segmentName, outerSize);
93
+ // got rowHeight or columnWidth, we can chill
94
+ if (this[segmentName]) {
95
+ return;
96
+ }
97
+ // fall back to item of first element
98
+ var firstItemSize = this.getFirstItemSize();
99
+ this[segmentName] =
100
+ (firstItemSize && firstItemSize[outerSize]) ||
101
+ // or size of container
102
+ this.isotope.size['inner' + size];
103
+ };
104
+
105
+ proto.getFirstItemSize = function() {
106
+ var firstItem = this.isotope.filteredItems[0];
107
+ return firstItem && firstItem.element && getSize(firstItem.element);
108
+ };
109
+
110
+ // ----- methods that should reference isotope ----- //
111
+ proto.layout = function() {
112
+ this.isotope.layout.apply(this.isotope, arguments);
113
+ };
114
+
115
+ proto.getSize = function() {
116
+ this.isotope.getSize();
117
+ this.size = this.isotope.size;
118
+ };
119
+
120
+ // -------------------------- create -------------------------- //
121
+ LayoutMode.modes = {};
122
+
123
+ LayoutMode.create = function(namespace, options) {
124
+ function Mode() {
125
+ LayoutMode.apply(this, arguments);
126
+ }
127
+
128
+ Mode.prototype = Object.create(proto);
129
+ Mode.prototype.constructor = Mode;
130
+
131
+ // default options
132
+ if (options) {
133
+ Mode.options = options;
134
+ }
135
+
136
+ Mode.prototype.namespace = namespace;
137
+ // register in Isotope
138
+ LayoutMode.modes[namespace] = Mode;
139
+
140
+ return Mode;
141
+ };
142
+
143
+ return LayoutMode;
144
+ });
assets/js/lib/layout-modes/fit-rows.js DELETED
@@ -1,70 +0,0 @@
1
- /**
2
- * fitRows layout mode
3
- */
4
-
5
- ( function( window, factory ) {
6
- // universal module definition
7
- /* jshint strict: false */ /*globals define, module, require */
8
- if ( typeof define == 'function' && define.amd ) {
9
- // AMD
10
- define(
11
- [
12
- '../layout-mode'
13
- ],
14
- factory
15
- );
16
- } else if ( typeof exports == 'object' ) {
17
- // CommonJS
18
- module.exports = factory(
19
- require( '../layout-mode' )
20
- );
21
- } else {
22
- // browser global
23
- factory(
24
- window.Isotope.LayoutMode
25
- );
26
- }
27
-
28
- }( window, function factory( LayoutMode ) {
29
- 'use strict';
30
-
31
- var FitRows = LayoutMode.create( 'fitRows' );
32
-
33
- var proto = FitRows.prototype;
34
-
35
- proto._resetLayout = function() {
36
- this.x = 0;
37
- this.y = 0;
38
- this.maxY = 0;
39
- this._getMeasurement( 'gutter', 'outerWidth' );
40
- };
41
-
42
- proto._getItemLayoutPosition = function( item ) {
43
- item.getSize();
44
-
45
- var itemWidth = item.size.outerWidth + this.gutter;
46
- // if this element cannot fit in the current row
47
- var containerWidth = this.isotope.size.innerWidth + this.gutter;
48
- if ( this.x !== 0 && itemWidth + this.x > containerWidth ) {
49
- this.x = 0;
50
- this.y = this.maxY;
51
- }
52
-
53
- var position = {
54
- x: this.x,
55
- y: this.y
56
- };
57
-
58
- this.maxY = Math.max( this.maxY, this.y + item.size.outerHeight );
59
- this.x += itemWidth;
60
-
61
- return position;
62
- };
63
-
64
- proto._getContainerSize = function() {
65
- return { height: this.maxY };
66
- };
67
-
68
- return FitRows;
69
-
70
- }));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/js/lib/layout-modes/masonry.js DELETED
@@ -1,75 +0,0 @@
1
- /*!
2
- * Masonry layout mode
3
- * sub-classes Masonry
4
- * https://masonry.desandro.com
5
- */
6
-
7
- ( function( window, factory ) {
8
- // universal module definition
9
- /* jshint strict: false */ /*globals define, module, require */
10
- if ( typeof define == 'function' && define.amd ) {
11
- // AMD
12
- define(
13
- [
14
- '../layout-mode',
15
- 'masonry-layout/masonry'
16
- ],
17
- factory
18
- );
19
- } else if ( typeof module == 'object' && module.exports ) {
20
- // CommonJS
21
- module.exports = factory(
22
- require( '../layout-mode' ),
23
- require( 'masonry-layout' )
24
- );
25
- } else {
26
- // browser global
27
- factory(
28
- window.Isotope.LayoutMode,
29
- window.Masonry
30
- );
31
- }
32
-
33
- }( window, function factory( LayoutMode, Masonry ) {
34
- 'use strict';
35
-
36
- // -------------------------- masonryDefinition -------------------------- //
37
- // create an Outlayer layout class
38
- var MasonryMode = LayoutMode.create( 'masonry' );
39
-
40
- var proto = MasonryMode.prototype;
41
-
42
- var keepModeMethods = {
43
- _getElementOffset: true,
44
- layout: true,
45
- _getMeasurement: true
46
- };
47
-
48
- // inherit Masonry prototype
49
- for ( var method in Masonry.prototype ) {
50
- // do not inherit mode methods
51
- if ( ! keepModeMethods[ method ] ) {
52
- proto[ method ] = Masonry.prototype[ method ];
53
- }
54
- }
55
-
56
- var measureColumns = proto.measureColumns;
57
- proto.measureColumns = function() {
58
- // set items, used if measuring first item
59
- this.items = this.isotope.filteredItems;
60
- measureColumns.call( this );
61
- };
62
-
63
- // point to mode options for fitWidth
64
- var _getOption = proto._getOption;
65
- proto._getOption = function( option ) {
66
- if ( option == 'fitWidth' ) {
67
- return this.options.isFitWidth !== undefined ?
68
- this.options.isFitWidth : this.options.fitWidth;
69
- }
70
- return _getOption.apply( this.isotope, arguments );
71
- };
72
-
73
- return MasonryMode;
74
-
75
- }));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/js/lib/layout-modes/vertical.js DELETED
@@ -1,59 +0,0 @@
1
- /**
2
- * vertical layout mode
3
- */
4
-
5
- ( function( window, factory ) {
6
- // universal module definition
7
- /* jshint strict: false */ /*globals define, module, require */
8
- if ( typeof define == 'function' && define.amd ) {
9
- // AMD
10
- define(
11
- [
12
- '../layout-mode'
13
- ],
14
- factory
15
- );
16
- } else if ( typeof module == 'object' && module.exports ) {
17
- // CommonJS
18
- module.exports = factory(
19
- require( '../layout-mode' )
20
- );
21
- } else {
22
- // browser global
23
- factory(
24
- window.Isotope.LayoutMode
25
- );
26
- }
27
-
28
- }( window, function factory( LayoutMode ) {
29
- 'use strict';
30
-
31
- var Vertical = LayoutMode.create(
32
- 'vertical',
33
- {
34
- horizontalAlignment: 0
35
- }
36
- );
37
-
38
- var proto = Vertical.prototype;
39
-
40
- proto._resetLayout = function() {
41
- this.y = 0;
42
- };
43
-
44
- proto._getItemLayoutPosition = function( item ) {
45
- item.getSize();
46
- var x = ( this.isotope.size.innerWidth - item.size.outerWidth ) *
47
- this.options.horizontalAlignment;
48
- var y = this.y;
49
- this.y += item.size.outerHeight;
50
- return { x: x, y: y };
51
- };
52
-
53
- proto._getContainerSize = function() {
54
- return { height: this.y };
55
- };
56
-
57
- return Vertical;
58
-
59
- }));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/js/min/admin-min.js CHANGED
@@ -1 +1 @@
1
- jQuery(document).ready(function($){$("#screen-meta-links").prependTo("#envira-header-temp"),$("#screen-meta").prependTo("#envira-header-temp"),"undefined"!=typeof Clipboard&&$(document).on("click",".envira-clipboard",function(e){var n=new Clipboard(".envira-clipboard");e.preventDefault()}),$("div.envira-notice").on("click",".notice-dismiss",function(e){e.preventDefault(),$(this).closest("div.envira-notice").fadeOut(),$(this).hasClass("is-dismissible")&&$.post(envira_gallery_admin.ajax,{action:"envira_gallery_ajax_dismiss_notice",nonce:envira_gallery_admin.dismiss_notice_nonce,notice:$(this).parent().data("notice")},function(e){},"json")})});
1
+ (()=>{var n={311:e=>{"use strict";e.exports=jQuery}},a={};function t(e){var i=a[e];return void 0!==i||(i=a[e]={exports:{}},n[e](i,i.exports,t)),i.exports}t(311)(document).ready(function(i){i("#screen-meta-links").prependTo("#envira-header-temp"),i("#screen-meta").prependTo("#envira-header-temp"),"undefined"!=typeof ClipboardJS&&i(document).on("click",".envira-clipboard",function(e){new ClipboardJS(".envira-clipboard");e.preventDefault()}),i("div.envira-notice").on("click",".notice-dismiss",function(e){e.preventDefault(),i(this).closest("div.envira-notice").fadeOut(),i(this).hasClass("is-dismissible")&&i.post(envira_gallery_admin.ajax,{action:"envira_gallery_ajax_dismiss_notice",nonce:envira_gallery_admin.dismiss_notice_nonce,notice:i(this).parent().data("notice")},function(e){},"json")}),i("#envira-top-notification").on("click",".envira-dismiss",function(e){e.preventDefault(),i(this).closest("div.envira-header-notification").fadeOut(),i.post(envira_gallery_admin.ajax,{action:"envira_gallery_ajax_dismiss_topbar",nonce:envira_gallery_admin.dismiss_topbar_nonce},function(e){},"json")})})})();
assets/js/min/clipboard-min.js DELETED
@@ -1 +0,0 @@
1
- !function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.Clipboard=t()}}(function(){var t,e,n;return function o(t,e,n){function r(a,c){if(!e[a]){if(!t[a]){var s="function"==typeof require&&require;if(!c&&s)return s(a,!0);if(i)return i(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var l=e[a]={exports:{}};t[a][0].call(l.exports,function(e){var n=t[a][1][e];return r(n?n:e)},l,l.exports,o,t,e,n)}return e[a].exports}for(var i="function"==typeof require&&require,a=0;a<n.length;a++)r(n[a]);return r}({1:[function(t,e,n){var o=t("matches-selector");e.exports=function(t,e,n){for(var r=n?t:t.parentNode;r&&r!==document;){if(o(r,e))return r;r=r.parentNode}}},{"matches-selector":5}],2:[function(t,e,n){function o(t,e,n,o,i){var a=r.apply(this,arguments);return t.addEventListener(n,a,i),{destroy:function(){t.removeEventListener(n,a,i)}}}function r(t,e,n,o){return function(n){n.delegateTarget=i(n.target,e,!0),n.delegateTarget&&o.call(t,n)}}var i=t("closest");e.exports=o},{closest:1}],3:[function(t,e,n){n.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},n.nodeList=function(t){var e=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===e||"[object HTMLCollection]"===e)&&"length"in t&&(0===t.length||n.node(t[0]))},n.string=function(t){return"string"==typeof t||t instanceof String},n.fn=function(t){var e=Object.prototype.toString.call(t);return"[object Function]"===e}},{}],4:[function(t,e,n){function o(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!c.string(e))throw new TypeError("Second argument must be a String");if(!c.fn(n))throw new TypeError("Third argument must be a Function");if(c.node(t))return r(t,e,n);if(c.nodeList(t))return i(t,e,n);if(c.string(t))return a(t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function r(t,e,n){return t.addEventListener(e,n),{destroy:function(){t.removeEventListener(e,n)}}}function i(t,e,n){return Array.prototype.forEach.call(t,function(t){t.addEventListener(e,n)}),{destroy:function(){Array.prototype.forEach.call(t,function(t){t.removeEventListener(e,n)})}}}function a(t,e,n){return s(document.body,t,e,n)}var c=t("./is"),s=t("delegate");e.exports=o},{"./is":3,delegate:2}],5:[function(t,e,n){function o(t,e){if(i)return i.call(t,e);for(var n=t.parentNode.querySelectorAll(e),o=0;o<n.length;++o)if(n[o]==t)return!0;return!1}var r=Element.prototype,i=r.matchesSelector||r.webkitMatchesSelector||r.mozMatchesSelector||r.msMatchesSelector||r.oMatchesSelector;e.exports=o},{}],6:[function(t,e,n){function o(t){var e;if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName)t.focus(),t.setSelectionRange(0,t.value.length),e=t.value;else{t.hasAttribute("contenteditable")&&t.focus();var n=window.getSelection(),o=document.createRange();o.selectNodeContents(t),n.removeAllRanges(),n.addRange(o),e=n.toString()}return e}e.exports=o},{}],7:[function(t,e,n){function o(){}o.prototype={on:function(t,e,n){var o=this.e||(this.e={});return(o[t]||(o[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){function o(){r.off(t,o),e.apply(n,arguments)}var r=this;return o._=e,this.on(t,o,n)},emit:function(t){var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),o=0,r=n.length;for(o;r>o;o++)n[o].fn.apply(n[o].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),o=n[t],r=[];if(o&&e)for(var i=0,a=o.length;a>i;i++)o[i].fn!==e&&o[i].fn._!==e&&r.push(o[i]);return r.length?n[t]=r:delete n[t],this}},e.exports=o},{}],8:[function(e,n,o){!function(r,i){if("function"==typeof t&&t.amd)t(["module","select"],i);else if("undefined"!=typeof o)i(n,e("select"));else{var a={exports:{}};i(a,r.select),r.clipboardAction=a.exports}}(this,function(t,e){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var r=n(e),i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},a=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),c=function(){function t(e){o(this,t),this.resolveOptions(e),this.initSelection()}return t.prototype.resolveOptions=function e(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];this.action=t.action,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""},t.prototype.initSelection=function n(){this.text?this.selectFake():this.target&&this.selectTarget()},t.prototype.selectFake=function c(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandler=document.body.addEventListener("click",function(){return t.removeFake()}),this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="fixed",this.fakeElem.style[e?"right":"left"]="-9999px",this.fakeElem.style.top=(window.pageYOffset||document.documentElement.scrollTop)+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,document.body.appendChild(this.fakeElem),this.selectedText=(0,r["default"])(this.fakeElem),this.copyText()},t.prototype.removeFake=function s(){this.fakeHandler&&(document.body.removeEventListener("click"),this.fakeHandler=null),this.fakeElem&&(document.body.removeChild(this.fakeElem),this.fakeElem=null)},t.prototype.selectTarget=function u(){this.selectedText=(0,r["default"])(this.target),this.copyText()},t.prototype.copyText=function l(){var t=void 0;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)},t.prototype.handleResult=function f(t){t?this.emitter.emit("success",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)}):this.emitter.emit("error",{action:this.action,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})},t.prototype.clearSelection=function d(){this.target&&this.target.blur(),window.getSelection().removeAllRanges()},t.prototype.destroy=function p(){this.removeFake()},a(t,[{key:"action",set:function h(){var t=arguments.length<=0||void 0===arguments[0]?"copy":arguments[0];if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function y(){return this._action}},{key:"target",set:function g(t){if(void 0!==t){if(!t||"object"!==("undefined"==typeof t?"undefined":i(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function m(){return this._target}}]),t}();t.exports=c})},{select:6}],9:[function(e,n,o){!function(r,i){if("function"==typeof t&&t.amd)t(["module","./clipboard-action","tiny-emitter","good-listener"],i);else if("undefined"!=typeof o)i(n,e("./clipboard-action"),e("tiny-emitter"),e("good-listener"));else{var a={exports:{}};i(a,r.clipboardAction,r.tinyEmitter,r.goodListener),r.clipboard=a.exports}}(this,function(t,e,n,o){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t,e){var n="data-clipboard-"+t;if(e.hasAttribute(n))return e.getAttribute(n)}var u=r(e),l=r(n),f=r(o),d=function(t){function e(n,o){i(this,e);var r=a(this,t.call(this));return r.resolveOptions(o),r.listenClick(n),r}return c(e,t),e.prototype.resolveOptions=function n(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText},e.prototype.listenClick=function o(t){var e=this;this.listener=(0,f["default"])(t,"click",function(t){return e.onClick(t)})},e.prototype.onClick=function r(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new u["default"]({action:this.action(e),target:this.target(e),text:this.text(e),trigger:e,emitter:this})},e.prototype.defaultAction=function l(t){return s("action",t)},e.prototype.defaultTarget=function d(t){var e=s("target",t);return e?document.querySelector(e):void 0},e.prototype.defaultText=function p(t){return s("text",t)},e.prototype.destroy=function h(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)},e}(l["default"]);t.exports=d})},{"./clipboard-action":8,"good-listener":4,"tiny-emitter":7}]},{},[9])(9)});
 
assets/js/min/envira-min.js CHANGED
@@ -1 +1 @@
1
- !function(i){var n={};function o(t){if(n[t])return n[t].exports;var e=n[t]={i:t,l:!1,exports:{}};return i[t].call(e.exports,e,e.exports,o),e.l=!0,e.exports}o.m=i,o.c=n,o.d=function(t,e,i){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(o.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(i,n,function(t){return e[t]}.bind(null,n));return i},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=5)}([function(t,e){t.exports=jQuery},function(t,e,i){var n;window,void 0===(n="function"==typeof(n=function(){"use strict";function v(t){var e=parseFloat(t);var i=t.indexOf("%")==-1&&!isNaN(e);return i&&e}function t(){}var i=typeof console=="undefined"?t:function(t){console.error(t)};var y=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];var b=y.length;function w(){var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0};for(var e=0;e<b;e++){var i=y[e];t[i]=0}return t}function x(t){var e=getComputedStyle(t);if(!e)i("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? "+"See https://bit.ly/getsizebug1");return e}var n=false;var _;function S(){if(n)return;n=true;var t=document.createElement("div");t.style.width="200px";t.style.padding="1px 2px 3px 4px";t.style.borderStyle="solid";t.style.borderWidth="1px 2px 3px 4px";t.style.boxSizing="border-box";var e=document.body||document.documentElement;e.appendChild(t);var i=x(t);_=Math.round(v(i.width))==200;o.isBoxSizeOuter=_;e.removeChild(t)}function o(t){S();if(typeof t=="string")t=document.querySelector(t);if(!t||typeof t!="object"||!t.nodeType)return;var e=x(t);if(e.display=="none")return w();var i={};i.width=t.offsetWidth;i.height=t.offsetHeight;var n=i.isBorderBox=e.boxSizing=="border-box";for(var o=0;o<b;o++){var r=y[o];var s=e[r];var a=parseFloat(s);i[r]=!isNaN(a)?a:0}var h=i.paddingLeft+i.paddingRight;var l=i.paddingTop+i.paddingBottom;var u=i.marginLeft+i.marginRight;var d=i.marginTop+i.marginBottom;var c=i.borderLeftWidth+i.borderRightWidth;var f=i.borderTopWidth+i.borderBottomWidth;var p=n&&_;var g=v(e.width);if(g!==false)i.width=g+(p?0:h+c);var m=v(e.height);if(m!==false)i.height=m+(p?0:l+f);i.innerWidth=i.width-(h+c);i.innerHeight=i.height-(l+f);i.outerWidth=i.width+u;i.outerHeight=i.height+d;return i}return o})?n.call(e,i,e,t):n)||(t.exports=n)},function(t,e,i){var n;window,n=function(e,i){"use strict";function n(t){(this.isotope=t)&&(this.options=t.options[this.namespace],this.element=t.element,this.items=t.filteredItems,this.size=t.size)}var o=n.prototype;return["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"].forEach(function(t){o[t]=function(){return i.prototype[t].apply(this.isotope,arguments)}}),o.needsVerticalResizeLayout=function(){var t=e(this.isotope.element);return this.isotope.size&&t&&t.innerHeight!=this.isotope.size.innerHeight},o._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},o.getColumnWidth=function(){this.getSegmentSize("column","Width")},o.getRowHeight=function(){this.getSegmentSize("row","Height")},o.getSegmentSize=function(t,e){var i=t+e,n="outer"+e;this._getMeasurement(i,n),this[i]||(t=this.getFirstItemSize(),this[i]=t&&t[n]||this.isotope.size["inner"+e])},o.getFirstItemSize=function(){var t=this.isotope.filteredItems[0];return t&&t.element&&e(t.element)},o.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},o.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},n.modes={},n.create=function(t,e){function i(){n.apply(this,arguments)}return(i.prototype=Object.create(o)).constructor=i,e&&(i.options=e),n.modes[i.prototype.namespace=t]=i},n},i=[i(1),i(3)],void 0===(n="function"==typeof(n=n)?n.apply(e,i):n)||(t.exports=n)},function(t,e,i){var n;!function(o,r){"use strict";n=[i(4),i(1),i(16),i(18)],void 0===(n=function(t,e,i,n){return r(o,t,e,i,n)}.apply(e,n))||(t.exports=n)}(window,function(t,e,o,n,r){"use strict";function i(){}var s=t.console,a=t.jQuery,h=0,l={};function u(t,e){var i=n.getQueryElement(t);i?(this.element=i,a&&(this.$element=a(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(e),e=++h,this.element.outlayerGUID=e,(l[e]=this)._create(),this._getOption("initLayout")&&this.layout()):s&&s.error("Bad element for "+this.constructor.namespace+": "+(i||t))}u.namespace="outlayer",u.Item=r,u.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var d=u.prototype;function c(t){function e(){t.apply(this,arguments)}return(e.prototype=Object.create(t.prototype)).constructor=e}n.extend(d,e.prototype),d.option=function(t){n.extend(this.options,t)},d._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},u.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},d._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),n.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},d.reloadItems=function(){this.items=this._itemize(this.element.children)},d._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],o=0;o<e.length;o++){var r=new i(e[o],this);n.push(r)}return n},d._filterFindItemElements=function(t){return n.filterFindElements(t,this.options.itemSelector)},d.getItemElements=function(){return this.items.map(function(t){return t.element})},d.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),t=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,t),this._isLayoutInited=!0},d._init=d.layout,d._resetLayout=function(){this.getSize()},d.getSize=function(){this.size=o(this.element)},d._getMeasurement=function(t,e){var i,n=this.options[t];n?("string"==typeof n?i=this.element.querySelector(n):n instanceof HTMLElement&&(i=n),this[t]=i?o(i)[e]:n):this[t]=0},d.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},d._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},d._layoutItems=function(t,i){var n;this._emitCompleteOnItems("layout",t),t&&t.length&&(n=[],t.forEach(function(t){var e=this._getItemLayoutPosition(t);e.item=t,e.isInstant=i||t.isLayoutInstant,n.push(e)},this),this._processLayoutQueue(n))},d._getItemLayoutPosition=function(){return{x:0,y:0}},d._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},d.updateStagger=function(){var t=this.options.stagger;if(null!=t)return this.stagger=function(t){if("number"==typeof t)return t;var e=t.match(/(^\d*\.?\d*)(\w*)/),t=e&&e[1],e=e&&e[2];if(!t.length)return 0;t=parseFloat(t);e=f[e]||1;return t*e}(t),this.stagger;this.stagger=0},d._positionItem=function(t,e,i,n,o){n?t.goTo(e,i):(t.stagger(o*this.stagger),t.moveTo(e,i))},d._postLayout=function(){this.resizeContainer()},d.resizeContainer=function(){var t;!this._getOption("resizeContainer")||(t=this._getContainerSize())&&(this._setContainerMeasure(t.width,!0),this._setContainerMeasure(t.height,!1))},d._getContainerSize=i,d._setContainerMeasure=function(t,e){var i;void 0!==t&&((i=this.size).isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px")},d._emitCompleteOnItems=function(e,t){var i=this;function n(){i.dispatchEvent(e+"Complete",null,[t])}var o,r=t.length;function s(){++o==r&&n()}t&&r?(o=0,t.forEach(function(t){t.once(e,s)})):n()},d.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;this.emitEvent(t,n),a&&(this.$element=this.$element||a(this.element),e?((e=a.Event(e)).type=t,this.$element.trigger(e,i)):this.$element.trigger(t,i))},d.ignore=function(t){t=this.getItem(t);t&&(t.isIgnored=!0)},d.unignore=function(t){t=this.getItem(t);t&&delete t.isIgnored},d.stamp=function(t){(t=this._find(t))&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},d.unstamp=function(t){(t=this._find(t))&&t.forEach(function(t){n.removeFrom(this.stamps,t),this.unignore(t)},this)},d._find=function(t){if(t)return"string"==typeof t&&(t=this.element.querySelectorAll(t)),t=n.makeArray(t)},d._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},d._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},d._manageStamp=i,d._getElementOffset=function(t){var e=t.getBoundingClientRect(),i=this._boundingRect,t=o(t);return{left:e.left-i.left-t.marginLeft,top:e.top-i.top-t.marginTop,right:i.right-e.right-t.marginRight,bottom:i.bottom-e.bottom-t.marginBottom}},d.handleEvent=n.handleEvent,d.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},d.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},d.onresize=function(){this.resize()},n.debounceMethod(u,"onresize",100),d.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},d.needsResizeLayout=function(){var t=o(this.element);return this.size&&t&&t.innerWidth!==this.size.innerWidth},d.addItems=function(t){t=this._itemize(t);return t.length&&(this.items=this.items.concat(t)),t},d.appended=function(t){t=this.addItems(t);t.length&&(this.layoutItems(t,!0),this.reveal(t))},d.prepended=function(t){var e=this._itemize(t);e.length&&(t=this.items.slice(0),this.items=e.concat(t),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(t))},d.reveal=function(t){var i;this._emitCompleteOnItems("reveal",t),t&&t.length&&(i=this.updateStagger(),t.forEach(function(t,e){t.stagger(e*i),t.reveal()}))},d.hide=function(t){var i;this._emitCompleteOnItems("hide",t),t&&t.length&&(i=this.updateStagger(),t.forEach(function(t,e){t.stagger(e*i),t.hide()}))},d.revealItemElements=function(t){t=this.getItems(t);this.reveal(t)},d.hideItemElements=function(t){t=this.getItems(t);this.hide(t)},d.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},d.getItems=function(t){t=n.makeArray(t);var e=[];return t.forEach(function(t){t=this.getItem(t);t&&e.push(t)},this),e},d.remove=function(t){t=this.getItems(t);this._emitCompleteOnItems("remove",t),t&&t.length&&t.forEach(function(t){t.remove(),n.removeFrom(this.items,t)},this)},d.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="",this.items.forEach(function(t){t.destroy()}),this.unbindResize();t=this.element.outlayerGUID;delete l[t],delete this.element.outlayerGUID,a&&a.removeData(this.element,this.constructor.namespace)},u.data=function(t){t=(t=n.getQueryElement(t))&&t.outlayerGUID;return t&&l[t]},u.create=function(t,e){var i=c(u);return i.defaults=n.extend({},u.defaults),n.extend(i.defaults,e),i.compatOptions=n.extend({},u.compatOptions),i.namespace=t,i.data=u.data,i.Item=c(r),n.htmlInit(i,t),a&&a.bridget&&a.bridget(t,i),i};var f={ms:1,s:1e3};return u.Item=r,u})},function(t,e,i){var n;void 0===(n="function"==typeof(n=function(){"use strict";function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},t=i[t]=i[t]||[];return-1==t.indexOf(e)&&t.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this}},e.off=function(t,e){t=this._events&&this._events[t];if(t&&t.length){e=t.indexOf(e);return-1!=e&&t.splice(e,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],o=0;o<i.length;o++){var r=i[o];n&&n[r]&&(this.off(t,r),delete n[r]),r.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t})?n.call(e,i,e,t):n)||(t.exports=n)},function(t,e,i){t.exports=i(6)},function(t,e,i){"use strict";i.r(e),function(t){i(7),i(8),i(9),i(10),i(12),i(13),i(14),i(23),i(24);t(document).ready(function(n){var o;n("body").on("click",'div.envirabox-title a[href*="#"]:not([href="#"])',function(t){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname)return n.envirabox.close(),!1}),n(document).on("envira_image_lazy_load_complete",function(t){var e,i;void 0!==t&&void 0!==t.image_id&&null!==t.image_id&&(o=0<n("#envira-gallery-wrap-"+t.gallery_id).find("#"+t.video_id+" iframe").length?n("#envira-gallery-wrap-"+t.gallery_id).find("#"+t.video_id+" iframe"):0<n("#envira-gallery-wrap-"+t.gallery_id).find("#"+t.video_id+" video").length?n("#envira-gallery-wrap-"+t.gallery_id).find("#"+t.video_id+" video"):n("#envira-gallery-wrap-"+t.gallery_id).find("img#"+t.image_id),n("#envira-gallery-wrap-"+t.gallery_id).find("div.envira-gallery-public").hasClass("envira-gallery-0-columns")?n(o).closest("div.envira-gallery-item-inner").find("div.envira-gallery-position-overlay").delay(100).show():(n(o).closest("div.envira-gallery-item-inner").find("div.envira-gallery-position-overlay").delay(100).show(),e=n(o).closest("div.envira-gallery-item-inner").find(".envira-lazy").width(),i=t.naturalHeight/t.naturalWidth,i=100*((e=t.naturalHeight/e)<i?e:i),n(o).closest("div.envira-gallery-item-inner").find(".envira-lazy").css("padding-bottom",i+"%"),n(o).closest("div.envira-gallery-item-inner").find(".envira-lazy").data("envira-changed","true"),void 0!==window["envira_container_"+t.gallery_id]&&window["envira_container_"+t.gallery_id].on("layoutComplete",function(t,e){n(o).closest("div.envira-gallery-item-inner").find("span.envira-title").delay(1e3).css("visibility","visible"),n(o).closest("div.envira-gallery-item-inner").find("span.envira-caption").delay(1e3).css("visibility","visible")}),n("#envira-gallery-"+t.gallery_id).enviratope("layout")))})})}.call(this,i(0))},function(t,e,i){(function(t){!function(u){function e(){return u("body").height()>u(window).height()}function o(t,e){this.settings=e,this.checkSettings(),this.imgAnalyzerTimeout=null,this.entries=null,this.buildingRow={entriesBuff:[],width:0,height:0,aspectRatio:0},this.lastAnalyzedIndex=-1,this.yield={every:2,flushed:0},this.border=0<=e.border?e.border:e.margins,this.maxRowHeight=this.retrieveMaxRowHeight(),this.suffixRanges=this.retrieveSuffixRanges(),this.offY=this.border,this.rows=0,this.spinner={phase:0,timeSlot:150,$el:u('<div class="spinner"><span></span><span></span><span></span></div>'),intervalId:null},this.checkWidthIntervalId=null,this.galleryWidth=t.width(),this.$gallery=t}o.prototype.getSuffix=function(t,e){for(var i=e<t?t:e,n=0;n<this.suffixRanges.length;n++)if(i<=this.suffixRanges[n])return this.settings.sizeRangeSuffixes[this.suffixRanges[n]];return this.settings.sizeRangeSuffixes[this.suffixRanges[n-1]]},o.prototype.removeSuffix=function(t,e){return t.substring(0,t.length-e.length)},o.prototype.endsWith=function(t,e){return-1!==t.indexOf(e,t.length-e.length)},o.prototype.getUsedSuffix=function(t){for(var e in this.settings.sizeRangeSuffixes)if(this.settings.sizeRangeSuffixes.hasOwnProperty(e)&&0!==this.settings.sizeRangeSuffixes[e].length&&this.endsWith(t,this.settings.sizeRangeSuffixes[e]))return this.settings.sizeRangeSuffixes[e];return""},o.prototype.newSrc=function(t,e,i){var n,o;return this.settings.thumbnailPath?o=this.settings.thumbnailPath(t,e,i):(n=null!==(n=t.match(this.settings.extension))?n[0]:"",o=t.replace(this.settings.extension,""),o=this.removeSuffix(o,this.getUsedSuffix(o)),o+=this.getSuffix(e,i)+n),o},o.prototype.showImg=function(t,e){this.settings.cssAnimation?(t.addClass("entry-visible"),e&&e()):t.stop().fadeTo(this.settings.imagesAnimationDuration,1,e)},o.prototype.extractImgSrcFromImage=function(t){var e=void 0!==t.data("safe-src")?t.data("safe-src"):t.attr("src");return t.data("jg.originalSrc",e),e},o.prototype.imgFromEntry=function(t){var e=t.find("> img");return 0===e.length&&(e=t.find("> a > img")),0===e.length?null:e},o.prototype.captionFromEntry=function(t){t=t.find("> .caption");return 0===t.length?null:t},o.prototype.displayEntry=function(t,e,i,n,o,r){t.width(n),t.height(r),t.css("top",i),t.css("left",e);var s,a,h,l=this.imgFromEntry(t);null!==l?(l.css("width",n),l.css("height",o),l.css("margin-left",-n/2),l.css("margin-top",-o/2),s=l.attr("src"),a=this.newSrc(s,n,o),l.one("error",function(){l.attr("src",l.data("jg.originalSrc"))}),h=function(){s!==a&&l.attr("src",a)},"skipped"===t.data("jg.loaded")?this.onImageEvent(s,u.proxy(function(){this.showImg(t,h),t.data("jg.loaded",!0)},this)):this.showImg(t,h)):this.showImg(t),this.displayEntryCaption(t)},o.prototype.displayEntryCaption=function(t){var e,i=this.imgFromEntry(t);null!==i&&this.settings.captions?(null===(e=this.captionFromEntry(t))&&(i=i.attr("alt"),this.isValidCaption(i)||(i=t.attr("title")),this.isValidCaption(i)&&(e=u('<div class="caption">'+i+"</div>"),t.append(e),t.data("jg.createdCaption",!0))),null!==e&&(this.settings.cssAnimation||e.stop().fadeTo(0,this.settings.captionSettings.nonVisibleOpacity),this.addCaptionEventsHandlers(t))):this.removeCaptionEventsHandlers(t)},o.prototype.isValidCaption=function(t){return void 0!==t&&0<t.length},o.prototype.onEntryMouseEnterForCaption=function(t){t=this.captionFromEntry(u(t.currentTarget));this.settings.cssAnimation?t.addClass("caption-visible").removeClass("caption-hidden"):t.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.visibleOpacity)},o.prototype.onEntryMouseLeaveForCaption=function(t){t=this.captionFromEntry(u(t.currentTarget));this.settings.cssAnimation?t.removeClass("caption-visible").removeClass("caption-hidden"):t.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.nonVisibleOpacity)},o.prototype.addCaptionEventsHandlers=function(t){var e=t.data("jg.captionMouseEvents");void 0===e&&(e={mouseenter:u.proxy(this.onEntryMouseEnterForCaption,this),mouseleave:u.proxy(this.onEntryMouseLeaveForCaption,this)},t.on("mouseenter",void 0,void 0,e.mouseenter),t.on("mouseleave",void 0,void 0,e.mouseleave),t.data("jg.captionMouseEvents",e))},o.prototype.removeCaptionEventsHandlers=function(t){var e=t.data("jg.captionMouseEvents");void 0!==e&&(t.off("mouseenter",void 0,e.mouseenter),t.off("mouseleave",void 0,e.mouseleave),t.removeData("jg.captionMouseEvents"))},o.prototype.prepareBuildingRow=function(t){var e,i,n,o,r=!0,s=0,a=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*this.settings.margins,h=a/this.buildingRow.aspectRatio,l=this.settings.rowHeight,u=this.buildingRow.width/a>this.settings.justifyThreshold;if(t&&"hide"===this.settings.lastRow&&!u){for(e=0;e<this.buildingRow.entriesBuff.length;e++)i=this.buildingRow.entriesBuff[e],this.settings.cssAnimation?i.removeClass("entry-visible"):i.stop().fadeTo(0,0);return-1}for(t&&!u&&"justify"!==this.settings.lastRow&&"hide"!==this.settings.lastRow&&(r=!1,0<this.rows&&(r=(l=(this.offY-this.border-this.settings.margins*this.rows)/this.rows)*this.buildingRow.aspectRatio/a>this.settings.justifyThreshold)),e=0;e<this.buildingRow.entriesBuff.length;e++)o=(i=this.buildingRow.entriesBuff[e]).data("jg.width")/i.data("jg.height"),o=r?(n=e===this.buildingRow.entriesBuff.length-1?a:h*o,h):(n=l*o,l),a-=Math.round(n),i.data("jg.jwidth",Math.round(n)),i.data("jg.jheight",Math.ceil(o)),(0===e||o<s)&&(s=o);return this.settings.fixedHeight&&s>this.settings.rowHeight&&(s=this.settings.rowHeight),this.buildingRow.height=s,r},o.prototype.clearBuildingRow=function(){this.buildingRow.entriesBuff=[],this.buildingRow.aspectRatio=0,this.buildingRow.width=0};var i=!(o.prototype.flushRow=function(t){var e,i=this.settings,n=this.border,o=this.prepareBuildingRow(t);if(t&&"hide"===i.lastRow&&-1===o)this.clearBuildingRow();else{if(this.maxRowHeight.isPercentage?this.maxRowHeight.value*i.rowHeight<this.buildingRow.height&&(this.buildingRow.height=this.maxRowHeight.value*i.rowHeight):0<this.maxRowHeight.value&&this.maxRowHeight.value<this.buildingRow.height&&(this.buildingRow.height=this.maxRowHeight.value),"center"===i.lastRow||"right"===i.lastRow){for(var r=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*i.margins,s=0;s<this.buildingRow.entriesBuff.length;s++)r-=(e=this.buildingRow.entriesBuff[s]).data("jg.jwidth");"center"===i.lastRow?n+=r/2:"right"===i.lastRow&&(n+=r)}for(s=0;s<this.buildingRow.entriesBuff.length;s++)e=this.buildingRow.entriesBuff[s],this.displayEntry(e,n,this.offY,e.data("jg.jwidth"),e.data("jg.jheight"),this.buildingRow.height),n+=e.data("jg.jwidth")+i.margins;this.galleryHeightToSet=this.offY+this.buildingRow.height+this.border,this.$gallery.height(this.galleryHeightToSet+this.getSpinnerHeight()),(!t||this.buildingRow.height<=i.rowHeight&&o)&&(this.offY+=this.buildingRow.height+i.margins,this.rows+=1,this.clearBuildingRow(),this.$gallery.trigger("jg.rowflush"))}});o.prototype.checkWidth=function(){this.checkWidthIntervalId=setInterval(u.proxy(function(){var t=parseFloat(this.$gallery.width());e()===i?Math.abs(t-this.galleryWidth)>this.settings.refreshSensitivity&&(this.galleryWidth=t,this.rewind(),this.startImgAnalyzer(!0)):(i=e(),this.galleryWidth=t)},this),this.settings.refreshTime)},o.prototype.isSpinnerActive=function(){return null!==this.spinner.intervalId},o.prototype.getSpinnerHeight=function(){return this.spinner.$el.innerHeight()},o.prototype.stopLoadingSpinnerAnimation=function(){clearInterval(this.spinner.intervalId),this.spinner.intervalId=null,this.$gallery.height(this.$gallery.height()-this.getSpinnerHeight()),this.spinner.$el.detach()},o.prototype.startLoadingSpinnerAnimation=function(){var t=this.spinner,e=t.$el.find("span");clearInterval(t.intervalId),this.$gallery.append(t.$el),this.$gallery.height(this.offY+this.buildingRow.height+this.getSpinnerHeight()),t.intervalId=setInterval(function(){t.phase<e.length?e.eq(t.phase).fadeTo(t.timeSlot,1):e.eq(t.phase-e.length).fadeTo(t.timeSlot,0),t.phase=(t.phase+1)%(2*e.length)},t.timeSlot)},o.prototype.rewind=function(){this.lastAnalyzedIndex=-1,this.offY=this.border,this.rows=0,this.clearBuildingRow()},o.prototype.updateEntries=function(t){return this.entries=this.$gallery.find(this.settings.selector).toArray(),0!==this.entries.length&&(this.settings.filter?this.modifyEntries(this.filterArray,t):this.modifyEntries(this.resetFilters,t),u.isFunction(this.settings.sort)?this.modifyEntries(this.sortArray,t):this.settings.randomize&&this.modifyEntries(this.shuffleArray,t),!0)},o.prototype.insertToGallery=function(t){var e=this;u.each(t,function(){u(this).appendTo(e.$gallery)})},o.prototype.shuffleArray=function(t){for(var e,i,n=t.length-1;0<n;n--)e=Math.floor(Math.random()*(n+1)),i=t[n],t[n]=t[e],t[e]=i;return this.insertToGallery(t),t},o.prototype.sortArray=function(t){return t.sort(this.settings.sort),this.insertToGallery(t),t},o.prototype.resetFilters=function(t){for(var e=0;e<t.length;e++)u(t[e]).removeClass("jg-filtered");return t},o.prototype.filterArray=function(t){var e=this.settings;return"string"===u.type(e.filter)?t.filter(function(t){t=u(t);return t.is(e.filter)?(t.removeClass("jg-filtered"),!0):(t.addClass("jg-filtered"),!1)}):u.isFunction(e.filter)?t.filter(e.filter):void 0},o.prototype.modifyEntries=function(t,e){var i=e?this.entries.splice(this.lastAnalyzedIndex+1,this.entries.length-this.lastAnalyzedIndex-1):this.entries,i=t.call(this,i);this.entries=e?this.entries.concat(i):i},o.prototype.destroy=function(){clearInterval(this.checkWidthIntervalId),u.each(this.entries,u.proxy(function(t,e){var i=u(e);i.css("width",""),i.css("height",""),i.css("top",""),i.css("left",""),i.data("jg.loaded",void 0),i.removeClass("jg-entry");e=this.imgFromEntry(i);e.css("width",""),e.css("height",""),e.css("margin-left",""),e.css("margin-top",""),e.attr("src",e.data("jg.originalSrc")),e.data("jg.originalSrc",void 0),this.removeCaptionEventsHandlers(i);e=this.captionFromEntry(i);i.data("jg.createdCaption")?(i.data("jg.createdCaption",void 0),null!==e&&e.remove()):null!==e&&e.fadeTo(0,1)},this)),this.$gallery.css("height",""),this.$gallery.removeClass("justified-gallery"),this.$gallery.data("jg.controller",void 0)},o.prototype.analyzeImages=function(t){for(var e=this.lastAnalyzedIndex+1;e<this.entries.length;e++){var i=u(this.entries[e]);if(!0===i.data("jg.loaded")||"skipped"===i.data("jg.loaded")){var n=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*this.settings.margins,o=i.data("jg.width")/i.data("jg.height");if(n/(this.buildingRow.aspectRatio+o)<this.settings.rowHeight&&(this.flushRow(!1),++this.yield.flushed>=this.yield.every))return void this.startImgAnalyzer(t);this.buildingRow.entriesBuff.push(i),this.buildingRow.aspectRatio+=o,this.buildingRow.width+=o*this.settings.rowHeight,this.lastAnalyzedIndex=e}else if("error"!==i.data("jg.loaded"))return}0<this.buildingRow.entriesBuff.length&&this.flushRow(!0),this.isSpinnerActive()&&this.stopLoadingSpinnerAnimation(),this.stopImgAnalyzerStarter(),this.$gallery.trigger(t?"jg.resize":"jg.complete"),this.$gallery.height(this.galleryHeightToSet)},o.prototype.stopImgAnalyzerStarter=function(){this.yield.flushed=0,null!==this.imgAnalyzerTimeout&&clearTimeout(this.imgAnalyzerTimeout)},o.prototype.startImgAnalyzer=function(t){var e=this;this.stopImgAnalyzerStarter(),this.imgAnalyzerTimeout=setTimeout(function(){e.analyzeImages(t)},.001)},o.prototype.onImageEvent=function(t,e,i){var n,o;(e||i)&&(n=new Image,o=u(n),e&&o.one("load",function(){o.off("load error"),e(n)}),i&&o.one("error",function(){o.off("load error"),i(n)}),n.src=t)},o.prototype.init=function(){var r=!1,s=!1,a=this;u.each(this.entries,function(t,e){var i=u(e),n=a.imgFromEntry(i);if(i.addClass("jg-entry"),!0!==i.data("jg.loaded")&&"skipped"!==i.data("jg.loaded"))if(null!==a.settings.rel&&i.attr("rel",a.settings.rel),null!==a.settings.target&&i.attr("target",a.settings.target),null!==n){var o=a.extractImgSrcFromImage(n);if(n.attr("src",o),!1===a.settings.waitThumbnailsLoad){e=parseFloat(n.attr("width")),n=parseFloat(n.attr("height"));if(!isNaN(e)&&!isNaN(n))return i.data("jg.width",e),i.data("jg.height",n),i.data("jg.loaded","skipped"),s=!0,a.startImgAnalyzer(!1),!0}i.data("jg.loaded",!1),r=!0,a.isSpinnerActive()||a.startLoadingSpinnerAnimation(),a.onImageEvent(o,function(t){i.data("jg.width",i.find(".envira-gallery-image").data("envira-width")),i.data("jg.height",i.find(".envira-gallery-image").data("envira-height")),i.data("jg.loaded",!0),a.startImgAnalyzer(!1)},function(){i.data("jg.loaded","error"),a.startImgAnalyzer(!1)})}else i.data("jg.loaded",!0),i.data("jg.width",i.width()|parseFloat(i.css("width"))|1),i.data("jg.height",i.height()|parseFloat(i.css("height"))|1)}),r||s||this.startImgAnalyzer(!1),this.checkWidth()},o.prototype.checkOrConvertNumber=function(t,e){if("string"===u.type(t[e])&&(t[e]=parseFloat(t[e])),"number"!==u.type(t[e]))throw e+" must be a number";if(isNaN(t[e]))throw"invalid number for "+e},o.prototype.checkSizeRangesSuffixes=function(){if("object"!==u.type(this.settings.sizeRangeSuffixes))throw"sizeRangeSuffixes must be defined and must be an object";var t,e=[];for(t in this.settings.sizeRangeSuffixes)this.settings.sizeRangeSuffixes.hasOwnProperty(t)&&e.push(t);for(var i={0:""},n=0;n<e.length;n++)if("string"===u.type(e[n]))try{i[parseInt(e[n].replace(/^[a-z]+/,""),10)]=this.settings.sizeRangeSuffixes[e[n]]}catch(t){throw"sizeRangeSuffixes keys must contains correct numbers ("+t+")"}else i[e[n]]=this.settings.sizeRangeSuffixes[e[n]];this.settings.sizeRangeSuffixes=i},o.prototype.retrieveMaxRowHeight=function(){var t={};if("string"===u.type(this.settings.maxRowHeight))this.settings.maxRowHeight.match(/^[0-9]+%$/)?(t.value=parseFloat(this.settings.maxRowHeight.match(/^([0-9]+)%$/)[1])/100,t.isPercentage=!1):(t.value=parseFloat(this.settings.maxRowHeight),t.isPercentage=!0);else{if("number"!==u.type(this.settings.maxRowHeight))throw"maxRowHeight must be a number or a percentage";t.value=this.settings.maxRowHeight,t.isPercentage=!1}if(isNaN(t.value))throw"invalid number for maxRowHeight";return t.isPercentage?t.value<100&&(t.value=100):0<t.value&&t.value<this.settings.rowHeight&&(t.value=this.settings.rowHeight),t},o.prototype.checkSettings=function(){this.checkSizeRangesSuffixes(),this.checkOrConvertNumber(this.settings,"rowHeight"),this.checkOrConvertNumber(this.settings,"margins"),this.checkOrConvertNumber(this.settings,"border");var t=["justify","nojustify","left","center","right","hide"];if(-1===t.indexOf(this.settings.lastRow))throw"lastRow must be one of: "+t.join(", ");if(this.checkOrConvertNumber(this.settings,"justifyThreshold"),this.settings.justifyThreshold<0||1<this.settings.justifyThreshold)throw"justifyThreshold must be in the interval [0,1]";if("boolean"!==u.type(this.settings.cssAnimation))throw"cssAnimation must be a boolean";if("boolean"!==u.type(this.settings.captions))throw"captions must be a boolean";if(this.checkOrConvertNumber(this.settings.captionSettings,"animationDuration"),this.checkOrConvertNumber(this.settings.captionSettings,"visibleOpacity"),this.settings.captionSettings.visibleOpacity<0||1<this.settings.captionSettings.visibleOpacity)throw"captionSettings.visibleOpacity must be in the interval [0, 1]";if(this.checkOrConvertNumber(this.settings.captionSettings,"nonVisibleOpacity"),this.settings.captionSettings.nonVisibleOpacity<0||1<this.settings.captionSettings.nonVisibleOpacity)throw"captionSettings.nonVisibleOpacity must be in the interval [0, 1]";if("boolean"!==u.type(this.settings.fixedHeight))throw"fixedHeight must be a boolean";if(this.checkOrConvertNumber(this.settings,"imagesAnimationDuration"),this.checkOrConvertNumber(this.settings,"refreshTime"),this.checkOrConvertNumber(this.settings,"refreshSensitivity"),"boolean"!==u.type(this.settings.randomize))throw"randomize must be a boolean";if("string"!==u.type(this.settings.selector))throw"selector must be a string";if(!1!==this.settings.sort&&!u.isFunction(this.settings.sort))throw"sort must be false or a comparison function";if(!1!==this.settings.filter&&!u.isFunction(this.settings.filter)&&"string"!==u.type(this.settings.filter))throw"filter must be false, a string or a filter function"},o.prototype.retrieveSuffixRanges=function(){var t,e=[];for(t in this.settings.sizeRangeSuffixes)this.settings.sizeRangeSuffixes.hasOwnProperty(t)&&e.push(parseInt(t,10));return e.sort(function(t,e){return e<t?1:t<e?-1:0}),e},o.prototype.updateSettings=function(t){this.settings=u.extend({},this.settings,t),this.checkSettings(),this.border=0<=this.settings.border?this.settings.border:this.settings.margins,this.maxRowHeight=this.retrieveMaxRowHeight(),this.suffixRanges=this.retrieveSuffixRanges()},u.fn.justifiedGallery=function(n){return this.each(function(t,e){var i=u(e);i.addClass("justified-gallery");e=i.data("jg.controller");if(void 0===e){if(null!=n&&"object"!==u.type(n)){if("destroy"===n)return;throw"The argument must be an object"}e=new o(i,u.extend({},u.fn.justifiedGallery.defaults,n)),i.data("jg.controller",e)}else if("norewind"!==n){if("destroy"===n)return void e.destroy();e.updateSettings(n),e.rewind()}e.updateEntries("norewind"===n)&&e.init()})},u.fn.justifiedGallery.defaults={sizeRangeSuffixes:{},thumbnailPath:void 0,rowHeight:120,maxRowHeight:-1,margins:1,border:-1,lastRow:"nojustify",justifyThreshold:.9,fixedHeight:!1,waitThumbnailsLoad:!0,captions:!0,cssAnimation:!1,imagesAnimationDuration:500,captionSettings:{animationDuration:500,visibleOpacity:.7,nonVisibleOpacity:0},rel:null,target:null,extension:/\.[^.\\/]+$/,refreshTime:200,refreshSensitivity:0,randomize:!1,sort:!1,filter:!1,selector:"> a, > div:not(.spinner)"}}(t)}).call(this,i(0))},function(r,s,a){(function(t){var n,e,i,o;e=(n=t).fn.justifiedGallery,i={},n.fn.enviraJustifiedGallery=function(){var t=e.apply(this,arguments);if(void 0!==(i=t.data("jg.controller")))return i.displayEntryCaption=function(t){var e,i=this.imgFromEntry(t);null!==i&&this.settings.captions?(null===(e=this.captionFromEntry(t))&&(void 0!==(i=i.data("envira-caption"))&&"string"==typeof i&&(i=i.replace("<","&lt;")),this.isValidCaption(i)&&(i=n("<textarea />").html(i).text(),e=n('<div class="caption">'+i+"</div>"),t.append(e),t.data("jg.createdCaption",!0))),null!==e&&(this.settings.cssAnimation||e.stop().fadeTo(0,this.settings.captionSettings.nonVisibleOpacity),this.addCaptionEventsHandlers(t))):this.removeCaptionEventsHandlers(t)},i},o=this,t=[a(0)],void 0===(t=function(t){return o.VintageJS=(n=function(d,t,e){if(0==d instanceof HTMLImageElement)throw"The element (1st parameter) must be an instance of HTMLImageElement";var i,n,o,r,s,c,f,p,a,h,g=new Image,l=new Image,u=document.createElement("canvas"),m=u.getContext("2d"),v={onStart:function(){},onStop:function(){},onError:function(){},mime:"image/jpeg"},y={curves:!1,screen:!1,desaturate:!1,vignette:!1,lighten:!1,noise:!1,viewFinder:!1,sepia:!1,brightness:!1,contrast:!1};for(h in g.onerror=v.onError,g.onload=function(){c=u.width=g.width,f=u.height=g.height,i()},l.onerror=v.onError,l.onload=function(){m.clearRect(0,0,c,f),m.drawImage(l,0,0,c,f),(window.vjsImageCache||(window.vjsImageCache={}))[a]=m.getImageData(0,0,c,f).data,i()},n=function(t){for(var e in v.onStart(),p={},y)p[e]=t[e]||y[e];r=[],p.viewFinder&&r.push(p.viewFinder),g.src==s?i():g.src=s},i=function(){if(0===r.length)return o();var t=r.pop();return a=[c,f,t].join("-"),window.vjsImageCache&&window.vjsImageCache[a]?i():void(l.src=t)},o=function(){var t,e;m.clearRect(0,0,c,f),m.drawImage(g,0,0,c,f),(p.vignette||p.lighten)&&(t=Math.sqrt(Math.pow(c/2,2)+Math.pow(f/2,2))),p.vignette&&(m.globalCompositeOperation="source-over",(e=m.createRadialGradient(c/2,f/2,0,c/2,f/2,t)).addColorStop(0,"rgba(0,0,0,0)"),e.addColorStop(.5,"rgba(0,0,0,0)"),e.addColorStop(1,["rgba(0,0,0,",p.vignette,")"].join("")),m.fillStyle=e,m.fillRect(0,0,c,f)),p.lighten&&(m.globalCompositeOperation="lighter",(e=m.createRadialGradient(c/2,f/2,0,c/2,f/2,t)).addColorStop(0,["rgba(255,255,255,",p.lighten,")"].join("")),e.addColorStop(.5,"rgba(255,255,255,0)"),e.addColorStop(1,"rgba(0,0,0,0)"),m.fillStyle=e,m.fillRect(0,0,c,f));var i,n,o,r,s,a,h,l=(e=m.getImageData(0,0,c,f)).data;p.contrast&&(h=259*(p.contrast+255)/(255*(259-p.contrast))),p.viewFinder&&(a=window.vjsImageCache[[c,f,p.viewFinder].join("-")]);for(var u=c*f;0<=u;--u)for(i=u<<2,p.curves&&(l[i]=p.curves.r[l[i]],l[1+i]=p.curves.g[l[1+i]],l[2+i]=p.curves.b[l[2+i]]),p.contrast&&(l[i]=h*(l[i]-128)+128,l[1+i]=h*(l[1+i]-128)+128,l[2+i]=h*(l[2+i]-128)+128),p.brightness&&(l[i]+=p.brightness,l[1+i]+=p.brightness,l[2+i]+=p.brightness),p.screen&&(l[i]=255-(255-l[i])*(255-p.screen.r*p.screen.a)/255,l[1+i]=255-(255-l[1+i])*(255-p.screen.g*p.screen.a)/255,l[2+i]=255-(255-l[2+i])*(255-p.screen.b*p.screen.a)/255),p.noise&&(s=p.noise-Math.random()*p.noise/2,l[i]+=s,l[1+i]+=s,l[2+i]+=s),p.viewFinder&&(l[i]=l[i]*a[i]/255,l[1+i]=l[1+i]*a[1+i]/255,l[2+i]=l[2+i]*a[2+i]/255),p.sepia&&(o=l[i],s=l[1+i],r=l[2+i],l[i]=.393*o+.769*s+.189*r,l[1+i]=.349*o+.686*s+.168*r,l[2+i]=.272*o+.534*s+.131*r),p.desaturate&&(r=(l[i]+l[1+i]+l[2+i])/3,l[i]+=(r-l[i])*p.desaturate,l[1+i]+=(r-l[1+i])*p.desaturate,l[2+i]+=(r-l[2+i])*p.desaturate),n=2;0<=n;--n)l[i+n]=~~(255<l[i+n]?255:l[i+n]<0?0:l[i+n]);m.putImageData(e,0,0),d.src=m.canvas.toDataURL(v.mime),v.onStop()},s=d.src,t=t||{},v)v[h]=t[h]||v[h];return e&&n(e),{apply:function(){s=d.src},reset:function(){d.src=s},vintage:n}},(i=t).fn.vintage=function(t,e){return this.each(function(){i.data(this,"vintageJS")||i.data(this,"vintageJS",new n(this,t,e))})},n);var i,n}.apply(s,t))||(r.exports=t)}).call(this,a(0))},function(t,e,i){(function(t){t(document).ready(function(t){"ontouchstart"in document.documentElement&&t("body").addClass("envira-touch")})}).call(this,i(0))},function(r,s,a){(function(t){var e,i,n;function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n=function(rt){"use strict";var st="left",at="right",ht="up",lt="down",ut="in",dt="out",ct="none",ft="auto",pt="swipe",gt="pinch",mt="tap",vt="doubletap",yt="longtap",bt="horizontal",wt="vertical",xt="all",_t=10,St="start",It="move",Et="end",zt="cancel",Tt="ontouchstart"in window,Ct=window.navigator.msPointerEnabled&&!window.navigator.pointerEnabled,Rt=window.navigator.pointerEnabled||window.navigator.msPointerEnabled,Ot="TouchSwipe";function n(t,s){var e=Tt||Rt||!s.fallbackToMouseEvents,i=e?Rt?Ct?"MSPointerDown":"pointerdown":"touchstart":"mousedown",n=e?Rt?Ct?"MSPointerMove":"pointermove":"touchmove":"mousemove",o=e?Rt?Ct?"MSPointerUp":"pointerup":"touchend":"mouseup",r=e?null:"mouseleave",a=Rt?Ct?"MSPointerCancel":"pointercancel":"touchcancel",h=0,l=null,u=0,d=0,c=0,f=1,p=0,g=0,m=null,v=rt(t),y="start",b=0,w=null,x=0,_=0,S=0,I=0,E=0,z=null,T=null;try{v.bind(i,C),v.bind(a,L)}catch(t){rt.error("events not supported "+i+","+a+" on jQuery.swipe")}function C(t){if(!0!==v.data(Ot+"_intouch")&&!(0<rt(t.target).closest(s.excludedElements,v).length)){var e,i=t.originalEvent||t,n=Tt?i.touches[0]:i;return(y=St,Tt?b=i.touches.length:t.preventDefault(),g=l=null,f=1,p=c=d=u=h=0,w=function(){for(var t=[],e=0;e<=5;e++)t.push({start:{x:0,y:0},end:{x:0,y:0},identifier:0});return t}(),(t={})[st]=et(st),t[at]=et(at),t[ht]=et(ht),t[lt]=et(lt),m=t,V(),!Tt||b===s.fingers||s.fingers===xt||B()?(Z(0,n),x=ot(),2==b&&(Z(1,i.touches[1]),d=c=nt(w[0].start,w[1].start)),(s.swipeStatus||s.pinchStatus)&&(e=M(i,y))):e=!1,!1===e)?(M(i,y=zt),e):(s.hold&&(T=setTimeout(rt.proxy(function(){v.trigger("hold",[i.target]),s.hold&&(e=s.hold.call(v,i,i.target))},this),s.longTapThreshold)),J(!0),null)}}function R(t){var e,i,n,o,r=t.originalEvent||t;y===Et||y===zt||X()||(i=K(Tt?r.touches[0]:r),_=ot(),Tt&&(b=r.touches.length),s.hold&&clearTimeout(T),y=It,2==b&&(0==d?(Z(1,r.touches[1]),d=c=nt(w[0].start,w[1].start)):(K(r.touches[1]),c=nt(w[0].end,w[1].end),w[0].end,w[1].end,g=f<1?dt:ut),f=(c/d*1).toFixed(2),p=Math.abs(d-c)),b===s.fingers||s.fingers===xt||!Tt||B()?(function(t,e){if(s.allowPageScroll===ct||B())t.preventDefault();else{var i=s.allowPageScroll===ft;switch(e){case st:(s.swipeLeft&&i||!i&&s.allowPageScroll!=bt)&&t.preventDefault();break;case at:(s.swipeRight&&i||!i&&s.allowPageScroll!=bt)&&t.preventDefault();break;case ht:(s.swipeUp&&i||!i&&s.allowPageScroll!=wt)&&t.preventDefault();break;case lt:(s.swipeDown&&i||!i&&s.allowPageScroll!=wt)&&t.preventDefault()}}}(t,l=function(t,e){e=function(t,e){var i=t.x-e.x,t=e.y-t.y,i=Math.atan2(t,i),i=Math.round(180*i/Math.PI);i<0&&(i=360-Math.abs(i));return i}(t,e);return e<=45&&0<=e||e<=360&&315<=e?st:135<=e&&e<=225?at:45<e&&e<135?lt:ht}(i.start,i.end)),n=i.start,o=i.end,h=Math.round(Math.sqrt(Math.pow(o.x-n.x,2)+Math.pow(o.y-n.y,2))),u=it(),t=l,o=h,o=Math.max(o,tt(t)),m[t].distance=o,(s.swipeStatus||s.pinchStatus)&&(e=M(r,y)),s.triggerOnTouchEnd&&!s.triggerOnTouchLeave||(n=!0,s.triggerOnTouchLeave&&(t={left:(o=(t=rt(t=this)).offset()).left,right:o.left+t.outerWidth(),top:o.top,bottom:o.top+t.outerHeight()},i=i.end,t=t,n=i.x>t.left&&i.x<t.right&&i.y>t.top&&i.y<t.bottom),!s.triggerOnTouchEnd&&n?y=j(It):s.triggerOnTouchLeave&&!n&&(y=j(Et)),y!=zt&&y!=Et||M(r,y))):M(r,y=zt),!1===e&&M(r,y=zt))}function O(t){var e=t.originalEvent;return Tt&&0<e.touches.length?(S=ot(),I=event.touches.length+1,!0):(X()&&(b=I),_=ot(),u=it(),k()||!H()?M(e,y=zt):s.triggerOnTouchEnd||0==s.triggerOnTouchEnd&&y===It?(t.preventDefault(),M(e,y=Et)):!s.triggerOnTouchEnd&&G()?D(e,y=Et,mt):y===It&&M(e,y=zt),J(!1),null)}function L(){c=d=x=_=b=0,V(),J(!(f=1))}function A(t){t=t.originalEvent;s.triggerOnTouchLeave&&M(t,y=j(Et))}function W(){v.unbind(i,C),v.unbind(a,L),v.unbind(n,R),v.unbind(o,O),r&&v.unbind(r,A),J(!1)}function j(t){var e=t,i=P(),n=H(),o=k();return!i||o?e=zt:!n||t!=It||s.triggerOnTouchEnd&&!s.triggerOnTouchLeave?!n&&t==Et&&s.triggerOnTouchLeave&&(e=zt):e=Et,e}function M(t,e){var i=void 0;return N()&&Y()||Y()?i=D(t,e,pt):(F()&&B()||B())&&!1!==i&&(i=D(t,e,gt)),U()&&Q()&&!1!==i?i=D(t,e,vt):u>s.longTapThreshold&&h<_t&&s.longTap&&!1!==i?i=D(t,e,yt):1!==b&&Tt||!(isNaN(h)||h<s.threshold)||!G()||!1===i||(i=D(t,e,mt)),e===zt&&L(),e!==Et||Tt&&0!=t.touches.length||L(),i}function D(t,e,i){var n=void 0;if(i==pt){if(v.trigger("swipeStatus",[e,l||null,h||0,u||0,b,w]),s.swipeStatus&&!1===(n=s.swipeStatus.call(v,t,e,l||null,h||0,u||0,b,w)))return!1;if(e==Et&&N()){if(v.trigger("swipe",[l,h,u,b,w]),s.swipe&&!1===(n=s.swipe.call(v,t,l,h,u,b,w)))return!1;switch(l){case st:v.trigger("swipeLeft",[l,h,u,b,w]),s.swipeLeft&&(n=s.swipeLeft.call(v,t,l,h,u,b,w));break;case at:v.trigger("swipeRight",[l,h,u,b,w]),s.swipeRight&&(n=s.swipeRight.call(v,t,l,h,u,b,w));break;case ht:v.trigger("swipeUp",[l,h,u,b,w]),s.swipeUp&&(n=s.swipeUp.call(v,t,l,h,u,b,w));break;case lt:v.trigger("swipeDown",[l,h,u,b,w]),s.swipeDown&&(n=s.swipeDown.call(v,t,l,h,u,b,w))}}}if(i==gt){if(v.trigger("pinchStatus",[e,g||null,p||0,u||0,b,f,w]),s.pinchStatus&&!1===(n=s.pinchStatus.call(v,t,e,g||null,p||0,u||0,b,f,w)))return!1;if(e==Et&&F())switch(g){case ut:v.trigger("pinchIn",[g||null,p||0,u||0,b,f,w]),s.pinchIn&&(n=s.pinchIn.call(v,t,g||null,p||0,u||0,b,f,w));break;case dt:v.trigger("pinchOut",[g||null,p||0,u||0,b,f,w]),s.pinchOut&&(n=s.pinchOut.call(v,t,g||null,p||0,u||0,b,f,w))}}return i==mt?e!==zt&&e!==Et||(clearTimeout(z),clearTimeout(T),Q()&&!U()?(E=ot(),z=setTimeout(rt.proxy(function(){E=null,v.trigger("tap",[t.target]),s.tap&&(n=s.tap.call(v,t,t.target))},this),s.doubleTapThreshold)):(E=null,v.trigger("tap",[t.target]),s.tap&&(n=s.tap.call(v,t,t.target)))):i==vt?e!==zt&&e!==Et||(clearTimeout(z),E=null,v.trigger("doubletap",[t.target]),s.doubleTap&&(n=s.doubleTap.call(v,t,t.target))):i==yt&&(e!==zt&&e!==Et||(clearTimeout(z),E=null,v.trigger("longtap",[t.target]),s.longTap&&(n=s.longTap.call(v,t,t.target)))),n}function H(){var t=!0;return null!==s.threshold&&(t=h>=s.threshold),t}function k(){var t=!1;return null!==s.cancelThreshold&&null!==l&&(t=tt(l)-h>=s.cancelThreshold),t}function P(){var t=!s.maxTimeThreshold||!(u>=s.maxTimeThreshold);return t}function F(){var t=q(),e=$(),i=null===s.pinchThreshold||p>=s.pinchThreshold;return t&&e&&i}function B(){return s.pinchStatus||s.pinchIn||s.pinchOut}function N(){var t=P(),e=H(),i=q(),n=$();return!k()&&n&&i&&e&&t}function Y(){return s.swipe||s.swipeStatus||s.swipeLeft||s.swipeRight||s.swipeUp||s.swipeDown}function q(){return b===s.fingers||s.fingers===xt||!Tt}function $(){return 0!==w[0].end.x}function G(){return s.tap}function Q(){return!!s.doubleTap}function U(){if(null==E)return!1;var t=ot();return Q()&&t-E<=s.doubleTapThreshold}function V(){I=S=0}function X(){var t=!1;return S&&ot()-S<=s.fingerReleaseThreshold&&(t=!0),t}function J(t){!0===t?(v.bind(n,R),v.bind(o,O),r&&v.bind(r,A)):(v.unbind(n,R,!1),v.unbind(o,O,!1),r&&v.unbind(r,A,!1)),v.data(Ot+"_intouch",!0===t)}function Z(t,e){var i=void 0!==e.identifier?e.identifier:0;return w[t].identifier=i,w[t].start.x=w[t].end.x=e.pageX||e.clientX,w[t].start.y=w[t].end.y=e.pageY||e.clientY,w[t]}function K(t){var e=function(t){for(var e=0;e<w.length;e++)if(w[e].identifier==t)return w[e]}(void 0!==t.identifier?t.identifier:0);return e.end.x=t.pageX||t.clientX,e.end.y=t.pageY||t.clientY,e}function tt(t){if(m[t])return m[t].distance}function et(t){return{direction:t,distance:0}}function it(){return _-x}function nt(t,e){var i=Math.abs(t.x-e.x),e=Math.abs(t.y-e.y);return Math.round(Math.sqrt(i*i+e*e))}function ot(){return(new Date).getTime()}this.enable=function(){return v.bind(i,C),v.bind(a,L),v},this.disable=function(){return W(),v},this.destroy=function(){W(),v.data(Ot,null),v=null},this.option=function(t,e){if(void 0!==s[t]){if(void 0===e)return s[t];s[t]=e}else rt.error("Option "+t+" does not exist on jQuery.swipe.options");return null}}rt.fn.swipe=function(t){var e=rt(this),i=e.data(Ot);if(i&&"string"==typeof t){if(i[t])return i[t].apply(this,Array.prototype.slice.call(arguments,1));rt.error("Method "+t+" does not exist on jQuery.swipe")}else if(!(i||"object"!==o(t)&&t))return function(i){!i||void 0!==i.allowPageScroll||void 0===i.swipe&&void 0===i.swipeStatus||(i.allowPageScroll=ct);void 0!==i.click&&void 0===i.tap&&(i.tap=i.click);i=i||{};return i=rt.extend({},rt.fn.swipe.defaults,i),this.each(function(){var t=rt(this),e=t.data(Ot);e||(e=new n(this,i),t.data(Ot,e))})}.apply(this,arguments);return e},rt.fn.swipe.defaults={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:!0,triggerOnTouchLeave:!1,allowPageScroll:"auto",fallbackToMouseEvents:!0,excludedElements:"label, button, input, select, textarea, a, .noSwipe"},rt.fn.swipe.phases={PHASE_START:St,PHASE_MOVE:It,PHASE_END:Et,PHASE_CANCEL:zt},rt.fn.swipe.directions={LEFT:st,RIGHT:at,UP:ht,DOWN:lt,IN:ut,OUT:dt},rt.fn.swipe.pageScroll={NONE:ct,HORIZONTAL:bt,VERTICAL:wt,AUTO:ft},rt.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,ALL:xt}},a(11).jQuery?(e=[a(0)],void 0===(i="function"==typeof(i=n)?i.apply(s,e):i)||(r.exports=i)):n(t)}).call(this,a(0))},function(e,t){(function(t){e.exports=t}).call(this,{})},function(t,e,i){var n;n=[i(0)],void 0===(i="function"==typeof(i=function(c){var t=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],i="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],f=Array.prototype.slice,p,g;if(c.event.fixHooks)for(var e=t.length;e;)c.event.fixHooks[t[--e]]=c.event.mouseHooks;var m=c.event.special.mousewheel={version:"3.1.12",setup:function t(){if(this.addEventListener)for(var e=i.length;e;)this.addEventListener(i[--e],n,false);else this.onmousewheel=n;c.data(this,"mousewheel-line-height",m.getLineHeight(this));c.data(this,"mousewheel-page-height",m.getPageHeight(this))},teardown:function t(){if(this.removeEventListener)for(var e=i.length;e;)this.removeEventListener(i[--e],n,false);else this.onmousewheel=null;c.removeData(this,"mousewheel-line-height");c.removeData(this,"mousewheel-page-height")},getLineHeight:function t(e){var i=c(e),n=i["offsetParent"in c.fn?"offsetParent":"parent"]();if(!n.length)n=c("body");return parseInt(n.css("fontSize"),10)||parseInt(i.css("fontSize"),10)||16},getPageHeight:function t(e){return c(e).height()},settings:{adjustOldDeltas:true,normalizeOffset:true}};function n(t){var e=t||window.event,i=f.call(arguments,1),n=0,o=0,r=0,s=0,a=0,h=0;t=c.event.fix(e);t.type="mousewheel";if("detail"in e)r=e.detail*-1;if("wheelDelta"in e)r=e.wheelDelta;if("wheelDeltaY"in e)r=e.wheelDeltaY;if("wheelDeltaX"in e)o=e.wheelDeltaX*-1;if("axis"in e&&e.axis===e.HORIZONTAL_AXIS){o=r*-1;r=0}n=r===0?o:r;if("deltaY"in e){r=e.deltaY*-1;n=r}if("deltaX"in e){o=e.deltaX;if(r===0)n=o*-1}if(r===0&&o===0)return;if(e.deltaMode===1){var l=c.data(this,"mousewheel-line-height");n*=l;r*=l;o*=l}else if(e.deltaMode===2){var u=c.data(this,"mousewheel-page-height");n*=u;r*=u;o*=u}s=Math.max(Math.abs(r),Math.abs(o));if(!g||s<g){g=s;if(y(e,s))g/=40}if(y(e,s)){n/=40;o/=40;r/=40}n=Math[n>=1?"floor":"ceil"](n/g);o=Math[o>=1?"floor":"ceil"](o/g);r=Math[r>=1?"floor":"ceil"](r/g);if(m.settings.normalizeOffset&&this.getBoundingClientRect){var d=this.getBoundingClientRect();a=t.clientX-d.left;h=t.clientY-d.top}t.deltaX=o;t.deltaY=r;t.deltaFactor=g;t.offsetX=a;t.offsetY=h;t.deltaMode=0;i.unshift(t,n,o,r);if(p)clearTimeout(p);p=setTimeout(v,200);return(c.event.dispatch||c.event.handle).apply(this,i)}function v(){g=null}function y(t,e){return m.settings.adjustOldDeltas&&t.type==="mousewheel"&&e%120===0}c.fn.extend({mousewheel:function t(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function t(e){return this.unbind("mousewheel",e)}})})?i.apply(e,n):i)||(t.exports=i)},function(t,n,e){var o,i,r,s;r={id:"ev-emitter/ev-emitter",exports:{},loaded:!1},o="function"==typeof(i=function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},t=i[t]=i[t]||[];return-1==t.indexOf(e)&&t.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||[])[e]=!0,this}},e.off=function(t,e){t=this._events&&this._events[t];if(t&&t.length){e=t.indexOf(e);return-1!=e&&t.splice(e,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=0,o=i[n];e=e||[];for(var r=this._onceEvents&&this._onceEvents[t];o;){var s=r&&r[o];s&&(this.off(t,o),delete r[o]),o.apply(this,e),o=i[n+=s?0:1]}return this}},t})?i.call(r.exports,e,r.exports,r):i,r.loaded=!0,void 0!==o||(o=r.exports),function(e,i){"use strict";void 0===(s=function(t){return i(e,t)}.apply(n,[o]))||(t.exports=s)}(window,function(e,t){var n=e.jQuery,o=e.console;function r(t,e){for(var i in e)t[i]=e[i];return t}function s(t,e,i){if(!(this instanceof s))return new s(t,e,i);"string"==typeof t&&(t=document.querySelectorAll(t)),this.elements=function(t){var e=[];if(Array.isArray(t))e=t;else if("number"==typeof t.length)for(var i=0;i<t.length;i++)e.push(t[i]);else e.push(t);return e}(t),this.options=r({},this.options),"function"==typeof e?i=e:r(this.options,e),i&&this.on("always",i),this.getImages(),n&&(this.jqDeferred=new n.Deferred),setTimeout(function(){this.check()}.bind(this))}(s.prototype=Object.create(t.prototype)).options={},s.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},s.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&a[e]){for(var i=t.querySelectorAll("img"),n=0;n<i.length;n++){var o=i[n];this.addImage(o)}if("string"==typeof this.options.background)for(var r=t.querySelectorAll(this.options.background),n=0;n<r.length;n++){var s=r[n];this.addElementBackgroundImages(s)}}};var a={1:!0,9:!0,11:!0};function i(t){this.img=t}function h(t,e){this.url=t,this.element=e,this.img=new Image}return s.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(e.backgroundImage);null!==n;){var o=n&&n[2];o&&this.addBackground(o,t),n=i.exec(e.backgroundImage)}},s.prototype.addImage=function(t){t=new i(t);this.images.push(t)},s.prototype.addBackground=function(t,e){e=new h(t,e);this.images.push(e)},s.prototype.check=function(){var n=this;function e(t,e,i){setTimeout(function(){n.progress(t,e,i)})}this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?this.images.forEach(function(t){t.once("progress",e),t.check()}):this.complete()},s.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&o&&o.log("progress: "+i,t,e)},s.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred&&(t=this.hasAnyBroken?"reject":"resolve",this.jqDeferred[t](this))},(i.prototype=Object.create(t.prototype)).check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.src)},i.prototype.getIsImageComplete=function(){return this.img.complete&&void 0!==this.img.naturalWidth},i.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},i.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},i.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},i.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},(h.prototype=Object.create(i.prototype)).check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},h.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},h.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},(s.makeJQueryPlugin=function(t){(t=t||e.jQuery)&&((n=t).fn.enviraImagesLoaded=function(t,e){return new s(this,t,e).jqDeferred.promise(n(this))})})(),s})},function(t,n,o){var e,i,r,s,a,h,l,u,d,c,f,p,g,m,v,y,b;function I(t){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(e,i){"use strict";p=[o(0)],void 0===(g=function(t){i(e,t)}.apply(n,p))||(t.exports=g)}(window,function(t,e){"use strict";var i=Array.prototype.slice,n=t.console,d=void 0===n?function(){}:function(t){n.error(t)};function o(h,l,u){(u=u||e||t.jQuery)&&(l.prototype.option||(l.prototype.option=function(t){u.isPlainObject(t)&&(this.options=u.extend(!0,this.options,t))}),u.fn[h]=function(t){if("string"!=typeof t)return a=t,this.each(function(t,e){var i=u.data(e,h);i?(i.option(a),i._init()):(i=new l(e,a),u.data(e,h,i))}),this;var n,o,r,s,a,e=i.call(arguments,1);return o=e,s="$()."+h+'("'+(n=t)+'")',(t=this).each(function(t,e){var i=u.data(e,h);i?(e=i[n])&&"_"!=n.charAt(0)?(i=e.apply(i,o),r=void 0===r?i:r):d(s+" is not a valid method"):d(h+" not initialized. Cannot call methods, i.e. "+s)}),void 0!==r?r:t},r(u))}function r(t){!t||t&&t.bridget||(t.bridget=o)}return r(e||t.jQuery),1}),c={id:"ev-emitter/ev-emitter",exports:{},loaded:!1},e="function"==typeof(d=function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},t=i[t]=i[t]||[];return-1==t.indexOf(e)&&t.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this}},e.off=function(t,e){t=this._events&&this._events[t];if(t&&t.length){e=t.indexOf(e);return-1!=e&&t.splice(e,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=0,o=i[n];e=e||[];for(var r=this._onceEvents&&this._onceEvents[t];o;){var s=r&&r[o];s&&(this.off(t,o),delete r[o]),o.apply(this,e),o=i[n+=s?0:1]}return this}},t})?d.call(c.exports,o,c.exports,c):d,c.loaded=!0,void 0!==e||(e=c.exports),function(){"use strict";i=function(){"use strict";function v(t){var e=parseFloat(t);var i=t.indexOf("%")==-1&&!isNaN(e);return i&&e}function t(){}var i=typeof console=="undefined"?t:function(t){console.error(t)};var y=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];var b=y.length;function w(){var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0};for(var e=0;e<b;e++){var i=y[e];t[i]=0}return t}function x(t){var e=getComputedStyle(t);if(!e)i("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? "+"See http://bit.ly/getsizebug1");return e}var n=false;var _;function S(){if(n)return;n=true;var t=document.createElement("div");t.style.width="200px";t.style.padding="1px 2px 3px 4px";t.style.borderStyle="solid";t.style.borderWidth="1px 2px 3px 4px";t.style.boxSizing="border-box";var e=document.body||document.documentElement;e.appendChild(t);var i=x(t);o.isBoxSizeOuter=_=v(i.width)==200;e.removeChild(t)}function o(t){S();if(typeof t=="string")t=document.querySelector(t);if(!t||I(t)!="object"||!t.nodeType)return;var e=x(t);if(e.display=="none")return w();var i={};i.width=t.offsetWidth;i.height=t.offsetHeight;var n=i.isBorderBox=e.boxSizing=="border-box";for(var o=0;o<b;o++){var r=y[o];var s=e[r];var a=parseFloat(s);i[r]=!isNaN(a)?a:0}var h=i.paddingLeft+i.paddingRight;var l=i.paddingTop+i.paddingBottom;var u=i.marginLeft+i.marginRight;var d=i.marginTop+i.marginBottom;var c=i.borderLeftWidth+i.borderRightWidth;var f=i.borderTopWidth+i.borderBottomWidth;var p=n&&_;var g=v(e.width);if(g!==false)i.width=g+(p?0:h+c);var m=v(e.height);if(m!==false)i.height=m+(p?0:l+f);i.innerWidth=i.width-(h+c);i.innerHeight=i.height-(l+f);i.outerWidth=i.width+u;i.outerHeight=i.height+d;return i}return o}.apply(n,p=[])}(window),function(){"use strict";a={id:"desandro-matches-selector/matches-selector",exports:{},loaded:!1},r="function"==typeof(s=function(){"use strict";var n=function(){var t=Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";var e=["webkit","moz","ms","o"];for(var i=0;i<e.length;i++){var n=e[i];var o=n+"MatchesSelector";if(t[o])return o}}();return function t(e,i){return e[n](i)}})?s.call(a.exports,o,a.exports,a):s,a.loaded=!0,void 0!==r||(r=a.exports)}(window),m=window,v=function(i,r){var l={extend:function(t,e){for(var i in e)t[i]=e[i];return t},modulo:function(t,e){return(t%e+e)%e},makeArray:function(t){var e=[];if(Array.isArray(t))e=t;else if(t&&"number"==typeof t.length)for(var i=0;i<t.length;i++)e.push(t[i]);else e.push(t);return e},removeFrom:function(t,e){e=t.indexOf(e);-1!=e&&t.splice(e,1)},getParent:function(t,e){for(;t!=document.body;)if(t=t.parentNode,r(t,e))return t},getQueryElement:function(t){return"string"==typeof t?document.querySelector(t):t},handleEvent:function(t){var e="on"+t.type;this[e]&&this[e](t)},filterFindElements:function(t,n){t=l.makeArray(t);var o=[];return t.forEach(function(t){if(t instanceof HTMLElement)if(n){r(t,n)&&o.push(t);for(var e=t.querySelectorAll(n),i=0;i<e.length;i++)o.push(e[i])}else o.push(t)}),o},debounceMethod:function(t,e,n){var o=t.prototype[e],r=e+"Timeout";t.prototype[e]=function(){var t=this[r];t&&clearTimeout(t);var e=arguments,i=this;this[r]=setTimeout(function(){o.apply(i,e),delete i[r]},n||100)}},docReady:function(t){"complete"==document.readyState?t():document.addEventListener("DOMContentLoaded",t)},toDashed:function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()}},u=i.console;return l.htmlInit=function(a,h){l.docReady(function(){var t=l.toDashed(h),o="data-"+t,e=document.querySelectorAll("["+o+"]"),t=document.querySelectorAll(".js-"+t),t=l.makeArray(e).concat(l.makeArray(t)),r=o+"-options",s=i.jQuery;t.forEach(function(e){var t,i=e.getAttribute(o)||e.getAttribute(r);try{t=i&&JSON.parse(i)}catch(t){return void(u&&u.error("Error parsing "+o+" on "+e.className+": "+t))}var n=new a(e,t);s&&s.data(e,h,n)})})},l},h=function(t){return v(m,t)}.apply(n,p=[r]),window,p=[e,i],l="function"==typeof(f=function(t,e){"use strict";function o(t){for(var e in t)return false;e=null;return true}var i=document.documentElement.style;var n=typeof i.transition=="string"?"transition":"WebkitTransition";var r=typeof i.transform=="string"?"transform":"WebkitTransform";var s={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[n];var a={transform:r,transition:n,transitionDuration:n+"Duration",transitionProperty:n+"Property",transitionDelay:n+"Delay"};function h(t,e){if(!t)return;this.element=t;this.layout=e;this.position={x:0,y:0};this._create()}var l=h.prototype=Object.create(t.prototype);l.constructor=h;l._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}};this.css({position:"absolute"})};l.handleEvent=function(t){var e="on"+t.type;if(this[e])this[e](t)};l.getSize=function(){this.size=e(this.element)};l.css=function(t){var e=this.element.style;for(var i in t){var n=a[i]||i;e[n]=t[i]}};l.getPosition=function(){var t=getComputedStyle(this.element);var e=this.layout._getOption("originLeft");var i=this.layout._getOption("originTop");var n=t[e?"left":"right"];var o=t[i?"top":"bottom"];var r=this.layout.size;var s=n.indexOf("%")!=-1?parseFloat(n)/100*r.width:parseInt(n,10);var a=o.indexOf("%")!=-1?parseFloat(o)/100*r.height:parseInt(o,10);s=isNaN(s)?0:s;a=isNaN(a)?0:a;s-=e?r.paddingLeft:r.paddingRight;a-=i?r.paddingTop:r.paddingBottom;this.position.x=s;this.position.y=a};l.layoutPosition=function(){var t=this.layout.size;var e={};var i=this.layout._getOption("originLeft");var n=this.layout._getOption("originTop");var o=i?"paddingLeft":"paddingRight";var r=i?"left":"right";var s=i?"right":"left";var a=this.position.x+t[o];e[r]=this.getXValue(a);e[s]="";var h=n?"paddingTop":"paddingBottom";var l=n?"top":"bottom";var u=n?"bottom":"top";var d=this.position.y+t[h];e[l]=this.getYValue(d);e[u]="";this.css(e);this.emitEvent("layout",[this])};l.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"};l.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"};l._transitionTo=function(t,e){this.getPosition();var i=this.position.x;var n=this.position.y;var o=parseInt(t,10);var r=parseInt(e,10);var s=o===this.position.x&&r===this.position.y;this.setPosition(t,e);if(s&&!this.isTransitioning){this.layoutPosition();return}var a=t-i;var h=e-n;var l={};l.transform=this.getTranslate(a,h);this.transition({to:l,onTransitionEnd:{transform:this.layoutPosition},isCleaning:true})};l.getTranslate=function(t,e){var i=this.layout._getOption("originLeft");var n=this.layout._getOption("originTop");t=i?t:-t;e=n?e:-e;return"translate3d("+t+"px, "+e+"px, 0)"};l.goTo=function(t,e){this.setPosition(t,e);this.layoutPosition()};l.moveTo=l._transitionTo;l.setPosition=function(t,e){this.position.x=parseInt(t,10);this.position.y=parseInt(e,10)};l._nonTransition=function(t){this.css(t.to);if(t.isCleaning)this._removeStyles(t.to);for(var e in t.onTransitionEnd)t.onTransitionEnd[e].call(this)};l.transition=function(t){if(!parseFloat(this.layout.options.transitionDuration)){this._nonTransition(t);return}var e=this._transn;for(var i in t.onTransitionEnd)e.onEnd[i]=t.onTransitionEnd[i];for(i in t.to){e.ingProperties[i]=true;if(t.isCleaning)e.clean[i]=true}if(t.from){this.css(t.from);var n=this.element.offsetHeight;n=null}this.enableTransition(t.to);this.css(t.to);this.isTransitioning=true};function u(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}var d="opacity,"+u(r);l.enableTransition=function(){if(this.isTransitioning)return;var t=this.layout.options.transitionDuration;t=typeof t=="number"?t+"ms":t;this.css({transitionProperty:d,transitionDuration:t,transitionDelay:this.staggerDelay||0});this.element.addEventListener(s,this,false)};l.onwebkitTransitionEnd=function(t){this.ontransitionend(t)};l.onotransitionend=function(t){this.ontransitionend(t)};var c={"-webkit-transform":"transform"};l.ontransitionend=function(t){if(t.target!==this.element)return;var e=this._transn;var i=c[t.propertyName]||t.propertyName;delete e.ingProperties[i];if(o(e.ingProperties))this.disableTransition();if(i in e.clean){this.element.style[t.propertyName]="";delete e.clean[i]}if(i in e.onEnd){var n=e.onEnd[i];n.call(this);delete e.onEnd[i]}this.emitEvent("transitionEnd",[this])};l.disableTransition=function(){this.removeTransitionStyles();this.element.removeEventListener(s,this,false);this.isTransitioning=false};l._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var f={transitionProperty:"",transitionDuration:"",transitionDelay:""};l.removeTransitionStyles=function(){this.css(f)};l.stagger=function(t){t=isNaN(t)?0:t;this.staggerDelay=t+"ms"};l.removeElem=function(){this.element.parentNode.removeChild(this.element);this.css({display:""});this.emitEvent("remove",[this])};l.remove=function(){if(!n||!parseFloat(this.layout.options.transitionDuration)){this.removeElem();return}this.once("transitionEnd",function(){this.removeElem()});this.hide()};l.reveal=function(){delete this.isHidden;this.css({display:""});var t=this.layout.options;var e={};var i=this.getHideRevealTransitionEndProperty("visibleStyle");e[i]=this.onRevealTransitionEnd;this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:true,onTransitionEnd:e})};l.onRevealTransitionEnd=function(){if(!this.isHidden)this.emitEvent("reveal")};l.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i};l.hide=function(){this.isHidden=true;this.css({display:""});var t=this.layout.options;var e={};var i=this.getHideRevealTransitionEndProperty("hiddenStyle");e[i]=this.onHideTransitionEnd;this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:true,onTransitionEnd:e})};l.onHideTransitionEnd=function(){if(this.isHidden){this.css({display:"none"});this.emitEvent("hide")}};l.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})};return h})?f.apply(n,p):f,function(o,r){"use strict";u=function(t,e,i,n){return r(o,t,e,i,n)}.apply(n,p=[e,i,h,l])}(window,function(t,e,o,n,r){"use strict";function i(){}var s=t.console,a=t.jQuery,h=0,l={};function u(t,e){var i=n.getQueryElement(t);i?(this.element=i,a&&(this.$element=a(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(e),e=++h,this.element.outlayerGUID=e,(l[e]=this)._create(),this._getOption("initLayout")&&this.layout()):s&&s.error("Bad element for "+this.constructor.namespace+": "+(i||t))}u.namespace="outlayer",u.Item=r,u.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var d=u.prototype;function c(t){function e(){t.apply(this,arguments)}return(e.prototype=Object.create(t.prototype)).constructor=e}n.extend(d,e.prototype),d.option=function(t){n.extend(this.options,t)},d._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},u.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},d._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),n.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},d.reloadItems=function(){this.items=this._itemize(this.element.children)},d._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],o=0;o<e.length;o++){var r=new i(e[o],this);n.push(r)}return n},d._filterFindItemElements=function(t){return n.filterFindElements(t,this.options.itemSelector)},d.getItemElements=function(){return this.items.map(function(t){return t.element})},d.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),t=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,t),this._isLayoutInited=!0},d._init=d.layout,d._resetLayout=function(){this.getSize()},d.getSize=function(){this.size=o(this.element)},d._getMeasurement=function(t,e){var i,n=this.options[t];n?("string"==typeof n?i=this.element.querySelector(n):n instanceof HTMLElement&&(i=n),this[t]=i?o(i)[e]:n):this[t]=0},d.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},d._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},d._layoutItems=function(t,i){var n;this._emitCompleteOnItems("layout",t),t&&t.length&&(n=[],t.forEach(function(t){var e=this._getItemLayoutPosition(t);e.item=t,e.isInstant=i||t.isLayoutInstant,n.push(e)},this),this._processLayoutQueue(n))},d._getItemLayoutPosition=function(){return{x:0,y:0}},d._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},d.updateStagger=function(){var t=this.options.stagger;if(null!=t)return this.stagger=function(t){if("number"==typeof t)return t;var e=t.match(/(^\d*\.?\d*)(\w*)/),t=e&&e[1],e=e&&e[2];if(!t.length)return 0;t=parseFloat(t);e=f[e]||1;return t*e}(t),this.stagger;this.stagger=0},d._positionItem=function(t,e,i,n,o){n?t.goTo(e,i):(t.stagger(o*this.stagger),t.moveTo(e,i))},d._postLayout=function(){this.resizeContainer()},d.resizeContainer=function(){var t;!this._getOption("resizeContainer")||(t=this._getContainerSize())&&(this._setContainerMeasure(t.width,!0),this._setContainerMeasure(t.height,!1))},d._getContainerSize=i,d._setContainerMeasure=function(t,e){var i;void 0!==t&&((i=this.size).isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px")},d._emitCompleteOnItems=function(e,t){var i=this;function n(){i.dispatchEvent(e+"Complete",null,[t])}var o,r=t.length;function s(){++o==r&&n()}t&&r?(o=0,t.forEach(function(t){t.once(e,s)})):n()},d.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;this.emitEvent(t,n),a&&(this.$element=this.$element||a(this.element),e?((e=a.Event(e)).type=t,this.$element.trigger(e,i)):this.$element.trigger(t,i))},d.ignore=function(t){t=this.getItem(t);t&&(t.isIgnored=!0)},d.unignore=function(t){t=this.getItem(t);t&&delete t.isIgnored},d.stamp=function(t){(t=this._find(t))&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},d.unstamp=function(t){(t=this._find(t))&&t.forEach(function(t){n.removeFrom(this.stamps,t),this.unignore(t)},this)},d._find=function(t){if(t)return"string"==typeof t&&(t=this.element.querySelectorAll(t)),t=n.makeArray(t)},d._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},d._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},d._manageStamp=i,d._getElementOffset=function(t){var e=t.getBoundingClientRect(),i=this._boundingRect,t=o(t);return{left:e.left-i.left-t.marginLeft,top:e.top-i.top-t.marginTop,right:i.right-e.right-t.marginRight,bottom:i.bottom-e.bottom-t.marginBottom}},d.handleEvent=n.handleEvent,d.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},d.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},d.onresize=function(){this.resize()},n.debounceMethod(u,"onresize",100),d.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},d.needsResizeLayout=function(){var t=o(this.element);return this.size&&t&&t.innerWidth!==this.size.innerWidth},d.addItems=function(t){t=this._itemize(t);return t.length&&(this.items=this.items.concat(t)),t},d.appended=function(t){t=this.addItems(t);t.length&&(this.layoutItems(t,!0),this.reveal(t))},d.prepended=function(t){var e=this._itemize(t);e.length&&(t=this.items.slice(0),this.items=e.concat(t),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(t))},d.reveal=function(t){var i;this._emitCompleteOnItems("reveal",t),t&&t.length&&(i=this.updateStagger(),t.forEach(function(t,e){t.stagger(e*i),t.reveal()}))},d.hide=function(t){var i;this._emitCompleteOnItems("hide",t),t&&t.length&&(i=this.updateStagger(),t.forEach(function(t,e){t.stagger(e*i),t.hide()}))},d.revealItemElements=function(t){t=this.getItems(t);this.reveal(t)},d.hideItemElements=function(t){t=this.getItems(t);this.hide(t)},d.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},d.getItems=function(t){t=n.makeArray(t);var e=[];return t.forEach(function(t){t=this.getItem(t);t&&e.push(t)},this),e},d.remove=function(t){t=this.getItems(t);this._emitCompleteOnItems("remove",t),t&&t.length&&t.forEach(function(t){t.remove(),n.removeFrom(this.items,t)},this)},d.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="",this.items.forEach(function(t){t.destroy()}),this.unbindResize();t=this.element.outlayerGUID;delete l[t],delete this.element.outlayerGUID,a&&a.removeData(this.element,this.constructor.namespace)},u.data=function(t){t=(t=n.getQueryElement(t))&&t.outlayerGUID;return t&&l[t]},u.create=function(t,e){var i=c(u);return i.defaults=n.extend({},u.defaults),n.extend(i.defaults,e),i.compatOptions=n.extend({},u.compatOptions),i.namespace=t,i.data=u.data,i.Item=c(r),n.htmlInit(i,t),a&&a.bridget&&a.bridget(t,i),i};var f={ms:1,s:1e3};return u.Item=r,u}),window,p=[u],void 0===(g="function"==typeof(f=function(t){"use strict";function e(){t.Item.apply(this,arguments)}var i=e.prototype=Object.create(t.Item.prototype),n=i._create;i._create=function(){this.id=this.layout.itemGUID++,n.call(this),this.sortData={}},i.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id,this.sortData.random=Math.random();var t,e=this.layout.options.getSortData,i=this.layout._sorters;for(t in e){var n=i[t];this.sortData[t]=n(this.element,this)}}};var o=i.destroy;return i.destroy=function(){o.apply(this,arguments),this.css({display:""})},e})?f.apply(n,p):f)||(t.exports=g),window,p=[i,u],d="function"==typeof(f=function(e,i){"use strict";function n(t){(this.enviratope=t)&&(this.options=t.options[this.namespace],this.element=t.element,this.items=t.filteredItems,this.size=t.size)}var o=n.prototype;return["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"].forEach(function(t){o[t]=function(){return i.prototype[t].apply(this.enviratope,arguments)}}),o.needsVerticalResizeLayout=function(){var t=e(this.enviratope.element);return this.enviratope.size&&t&&t.innerHeight!=this.enviratope.size.innerHeight},o._getMeasurement=function(){this.enviratope._getMeasurement.apply(this,arguments)},o.getColumnWidth=function(){this.getSegmentSize("column","Width")},o.getRowHeight=function(){this.getSegmentSize("row","Height")},o.getSegmentSize=function(t,e){var i=t+e,n="outer"+e;this._getMeasurement(i,n),this[i]||(t=this.getFirstItemSize(),this[i]=t&&t[n]||this.enviratope.size["inner"+e])},o.getFirstItemSize=function(){var t=this.enviratope.filteredItems[0];return t&&t.element&&e(t.element)},o.layout=function(){this.enviratope.layout.apply(this.enviratope,arguments)},o.getSize=function(){this.enviratope.getSize(),this.size=this.enviratope.size},n.modes={},n.create=function(t,e){function i(){n.apply(this,arguments)}return(i.prototype=Object.create(o)).constructor=i,e&&(i.options=e),n.modes[i.prototype.namespace=t]=i},n})?f.apply(n,p):f,window,p=[u,i],c="function"==typeof(f=function(t,d){var e=t.create("masonry");e.compatOptions.fitWidth="isFitWidth";e.prototype._resetLayout=function(){this.getSize();this._getMeasurement("columnWidth","outerWidth");this._getMeasurement("gutter","outerWidth");this.measureColumns();this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0};e.prototype.measureColumns=function(){this.getContainerWidth();if(!this.columnWidth){var t=this.items[0];var e=t&&t.element;this.columnWidth=e&&d(e).outerWidth||this.containerWidth}var i=this.columnWidth+=this.gutter;var n=this.containerWidth+this.gutter;var o=n/i;var r=i-n%i;var s=r&&r<1?"round":"floor";o=Math[s](o);this.cols=Math.max(o,1)};e.prototype.getContainerWidth=function(){var t=this._getOption("fitWidth");var e=t?this.element.parentNode:this.element;var i=d(e);this.containerWidth=i&&i.innerWidth};e.prototype._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth;var i=e&&e<1?"round":"ceil";var n=Math[i](t.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);var o=this._getColGroup(n);var r=Math.min.apply(Math,o);var s=o.indexOf(r);var a={x:this.columnWidth*s,y:r};var h=r+t.size.outerHeight;var l=this.cols+1-o.length;for(var u=0;u<l;u++)this.colYs[s+u]=h;return a};e.prototype._getColGroup=function(t){if(t<2)return this.colYs;var e=[];var i=this.cols+1-t;for(var n=0;n<i;n++){var o=this.colYs.slice(n,n+t);e[n]=Math.max.apply(Math,o)}return e};e.prototype._manageStamp=function(t){var e=d(t);var i=this._getElementOffset(t);var n=this._getOption("originLeft");var o=n?i.left:i.right;var r=o+e.outerWidth;var s=Math.floor(o/this.columnWidth);s=Math.max(0,s);var a=Math.floor(r/this.columnWidth);a-=r%this.columnWidth?0:1;a=Math.min(this.cols-1,a);var h=this._getOption("originTop");var l=(h?i.top:i.bottom)+e.outerHeight;for(var u=s;u<=a;u++)this.colYs[u]=Math.max(l,this.colYs[u])};e.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};if(this._getOption("fitWidth"))t.width=this._getContainerFitWidth();return t};e.prototype._getContainerFitWidth=function(){var t=0;var e=this.cols;while(--e){if(this.colYs[e]!==0)break;t++}return(this.cols-t)*this.columnWidth-this.gutter};e.prototype.needsResizeLayout=function(){var t=this.containerWidth;this.getContainerWidth();return t!=this.containerWidth};return e})?f.apply(n,p):f,window,p=[d,c],void 0===(g="function"==typeof(f=function(t,e){"use strict";var i,t=t.create("masonry"),n=t.prototype,o={_getElementOffset:!0,layout:!0,_getMeasurement:!0};for(i in e.prototype)o[i]||(n[i]=e.prototype[i]);var r=n.measureColumns;n.measureColumns=function(){this.items=this.enviratope.filteredItems,r.call(this)};var s=n._getOption;return n._getOption=function(t){return"fitWidth"==t?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:s.apply(this.enviratope,arguments)},t})?f.apply(n,p):f)||(t.exports=g),window,p=[d],void 0===(g="function"==typeof(f=function(t){"use strict";var e=t.create("fitRows");var i=e.prototype;i._resetLayout=function(){this.x=0;this.y=0;this.maxY=0;this._getMeasurement("gutter","outerWidth")};i._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth+this.gutter;var i=this.enviratope.size.innerWidth+this.gutter;if(this.x!==0&&e+this.x>i){this.x=0;this.y=this.maxY}var n={x:this.x,y:this.y};this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight);this.x+=e;return n};i._getContainerSize=function(){return{height:this.maxY}};return e})?f.apply(n,p):f)||(t.exports=g),window,p=[d],void 0===(g="function"==typeof(f=function(t){"use strict";var e=t.create("vertical",{horizontalAlignment:0});var i=e.prototype;i._resetLayout=function(){this.y=0};i._getItemLayoutPosition=function(t){t.getSize();var e=(this.enviratope.size.innerWidth-t.size.outerWidth)*this.options.horizontalAlignment;var i=this.y;this.y+=t.size.outerHeight;return{x:e,y:i}};i._getContainerSize=function(){return{height:this.y}};return e})?f.apply(n,p):f)||(t.exports=g),y=window,b=function(t,i,e,n,r,o,s){var a=t.jQuery,h=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^\s+|\s+$/g,"")},l=i.create("enviratope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});l.Item=o,l.LayoutMode=s;o=l.prototype;o._create=function(){for(var t in this.itemGUID=0,this._sorters={},this._getSorters(),i.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"],s.modes)this._initLayoutMode(t)},o.reloadItems=function(){this.itemGUID=0,i.prototype.reloadItems.call(this)},o._itemize=function(){for(var t=i.prototype._itemize.apply(this,arguments),e=0;e<t.length;e++)t[e].id=this.itemGUID++;return this._updateItemsSortData(t),t},o._initLayoutMode=function(t){var e=s.modes[t],i=this.options[t]||{};this.options[t]=e.options?r.extend(e.options,i):i,this.modes[t]=new e(this)},o.layout=function(){this._isLayoutInited||!this._getOption("initLayout")?this._layout():this.arrange()},o._layout=function(){var t=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,t),this._isLayoutInited=!0},o.arrange=function(t){this.option(t),this._getIsInstant();t=this._filter(this.items);this.filteredItems=t.matches,this._bindArrangeComplete(),this._isInstant?this._noTransition(this._hideReveal,[t]):this._hideReveal(t),this._sort(),this._layout()},o._init=o.arrange,o._hideReveal=function(t){this.reveal(t.needReveal),this.hide(t.needHide)},o._getIsInstant=function(){var t=this._getOption("layoutInstant"),t=void 0!==t?t:!this._isLayoutInited;return this._isInstant=t},o._bindArrangeComplete=function(){var t,e,i,n=this;function o(){t&&e&&i&&n.dispatchEvent("arrangeComplete",null,[n.filteredItems])}this.once("layoutComplete",function(){t=!0,o()}),this.once("hideComplete",function(){e=!0,o()}),this.once("revealComplete",function(){i=!0,o()})},o._filter=function(t){for(var e=(e=this.options.filter)||"*",i=[],n=[],o=[],r=this._getFilterTest(e),s=0;s<t.length;s++){var a,h=t[s];h.isIgnored||((a=r(h))&&i.push(h),a&&h.isHidden?n.push(h):a||h.isHidden||o.push(h))}return{matches:i,needReveal:n,needHide:o}},o._getFilterTest=function(e){return a&&this.options.isJQueryFiltering?function(t){return a(t.element).is(e)}:"function"==typeof e?function(t){return e(t.element)}:function(t){return n(t.element,e)}},o.updateSortData=function(t){t=t?(t=r.makeArray(t),this.getItems(t)):this.items;this._getSorters(),this._updateItemsSortData(t)},o._getSorters=function(){var t,e=this.options.getSortData;for(t in e){var i=e[t];this._sorters[t]=c(i)}},o._updateItemsSortData=function(t){for(var e=t&&t.length,i=0;e&&i<e;i++)t[i].updateSortData()};var u,d,c=function(t){if("string"!=typeof t)return t;var e=h(t).split(" "),i=e[0],n=i.match(/^\[(.+)\]$/),o=function(e,i){if(e)return function(t){return t.getAttribute(e)};return function(t){t=t.querySelector(i);return t&&t.textContent}}(n&&n[1],i),r=l.sortDataParsers[e[1]];return t=r?function(t){return t&&r(o(t))}:function(t){return t&&o(t)}};function f(t){return u.apply(this,arguments)}function p(t){return d.apply(this,arguments)}l.sortDataParsers={parseInt:(d=function(t){return parseInt(t,10)},p.toString=function(){return d.toString()},p),parseFloat:(u=function(t){return parseFloat(t)},f.toString=function(){return u.toString()},f)},o._sort=function(){var t,s,a,e=this.options.sortBy;e&&(t=[].concat.apply(e,this.sortHistory),s=t,a=this.options.sortAscending,t=function(t,e){for(var i=0;i<s.length;i++){var n=s[i],o=t.sortData[n],r=e.sortData[n];if(r<o||o<r)return(r<o?1:-1)*((void 0!==a[n]?a[n]:a)?1:-1)}return 0},this.filteredItems.sort(t),e!=this.sortHistory[0]&&this.sortHistory.unshift(e))},o._mode=function(){var t=this.options.layoutMode,e=this.modes[t];if(!e)throw new Error("No layout mode: "+t);return e.options=this.options[t],e},o._resetLayout=function(){i.prototype._resetLayout.call(this),this._mode()._resetLayout()},o._getItemLayoutPosition=function(t){return this._mode()._getItemLayoutPosition(t)},o._manageStamp=function(t){this._mode()._manageStamp(t)},o._getContainerSize=function(){return this._mode()._getContainerSize()},o.needsResizeLayout=function(){return this._mode().needsResizeLayout()},o.appended=function(t){t=this.addItems(t);t.length&&(t=this._filterRevealAdded(t),this.filteredItems=this.filteredItems.concat(t))},o.prepended=function(t){var e=this._itemize(t);e.length&&(this._resetLayout(),this._manageStamps(),t=this._filterRevealAdded(e),this.layoutItems(this.filteredItems),this.filteredItems=t.concat(this.filteredItems),this.items=e.concat(this.items))},o._filterRevealAdded=function(t){t=this._filter(t);return this.hide(t.needHide),this.reveal(t.matches),this.layoutItems(t.matches,!0),t.matches},o.insert=function(t){var e=this.addItems(t);if(e.length){for(var i,n=e.length,o=0;o<n;o++)i=e[o],this.element.appendChild(i.element);t=this._filter(e).matches;for(o=0;o<n;o++)e[o].isLayoutInstant=!0;for(this.arrange(),o=0;o<n;o++)delete e[o].isLayoutInstant;this.reveal(t)}};var g=o.remove;return o.remove=function(t){t=r.makeArray(t);var e=this.getItems(t);g.call(this,t);for(var i=e&&e.length,n=0;i&&n<i;n++){var o=e[n];r.removeFrom(this.filteredItems,o)}},o.shuffle=function(){for(var t=0;t<this.items.length;t++)this.items[t].sortData.random=Math.random();this.options.sortBy="random",this._sort(),this._layout()},o._noTransition=function(t,e){var i=this.options.transitionDuration;this.options.transitionDuration=0;e=t.apply(this,e);return this.options.transitionDuration=i,e},o.getFilteredItemElements=function(){return this.filteredItems.map(function(t){return t.element})},l},p=[u,i,r,h,o(15),o(2),o(19),o(21),o(22)],void 0===(g=function(t,e,i,n,o,r){return b(y,t,0,i,n,o,r)}.apply(n,p))||(t.exports=g)},function(t,e,i){var n;window,n=function(t){"use strict";function e(){t.Item.apply(this,arguments)}var i=e.prototype=Object.create(t.Item.prototype),n=i._create;i._create=function(){this.id=this.layout.itemGUID++,n.call(this),this.sortData={}},i.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id,this.sortData.random=Math.random();var t,e=this.layout.options.getSortData,i=this.layout._sorters;for(t in e){var n=i[t];this.sortData[t]=n(this.element,this)}}};var o=i.destroy;return i.destroy=function(){o.apply(this,arguments),this.css({display:""})},e},i=[i(3)],void 0===(n="function"==typeof(n=n)?n.apply(e,i):n)||(t.exports=n)},function(t,e,i){var n,o;n=window,o=function(i,r){"use strict";var l={extend:function(t,e){for(var i in e)t[i]=e[i];return t},modulo:function(t,e){return(t%e+e)%e}},e=Array.prototype.slice;l.makeArray=function(t){return Array.isArray(t)?t:null==t?[]:"object"==typeof t&&"number"==typeof t.length?e.call(t):[t]},l.removeFrom=function(t,e){e=t.indexOf(e);-1!=e&&t.splice(e,1)},l.getParent=function(t,e){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,r(t,e))return t},l.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},l.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},l.filterFindElements=function(t,n){t=l.makeArray(t);var o=[];return t.forEach(function(t){if(t instanceof HTMLElement)if(n){r(t,n)&&o.push(t);for(var e=t.querySelectorAll(n),i=0;i<e.length;i++)o.push(e[i])}else o.push(t)}),o},l.debounceMethod=function(t,e,n){n=n||100;var o=t.prototype[e],r=e+"Timeout";t.prototype[e]=function(){var t=this[r];clearTimeout(t);var e=arguments,i=this;this[r]=setTimeout(function(){o.apply(i,e),delete i[r]},n)}},l.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},l.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var u=i.console;return l.htmlInit=function(a,h){l.docReady(function(){var t=l.toDashed(h),o="data-"+t,e=document.querySelectorAll("["+o+"]"),t=document.querySelectorAll(".js-"+t),t=l.makeArray(e).concat(l.makeArray(t)),r=o+"-options",s=i.jQuery;t.forEach(function(e){var t,i=e.getAttribute(o)||e.getAttribute(r);try{t=i&&JSON.parse(i)}catch(t){return void(u&&u.error("Error parsing "+o+" on "+e.className+": "+t))}var n=new a(e,t);s&&s.data(e,h,n)})})},l},i=[i(17)],void 0===(i=function(t){return o(n,t)}.apply(e,i))||(t.exports=i)},function(t,e,i){var n;!function(){"use strict";void 0===(n="function"==typeof(n=function(){"use strict";var n=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";var e=["webkit","moz","ms","o"];for(var i=0;i<e.length;i++){var n=e[i];var o=n+"MatchesSelector";if(t[o])return o}}();return function t(e,i){return e[n](i)}})?n.call(e,i,e,t):n)||(t.exports=n)}(window)},function(t,e,i){var n;window,n=function(t,e){"use strict";var i=document.documentElement.style,n="string"==typeof i.transition?"transition":"WebkitTransition",o="string"==typeof i.transform?"transform":"WebkitTransform",r={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[n],s={transform:o,transition:n,transitionDuration:n+"Duration",transitionProperty:n+"Property",transitionDelay:n+"Delay"};function a(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}t=a.prototype=Object.create(t.prototype);t.constructor=a,t._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},t.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},t.getSize=function(){this.size=e(this.element)},t.css=function(t){var e,i=this.element.style;for(e in t)i[s[e]||e]=t[e]},t.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),n=t[e?"left":"right"],o=t[i?"top":"bottom"],r=parseFloat(n),s=parseFloat(o),t=this.layout.size;-1!=n.indexOf("%")&&(r=r/100*t.width),-1!=o.indexOf("%")&&(s=s/100*t.height),r=isNaN(r)?0:r,s=isNaN(s)?0:s,r-=e?t.paddingLeft:t.paddingRight,s-=i?t.paddingTop:t.paddingBottom,this.position.x=r,this.position.y=s},t.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),o=i?"paddingLeft":"paddingRight",r=i?"left":"right",i=i?"right":"left",o=this.position.x+t[o];e[r]=this.getXValue(o),e[i]="";o=n?"paddingTop":"paddingBottom",i=n?"top":"bottom",n=n?"bottom":"top",o=this.position.y+t[o];e[i]=this.getYValue(o),e[n]="",this.css(e),this.emitEvent("layout",[this])},t.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},t.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},t._transitionTo=function(t,e){this.getPosition();var i=this.position.x,n=this.position.y,o=t==this.position.x&&e==this.position.y;this.setPosition(t,e),!o||this.isTransitioning?(i=t-i,e-=n,(n={}).transform=this.getTranslate(i,e),this.transition({to:n,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})):this.layoutPosition()},t.getTranslate=function(t,e){return"translate3d("+(t=this.layout._getOption("originLeft")?t:-t)+"px, "+(e=this.layout._getOption("originTop")?e:-e)+"px, 0)"},t.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},t.moveTo=t._transitionTo,t.setPosition=function(t,e){this.position.x=parseFloat(t),this.position.y=parseFloat(e)},t._nonTransition=function(t){for(var e in this.css(t.to),t.isCleaning&&this._removeStyles(t.to),t.onTransitionEnd)t.onTransitionEnd[e].call(this)},t.transition=function(t){if(parseFloat(this.layout.options.transitionDuration)){var e,i=this._transn;for(e in t.onTransitionEnd)i.onEnd[e]=t.onTransitionEnd[e];for(e in t.to)i.ingProperties[e]=!0,t.isCleaning&&(i.clean[e]=!0);t.from&&(this.css(t.from),this.element.offsetHeight,0),this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0}else this._nonTransition(t)};var h="opacity,"+o.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()});t.enableTransition=function(){var t;this.isTransitioning||(t="number"==typeof(t=this.layout.options.transitionDuration)?t+"ms":t,this.css({transitionProperty:h,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(r,this,!1))},t.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},t.onotransitionend=function(t){this.ontransitionend(t)};var l={"-webkit-transform":"transform"};t.ontransitionend=function(t){var e,i;t.target===this.element&&(e=this._transn,i=l[t.propertyName]||t.propertyName,delete e.ingProperties[i],function(t){for(var e in t)return;return 1}(e.ingProperties)&&this.disableTransition(),i in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[i]),i in e.onEnd&&(e.onEnd[i].call(this),delete e.onEnd[i]),this.emitEvent("transitionEnd",[this]))},t.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(r,this,!1),this.isTransitioning=!1},t._removeStyles=function(t){var e,i={};for(e in t)i[e]="";this.css(i)};var u={transitionProperty:"",transitionDuration:"",transitionDelay:""};return t.removeTransitionStyles=function(){this.css(u)},t.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},t.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},t.remove=function(){n&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),this.hide()):this.removeElem()},t.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},t.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},t.getHideRevealTransitionEndProperty=function(t){var e,t=this.layout.options[t];if(t.opacity)return"opacity";for(e in t)return e},t.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},t.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},t.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},a},i=[i(4),i(1)],void 0===(n="function"==typeof(n=n)?n.apply(e,i):n)||(t.exports=n)},function(t,e,i){var n;window,n=function(t,e){"use strict";var i,t=t.create("masonry"),n=t.prototype,o={_getElementOffset:!0,layout:!0,_getMeasurement:!0};for(i in e.prototype)o[i]||(n[i]=e.prototype[i]);var r=n.measureColumns;n.measureColumns=function(){this.items=this.isotope.filteredItems,r.call(this)};var s=n._getOption;return n._getOption=function(t){return"fitWidth"==t?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:s.apply(this.isotope,arguments)},t},i=[i(2),i(20)],void 0===(n="function"==typeof(n=n)?n.apply(e,i):n)||(t.exports=n)},function(t,e,i){var n;window,n=function(t,a){"use strict";var e=t.create("masonry");e.compatOptions.fitWidth="isFitWidth";t=e.prototype;return t._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},t.measureColumns=function(){this.getContainerWidth(),this.columnWidth||(i=(e=this.items[0])&&e.element,this.columnWidth=i&&a(i).outerWidth||this.containerWidth);var t=this.columnWidth+=this.gutter,e=this.containerWidth+this.gutter,i=e/t,t=t-e%t,i=Math[t&&t<1?"round":"floor"](i);this.cols=Math.max(i,1)},t.getContainerWidth=function(){var t=this._getOption("fitWidth")?this.element.parentNode:this.element,t=a(t);this.containerWidth=t&&t.innerWidth},t._getItemLayoutPosition=function(t){t.getSize();for(var e=t.size.outerWidth%this.columnWidth,i=Math[e&&e<1?"round":"ceil"](t.size.outerWidth/this.columnWidth),i=Math.min(i,this.cols),n=this[this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition"](i,t),e={x:this.columnWidth*n.col,y:n.y},o=n.y+t.size.outerHeight,r=i+n.col,s=n.col;s<r;s++)this.colYs[s]=o;return e},t._getTopColPosition=function(t){var e=this._getTopColGroup(t),t=Math.min.apply(Math,e);return{col:e.indexOf(t),y:t}},t._getTopColGroup=function(t){if(t<2)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;n<i;n++)e[n]=this._getColGroupY(n,t);return e},t._getColGroupY=function(t,e){if(e<2)return this.colYs[t];e=this.colYs.slice(t,t+e);return Math.max.apply(Math,e)},t._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols,i=1<t&&i+t>this.cols?0:i,e=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=e?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},t._manageStamp=function(t){var e=a(t),i=this._getElementOffset(t),n=this._getOption("originLeft")?i.left:i.right,t=n+e.outerWidth,n=Math.floor(n/this.columnWidth),n=Math.max(0,n),o=Math.floor(t/this.columnWidth);o-=t%this.columnWidth?0:1,o=Math.min(this.cols-1,o);for(var r=(this._getOption("originTop")?i.top:i.bottom)+e.outerHeight,s=n;s<=o;s++)this.colYs[s]=Math.max(r,this.colYs[s])},t._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},t._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},t.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},e},i=[i(3),i(1)],void 0===(n="function"==typeof(n=n)?n.apply(e,i):n)||(t.exports=n)},function(t,e,i){var n;window,n=function(t){"use strict";var e=t.create("fitRows"),t=e.prototype;return t._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},t._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth+this.gutter,i=this.isotope.size.innerWidth+this.gutter;0!==this.x&&e+this.x>i&&(this.x=0,this.y=this.maxY);i={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight),this.x+=e,i},t._getContainerSize=function(){return{height:this.maxY}},e},i=[i(2)],void 0===(n="function"==typeof(n=n)?n.apply(e,i):n)||(t.exports=n)},function(t,e,i){var n;window,n=function(t){"use strict";var e=t.create("vertical",{horizontalAlignment:0}),t=e.prototype;return t._resetLayout=function(){this.y=0},t._getItemLayoutPosition=function(t){t.getSize();var e=(this.isotope.size.innerWidth-t.size.outerWidth)*this.options.horizontalAlignment,i=this.y;return this.y+=t.size.outerHeight,{x:e,y:i}},t._getContainerSize=function(){return{height:this.y}},e},i=[i(2)],void 0===(n="function"==typeof(n=n)?n.apply(e,i):n)||(t.exports=n)},function(t,e,i){(function(o){function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(){c.hide(),C.onerror=C.onload=null,T&&T.abort(),d.empty()}function l(){if(!1===_.onError(S,x,_))return c.hide(),j=!1;_.titleShow=!1,_.width="auto",_.height="auto",d.html('<p id="envirabox-error">The requested content cannot be loaded.<br />Please try again later.</p>'),D()}function r(){var n,t,e,i,o,r,s=S[x];if(h(),_=u.extend({},u.fn.envirabox.defaults,void 0===u(s).data("envirabox")?_:u(s).data("envirabox")),!1!==(r=_.onStart(S,x,_)))if("object"==a(r)&&(_=u.extend(_,r)),e=_.title||(s.nodeName?u(s).attr("title"):s.title)||"",s.nodeName&&!_.orig&&(_.orig=u(s).children("img:first").length?u(s).children("img:first"):u(s)),""===e&&_.orig&&_.titleFromAlt&&(e=_.orig.attr("alt")),n=_.href||(s.nodeName?u(s).attr("href"):s.href)||null,!/^(?:javascript)/i.test(n)&&"#"!=n||(n=null),"string"==typeof n&&u.envirabox.isUrl(n)&&!u.envirabox.isImage(n)&&(document.getElementById("envirabox-loading").style.visibility="hidden",window.location.href=n),_.type?(t=_.type,n=n||_.content):_.content?t="html":n&&(t=n.match(R)?"image":n.match(O)?"swf":u(s).hasClass("iframe")?"iframe":0===n.indexOf("#")?"inline":"ajax"),t)switch("inline"==t&&(s=n.substr(n.indexOf("#")),t=0<u(s).length?"inline":"ajax"),_.type=t,_.href=n,_.title=e,_.autoDimensions&&("html"==_.type||"inline"==_.type||"ajax"==_.type?(_.width="auto",_.height="auto"):_.autoDimensions=!1),_.modal&&(_.overlayShow=!0,_.hideOnOverlayClick=!1,_.hideOnContentClick=!1,_.enableEscapeButton=!1,_.showCloseButton=!1),_.padding=parseInt(_.padding,10),_.margin=parseInt(_.margin,10),d.css("padding",_.padding+_.margin),u(".envirabox-inline-tmp").unbind("envirabox-cancel").bind("envirabox-change",function(){u(this).replaceWith(f.children())}),t){case"html":d.html(_.content),D();break;case"inline":if(!0===u(s).parent().is("#envirabox-content"))return j=!1,0;u('<div class="envirabox-inline-tmp" />').hide().insertBefore(u(s)).bind("envirabox-cleanup",function(){u(this).replaceWith(f.children())}).bind("envirabox-cancel",function(){u(this).replaceWith(d.children())}),u(s).appendTo(d),D();break;case"image":j=!1,u.envirabox.showActivity(),(C=new Image).onerror=function(){l()},C.onload=function(){j=!0,C.onerror=C.onload=null,H()},C.src=n;break;case"swf":_.scrolling="no",i='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+_.width+'" height="'+_.height+'"><param name="movie" value="'+n+'"></param>',o="",u.each(_.swf,function(t,e){i+='<param name="'+t+'" value="'+e+'"></param>',o+=" "+t+'="'+e+'"'}),i+='<embed src="'+n+'" type="application/x-shockwave-flash" width="'+_.width+'" height="'+_.height+'"'+o+"></embed></object>",d.html(i),D();break;case"ajax":j=!1,u.envirabox.showActivity(),_.ajax.win=_.ajax.success,T=u.ajax(u.extend({},_.ajax,{url:n,data:_.ajax.data||{},error:function(t){0<t.status&&l()},success:function(t,e,i){if(200==("object"==a(i)?i:T).status){if("function"==typeof _.ajax.win){if(!1===(r=_.ajax.win(n,t,e,i)))return void c.hide();"string"!=typeof r&&"object"!=a(r)||(t=r)}d.html(t),D()}}}));break;case"iframe":k()}else l();else j=!1}function s(){return[u(window).width()-2*E.margin,u(window).height()-2*E.margin,u(document).scrollLeft()+E.margin,u(document).scrollTop()+E.margin]}function t(){c.is(":visible")?(u("div",c).css("top",-40*L+"px"),L=(L+1)%12):clearInterval(y)}var u,d,c,i,n,e,f,p,g,m,v,y,b,w,x,_,S,I,E,z,T,C,R,O,L,A,W,j,M,D,H,k,P,F,B,N,Y,q;u=o,_={},S=[],I=x=0,E={},z=[],T=null,C=new Image,R=/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i,O=/[^\.]\.(swf)\s*$/i,A=0,W="",j=!(L=1),M=u.extend(u("<div/>")[0],{prop:0}),D=function(){var t=_.width,e=_.height,t=-1<t.toString().indexOf("%")?parseInt((u(window).width()-2*_.margin)*parseFloat(t)/100,10)+"px":"auto"==t?"auto":t+"px",e=-1<e.toString().indexOf("%")?parseInt((u(window).height()-2*_.margin)*parseFloat(e)/100,10)+"px":"auto"==e?"auto":e+"px";d.wrapInner('<div style="width:'+t+";height:"+e+";overflow: "+("auto"==_.scrolling?"auto":"yes"==_.scrolling?"scroll":"hidden")+';position:relative;"></div>'),_.width=d.width(),_.height=d.height(),k()},H=function(){_.width=C.width,_.height=C.height,u("<img />").attr({id:"envirabox-img",src:C.src,alt:_.title}).appendTo(d),k()},k=function(){var t,e;return c.hide(),n.is(":visible")&&!1===E.onCleanup(z,I,E)?(u.event.trigger("envirabox-cancel"),void(j=!1)):(j=!0,u(f.add(i)).unbind(),u(window).unbind("resize.fb scroll.fb"),u(document).unbind("keydown.fb"),n.is(":visible")&&"outside"!==E.titlePosition&&n.css("height",n.height()),z=S,I=x,(E=_).overlayShow?(i.css({"background-color":E.overlayColor,opacity:E.overlayOpacity,cursor:E.hideOnOverlayClick?"pointer":"auto",height:u(document).height()}),i.is(":visible")||i.show()):i.hide(),w=Y(),P(),n.is(":visible")?(u(p.add(m).add(v)).hide(),t=n.position(),b={top:t.top,left:t.left,width:n.width(),height:n.height()},e=b.width==w.width&&b.height==w.height,void f.fadeTo(E.changeFade,.3,function(){function t(){f.html(d.contents()).fadeTo(E.changeFade,1,F)}u.event.trigger("envirabox-change"),f.empty().removeAttr("filter").css({"border-width":E.padding,width:w.width-2*E.padding,height:_.autoDimensions?"auto":w.height-A-2*E.padding}),e?t():(M.prop=0,u(M).animate({prop:1},{duration:E.changeSpeed,easing:E.easingChange,step:N,complete:t}))})):(n.removeAttr("style"),f.css("border-width",E.padding),"elastic"==E.transitionIn?(b=q(),f.html(d.contents()),n.show(),E.opacity&&(w.opacity=0),M.prop=0,void u(M).animate({prop:1},{duration:E.speedIn,easing:E.easingIn,step:N,complete:F})):("inside"==E.titlePosition&&0<A&&g.show(),f.css({width:w.width-2*E.padding,height:_.autoDimensions?"auto":w.height-A-2*E.padding}).html(d.contents()),void n.css(w).fadeIn("none"==E.transitionIn?0:E.speedIn,F))))},P=function(){var t;if(W=E.title||"",A=0,g.empty().removeAttr("style").removeClass(),!1!==E.titleShow)if((W=u.isFunction(E.titleFormat)?E.titleFormat(W,z,I,E):!(!(t=W)||!t.length)&&("float"==E.titlePosition?'<table id="envirabox-title-float-wrap" cellpadding="0" cellspacing="0"><tr><td id="envirabox-title-float-left"></td><td id="envirabox-title-float-main">'+u.decodeEntities(t)+'</td><td id="envirabox-title-float-right"></td></tr></table>':'<div id="envirabox-title-'+E.titlePosition+'">'+u.decodeEntities(t)+"</div>"))&&""!==W){switch(g.addClass("envirabox-title-"+E.titlePosition).html(W).appendTo("body").show(),E.titlePosition){case"inside":g.css({width:w.width-2*E.padding,marginLeft:E.padding,marginRight:E.padding}),A=g.outerHeight(!0),g.appendTo(e),w.height+=A;break;case"over":g.css({marginLeft:E.padding,width:w.width-2*E.padding,bottom:E.padding}).appendTo(e);break;case"float":g.css("left",-1*parseInt((g.width()-w.width-40)/2,10)).appendTo(n);break;default:g.css({width:w.width-2*E.padding,paddingLeft:E.padding,paddingRight:E.padding}).appendTo(n)}g.hide()}else g.hide();else g.hide()},F=function(){u.support.opacity||(f.get(0).style.removeProperty("filter"),n.get(0).style.removeProperty("filter")),_.autoDimensions&&f.css("height","auto"),n.css("height","auto"),W&&W.length&&g.show(),E.showCloseButton&&p.show(),(E.enableEscapeButton||E.enableKeyboardNav)&&u(document).bind("keydown.fb",function(t){27==t.keyCode&&E.enableEscapeButton?(t.preventDefault(),u.envirabox.close()):37!=t.keyCode&&39!=t.keyCode||!E.enableKeyboardNav||"INPUT"===t.target.tagName||"TEXTAREA"===t.target.tagName||"SELECT"===t.target.tagName||(t.preventDefault(),u.envirabox[37==t.keyCode?"prev":"next"]())}),E.showNavArrows?((E.cyclic&&1<z.length||0!==I)&&m.show(),(E.cyclic&&1<z.length||I!=z.length-1)&&v.show()):(m.hide(),v.hide()),E.hideOnContentClick&&f.bind("click",u.envirabox.close),E.hideOnOverlayClick&&i.bind("click",u.envirabox.close),u(window).bind("resize.fb",u.envirabox.resize),E.centerOnScroll&&u(window).bind("scroll.fb",u.envirabox.center),"iframe"==E.type&&u('<iframe id="envirabox-frame" name="envirabox-frame'+(new Date).getTime()+'" frameborder="0" hspace="0" scrolling="'+_.scrolling+'" src="'+E.href+'"></iframe>').appendTo(f),n.show(),j=!1,u.envirabox.center(),E.onComplete(z,I,E),B()},B=function(){var t;z.length-1>I&&void 0!==(t=z[I+1].href)&&t.match(R)&&((new Image).src=t),0<I&&void 0!==(t=z[I-1].href)&&t.match(R)&&((new Image).src=t)},N=function(t){var e={width:parseInt(b.width+(w.width-b.width)*t,10),height:parseInt(b.height+(w.height-b.height)*t,10),top:parseInt(b.top+(w.top-b.top)*t,10),left:parseInt(b.left+(w.left-b.left)*t,10)};void 0!==w.opacity&&(e.opacity=t<.5?.5:t),n.css(e),f.css({width:e.width-2*E.padding,height:e.height-A*t-2*E.padding})},Y=function(){var t=s(),e={},i=E.autoScale,n=2*E.padding;return-1<E.width.toString().indexOf("%")?e.width=parseInt(t[0]*parseFloat(E.width)/100,10):e.width=E.width+n,-1<E.height.toString().indexOf("%")?e.height=parseInt(t[1]*parseFloat(E.height)/100,10):e.height=E.height+n,i&&(e.width>t[0]||e.height>t[1])&&("image"==_.type||"swf"==_.type?(i=E.width/E.height,e.width>t[0]&&(e.width=t[0],e.height=parseInt((e.width-n)/i+n,10)),e.height>t[1]&&(e.height=t[1],e.width=parseInt((e.height-n)*i+n,10))):(e.width=Math.min(e.width,t[0]),e.height=Math.min(e.height,t[1]))),e.top=parseInt(Math.max(t[3]-20,t[3]+.5*(t[1]-e.height-40)),10),e.left=parseInt(Math.max(t[2]-20,t[2]+.5*(t[0]-e.width-40)),10),e},q=function(){var t,e=!!_.orig&&u(_.orig);return e&&e.length?((t=(e=e).offset()).top+=parseInt(e.css("paddingTop"),10)||0,t.left+=parseInt(e.css("paddingLeft"),10)||0,t.top+=parseInt(e.css("border-top-width"),10)||0,t.left+=parseInt(e.css("border-left-width"),10)||0,t.width=e.width(),t.height=e.height(),{width:t.width+2*E.padding,height:t.height+2*E.padding,top:t.top-E.padding-20,left:t.left-E.padding-20}):(t=s(),{width:2*E.padding,height:2*E.padding,top:parseInt(t[3]+.5*t[1],10),left:parseInt(t[2]+.5*t[0],10)})},u.fn.envirabox=function(t){return u(this).length&&u(this).data("envirabox",u.extend({},t,u.metadata?u(this).metadata():{})).unbind("click.fb").bind("click.fb",function(t){t.preventDefault(),j||(j=!0,u(this).blur(),S=[],x=0,(t=u(this).attr("rel")||"")&&""!=t&&"nofollow"!==t?(S=u("a[rel="+t+"], area[rel="+t+"]"),x=S.index(this)):S.push(this),r())}),this},u.envirabox=function(t){var e;if(!j){if(j=!0,e=void 0!==arguments[1]?arguments[1]:{},S=[],x=parseInt(e.index,10)||0,u.isArray(t)){for(var i=0,n=t.length;i<n;i++)"object"==a(t[i])?u(t[i]).data("envirabox",u.extend({},e,t[i])):t[i]=u({}).data("envirabox",u.extend({content:t[i]},e));S=o.merge(S,t)}else"object"==a(t)?u(t).data("envirabox",u.extend({},e,t)):t=u({}).data("envirabox",u.extend({content:t},e)),S.push(t);(x>S.length||x<0)&&(x=0),r()}},u.envirabox.showActivity=function(){clearInterval(y),c.show(),y=setInterval(t,66)},u.envirabox.hideActivity=function(){c.hide()},u.envirabox.next=function(){return u.envirabox.pos(I+1)},u.envirabox.prev=function(){return u.envirabox.pos(I-1)},u.envirabox.pos=function(t){j||(t=parseInt(t),S=z,-1<t&&t<z.length?(x=t,r()):E.cyclic&&1<z.length&&(x=t>=z.length?0:z.length-1,r()))},u.envirabox.cancel=function(){j||(j=!0,u.event.trigger("envirabox-cancel"),h(),_.onCancel(S,x,_),j=!1)},u.envirabox.close=function(){var t;function e(){i.fadeOut("fast"),g.empty().hide(),n.hide(),u.event.trigger("envirabox-cleanup"),f.empty(),E.onClosed(z,I,E),z=_=[],I=x=0,E=_={},j=!1}j||n.is(":hidden")||(j=!0,E&&!1===E.onCleanup(z,I,E)?j=!1:(h(),u(p.add(m).add(v)).hide(),u(f.add(i)).unbind(),u(window).unbind("resize.fb scroll.fb"),u(document).unbind("keydown.fb"),f.find("iframe").attr("src","about:blank"),"inside"!==E.titlePosition&&g.empty(),n.stop(),"elastic"==E.transitionOut?(b=q(),t=n.position(),w={top:t.top,left:t.left,width:n.width(),height:n.height()},E.opacity&&(w.opacity=1),g.empty().hide(),M.prop=1,u(M).animate({prop:0},{duration:E.speedOut,easing:E.easingOut,step:N,complete:e})):n.fadeOut("none"==E.transitionOut?0:E.speedOut,e)))},u.envirabox.resize=function(){var t;i.is(":visible")&&i.css("height",u(document).height()),w=Y(),P(),g.show(),t=n.position(),(b={top:t.top,left:t.left,width:n.width(),height:n.height()}).width==w.width&&b.height==w.height||(M.prop=0,u(M).animate({prop:1},{duration:E.changeSpeed,easing:E.easingChange,step:N})),f.css({width:w.width-2*E.padding,height:_.autoDimensions?"auto":w.height-A-2*E.padding}),n.css(w),u.envirabox.center(!0)},u.envirabox.center=function(){var t,e;j||(e=!0===arguments[0]?1:0,t=s(),!e&&(n.width()>t[0]||n.height()>t[1])||n.stop().animate({top:parseInt(Math.max(t[3]-20,t[3]+.5*(t[1]-f.height()-40)-E.padding)),left:parseInt(Math.max(t[2]-20,t[2]+.5*(t[0]-f.width()-40)-E.padding))},"number"==typeof arguments[0]?arguments[0]:200))},u.envirabox.init=function(){u("#envirabox-wrap").length||(u("body").append(d=u('<div id="envirabox-tmp"></div>'),c=u('<div id="envirabox-loading"><div></div></div>'),i=u('<div id="envirabox-overlay"></div>'),n=u('<div id="envirabox-wrap"></div>')),(e=u('<div id="envirabox-outer"></div>').append('<div class="envirabox-bg" id="envirabox-bg-n"></div><div class="envirabox-bg" id="envirabox-bg-ne"></div><div class="envirabox-bg" id="envirabox-bg-e"></div><div class="envirabox-bg" id="envirabox-bg-se"></div><div class="envirabox-bg" id="envirabox-bg-s"></div><div class="envirabox-bg" id="envirabox-bg-sw"></div><div class="envirabox-bg" id="envirabox-bg-w"></div><div class="envirabox-bg" id="envirabox-bg-nw"></div>').appendTo(n)).append(f=u('<div id="envirabox-content"></div>'),p=u('<a id="envirabox-close"></a>'),g=u('<div id="envirabox-title"></div>'),m=u('<a href="javascript:;" id="envirabox-left"><span class="fancy-ico" id="envirabox-left-ico"></span></a>'),v=u('<a href="javascript:;" id="envirabox-right"><span class="fancy-ico" id="envirabox-right-ico"></span></a>')),p.click(u.envirabox.close),c.click(u.envirabox.cancel),m.click(function(t){t.preventDefault(),u.envirabox.prev()}),v.click(function(t){t.preventDefault(),u.envirabox.next()}),u.fn.mousewheel&&n.bind("mousewheel.fb",function(t,e){j?t.preventDefault():0!=u(t.target).get(0).clientHeight&&u(t.target).get(0).scrollHeight!==u(t.target).get(0).clientHeight||(t.preventDefault(),u.envirabox[0<e?"prev":"next"]())}),u.support.opacity||n.addClass("envirabox-ie"))},u.envirabox.isUrl=function(t){return t.match(/^(https?):\/\/((?:[a-z0-9.-]|%[0-9A-F]{2}){3,})(?::(\d+))?((?:\/(?:[a-z0-9-._~!$&'()*+,;=:@]|%[0-9A-F]{2})*)*)(?:\?((?:[a-z0-9-._~!$&'()*+,;=:\/?@]|%[0-9A-F]{2})*))?(?:#((?:[a-z0-9-._~!$&'()*+,;=:\/?@]|%[0-9A-F]{2})*))?$/i)},u.envirabox.isImage=function(t){return t.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},u.decodeEntities=function(t){var i={nbsp:" ",amp:"&",quot:'"',lt:"<",gt:">"};return t.replace(/&(nbsp|amp|quot|lt|gt);/g,function(t,e){return i[e]}).replace(/&#(\d+);/gi,function(t,e){e=parseInt(e,10);return String.fromCharCode(e)})},u.fn.envirabox.defaults={padding:10,margin:40,opacity:!1,modal:!1,cyclic:!1,scrolling:"auto",width:560,height:340,autoScale:!0,autoDimensions:!0,centerOnScroll:!1,ajax:{},swf:{wmode:"transparent"},hideOnOverlayClick:!0,hideOnContentClick:!1,overlayShow:!0,overlayOpacity:.9,overlayColor:"#777",titleShow:!0,titlePosition:"float",titleFormat:null,titleFromAlt:!1,transitionIn:"fade",transitionOut:"fade",speedIn:300,speedOut:300,changeSpeed:300,changeFade:"fast",easingIn:"swing",easingOut:"swing",showCloseButton:!0,showNavArrows:!0,enableEscapeButton:!0,enableKeyboardNav:!0,onStart:function(){},onCancel:function(){},onComplete:function(){},onCleanup:function(){},onClosed:function(){},onError:function(){}},u(document).ready(function(){u.envirabox.init()})}).call(this,i(0))},function(t,e,i){(function(m){"undefined"!=typeof envira_lazy_load&&"true"==envira_lazy_load&&(window.responsivelyLazy=function(){function s(t){if(null===o&&(o=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,r=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,null===o))return!1;var e=(n=t.getBoundingClientRect()).top,i=n.left,t=n.width,n=n.height;return t=e<r&&0<e+n&&i<o&&0<i+t}var g=!1,o=null,r=null,a="undefined"!=typeof IntersectionObserver;m.fn.exists=function(){return 0<this.length};function h(a,e){var t=e.getAttribute("data-envira-srcset");if(null!==t)if(0<(t=t.trim()).length){for(var i=[],n=(t=t.split(",")).length,o=0;o<n;o++){var r,s,h=t[o].trim();0!==h.length&&(h=-1===(s=h.lastIndexOf(" "))?(r=h,999998):(r=h.substr(0,s),parseInt(h.substr(s+1,h.length-s-2),10)),s=!1,-1!==r.indexOf(".webp",r.length-5)&&!g||(s=!0),s&&i.push([r,h]))}i.sort(function(t,e){if(t[1]<e[1])return-1;if(t[1]>e[1])return 1;if(t[1]===e[1]){if(-1!==e[0].indexOf(".webp",e[0].length-5))return 1;if(-1!==t[0].indexOf(".webp",t[0].length-5))return-1}return 0}),t=i}else t=[];else t=[];for(var l,u,d,c=a.offsetWidth*window.devicePixelRatio,f=null,n=t.length,o=0;o<n;o++){var p=t[o];if(p[1]>=c){f=p;break}}null===f&&(f=[e.getAttribute("data-envira-src"),999999]),void 0===a.lastSetOption&&(a.lastSetOption=["",0]),a.lastSetOption[1]<f[1]&&(l=0===a.lastSetOption[1],u=f[0],(d=new Image).addEventListener("load",function(){var t;e.setAttribute("srcset",u),e.setAttribute("src",u),!l||null!==(t=a.getAttribute("data-onlazyload"))&&new Function(t).bind(a)()},!1),d.addEventListener("error",function(){a.lastSetOption=["",0]},!1),d.onload=function(){var t,e,i,n,o,r,s;s=(r=(o=(n="envira-lazy"==a.getAttribute("class")&&m(a).not("img")?(s=a.firstElementChild,t=a,e=s.id,i=s.src,m(s).data("envira-gallery-id")):(s=d,e=(t=a).id,i=a.src,m(a).data("envira-gallery-id")),m(a).data("envira-item-id")),this.naturalWidth),this.naturalHeight),null==n&&(n=0),m(document).trigger({type:"envira_image_lazy_load_complete",container:t,image_src:i,image_id:e,item_id:o,gallery_id:n,naturalWidth:r,naturalHeight:s})},d.onerror=function(){},d.src=null,d.src=u,a.lastSetOption=f)}function l(){o=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,r=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}function u(t){var e;void 0!==t&&(e=function(t,e){for(var i=t.length,n=0;n<i;n++){var o=t[n],r=e?o:o.parentNode;!0===s(r)&&h(r,o)}},t&&"string"==typeof t&&("undefined"!==envira_lazy_load_delay&&!1!==envira_lazy_load_initial&&"undefined"!==envira_lazy_load_initial||(envira_lazy_load_delay=0),myVar=setTimeout(function(){m(t+" .envira-lazy > img").exists()?e(document.querySelectorAll(t+" .envira-lazy > img"),!1):m(t+" img.envira-lazy").exists()&&e(document.querySelectorAll(t+" img.envira-lazy"),!0),envira_lazy_load_initial},envira_lazy_load_delay)))}var d;return"srcset"in document.createElement("img")&&void 0!==window.devicePixelRatio&&void 0!==window.addEventListener&&void 0!==document.querySelectorAll&&(l(),(d=new Image).src="data:image/webp;base64,UklGRiQAAABXRUJQVlA4IBgAAAAwAQCdASoCAAEADMDOJaQAA3AA/uuuAAA=",d.onload=d.onerror=function(){var e,o,i,t,r,n;g=2===d.width,a?(e=function(){for(var t=document.querySelectorAll(".envira-lazy"),e=t.length,i=0;i<e;i++){var n=t[i];void 0===n.responsivelyLazyObserverAttached&&(n.responsivelyLazyObserverAttached=!0,o.observe(n))}},o=new IntersectionObserver(function(t){for(var e in t){var i,n=t[e];0<n.intersectionRatio&&("img"!==(i=n.target).tagName.toLowerCase()?null!==(n=i.querySelector("img"))&&h(i,n):h(i,i))}}),u()):(i=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)},t=function t(){i.call(null,t)},r=function(){t()},n=function(){for(var t=document.querySelectorAll(".envira-lazy"),e=t.length,i=0;i<e;i++)for(var n=t[i].parentNode;n&&"html"!==n.tagName.toLowerCase();)void 0===n.responsivelyLazyScrollAttached&&(n.responsivelyLazyScrollAttached=!0,n.addEventListener("scroll",r)),n=n.parentNode});function s(){var t;a&&(t=null),window.addEventListener("resize",function(){l(),a?(window.clearTimeout(t),t=window.setTimeout(function(){u()},300)):r()}),a?(window.addEventListener("load",u),e()):(window.addEventListener("scroll",r),window.addEventListener("load",r),n()),"undefined"!=typeof MutationObserver&&new MutationObserver(function(){a?(e(),u()):(n(),r())}).observe(document.querySelector("body"),{childList:!0,subtree:!0})}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",s):s()}),{run:u,isVisible:s,setGalleryClass:function(t){0}}}())}).call(this,i(0))}]);
1
+ (()=>{var i={461:function(t,e,i){var n,r,a,o,s=i(311);r=(n=s).fn.justifiedGallery,a={},n.fn.enviraJustifiedGallery=function(){var t=r.apply(this,arguments);if(void 0!==(a=t.data("jg.controller")))return a.displayEntryCaption=function(t){var e,i=this.imgFromEntry(t);null!==i&&this.settings.captions?(null===(e=this.captionFromEntry(t))&&(void 0!==(i=i.data("envira-caption"))&&"string"==typeof i&&(i=i.replace("<","&lt;")),this.isValidCaption(i))&&(i=n("<textarea />").html(i).text(),e=n('<div class="caption">'+i+"</div>"),t.append(e),t.data("jg.createdCaption",!0)),null!==e&&(this.settings.cssAnimation||e.stop().fadeTo(0,this.settings.captionSettings.nonVisibleOpacity),this.addCaptionEventsHandlers(t))):this.removeCaptionEventsHandlers(t)},a},o=this,s=[i(311)],void 0!==(i=function(t){return o.VintageJS=(n=function(g,t,e){if(0==g instanceof HTMLImageElement)throw"The element (1st parameter) must be an instance of HTMLImageElement";var i,n,r,a,o,u,c,p,s,l,f=new Image,h=new Image,d=document.createElement("canvas"),v=d.getContext("2d"),m={onStart:function(){},onStop:function(){},onError:function(){},mime:"image/jpeg"},w={curves:!1,screen:!1,desaturate:!1,vignette:!1,lighten:!1,noise:!1,viewFinder:!1,sepia:!1,brightness:!1,contrast:!1};for(l in f.onerror=m.onError,f.onload=function(){u=d.width=f.width,c=d.height=f.height,i()},h.onerror=m.onError,h.onload=function(){v.clearRect(0,0,u,c),v.drawImage(h,0,0,u,c),(window.vjsImageCache||(window.vjsImageCache={}))[s]=v.getImageData(0,0,u,c).data,i()},n=function(t){for(var e in m.onStart(),p={},w)p[e]=t[e]||w[e];a=[],p.viewFinder&&a.push(p.viewFinder),f.src==o?i():f.src=o},i=function(){var t;return 0===a.length?r():(t=a.pop(),s=[u,c,t].join("-"),window.vjsImageCache&&window.vjsImageCache[s]?i():void(h.src=t))},r=function(){var t;v.clearRect(0,0,u,c),v.drawImage(f,0,0,u,c),(p.vignette||p.lighten)&&(e=Math.sqrt(Math.pow(u/2,2)+Math.pow(c/2,2))),p.vignette&&(v.globalCompositeOperation="source-over",(t=v.createRadialGradient(u/2,c/2,0,u/2,c/2,e)).addColorStop(0,"rgba(0,0,0,0)"),t.addColorStop(.5,"rgba(0,0,0,0)"),t.addColorStop(1,["rgba(0,0,0,",p.vignette,")"].join("")),v.fillStyle=t,v.fillRect(0,0,u,c)),p.lighten&&(v.globalCompositeOperation="lighter",(t=v.createRadialGradient(u/2,c/2,0,u/2,c/2,e)).addColorStop(0,["rgba(255,255,255,",p.lighten,")"].join("")),t.addColorStop(.5,"rgba(255,255,255,0)"),t.addColorStop(1,"rgba(0,0,0,0)"),v.fillStyle=t,v.fillRect(0,0,u,c));var e,i,n,r,a,o,s,l,h=(e=v.getImageData(0,0,u,c)).data;p.contrast&&(l=259*(p.contrast+255)/(255*(259-p.contrast))),p.viewFinder&&(s=window.vjsImageCache[[u,c,p.viewFinder].join("-")]);for(var d=u*c;0<=d;--d)for(i=d<<2,p.curves&&(h[i]=p.curves.r[h[i]],h[1+i]=p.curves.g[h[1+i]],h[2+i]=p.curves.b[h[2+i]]),p.contrast&&(h[i]=l*(h[i]-128)+128,h[1+i]=l*(h[1+i]-128)+128,h[2+i]=l*(h[2+i]-128)+128),p.brightness&&(h[i]+=p.brightness,h[1+i]+=p.brightness,h[2+i]+=p.brightness),p.screen&&(h[i]=255-(255-h[i])*(255-p.screen.r*p.screen.a)/255,h[1+i]=255-(255-h[1+i])*(255-p.screen.g*p.screen.a)/255,h[2+i]=255-(255-h[2+i])*(255-p.screen.b*p.screen.a)/255),p.noise&&(o=p.noise-Math.random()*p.noise/2,h[i]+=o,h[1+i]+=o,h[2+i]+=o),p.viewFinder&&(h[i]=h[i]*s[i]/255,h[1+i]=h[1+i]*s[1+i]/255,h[2+i]=h[2+i]*s[2+i]/255),p.sepia&&(o=h[i],a=h[1+i],r=h[2+i],h[i]=.393*o+.769*a+.189*r,h[1+i]=.349*o+.686*a+.168*r,h[2+i]=.272*o+.534*a+.131*r),p.desaturate&&(a=(h[i]+h[1+i]+h[2+i])/3,h[i]+=(a-h[i])*p.desaturate,h[1+i]+=(a-h[1+i])*p.desaturate,h[2+i]+=(a-h[2+i])*p.desaturate),n=2;0<=n;--n)h[i+n]=~~(255<h[i+n]?255:h[i+n]<0?0:h[i+n]);v.putImageData(e,0,0),g.src=v.canvas.toDataURL(m.mime),m.onStop()},o=g.src,t=t||{},m)m[l]=t[l]||m[l];return e&&n(e),{apply:function(){o=g.src},reset:function(){g.src=o},vintage:n}},(i=t).fn.vintage=function(t,e){return this.each(function(){i.data(this,"vintageJS")||i.data(this,"vintageJS",new n(this,t,e))})},n);var i,n}.apply(e,s))&&(t.exports=i)},234:(M,D,F)=>{var s,l,h,i,n,e,d,r,a,o,g,t,u,c,p,f,v,m,w,y,b,x,S,P,I,E,R,j,T,A,O,C,k,z,H,B,N,W=F(311);function L(t){return(L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function $(){h.hide(),x.onerror=x.onload=null,b&&b.abort(),l.empty()}function q(){!1===f.onError(v,p,f)?(h.hide(),j=!1):(f.titleShow=!1,f.width="auto",f.height="auto",l.html('<p id="envirabox-error">The requested content cannot be loaded.<br />Please try again later.</p>'),O())}function _(){var n,t,e,i,r,a,o=v[p];if($(),f=s.extend({},s.fn.envirabox.defaults,void 0===s(o).data("envirabox")?f:s(o).data("envirabox")),!1===(a=f.onStart(v,p,f)))j=!1;else if(e=(f="object"==L(a)?s.extend(f,a):f).title||(o.nodeName?s(o).attr("title"):o.title)||"",o.nodeName&&!f.orig&&(f.orig=s(o).children("img:first").length?s(o).children("img:first"):s(o)),""===e&&f.orig&&f.titleFromAlt&&(e=f.orig.attr("alt")),n=f.href||(o.nodeName?s(o).attr("href"):o.href)||null,"string"==typeof(n=!/^(?:javascript)/i.test(n)&&"#"!=n?n:null)&&s.envirabox.isUrl(n)&&!s.envirabox.isImage(n)&&(document.getElementById("envirabox-loading").style.visibility="hidden",window.location.href=n),f.type?(t=f.type,n=n||f.content):f.content?t="html":n&&(t=n.match(S)?"image":n.match(P)?"swf":s(o).hasClass("iframe")?"iframe":0===n.indexOf("#")?"inline":"ajax"),t)switch("inline"==t&&(o=n.substr(n.indexOf("#")),t=0<s(o).length?"inline":"ajax"),f.type=t,f.href=n,f.title=e,f.autoDimensions&&("html"==f.type||"inline"==f.type||"ajax"==f.type?(f.width="auto",f.height="auto"):f.autoDimensions=!1),f.modal&&(f.overlayShow=!0,f.hideOnOverlayClick=!1,f.hideOnContentClick=!1,f.enableEscapeButton=!1,f.showCloseButton=!1),f.padding=parseInt(f.padding,10),f.margin=parseInt(f.margin,10),l.css("padding",f.padding+f.margin),s(".envirabox-inline-tmp").unbind("envirabox-cancel").bind("envirabox-change",function(){s(this).replaceWith(d.children())}),t){case"html":l.html(f.content),O();break;case"inline":!0===s(o).parent().is("#envirabox-content")?j=!1:(s('<div class="envirabox-inline-tmp" />').hide().insertBefore(s(o)).bind("envirabox-cleanup",function(){s(this).replaceWith(d.children())}).bind("envirabox-cancel",function(){s(this).replaceWith(l.children())}),s(o).appendTo(l),O());break;case"image":j=!1,s.envirabox.showActivity(),(x=new Image).onerror=function(){q()},x.onload=function(){j=!0,x.onerror=x.onload=null,U()},x.src=n;break;case"swf":f.scrolling="no",i='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+f.width+'" height="'+f.height+'"><param name="movie" value="'+n+'"></param>',r="",s.each(f.swf,function(t,e){i+='<param name="'+t+'" value="'+e+'"></param>',r+=" "+t+'="'+e+'"'}),i+='<embed src="'+n+'" type="application/x-shockwave-flash" width="'+f.width+'" height="'+f.height+'"'+r+"></embed></object>",l.html(i),O();break;case"ajax":j=!1,s.envirabox.showActivity(),f.ajax.win=f.ajax.success,b=s.ajax(s.extend({},f.ajax,{url:n,data:f.ajax.data||{},error:function(t,e,i){0<t.status&&q()},success:function(t,e,i){if(200==("object"==L(i)?i:b).status){if("function"==typeof f.ajax.win){if(!1===(a=f.ajax.win(n,t,e,i)))return void h.hide();"string"!=typeof a&&"object"!=L(a)||(t=a)}l.html(t),O()}}}));break;case"iframe":C()}else q()}function U(){f.width=x.width,f.height=x.height,s("<img />").attr({id:"envirabox-img",src:x.src,alt:f.title}).appendTo(l),C()}function V(){var t;y.length-1>m&&void 0!==(t=y[m+1].href)&&t.match(S)&&((new Image).src=t),0<m&&void 0!==(t=y[m-1].href)&&t.match(S)&&((new Image).src=t)}function Y(){return[s(window).width()-2*w.margin,s(window).height()-2*w.margin,s(document).scrollLeft()+w.margin,s(document).scrollTop()+w.margin]}function G(){h.is(":visible")?(s("div",h).css("top",-40*I+"px"),I=(I+1)%12):clearInterval(t)}s=W,f={},v=[],m=p=0,w={},y=[],b=null,x=new Image,S=/\.(jpg|gif|png|bmp|jpeg|webp)(.*)?$/i,P=/[^\.]\.(swf)\s*$/i,E=0,R="",j=!(I=1),T=s.extend(s("<div/>")[0],{prop:0}),A=!1,O=function(){var t=f.width,e=f.height,t=-1<t.toString().indexOf("%")?parseInt((s(window).width()-2*f.margin)*parseFloat(t)/100,10)+"px":"auto"==t?"auto":t+"px",e=-1<e.toString().indexOf("%")?parseInt((s(window).height()-2*f.margin)*parseFloat(e)/100,10)+"px":"auto"==e?"auto":e+"px";l.wrapInner('<div style="width:'+t+";height:"+e+";overflow: "+("auto"==f.scrolling?"auto":"yes"==f.scrolling?"scroll":"hidden")+';position:relative;"></div>'),f.width=l.width(),f.height=l.height(),C()},C=function(){var t,e;h.hide(),n.is(":visible")&&!1===w.onCleanup(y,m,w)?(s.event.trigger("envirabox-cancel"),j=!1):(j=!0,s(d.add(i)).unbind(),s(window).unbind("resize.fb scroll.fb"),s(document).unbind("keydown.fb"),n.is(":visible")&&"outside"!==w.titlePosition&&n.css("height",n.height()),y=v,m=p,(w=f).overlayShow?(i.css({"background-color":w.overlayColor,opacity:w.overlayOpacity,cursor:w.hideOnOverlayClick?"pointer":"auto",height:s(document).height()}),i.is(":visible")||(A&&s("select:not(#envirabox-tmp select)").filter(function(){return"hidden"!==this.style.visibility}).css({visibility:"hidden"}).one("envirabox-cleanup",function(){this.style.visibility="inherit"}),i.show())):i.hide(),c=B(),k(),n.is(":visible")?(s(r.add(o).add(g)).hide(),t=n.position(),u={top:t.top,left:t.left,width:n.width(),height:n.height()},e=u.width==c.width&&u.height==c.height,d.fadeTo(w.changeFade,.3,function(){function t(){d.html(l.contents()).fadeTo(w.changeFade,1,z)}s.event.trigger("envirabox-change"),d.empty().removeAttr("filter").css({"border-width":w.padding,width:c.width-2*w.padding,height:f.autoDimensions?"auto":c.height-E-2*w.padding}),e?t():(T.prop=0,s(T).animate({prop:1},{duration:w.changeSpeed,easing:w.easingChange,step:H,complete:t}))})):(n.removeAttr("style"),d.css("border-width",w.padding),"elastic"==w.transitionIn?(u=N(),d.html(l.contents()),n.show(),w.opacity&&(c.opacity=0),T.prop=0,s(T).animate({prop:1},{duration:w.speedIn,easing:w.easingIn,step:H,complete:z})):("inside"==w.titlePosition&&0<E&&a.show(),d.css({width:c.width-2*w.padding,height:f.autoDimensions?"auto":c.height-E-2*w.padding}).html(l.contents()),n.css(c).fadeIn("none"==w.transitionIn?0:w.speedIn,z))))},k=function(){var t;if((R=w.title||"",E=0,a.empty().removeAttr("style").removeClass(),!1!==w.titleShow)&&((R=s.isFunction(w.titleFormat)?w.titleFormat(R,y,m,w):!(!(t=R)||!t.length)&&("float"==w.titlePosition?'<table id="envirabox-title-float-wrap" cellpadding="0" cellspacing="0"><tr><td id="envirabox-title-float-left"></td><td id="envirabox-title-float-main">'+s.decodeEntities(t)+'</td><td id="envirabox-title-float-right"></td></tr></table>':'<div id="envirabox-title-'+w.titlePosition+'">'+s.decodeEntities(t)+"</div>"))&&""!==R))switch(a.addClass("envirabox-title-"+w.titlePosition).html(R).appendTo("body").show(),w.titlePosition){case"inside":a.css({width:c.width-2*w.padding,marginLeft:w.padding,marginRight:w.padding}),E=a.outerHeight(!0),a.appendTo(e),c.height+=E;break;case"over":a.css({marginLeft:w.padding,width:c.width-2*w.padding,bottom:w.padding}).appendTo(e);break;case"float":a.css("left",-1*parseInt((a.width()-c.width-40)/2,10)).appendTo(n);break;default:a.css({width:c.width-2*w.padding,paddingLeft:w.padding,paddingRight:w.padding}).appendTo(n)}a.hide()},z=function(){s.support.opacity||(d.get(0).style.removeProperty("filter"),n.get(0).style.removeProperty("filter")),f.autoDimensions&&d.css("height","auto"),n.css("height","auto"),R&&R.length&&a.show(),w.showCloseButton&&r.show(),(w.enableEscapeButton||w.enableKeyboardNav)&&s(document).bind("keydown.fb",function(t){27==t.keyCode&&w.enableEscapeButton?(t.preventDefault(),s.envirabox.close()):37!=t.keyCode&&39!=t.keyCode||!w.enableKeyboardNav||"INPUT"===t.target.tagName||"TEXTAREA"===t.target.tagName||"SELECT"===t.target.tagName||(t.preventDefault(),s.envirabox[37==t.keyCode?"prev":"next"]())}),w.showNavArrows?((w.cyclic&&1<y.length||0!==m)&&o.show(),(w.cyclic&&1<y.length||m!=y.length-1)&&g.show()):(o.hide(),g.hide()),w.hideOnContentClick&&d.bind("click",s.envirabox.close),w.hideOnOverlayClick&&i.bind("click",s.envirabox.close),s(window).bind("resize.fb",s.envirabox.resize),w.centerOnScroll&&s(window).bind("scroll.fb",s.envirabox.center),"iframe"==w.type&&s('<iframe id="envirabox-frame" name="envirabox-frame'+(new Date).getTime()+'" frameborder="0" hspace="0" scrolling="'+f.scrolling+'" src="'+w.href+'"></iframe>').appendTo(d),n.show(),j=!1,s.envirabox.center(),w.onComplete(y,m,w),V()},H=function(t){var e={width:parseInt(u.width+(c.width-u.width)*t,10),height:parseInt(u.height+(c.height-u.height)*t,10),top:parseInt(u.top+(c.top-u.top)*t,10),left:parseInt(u.left+(c.left-u.left)*t,10)};void 0!==c.opacity&&(e.opacity=t<.5?.5:t),n.css(e),d.css({width:e.width-2*w.padding,height:e.height-E*t-2*w.padding})},B=function(){var t=Y(),e={},i=w.autoScale,n=2*w.padding;return-1<w.width.toString().indexOf("%")?e.width=parseInt(t[0]*parseFloat(w.width)/100,10):e.width=w.width+n,-1<w.height.toString().indexOf("%")?e.height=parseInt(t[1]*parseFloat(w.height)/100,10):e.height=w.height+n,i&&(e.width>t[0]||e.height>t[1])&&("image"==f.type||"swf"==f.type?(i=w.width/w.height,e.width>t[0]&&(e.width=t[0],e.height=parseInt((e.width-n)/i+n,10)),e.height>t[1]&&(e.height=t[1],e.width=parseInt((e.height-n)*i+n,10))):(e.width=Math.min(e.width,t[0]),e.height=Math.min(e.height,t[1]))),e.top=parseInt(Math.max(t[3]-20,t[3]+.5*(t[1]-e.height-40)),10),e.left=parseInt(Math.max(t[2]-20,t[2]+.5*(t[0]-e.width-40)),10),e},N=function(){var t,e=!!f.orig&&s(f.orig);return e&&e.length?((t=(e=e).offset()).top+=parseInt(e.css("paddingTop"),10)||0,t.left+=parseInt(e.css("paddingLeft"),10)||0,t.top+=parseInt(e.css("border-top-width"),10)||0,t.left+=parseInt(e.css("border-left-width"),10)||0,t.width=e.width(),t.height=e.height(),{width:(e=t).width+2*w.padding,height:e.height+2*w.padding,top:e.top-w.padding-20,left:e.left-w.padding-20}):(t=Y(),{width:2*w.padding,height:2*w.padding,top:parseInt(t[3]+.5*t[1],10),left:parseInt(t[2]+.5*t[0],10)})},s.fn.envirabox=function(t){return s(this).length&&s(this).data("envirabox",s.extend({},t,s.metadata?s(this).metadata():{})).unbind("click.fb").bind("click.fb",function(t){t.preventDefault(),j||(j=!0,s(this).blur(),v=[],p=0,(t=s(this).attr("rel")||"")&&""!=t&&"nofollow"!==t?(v=s("a[rel="+t+"], area[rel="+t+"]"),p=v.index(this)):v.push(this),_())}),this},s.envirabox=function(t){var e;if(!j){if(j=!0,e=void 0!==arguments[1]?arguments[1]:{},v=[],p=parseInt(e.index,10)||0,s.isArray(t)){for(var i=0,n=t.length;i<n;i++)"object"==L(t[i])?s(t[i]).data("envirabox",s.extend({},e,t[i])):t[i]=s({}).data("envirabox",s.extend({content:t[i]},e));v=W.merge(v,t)}else"object"==L(t)?s(t).data("envirabox",s.extend({},e,t)):t=s({}).data("envirabox",s.extend({content:t},e)),v.push(t);(p>v.length||p<0)&&(p=0),_()}},s.envirabox.showActivity=function(){clearInterval(t),h.show(),t=setInterval(G,66)},s.envirabox.hideActivity=function(){h.hide()},s.envirabox.next=function(){return s.envirabox.pos(m+1)},s.envirabox.prev=function(){return s.envirabox.pos(m-1)},s.envirabox.pos=function(t){j||(t=parseInt(t),v=y,-1<t&&t<y.length?(p=t,_()):w.cyclic&&1<y.length&&(p=t>=y.length?0:y.length-1,_()))},s.envirabox.cancel=function(){j||(j=!0,s.event.trigger("envirabox-cancel"),$(),f.onCancel(v,p,f),j=!1)},s.envirabox.close=function(){var t;function e(){i.fadeOut("fast"),a.empty().hide(),n.hide(),s.event.trigger("envirabox-cleanup"),d.empty(),w.onClosed(y,m,w),y=f=[],m=p=0,w=f={},j=!1}j||n.is(":hidden")||(j=!0,w&&!1===w.onCleanup(y,m,w)?j=!1:($(),s(r.add(o).add(g)).hide(),s(d.add(i)).unbind(),s(window).unbind("resize.fb scroll.fb"),s(document).unbind("keydown.fb"),d.find("iframe").attr("src",A&&/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank"),"inside"!==w.titlePosition&&a.empty(),n.stop(),"elastic"==w.transitionOut?(u=N(),t=n.position(),c={top:t.top,left:t.left,width:n.width(),height:n.height()},w.opacity&&(c.opacity=1),a.empty().hide(),T.prop=1,s(T).animate({prop:0},{duration:w.speedOut,easing:w.easingOut,step:H,complete:e})):n.fadeOut("none"==w.transitionOut?0:w.speedOut,e)))},s.envirabox.resize=function(){var t;i.is(":visible")&&i.css("height",s(document).height()),c=B(),k(),a.show(),t=n.position(),(u={top:t.top,left:t.left,width:n.width(),height:n.height()}).width==c.width&&u.height==c.height||(T.prop=0,s(T).animate({prop:1},{duration:w.changeSpeed,easing:w.easingChange,step:H})),d.css({width:c.width-2*w.padding,height:f.autoDimensions?"auto":c.height-E-2*w.padding}),n.css(c),s.envirabox.center(!0)},s.envirabox.center=function(){var t,e;j||(e=!0===arguments[0]?1:0,t=Y(),!e&&(n.width()>t[0]||n.height()>t[1]))||n.stop().animate({top:parseInt(Math.max(t[3]-20,t[3]+.5*(t[1]-d.height()-40)-w.padding)),left:parseInt(Math.max(t[2]-20,t[2]+.5*(t[0]-d.width()-40)-w.padding))},"number"==typeof arguments[0]?arguments[0]:200)},s.envirabox.init=function(){s("#envirabox-wrap").length||(s("body").append(l=s('<div id="envirabox-tmp"></div>'),h=s('<div id="envirabox-loading"><div></div></div>'),i=s('<div id="envirabox-overlay"></div>'),n=s('<div id="envirabox-wrap"></div>')),(e=s('<div id="envirabox-outer"></div>').append('<div class="envirabox-bg" id="envirabox-bg-n"></div><div class="envirabox-bg" id="envirabox-bg-ne"></div><div class="envirabox-bg" id="envirabox-bg-e"></div><div class="envirabox-bg" id="envirabox-bg-se"></div><div class="envirabox-bg" id="envirabox-bg-s"></div><div class="envirabox-bg" id="envirabox-bg-sw"></div><div class="envirabox-bg" id="envirabox-bg-w"></div><div class="envirabox-bg" id="envirabox-bg-nw"></div>').appendTo(n)).append(d=s('<div id="envirabox-content"></div>'),r=s('<a id="envirabox-close"></a>'),a=s('<div id="envirabox-title"></div>'),o=s('<a href="javascript:;" id="envirabox-left"><span class="fancy-ico" id="envirabox-left-ico"></span></a>'),g=s('<a href="javascript:;" id="envirabox-right"><span class="fancy-ico" id="envirabox-right-ico"></span></a>')),r.click(s.envirabox.close),h.click(s.envirabox.cancel),o.click(function(t){t.preventDefault(),s.envirabox.prev()}),g.click(function(t){t.preventDefault(),s.envirabox.next()}),s.fn.mousewheel&&n.bind("mousewheel.fb",function(t,e){j?t.preventDefault():0!=s(t.target).get(0).clientHeight&&s(t.target).get(0).scrollHeight!==s(t.target).get(0).clientHeight||(t.preventDefault(),s.envirabox[0<e?"prev":"next"]())}),s.support.opacity||n.addClass("envirabox-ie"),A&&(h.addClass("envirabox-ie6"),n.addClass("envirabox-ie6"),s('<iframe id="envirabox-hide-sel-frame" src="'+(/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank")+'" scrolling="no" border="0" frameborder="0" tabindex="-1"></iframe>').prependTo(e)))},s.envirabox.isUrl=function(t){return t.match(/^(https?):\/\/((?:[a-z0-9.-]|%[0-9A-F]{2}){3,})(?::(\d+))?((?:\/(?:[a-z0-9-._~!$&'()*+,;=:@]|%[0-9A-F]{2})*)*)(?:\?((?:[a-z0-9-._~!$&'()*+,;=:\/?@]|%[0-9A-F]{2})*))?(?:#((?:[a-z0-9-._~!$&'()*+,;=:\/?@]|%[0-9A-F]{2})*))?$/i)},s.envirabox.isImage=function(t){return t.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},s.decodeEntities=function(t){var i={nbsp:" ",amp:"&",quot:'"',lt:"<",gt:">"};return t.replace(/&(nbsp|amp|quot|lt|gt);/g,function(t,e){return i[e]}).replace(/&#(\d+);/gi,function(t,e){e=parseInt(e,10);return String.fromCharCode(e)})},s.fn.envirabox.defaults={padding:10,margin:40,opacity:!1,modal:!1,cyclic:!1,scrolling:"auto",width:560,height:340,autoScale:!0,autoDimensions:!0,centerOnScroll:!1,ajax:{},swf:{wmode:"transparent"},hideOnOverlayClick:!0,hideOnContentClick:!1,overlayShow:!0,overlayOpacity:.9,overlayColor:"#777",titleShow:!0,titlePosition:"float",titleFormat:null,titleFromAlt:!1,transitionIn:"fade",transitionOut:"fade",speedIn:300,speedOut:300,changeSpeed:300,changeFade:"fast",easingIn:"swing",easingOut:"swing",showCloseButton:!0,showNavArrows:!0,enableEscapeButton:!0,enableKeyboardNav:!0,onStart:function(){},onCancel:function(){},onComplete:function(){},onCleanup:function(){},onClosed:function(){},onError:function(){}},s(document).ready(function(){s.envirabox.init()})},161:function(t,n,e){var r,i,a,o;"function"==typeof(i=function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(!t||!e)return;var i=this._events=this._events||{};var n=i[t]=i[t]||[];if(n.indexOf(e)==-1)n.push(e);return this},e.once=function(t,e){if(!t||!e)return;this.on(t,e);var i=this._onceEvents=this._onceEvents||{};var n=i[t]=i[t]||[];n[e]=true;return this},e.off=function(t,e){var i=this._events&&this._events[t];if(!i||!i.length)return;var n=i.indexOf(e);if(n!=-1)i.splice(n,1);return this},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(!i||!i.length)return;var n=0;var r=i[n];e=e||[];var a=this._onceEvents&&this._onceEvents[t];while(r){var o=a&&a[r];if(o){this.off(t,r);delete a[r]}r.apply(this,e);n+=o?0:1;r=i[n]}return this},t})?(a={id:"ev-emitter/ev-emitter",exports:{},loaded:!1},r=i.call(a.exports,e,a.exports,a),a.loaded=!0,void 0===r&&(r=a.exports)):r=i,function(e,i){"use strict";o=[r],void 0!==(o=function(t){return i(e,t)}.apply(n,o))&&(t.exports=o)}(window,function(e,t){var n=e.jQuery,r=e.console;function a(t,e){for(var i in e)t[i]=e[i];return t}function o(t,e,i){if(!(this instanceof o))return new o(t,e,i);"string"==typeof t&&(t=document.querySelectorAll(t)),this.elements=function(t){var e=[];if(Array.isArray(t))e=t;else if("number"==typeof t.length)for(var i=0;i<t.length;i++)e.push(t[i]);else e.push(t);return e}(t),this.options=a({},this.options),"function"==typeof e?i=e:a(this.options,e),i&&this.on("always",i),this.getImages(),n&&(this.jqDeferred=new n.Deferred),setTimeout(function(){this.check()}.bind(this))}(o.prototype=Object.create(t.prototype)).options={},o.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},o.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&s[e]){for(var i=t.querySelectorAll("img"),n=0;n<i.length;n++){var r=i[n];this.addImage(r)}if("string"==typeof this.options.background)for(var a=t.querySelectorAll(this.options.background),n=0;n<a.length;n++){var o=a[n];this.addElementBackgroundImages(o)}}};var s={1:!0,9:!0,11:!0};function i(t){this.img=t}function l(t,e){this.url=t,this.element=e,this.img=new Image}return o.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(e.backgroundImage);null!==n;){var r=n&&n[2];r&&this.addBackground(r,t),n=i.exec(e.backgroundImage)}},o.prototype.addImage=function(t){t=new i(t);this.images.push(t)},o.prototype.addBackground=function(t,e){t=new l(t,e);this.images.push(t)},o.prototype.check=function(){var n=this;function e(t,e,i){setTimeout(function(){n.progress(t,e,i)})}this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?this.images.forEach(function(t){t.once("progress",e),t.check()}):this.complete()},o.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&r&&r.log("progress: "+i,t,e)},o.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred&&(t=this.hasAnyBroken?"reject":"resolve",this.jqDeferred[t](this))},(i.prototype=Object.create(t.prototype)).check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.src)},i.prototype.getIsImageComplete=function(){return this.img.complete&&void 0!==this.img.naturalWidth},i.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},i.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},i.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},i.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},(l.prototype=Object.create(i.prototype)).check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},l.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},l.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},(o.makeJQueryPlugin=function(t){(t=t||e.jQuery)&&((n=t).fn.enviraImagesLoaded=function(t,e){return new o(this,t,e).jqDeferred.promise(n(this))})})(),o})},138:(t,e,i)=>{var d,n,i=i(311);function r(){return d("body").height()>d(window).height()}function a(t,e){this.settings=e,this.checkSettings(),this.imgAnalyzerTimeout=null,this.entries=null,this.buildingRow={entriesBuff:[],width:0,height:0,aspectRatio:0},this.lastAnalyzedIndex=-1,this.yield={every:2,flushed:0},this.border=0<=e.border?e.border:e.margins,this.maxRowHeight=this.retrieveMaxRowHeight(),this.suffixRanges=this.retrieveSuffixRanges(),this.offY=this.border,this.rows=0,this.spinner={phase:0,timeSlot:150,$el:d('<div class="spinner"><span></span><span></span><span></span></div>'),intervalId:null},this.checkWidthIntervalId=null,this.galleryWidth=t.width(),this.$gallery=t}d=i,a.prototype.getSuffix=function(t,e){for(var i=e<t?t:e,n=0;n<this.suffixRanges.length;n++)if(i<=this.suffixRanges[n])return this.settings.sizeRangeSuffixes[this.suffixRanges[n]];return this.settings.sizeRangeSuffixes[this.suffixRanges[n-1]]},a.prototype.removeSuffix=function(t,e){return t.substring(0,t.length-e.length)},a.prototype.endsWith=function(t,e){return-1!==t.indexOf(e,t.length-e.length)},a.prototype.getUsedSuffix=function(t){for(var e in this.settings.sizeRangeSuffixes)if(this.settings.sizeRangeSuffixes.hasOwnProperty(e)&&0!==this.settings.sizeRangeSuffixes[e].length&&this.endsWith(t,this.settings.sizeRangeSuffixes[e]))return this.settings.sizeRangeSuffixes[e];return""},a.prototype.newSrc=function(t,e,i){var n,r;return this.settings.thumbnailPath?r=this.settings.thumbnailPath(t,e,i):(n=null!==(n=t.match(this.settings.extension))?n[0]:"",r=t.replace(this.settings.extension,""),r=this.removeSuffix(r,this.getUsedSuffix(r)),r+=this.getSuffix(e,i)+n),r},a.prototype.showImg=function(t,e){this.settings.cssAnimation?(t.addClass("entry-visible"),e&&e()):t.stop().fadeTo(this.settings.imagesAnimationDuration,1,e)},a.prototype.extractImgSrcFromImage=function(t){var e=void 0!==t.data("safe-src")?t.data("safe-src"):t.attr("src");return t.data("jg.originalSrc",e),e},a.prototype.imgFromEntry=function(t){var e=t.find("> img");return 0===(e=0===e.length?t.find("> a > img"):e).length?null:e},a.prototype.captionFromEntry=function(t){t=t.find("> .caption");return 0===t.length?null:t},a.prototype.displayEntry=function(t,e,i,n,r,a){t.width(n),t.height(a),t.css("top",i),t.css("left",e);var o,s,l,h=this.imgFromEntry(t);null!==h?(h.css("width",n),h.css("height",r),h.css("margin-left",-n/2),h.css("margin-top",-r/2),o=h.attr("src"),s=this.newSrc(o,n,r),h.one("error",function(){h.attr("src",h.data("jg.originalSrc"))}),l=function(){o!==s&&h.attr("src",s)},"skipped"===t.data("jg.loaded")?this.onImageEvent(o,d.proxy(function(){this.showImg(t,l),t.data("jg.loaded",!0)},this)):this.showImg(t,l)):this.showImg(t),this.displayEntryCaption(t)},a.prototype.displayEntryCaption=function(t){var e,i=this.imgFromEntry(t);null!==i&&this.settings.captions?(null===(e=this.captionFromEntry(t))&&(i=i.attr("alt"),this.isValidCaption(i)||(i=t.attr("title")),this.isValidCaption(i))&&(e=d('<div class="caption">'+i+"</div>"),t.append(e),t.data("jg.createdCaption",!0)),null!==e&&(this.settings.cssAnimation||e.stop().fadeTo(0,this.settings.captionSettings.nonVisibleOpacity),this.addCaptionEventsHandlers(t))):this.removeCaptionEventsHandlers(t)},a.prototype.isValidCaption=function(t){return void 0!==t&&0<t.length},a.prototype.onEntryMouseEnterForCaption=function(t){t=this.captionFromEntry(d(t.currentTarget));this.settings.cssAnimation?t.addClass("caption-visible").removeClass("caption-hidden"):t.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.visibleOpacity)},a.prototype.onEntryMouseLeaveForCaption=function(t){t=this.captionFromEntry(d(t.currentTarget));this.settings.cssAnimation?t.removeClass("caption-visible").removeClass("caption-hidden"):t.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.nonVisibleOpacity)},a.prototype.addCaptionEventsHandlers=function(t){var e;void 0===t.data("jg.captionMouseEvents")&&(e={mouseenter:d.proxy(this.onEntryMouseEnterForCaption,this),mouseleave:d.proxy(this.onEntryMouseLeaveForCaption,this)},t.on("mouseenter",void 0,void 0,e.mouseenter),t.on("mouseleave",void 0,void 0,e.mouseleave),t.data("jg.captionMouseEvents",e))},a.prototype.removeCaptionEventsHandlers=function(t){var e=t.data("jg.captionMouseEvents");void 0!==e&&(t.off("mouseenter",void 0,e.mouseenter),t.off("mouseleave",void 0,e.mouseleave),t.removeData("jg.captionMouseEvents"))},a.prototype.prepareBuildingRow=function(t){var e,i,n,r,a=!0,o=0,s=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*this.settings.margins,l=s/this.buildingRow.aspectRatio,h=this.settings.rowHeight,d=this.buildingRow.width/s>this.settings.justifyThreshold;if(t&&"hide"===this.settings.lastRow&&!d){for(e=0;e<this.buildingRow.entriesBuff.length;e++)i=this.buildingRow.entriesBuff[e],this.settings.cssAnimation?i.removeClass("entry-visible"):i.stop().fadeTo(0,0);return-1}for(t&&!d&&"justify"!==this.settings.lastRow&&"hide"!==this.settings.lastRow&&(a=!1,0<this.rows)&&(a=(h=(this.offY-this.border-this.settings.margins*this.rows)/this.rows)*this.buildingRow.aspectRatio/s>this.settings.justifyThreshold),e=0;e<this.buildingRow.entriesBuff.length;e++)r=(i=this.buildingRow.entriesBuff[e]).data("jg.width")/i.data("jg.height"),r=a?(n=e===this.buildingRow.entriesBuff.length-1?s:l*r,l):(n=h*r,h),s-=Math.round(n),i.data("jg.jwidth",Math.round(n)),i.data("jg.jheight",Math.ceil(r)),(0===e||r<o)&&(o=r);return this.settings.fixedHeight&&o>this.settings.rowHeight&&(o=this.settings.rowHeight),this.buildingRow.height=o,a},a.prototype.clearBuildingRow=function(){this.buildingRow.entriesBuff=[],this.buildingRow.aspectRatio=0,this.buildingRow.width=0},n=!(a.prototype.flushRow=function(t){var e,i=this.settings,n=this.border,r=this.prepareBuildingRow(t);if(t&&"hide"===i.lastRow&&-1===r)this.clearBuildingRow();else{if(this.maxRowHeight.isPercentage?this.maxRowHeight.value*i.rowHeight<this.buildingRow.height&&(this.buildingRow.height=this.maxRowHeight.value*i.rowHeight):0<this.maxRowHeight.value&&this.maxRowHeight.value<this.buildingRow.height&&(this.buildingRow.height=this.maxRowHeight.value),"center"===i.lastRow||"right"===i.lastRow){for(var a=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*i.margins,o=0;o<this.buildingRow.entriesBuff.length;o++)a-=(e=this.buildingRow.entriesBuff[o]).data("jg.jwidth");"center"===i.lastRow?n+=a/2:"right"===i.lastRow&&(n+=a)}for(o=0;o<this.buildingRow.entriesBuff.length;o++)e=this.buildingRow.entriesBuff[o],this.displayEntry(e,n,this.offY,e.data("jg.jwidth"),e.data("jg.jheight"),this.buildingRow.height),n+=e.data("jg.jwidth")+i.margins;this.galleryHeightToSet=this.offY+this.buildingRow.height+this.border,this.$gallery.height(this.galleryHeightToSet+this.getSpinnerHeight()),(!t||this.buildingRow.height<=i.rowHeight&&r)&&(this.offY+=this.buildingRow.height+i.margins,this.rows+=1,this.clearBuildingRow(),this.$gallery.trigger("jg.rowflush"))}}),a.prototype.checkWidth=function(){this.checkWidthIntervalId=setInterval(d.proxy(function(){var t=parseFloat(this.$gallery.width());r()===n?Math.abs(t-this.galleryWidth)>this.settings.refreshSensitivity&&(this.galleryWidth=t,this.rewind(),this.startImgAnalyzer(!0)):(n=r(),this.galleryWidth=t)},this),this.settings.refreshTime)},a.prototype.isSpinnerActive=function(){return null!==this.spinner.intervalId},a.prototype.getSpinnerHeight=function(){return this.spinner.$el.innerHeight()},a.prototype.stopLoadingSpinnerAnimation=function(){clearInterval(this.spinner.intervalId),this.spinner.intervalId=null,this.$gallery.height(this.$gallery.height()-this.getSpinnerHeight()),this.spinner.$el.detach()},a.prototype.startLoadingSpinnerAnimation=function(){var t=this.spinner,e=t.$el.find("span");clearInterval(t.intervalId),this.$gallery.append(t.$el),this.$gallery.height(this.offY+this.buildingRow.height+this.getSpinnerHeight()),t.intervalId=setInterval(function(){t.phase<e.length?e.eq(t.phase).fadeTo(t.timeSlot,1):e.eq(t.phase-e.length).fadeTo(t.timeSlot,0),t.phase=(t.phase+1)%(2*e.length)},t.timeSlot)},a.prototype.rewind=function(){this.lastAnalyzedIndex=-1,this.offY=this.border,this.rows=0,this.clearBuildingRow()},a.prototype.updateEntries=function(t){return this.entries=this.$gallery.find(this.settings.selector).toArray(),0!==this.entries.length&&(this.settings.filter?this.modifyEntries(this.filterArray,t):this.modifyEntries(this.resetFilters,t),d.isFunction(this.settings.sort)?this.modifyEntries(this.sortArray,t):this.settings.randomize&&this.modifyEntries(this.shuffleArray,t),!0)},a.prototype.insertToGallery=function(t){var e=this;d.each(t,function(){d(this).appendTo(e.$gallery)})},a.prototype.shuffleArray=function(t){for(var e,i,n=t.length-1;0<n;n--)e=Math.floor(Math.random()*(n+1)),i=t[n],t[n]=t[e],t[e]=i;return this.insertToGallery(t),t},a.prototype.sortArray=function(t){return t.sort(this.settings.sort),this.insertToGallery(t),t},a.prototype.resetFilters=function(t){for(var e=0;e<t.length;e++)d(t[e]).removeClass("jg-filtered");return t},a.prototype.filterArray=function(t){var e=this.settings;return"string"===d.type(e.filter)?t.filter(function(t){t=d(t);return t.is(e.filter)?(t.removeClass("jg-filtered"),!0):(t.addClass("jg-filtered"),!1)}):d.isFunction(e.filter)?t.filter(e.filter):void 0},a.prototype.modifyEntries=function(t,e){var i=e?this.entries.splice(this.lastAnalyzedIndex+1,this.entries.length-this.lastAnalyzedIndex-1):this.entries,i=t.call(this,i);this.entries=e?this.entries.concat(i):i},a.prototype.destroy=function(){clearInterval(this.checkWidthIntervalId),d.each(this.entries,d.proxy(function(t,e){var e=d(e),i=(e.css("width",""),e.css("height",""),e.css("top",""),e.css("left",""),e.data("jg.loaded",void 0),e.removeClass("jg-entry"),this.imgFromEntry(e)),i=(i.css("width",""),i.css("height",""),i.css("margin-left",""),i.css("margin-top",""),i.attr("src",i.data("jg.originalSrc")),i.data("jg.originalSrc",void 0),this.removeCaptionEventsHandlers(e),this.captionFromEntry(e));e.data("jg.createdCaption")?(e.data("jg.createdCaption",void 0),null!==i&&i.remove()):null!==i&&i.fadeTo(0,1)},this)),this.$gallery.css("height",""),this.$gallery.removeClass("justified-gallery"),this.$gallery.data("jg.controller",void 0)},a.prototype.analyzeImages=function(t){for(var e=this.lastAnalyzedIndex+1;e<this.entries.length;e++){var i=d(this.entries[e]);if(!0===i.data("jg.loaded")||"skipped"===i.data("jg.loaded")){var n=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*this.settings.margins,r=i.data("jg.width")/i.data("jg.height");if(n/(this.buildingRow.aspectRatio+r)<this.settings.rowHeight&&(this.flushRow(!1),++this.yield.flushed>=this.yield.every))return void this.startImgAnalyzer(t);this.buildingRow.entriesBuff.push(i),this.buildingRow.aspectRatio+=r,this.buildingRow.width+=r*this.settings.rowHeight,this.lastAnalyzedIndex=e}else if("error"!==i.data("jg.loaded"))return}0<this.buildingRow.entriesBuff.length&&this.flushRow(!0),this.isSpinnerActive()&&this.stopLoadingSpinnerAnimation(),this.stopImgAnalyzerStarter(),this.$gallery.trigger(t?"jg.resize":"jg.complete"),this.$gallery.height(this.galleryHeightToSet)},a.prototype.stopImgAnalyzerStarter=function(){this.yield.flushed=0,null!==this.imgAnalyzerTimeout&&clearTimeout(this.imgAnalyzerTimeout)},a.prototype.startImgAnalyzer=function(t){var e=this;this.stopImgAnalyzerStarter(),this.imgAnalyzerTimeout=setTimeout(function(){e.analyzeImages(t)},.001)},a.prototype.onImageEvent=function(t,e,i){var n,r;(e||i)&&(n=new Image,r=d(n),e&&r.one("load",function(){r.off("load error"),e(n)}),i&&r.one("error",function(){r.off("load error"),i(n)}),n.src=t)},a.prototype.init=function(){var a=!1,o=!1,s=this;d.each(this.entries,function(t,e){var i=d(e),e=s.imgFromEntry(i);if(i.addClass("jg-entry"),!0!==i.data("jg.loaded")&&"skipped"!==i.data("jg.loaded"))if(null!==s.settings.rel&&i.attr("rel",s.settings.rel),null!==s.settings.target&&i.attr("target",s.settings.target),null!==e){var n=s.extractImgSrcFromImage(e);if(e.attr("src",n),!1===s.settings.waitThumbnailsLoad){var r=parseFloat(e.attr("width")),e=parseFloat(e.attr("height"));if(!isNaN(r)&&!isNaN(e))return i.data("jg.width",r),i.data("jg.height",e),i.data("jg.loaded","skipped"),o=!0,s.startImgAnalyzer(!1),!0}i.data("jg.loaded",!1),a=!0,s.isSpinnerActive()||s.startLoadingSpinnerAnimation(),s.onImageEvent(n,function(t){i.data("jg.width",i.find(".envira-gallery-image").data("envira-width")),i.data("jg.height",i.find(".envira-gallery-image").data("envira-height")),i.data("jg.loaded",!0),s.startImgAnalyzer(!1)},function(){i.data("jg.loaded","error"),s.startImgAnalyzer(!1)})}else i.data("jg.loaded",!0),i.data("jg.width",i.width()|parseFloat(i.css("width"))|1),i.data("jg.height",i.height()|parseFloat(i.css("height"))|1)}),a||o||this.startImgAnalyzer(!1),this.checkWidth()},a.prototype.checkOrConvertNumber=function(t,e){if("string"===d.type(t[e])&&(t[e]=parseFloat(t[e])),"number"!==d.type(t[e]))throw e+" must be a number";if(isNaN(t[e]))throw"invalid number for "+e},a.prototype.checkSizeRangesSuffixes=function(){if("object"!==d.type(this.settings.sizeRangeSuffixes))throw"sizeRangeSuffixes must be defined and must be an object";var t,e=[];for(t in this.settings.sizeRangeSuffixes)this.settings.sizeRangeSuffixes.hasOwnProperty(t)&&e.push(t);for(var i={0:""},n=0;n<e.length;n++)if("string"===d.type(e[n]))try{i[parseInt(e[n].replace(/^[a-z]+/,""),10)]=this.settings.sizeRangeSuffixes[e[n]]}catch(t){throw"sizeRangeSuffixes keys must contains correct numbers ("+t+")"}else i[e[n]]=this.settings.sizeRangeSuffixes[e[n]];this.settings.sizeRangeSuffixes=i},a.prototype.retrieveMaxRowHeight=function(){var t={};if("string"===d.type(this.settings.maxRowHeight))this.settings.maxRowHeight.match(/^[0-9]+%$/)?(t.value=parseFloat(this.settings.maxRowHeight.match(/^([0-9]+)%$/)[1])/100,t.isPercentage=!1):(t.value=parseFloat(this.settings.maxRowHeight),t.isPercentage=!0);else{if("number"!==d.type(this.settings.maxRowHeight))throw"maxRowHeight must be a number or a percentage";t.value=this.settings.maxRowHeight,t.isPercentage=!1}if(isNaN(t.value))throw"invalid number for maxRowHeight";return t.isPercentage?t.value<100&&(t.value=100):0<t.value&&t.value<this.settings.rowHeight&&(t.value=this.settings.rowHeight),t},a.prototype.checkSettings=function(){this.checkSizeRangesSuffixes(),this.checkOrConvertNumber(this.settings,"rowHeight"),this.checkOrConvertNumber(this.settings,"margins"),this.checkOrConvertNumber(this.settings,"border");var t=["justify","nojustify","left","center","right","hide"];if(-1===t.indexOf(this.settings.lastRow))throw"lastRow must be one of: "+t.join(", ");if(this.checkOrConvertNumber(this.settings,"justifyThreshold"),this.settings.justifyThreshold<0||1<this.settings.justifyThreshold)throw"justifyThreshold must be in the interval [0,1]";if("boolean"!==d.type(this.settings.cssAnimation))throw"cssAnimation must be a boolean";if("boolean"!==d.type(this.settings.captions))throw"captions must be a boolean";if(this.checkOrConvertNumber(this.settings.captionSettings,"animationDuration"),this.checkOrConvertNumber(this.settings.captionSettings,"visibleOpacity"),this.settings.captionSettings.visibleOpacity<0||1<this.settings.captionSettings.visibleOpacity)throw"captionSettings.visibleOpacity must be in the interval [0, 1]";if(this.checkOrConvertNumber(this.settings.captionSettings,"nonVisibleOpacity"),this.settings.captionSettings.nonVisibleOpacity<0||1<this.settings.captionSettings.nonVisibleOpacity)throw"captionSettings.nonVisibleOpacity must be in the interval [0, 1]";if("boolean"!==d.type(this.settings.fixedHeight))throw"fixedHeight must be a boolean";if(this.checkOrConvertNumber(this.settings,"imagesAnimationDuration"),this.checkOrConvertNumber(this.settings,"refreshTime"),this.checkOrConvertNumber(this.settings,"refreshSensitivity"),"boolean"!==d.type(this.settings.randomize))throw"randomize must be a boolean";if("string"!==d.type(this.settings.selector))throw"selector must be a string";if(!1!==this.settings.sort&&!d.isFunction(this.settings.sort))throw"sort must be false or a comparison function";if(!1!==this.settings.filter&&!d.isFunction(this.settings.filter)&&"string"!==d.type(this.settings.filter))throw"filter must be false, a string or a filter function"},a.prototype.retrieveSuffixRanges=function(){var t,e=[];for(t in this.settings.sizeRangeSuffixes)this.settings.sizeRangeSuffixes.hasOwnProperty(t)&&e.push(parseInt(t,10));return e.sort(function(t,e){return e<t?1:t<e?-1:0}),e},a.prototype.updateSettings=function(t){this.settings=d.extend({},this.settings,t),this.checkSettings(),this.border=0<=this.settings.border?this.settings.border:this.settings.margins,this.maxRowHeight=this.retrieveMaxRowHeight(),this.suffixRanges=this.retrieveSuffixRanges()},d.fn.justifiedGallery=function(n){return this.each(function(t,e){var e=d(e),i=(e.addClass("justified-gallery"),e.data("jg.controller"));if(void 0===i){if(null!=n&&"object"!==d.type(n)){if("destroy"===n)return;throw"The argument must be an object"}i=new a(e,d.extend({},d.fn.justifiedGallery.defaults,n)),e.data("jg.controller",i)}else if("norewind"!==n){if("destroy"===n)return void i.destroy();i.updateSettings(n),i.rewind()}i.updateEntries("norewind"===n)&&i.init()})},d.fn.justifiedGallery.defaults={sizeRangeSuffixes:{},thumbnailPath:void 0,rowHeight:120,maxRowHeight:-1,margins:1,border:-1,lastRow:"nojustify",justifyThreshold:.9,fixedHeight:!1,waitThumbnailsLoad:!0,captions:!0,cssAnimation:!1,imagesAnimationDuration:500,captionSettings:{animationDuration:500,visibleOpacity:.7,nonVisibleOpacity:0},rel:null,target:null,extension:/\.[^.\\/]+$/,refreshTime:200,refreshSensitivity:0,randomize:!1,sort:!1,filter:!1,selector:"> a, > div:not(.spinner)"}},655:(t,e,i)=>{var n;i=[i(311)],void 0!==(e="function"==typeof(n=function(u){var t=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],i="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],c=Array.prototype.slice,p,f;if(u.event.fixHooks)for(var e=t.length;e;)u.event.fixHooks[t[--e]]=u.event.mouseHooks;var v=u.event.special.mousewheel={version:"3.1.12",setup:function t(){if(this.addEventListener)for(var e=i.length;e;)this.addEventListener(i[--e],n,false);else this.onmousewheel=n;u.data(this,"mousewheel-line-height",v.getLineHeight(this));u.data(this,"mousewheel-page-height",v.getPageHeight(this))},teardown:function t(){if(this.removeEventListener)for(var e=i.length;e;)this.removeEventListener(i[--e],n,false);else this.onmousewheel=null;u.removeData(this,"mousewheel-line-height");u.removeData(this,"mousewheel-page-height")},getLineHeight:function t(e){var i=u(e),n=i["offsetParent"in u.fn?"offsetParent":"parent"]();if(!n.length)n=u("body");return parseInt(n.css("fontSize"),10)||parseInt(i.css("fontSize"),10)||16},getPageHeight:function t(e){return u(e).height()},settings:{adjustOldDeltas:true,normalizeOffset:true}};function n(t){var e=t||window.event,i=c.call(arguments,1),n=0,r=0,a=0,o=0,s=0,l=0;t=u.event.fix(e);t.type="mousewheel";if("detail"in e)a=e.detail*-1;if("wheelDelta"in e)a=e.wheelDelta;if("wheelDeltaY"in e)a=e.wheelDeltaY;if("wheelDeltaX"in e)r=e.wheelDeltaX*-1;if("axis"in e&&e.axis===e.HORIZONTAL_AXIS){r=a*-1;a=0}n=a===0?r:a;if("deltaY"in e){a=e.deltaY*-1;n=a}if("deltaX"in e){r=e.deltaX;if(a===0)n=r*-1}if(a===0&&r===0)return;if(e.deltaMode===1){var h=u.data(this,"mousewheel-line-height");n*=h;a*=h;r*=h}else if(e.deltaMode===2){var d=u.data(this,"mousewheel-page-height");n*=d;a*=d;r*=d}o=Math.max(Math.abs(a),Math.abs(r));if(!f||o<f){f=o;if(w(e,o))f/=40}if(w(e,o)){n/=40;r/=40;a/=40}n=Math[n>=1?"floor":"ceil"](n/f);r=Math[r>=1?"floor":"ceil"](r/f);a=Math[a>=1?"floor":"ceil"](a/f);if(v.settings.normalizeOffset&&this.getBoundingClientRect){var g=this.getBoundingClientRect();s=t.clientX-g.left;l=t.clientY-g.top}t.deltaX=r;t.deltaY=a;t.deltaFactor=f;t.offsetX=s;t.offsetY=l;t.deltaMode=0;i.unshift(t,n,r,a);if(p)clearTimeout(p);p=setTimeout(m,200);return(u.event.dispatch||u.event.handle).apply(this,i)}function m(){f=null}function w(t,e){return v.settings.adjustOldDeltas&&t.type==="mousewheel"&&e%120===0}u.fn.extend({mousewheel:function t(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function t(e){return this.unbind("mousewheel",e)}})})?n.apply(e,i):n)&&(t.exports=e)},439:(t,e,i)=>{var v=i(311);"undefined"!=typeof envira_lazy_load&&"true"==envira_lazy_load&&(window.responsivelyLazy=function(){function o(t){var e,i,n;return(null!==r||(r=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,a=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,null!==r))&&(e=(t=t.getBoundingClientRect()).top,i=t.left,n=t.width,t=t.height,e<a)&&0<e+t&&i<r&&0<i+n}function s(s,e){if(null!==(t=e.getAttribute("data-envira-srcset")))if(0<(t=t.trim()).length){for(var t,i=[],n=(t=t.split(",")).length,r=0;r<n;r++){var a,o,l=t[r].trim();0!==l.length&&(l=-1===(o=l.lastIndexOf(" "))?(a=l,999998):(a=l.substr(0,o),parseInt(l.substr(o+1,l.length-o-2),10)),o=!1,o=-1===a.indexOf(".webp",a.length-5)||f?!0:o)&&i.push([a,l])}i.sort(function(t,e){if(t[1]<e[1])return-1;if(t[1]>e[1])return 1;if(t[1]===e[1]){if(-1!==e[0].indexOf(".webp",e[0].length-5))return 1;if(-1!==t[0].indexOf(".webp",t[0].length-5))return-1}return 0}),t=i}else t=[];else t=[];for(var h,d,g,u=s.offsetWidth*window.devicePixelRatio,c=null,n=t.length,r=0;r<n;r++){var p=t[r];if(p[1]>=u){c=p;break}}null===c&&(c=[e.getAttribute("data-envira-src"),999999]),void 0===s.lastSetOption&&(s.lastSetOption=["",0]),s.lastSetOption[1]<c[1]&&(h=0===s.lastSetOption[1],d=c[0],(g=new Image).addEventListener("load",function(){var t;e.setAttribute("srcset",d),e.setAttribute("src",d),h&&null!==(t=s.getAttribute("data-onlazyload"))&&new Function(t).bind(s)()},!1),g.addEventListener("error",function(){s.lastSetOption=["",0]},!1),g.onload=function(){var t,e,i,n,r,a,o;o=(a=(r=(n=("envira-lazy"==s.getAttribute("class")&&v(s).not("img")?(n=s.firstElementChild,t=s,e=n.id,i=n.src,v(n)):(n=g,e=(t=s).id,i=s.src,v(s))).data("envira-gallery-id"),v(s).data("envira-item-id")),this.naturalWidth),this.naturalHeight),null==n&&(n=0),v(document).trigger({type:"envira_image_lazy_load_complete",container:t,image_src:i,image_id:e,item_id:r,gallery_id:n,naturalWidth:a,naturalHeight:o})},g.onerror=function(){},g.src=null,g.src=d,s.lastSetOption=c)}function l(){r=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,a=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}function h(t){var e;void 0!==t&&(e=function(t,e){for(var i=t.length,n=0;n<i;n++){var r=t[n],a=e?r:r.parentNode;!0===o(a)&&s(a,r)}},t)&&"string"==typeof t&&("undefined"!==envira_lazy_load_delay&&!1!==envira_lazy_load_initial&&"undefined"!==envira_lazy_load_initial||(envira_lazy_load_delay=0),myVar=setTimeout(function(){v(t+" .envira-lazy > img").exists()?e(document.querySelectorAll(t+" .envira-lazy > img"),!1):v(t+" img.envira-lazy").exists()&&e(document.querySelectorAll(t+" img.envira-lazy"),!0),envira_lazy_load_initial},envira_lazy_load_delay))}var f,d,r=null,a=null,g="undefined"!=typeof IntersectionObserver;v.fn.exists=function(){return 0<this.length};return"srcset"in document.createElement("img")&&void 0!==window.devicePixelRatio&&void 0!==window.addEventListener&&void 0!==document.querySelectorAll&&(l(),(d=new Image).src="data:image/webp;base64,UklGRiQAAABXRUJQVlA4IBgAAAAwAQCdASoCAAEADMDOJaQAA3AA/uuuAAA=",d.onload=d.onerror=function(){function t(){var t;g&&(t=null),window.addEventListener("resize",function(){l(),g?(window.clearTimeout(t),t=window.setTimeout(function(){h()},300)):a()}),(g?(window.addEventListener("load",h),e):(window.addEventListener("scroll",a),window.addEventListener("load",a),o))(),"undefined"!=typeof MutationObserver&&new MutationObserver(function(){(g?(e(),h):(o(),a))()}).observe(document.querySelector("body"),{childList:!0,subtree:!0})}var e,r,i,n,a,o;f=2===d.width,g?(e=function(){for(var t=document.querySelectorAll(".envira-lazy"),e=t.length,i=0;i<e;i++){var n=t[i];void 0===n.responsivelyLazyObserverAttached&&(n.responsivelyLazyObserverAttached=!0,r.observe(n))}},r=new IntersectionObserver(function(t){for(var e in t){var i,e=t[e];0<e.intersectionRatio&&("img"!==(e=e.target).tagName.toLowerCase()?null!==(i=e.querySelector("img"))&&s(e,i):s(e,e))}}),h()):(i=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)},n=function t(){i.call(null,t)},a=function(){n()},o=function(){for(var t=document.querySelectorAll(".envira-lazy"),e=t.length,i=0;i<e;i++)for(var n=t[i].parentNode;n&&"html"!==n.tagName.toLowerCase();)void 0===n.responsivelyLazyScrollAttached&&(n.responsivelyLazyScrollAttached=!0,n.addEventListener("scroll",a)),n=n.parentNode});"loading"===document.readyState?document.addEventListener("DOMContentLoaded",t):t()}),{run:h,isVisible:o,setGalleryClass:function(t){0}}}())},514:(t,e,i)=>{i(311)(document).ready(function(t){"ontouchstart"in document.documentElement&&t("body").addClass("envira-touch")})},579:(t,e,i)=>{var n,r,a=i(311);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}r=function(at){"use strict";var ot="left",st="right",lt="up",ht="down",dt="in",gt="out",ut="none",ct="auto",pt="swipe",ft="pinch",vt="tap",mt="doubletap",wt="longtap",yt="horizontal",bt="vertical",xt="all",St=10,It="start",Et="move",Rt="end",jt="cancel",Tt="ontouchstart"in window,At=window.navigator.msPointerEnabled&&!window.navigator.pointerEnabled,Ot=window.navigator.pointerEnabled||window.navigator.msPointerEnabled,Ct="TouchSwipe";function n(M,l){var t=Tt||Ot||!l.fallbackToMouseEvents,e=t?Ot?At?"MSPointerDown":"pointerdown":"touchstart":"mousedown",i=t?Ot?At?"MSPointerMove":"pointermove":"touchmove":"mousemove",n=t?Ot?At?"MSPointerUp":"pointerup":"touchend":"mouseup",r=t?null:"mouseleave",a=Ot?At?"MSPointerCancel":"pointercancel":"touchcancel",h=0,d=null,g=0,u=0,c=0,p=1,f=0,v=0,m=null,o=at(M),w="start",y=0,b=null,s=0,x=0,S=0,I=0,E=0,R=null,j=null;try{o.bind(e,T),o.bind(a,O)}catch(t){at.error("events not supported "+e+","+a+" on jQuery.swipe")}function T(t){var e,i,n;if(!0!==o.data(Ct+"_intouch")&&!(0<at(t.target).closest(l.excludedElements,o).length))return e=t.originalEvent||t,n=Tt?e.touches[0]:e,w=It,Tt?y=e.touches.length:t.preventDefault(),v=d=null,p=1,f=c=u=g=h=0,b=function(){for(var t=[],e=0;e<=5;e++)t.push({start:{x:0,y:0},end:{x:0,y:0},identifier:0});return t}(),(t={})[ot]=L(ot),t[st]=L(st),t[lt]=L(lt),t[ht]=L(ht),m=t,K(),!Tt||y===l.fingers||l.fingers===xt||z()?(tt(0,n),s=_(),2==y&&(tt(1,e.touches[1]),u=c=rt(b[0].start,b[1].start)),(l.swipeStatus||l.pinchStatus)&&(i=C(e,w))):i=!1,!1===i?(C(e,w=jt),i):(l.hold&&(j=setTimeout(at.proxy(function(){o.trigger("hold",[e.target]),l.hold&&(i=l.hold.call(o,e,e.target))},this),l.longTapThreshold)),H(!0),null)}function A(t){var e=t.originalEvent||t;if(w!==Rt&&w!==jt&&!Z()){var i,n=et(Tt?e.touches[0]:e);if(x=_(),Tt&&(y=e.touches.length),l.hold&&clearTimeout(j),w=Et,2==y&&(0==u?(tt(1,e.touches[1]),u=c=rt(b[0].start,b[1].start)):(et(e.touches[1]),c=rt(b[0].end,b[1].end),b[0].end,b[1].end,v=p<1?gt:dt),p=(c/u*1).toFixed(2),f=Math.abs(u-c)),y===l.fingers||l.fingers===xt||!Tt||z()){d=function(t,e){t=function(t,e){var i=t.x-e.x,e=e.y-t.y,t=Math.atan2(e,i),e=Math.round(180*t/Math.PI);e<0&&(e=360-Math.abs(e));return e}(t,e);return t<=45&&0<=t||t<=360&&315<=t?ot:135<=t&&t<=225?st:45<t&&t<135?ht:lt}(n.start,n.end);var r,a,o=t,t=d;if(l.allowPageScroll===ut||z())o.preventDefault();else{var s=l.allowPageScroll===ct;switch(t){case ot:(l.swipeLeft&&s||!s&&l.allowPageScroll!=yt)&&o.preventDefault();break;case st:(l.swipeRight&&s||!s&&l.allowPageScroll!=yt)&&o.preventDefault();break;case lt:(l.swipeUp&&s||!s&&l.allowPageScroll!=bt)&&o.preventDefault();break;case ht:(l.swipeDown&&s||!s&&l.allowPageScroll!=bt)&&o.preventDefault()}}t=n.start,r=n.end,h=Math.round(Math.sqrt(Math.pow(r.x-t.x,2)+Math.pow(r.y-t.y,2))),g=nt(),r=d,t=h,t=Math.max(t,it(r)),m[r].distance=t,(l.swipeStatus||l.pinchStatus)&&(i=C(e,w)),l.triggerOnTouchEnd&&!l.triggerOnTouchLeave||(r=!0,l.triggerOnTouchLeave&&(a={left:(a=(t=at(t=this)).offset()).left,right:a.left+t.outerWidth(),top:a.top,bottom:a.top+t.outerHeight()},t=n.end,n=a,r=t.x>n.left&&t.x<n.right&&t.y>n.top&&t.y<n.bottom),!l.triggerOnTouchEnd&&r?w=B(Et):l.triggerOnTouchLeave&&!r&&(w=B(Rt)),w!=jt&&w!=Rt)||C(e,w)}else C(e,w=jt);!1===i&&C(e,w=jt)}}function D(t){var e=t.originalEvent;return Tt&&0<e.touches.length?(S=_(),I=event.touches.length+1,!0):(Z()&&(y=I),x=_(),g=nt(),W()||!N()?C(e,w=jt):l.triggerOnTouchEnd||0==l.triggerOnTouchEnd&&w===Et?(t.preventDefault(),C(e,w=Rt)):!l.triggerOnTouchEnd&&X()?k(e,w=Rt,vt):w===Et&&C(e,w=jt),H(!1),null)}function O(){c=u=s=x=y=0,K(),H(!(p=1))}function F(t){t=t.originalEvent;l.triggerOnTouchLeave&&C(t,w=B(Rt))}function P(){o.unbind(e,T),o.unbind(a,O),o.unbind(i,A),o.unbind(n,D),r&&o.unbind(r,F),H(!1)}function B(t){var e=t,i=$(),n=N(),r=W();return!i||r?e=jt:!n||t!=Et||l.triggerOnTouchEnd&&!l.triggerOnTouchLeave?!n&&t==Rt&&l.triggerOnTouchLeave&&(e=jt):e=Rt,e}function C(t,e){var i=void 0;return U()&&V()||V()?i=k(t,e,pt):(q()&&z()||z())&&!1!==i&&(i=k(t,e,ft)),J()&&Q()&&!1!==i?i=k(t,e,mt):g>l.longTapThreshold&&h<St&&l.longTap&&!1!==i?i=k(t,e,wt):1!==y&&Tt||!(isNaN(h)||h<l.threshold)||!X()||!1===i||(i=k(t,e,vt)),e===jt&&O(),e!==Rt||Tt&&0!=t.touches.length||O(),i}function k(t,e,i){var n=void 0;if(i==pt){if(o.trigger("swipeStatus",[e,d||null,h||0,g||0,y,b]),l.swipeStatus&&!1===(n=l.swipeStatus.call(o,t,e,d||null,h||0,g||0,y,b)))return!1;if(e==Rt&&U()){if(o.trigger("swipe",[d,h,g,y,b]),l.swipe&&!1===(n=l.swipe.call(o,t,d,h,g,y,b)))return!1;switch(d){case ot:o.trigger("swipeLeft",[d,h,g,y,b]),l.swipeLeft&&(n=l.swipeLeft.call(o,t,d,h,g,y,b));break;case st:o.trigger("swipeRight",[d,h,g,y,b]),l.swipeRight&&(n=l.swipeRight.call(o,t,d,h,g,y,b));break;case lt:o.trigger("swipeUp",[d,h,g,y,b]),l.swipeUp&&(n=l.swipeUp.call(o,t,d,h,g,y,b));break;case ht:o.trigger("swipeDown",[d,h,g,y,b]),l.swipeDown&&(n=l.swipeDown.call(o,t,d,h,g,y,b))}}}if(i==ft){if(o.trigger("pinchStatus",[e,v||null,f||0,g||0,y,p,b]),l.pinchStatus&&!1===(n=l.pinchStatus.call(o,t,e,v||null,f||0,g||0,y,p,b)))return!1;if(e==Rt&&q())switch(v){case dt:o.trigger("pinchIn",[v||null,f||0,g||0,y,p,b]),l.pinchIn&&(n=l.pinchIn.call(o,t,v||null,f||0,g||0,y,p,b));break;case gt:o.trigger("pinchOut",[v||null,f||0,g||0,y,p,b]),l.pinchOut&&(n=l.pinchOut.call(o,t,v||null,f||0,g||0,y,p,b))}}return i==vt?e!==jt&&e!==Rt||(clearTimeout(R),clearTimeout(j),Q()&&!J()?(E=_(),R=setTimeout(at.proxy(function(){E=null,o.trigger("tap",[t.target]),l.tap&&(n=l.tap.call(o,t,t.target))},this),l.doubleTapThreshold)):(E=null,o.trigger("tap",[t.target]),l.tap&&(n=l.tap.call(o,t,t.target)))):i==mt?e!==jt&&e!==Rt||(clearTimeout(R),E=null,o.trigger("doubletap",[t.target]),l.doubleTap&&(n=l.doubleTap.call(o,t,t.target))):i!=wt||e!==jt&&e!==Rt||(clearTimeout(R),E=null,o.trigger("longtap",[t.target]),l.longTap&&(n=l.longTap.call(o,t,t.target))),n}function N(){var t=!0;return t=null!==l.threshold?h>=l.threshold:t}function W(){var t=!1;return t=null!==l.cancelThreshold&&null!==d?it(d)-h>=l.cancelThreshold:t}function $(){var t=!(l.maxTimeThreshold&&g>=l.maxTimeThreshold);return t}function q(){var t=Y(),e=G(),i=null===l.pinchThreshold||f>=l.pinchThreshold;return t&&e&&i}function z(){return l.pinchStatus||l.pinchIn||l.pinchOut}function U(){var t=$(),e=N(),i=Y(),n=G();return!W()&&n&&i&&e&&t}function V(){return l.swipe||l.swipeStatus||l.swipeLeft||l.swipeRight||l.swipeUp||l.swipeDown}function Y(){return y===l.fingers||l.fingers===xt||!Tt}function G(){return 0!==b[0].end.x}function X(){return l.tap}function Q(){return!!l.doubleTap}function J(){var t;return null!=E&&(t=_(),Q())&&t-E<=l.doubleTapThreshold}function K(){I=S=0}function Z(){var t=!1;return t=S&&_()-S<=l.fingerReleaseThreshold?!0:t}function H(t){!0===t?(o.bind(i,A),o.bind(n,D),r&&o.bind(r,F)):(o.unbind(i,A,!1),o.unbind(n,D,!1),r&&o.unbind(r,F,!1)),o.data(Ct+"_intouch",!0===t)}function tt(t,e){var i=void 0!==e.identifier?e.identifier:0;b[t].identifier=i,b[t].start.x=b[t].end.x=e.pageX||e.clientX,b[t].start.y=b[t].end.y=e.pageY||e.clientY,b[t]}function et(t){var e=function(t){for(var e=0;e<b.length;e++)if(b[e].identifier==t)return b[e]}(void 0!==t.identifier?t.identifier:0);return e.end.x=t.pageX||t.clientX,e.end.y=t.pageY||t.clientY,e}function it(t){if(m[t])return m[t].distance}function L(t){return{direction:t,distance:0}}function nt(){return x-s}function rt(t,e){var i=Math.abs(t.x-e.x),t=Math.abs(t.y-e.y);return Math.round(Math.sqrt(i*i+t*t))}function _(){return(new Date).getTime()}this.enable=function(){return o.bind(e,T),o.bind(a,O),o},this.disable=function(){return P(),o},this.destroy=function(){P(),o.data(Ct,null),o=null},this.option=function(t,e){if(void 0!==l[t]){if(void 0===e)return l[t];l[t]=e}else at.error("Option "+t+" does not exist on jQuery.swipe.options");return null}}at.fn.swipe=function(t){var e=at(this),i=e.data(Ct);if(i&&"string"==typeof t){if(i[t])return i[t].apply(this,Array.prototype.slice.call(arguments,1));at.error("Method "+t+" does not exist on jQuery.swipe")}else if(!(i||"object"!==o(t)&&t))return function(i){!i||void 0!==i.allowPageScroll||void 0===i.swipe&&void 0===i.swipeStatus||(i.allowPageScroll=ut);void 0!==i.click&&void 0===i.tap&&(i.tap=i.click);i=i||{};return i=at.extend({},at.fn.swipe.defaults,i),this.each(function(){var t,e=at(this);e.data(Ct)||(t=new n(this,i),e.data(Ct,t))})}.apply(this,arguments);return e},at.fn.swipe.defaults={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:!0,triggerOnTouchLeave:!1,allowPageScroll:"auto",fallbackToMouseEvents:!0,excludedElements:"label, button, input, select, textarea, a, .noSwipe"},at.fn.swipe.phases={PHASE_START:It,PHASE_MOVE:Et,PHASE_END:Rt,PHASE_CANCEL:jt},at.fn.swipe.directions={LEFT:ot,RIGHT:st,UP:lt,DOWN:ht,IN:dt,OUT:gt},at.fn.swipe.pageScroll={NONE:ut,HORIZONTAL:yt,VERTICAL:bt,AUTO:ct},at.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,ALL:xt}},i.amdO.jQuery?(i=[i(311)],void 0!==(e="function"==typeof(n=r)?n.apply(e,i):n)&&(t.exports=e)):r(a)},311:t=>{"use strict";t.exports=jQuery}},n={};function r(t){var e=n[t];return void 0!==e||(e=n[t]={exports:{}},i[t].call(e.exports,e,e.exports,r)),e.exports}r.amdO={},r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var i in e)r.o(e,i)&&!r.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);(()=>{"use strict";r(138),r(461),r(514),r(579),r(655),r(161),r(234),r(439);r(311)(document).ready(function(n){var r;n("body").on("click",'div.envirabox-title a[href*="#"]:not([href="#"])',function(t){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname)return n.envirabox.close(),!1}),n(document).on("envira_image_lazy_load_complete",function(t){var e,i;void 0!==t&&void 0!==t.image_id&&null!==t.image_id&&(r=0<n("#envira-gallery-wrap-"+t.gallery_id).find("#"+t.video_id+" iframe").length?n("#envira-gallery-wrap-"+t.gallery_id).find("#"+t.video_id+" iframe"):0<n("#envira-gallery-wrap-"+t.gallery_id).find("#"+t.video_id+" video").length?n("#envira-gallery-wrap-"+t.gallery_id).find("#"+t.video_id+" video"):n("#envira-gallery-wrap-"+t.gallery_id).find("img#"+t.image_id),n("#envira-gallery-wrap-"+t.gallery_id).find("div.envira-gallery-public").hasClass("envira-gallery-0-columns")?n(r).closest("div.envira-gallery-item-inner").find("div.envira-gallery-position-overlay").delay(100).show():(n(r).closest("div.envira-gallery-item-inner").find("div.envira-gallery-position-overlay").delay(100).show(),i=n(r).closest("div.envira-gallery-item-inner").find(".envira-lazy").width(),e=t.naturalHeight/t.naturalWidth,i=100*((i=t.naturalHeight/i)<e?i:e),n(r).closest("div.envira-gallery-item-inner").find(".envira-lazy").css("padding-bottom",i+"%"),n(r).closest("div.envira-gallery-item-inner").find(".envira-lazy").data("envira-changed","true"),void 0!==window["envira_container_"+t.gallery_id]&&window["envira_container_"+t.gallery_id].on("layoutComplete",function(t,e){n(r).closest("div.envira-gallery-item-inner").find("span.envira-title").delay(1e3).css("visibility","visible"),n(r).closest("div.envira-gallery-item-inner").find("span.envira-caption").delay(1e3).css("visibility","visible")}),n("#envira-gallery-"+t.gallery_id).enviratope("layout")))})})})()})();
assets/js/min/welcome-min.js ADDED
@@ -0,0 +1 @@
 
1
+ (()=>{var n={311:a=>{"use strict";a.exports=jQuery}},t={};function r(a){var e=t[a];return void 0!==e||(e=t[a]={exports:{}},n[a](e,e.exports,r)),e.exports}var s,a;a=r(311),(s=a)(function(){s(".lionsher-partners").on("click",".lionsher-partners-install",function(a){a.preventDefault();var r=s(this),a=r.data("url"),e=r.data("basename"),l=s(this).parent().parent().find(".lionsher-partner-status"),e={url:envira_gallery_welcome.ajax,type:"post",async:!0,cache:!1,dataType:"json",data:{action:"envira_install_partner",nonce:envira_gallery_welcome.install_nonce,basename:e,download_url:a},success:function(a){r.text(envira_gallery_welcome.activate).removeClass("lionsher-partners-install").addClass("lionsher-partners-activate"),s(l).text(envira_gallery_welcome.inactive);var e=s(l),n=e.html().split(/\s+/),t=n.pop(),n=n.join(" ");e.html([n," <span>",t,"</span>"].join(""))},error:function(a,e,n){console.log(n)}};s.ajax(e)}),s(".lionsher-partners").on("click",".lionsher-partners-activate",function(a){a.preventDefault();var r=s(this),a=r.data("url"),e=r.data("basename"),l=s(this).parent().parent().find(".lionsher-partner-status"),e={url:envira_gallery_welcome.ajax,type:"post",async:!0,cache:!1,dataType:"json",data:{action:"envira_activate_partner",nonce:envira_gallery_welcome.activate_nonce,basename:e,download_url:a},success:function(a){r.text(envira_gallery_welcome.deactivate).removeClass("lionsher-partners-activate").addClass("lionsher-partners-deactivate"),s(l).text(envira_gallery_welcome.active);var e=s(l),n=e.html().split(/\s+/),t=n.pop(),n=n.join(" ");e.html([n," <span>",t,"</span>"].join("")),location.reload(!0)},error:function(a,e,n){console.log(n)}};s.ajax(e)}),s(".lionsher-partners").on("click",".lionsher-partners-deactivate",function(a){a.preventDefault();var r=s(this),a=r.data("url"),e=r.data("basename"),l=s(this).parent().parent().find(".lionsher-partner-status"),e={url:envira_gallery_welcome.ajax,type:"post",async:!0,cache:!1,dataType:"json",data:{action:"envira_deactivate_partner",nonce:envira_gallery_welcome.deactivate_nonce,basename:e,download_url:a},success:function(a){r.text(envira_gallery_welcome.activate).removeClass("lionsher-partners-deactivate").addClass("lionsher-partners-activate"),s(l).text(envira_gallery_welcome.inactive);var e=s(l),n=e.html().split(/\s+/),t=n.pop(),n=n.join(" ");e.html([n," <span>",t,"</span>"].join("")),location.reload(!0)},error:function(a,e,n){console.log(n)}};s.ajax(e)})})})();
assets/js/welcome.js ADDED
@@ -0,0 +1,175 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function ($) {
2
+ $(function () {
3
+ $('.lionsher-partners').on(
4
+ 'click',
5
+ '.lionsher-partners-install',
6
+ function (e) {
7
+ e.preventDefault();
8
+ var $this = $(this);
9
+ var url = $this.data('url');
10
+ var basename = $this.data('basename');
11
+ var message = $(this)
12
+ .parent()
13
+ .parent()
14
+ .find('.lionsher-partner-status');
15
+ var install_opts = {
16
+ url: envira_gallery_welcome.ajax,
17
+ type: 'post',
18
+ async: true,
19
+ cache: false,
20
+ dataType: 'json',
21
+ data: {
22
+ action: 'envira_install_partner',
23
+ nonce: envira_gallery_welcome.install_nonce,
24
+ basename: basename,
25
+ download_url: url,
26
+ },
27
+ success: function (response) {
28
+ $this.text(envira_gallery_welcome.activate)
29
+ .removeClass('lionsher-partners-install')
30
+ .addClass('lionsher-partners-activate');
31
+
32
+ $(message).text(envira_gallery_welcome.inactive);
33
+ // Trick here to wrap a span around he last word of the status
34
+ var heading = $(message),
35
+ word_array,
36
+ last_word,
37
+ first_part;
38
+
39
+ word_array = heading.html().split(/\s+/); // split on spaces
40
+ last_word = word_array.pop(); // pop the last word
41
+ first_part = word_array.join(' '); // rejoin the first words together
42
+
43
+ heading.html(
44
+ [
45
+ first_part,
46
+ ' <span>',
47
+ last_word,
48
+ '</span>',
49
+ ].join(''),
50
+ );
51
+ // Proc
52
+ },
53
+ error: function (xhr, textStatus, e) {
54
+ console.log(e);
55
+ },
56
+ };
57
+ $.ajax(install_opts);
58
+ },
59
+ );
60
+ $('.lionsher-partners').on(
61
+ 'click',
62
+ '.lionsher-partners-activate',
63
+ function (e) {
64
+ e.preventDefault();
65
+ var $this = $(this);
66
+ var url = $this.data('url');
67
+ var basename = $this.data('basename');
68
+ var message = $(this)
69
+ .parent()
70
+ .parent()
71
+ .find('.lionsher-partner-status');
72
+ var activate_opts = {
73
+ url: envira_gallery_welcome.ajax,
74
+ type: 'post',
75
+ async: true,
76
+ cache: false,
77
+ dataType: 'json',
78
+ data: {
79
+ action: 'envira_activate_partner',
80
+ nonce: envira_gallery_welcome.activate_nonce,
81
+ basename: basename,
82
+ download_url: url,
83
+ },
84
+ success: function (response) {
85
+ $this.text(envira_gallery_welcome.deactivate)
86
+ .removeClass('lionsher-partners-activate')
87
+ .addClass('lionsher-partners-deactivate');
88
+
89
+ $(message).text(envira_gallery_welcome.active);
90
+ // Trick here to wrap a span around he last word of the status
91
+ var heading = $(message),
92
+ word_array,
93
+ last_word,
94
+ first_part;
95
+
96
+ word_array = heading.html().split(/\s+/); // split on spaces
97
+ last_word = word_array.pop(); // pop the last word
98
+ first_part = word_array.join(' '); // rejoin the first words together
99
+
100
+ heading.html(
101
+ [
102
+ first_part,
103
+ ' <span>',
104
+ last_word,
105
+ '</span>',
106
+ ].join(''),
107
+ );
108
+ location.reload(true);
109
+ },
110
+ error: function (xhr, textStatus, e) {
111
+ console.log(e);
112
+ },
113
+ };
114
+ $.ajax(activate_opts);
115
+ },
116
+ );
117
+ $('.lionsher-partners').on(
118
+ 'click',
119
+ '.lionsher-partners-deactivate',
120
+ function (e) {
121
+ e.preventDefault();
122
+ var $this = $(this);
123
+ var url = $this.data('url');
124
+ var basename = $this.data('basename');
125
+ var message = $(this)
126
+ .parent()
127
+ .parent()
128
+ .find('.lionsher-partner-status');
129
+ var deactivate_opts = {
130
+ url: envira_gallery_welcome.ajax,
131
+ type: 'post',
132
+ async: true,
133
+ cache: false,
134
+ dataType: 'json',
135
+ data: {
136
+ action: 'envira_deactivate_partner',
137
+ nonce: envira_gallery_welcome.deactivate_nonce,
138
+ basename: basename,
139
+ download_url: url,
140
+ },
141
+ success: function (response) {
142
+ $this.text(envira_gallery_welcome.activate)
143
+ .removeClass('lionsher-partners-deactivate')
144
+ .addClass('lionsher-partners-activate');
145
+
146
+ $(message).text(envira_gallery_welcome.inactive);
147
+ // Trick here to wrap a span around he last word of the status
148
+ var heading = $(message),
149
+ word_array,
150
+ last_word,
151
+ first_part;
152
+
153
+ word_array = heading.html().split(/\s+/); // split on spaces
154
+ last_word = word_array.pop(); // pop the last word
155
+ first_part = word_array.join(' '); // rejoin the first words together
156
+
157
+ heading.html(
158
+ [
159
+ first_part,
160
+ ' <span>',
161
+ last_word,
162
+ '</span>',
163
+ ].join(''),
164
+ );
165
+ location.reload(true);
166
+ },
167
+ error: function (xhr, textStatus, e) {
168
+ console.log(e);
169
+ },
170
+ };
171
+ $.ajax(deactivate_opts);
172
+ },
173
+ );
174
+ });
175
+ })(jQuery);
assets/scss/_fonts.scss CHANGED
@@ -1,42 +1,86 @@
1
  /* Generated by Glyphter (http://www.glyphter.com) on Tue Mar 22 2016*/
2
  @font-face {
3
- font-family: 'envira';
4
- src: url('../fonts/envira.eot');
5
- src: url('../fonts/envira.eot?#iefix') format('embedded-opentype'),
6
- url('../fonts/envira.woff') format('woff'),
7
- url('../fonts/envira.ttf') format('truetype'),
8
- url('../fonts/envira.svg#envira') format('svg');
9
- font-weight: normal;
10
- font-style: normal;
11
- }
12
- [class*='envira-']:before{
13
- display: inline-block;
14
- font-family: 'envira';
15
- font-style: normal;
16
- font-weight: normal;
17
- line-height: 1;
18
- -webkit-font-smoothing: antialiased;
19
- -moz-osx-font-smoothing: grayscale
20
- }
21
- .envira-configuration:before{content:'\0041';}
22
- .envira-leaf:before{content:'\0042';}
23
- .envira-lightbox:before{content:'\0044';}
24
- .envira-misc:before{content:'\0045';}
25
- .envira-mobile:before{content:'\0046';}
26
- .envira-pagination:before{content:'\0047';}
27
- .envira-proofing:before{content:'\0048';}
28
- .envira-slideshow:before{content:'\0049';}
29
- .envira-tags:before{content:'\004a';}
30
- .envira-thumbnails:before{content:'\004b';}
31
- .envira-video:before{content:'\004c';}
32
- .envira-watermark:before{content:'\004d';}
33
- .envira-cloud-download:before{content:'\004e';}
34
- .envira-toggle-on:before{content:'\004f';}
35
- .envira-plus-circle:before{content:'\0050';}
36
- .envira-down-arrow:before{content:'\0051';}
37
- .envira-list:before{content:'\0052';}
38
- .envira-grid:before{content:'\0053';}
39
- .envira-pinterest-p:before{content:'\0054';}
40
- .envira-pencil:before{content:'\0055';}
41
- .envira-close:before{content:'\0056';}
42
- .envira-check:before{content:'\0057';}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  /* Generated by Glyphter (http://www.glyphter.com) on Tue Mar 22 2016*/
2
  @font-face {
3
+ font-family: 'envira';
4
+ src: url('../fonts/envira.eot');
5
+ src: url('../fonts/envira.eot?#iefix') format('embedded-opentype'),
6
+ url('../fonts/envira.woff') format('woff'),
7
+ url('../fonts/envira.ttf') format('truetype'),
8
+ url('../fonts/envira.svg#envira') format('svg');
9
+ font-weight: normal;
10
+ font-style: normal;
11
+ }
12
+ [class*='envira-']:before {
13
+ display: inline-block;
14
+ font-family: 'envira';
15
+ font-style: normal;
16
+ font-weight: normal;
17
+ line-height: 1;
18
+ -webkit-font-smoothing: antialiased;
19
+ -moz-osx-font-smoothing: grayscale;
20
+ }
21
+ .envira-configuration:before {
22
+ content: '\0041';
23
+ }
24
+ .envira-leaf:before {
25
+ content: '\0042';
26
+ }
27
+ .envira-lightbox:before {
28
+ content: '\0044';
29
+ }
30
+ .envira-misc:before {
31
+ content: '\0045';
32
+ }
33
+ .envira-mobile:before {
34
+ content: '\0046';
35
+ }
36
+ .envira-pagination:before {
37
+ content: '\0047';
38
+ }
39
+ .envira-proofing:before {
40
+ content: '\0048';
41
+ }
42
+ .envira-slideshow:before {
43
+ content: '\0049';
44
+ }
45
+ .envira-tags:before {
46
+ content: '\004a';
47
+ }
48
+ .envira-thumbnails:before {
49
+ content: '\004b';
50
+ }
51
+ .envira-video:before {
52
+ content: '\004c';
53
+ }
54
+ .envira-watermark:before {
55
+ content: '\004d';
56
+ }
57
+ .envira-cloud-download:before {
58
+ content: '\004e';
59
+ }
60
+ .envira-toggle-on:before {
61
+ content: '\004f';
62
+ }
63
+ .envira-plus-circle:before {
64
+ content: '\0050';
65
+ }
66
+ .envira-down-arrow:before {
67
+ content: '\0051';
68
+ }
69
+ .envira-list:before {
70
+ content: '\0052';
71
+ }
72
+ .envira-grid:before {
73
+ content: '\0053';
74
+ }
75
+ .envira-pinterest-p:before {
76
+ content: '\0054';
77
+ }
78
+ .envira-pencil:before {
79
+ content: '\0055';
80
+ }
81
+ .envira-close:before {
82
+ content: '\0056';
83
+ }
84
+ .envira-check:before {
85
+ content: '\0057';
86
+ }
assets/scss/_mixins.scss CHANGED
@@ -6,58 +6,85 @@
6
  */
7
 
8
  @mixin mq($breakpoint) {
 
 
 
 
 
9
 
10
- $mq-xxs: "(max-width: 599px)";
11
- $mq-xs: "(min-width: 600px) and (max-width: 767px)";
12
- $mq-sm: "(min-width: 768px) and (max-width: 991px)";
13
- $mq-md: "(min-width: 992px) and (max-width: 1199px)";
14
- $mq-lg: "(min-width: 1200px)";
15
-
16
- @if $breakpoint == xxs {
17
- @media #{$mq-xxs} { @content; }
18
- }
19
- @if $breakpoint == xs {
20
- @media #{$mq-xs} { @content; }
21
- }
22
- @else if $breakpoint == sm {
23
- @media #{$mq-sm} { @content; }
24
- }
25
- @else if $breakpoint == md {
26
- @media #{$mq-md} { @content; }
27
- }
28
- @else if $breakpoint == lg {
29
- @media #{$mq-lg} { @content; }
30
- }
 
31
  }
32
 
33
  /**
34
  * Border-Radius
35
  */
36
 
37
- $prefixes: -webkit-, -moz-, -o-, "";
38
 
39
  @mixin borderRadius($size...) {
40
- @if length($size) == 1 {
41
- @each $prefix in $prefixes {
42
- #{$prefix}border-radius: $size;
43
- }
44
- } @else {
45
- @include customBorderRadius($size...);
46
- }
47
  }
48
 
49
- @mixin customBorderRadius($topLeft: 0, $topRight: 0, $bottomRight: 0, $bottomLeft: 0) {
50
- @each $prefix in $prefixes {
51
- @if $prefix == "-moz-" {
52
- @if $topLeft != 0 { -moz-border-radius-topleft: $topLeft; }
53
- @if $topRight != 0 { -moz-border-radius-topright: $topRight; }
54
- @if $bottomRight != 0 { -moz-border-radius-bottomright: $bottomRight; }
55
- @if $bottomLeft != 0 { -moz-border-radius-bottomleft: $bottomLeft; }
56
- } @else {
57
- @if $topLeft != 0 { #{$prefix}border-top-left-radius: $topLeft; }
58
- @if $topRight != 0 { #{$prefix}border-top-right-radius: $topRight; }
59
- @if $bottomRight != 0 { #{$prefix}border-bottom-right-radius: $bottomRight; }
60
- @if $bottomLeft != 0 { #{$prefix}border-bottom-left-radius: $bottomLeft; }
61
- }
62
- }
63
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  */
7
 
8
  @mixin mq($breakpoint) {
9
+ $mq-xxs: '(max-width: 599px)';
10
+ $mq-xs: '(min-width: 600px) and (max-width: 767px)';
11
+ $mq-sm: '(min-width: 768px) and (max-width: 991px)';
12
+ $mq-md: '(min-width: 992px) and (max-width: 1199px)';
13
+ $mq-lg: '(min-width: 1200px)';
14
 
15
+ @if $breakpoint == xxs {
16
+ @media #{$mq-xxs} {
17
+ @content;
18
+ }
19
+ }
20
+ @if $breakpoint == xs {
21
+ @media #{$mq-xs} {
22
+ @content;
23
+ }
24
+ } @else if $breakpoint == sm {
25
+ @media #{$mq-sm} {
26
+ @content;
27
+ }
28
+ } @else if $breakpoint == md {
29
+ @media #{$mq-md} {
30
+ @content;
31
+ }
32
+ } @else if $breakpoint == lg {
33
+ @media #{$mq-lg} {
34
+ @content;
35
+ }
36
+ }
37
  }
38
 
39
  /**
40
  * Border-Radius
41
  */
42
 
43
+ $prefixes: -webkit-, -moz-, -o-, '';
44
 
45
  @mixin borderRadius($size...) {
46
+ @if length($size) == 1 {
47
+ @each $prefix in $prefixes {
48
+ #{$prefix}border-radius: $size;
49
+ }
50
+ } @else {
51
+ @include customBorderRadius($size...);
52
+ }
53
  }
54
 
55
+ @mixin customBorderRadius(
56
+ $topLeft: 0,
57
+ $topRight: 0,
58
+ $bottomRight: 0,
59
+ $bottomLeft: 0
60
+ ) {
61
+ @each $prefix in $prefixes {
62
+ @if $prefix == '-moz-' {
63
+ @if $topLeft != 0 {
64
+ -moz-border-radius-topleft: $topLeft;
65
+ }
66
+ @if $topRight != 0 {
67
+ -moz-border-radius-topright: $topRight;
68
+ }
69
+ @if $bottomRight != 0 {
70
+ -moz-border-radius-bottomright: $bottomRight;
71
+ }
72
+ @if $bottomLeft != 0 {
73
+ -moz-border-radius-bottomleft: $bottomLeft;
74
+ }
75
+ } @else {
76
+ @if $topLeft != 0 {
77
+ #{$prefix}border-top-left-radius: $topLeft;
78
+ }
79
+ @if $topRight != 0 {
80
+ #{$prefix}border-top-right-radius: $topRight;
81
+ }
82
+ @if $bottomRight != 0 {
83
+ #{$prefix}border-bottom-right-radius: $bottomRight;
84
+ }
85
+ @if $bottomLeft != 0 {
86
+ #{$prefix}border-bottom-left-radius: $bottomLeft;
87
+ }
88
+ }
89
+ }
90
+ }
assets/scss/_vars.scss CHANGED
@@ -31,4 +31,6 @@ $danger_button_color_hover: $red_alt;
31
  $color_bg: #f1f1f1;
32
 
33
  $header-height: 120px;
34
- $navbar-height: 50px;
 
 
31
  $color_bg: #f1f1f1;
32
 
33
  $header-height: 120px;
34
+ $navbar-height: 50px;
35
+
36
+ $border-radius-main: 6px;
assets/scss/addons.scss CHANGED
@@ -1,7 +1,7 @@
1
  /* ==========================================================================
2
  addons.css loads on all the Envira Addons Administration Screen
3
 
4
- Any styles that will be used by the Addons section (or are useful to be
5
  included for future use) should be added to this file.
6
 
7
  ========================================================================== */
@@ -9,23 +9,23 @@
9
  /* ==========================================================================
10
  Imports
11
  ========================================================================== */
12
- @import "vars";
13
- @import "mixins";
14
- @import "fonts";
15
 
16
  /* ==========================================================================
17
  Header
18
  ========================================================================== */
19
 
20
  #addon-heading {
21
- /**
22
  * Clearfix
23
  */
24
- &:after {
25
- content: "";
26
- display: table;
27
- clear: both;
28
- }
29
  h1 {
30
  float: left;
31
  @include mq(xs) {
@@ -123,18 +123,18 @@
123
  float: left;
124
  margin-right: 8px;
125
  margin-top: 1px;
126
- color: $green;
127
  }
128
  }
129
  .envira-addon-upgrade-button {
130
- background-color: $green;
131
  color: $white;
132
  float: none !important;
133
  margin: 0 auto;
134
  display: table;
135
  line-height: 25px;
136
  &:hover {
137
- background-color: #95dc5e;
138
  color: $white;
139
  border-color: #95dc5e;
140
  }
@@ -147,7 +147,7 @@
147
  -webkit-transform: scaleX(-1);
148
  transform: scaleX(-1);
149
  filter: FlipH;
150
- -ms-filter: "FlipH";
151
  }
152
  }
153
  .envira-addon-title {
@@ -160,15 +160,14 @@
160
  * - Unlicensed
161
  */
162
  .envira-addons-area {
163
-
164
  /**
165
  * Clearfix
166
  */
167
- &:after {
168
- content: "";
169
- display: table;
170
- clear: both;
171
- }
172
 
173
  &.licensed {
174
  margin: 20px 0 40px 0;
@@ -176,7 +175,7 @@
176
  border-bottom: 1px solid #ddd;
177
  }
178
 
179
- /**
180
  * Addon Card
181
  */
182
  .envira-addon {
@@ -197,7 +196,7 @@
197
  &:nth-child(3n) {
198
  margin-right: 0;
199
  }
200
- &:nth-child(3n+1) {
201
  clear: both;
202
  }
203
  @include mq(md) {
@@ -212,7 +211,6 @@
212
  min-height: 525px;
213
  }
214
 
215
-
216
  /**
217
  * Thumbnail Image
218
  */
@@ -267,17 +265,17 @@
267
 
268
  /**
269
  * Interior
270
- */
271
  .interior {
272
  padding: 20px;
273
- /**
274
  * Clearfix
275
  */
276
- &:after {
277
- content: "";
278
- display: table;
279
- clear: both;
280
- }
281
  }
282
 
283
  /**
@@ -285,10 +283,10 @@
285
  */
286
  &.envira-addon-active {
287
  .addon-status span {
288
- color: $green;
289
  }
290
  .interior.envira-addon-active .addon-status span {
291
- color: $green;
292
  }
293
  .interior.envira-addon-inactive .addon-status span {
294
  color: #e82c20;
@@ -306,7 +304,7 @@
306
  color: #e82c20;
307
  }
308
  .interior.envira-addon-active .addon-status span {
309
- color: $green;
310
  }
311
  .interior.envira-addon-inactive .addon-status span {
312
  color: #e82c20;
@@ -324,7 +322,7 @@
324
  color: #a3a4a5;
325
  }
326
  .interior.envira-addon-active .addon-status span {
327
- color: $green;
328
  }
329
  .interior.envira-addon-inactive .addon-status span {
330
  color: #e82c20;
@@ -340,7 +338,7 @@
340
  }
341
  a.button {
342
  float: right;
343
- /* margin-right: 30px;*/
344
  }
345
  span.envira-gallery-spinner {
346
  position: absolute;
@@ -406,8 +404,11 @@
406
  width: 30% !important;
407
  }
408
 
409
- .form-table input[type="text"],
410
- .envira-addon .envira-addon-error .form-table input[type="password"] {
 
 
 
411
  width: 100% !important;
412
  }
413
 
@@ -464,7 +465,6 @@
464
  display: block;
465
  }
466
  }
467
-
468
  }
469
  #envira-filter-form {
470
  float: right;
@@ -494,7 +494,6 @@
494
  .spinner {
495
  float: left;
496
  }
497
-
498
  }
499
 
500
  /**
@@ -502,14 +501,12 @@
502
  */
503
  .clearfix {
504
  &:after {
505
- content: "";
506
- display: table;
507
- clear: both;
508
- }
509
  }
510
 
511
-
512
-
513
  /* ==========================================================================
514
  Responsive Addons Styles
515
  ========================================================================== */
@@ -525,14 +522,14 @@
525
  &:nth-child(2n) {
526
  margin-right: 0;
527
  }
528
- &:nth-child(2n+1) {
529
  clear: both;
530
  }
531
 
532
  &:nth-child(3n) {
533
  margin-right: 2%;
534
  }
535
- &:nth-child(3n+1) {
536
  clear: none;
537
  }
538
  .envira-addon-excerpt {
@@ -557,9 +554,7 @@
557
  }
558
  }
559
  @media only screen and (max-width: 600px) {
560
-
561
  #envira-addons-area {
562
-
563
  .envira-addon {
564
  width: 99%;
565
  /**
@@ -594,4 +589,4 @@
594
  }
595
  }
596
  }
597
- }
1
  /* ==========================================================================
2
  addons.css loads on all the Envira Addons Administration Screen
3
 
4
+ Any styles that will be used by the Addons section (or are useful to be
5
  included for future use) should be added to this file.
6
 
7
  ========================================================================== */
9
  /* ==========================================================================
10
  Imports
11
  ========================================================================== */
12
+ @import 'vars';
13
+ @import 'mixins';
14
+ @import 'fonts';
15
 
16
  /* ==========================================================================
17
  Header
18
  ========================================================================== */
19
 
20
  #addon-heading {
21
+ /**
22
  * Clearfix
23
  */
24
+ &:after {
25
+ content: '';
26
+ display: table;
27
+ clear: both;
28
+ }
29
  h1 {
30
  float: left;
31
  @include mq(xs) {
123
  float: left;
124
  margin-right: 8px;
125
  margin-top: 1px;
126
+ color: $primary_color;
127
  }
128
  }
129
  .envira-addon-upgrade-button {
130
+ background-color: $primary_color;
131
  color: $white;
132
  float: none !important;
133
  margin: 0 auto;
134
  display: table;
135
  line-height: 25px;
136
  &:hover {
137
+ background-color: #95dc5e;
138
  color: $white;
139
  border-color: #95dc5e;
140
  }
147
  -webkit-transform: scaleX(-1);
148
  transform: scaleX(-1);
149
  filter: FlipH;
150
+ -ms-filter: 'FlipH';
151
  }
152
  }
153
  .envira-addon-title {
160
  * - Unlicensed
161
  */
162
  .envira-addons-area {
 
163
  /**
164
  * Clearfix
165
  */
166
+ &:after {
167
+ content: '';
168
+ display: table;
169
+ clear: both;
170
+ }
171
 
172
  &.licensed {
173
  margin: 20px 0 40px 0;
175
  border-bottom: 1px solid #ddd;
176
  }
177
 
178
+ /**
179
  * Addon Card
180
  */
181
  .envira-addon {
196
  &:nth-child(3n) {
197
  margin-right: 0;
198
  }
199
+ &:nth-child(3n + 1) {
200
  clear: both;
201
  }
202
  @include mq(md) {
211
  min-height: 525px;
212
  }
213
 
 
214
  /**
215
  * Thumbnail Image
216
  */
265
 
266
  /**
267
  * Interior
268
+ */
269
  .interior {
270
  padding: 20px;
271
+ /**
272
  * Clearfix
273
  */
274
+ &:after {
275
+ content: '';
276
+ display: table;
277
+ clear: both;
278
+ }
279
  }
280
 
281
  /**
283
  */
284
  &.envira-addon-active {
285
  .addon-status span {
286
+ color: $primary_color;
287
  }
288
  .interior.envira-addon-active .addon-status span {
289
+ color: $primary_color;
290
  }
291
  .interior.envira-addon-inactive .addon-status span {
292
  color: #e82c20;
304
  color: #e82c20;
305
  }
306
  .interior.envira-addon-active .addon-status span {
307
+ color: $primary_color;
308
  }
309
  .interior.envira-addon-inactive .addon-status span {
310
  color: #e82c20;
322
  color: #a3a4a5;
323
  }
324
  .interior.envira-addon-active .addon-status span {
325
+ color: $primary_color;
326
  }
327
  .interior.envira-addon-inactive .addon-status span {
328
  color: #e82c20;
338
  }
339
  a.button {
340
  float: right;
341
+ /* margin-right: 30px;*/
342
  }
343
  span.envira-gallery-spinner {
344
  position: absolute;
404
  width: 30% !important;
405
  }
406
 
407
+ .form-table input[type='text'],
408
+ .envira-addon
409
+ .envira-addon-error
410
+ .form-table
411
+ input[type='password'] {
412
  width: 100% !important;
413
  }
414
 
465
  display: block;
466
  }
467
  }
 
468
  }
469
  #envira-filter-form {
470
  float: right;
494
  .spinner {
495
  float: left;
496
  }
 
497
  }
498
 
499
  /**
501
  */
502
  .clearfix {
503
  &:after {
504
+ content: '';
505
+ display: table;
506
+ clear: both;
507
+ }
508
  }
509
 
 
 
510
  /* ==========================================================================
511
  Responsive Addons Styles
512
  ========================================================================== */
522
  &:nth-child(2n) {
523
  margin-right: 0;
524
  }
525
+ &:nth-child(2n + 1) {
526
  clear: both;
527
  }
528
 
529
  &:nth-child(3n) {
530
  margin-right: 2%;
531
  }
532
+ &:nth-child(3n + 1) {
533
  clear: none;
534
  }
535
  .envira-addon-excerpt {
554
  }
555
  }
556
  @media only screen and (max-width: 600px) {
 
557
  #envira-addons-area {
 
558
  .envira-addon {
559
  width: 99%;
560
  /**
589
  }
590
  }
591
  }
592
+ }
assets/scss/admin.scss CHANGED
@@ -15,8 +15,11 @@
15
  /* ==========================================================================
16
  Imports
17
  ========================================================================== */
18
- @import "vars";
19
- @import "mixins";
 
 
 
20
 
21
  body.post-type-envira,
22
  body.post-type-envira_album {
@@ -35,20 +38,20 @@ body.post-type-envira_album {
35
  */
36
  .subheading {
37
  background-color: $white;
38
- height: 45px;
39
- margin-left: -20px;
40
  @include mq(xs) {
41
  height: auto;
42
  padding-bottom: 20px;
43
  }
44
 
45
- h1 {
46
  font-size: 20px;
47
  font-weight: 400;
48
  line-height: 45px;
49
  margin: 0 0 0 20px;
50
  padding-left: 20px;
51
- }
52
  }
53
 
54
  /**
@@ -72,7 +75,7 @@ body.post-type-envira_album {
72
  /* display: none; */ /* Trying To Prevent The "Shift" Upload Page Load Before JS can move the button */
73
  /* margin-left: 10px; */ /* Change WordPress 4.7 */
74
  }
75
-
76
  /**
77
  * Screen Title
78
  * - h1 used from WordPress 4.3+
@@ -111,21 +114,20 @@ body.post-type-envira_album {
111
  }
112
  }
113
 
114
-
115
  /**
116
  * Tab Panels
117
  * - By default, they're hidden and the .envira-active class displays them
118
  */
119
- .envira-tab {
120
- display: none;
121
 
122
- /**
123
  * Active Tab
124
  */
125
- &.envira-active {
126
- display: block;
127
- }
128
- }
129
 
130
  /**
131
  * Code Snippets
@@ -133,15 +135,15 @@ body.post-type-envira_album {
133
  div.envira-code {
134
  position: relative;
135
  margin: 0 0 10px 0;
136
-
137
  /**
138
  * Clearfix
139
  */
140
- &:after {
141
- content: "";
142
- display: table;
143
- clear: both;
144
- }
145
 
146
  code {
147
  display: block;
@@ -157,7 +159,7 @@ body.post-type-envira_album {
157
  top: 5px;
158
  right: 5px;
159
  color: #23282d;
160
-
161
  span {
162
  display: block;
163
  text-indent: -9999px;
@@ -212,7 +214,7 @@ body.post-type-envira_album {
212
  &.show-settings {
213
  height: auto;
214
  }
215
-
216
  /**
217
  * Green Button
218
  * - Replaces WordPress' default primary button style
@@ -224,7 +226,7 @@ body.post-type-envira_album {
224
  box-shadow: none;
225
  color: $white;
226
 
227
- &:hover{
228
  background: $primary_button_color_hover;
229
  border-color: $primary_button_color_hover;
230
  color: $white;
@@ -241,7 +243,7 @@ body.post-type-envira_album {
241
  box-shadow: none;
242
  color: $white;
243
 
244
- &:hover{
245
  background: $danger_button_color_hover;
246
  border-color: $danger_button_color_hover;
247
  color: $white;
@@ -277,16 +279,38 @@ body.post-type-envira_album.locale-fr-fr {
277
  }
278
  }
279
 
280
-
281
  /* ==========================================================================
282
  Header
283
  ========================================================================== */
284
  #envira-header-temp {
285
  position: relative;
286
  }
287
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
288
  #envira-header {
289
- background-color: $green;
 
 
290
  height: $header-height;
291
  @include mq(xxs) {
292
  padding-top: 46px;
@@ -294,7 +318,7 @@ body.post-type-envira_album.locale-fr-fr {
294
 
295
  h1.envira-logo {
296
  margin: 0;
297
- line-height: $header-height;
298
  margin-left: 20px;
299
 
300
  img {
@@ -302,8 +326,6 @@ body.post-type-envira_album.locale-fr-fr {
302
  * Image width and height (image is 2x so this ensures it displays correctly)
303
  */
304
  max-width: 339px;
305
- height: auto;
306
- width: 90%;
307
 
308
  /**
309
  * Responsive - ensure the logo doesn't exceed the header dimensions
@@ -394,18 +416,18 @@ body.edit-php.post-type-envira {
394
  .envira-notice {
395
  position: relative;
396
  margin: 0 0 20px 0;
397
- padding: 20px;
398
- @include borderRadius(2px);
399
 
400
- /**
401
  * Heading
402
  */
403
- p.envira-intro {
404
- border: none !important;
405
- margin: 0 0 20px 0 !important;
406
- padding: 0 !important;
407
  }
408
-
409
  .dashicons.star {
410
  color: #ff982d;
411
  line-height: 1.3;
@@ -414,75 +436,75 @@ body.edit-php.post-type-envira {
414
  height: 15px;
415
  }
416
 
417
- /**
418
  * Close Button
419
  */
420
- .notice-dismiss {
421
- top: 10px;
422
- right: 10px;
423
- color: $white;
424
-
425
- &:before {
426
- color: $white;
427
- width: 26px;
428
- height: 26px;
429
- font-size: 22px;
430
- }
431
- }
432
-
433
- /**
434
  * Layout
435
  */
436
  .no-margin-top {
437
  margin-top: 0;
438
  }
439
 
440
- /**
441
  * Success
442
  */
443
- &.success {
444
- background: $green;
445
- color: $white;
446
- border: none;
447
 
448
- /**
449
  * Button background color needs to be adjusted so it displays over the green background
450
  * of the success message
451
  */
452
- .button.button-primary {
453
- background-color: $green_alt;
454
- border-color: $green_alt;
455
- }
456
- }
457
 
458
- /**
459
  * Warning
460
  */
461
- &.warning {
462
- background: #fcf8e3;
463
- border: 1px solid #faebcc;
464
 
465
- .notice-dismiss {
466
- color: $black;
467
 
468
- &:before {
469
- color: $black;
470
- }
471
- }
472
- }
473
 
474
- /**
475
  * Error
476
  */
477
- &.error {
478
- border-top: 1px solid #dc3232;
479
- border-right: 1px solid #dc3232;
480
- border-bottom: 1px solid #dc3232;
481
- }
482
  }
483
 
484
  .envira-tab .two-column-list {
485
- display: table;
486
  width: 100%;
487
  ul {
488
  list-style: none;
@@ -493,7 +515,7 @@ body.edit-php.post-type-envira {
493
  padding-right: 10px;
494
  float: left;
495
  li:before {
496
- content: "+ ";
497
  }
498
  li {
499
  line-height: 1.5;
@@ -511,12 +533,12 @@ body.edit-php.post-type-envira {
511
  .cta-buttons {
512
  margin-top: 40px;
513
  // .button.button-primary {
514
- // margin: -15px 0 40px 0;
515
- // padding: 0 60px;
516
- // line-height: 60px;
517
- // font-weight: 700;
518
- // font-size: 21px;
519
- // height: 60px;
520
  // }
521
  }
522
 
@@ -542,7 +564,7 @@ body.post-type-envira_album.post-php {
542
  > div.notice,
543
  > div.updated {
544
  margin-left: 20px;
545
- margin-right: 20px;
546
  }
547
  }
548
  }
@@ -562,7 +584,7 @@ body.post-type-envira.taxonomy-envira-tag {
562
  > div.notice,
563
  > div.updated {
564
  margin-left: 20px;
565
- margin-right: 20px;
566
  }
567
 
568
  form.search-form,
@@ -602,122 +624,119 @@ body.post-type-envira {
602
  Gallery / Album Selection Media Modal
603
  ========================================================================== */
604
  .media-modal {
605
- .media-modal-content {
606
- .media-frame-content {
607
- .attachments-browser.envira-gallery-editor {
608
- /**
609
  * Error
610
  * - Position below the search bar
611
  */
612
- div.envira-gallery-error {
613
- position: absolute;
614
- top: 50px;
615
- left: 0;
616
- right: 300px;
617
- }
618
-
619
- /**
620
  * Grid
621
  */
622
- ul.attachments {
623
- li.attachment {
624
- width: 20%;
625
 
626
- div.attachment-preview {
627
- div.thumbnail {
628
- /**
629
  * Thumbnail Image
630
  */
631
- img {
632
- position: absolute;
633
- z-index: 1;
634
- top: 0;
635
- left: 0;
636
- width: 100%;
637
- height: 100%;
638
- opacity: 0.2;
639
- }
640
-
641
- /**
642
  * Title
643
  */
644
- strong {
645
- position: absolute;
646
- z-index: 2;
647
- height: 50%;
648
- top: 0;
649
- left: 0;
650
- right: 0;
651
- padding: 10px;
652
- text-align: center;
653
- overflow: hidden;
654
- -webkit-box-sizing: border-box;
655
- -moz-box-sizing: border-box;
656
- box-sizing: border-box;
657
- vertical-align: bottom;
658
- background: rgba(0,0,0,0.07);
659
- text-shadow: 1px 1px #ddd;
660
-
661
- span {
662
- display: block;
663
- position: absolute;
664
- bottom: 10px;
665
- left: 0;
666
- right: 0;
667
- padding: 0 10px;
668
- text-align: center;
669
- }
670
- }
671
-
672
- /**
673
  * Shortcode
674
  */
675
- code {
676
- position: absolute;
677
- z-index: 2;
678
- height: 50%;
679
- bottom: 0;
680
- left: 0;
681
- right: 0;
682
- padding: 10px;
683
- text-align: center;
684
- -webkit-box-sizing: border-box;
685
- -moz-box-sizing: border-box;
686
- box-sizing: border-box;
687
- vertical-align: middle;
688
- text-shadow: 1px 1px #ddd;
689
- }
690
- }
691
- }
692
- }
693
- }
694
-
695
- /**
696
  * Sidebar
697
  */
698
- div.media-sidebar {
699
- div.settings {
700
- .name {
701
- text-align: left;
702
- }
703
- }
704
- }
705
-
706
- }
707
- }
708
- }
709
  }
710
 
711
-
712
  /* ==========================================================================
713
  WordPress 5.5+
714
  ========================================================================== */
715
 
716
- // Remove WP 5.5 metabox arrows
717
- body.post-type-envira .postbox-header {
718
- display: none;
719
- }
720
-
721
 
722
  /* ==========================================================================
723
  Header Welcome Exceptions
@@ -735,10 +754,13 @@ body.post-type-envira {
735
  /* ==========================================================================
736
  Gallery List
737
  ========================================================================== */
738
-
739
  @media screen and (max-width: 782px) {
740
- body.post-type-envira .wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.check-column) {
741
- display: table-cell;
 
 
 
742
  }
743
  }
744
 
@@ -803,14 +825,14 @@ body.post-type-envira {
803
  .addon-tag {
804
  position: absolute;
805
  display: inline-block;
806
- padding: .75em 3em .75em 1.1em;
807
  overflow: hidden;
808
  color: #fff;
809
  z-index: 999;
810
  font-weight: bold;
811
  left: 0;
812
  font-size: 1.3em;
813
- }
814
  div.addon-tag:after {
815
  content: '';
816
  position: absolute;
@@ -826,4 +848,4 @@ div.addon-tag:after {
826
  -ms-transform: skew(-45deg);
827
  transform: skew(-45deg);
828
  z-index: -1;
829
- }
15
  /* ==========================================================================
16
  Imports
17
  ========================================================================== */
18
+ @import 'vars';
19
+ @import 'mixins';
20
+
21
+ /** UI Elements **/
22
+ @import 'buttons';
23
 
24
  body.post-type-envira,
25
  body.post-type-envira_album {
38
  */
39
  .subheading {
40
  background-color: $white;
41
+ height: 45px;
42
+ margin-left: -20px;
43
  @include mq(xs) {
44
  height: auto;
45
  padding-bottom: 20px;
46
  }
47
 
48
+ h1 {
49
  font-size: 20px;
50
  font-weight: 400;
51
  line-height: 45px;
52
  margin: 0 0 0 20px;
53
  padding-left: 20px;
54
+ }
55
  }
56
 
57
  /**
75
  /* display: none; */ /* Trying To Prevent The "Shift" Upload Page Load Before JS can move the button */
76
  /* margin-left: 10px; */ /* Change WordPress 4.7 */
77
  }
78
+
79
  /**
80
  * Screen Title
81
  * - h1 used from WordPress 4.3+
114
  }
115
  }
116
 
 
117
  /**
118
  * Tab Panels
119
  * - By default, they're hidden and the .envira-active class displays them
120
  */
121
+ .envira-tab {
122
+ display: none;
123
 
124
+ /**
125
  * Active Tab
126
  */
127
+ &.envira-active {
128
+ display: block;
129
+ }
130
+ }
131
 
132
  /**
133
  * Code Snippets
135
  div.envira-code {
136
  position: relative;
137
  margin: 0 0 10px 0;
138
+
139
  /**
140
  * Clearfix
141
  */
142
+ &:after {
143
+ content: '';
144
+ display: table;
145
+ clear: both;
146
+ }
147
 
148
  code {
149
  display: block;
159
  top: 5px;
160
  right: 5px;
161
  color: #23282d;
162
+
163
  span {
164
  display: block;
165
  text-indent: -9999px;
214
  &.show-settings {
215
  height: auto;
216
  }
217
+
218
  /**
219
  * Green Button
220
  * - Replaces WordPress' default primary button style
226
  box-shadow: none;
227
  color: $white;
228
 
229
+ &:hover {
230
  background: $primary_button_color_hover;
231
  border-color: $primary_button_color_hover;
232
  color: $white;
243
  box-shadow: none;
244
  color: $white;
245
 
246
+ &:hover {
247
  background: $danger_button_color_hover;
248
  border-color: $danger_button_color_hover;
249
  color: $white;
279
  }
280
  }
281
 
 
282
  /* ==========================================================================
283
  Header
284
  ========================================================================== */
285
  #envira-header-temp {
286
  position: relative;
287
  }
288
+ #envira-top-notification {
289
+ position: relative;
290
+ background-color: $primary_color;
291
+ text-align: center;
292
+ color: $white;
293
+ height: 40px;
294
+ vertical-align: middle;
295
+ p {
296
+ margin: 0;
297
+ padding: 0;
298
+ line-height: 40px;
299
+ font-size: 16px;
300
+ }
301
+ a {
302
+ color: $white;
303
+ }
304
+ .envira-dismiss {
305
+ position: absolute;
306
+ top: 10px;
307
+ right: 10px;
308
+ }
309
+ }
310
  #envira-header {
311
+ background-color: rgb(235, 235, 235);
312
+ background-image: url('../images/background.jpeg');
313
+ background-repeat: repeat;
314
  height: $header-height;
315
  @include mq(xxs) {
316
  padding-top: 46px;
318
 
319
  h1.envira-logo {
320
  margin: 0;
321
+ line-height: 140px;
322
  margin-left: 20px;
323
 
324
  img {
326
  * Image width and height (image is 2x so this ensures it displays correctly)
327
  */
328
  max-width: 339px;
 
 
329
 
330
  /**
331
  * Responsive - ensure the logo doesn't exceed the header dimensions
416
  .envira-notice {
417
  position: relative;
418
  margin: 0 0 20px 0;
419
+ padding: 20px;
420
+ @include borderRadius(2px);
421
 
422
+ /**
423
  * Heading
424
  */
425
+ p.envira-intro {
426
+ border: none !important;
427
+ margin: 0 0 20px 0 !important;
428
+ padding: 0 !important;
429
  }
430
+
431
  .dashicons.star {
432
  color: #ff982d;
433
  line-height: 1.3;
436
  height: 15px;
437
  }
438
 
439
+ /**
440
  * Close Button
441
  */
442
+ .notice-dismiss {
443
+ top: 10px;
444
+ right: 10px;
445
+ color: $white;
446
+
447
+ &:before {
448
+ color: $white;
449
+ width: 26px;
450
+ height: 26px;
451
+ font-size: 22px;
452
+ }
453
+ }
454
+
455
+ /**
456
  * Layout
457
  */
458
  .no-margin-top {
459
  margin-top: 0;
460
  }
461
 
462
+ /**
463
  * Success
464
  */
465
+ &.success {
466
+ background: $primary_color;
467
+ color: $white;
468
+ border: none;
469
 
470
+ /**
471
  * Button background color needs to be adjusted so it displays over the green background
472
  * of the success message
473
  */
474
+ .button.button-primary {
475
+ background-color: $green_alt;
476
+ border-color: $green_alt;
477
+ }
478
+ }
479
 
480
+ /**
481
  * Warning
482
  */
483
+ &.warning {
484
+ background: #fcf8e3;
485
+ border: 1px solid #faebcc;
486
 
487
+ .notice-dismiss {
488
+ color: $black;
489
 
490
+ &:before {
491
+ color: $black;
492
+ }
493
+ }
494
+ }
495
 
496
+ /**
497
  * Error
498
  */
499
+ &.error {
500
+ border-top: 1px solid #dc3232;
501
+ border-right: 1px solid #dc3232;
502
+ border-bottom: 1px solid #dc3232;
503
+ }
504
  }
505
 
506
  .envira-tab .two-column-list {
507
+ display: table;
508
  width: 100%;
509
  ul {
510
  list-style: none;
515
  padding-right: 10px;
516
  float: left;
517
  li:before {
518
+ content: '+ ';
519
  }
520
  li {
521
  line-height: 1.5;
533
  .cta-buttons {
534
  margin-top: 40px;
535
  // .button.button-primary {
536
+ // margin: -15px 0 40px 0;
537
+ // padding: 0 60px;
538
+ // line-height: 60px;
539
+ // font-weight: 700;
540
+ // font-size: 21px;
541
+ // height: 60px;
542
  // }
543
  }
544
 
564
  > div.notice,
565
  > div.updated {
566
  margin-left: 20px;
567
+ margin-right: 20px;
568
  }
569
  }
570
  }
584
  > div.notice,
585
  > div.updated {
586
  margin-left: 20px;
587
+ margin-right: 20px;
588
  }
589
 
590
  form.search-form,
624
  Gallery / Album Selection Media Modal
625
  ========================================================================== */
626
  .media-modal {
627
+ .media-modal-content {
628
+ .media-frame-content {
629
+ .attachments-browser.envira-gallery-editor {
630
+ /**
631
  * Error
632
  * - Position below the search bar
633
  */
634
+ div.envira-gallery-error {
635
+ position: absolute;
636
+ top: 50px;
637
+ left: 0;
638
+ right: 300px;
639
+ }
640
+
641
+ /**
642
  * Grid
643
  */
644
+ ul.attachments {
645
+ li.attachment {
646
+ width: 20%;
647
 
648
+ div.attachment-preview {
649
+ div.thumbnail {
650
+ /**
651
  * Thumbnail Image
652
  */
653
+ img {
654
+ position: absolute;
655
+ z-index: 1;
656
+ top: 0;
657
+ left: 0;
658
+ width: 100%;
659
+ height: 100%;
660
+ opacity: 0.2;
661
+ }
662
+
663
+ /**
664
  * Title
665
  */
666
+ strong {
667
+ position: absolute;
668
+ z-index: 2;
669
+ height: 50%;
670
+ top: 0;
671
+ left: 0;
672
+ right: 0;
673
+ padding: 10px;
674
+ text-align: center;
675
+ overflow: hidden;
676
+ -webkit-box-sizing: border-box;
677
+ -moz-box-sizing: border-box;
678
+ box-sizing: border-box;
679
+ vertical-align: bottom;
680
+ background: rgba(0, 0, 0, 0.07);
681
+ text-shadow: 1px 1px #ddd;
682
+
683
+ span {
684
+ display: block;
685
+ position: absolute;
686
+ bottom: 10px;
687
+ left: 0;
688
+ right: 0;
689
+ padding: 0 10px;
690
+ text-align: center;
691
+ }
692
+ }
693
+
694
+ /**
695
  * Shortcode
696
  */
697
+ code {
698
+ position: absolute;
699
+ z-index: 2;
700
+ height: 50%;
701
+ bottom: 0;
702
+ left: 0;
703
+ right: 0;
704
+ padding: 10px;
705
+ text-align: center;
706
+ -webkit-box-sizing: border-box;
707
+ -moz-box-sizing: border-box;
708
+ box-sizing: border-box;
709
+ vertical-align: middle;
710
+ text-shadow: 1px 1px #ddd;
711
+ }
712
+ }
713
+ }
714
+ }
715
+ }
716
+
717
+ /**
718
  * Sidebar
719
  */
720
+ div.media-sidebar {
721
+ div.settings {
722
+ .name {
723
+ text-align: left;
724
+ }
725
+ }
726
+ }
727
+ }
728
+ }
729
+ }
 
730
  }
731
 
 
732
  /* ==========================================================================
733
  WordPress 5.5+
734
  ========================================================================== */
735
 
736
+ // Remove WP 5.5 metabox arrows
737
+ body.post-type-envira .postbox-header {
738
+ display: none;
739
+ }
 
740
 
741
  /* ==========================================================================
742
  Header Welcome Exceptions
754
  /* ==========================================================================
755
  Gallery List
756
  ========================================================================== */
757
+
758
  @media screen and (max-width: 782px) {
759
+ body.post-type-envira
760
+ .wp-list-table
761
+ tr:not(.inline-edit-row):not(.no-items)
762
+ td:not(.check-column) {
763
+ display: table-cell;
764
  }
765
  }
766
 
825
  .addon-tag {
826
  position: absolute;
827
  display: inline-block;
828
+ padding: 0.75em 3em 0.75em 1.1em;
829
  overflow: hidden;
830
  color: #fff;
831
  z-index: 999;
832
  font-weight: bold;
833
  left: 0;
834
  font-size: 1.3em;
835
+ }
836
  div.addon-tag:after {
837
  content: '';
838
  position: absolute;
848
  -ms-transform: skew(-45deg);
849
  transform: skew(-45deg);
850
  z-index: -1;
851
+ }
assets/scss/buttons.scss ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .wp-core-ui .button.envira-button {
2
+ border-radius: 6px;
3
+ }
4
+ .wp-core-ui .envira-primary-button {
5
+ border-color: $primary_color;
6
+ color: $white;
7
+ background-color: $primary_color;
8
+ &:hover {
9
+ background: #95dc5e;
10
+ border-color: #95dc5e;
11
+ color: #fff;
12
+ }
13
+ }
14
+ .wp-core-ui .envira-secondary-button {
15
+ border-color: rgb(245, 245, 245);
16
+ color: rgb(100, 100, 100);
17
+ background-color: rgb(245, 245, 245);
18
+ box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
19
+ &:hover {
20
+ border-color: rgb(235, 235, 235);
21
+ color: rgb(100, 100, 100);
22
+ background-color: rgb(235, 235, 235);
23
+ box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
24
+ }
25
+ }
26
+
27
+ .wp-core-ui .envira-button-small {
28
+ }
29
+ .wp-core-ui .envira-button-med {
30
+ }
31
+
32
+ .wp-core-ui .envira-button-large {
33
+ }
34
+
35
+ .wp-core-ui .envira-button-xl {
36
+ }
assets/scss/metabox.scss CHANGED
@@ -8,28 +8,27 @@
8
  /* ==========================================================================
9
  Imports
10
  ========================================================================== */
11
- @import "vars";
12
- @import "mixins";
13
 
14
  /* ==========================================================================
15
  Messages
16
  ========================================================================== */
17
  body.post-type-envira {
18
- /**
19
  * Add left and right margins to ensure the message notification horizontally lines up
20
  * with the metaboxes
21
  */
22
- #message {
23
- margin: 5px 20px 15px 20px;
24
- }
25
 
26
- #wp-link-wrap{
27
  z-index: 180105 !important;
28
  }
29
 
30
- #wp-link-backdrop{
31
  z-index: 160105 !important;
32
-
33
  }
34
  }
35
 
@@ -38,460 +37,464 @@ body.post-type-envira {
38
  - The envira-gallery class is assigned to the Gallery and Album Add/Edit screens form.
39
  ========================================================================== */
40
  form#post.envira-gallery {
41
- /**
42
  * Re-establish the left and right margins, so there's spacing between the Admin Menu
43
  * and the content
44
  */
45
- margin: 0 20px;
46
 
47
- /**
48
  * Defined so we override WordPress' default styles
49
  */
50
- #poststuff {
51
- /* ==========================================================================
52
  Envira Gallery Shared Styles for Types and Settings
53
  ========================================================================== */
54
 
55
- /**
56
  * Intro Text
57
  */
58
- p.envira-intro {
59
- margin: 0;
60
- padding: 0 0 30px 0;
61
- border-bottom: 1px solid #ddd;
62
- font-size: 16px;
63
- font-weight: 700;
64
-
65
- small {
66
- margin: 5px 0 0 0;
67
- display: block;
68
- font-weight: 400;
69
-
70
- a {
71
- text-decoration: none;
72
- font-weight: 600;
73
- }
74
- }
75
- }
76
-
77
- /**
78
  * Help Video
79
  * - Can be placed inside p.envira-intro by JS, or outside p.envira-intro when
80
  * viewing the Images tab for a Dynamic or Default Gallery
81
  */
82
- div.envira-video-help {
83
- position: relative;
84
- z-index: 1;
85
- width: 100%;
86
- margin: 20px 0 0 0;
87
-
88
- iframe {
89
- position: relative;
90
- z-index: 1;
91
- width: 100%;
92
- height: auto;
93
- min-height: 300px;
94
- }
95
-
96
- a.envira-video-close {
97
- position: absolute;
98
- z-index: 2;
99
- top: -12px;
100
- right: -12px;
101
- width: 24px;
102
- height: 24px;
103
- line-height: 24px;
104
- @include borderRadius(50%);
105
- background: #f5f5f5;
106
- color: #000;
107
- text-align: center;
108
- text-decoration: none;
109
- }
110
- }
111
-
112
- /**
113
  * Image Grid
114
  * - Used on the Images tab for Default Galleries, as well as the Preview Metabox
115
  */
116
- ul.envira-gallery-images-output {
117
- width: 100%;
118
-
119
- li {
120
- position: relative;
121
- display: inline-block;
122
- width: 150px;
123
- margin: 0 20px 20px 0;
124
- padding: 0;
125
- list-style: none;
126
- vertical-align: top;
127
- -moz-background-clip: padding;
128
- -webkit-background-clip: padding-box;
129
- background-clip: padding-box;
130
- background: #f7f7f7;
131
-
132
- img {
133
- display: block;
134
- width: 150px;
135
- height: 150px;
136
- }
137
-
138
- /**
139
  * If, for some reason, the image doesn't exist or fails to load,
140
  * the placeholder logo is displayed
141
  */
142
- div.placeholder-image {
143
- display: block;
144
- width: 148px;
145
- height: 149px;
146
- background: url(images/icons/leaf.svg) center no-repeat;
147
- background-size: 64px 64px;
148
- border-left: 1px solid #dfdfdf;
149
- border-top: 1px solid #dfdfdf;
150
- border-right: 1px solid #dfdfdf;
151
- }
152
-
153
- /**
154
  * Metadata
155
  */
156
- div.meta {
157
- width: 148px;
158
- overflow: hidden;
159
- text-align: center;
160
- border-left: 1px solid #dfdfdf;
161
- border-bottom: 1px solid #dfdfdf;
162
- border-right: 1px solid #dfdfdf;
163
-
164
- /**
165
  * Title
166
  */
167
- div.title {
168
- font-size: 12px;
169
- font-weight: 700;
170
- width: 138px;
171
- height: 18px;
172
- line-height: 18px;
173
- margin: 8px 5px;
174
- overflow: hidden;
175
-
176
- /**
177
  * Hint
178
  * - Displays the full title on hover
179
  */
180
- a.hint {
181
- position: absolute;
182
- display: inline-block;
183
- bottom: 10px;
184
- right: 10px;
185
- width: 16px;
186
- height: 16px;
187
- background: #f7f7f7;
188
-
189
- &.hidden {
190
- display: none;
191
- }
192
- }
193
- }
194
-
195
- /**
196
  * Additional metadata
197
  */
198
- div.additional {
199
- display: none;
200
- margin: 5px 0 0 0;
201
- font-weight: 400;
202
- }
203
- }
204
-
205
- /**
206
  * Tick Icon
207
  */
208
- a.check {
209
- display: none;
210
- position: absolute;
211
- right: 5px;
212
- top: 5px;
213
- width: 24px;
214
- height: 24px;
215
- background-color: #eee;
216
- -webkit-box-shadow: 0 0 0 1px #fff,0 0 0 2px rgba(0,0,0,0.15);
217
- box-shadow: 0 0 0 1px #fff,0 0 0 2px rgba(0,0,0,0.15);
218
-
219
- div.media-modal-icon {
220
- display: none;
221
- width: 15px;
222
- height: 15px;
223
- margin: 5px 0 0 5px;
224
- background-position: -21px 0;
225
- }
226
- }
227
-
228
- /**
 
229
  * Edit / Delete Buttons
230
  */
231
- a.dashicons {
232
- position: absolute;
233
- display: block;
234
- top: 5px;
235
- left: 5px;
236
- width: 25px;
237
- height: 25px;
238
- line-height: 25px;
239
- font-size: 18px; /* Controls the icon size */
240
- outline: none;
241
- z-index: 20;
242
- border-radius: 2px;
243
- -moz-border-radius: 2px;
244
- -webkit-border-radius: 2px;
245
-
246
- &.envira-gallery-modify-image {
247
- background: #0085ba;
248
- color: $white;
249
- }
250
- &.envira-gallery-remove-image {
251
- left: 35px;
252
- background: #e02626;
253
- color: $white;
254
- }
255
- }
256
-
257
- /**
258
  * Selected state
259
  */
260
- &.selected {
261
- width: 148px;
262
- border: 2px solid $green !important;
263
-
264
- a.check {
265
- display: block;
266
- background-color: $green;
267
- -webkit-box-shadow: 0 0 0 1px #fff,0 0 0 2px $green;
268
- box-shadow: 0 0 0 1px #fff,0 0 0 2px $green;
269
-
270
- div.media-modal-icon {
271
- display: block;
272
- }
273
- }
274
-
275
- div.meta {
276
- width: 146px;
277
- }
278
- }
279
-
280
- /**
 
281
  * Multiple selection sorting - stacks images when the user has selected more than one image + dragged them
282
  */
283
- &.ui-sortable-helper {
284
- li {
285
- position: absolute;
286
- top: 0;
287
- left: 0;
288
- }
289
- }
290
- }
291
-
292
- /**
293
  * List View
294
  */
295
- &.list {
296
- li {
297
- position: relative;
298
- z-index: 2;
299
- display: block;
300
- width: 100%;
301
- margin: 0 0 10px 0;
302
- padding: 10px 15px;
303
- background: #fff;
304
- border: 1px solid #ddd;
305
- -webkit-box-sizing: border-box;
306
- -moz-box-sizing: border-box;
307
- box-sizing: border-box;
308
- border-radius: 2px;
309
- -moz-border-radius: 2px;
310
- -webkit-border-radius: 2px;
311
-
312
- img {
313
- display: inline-block;
314
- width: 75px;
315
- margin-left: 45px;
316
- }
317
-
318
- /**
319
  * Metadata
320
  */
321
- div.meta {
322
- position: absolute;
323
- z-index: 1;
324
-
8
  /* ==========================================================================
9
  Imports
10
  ========================================================================== */
11
+ @import 'vars';
12
+ @import 'mixins';
13
 
14
  /* ==========================================================================
15
  Messages
16
  ========================================================================== */
17
  body.post-type-envira {
18
+ /**
19
  * Add left and right margins to ensure the message notification horizontally lines up
20
  * with the metaboxes
21
  */
22
+ #message {
23
+ margin: 5px 20px 15px 20px;
24
+ }
25
 
26
+ #wp-link-wrap {
27
  z-index: 180105 !important;
28
  }
29
 
30
+ #wp-link-backdrop {
31
  z-index: 160105 !important;
 
32
  }
33
  }
34
 
37
  - The envira-gallery class is assigned to the Gallery and Album Add/Edit screens form.
38
  ========================================================================== */
39
  form#post.envira-gallery {
40
+ /**
41
  * Re-establish the left and right margins, so there's spacing between the Admin Menu
42
  * and the content
43
  */
44
+ margin: 0 20px;
45
 
46
+ /**
47
  * Defined so we override WordPress' default styles
48
  */
49
+ #poststuff {
50
+ /* ==========================================================================
51
  Envira Gallery Shared Styles for Types and Settings
52
  ========================================================================== */
53
 
54
+ /**
55
  * Intro Text
56
  */
57
+ p.envira-intro {
58
+ margin: 0;
59
+ padding: 0 0 30px 0;
60
+ border-bottom: 1px solid #ddd;
61
+ font-size: 16px;
62
+ font-weight: 700;
63
+
64
+ small {
65
+ margin: 5px 0 0 0;
66
+ display: block;
67
+ font-weight: 400;
68
+
69
+ a {
70
+ text-decoration: none;
71
+ font-weight: 600;
72
+ }
73
+ }
74
+ }
75
+
76
+ /**
77
  * Help Video
78
  * - Can be placed inside p.envira-intro by JS, or outside p.envira-intro when
79
  * viewing the Images tab for a Dynamic or Default Gallery
80
  */
81
+ div.envira-video-help {
82
+ position: relative;
83
+ z-index: 1;
84
+ width: 100%;
85
+ margin: 20px 0 0 0;
86
+
87
+ iframe {
88
+ position: relative;
89
+ z-index: 1;
90
+ width: 100%;
91
+ height: auto;
92
+ min-height: 300px;
93
+ }
94
+
95
+ a.envira-video-close {
96
+ position: absolute;
97
+ z-index: 2;
98
+ top: -12px;
99
+ right: -12px;
100
+ width: 24px;
101
+ height: 24px;
102
+ line-height: 24px;
103
+ @include borderRadius(50%);
104
+ background: #f5f5f5;
105
+ color: #000;
106
+ text-align: center;
107
+ text-decoration: none;
108
+ }
109
+ }
110
+
111
+ /**
112
  * Image Grid
113
  * - Used on the Images tab for Default Galleries, as well as the Preview Metabox
114
  */
115
+ ul.envira-gallery-images-output {
116
+ width: 100%;
117
+
118
+ li {
119
+ position: relative;
120
+ display: inline-block;
121
+ width: 150px;
122
+ margin: 0 20px 20px 0;
123
+ padding: 0;
124
+ list-style: none;
125
+ vertical-align: top;
126
+ -moz-background-clip: padding;
127
+ -webkit-background-clip: padding-box;
128
+ background-clip: padding-box;
129
+ background: #f7f7f7;
130
+
131
+ img {
132
+ display: block;
133
+ width: 150px;
134
+ height: 150px;
135
+ }
136
+
137
+ /**
138
  * If, for some reason, the image doesn't exist or fails to load,
139
  * the placeholder logo is displayed
140
  */
141
+ div.placeholder-image {
142
+ display: block;
143
+ width: 148px;
144
+ height: 149px;
145
+ background: url(images/icons/leaf.svg) center no-repeat;
146
+ background-size: 64px 64px;
147
+ border-left: 1px solid #dfdfdf;
148
+ border-top: 1px solid #dfdfdf;
149
+ border-right: 1px solid #dfdfdf;
150
+ }
151
+
152
+ /**
153
  * Metadata
154
  */
155
+ div.meta {
156
+ width: 148px;
157
+ overflow: hidden;
158
+ text-align: center;
159
+ border-left: 1px solid #dfdfdf;
160
+ border-bottom: 1px solid #dfdfdf;
161
+ border-right: 1px solid #dfdfdf;
162
+
163
+ /**
164
  * Title
165
  */
166
+ div.title {
167
+ font-size: 12px;
168
+ font-weight: 700;
169
+ width: 138px;
170
+ height: 18px;
171
+ line-height: 18px;
172
+ margin: 8px 5px;
173
+ overflow: hidden;
174
+
175
+ /**
176
  * Hint
177
  * - Displays the full title on hover
178
  */
179
+ a.hint {
180
+ position: absolute;
181
+ display: inline-block;
182
+ bottom: 10px;
183
+ right: 10px;
184
+ width: 16px;
185
+ height: 16px;
186
+ background: #f7f7f7;
187
+
188
+ &.hidden {
189
+ display: none;
190
+ }
191
+ }
192
+ }
193
+
194
+ /**
195
  * Additional metadata
196
  */
197
+ div.additional {
198
+ display: none;
199
+ margin: 5px 0 0 0;
200
+ font-weight: 400;
201
+ }
202
+ }
203
+
204
+ /**
205
  * Tick Icon
206
  */
207
+ a.check {
208
+ display: none;
209
+ position: absolute;
210
+ right: 5px;
211
+ top: 5px;
212
+ width: 24px;
213
+ height: 24px;
214
+ background-color: #eee;
215
+ -webkit-box-shadow: 0 0 0 1px #fff,
216
+ 0 0 0 2px rgba(0, 0, 0, 0.15);
217
+ box-shadow: 0 0 0 1px #fff, 0 0 0 2px rgba(0, 0, 0, 0.15);
218
+
219
+ div.media-modal-icon {
220
+ display: none;
221
+ width: 15px;
222
+ height: 15px;
223
+ margin: 5px 0 0 5px;
224
+ background-position: -21px 0;
225
+ }
226
+ }
227
+
228
+ /**
229
  * Edit / Delete Buttons
230
  */
231
+ a.dashicons {
232
+ position: absolute;
233
+ display: block;
234
+ top: 5px;
235
+ left: 5px;
236
+ width: 25px;
237
+ height: 25px;
238
+ line-height: 25px;
239
+ font-size: 18px; /* Controls the icon size */
240
+ outline: none;
241
+ z-index: 20;
242
+ border-radius: 2px;
243
+ -moz-border-radius: 2px;
244
+ -webkit-border-radius: 2px;
245
+
246
+ &.envira-gallery-modify-image {
247
+ background: #0085ba;
248
+ color: $white;
249
+ }
250
+ &.envira-gallery-remove-image {
251
+ left: 35px;
252
+ background: #e02626;
253
+ color: $white;
254
+ }
255
+ }
256
+
257
+ /**
258
  * Selected state
259
  */
260
+ &.selected {
261
+ width: 148px;
262
+ border: 2px solid $primary_color !important;
263
+
264
+ a.check {
265
+ display: block;
266
+ background-color: $primary_color;
267
+ -webkit-box-shadow: 0 0 0 1px #fff,
268
+ 0 0 0 2px $primary_color;
269
+ box-shadow: 0 0 0 1px #fff, 0 0 0 2px $primary_color;
270
+
271
+ div.media-modal-icon {
272
+ display: block;
273
+ }
274
+ }
275
+
276
+ div.meta {
277
+ width: 146px;
278
+ }
279
+ }
280
+
281
+ /**
282
  * Multiple selection sorting - stacks images when the user has selected more than one image + dragged them
283
  */
284
+ &.ui-sortable-helper {
285
+ li {
286
+ position: absolute;
287
+ top: 0;
288
+ left: 0;
289
+ }
290
+ }
291
+ }
292
+
293
+ /**
294
  * List View
295
  */
296
+ &.list {
297
+ li {
298
+ position: relative;
299
+ z-index: 2;
300
+ display: block;
301
+ width: 100%;
302
+ margin: 0 0 10px 0;
303
+ padding: 10px 15px;
304
+ background: #fff;
305
+ border: 1px solid #ddd;
306
+ -webkit-box-sizing: border-box;
307
+ -moz-box-sizing: border-box;
308
+ box-sizing: border-box;
309
+ border-radius: 2px;
310
+ -moz-border-radius: 2px;
311
+ -webkit-border-radius: 2px;
312
+
313
+ img {
314
+ display: inline-block;
315
+ width: 75px;
316
+ margin-left: 45px;
317
+ }
318
+
319
+ /**
320
  * Metadata
321
  */