Imagify Image Optimizer - Version 1.5.6

Version Description

  • Improvement
    • Dynamically update from the API the maximum image size allowed in bulk optimization
    • Updated SweetAlert to SweetAlert2
Download this release

Release Info

Developer wp_media
Plugin Icon 128x128 Imagify Image Optimizer
Version 1.5.6
Comparing to
See all releases

Code changes from version 1.5.5 to 1.5.6

assets/css/admin.css CHANGED
@@ -147,7 +147,7 @@ body.imagify-modal-is-open {
147
  background-color: #40b1d0 !important;
148
  box-shadow: 0 3px 0 #338ea6 !important;
149
  }
150
- .imagify-sweet-alert button.cancel {
151
  background: #777 !important;
152
  box-shadow: 0 3px 0 #444 !important;
153
  }
@@ -1160,8 +1160,13 @@ input[id^="imagify_sizes_"]:checked + label {
1160
  margin-top: 2em;
1161
  }
1162
  @media (max-width: 820px) {
1163
- .imagify-settings {
 
 
1164
  display: flex;
 
 
 
1165
  flex-direction: column;
1166
  }
1167
  .imagify-main {
@@ -2410,9 +2415,18 @@ td.imagify-cell-filename {
2410
 
2411
  /* Imagify Modal */
2412
  .imagify-modal {
 
 
2413
  display: flex;
 
 
 
2414
  flex-direction: column;
 
 
2415
  align-items: center;
 
 
2416
  justify-content: center;
2417
  }
2418
  .js .imagify-modal {
147
  background-color: #40b1d0 !important;
148
  box-shadow: 0 3px 0 #338ea6 !important;
149
  }
150
+ .imagify-sweet-alert button.swal2-cancel {
151
  background: #777 !important;
152
  box-shadow: 0 3px 0 #444 !important;
153
  }
1160
  margin-top: 2em;
1161
  }
1162
  @media (max-width: 820px) {
1163
+ .imagify-settings {
1164
+ display: -webkit-box;
1165
+ display: -ms-flexbox;
1166
  display: flex;
1167
+ -webkit-box-orient: vertical;
1168
+ -webkit-box-direction: normal;
1169
+ -ms-flex-direction: column;
1170
  flex-direction: column;
1171
  }
1172
  .imagify-main {
2415
 
2416
  /* Imagify Modal */
2417
  .imagify-modal {
2418
+ display: -webkit-box;
2419
+ display: -ms-flexbox;
2420
  display: flex;
2421
+ -webkit-box-orient: vertical;
2422
+ -webkit-box-direction: normal;
2423
+ -ms-flex-direction: column;
2424
  flex-direction: column;
2425
+ -webkit-box-align: center;
2426
+ -ms-flex-align: center;
2427
  align-items: center;
2428
+ -webkit-box-pack: center;
2429
+ -ms-flex-pack: center;
2430
  justify-content: center;
2431
  }
2432
  .js .imagify-modal {
assets/css/admin.min.css CHANGED
@@ -1 +1 @@
1
- .imagify-start{float:left}.imagify-end{float:right}.imagify-txt-start.imagify-txt-start.imagify-txt-start{text-align:left}.imagify-txt-center.imagify-txt-center.imagify-txt-center{text-align:center}.imagify-txt-end.imagify-txt-end.imagify-txt-end{text-align:right}.imagify-mt1.imagify-mt1{margin-top:1em}.imagify-mb1.imagify-mb1{margin-bottom:1em}.imagify-mr1.imagify-mr1{margin-right:1em}.imagify-ml2.imagify-ml2{margin-left:2em}.imagify-mr2.imagify-mr2{margin-right:2em}.imagify-pl0.imagify-pl0.imagify-pl0{padding-left:0}.imagify-pr1.imagify-pr1{padding-right:1em}.imagify-oh{overflow:hidden}.imagify-clear{clear:both}.imagify-clearfix:after,.imagify-inline-options:after{content:"";display:table;clear:both}.imagify-count.imagify-count{counter-reset:num}.imagify-count .imagify-count-title{font-weight:bold}.imagify-default-settings{color:#73818c;font-weight:normal}.imagify-count .imagify-count-title:before{counter-increment:num 1;content:counter(num) ". "}.imagify-table{display:table;width:100%}.imagify-cell{display:table-cell;padding:10px;vertical-align:top}.imagify-cell.va-top,.va-top .imagify-cell{vertical-align:top}.imagify-bulk-submit .imagify-cell{padding-top:0}body.imagify-modal-is-open{overflow:hidden}.imagify-plugins-error{overflow:hidden;padding-left:20px;list-style-type:disc}.imagify-plugins-error li{width:300px;line-height:30px}@media (max-width:570px){.imagify-plugins-error li{width:auto}}.imagify-notice-dismiss.notice-dismiss{text-decoration:none}.imagify-spinner{display:inline-block;width:20px;height:20px;margin-right:5px;vertical-align:middle;background:rgba(0,0,0,0) url("../images/spinner.gif") no-repeat scroll 0 0 / 20px 20px;opacity:0.7}.spinner.imagify-hidden{width:0;margin:4px 0 0 0}.misc-pub-section.misc-pub-imagify h4{font-size:14px;margin-top:5px;margin-bottom:0}.imagify-sweet-alert button{margin-top:17px !important;height:45px !important;letter-spacing:3px;text-transform:uppercase !important;border-radius:3px !important;background-color:#40b1d0 !important;box-shadow:0 3px 0 #338ea6 !important}.imagify-sweet-alert button.cancel{background:#777 !important;box-shadow:0 3px 0 #444 !important}.imagify-sweet-alert-signup .sa-confirm-button-container{width:40%}.imagify-sweet-alert-signup button{width:100%;padding:0 !important}.imagify-sweet-alert .sa-input-error:before,.imagify-sweet-alert .sa-input-error:after,.imagify-sweet-alert .la-ball-fall{top:25% !important}#wpwrap{transition:all .4s}.stop-scrolling #wpwrap{filter:blur(2px)}.stop-scrolling #wpwrap #wpadminbar{top:-32px}.imagify-primary.imagify-primary.imagify-primary{color:#40b1d0}.imagify-secondary.imagify-secondary.imagify-secondary{color:#8cc152}#imagify-check-api-container{font-weight:bold}#imagify-check-api-container .dashicons{font-size:25px}#imagify-check-api-container .dashicons-no:before{color:#f06e57;vertical-align:-1px}#imagify-check-api-container .dashicons-yes:before{color:#8BC34A;vertical-align:-1px}.imagify-valid{color:#8BC34A}.imagify-chart{width:33.33%;position:relative}#imagify-overview-chart-legend{overflow:hidden}.imagify-doughnut-legend{margin-top:38px;list-style:none}.imagify-doughnut-legend li{display:block;padding-left:30px;position:relative;margin-bottom:15px;border-radius:5px;padding:3px 8px 2px 31px;font-size:14px;font-weight:600;cursor:default;-webkit-transition:background-color 200ms ease-in-out;-moz-transition:background-color 200ms ease-in-out;-o-transition:background-color 200ms ease-in-out;transition:background-color 200ms ease-in-out}.imagify-doughnut-legend li span{display:block;position:absolute;left:0;top:0;width:25px;height:25px;border-radius:50%}.imagify-chart{float:left;margin-bottom:20px}td .imagify-chart{float:none;margin-bottom:0}.imagify-chart-container{position:relative;width:180px;float:left;margin-right:20px}.imagify-global-optim-phrase{width:180px;padding-top:20px;font-size:14px;font-weight:bold;text-align:center}.imagify-total-percent{color:#46b1ce}td .imagify-chart-container{width:18px;height:18px;float:none;margin-right:10px}td .imagify-chart{top:4px}.imagify-chart-percent{position:absolute;left:0;right:0;top:50%;margin-top:-14px;text-align:center;font-size:55px;font-weight:bold;color:#46B1CE}.imagify-chart-percent span{font-size:20px;vertical-align:super}.media_page_imagify-bulk-optimization .notice,body[class*="_imagify-ngg-bulk-optimization"] .notice,.settings_page_imagify .notice{margin-right:20px;margin-left:2px}.media_page_imagify-bulk-optimization .media-item,body[class*="_imagify-ngg-bulk-optimization"] .media-item{margin:0}.media_page_imagify-bulk-optimization .media-item .progress,body[class*="_imagify-ngg-bulk-optimization"] .media-item .progress{float:none;width:100%;margin:0;background:#1F2331;box-shadow:0;border-radius:0}.media_page_imagify-bulk-optimization .media-item .percent,body[class*="_imagify-ngg-bulk-optimization"] .media-item .percent{width:auto;padding:0 5px;line-height:1.85;font-size:12px}.media_page_imagify-bulk-optimization .media-item .progress,body[class*="_imagify-ngg-bulk-optimization"] .media-item .progress,body[class*="_imagify-ngg-bulk-optimization"] .media-item .percent,.media_page_imagify-bulk-optimization .media-item .percent{text-align:right}.media_page_imagify-bulk-optimization .media-item .progress .bar,body[class*="_imagify-ngg-bulk-optimization"] .media-item .progress .bar{width:1px;height:22px;margin-top:0;background:#46B1CE;border-radius:0;overflow:visible;-webkit-transition:width .5s;transition:width .5s}.imagify-settings a,.imagify-settings .button,.imagify-settings input,.imagify-welcome a,.imagify-welcome .button,.imagify-weolcome input{-webkit-transition:all .275s;transition:all .275s}.imagify-settings a{color:#40b1d0}.imagify-options-title{padding-bottom:.5em;border-bottom:3px solid #F2F2F2;font-size:13px;font-weight:500;text-transform:uppercase;letter-spacing:0.025em;color:#40b1d0}.imagify-settings,.imagify-settings p,.imagify-settings th{color:#5F758E}@media (max-width:782px){.imagify-settings .form-table th{padding-top:2em;padding-bottom:.5em}}.imagify-settings .form-table td{vertical-align:top}.imagify-settings .form-table th span{cursor:pointer}.imagify-middle th{padding-top:35px}.imagify-settings .button,.imagify-welcome .button,.imagify-notice .button,.imagify-button.imagify-button,.imagify-button-primary.imagify-button-primary,.imagify-button-secondary.imagify-button-secondary{height:auto;padding:8px 20px;border:0 none;font-size:14px;font-weight:600;box-shadow:0 3px 0 rgba(0,0,0,.15);border-radius:3px;cursor:pointer;transition:all .275s}.imagify-notice .button-mini{padding:2px 10px;font-size:13px}.button-primary.button-mini{padding:2px 10px}.imagify-settings .button.button-mini-flat{padding:3px 6px 5px;font-size:12px;box-shadow:none!important;line-height:1.2}.imagify-settings .button.button-mini-flat:hover,.imagify-settings .button.button-mini-flat:focus{box-shadow:none!important}.imagify-title .button-ghost.button-ghost,.imagify-button-ghost.imagify-button-ghost{padding:2px 9px;border:1px solid #40B1D0;font-size:12px;font-weight:normal;color:#40B1D0;background:transparent;box-shadow:none}.imagify-title .button-ghost.button-ghost:hover,.imagify-title .button-ghost.button-ghost:focus,.imagify-button-ghost.imagify-button-ghost:hover,.imagify-button-ghost.imagify-button-ghost:focus{border-color:transparent;color:#000;background:#40B1D0}.imagify-button-ghost.imagify-button-ghost:hover,.imagify-button-ghost.imagify-button-ghost:focus{color:#FFF}.imagify-button-medium.imagify-button-medium{text-transform:uppercase;letter-spacing:0.1em;padding:3px 10px;font-weight:bold}.imagify-button-medium.imagify-button-ghost{border-width:2px}.button .dashicons{margin-right:5px;vertical-align:middle}.imagify-settings .button-primary.button-primary,.imagify-welcome .button-primary.button-primary,.imagify-button-primary.imagify-button-primary{background:#40B1D0;color:#FFF;box-shadow:0 3px 0 rgba(51,142,166,1);text-shadow:0 -1px 1px #006799,1px 0 1px #006799,0 1px 1px #006799!important}.imagify-button-secondary.imagify-button-secondary{background:#8BC34A;color:#FFF;box-shadow:0 3px 0 #6F9C3B;text-shadow:0 -1px 1px #6F9C3B,1px 0 1px #6F9C3B,0 1px 1px #6F9C3B!important}.imagify-settings .button-primary:hover,.imagify-settings .button-primary:focus,.imagify-welcome .button-primary:hover,.imagify-welcome .button-primary:focus,.imagify-button-primary.imagify-button-primary:hover,.imagify-button-primary.imagify-button-primary:focus{background:rgb(51,142,166);box-shadow:0 3px 0 rgb(31,122,146)}.imagify-button-secondary.imagify-button-secondary:hover,.imagify-button-secondary.imagify-button-secondary:focus{background:#6F9C3B;color:#FFF}.imagify-button-light.imagify-button-light{background:#FFF;color:#4a4a4a;box-shadow:0 2px 0 rgba(0,0,0,.2)}.imagify-button-light.imagify-button-light:hover,.imagify-button-light.imagify-button-light:focus{color:#FFF;background:rgba(0,0,0,.2)}.imagify-section-positive .imagify-button-light{color:#709A41}.imagify-button.imagify-button-big{font-size:15px;padding:11px 30px}.imagify-button-big .dashicons{font-size:1.45em;margin-right:6px;margin-left:-4px}.imagify-settings .button .dashicons,.imagify-welcome .button .dashicons,.imagify-notice .button .dashicons,.imagify-button.imagify-button .dashicons,.imagify-button-primary.imagify-button-primary .dashicons,.imagify-button-secondary.imagify-button-secondary .dashicons{vertical-align:middle}.button-text{display:inline-block;vertical-align:middle}#imagify-bulk-action{padding:11px 20px}.wp_attachment_image .imagify-button-primary,.media-frame-content .imagify-button-primary{float:left;padding:0 10px 1px;margin:0 5px 2px 0;font-size:13px;line-height:26px;box-shadow:0 3px 0 rgba(51,142,166,1)}.imagify-settings input[type="text"]{color:#4A4A4A;font-weight:600;box-shadow:none}.imagify-settings div.submit.submit{padding-left:235px;padding-top:40px}.imagify-settings p.submit{float:left;margin-top:0}.imagify-settings p.submit .button{margin:0 5px}@media (max-width:850px){.imagify-settings div.submit{padding-left:0}.imagify-settings p.submit{text-align:center}}.imagify-title.imagify-title{position:relative;padding:30px 50px;font-size:23px;background:#2E3243;color:#FFF}.imagify-settings .imagify-title + .imagify-notice{margin:0;border-right:1px solid #D9D9D9;padding-top:15px;padding-bottom:15px}.imagify-logo{vertical-align:top}.imagify-sub-header,.imagify-sub-title.imagify-sub-title,.imagify-settings div.submit,.imagify-section{margin:0;padding:20px;background:#F2F5F7}.imagify-sub-title.imagify-sub-title,.imagify-section-positive{padding-left:40px}.imagify-section-positive{background:#8cc152;color:#FFF}.imagify-section-positive p{color:#FFF}.imagify-section-gray{background:#D9E4EB}.imagify-section-gray .imagify-count-title{color:#4a4a4a}.imagify-section p:first-child{margin-top:0}.imagify-section p:last-child{margin-bottom:0}p.imagify-section-title.imagify-section-title{font-size:20px;margin-top:-.3em;margin-bottom:-.6em}.imagify-bulk-info{margin:1em 1em 1em 5px;transition:margin .3s}@media (max-width:850px){.imagify-bulk-info{margin:1em}}.imagify-bulk-info p{display:inline-block;text-align:left;width:400px;max-width:100%;font-weight:bold}@media (min-width:1500px){.imagify-settings div.submit{display:table;width:100%}.imagify-settings div.submit > *{display:table-cell;vertical-align:middle}.imagify-bulk-info{padding:0 25px;text-align:right}}.imagify-settings div.submit{margin-top:2em;padding:20px 0}.imagify-sub-header th{text-align:right}.imagify-sub-header .form-table{margin:0}.imagify-sub-header th,.imagify-sub-header td{padding-top:0;padding-bottom:0}[for="api_key"]{padding-top:5px}.imagify-notice .imagify-rate-us.imagify-rate-us{position:relative;bottom:0;right:0;text-align:left}.imagify-notice .imagify-rate-us .stars{margin:0}.imagify-rate-us.imagify-rate-us{position:absolute;bottom:50%;right:20px;text-align:right;margin-bottom:-2.4em;color:#FFF}.imagify-rate-us a{color:#40B1D0}.imagify-rate-us .stars{display:inline-block;margin:2px 0 0 10px;text-decoration:none;letter-spacing:.2em;vertical-align:-1px}.imagify-rate-us .stars .dashicons:before{font-size:18px}.imagify-rate-us a:hover,.imagify-rate-us a:focus{color:#FEE102}@media (max-width:1220px){.imagify-rate-us.imagify-rate-us{position:static;margin-bottom:0;text-align:left}.imagify-rate-us.imagify-rate-us br{display:none}.imagify-rate-us .stars{display:block;margin-left:0}}.imagify-rkt-notice.imagify-rkt-notice{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;-ms-grid-row-align:center;align-items:center;padding:10px 45px 10px 0;border:0 none;box-shadow:none;color:#FFF;background:#412355}.media_page_imagify-bulk-optimization .imagify-rkt-notice{margin-left:2px;margin-right:20px}@media (max-width:782px){.media_page_imagify-bulk-optimization .imagify-rkt-notice{margin-left:0;margin-right:12px}}.imagify-rkt-notice .imagify-cross{position:absolute;right:8px;top:50%;width:22px;height:22px;padding:0;margin-top:-11px;background:transparent;color:#FD7300;border-radius:50%;transition:all .275s}.imagify-rkt-notice .imagify-cross .dashicons{position:relative;top:2px;left:1px;transition:all .275s}.imagify-rkt-notice .imagify-cross:hover{background:#FFF}.imagify-rkt-notice .imagify-cross:hover .dashicons{color:#412355}.imagify-rkt-notice .imagify-rkt-cta,.imagify-rkt-notice .imagify-rkt-logo,.imagify-rkt-notice .imagify-rkt-coupon{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}.imagify-rkt-notice .imagify-rkt-logo{width:150px!important;text-align:center;padding:0 25px 0 30px;line-height:0.8}.imagify-rkt-notice .imagify-rkt-msg{width:100%!important;padding:0 15px;font-size:14px;line-height:1.6}.imagify-rkt-notice .imagify-rkt-coupon{width:150px!important;padding:0 15px}.imagify-rkt-notice .imagify-rkt-coupon-code{padding:5px 10px;font-size:23px;font-weight:bold;border:1px dashed #F7A933;color:#F7A933}.imagify-rkt-notice .imagify-rkt-cta{width:250px!important;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;-webkit-flex-basis:200px;-ms-flex-preferred-size:200px;flex-basis:200px}.imagify-rkt-notice .button.button{position:relative;top:-1px;height:auto;font-weight:600;font-size:14px;box-shadow:0 4px 0 #B27A27;border:0 none;padding:9px 18px 9px;background:#F7A933;text-shadow:1px 1px 1px rgba(0,0,0,.2)}@media (max-width:880px){.imagify-rkt-notice{-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.imagify-rkt-notice .imagify-rkt-msg,.imagify-rkt-notice .imagify-rkt-cta,.imagify-rkt-notice .imagify-rkt-logo{text-align:left;padding:5px 15px}.imagify-cross.imagify-cross{top:8px;margin-top:0}.imagify-rkt-notice .imagify-cross .dashicons{top:1px}}.imagify-settings-section{padding:10px 20px}[id="imagify-settings"],.imagify-welcome .imagify-settings-section{border:1px solid #D9D9D9;border-top:0 none;background:#FFF}.imagify-br{line-height:2}.imagify-important{color:#F5A623}.imagify-info,.imagify-info a{color:#40B1D0;font-size:12px}.imagify-info{position:relative;display:inline-block;padding-left:25px;vertical-align:top}.imagify-info .dashicons{position:absolute;left:0;top:-1px}label + .imagify-info,label + .imagify-options-line,.imagify-visual-label{display:inline-block;max-width:70%;margin-left:15px;margin-top:2px!important;-webkit-transition:opacity .3s;transition:opacity .3s}.imagify-visual-label{vertical-align:-5px}label[for="imagify_sizes_full"] + .imagify-info{vertical-align:middle}.imagify-settings.imagify-settings [type="checkbox"]:not(:checked) + label + .imagify-options-line,.imagify-settings.imagify-settings [type="checkbox"]:not(:checked) + label .imagify-visual-label{opacity:.5}.imagify-settings.imagify-settings [type="checkbox"]:checked + label + .imagify-options-line,.imagify-settings.imagify-settings [type="checkbox"]:checked + label .imagify-visual-label{opacity:1}.imagify-checkbox-marged{max-width:500px;margin-left:45px}.imagify-settings.imagify-settings [type="checkbox"]:not(:checked),.imagify-settings.imagify-settings [type="checkbox"]:checked,.imagify-checkbox.imagify-checkbox:not(:checked),.imagify-checkbox.imagify-checkbox:checked{opacity:0.01}.imagify-settings.imagify-settings [type="checkbox"]:not(:checked):focus,.imagify-settings.imagify-settings [type="checkbox"]:checked:focus,.imagify-checkbox.imagify-checkbox:not(:checked):focus,.imagify-checkbox.imagify-checkbox:checked:focus{box-shadow:none!important;outline:none!important;border:0 none!important}.imagify-settings [type="checkbox"]:not(:checked) + label,.imagify-settings [type="checkbox"]:checked + label,.imagify-checkbox.imagify-checkbox:not(:checked) + label,.imagify-checkbox.imagify-checkbox:checked + label{position:relative;padding-left:6px;cursor:pointer;vertical-align:top}.imagify-settings [type="checkbox"]:not(:checked) + label:before,.imagify-settings [type="checkbox"]:checked + label:before,.imagify-checkbox.imagify-checkbox:not(:checked) + label:before,.imagify-checkbox.imagify-checkbox:checked + label:before{content:'';position:absolute;left:0;top:0;width:28px;height:28px;margin:0 0 0 -24px;border:2px solid #8BA6B4;background:#FFFFFF;border-radius:4px}.imagify-settings [type="checkbox"]:not(:checked) + label:after,.imagify-settings [type="checkbox"]:checked + label:after,.imagify-checkbox.imagify-checkbox:not(:checked) + label:after,.imagify-checkbox.imagify-checkbox:checked + label:after{content:"✓";position:absolute;font-size:1.4em;top:3px;left:-16px;-webkit-transition:all .2s;-moz-transition:all .2s;-ms-transition:all .2s;transition:all .2s}.imagify-settings [type="checkbox"][disabled]:not(:checked) + label:before,.imagify-settings [type="checkbox"][disabled]:checked + label:before,.imagify-checkbox.imagify-checkbox[disabled]:not(:checked) + label:before,.imagify-checkbox.imagify-checkbox[disabled]:checked + label:before{border-color:#ccc;background:#ddd}.imagify-settings [type="checkbox"]:not(:checked) + label:after,.imagify-checkbox.imagify-checkbox:not(:checked) + label:after{opacity:0;-webkit-transform:scale(0);-moz-transform:scale(0);-ms-transform:scale(0);transform:scale(0)}.imagify-settings [type="checkbox"]:checked + label:after,.imagify-checkbox.imagify-checkbox:checked + label:after{opacity:1;-webkit-transform:scale(1);-moz-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}input[id^="imagify_sizes_"]:checked + label{font-weight:bold}.medium.imagify-checkbox:not(:checked) + label:before,.medium.imagify-checkbox:checked + label:before{width:22px;height:22px;border-width:1.5px;border-radius:2px;margin-top:0}.medium.imagify-checkbox:not(:checked) + label:after,.medium.imagify-checkbox:checked + label:after{font-size:1.1em;left:-17px;top:3px}.imagify-settings .mini[type="checkbox"]:not(:checked) + label:before,.imagify-settings .mini[type="checkbox"]:checked + label:before,.mini.imagify-checkbox:not(:checked) + label:before,.mini.imagify-checkbox:checked + label:before{width:15px;height:15px;border-width:1px;border-radius:2px;margin-top:0}.imagify-settings .mini[type="checkbox"]:not(:checked) + label:after,.imagify-settings .mini[type="checkbox"]:checked + label:after,.mini.imagify-checkbox:not(:checked) + label:after,.mini.imagify-checkbox:checked + label:after{font-size:.9em;left:-21px;top:1px}.imagify-settings [type="checkbox"]:not(:checked):focus + label:before,.imagify-settings [type="checkbox"]:checked:focus + label:before,.imagify-checkbox.imagify-checkbox:not(:checked):focus + label:before,.imagify-checkbox.imagify-checkbox:checked:focus + label:before{border-style:dotted;border-color:#40b1d0}.imagify-inline-options{position:relative;display:table;width:100%;max-width:600px;border-collapse:collapse}.imagify-small-options{width:300px;margin:1em auto .5em;background:#338EA6;border-radius:4px}.imagify-inline-options input[type="radio"]:not(:checked),.imagify-inline-options input[type="radio"]:checked{position:absolute;left:5px;top:5px;display:none}.imagify-inline-options input[type="radio"]:not(:checked) + label,.imagify-inline-options input[type="radio"]:checked + label{position:relative;display:table-cell;padding:13px 10px;text-align:center;font-weight:600;font-size:16px;text-transform:uppercase;letter-spacing:0.1em;color:#FFF;background:#2E3243;border-left:1px solid rgba(255,255,255,0.2);box-shadow:0 -3px 0 rgba(0,0,0,0.1) inset,inset -1px 0 0 rgba(255,255,255,0.2);z-index:2;-webkit-transition:all .275s;transition:all .275s}.imagify-small-options input[type="radio"]:not(:checked) + label,.imagify-small-options input[type="radio"]:checked + label{padding:8px 10px;font-size:13px;color:#FFF;box-shadow:none;border-left:0}.imagify-bulk-submit .imagify-inline-options input[type="radio"]:not(:checked) + label,.imagify-bulk-submit .imagify-inline-options input[type="radio"]:checked + label{margin-bottom:1.75em}.imagify-inline-options input[type="radio"]:not(:checked) + label:first-of-type,.imagify-inline-options input[type="radio"]:checked + label:first-of-type{border-radius:3px 0 0 3px}.imagify-inline-options input[type="radio"]:not(:checked) + label:last-of-type,.imagify-inline-options input[type="radio"]:checked + label:last-of-type{border-radius:0 3px 3px 0}.imagify-inline-options input[type="radio"]:checked + label{background:#8BC34A}.imagify-small-options input[type="radio"]:not(:checked) + label{background:#338EA6;color:rgba(255,255,255,.4)}.imagify-small-options input[type="radio"]:checked + label{background:#40B1D0}.imagify-inline-options .imagify-info{margin-top:15px}.imagify-btn-info{display:block;font-size:0.7em;letter-spacing:0;line-height:1;text-transform:none}#describe-resize-larger input{width:5em}.imagify-cols:after{content:"";display:table;clear:both}.imagify-col{float:left;width:50%}.imagify-main{float:left;width:70%}.imagify-sidebar{float:right;width:28%;max-width:300px}.imagify-sidebar-section{border:1px solid #BBB;background:#FFF}.imagify-sidebar-section + .imagify-sidebar-section{margin-top:2em}@media (max-width:820px){.imagify-settings{display:flex;flex-direction:column}.imagify-main{width:auto;float:none}.imagify-sidebar{order:2;float:none;width:auto;max-width:none;margin-left:0;margin-top:25px}.wp-media-products{text-align:center}.wp-media-products li{display:inline-block;width:100%;max-width:276px}}@media (min-width:1400px){.imagify-main{width:74%}}.imagify-sidebar-title{display:block;padding:20px 15px;border-bottom:1px solid #BBB;font-size:14px;font-weight:bold;color:#23282d;background:#F2F5F7}.imagify-sidebar-title img{vertical-align:top;margin-right:5px}.imagify-sidebar .wp-media-products{margin-top:0;margin-bottom:-.5em}.imagify-sidebar .wp-media-products .links{display:block;padding:85px 25px 24px;text-align:center;background-color:#2E3243;background-size:contain;background-repeat:no-repeat;background-position:50% 0;text-decoration:none}.imagify-sidebar .wp-media-products .links p{margin:1.5em auto;color:#FFF}.imagify-sidebar .wp-media-products .wprocket-link{background-image:linear-gradient(to bottom,rgba(59,30,78,0),rgba(59,30,78,0) 130px,rgba(59,30,78,1) 210px),url("../images/sidebar-wp-rocket.jpg");background-color:#3B1E4E;background-repeat:repeat-x,no-repeat}.imagify-sidebar-content{padding:10px 20px}.imagify-mark-styled{display:inline-block;padding:1px 2px 1px 4px;line-height:1.3;font-weight:bold;background:#F7A933;transform-origine:50% 50%;transform:rotateZ(-2deg) rotateX(-10deg) skewX(-2deg) skewY(-3deg);text-shadow:1px 1px 0 rgba(0,0,0,0.2)}.imagify-mark-styled span{display:inline-block;transform:rotateZ(2deg) rotateX(10deg) skewX(2deg) skewY(3deg)}.imagify-discount-code{margin:0.35em 0 .5em;display:block;font-size:2em;letter-spacing:.05em;font-weight:bold;text-align:center;text-shadow:1px 1px 0 rgba(0,0,0,0.2)}.imagify-big-text{font-size:15px;font-weight:bold}.imagify-big-text strong{font-size:20px}a.btn-rocket{display:block;font-size:1.15em;padding:12px;background:#F7A933;box-shadow:0 3px 0 #D69626;border-radius:3px;color:#FFF;text-transform:uppercase;font-weight:bold;text-shadow:1px 1px 0 rgba(0,0,0,0.2);text-decoration:none}a.btn-rocket:hover,a.btn-rocket:focus{background:darkorange;box-shadow:0 3px 0 darkorange}.imagify-welcome{margin:30px 20px 0 0}.imagify-welcome .baseline{display:inline-block;margin:.2em 0 0 2em;font-size:17px}.imagify-welcome .imagify-logo{vertical-align:middle}.imagify-welcome-remove{position:absolute;top:50%;right:15px;margin-top:-8px;color:#FFF;text-decoration:none}.imagify-columns{overflow:hidden;padding:15px 0;counter-reset:cols}.imagify-columns [class^="col-"]{float:left;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.imagify-columns .col-1-3{width:33.333%;padding-left:28px}.imagify-columns .col-2-3{width:66.666%;padding-left:28px}.imagify-columns .col-1-2{width:50%;padding:0 20px}.imagify-columns .col-overview{padding-left:20px}.imagify-columns .col-informations{width:36.6%;padding-right:30px}.imagify-columns .col-statistics{width:30%}@media (max-width:830px){.imagify-columns [class^="col-"]{float:none;margin-bottom:1.5em}.imagify-columns .col-1-3,.imagify-columns .col-1-2{width:auto;padding:0 28px;clear:both;padding-top:1em}}.imagify-columns [class^="col-"] img{float:left;margin-right:18px}.imagify-col-content{overflow:hidden}.imagify-col-title{margin:0 0 15px 0;font-size:23px}.counter .imagify-col-title:before{counter-increment:cols;content:counter(cols) ". ";color:#40B1D0}.imagify-col-desc{color:#5F758E;margin-bottom:2em}.imagify-notice.imagify-notice{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:0;margin:10px 20px 10px 2px;border:0 none;background:#2E3243;box-shadow:none;color:#FFF}@media (max-width:782px){.imagify-notice.imagify-notice,.imagify-welcome{margin-right:12px}}@media (max-width:450px){.imagify-notice.imagify-notice{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}}.wrap .imagify-notice{margin:5px 15px 2px;position:relative}.imagify-notice-logo{padding:18px 23px;background:#40B1D0}.updated .imagify-notice-logo{background:#8BC34A}.error .imagify-notice-logo{background:#D0021B}.imagify-notice-title{font-size:15px}.imagify-notice-content{padding:5px 23px}.imagify-notice-content.imagify-notice-content p{margin:0.65em 0}.imagify-notice a{color:#40B1D0}.imagify-notice a:hover,.imagify-notice a:focus{color:#FEE102}.imagify-notice code{background:rgba(0,0,0,0.4) none repeat scroll 0 0}.column-imagify_optimized_file.column-imagify_optimized_file{width:300px;text-align:center;vertical-align:middle}.column-imagify_optimized_file > *{max-width:235px;margin:0 auto}ul.imagify-datas-list.imagify-datas-list{margin:0 auto;color:#555;font-size:10px}.compat-field-imagify .label{vertical-align:top}.compat-field-imagify ul.imagify-datas-list{margin-top:7px;font-size:11px}ul.imagify-datas-list .big{font-size:12px;color:#40B1D0}.imagify-data-item{overflow:hidden}.imagify-data-item .imagify-chart{display:inline-block;top:1px;width:20px;vertical-align:middle;margin-bottom:0}li.imagify-data-item{clear:both;margin-bottom:2px}ul.imagify-datas-list .imagify-data-item span.data,ul.imagify-datas-list .imagify-data-item strong{float:left;width:50%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}ul.imagify-datas-list .imagify-data-item span.data{text-align:left;padding-right:5px}.compat-field-imagify .imagify-datas-list .imagify-data-item .data{width:130px;text-align:left;font-weight:bold}.media-sidebar .imagify-datas-list .imagify-data-item .data{width:auto;float:none}ul.imagify-datas-list .imagify-data-item strong{text-align:left;padding-left:5px}.media-sidebar .imagify-datas-list .imagify-data-item strong{width:auto;float:none}.imagify-datas-more-action.imagify-datas-more-action{margin:.4em auto;background:linear-gradient(to bottom,transparent,transparent 49%,rgba(0,0,0,.075) 50%,rgba(0,0,0,.075) 58%,transparent 58%,transparent)}.imagify-datas-more-action a{display:inline-block;padding:0 5px;background:#40B1D0;color:#FFF;text-transform:uppercase;font-size:9px;font-weight:bold;line-height:1.9;text-decoration:none}.imagify-datas-more-action a.is-open{background:#555}.imagify-datas-more-action a.is-open .dashicons{transform:rotate(180deg)}.imagify-datas-more-action a .dashicons{font-size:14px;vertical-align:middle;line-height:.8}.imagify-datas-more-action a .dashicons:before{vertical-align:middle;line-height:20px}.imagify-datas-more-action .the-text{display:inline-block;vertical-align:middle;height:20px;line-height:20px}ul.imagify-datas-details.imagify-datas-details{margin:.7em auto}.imagify-datas-details strong{color:#40B1D0}.imagify-datas-details .original{color:#555}.imagify-datas-actions-links{overflow:hidden;border-top:2px solid transparent;padding-top:5px;font-size:8px}.imagify-datas-actions-links a{position:relative;display:inline-block;padding-left:17px;text-decoration:none;font-weight:600}.compat-field-imagify .imagify-datas-actions-links{max-width:300px}.misc-pub-imagify .imagify-datas-actions-links{border-top:2px solid #f2f2f2;padding-bottom:5px}.compat-field-imagify .imagify-datas-actions-links a,.misc-pub-imagify .imagify-datas-actions-links a{font-size:10px;float:left;width:50%}.media-sidebar .compat-field-imagify .imagify-datas-actions-links a,.submitbox .misc-pub-imagify .imagify-datas-actions-links a{display:block;width:auto;float:none}.column-imagify_optimized_file .imagify-datas-actions-links a{margin:0 .7em;padding-left:15px}.imagify-datas-actions-links a:only-child{float:none;width:auto}.imagify-datas-details.is-open + .imagify-datas-actions-links{border-top-color:rgba(0,0,0,.075)}.imagify-datas-actions-links .dashicons{position:absolute;left:0;top:4px;width:12px;margin-right:2px;font-size:11px}.imagify-title > h1{padding:0}.imagify-title-right{display:table;float:right;margin-top:-10px}.imagify-title-right p{margin:0}.imagify-title-right a{font-weight:bold;text-decoration:none}.imagify-title-right > div{display:table-cell;vertical-align:middle}.imagify-title-right .dashicons-arrow-down-alt2{vertical-align:-4px;margin-left:2px}@media (max-width:1200px){.imagify-bulk .imagify-title{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.imagify-title-right{-webkit-box-ordinal-group:3;-webkit-order:2;-ms-flex-order:2;order:2;margin-top:20px}}.imagify-account,.imagify-account-link{padding-right:15px}.imagify-sep-v{width:1px;background:rgba(255,255,255,.2)}.imagify-credit-left{position:relative;min-width:280px;padding-left:15px}.imagify-meteo-icon{display:inline-block;height:38px;vertical-align:middle;margin-right:10px}.imagify-user-plan{color:#40b1d0}@media (max-width:630px){.imagify-title-right{display:block;width:auto}.imagify-title-right > div{display:block;width:auto;margin-top:10px;max-width:100%}.imagify-credit-left{padding-left:0}}.imagify-meteo-title.imagify-meteo-title{color:#FFF;font-size:17px}.imagify-space-left{display:inline-block;min-height:38px;min-width:245px;vertical-align:middle}.imagify-space-left > p{color:#FFF}[class^="imagify-bar-"],#wp-admin-bar-imagify-profile [class^="imagify-bar-"]{position:relative;height:15px;width:100%;background:#60758D;color:#FFF;font-size:10px}.base-transparent{background:transparent}[class^="imagify-bar-"].right-outside-number{-webkit-box-sizing:border-box;box-sizing:border-box;padding-right:45px}.right-outside-number .imagify-barnb{display:block;margin-right:-45px;text-align:right;font-weight:bold;line-height:15px}.imagify-progress-value,#wp-admin-bar-imagify-profile .imagify-progress-value{position:absolute;top:0;right:0;left:0;bottom:0;text-align:center;line-height:13px;font-weight:bold}.imagify-progress,#wp-admin-bar-imagify-profile .imagify-progress{height:15px}.imagify-bar-positive .imagify-progress{background:#8CC152}.imagify-bar-positive .imagify-barnb{color:#8CC152}.imagify-bar-negative .imagify-progress{background:#73818C}.imagify-bar-negative .imagify-barnb{color:#73818C}.imagify-bar-neutral .imagify-progress{background:#F5A623}.imagify-space-left .imagify-bar-negative .imagify-progress{background:#D0021B}#wpadminbar #wp-admin-bar-imagify-profile *{line-height:1.5;white-space:initial}#wpadminbar #wp-admin-bar-imagify .ab-submenu{padding-bottom:0}#wpadminbar #wp-admin-bar-imagify-profile .ab-item{height:auto;padding:0 13px}#wpadminbar #wp-admin-bar-imagify-profile{min-width:200px;padding:15px 0 10px;margin-top:0.7em;background:#222}#wp-admin-bar-imagify .dashicons{font-family:"dashicons";font-size:18px;vertical-align:middle;margin:0 5px 0 0}#wp-admin-bar-imagify .button-text{display:inline-block;vertical-align:middle}#wp-admin-bar-imagify .imagify-abq-row{display:table;width:100%}#wp-admin-bar-imagify .imagify-abq-row + .imagify-abq-row{margin-top:.75em}#wp-admin-bar-imagify .imagify-abq-row > *{display:table-cell}#wp-admin-bar-imagify-profile .imagify-meteo-icon{padding-right:7px}#wp-admin-bar-imagify-profile .imagify-meteo-icon img{width:37px}#wp-admin-bar-imagify-profile .imagify-meteo-title{font-size:17px}#wp-admin-bar-imagify-profile .imagify-meteo-subs{color:#72889F}#wpadminbar #wp-admin-bar-imagify-profile strong{font-weight:bold}#wpadminbar #wp-admin-bar-imagify-profile .imagify-user-plan,#wpadminbar #wp-admin-bar-imagify-profile a{padding:0;color:#40B1D0}#wpadminbar #wp-admin-bar-imagify-profile .imagify-account-link{display:table}#wpadminbar #wp-admin-bar-imagify-profile .imagify-account-link > *{display:table-cell}#wpadminbar #wp-admin-bar-imagify-profile .imagify-space-left{max-width:210px;min-width:210px;width:210px}#wpadminbar #wp-admin-bar-imagify-profile .imagify-space-left p{font-size:12px}#wp-admin-bar-imagify-profile .imagify-error,#wp-admin-bar-imagify-profile .imagify-warning{padding:10px;margin:0 -13px -13px}#wp-admin-bar-imagify-profile .imagify-error p + p,#wp-admin-bar-imagify-profile .imagify-warning p + p{margin-top:.5em}#wp-admin-bar-imagify-profile .imagify-error p + p + p,#wp-admin-bar-imagify-profile .imagify-warning p + p + p{margin-top:1em}.btn-ghost,#wpadminbar #wp-admin-bar-imagify-profile .btn-ghost{display:inline-block;height:auto;padding:7px 10px;border:1px solid #FFF;text-align:center;background:transparent;color:#FFF;border-radius:3px;transition:all .275s}.btn-ghost:hover,.btn-ghost:focus,#wpadminbar #wp-admin-bar-imagify-profile .btn-ghost:hover,#wpadminbar #wp-admin-bar-imagify-profile .btn-ghost:focus{background:#FFF;color:#888}.imagify-list-infos{max-width:100%;width:415px}.imagify-list-infos li,.imagify-info-block{position:relative;padding:10px;padding-left:42px;background:#D9E4EB;border-radius:4px;line-height:1.6}.imagify-list-infos .imagify-alt.imagify-alt{background:#8BA7B5;color:#FFF;font-weight:bold}.imagify-list-infos li + li{margin-top:1em}.imagify-list-infos li:before,.imagify-info-block:before{content:"";position:absolute;left:13px;top:14px;height:16px;width:16px;border:1px solid #46b1ce;border-radius:10px}.imagify-list-infos li:after,.imagify-info-block:after{content:"i";position:absolute;left:20px;top:13px;font-style:italic;color:#46b1ce}.imagify-cell .imagify-info-block{padding-top:0}.imagify-cell .imagify-info-block:after{top:6px}.imagify-cell .imagify-info-block:before{top:7px}.imagify-list-infos .imagify-alt:before,.imagify-list-infos .imagify-alt:after{color:#fff;border-color:#fff}.imagify-sub-title.imagify-sub-title{font-size:23px;background:#FFF;color:#2E3243;border-left:1px solid #D9D9D9;border-right:1px solid #D9D9D9;font-weight:lighter}.imagify-sub-title .icon-bulk{margin-right:10px;vertical-align:middle}.imagify-sub-title .title-text{display:inline-block;line-height:1;vertical-align:middle}.imagify-bulk .imagify-settings-section{border:1px solid #D9D9D9;border-top:0;background:#F2F5F7;color:#4A4A4A}.imagify-bulk .imagify-settings-section p,.imagify-bulk .imagify-settings-section li,.imagify-bulk .imagify-settings-section h3{color:#4A4A4A}.imagify-bulk .imagify-settings-section h3{margin-bottom:2em}.imagify-title .imagify-tooltips{position:absolute;top:100%;left:0}.imagify-tooltips .icon-round{float:left;display:inline-block;width:28px;height:28px;border:1px solid #FFF;margin-right:8px;margin-bottom:8px;font-size:17px;font-style:italic;line-height:29px;font-weight:bold;text-align:center;border-radius:50%}.imagify-tooltips .tooltip-content{display:block;position:relative;max-width:250px;padding:7px 15px 8px;background:#2e3242;color:#FFF;font-size:10px;border-radius:3px}.imagify-tooltips.right .tooltip-content{margin-left:12px}.imagify-tooltips.bottom .tooltip-content{margin-top:4px}.imagify-inline-options label .tooltip-content{position:absolute;left:0;right:0;top:100%;text-transform:none;font-size:10px;letter-spacing:0;text-align:center}.imagify-tooltips .tooltip-content:after{content:"";position:absolute}.imagify-tooltips.right .tooltip-content:after{top:16px;left:-6px;border-right:8px solid #2e3242;border-top:6px solid transparent;border-bottom:6px solid transparent}.imagify-tooltips.bottom .tooltip-content:after{top:-5px;left:50%;margin-left:-3px;border-bottom:6px solid #2e3242;border-left:6px solid transparent;border-right:6px solid transparent}.imagify-space-tooltips .tooltip-content{max-width:280px;margin-top:20px;margin-left:0;padding:5px 15px 5px;font-size:13px;background:#40B1D0;box-shadow:0 3px 0 #338EA6}.imagify-space-tooltips .tooltip-content:after{top:-14px;left:50%;margin-left:-7px;border:0 none;border-bottom:15px solid #40B1D0;border-left:15px solid transparent;border-right:15px solid transparent}.tooltip-content.tooltip-table{display:table;width:100%}.tooltip-content.tooltip-table > *{display:table-cell;vertical-align:middle}.tooltip-content .cell-icon{width:28px}.tooltip-content .cell-icon .icon{margin-bottom:0}.tooltip-content .cell-text{padding:5px 10px 5px 0;line-height:1.3}.tooltip-content .cell-sep{width:1px;background:rgba(255,255,255,.4)}.tooltip-content .cell-cta{padding-left:10px}.tooltip-content .cell-cta a{display:block;color:#FFF;width:100%;height:100%;white-space:nowrap}.imagify-number-you-optimized .number{display:table-cell;padding-right:15px;font-size:36px;font-weight:bold;line-height:1.1;vertical-align:middle;white-space:nowrap}.imagify-number-you-optimized .text{display:table-cell;vertical-align:middle;overflow:hidden;font-size:12px}.imagify-number-you-optimized .text br{display:none}.imagify-number-you-optimized > p{display:table}.imagify-number-you-optimized{padding-bottom:0.85em;margin-bottom:1.35em;overflow:hidden;border-bottom:1px solid rgba(0,0,0,0.05)}.imagify-bars p{font-weight:bold;font-size:12px;margin-bottom:0}.imagify-bars + .imagify-number-you-optimized{border-bottom:0;padding-top:0.85em}.imagify-bars + .imagify-number-you-optimized p{color:#46b1ce}.imagify-bulk-table{margin-top:2em;max-height:600px;max-height:60vh;overflow:auto}.imagify-bulk-table table{width:100%;border-spacing:0;border-collapse:collapse;border:1px solid #D3D3D3}.imagify-bulk-table td{padding:8px 15px}.imagify-bulk-table thead tr,.imagify-bulk-table thead th{background:#2E3242}.imagify-bulk-table tfoot tr,.imagify-bulk-table tfoot th{background:#73818C}.imagify-bulk-table thead th{padding:14px 15px;text-align:left;color:#F2F5F7;font-weight:bold;font-size:14px}.imagify-bulk-table tfoot td{padding:14px 15px;color:#F9FAFA}.imagify-bulk-table tbody tr,.imagify-bulk-table tbody td{background:#FFF}.imagify-bulk-table tbody tr:nth-child(odd),.imagify-bulk-table tbody tr:nth-child(odd) td{background:#F2F5F7}.imagify-bulk-table .imagify-row-progress{display:none}.imagify-bulk-table .imagify-row-progress,.imagify-bulk-table .imagify-row-progress td{height:15px;padding:0}.imagify-bulk-table .imagify-no-uploaded-yet td{height:200px;font-size:17px;letter-spacing:.1em;word-spacing:.12em;vertical-align:middle;text-transform:uppercase;font-weight:bold;text-align:center;color:#999;background-color:#FFF}.imagify-row-complete{padding:35px 20px;margin-top:2em;background:#8BC34A;color:#FFF;text-shadow:0 0 2px rgba(0,0,0,.1)}.imagify-row-complete .imagify-ac-chart{margin-top:3px}.imagify-row-complete p{color:#FFF;margin:0}@-webkit-keyframes congrate{0%{opacity:0;-webkit-transform:scale(1)}50%{-webkit-transform:scale(1.05);opacity:1}100%{-webkit-transform:scale(1);opacity:1}}​ @keyframes congrate{0%{opacity:0;transform:scale(1)}50%{transform:scale(1.05);opacity:1}100%{transform:scale(1);opacity:1}}.imagify-row-complete.done{-webkit-animation:congrate 500ms ease-in-out;animation:congrate 500ms ease-in-out}.imagify-all-complete{margin:1.5em 0}.imagify-all-complete > div{display:inline-block;vertical-align:middle}.imagify-ac-report{min-width:310px}.imagify-ac-chart{width:46px;height:46px;float:left;margin:0 20px 0 10px}.imagify-ac-report-text{overflow:hidden}.imagify-ac-report-text p{line-height:1.3}.imagify-ac-rt-big{font-weight:bold;font-size:24px;letter-spacing:0.15em;word-spacing:0.15em;text-transform:uppercase}.imagify-ac-share{text-align:right}.imagify-ac-share-content{display:inline-block;padding:10px 15px;background:rgba(255,255,255,.2)}.imagify-ac-share-content > *{display:inline-block;vertical-align:middle}.imagify-bulk-table .imagify-ac-share-content p{margin-right:5px}.imagify-share-networks,.imagify-share-networks li{margin:0}.imagify-share-networks li{display:inline-block}.imagify-share-networks a{display:inline-block;vertical-align:-7px;margin:0 5px;text-decoration:none;color:#FFF}.imagify-cell-filename{max-width:200px}.imagify-cell-status{max-width:145px}.imagify-cell-status .dashicons-warning{margin-right:2px}.imagify-cell-thumbnails{max-width:120px}td.imagify-cell-filename{text-overflow:clip;white-space:nowrap;overflow:hidden}.imagify-bulk-table td.imagify-cell-totaloriginal{padding-right:78px}.imagiuploaded,.imagifilename{display:inline-block;vertical-align:middle}.imagifilename{font-size:12px}.imagiuploaded{width:33px;height:33px;margin-right:5px;margin-left:-8px;overflow:hidden;background:url(../images/upload-image.png) 0 0 no-repeat;background-size:cover}.imagiuploaded img{max-widht:100%;height:auto}.imagistatus{color:#8CA6B3;text-transform:uppercase;font-weight:bold}.status-compressing{color:#46B1CE}.status-error{color:#CE0B24}.status-warning{color:#f5a623}.status-complete{color:#8CC152}.imagify-error{background:#D0021B;color:#FFF}.imagify-warning,#wpadminbar .imagify-warning *{background:#f5a623;color:#FFF;text-shadow:0 0 2px rgba(0,0,0,0.2)}.imagify-bulk-table .imagify-cell-thumbnails{text-align:center}.imagify-cell-percentage,.imagify-cell-savings{color:#46B1CE;font-weight:bold}.imagify-cell-optimized{font-weight:bold}.imagify-cell-totaloriginal{text-align:right}.dashicons.rotate{-webkit-animation:icon-rotate 2.6s infinite linear;animation:icon-rotate 2.6s infinite linear}.dashicons-admin-generic{transform-origin:48.75% 51.75%}.imagify-modal{display:flex;flex-direction:column;align-items:center;justify-content:center}.js .imagify-modal{display:none;position:fixed;top:0;right:0;bottom:0;left:0;background-color:#1F2332;background-color:rgba(31,35,50,.95);z-index:99999}.imagify-modal-content{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;width:800px;max-width:95%;max-height:90vw;overflow:auto;padding:20px 25px;margin:1em auto;background:#FFF;box-shadow:1px 1px 4px rgba(0,0,0,.7);border-radius:3px}#imagify-visual-comparison .imagify-modal-content,.imagify-visual-comparison .imagify-modal-content{max-width:1400px;background:transparent;padding:5px;box-shadow:none;border-radius:0}.imagify-modal .h2{margin:.5em 0;color:#8ba6b4;font-weight:normal;font-size:24px;letter-spacing:0.075em;text-align:center}.imagify-modal .h3{color:#40b1d0;font-weight:normal;font-size:18px;letter-spacing:0.075em;text-align:center}.text-justify{text-align:justify}.imagify-modal .close-btn{display:none;visibility:hidden;position:absolute;right:20px;top:20px;font-size:1.2em;border:0;background:transparent none;border-radius:0;cursor:pointer}.imagify-modal .close-btn i{margin-left:-2px}.imagify-modal .close-btn:hover,.imagify-modal .close-btn:focus{color:#40b1d0}.js .imagify-modal .close-btn{display:block;visibility:visible}#imagify-visual-comparison .close-btn,.imagify-visual-comparison .close-btn{top:50px;right:5px;width:33px;height:33px;padding:1px 0 0 2px;border:1px solid #F2F2F2;color:#F2F2F2;line-height:19px;text-align:center;border-radius:50%}.wp_attachment_image #imagify-visual-comparison .close-btn,.imagify-visual-comparison .close-btn{top:0}.wp_attachment_image #imagify-visual-comparison .imagify-modal-content,.imagify-visual-comparison .imagify-modal-content{padding-top:40px}.imagify-modal .imagify-comparison-title{font-size:28px;margin-bottom:1em;color:#F2F2F2;text-align:left}.imagify-modal .imagify-comparison-title .twentytwenty-duo-buttons{position:static;margin:0 10px 0 15px}.imagify-comparison-title .twentytwenty-duo-buttons button{float:none;padding:6px 12px;font-size:16px;text-transform:none;border:1px solid #40B1D0;color:#888899;letter-spacing:0}.imagify-comparison-title .twentytwenty-duo-buttons button:focus{outline:none;box-shadow:none}.imagify-comparison-title .twentytwenty-duo-buttons .selected{border:1px solid #40B1D0;color:#FFF;background:#40B1D0}.imagify-comparison-levels{margin:15px 0;overflow:hidden}.imagify-comparison-levels div{display:none;min-width:175px;font-size:11px}.imagify-comparison-levels .imagify-chart,.imagify-comparison-levels .imagify-chart-container{width:25px;float:none;margin:0}.imagify-visual-comparison .imagify-chart-container canvas{width:15px!important;height:15px!important;margin-right:5px}.imagify-c-level.go-left{float:left}.imagify-c-level.go-right{float:right}.imagify-c-level.go-right,.imagify-c-level.go-left{display:table}.imagify-c-level .imagify-c-level-row{display:table-row;margin:0;color:#FFF}.imagify-c-level-row > span{display:table-cell;padding:2px 0}.imagify-c-level-row .value{text-align:right;padding-left:5px}.imagify-c-level-row .value.level{color:#40b1d0}.imagify-c-level-row .value.size{color:#8bc34a;font-weight:bold}.imagify-c-level-row .value .imagify-chart{top:1px}@-webkit-keyframes icon-rotate{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes icon-rotate{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.imagify-menu-bar-img{margin-top:1em}.imagify-modal .loader{position:absolute;top:50%;left:50%;margin:-32px 0 0 -32px;opacity:0;visibility:hidden;transition:opacity .4s}.imagify-modal .loading .loader{visibility:visible;opacity:1}.imagify-settings .imagify-visual-comparison-text{margin-top:1em;color:#40b1d0;font-weight:bold}.imagify-modal-cols,.imagify-border-styled,.imagify-offer-header,.imagify-payment-modal .imagify-modal-content,.imagify-flex-table,.imagify-tabs{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row}.imagify-modal-cols,.imagify-border-styled{-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.imagify-payment-modal{text-align:center;color:#7A8996}.imagify-payment-modal *{box-sizing:border-box}.imagify-modal-loader{position:absolute;top:0;left:0;right:0;bottom:0;background:#fff url('../images/loader-balls.svg') center no-repeat;z-index:10}.imagify-payment-modal .imagify-modal-content{width:980px;max-width:100%;min-width:925px;padding:0}.imagify-payment-modal .imagify-modal-main{width:70%}.imagify-payment-modal .imagify-modal-sidebar{width:30%;padding:15px 20px;background:#1F2332;color:#FFF}.imagify-payment-steps{padding-top:15px;margin-top:0;margin-left:0;list-style:none;counter-reset:steps}.imagify-payment-steps li{position:relative;display:inline-block;counter-increment:steps;font-weight:bold}.imagify-payment-steps li + li{margin-left:35px}.imagify-payment-steps li + li:after{content:"";position:absolute;top:19px;left:-90px;z-index:1;width:150px;height:2px;background:#E5EBEF}.imagify-payment-steps li + li.active:after{background:#40B1D0}.imagify-payment-steps li:before{display:block;position:relative;content:counter( steps,decimal );width:36px;height:36px;margin:0 auto .3em;border:2px solid #E5EBEF;text-align:center;line-height:34px;font-size:1.4em;color:#E5EBEF;background:#FFF;border-radius:50%;z-index:2}.imagify-payment-steps .active:before{color:#40B1D0;border-color:#40B1D0}.imagify-modal-section{padding:0 25px}.imagify-modal-section.section-gray{margin:1em 0;padding:10px 25px 15px;background:#F6F7FB}.imagify-tabs-contents .section-gray{padding:8px 25px 10px}.imagify-modal-section .imagify-modal-title:first-child{margin-top:.3em;margin-bottom:.5em}.imagify-modal-title{font-size:1.8em;font-weight:lighter}.imagify-border-styled{width:200px;margin:0 auto;color:#8BC34A;font-weight:bold;font-size:0.925em}.imagify-big-number{font-size:3.7em;font-weight:bold;margin:-3px 0;color:#4A4A4A;line-height:1}.imagify-border-styled:before,.imagify-border-styled:after{content:"";height:1px;background:rgba(0,0,0,.1);-webkit-flex-basis:40px;-ms-flex-preferred-size:40px;flex-basis:40px}.imagify-border-styled:before{margin-right:5px}.imagify-border-styled:after{margin-left:5px}.imagify-payment-modal strong{font-weight:bold;color:#4A4A4A}.imagify-col{-webkit-flex-basis:50%;-ms-flex-preferred-size:50%;flex-basis:50%}.imagify-modal .imagify-cols{padding:0 20px}.imagify-iconed{position:relative;text-align:left;padding-left:42px;margin-right:15px;font-weight:500}.imagify-iconed .dashicons,.imagify-iconed .icon{position:absolute;font-size:2em;left:0;top:2px;color:#40B1D0}.imagify-payment-modal .close-btn{top:10px;right:10px;width:24px;height:24px;padding:2px 0 0 4.5px;color:#FFF;background:#40B1D0;border-radius:50%;-webkit-transition:all .275s;transition:all .275s}.imagify-payment-modal .close-btn i{margin-left:-3.5px;margin-top:1px}.imagify-payment-modal .close-btn:hover{background:#F6F7FB}.imagify-offer-line{margin-top:1.5em}.imagify-offer-line + .imagify-offer-line{margin-top:0.75em}.imagify-offer-header{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:0 0 0 15px;border-radius:4px 4px 0 0;-webkit-transition:all .275s;transition:all .275s}.imagify-offer-header.imagify-offer-header.imagify-offer-header .imagify-inline-options label:last-child{border-radius:0 4px 0 0}.imagify-offer-header .imagify-inline-options{width:auto}.imagify-offer-title{font-weight:bold;margin:0}.imagify-offer-header,.imagify-offer-header .imagify-inline-options input[type="radio"]:not(:checked) + label{background:#E5EBEF}.imagify-offer-onetime .imagify-offer-header{padding-top:8px;padding-bottom:8px}.imagify-offer-header .imagify-inline-options input[type="radio"]:not(:checked) + label,.imagify-offer-header .imagify-inline-options input[type="radio"]:checked + label{position:relative;padding:7px 30px;font-size:1em;letter-spacing:0.05em;color:inherit;box-shadow:0 0 0;border-radius:0}.imagify-offer-header .imagify-inline-options input[type="radio"]:checked + label{background:#F6F7FB}.imagify-2-free{position:absolute;bottom:100%;left:0;right:0;padding:2px 10px;margin-bottom:8px;font-size:0.8em;letter-spacing:0;text-transform:none;text-align:center;color:#FFF;background:#10121A;border-radius:2px}.imagify-2-free:after{content:"";position:absolute;left:50%;bottom:-3px;margin-left:-3px;border-top:3px solid #10121A;border-left:3px solid transparent;border-right:3px solid transparent}.imagify-2-free.imagify-b-right{bottom:auto;left:100%;right:-100%;margin-bottom:0;margin-left:8px}.imagify-2-free.imagify-b-right:after{left:-3px;bottom:auto;top:50%;margin-top:-3px;margin-left:0;border-right:3px solid #10121A;border-top:3px solid transparent;border-bottom:3px solid transparent;border-left:0}.imagify-2-free.imagify-b-bottom{bottom:-100%;left:0;right:0;margin-top:8px}.imagify-2-free.imagify-b-bottom:after{top:-3px;bottom:auto;border-bottom:3px solid #10121A;border-left:3px solid transparent;border-right:3px solid transparent;border-top:0}.imagify-offer-content{text-align:left;background:#F6F7FB;border-radius:0 0 4px 4px;-webkit-transition:all .275s;transition:all .275s}.imagify-offer-onetime .imagify-offer-content{padding:10px 0}div.imagify-col-checkbox{position:relative;width:35.5%;padding-top:10px;padding-bottom:7px}.imagify-col-checkbox label{display:block}.imagify-col-checkbox .imagify-checkbox.imagify-checkbox:not(:checked),.imagify-col-checkbox .imagify-checkbox.imagify-checkbox:checked{position:absolute;top:50%;left:6px;margin:-8px 0 0 0}.imagify-col-checkbox .imagify-checkbox.imagify-checkbox:not(:checked) + label:before,.imagify-col-checkbox .imagify-checkbox.imagify-checkbox:checked + label:before{margin:0;top:-3px;left:6px;-webkit-transition:all .275s;transition:all .275s}.imagify-col-checkbox .imagify-checkbox.imagify-checkbox:not(:checked) + label:after,.imagify-col-checkbox .imagify-checkbox.imagify-checkbox:checked + label:after{top:0;left:13px}.imagify-col-checkbox label{padding-left:55px!important}.imagify-offer-size{font-size:30px;color:#2E3243;font-weight:bold;-webkit-transition:all .275s;transition:all .275s}.imagify-offer-by{font-size:10px;-webkit-transition:all .275s;transition:all .275s}.imagify-approx{display:block;font-size:11px;line-height:1.2;-webkit-transition:all .275s;transition:all .275s}div.imagify-col-price{width:30%}.imagify-flex-table .imagify-price-block{padding-left:0;padding-right:0}.imagify-flex-table .imagify-price-complement{padding-right:0;font-size:10px;font-weight:bold}.imagify-price-block span{display:inline-block;vertical-align:middle}span.imagify-dollars{color:#1F2332;font-size:18px;font-weight:bold;vertical-align:-2px}.imagify-offer-onetime .imagify-col-price{padding-top:0}.imagify-offer-onetime .imagify-dollars{vertical-align:-7px}.imagify-price-big,.imagify-price-mini{color:#40B1D0;font-weight:bold}.imagify-price-big{font-size:36px}span.imagify-price-mini{font-size:18px;vertical-align:2px}span.imagify-price-by{font-size:10px;color:#1F2332;vertical-align:-13px;text-indent:-27px}.imagify-col-other-actions{width:18.5%;text-align:right}.imagify-col-other-actions a{font-size:11px}.imagify-offer-selected,.imagify-offer-selected .imagify-offer-title,.imagify-offer-selected .imagify-offer-size,.imagify-offer-selected .imagify-price-big,.imagify-offer-selected .imagify-price-mini,.imagify-offer-selected .imagify-price-complement,.imagify-offer-selected .imagify-col-other-actions a{color:#FFF}.imagify-offer-selected .imagify-offer-header,.imagify-offer-selected .imagify-offer-header .imagify-inline-options input[type="radio"]:not(:checked) + label{background:#338EA6}.imagify-offer-selected .imagify-offer-header .imagify-inline-options input[type="radio"]:checked + label{background:#40B1D0}.imagify-offer-selected .imagify-offer-content{background:#40B1D0}.imagify-offer-selected .imagify-checkbox.imagify-checkbox:not(:checked) + label:before,.imagify-offer-selected .imagify-checkbox.imagify-checkbox:checked + label:before{border-color:#FFF;background:#40B1D0}.imagify-offer-selected .imagify-offer-by{color:#2E3243}.imagify-submit-line{margin:2em 0}.imagify-submit-line button{font-size:16px}.imagify-footer-lines{width:500px;max-width:100%;margin:2em auto 1em;font-size:0.85em;line-height:1.6}.imagify-year-selected .imagify-switch-my .imagify-yearly{display:block}.imagify-year-selected .imagify-switch-my .imagify-monthly{display:none}.imagify-month-selected .imagify-switch-my .imagify-yearly{display:none}.imagify-month-selected .imagify-switch-my .imagify-monthly{display:block}.imagify-flex-table{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.imagify-flex-table > *{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;padding:7px 15px}div.imagify-col-details{width:22%;padding-left:25px}.imagify-col-details p{margin:0}.imagify-pricing-table{margin:0 20px}.imagify-pricing-table .imagify-offer-line{padding:.6em 0;border:2px solid #E8EEF0;text-align:left;border-radius:3px}.imagify-pricing-table .imagify-offer-line:first-child{margin-top:.75em}.imagify-pricing-table .imagify-offer-line + .imagify-offer-line{margin-top:-2px}.imagify-pricing-table .imagify-col-other-actions{width:20.5%}.imagify-pricing-table .imagify-approx{margin-left:0;line-height:0.5;margin-bottom:1em}.imagify-pricing-table .imagify-offer-selected{-webkit-transform:scale(1.03);transform:scale(1.03);background:#40B1D0;border-width:0}.imagify-pricing-table .imagify-offer-selected .imagify-approx{color:#FFF}.imagify-pricing-table .imagify-button-secondary{padding:3px 20px;box-shadow:none;text-transform:uppercase;font-size:12px;letter-spacing:0.025em}.imagify-offer-selected.imagify-offer-selected .imagify-button-secondary{border:2px solid #FFF;background:#40B1D0;box-shadow:none;text-shadow:none!important}.imagify-offer-selected.imagify-offer-selected .imagify-button-secondary:hover,.imagify-offer-selected.imagify-offer-selected .imagify-button-secondary:focus{background:#FFF;color:#40B1D0}.imagify-col .imagify-special-needs{margin-left:25px}.imagify-special-needs strong{font-size:25px;font-weight:bold;color:#40B1D0}.imagify-special-needs span{display:block;font-size:12px;margin-top:-.5em}div.imagify-col-price{position:relative}.imagify-recommend{display:none;position:absolute;left:-20px;bottom:100%;padding:0;margin-bottom:8px;color:#1F2332;font-weight:bold;font-style:italic}.imagify-offer-selected .imagify-recommend{display:block}[class*="imagify-onetime-"] .imagify-recommend{left:65px;margin-bottom:20px}.imagify-recommend:before{content:"";position:absolute;top:7px;left:-35px;width:29px;height:30px;background:url("../images/icon-arrow-choice.png") scroll 0 no-repeat;background-size:contain}@media only screen and (min-resolution:192dpi),only screen and (min-resolution:2dppx){.imagify-recommend:before{background-image:url("../images/icon-arrow-choice.svg")}}.imagify-offer-line[class*="imagify-onetime-"]{padding:0;margin:.3em 0 0}.imagify-offer-line.imagify-offer-line[class*="imagify-onetime-"]:first-child{margin-top:2em}.imagify-offer-line[class*="imagify-onetime-"] + .imagify-offer-line{margin-top:.5em}.imagify-offer-selected.imagify-offer-line[class*="imagify-onetime-"]{-webkit-transform:scale(1);transform:scale(1);border-width:2px}.imagify-offer-line[class*="imagify-onetime-"] .imagify-col-details{position:relative;overflow:hidden;width:21%;background:#1F2332;color:#FFF}.imagify-offer-selected.imagify-offer-line[class*="imagify-onetime-"] .imagify-col-details{background:#338EA6}.imagify-offer-line[class*="imagify-onetime-"] .imagify-col-details:before{content:"";position:absolute;bottom:0;right:25px;width:75px;height:54px;background:url("../images/icon-pack.png")}.imagify-offer-line[class*="imagify-onetime-"] .imagify-col-other-actions{width:30%}.imagify-offer-line[class*="imagify-onetime-"] .imagify-offer-size,.imagify-offer-line[class*="imagify-onetime-"] .imagify-approx{color:#FFF}.imagify-offer-line[class*="imagify-onetime-"] .imagify-offer-size{font-size:24px}.imagify-offer-line[class*="imagify-onetime-"] .imagify-approx{font-size:12px}.imagify-offer-line[class*="imagify-onetime-"] .imagify-price-block{padding-left:10px}.imagify-offer-line[class*="imagify-onetime-"] .imagify-dollars{vertical-align:middle}.imagify-offer-line[class*="imagify-onetime-"] .imagify-price-big{vertical-align:-5px}.imagify-offer-line[class*="imagify-onetime-"] .imagify-price-mini{vertical-align:7px}.imagify-tabs{margin-bottom:0;list-style:none;background:#E5EBEF}.imagify-modal-content .imagify-tabs{margin:1em 0 0}.imagify-tab{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;width:50%;margin:0;font-size:23px}.imagify-tab a{display:block;padding:15px 10px;color:inherit;text-decoration:none}.imagify-tab a:focus{box-shadow:none;outline:none;color:#40B1D8}.imagify-tab.imagify-current a{background:#F6F7FB}.imagify-tab-content.imagify-current{display:block}.imagify-tab-content{display:none}.imagify-tab-content .imagify-modal-section:first-child{margin-top:0}.imagify-modal-sidebar-content,.imagify-payment-modal .imagify-modal-sidebar{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.imagify-modal-sidebar-content{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1}p.imagify-modal-sidebar-title{margin-top:5px;padding-right:40px;font-size:18px;color:#FFF}.imagify-modal-testimony{margin-top:1em}.imagify-modal-testimony + .imagify-modal-testimony{margin-top:2em}@media (max-height:620px){.imagify-modal-testimony + .imagify-modal-testimony{display:none}}.imagify-modal-testimony-person{display:table;width:100%}.imagify-modal-testimony-person > *{display:table-cell;vertical-align:middle}.imagify-modal-avatar{width:114px;line-height:0}.imagify-modal-avatar img{border:2px solid #FFF;border-radius:50%;width:96px;height:96px}.imagify-modal-identity a{text-decoration:none;font-weight:bold}.imagify-modal-identity a:first-child{font-size:13px}.imagify-modal-identity a:first-child + a{display:block;font-size:10px;color:#7A8996}.imagify-modal-testimony-content p{font-size:13px;font-style:italic;line-height:1.7;color:#7A8996}.imagify-modal-sidebar-trust{margin-top:auto;padding-top:1.5em}.imagify-modal-sidebar-trust p{margin:0;font-weight:bold;font-size:12px;line-height:1.7}.imagify-modal-sidebar-trust p img{margin-right:3px;vertical-align:-2px}.imagify-modal-sidebar-trust p + p{font-size:11px}.imagify-cart{text-align:left}.imagify-cart .imagify-cart-list{border-top:1px solid rgba(122,137,150,.2);border-bottom:1px solid rgba(122,137,150,.2)}.imagify-cart .imagify-cart-label{margin-bottom:0.5em;font-size:10px;color:#2E3243}.imagify-cart-list p{margin:0;font-weight:bold}.imagify-cart-item{margin:.4em 0}.imagify-cart .imagify-cart-suggestion{margin-top:-.3em}.imagify-cart-suggestion a,.imagify-cl-description p{font-size:10px}.imagify-remove-from-cart{border:0;padding:0;width:14px;height:14px;line-height:13px;border-radius:50%;background:#40B1D0;cursor:pointer;transition:background .3s}.imagify-remove-from-cart i:before{position:relative;top:-6px;left:-3px;font-size:13px;color:#FFF}.imagify-remove-from-cart:hover,.imagify-remove-from-cart:focus{background:#D0021B}.imagify-cart .imagify-cl-remove{-webkit-box-flex:0;-webkit-flex-grow:0;-ms-flex-positive:0;flex-grow:0;width:45px}.imagify-cart .imagify-cl-name{-webkit-box-flex:0;-webkit-flex-grow:0;-ms-flex-positive:0;flex-grow:0;width:200px}.imagify-cart .imagify-cl-description{-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start;padding-top:10px}.imagify-cart .imagify-cl-price{text-align:right}#imagify-payment-iframe{width:100%;height:375px;margin-top:1em;background:#f6f7fb url(../images/loader-balls.svg) 50% 175px no-repeat}.imagify-success-view{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;height:100%}.imagify-success-view p{font-weight:bold;font-size:16px}.imagify-cart-emptied-item{margin:.3em auto;padding:6px 20px;background:#E6EBEF;border-radius:20px}.imagify-cart-emptied-item.imagify-cart-emptied-item p{font-weight:bold}.imagify-cart-emptied-item a{color:#40b1d0;float:right;font-weight:bold}
1
+ .imagify-start{float:left}.imagify-end{float:right}.imagify-txt-start.imagify-txt-start.imagify-txt-start{text-align:left}.imagify-txt-center.imagify-txt-center.imagify-txt-center{text-align:center}.imagify-txt-end.imagify-txt-end.imagify-txt-end{text-align:right}.imagify-mt1.imagify-mt1{margin-top:1em}.imagify-mb1.imagify-mb1{margin-bottom:1em}.imagify-mr1.imagify-mr1{margin-right:1em}.imagify-ml2.imagify-ml2{margin-left:2em}.imagify-mr2.imagify-mr2{margin-right:2em}.imagify-pl0.imagify-pl0.imagify-pl0{padding-left:0}.imagify-pr1.imagify-pr1{padding-right:1em}.imagify-oh{overflow:hidden}.imagify-clear{clear:both}.imagify-clearfix:after,.imagify-inline-options:after{content:"";display:table;clear:both}.imagify-count.imagify-count{counter-reset:num}.imagify-count .imagify-count-title{font-weight:bold}.imagify-default-settings{color:#73818c;font-weight:normal}.imagify-count .imagify-count-title:before{counter-increment:num 1;content:counter(num) ". "}.imagify-table{display:table;width:100%}.imagify-cell{display:table-cell;padding:10px;vertical-align:top}.imagify-cell.va-top,.va-top .imagify-cell{vertical-align:top}.imagify-bulk-submit .imagify-cell{padding-top:0}body.imagify-modal-is-open{overflow:hidden}.imagify-plugins-error{overflow:hidden;padding-left:20px;list-style-type:disc}.imagify-plugins-error li{width:300px;line-height:30px}@media (max-width:570px){.imagify-plugins-error li{width:auto}}.imagify-notice-dismiss.notice-dismiss{text-decoration:none}.imagify-spinner{display:inline-block;width:20px;height:20px;margin-right:5px;vertical-align:middle;background:rgba(0,0,0,0) url("../images/spinner.gif") no-repeat scroll 0 0 / 20px 20px;opacity:0.7}.spinner.imagify-hidden{width:0;margin:4px 0 0 0}.misc-pub-section.misc-pub-imagify h4{font-size:14px;margin-top:5px;margin-bottom:0}.imagify-sweet-alert button{margin-top:17px !important;height:45px !important;letter-spacing:3px;text-transform:uppercase !important;border-radius:3px !important;background-color:#40b1d0 !important;box-shadow:0 3px 0 #338ea6 !important}.imagify-sweet-alert button.swal2-cancel{background:#777 !important;box-shadow:0 3px 0 #444 !important}.imagify-sweet-alert-signup .sa-confirm-button-container{width:40%}.imagify-sweet-alert-signup button{width:100%;padding:0 !important}.imagify-sweet-alert .sa-input-error:before,.imagify-sweet-alert .sa-input-error:after,.imagify-sweet-alert .la-ball-fall{top:25% !important}#wpwrap{transition:all .4s}.stop-scrolling #wpwrap{filter:blur(2px)}.stop-scrolling #wpwrap #wpadminbar{top:-32px}.imagify-primary.imagify-primary.imagify-primary{color:#40b1d0}.imagify-secondary.imagify-secondary.imagify-secondary{color:#8cc152}#imagify-check-api-container{font-weight:bold}#imagify-check-api-container .dashicons{font-size:25px}#imagify-check-api-container .dashicons-no:before{color:#f06e57;vertical-align:-1px}#imagify-check-api-container .dashicons-yes:before{color:#8BC34A;vertical-align:-1px}.imagify-valid{color:#8BC34A}.imagify-chart{width:33.33%;position:relative}#imagify-overview-chart-legend{overflow:hidden}.imagify-doughnut-legend{margin-top:38px;list-style:none}.imagify-doughnut-legend li{display:block;padding-left:30px;position:relative;margin-bottom:15px;border-radius:5px;padding:3px 8px 2px 31px;font-size:14px;font-weight:600;cursor:default;-webkit-transition:background-color 200ms ease-in-out;-moz-transition:background-color 200ms ease-in-out;-o-transition:background-color 200ms ease-in-out;transition:background-color 200ms ease-in-out}.imagify-doughnut-legend li span{display:block;position:absolute;left:0;top:0;width:25px;height:25px;border-radius:50%}.imagify-chart{float:left;margin-bottom:20px}td .imagify-chart{float:none;margin-bottom:0}.imagify-chart-container{position:relative;width:180px;float:left;margin-right:20px}.imagify-global-optim-phrase{width:180px;padding-top:20px;font-size:14px;font-weight:bold;text-align:center}.imagify-total-percent{color:#46b1ce}td .imagify-chart-container{width:18px;height:18px;float:none;margin-right:10px}td .imagify-chart{top:4px}.imagify-chart-percent{position:absolute;left:0;right:0;top:50%;margin-top:-14px;text-align:center;font-size:55px;font-weight:bold;color:#46B1CE}.imagify-chart-percent span{font-size:20px;vertical-align:super}.media_page_imagify-bulk-optimization .notice,body[class*="_imagify-ngg-bulk-optimization"] .notice,.settings_page_imagify .notice{margin-right:20px;margin-left:2px}.media_page_imagify-bulk-optimization .media-item,body[class*="_imagify-ngg-bulk-optimization"] .media-item{margin:0}.media_page_imagify-bulk-optimization .media-item .progress,body[class*="_imagify-ngg-bulk-optimization"] .media-item .progress{float:none;width:100%;margin:0;background:#1F2331;box-shadow:0;border-radius:0}.media_page_imagify-bulk-optimization .media-item .percent,body[class*="_imagify-ngg-bulk-optimization"] .media-item .percent{width:auto;padding:0 5px;line-height:1.85;font-size:12px}.media_page_imagify-bulk-optimization .media-item .progress,body[class*="_imagify-ngg-bulk-optimization"] .media-item .progress,body[class*="_imagify-ngg-bulk-optimization"] .media-item .percent,.media_page_imagify-bulk-optimization .media-item .percent{text-align:right}.media_page_imagify-bulk-optimization .media-item .progress .bar,body[class*="_imagify-ngg-bulk-optimization"] .media-item .progress .bar{width:1px;height:22px;margin-top:0;background:#46B1CE;border-radius:0;overflow:visible;-webkit-transition:width .5s;transition:width .5s}.imagify-settings a,.imagify-settings .button,.imagify-settings input,.imagify-welcome a,.imagify-welcome .button,.imagify-weolcome input{-webkit-transition:all .275s;transition:all .275s}.imagify-settings a{color:#40b1d0}.imagify-options-title{padding-bottom:.5em;border-bottom:3px solid #F2F2F2;font-size:13px;font-weight:500;text-transform:uppercase;letter-spacing:0.025em;color:#40b1d0}.imagify-settings,.imagify-settings p,.imagify-settings th{color:#5F758E}@media (max-width:782px){.imagify-settings .form-table th{padding-top:2em;padding-bottom:.5em}}.imagify-settings .form-table td{vertical-align:top}.imagify-settings .form-table th span{cursor:pointer}.imagify-middle th{padding-top:35px}.imagify-settings .button,.imagify-welcome .button,.imagify-notice .button,.imagify-button.imagify-button,.imagify-button-primary.imagify-button-primary,.imagify-button-secondary.imagify-button-secondary{height:auto;padding:8px 20px;border:0 none;font-size:14px;font-weight:600;box-shadow:0 3px 0 rgba(0,0,0,.15);border-radius:3px;cursor:pointer;transition:all .275s}.imagify-notice .button-mini{padding:2px 10px;font-size:13px}.button-primary.button-mini{padding:2px 10px}.imagify-settings .button.button-mini-flat{padding:3px 6px 5px;font-size:12px;box-shadow:none!important;line-height:1.2}.imagify-settings .button.button-mini-flat:hover,.imagify-settings .button.button-mini-flat:focus{box-shadow:none!important}.imagify-title .button-ghost.button-ghost,.imagify-button-ghost.imagify-button-ghost{padding:2px 9px;border:1px solid #40B1D0;font-size:12px;font-weight:normal;color:#40B1D0;background:transparent;box-shadow:none}.imagify-title .button-ghost.button-ghost:hover,.imagify-title .button-ghost.button-ghost:focus,.imagify-button-ghost.imagify-button-ghost:hover,.imagify-button-ghost.imagify-button-ghost:focus{border-color:transparent;color:#000;background:#40B1D0}.imagify-button-ghost.imagify-button-ghost:hover,.imagify-button-ghost.imagify-button-ghost:focus{color:#FFF}.imagify-button-medium.imagify-button-medium{text-transform:uppercase;letter-spacing:0.1em;padding:3px 10px;font-weight:bold}.imagify-button-medium.imagify-button-ghost{border-width:2px}.button .dashicons{margin-right:5px;vertical-align:middle}.imagify-settings .button-primary.button-primary,.imagify-welcome .button-primary.button-primary,.imagify-button-primary.imagify-button-primary{background:#40B1D0;color:#FFF;box-shadow:0 3px 0 rgba(51,142,166,1);text-shadow:0 -1px 1px #006799,1px 0 1px #006799,0 1px 1px #006799!important}.imagify-button-secondary.imagify-button-secondary{background:#8BC34A;color:#FFF;box-shadow:0 3px 0 #6F9C3B;text-shadow:0 -1px 1px #6F9C3B,1px 0 1px #6F9C3B,0 1px 1px #6F9C3B!important}.imagify-settings .button-primary:hover,.imagify-settings .button-primary:focus,.imagify-welcome .button-primary:hover,.imagify-welcome .button-primary:focus,.imagify-button-primary.imagify-button-primary:hover,.imagify-button-primary.imagify-button-primary:focus{background:rgb(51,142,166);box-shadow:0 3px 0 rgb(31,122,146)}.imagify-button-secondary.imagify-button-secondary:hover,.imagify-button-secondary.imagify-button-secondary:focus{background:#6F9C3B;color:#FFF}.imagify-button-light.imagify-button-light{background:#FFF;color:#4a4a4a;box-shadow:0 2px 0 rgba(0,0,0,.2)}.imagify-button-light.imagify-button-light:hover,.imagify-button-light.imagify-button-light:focus{color:#FFF;background:rgba(0,0,0,.2)}.imagify-section-positive .imagify-button-light{color:#709A41}.imagify-button.imagify-button-big{font-size:15px;padding:11px 30px}.imagify-button-big .dashicons{font-size:1.45em;margin-right:6px;margin-left:-4px}.imagify-settings .button .dashicons,.imagify-welcome .button .dashicons,.imagify-notice .button .dashicons,.imagify-button.imagify-button .dashicons,.imagify-button-primary.imagify-button-primary .dashicons,.imagify-button-secondary.imagify-button-secondary .dashicons{vertical-align:middle}.button-text{display:inline-block;vertical-align:middle}#imagify-bulk-action{padding:11px 20px}.wp_attachment_image .imagify-button-primary,.media-frame-content .imagify-button-primary{float:left;padding:0 10px 1px;margin:0 5px 2px 0;font-size:13px;line-height:26px;box-shadow:0 3px 0 rgba(51,142,166,1)}.imagify-settings input[type="text"]{color:#4A4A4A;font-weight:600;box-shadow:none}.imagify-settings div.submit.submit{padding-left:235px;padding-top:40px}.imagify-settings p.submit{float:left;margin-top:0}.imagify-settings p.submit .button{margin:0 5px}@media (max-width:850px){.imagify-settings div.submit{padding-left:0}.imagify-settings p.submit{text-align:center}}.imagify-title.imagify-title{position:relative;padding:30px 50px;font-size:23px;background:#2E3243;color:#FFF}.imagify-settings .imagify-title + .imagify-notice{margin:0;border-right:1px solid #D9D9D9;padding-top:15px;padding-bottom:15px}.imagify-logo{vertical-align:top}.imagify-sub-header,.imagify-sub-title.imagify-sub-title,.imagify-settings div.submit,.imagify-section{margin:0;padding:20px;background:#F2F5F7}.imagify-sub-title.imagify-sub-title,.imagify-section-positive{padding-left:40px}.imagify-section-positive{background:#8cc152;color:#FFF}.imagify-section-positive p{color:#FFF}.imagify-section-gray{background:#D9E4EB}.imagify-section-gray .imagify-count-title{color:#4a4a4a}.imagify-section p:first-child{margin-top:0}.imagify-section p:last-child{margin-bottom:0}p.imagify-section-title.imagify-section-title{font-size:20px;margin-top:-.3em;margin-bottom:-.6em}.imagify-bulk-info{margin:1em 1em 1em 5px;transition:margin .3s}@media (max-width:850px){.imagify-bulk-info{margin:1em}}.imagify-bulk-info p{display:inline-block;text-align:left;width:400px;max-width:100%;font-weight:bold}@media (min-width:1500px){.imagify-settings div.submit{display:table;width:100%}.imagify-settings div.submit > *{display:table-cell;vertical-align:middle}.imagify-bulk-info{padding:0 25px;text-align:right}}.imagify-settings div.submit{margin-top:2em;padding:20px 0}.imagify-sub-header th{text-align:right}.imagify-sub-header .form-table{margin:0}.imagify-sub-header th,.imagify-sub-header td{padding-top:0;padding-bottom:0}[for="api_key"]{padding-top:5px}.imagify-notice .imagify-rate-us.imagify-rate-us{position:relative;bottom:0;right:0;text-align:left}.imagify-notice .imagify-rate-us .stars{margin:0}.imagify-rate-us.imagify-rate-us{position:absolute;bottom:50%;right:20px;text-align:right;margin-bottom:-2.4em;color:#FFF}.imagify-rate-us a{color:#40B1D0}.imagify-rate-us .stars{display:inline-block;margin:2px 0 0 10px;text-decoration:none;letter-spacing:.2em;vertical-align:-1px}.imagify-rate-us .stars .dashicons:before{font-size:18px}.imagify-rate-us a:hover,.imagify-rate-us a:focus{color:#FEE102}@media (max-width:1220px){.imagify-rate-us.imagify-rate-us{position:static;margin-bottom:0;text-align:left}.imagify-rate-us.imagify-rate-us br{display:none}.imagify-rate-us .stars{display:block;margin-left:0}}.imagify-rkt-notice.imagify-rkt-notice{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;-ms-grid-row-align:center;align-items:center;padding:10px 45px 10px 0;border:0 none;box-shadow:none;color:#FFF;background:#412355}.media_page_imagify-bulk-optimization .imagify-rkt-notice{margin-left:2px;margin-right:20px}@media (max-width:782px){.media_page_imagify-bulk-optimization .imagify-rkt-notice{margin-left:0;margin-right:12px}}.imagify-rkt-notice .imagify-cross{position:absolute;right:8px;top:50%;width:22px;height:22px;padding:0;margin-top:-11px;background:transparent;color:#FD7300;border-radius:50%;transition:all .275s}.imagify-rkt-notice .imagify-cross .dashicons{position:relative;top:2px;left:1px;transition:all .275s}.imagify-rkt-notice .imagify-cross:hover{background:#FFF}.imagify-rkt-notice .imagify-cross:hover .dashicons{color:#412355}.imagify-rkt-notice .imagify-rkt-cta,.imagify-rkt-notice .imagify-rkt-logo,.imagify-rkt-notice .imagify-rkt-coupon{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}.imagify-rkt-notice .imagify-rkt-logo{width:150px!important;text-align:center;padding:0 25px 0 30px;line-height:0.8}.imagify-rkt-notice .imagify-rkt-msg{width:100%!important;padding:0 15px;font-size:14px;line-height:1.6}.imagify-rkt-notice .imagify-rkt-coupon{width:150px!important;padding:0 15px}.imagify-rkt-notice .imagify-rkt-coupon-code{padding:5px 10px;font-size:23px;font-weight:bold;border:1px dashed #F7A933;color:#F7A933}.imagify-rkt-notice .imagify-rkt-cta{width:250px!important;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;-webkit-flex-basis:200px;-ms-flex-preferred-size:200px;flex-basis:200px}.imagify-rkt-notice .button.button{position:relative;top:-1px;height:auto;font-weight:600;font-size:14px;box-shadow:0 4px 0 #B27A27;border:0 none;padding:9px 18px 9px;background:#F7A933;text-shadow:1px 1px 1px rgba(0,0,0,.2)}@media (max-width:880px){.imagify-rkt-notice{-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.imagify-rkt-notice .imagify-rkt-msg,.imagify-rkt-notice .imagify-rkt-cta,.imagify-rkt-notice .imagify-rkt-logo{text-align:left;padding:5px 15px}.imagify-cross.imagify-cross{top:8px;margin-top:0}.imagify-rkt-notice .imagify-cross .dashicons{top:1px}}.imagify-settings-section{padding:10px 20px}[id="imagify-settings"],.imagify-welcome .imagify-settings-section{border:1px solid #D9D9D9;border-top:0 none;background:#FFF}.imagify-br{line-height:2}.imagify-important{color:#F5A623}.imagify-info,.imagify-info a{color:#40B1D0;font-size:12px}.imagify-info{position:relative;display:inline-block;padding-left:25px;vertical-align:top}.imagify-info .dashicons{position:absolute;left:0;top:-1px}label + .imagify-info,label + .imagify-options-line,.imagify-visual-label{display:inline-block;max-width:70%;margin-left:15px;margin-top:2px!important;-webkit-transition:opacity .3s;transition:opacity .3s}.imagify-visual-label{vertical-align:-5px}label[for="imagify_sizes_full"] + .imagify-info{vertical-align:middle}.imagify-settings.imagify-settings [type="checkbox"]:not(:checked) + label + .imagify-options-line,.imagify-settings.imagify-settings [type="checkbox"]:not(:checked) + label .imagify-visual-label{opacity:.5}.imagify-settings.imagify-settings [type="checkbox"]:checked + label + .imagify-options-line,.imagify-settings.imagify-settings [type="checkbox"]:checked + label .imagify-visual-label{opacity:1}.imagify-checkbox-marged{max-width:500px;margin-left:45px}.imagify-settings.imagify-settings [type="checkbox"]:not(:checked),.imagify-settings.imagify-settings [type="checkbox"]:checked,.imagify-checkbox.imagify-checkbox:not(:checked),.imagify-checkbox.imagify-checkbox:checked{opacity:0.01}.imagify-settings.imagify-settings [type="checkbox"]:not(:checked):focus,.imagify-settings.imagify-settings [type="checkbox"]:checked:focus,.imagify-checkbox.imagify-checkbox:not(:checked):focus,.imagify-checkbox.imagify-checkbox:checked:focus{box-shadow:none!important;outline:none!important;border:0 none!important}.imagify-settings [type="checkbox"]:not(:checked) + label,.imagify-settings [type="checkbox"]:checked + label,.imagify-checkbox.imagify-checkbox:not(:checked) + label,.imagify-checkbox.imagify-checkbox:checked + label{position:relative;padding-left:6px;cursor:pointer;vertical-align:top}.imagify-settings [type="checkbox"]:not(:checked) + label:before,.imagify-settings [type="checkbox"]:checked + label:before,.imagify-checkbox.imagify-checkbox:not(:checked) + label:before,.imagify-checkbox.imagify-checkbox:checked + label:before{content:'';position:absolute;left:0;top:0;width:28px;height:28px;margin:0 0 0 -24px;border:2px solid #8BA6B4;background:#FFFFFF;border-radius:4px}.imagify-settings [type="checkbox"]:not(:checked) + label:after,.imagify-settings [type="checkbox"]:checked + label:after,.imagify-checkbox.imagify-checkbox:not(:checked) + label:after,.imagify-checkbox.imagify-checkbox:checked + label:after{content:"✓";position:absolute;font-size:1.4em;top:3px;left:-16px;-webkit-transition:all .2s;-moz-transition:all .2s;-ms-transition:all .2s;transition:all .2s}.imagify-settings [type="checkbox"][disabled]:not(:checked) + label:before,.imagify-settings [type="checkbox"][disabled]:checked + label:before,.imagify-checkbox.imagify-checkbox[disabled]:not(:checked) + label:before,.imagify-checkbox.imagify-checkbox[disabled]:checked + label:before{border-color:#ccc;background:#ddd}.imagify-settings [type="checkbox"]:not(:checked) + label:after,.imagify-checkbox.imagify-checkbox:not(:checked) + label:after{opacity:0;-webkit-transform:scale(0);-moz-transform:scale(0);-ms-transform:scale(0);transform:scale(0)}.imagify-settings [type="checkbox"]:checked + label:after,.imagify-checkbox.imagify-checkbox:checked + label:after{opacity:1;-webkit-transform:scale(1);-moz-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}input[id^="imagify_sizes_"]:checked + label{font-weight:bold}.medium.imagify-checkbox:not(:checked) + label:before,.medium.imagify-checkbox:checked + label:before{width:22px;height:22px;border-width:1.5px;border-radius:2px;margin-top:0}.medium.imagify-checkbox:not(:checked) + label:after,.medium.imagify-checkbox:checked + label:after{font-size:1.1em;left:-17px;top:3px}.imagify-settings .mini[type="checkbox"]:not(:checked) + label:before,.imagify-settings .mini[type="checkbox"]:checked + label:before,.mini.imagify-checkbox:not(:checked) + label:before,.mini.imagify-checkbox:checked + label:before{width:15px;height:15px;border-width:1px;border-radius:2px;margin-top:0}.imagify-settings .mini[type="checkbox"]:not(:checked) + label:after,.imagify-settings .mini[type="checkbox"]:checked + label:after,.mini.imagify-checkbox:not(:checked) + label:after,.mini.imagify-checkbox:checked + label:after{font-size:.9em;left:-21px;top:1px}.imagify-settings [type="checkbox"]:not(:checked):focus + label:before,.imagify-settings [type="checkbox"]:checked:focus + label:before,.imagify-checkbox.imagify-checkbox:not(:checked):focus + label:before,.imagify-checkbox.imagify-checkbox:checked:focus + label:before{border-style:dotted;border-color:#40b1d0}.imagify-inline-options{position:relative;display:table;width:100%;max-width:600px;border-collapse:collapse}.imagify-small-options{width:300px;margin:1em auto .5em;background:#338EA6;border-radius:4px}.imagify-inline-options input[type="radio"]:not(:checked),.imagify-inline-options input[type="radio"]:checked{position:absolute;left:5px;top:5px;display:none}.imagify-inline-options input[type="radio"]:not(:checked) + label,.imagify-inline-options input[type="radio"]:checked + label{position:relative;display:table-cell;padding:13px 10px;text-align:center;font-weight:600;font-size:16px;text-transform:uppercase;letter-spacing:0.1em;color:#FFF;background:#2E3243;border-left:1px solid rgba(255,255,255,0.2);box-shadow:0 -3px 0 rgba(0,0,0,0.1) inset,inset -1px 0 0 rgba(255,255,255,0.2);z-index:2;-webkit-transition:all .275s;transition:all .275s}.imagify-small-options input[type="radio"]:not(:checked) + label,.imagify-small-options input[type="radio"]:checked + label{padding:8px 10px;font-size:13px;color:#FFF;box-shadow:none;border-left:0}.imagify-bulk-submit .imagify-inline-options input[type="radio"]:not(:checked) + label,.imagify-bulk-submit .imagify-inline-options input[type="radio"]:checked + label{margin-bottom:1.75em}.imagify-inline-options input[type="radio"]:not(:checked) + label:first-of-type,.imagify-inline-options input[type="radio"]:checked + label:first-of-type{border-radius:3px 0 0 3px}.imagify-inline-options input[type="radio"]:not(:checked) + label:last-of-type,.imagify-inline-options input[type="radio"]:checked + label:last-of-type{border-radius:0 3px 3px 0}.imagify-inline-options input[type="radio"]:checked + label{background:#8BC34A}.imagify-small-options input[type="radio"]:not(:checked) + label{background:#338EA6;color:rgba(255,255,255,.4)}.imagify-small-options input[type="radio"]:checked + label{background:#40B1D0}.imagify-inline-options .imagify-info{margin-top:15px}.imagify-btn-info{display:block;font-size:0.7em;letter-spacing:0;line-height:1;text-transform:none}#describe-resize-larger input{width:5em}.imagify-cols:after{content:"";display:table;clear:both}.imagify-col{float:left;width:50%}.imagify-main{float:left;width:70%}.imagify-sidebar{float:right;width:28%;max-width:300px}.imagify-sidebar-section{border:1px solid #BBB;background:#FFF}.imagify-sidebar-section + .imagify-sidebar-section{margin-top:2em}@media (max-width:820px){.imagify-settings{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.imagify-main{width:auto;float:none}.imagify-sidebar{order:2;float:none;width:auto;max-width:none;margin-left:0;margin-top:25px}.wp-media-products{text-align:center}.wp-media-products li{display:inline-block;width:100%;max-width:276px}}@media (min-width:1400px){.imagify-main{width:74%}}.imagify-sidebar-title{display:block;padding:20px 15px;border-bottom:1px solid #BBB;font-size:14px;font-weight:bold;color:#23282d;background:#F2F5F7}.imagify-sidebar-title img{vertical-align:top;margin-right:5px}.imagify-sidebar .wp-media-products{margin-top:0;margin-bottom:-.5em}.imagify-sidebar .wp-media-products .links{display:block;padding:85px 25px 24px;text-align:center;background-color:#2E3243;background-size:contain;background-repeat:no-repeat;background-position:50% 0;text-decoration:none}.imagify-sidebar .wp-media-products .links p{margin:1.5em auto;color:#FFF}.imagify-sidebar .wp-media-products .wprocket-link{background-image:linear-gradient(to bottom,rgba(59,30,78,0),rgba(59,30,78,0) 130px,rgba(59,30,78,1) 210px),url("../images/sidebar-wp-rocket.jpg");background-color:#3B1E4E;background-repeat:repeat-x,no-repeat}.imagify-sidebar-content{padding:10px 20px}.imagify-mark-styled{display:inline-block;padding:1px 2px 1px 4px;line-height:1.3;font-weight:bold;background:#F7A933;transform-origine:50% 50%;transform:rotateZ(-2deg) rotateX(-10deg) skewX(-2deg) skewY(-3deg);text-shadow:1px 1px 0 rgba(0,0,0,0.2)}.imagify-mark-styled span{display:inline-block;transform:rotateZ(2deg) rotateX(10deg) skewX(2deg) skewY(3deg)}.imagify-discount-code{margin:0.35em 0 .5em;display:block;font-size:2em;letter-spacing:.05em;font-weight:bold;text-align:center;text-shadow:1px 1px 0 rgba(0,0,0,0.2)}.imagify-big-text{font-size:15px;font-weight:bold}.imagify-big-text strong{font-size:20px}a.btn-rocket{display:block;font-size:1.15em;padding:12px;background:#F7A933;box-shadow:0 3px 0 #D69626;border-radius:3px;color:#FFF;text-transform:uppercase;font-weight:bold;text-shadow:1px 1px 0 rgba(0,0,0,0.2);text-decoration:none}a.btn-rocket:hover,a.btn-rocket:focus{background:darkorange;box-shadow:0 3px 0 darkorange}.imagify-welcome{margin:30px 20px 0 0}.imagify-welcome .baseline{display:inline-block;margin:.2em 0 0 2em;font-size:17px}.imagify-welcome .imagify-logo{vertical-align:middle}.imagify-welcome-remove{position:absolute;top:50%;right:15px;margin-top:-8px;color:#FFF;text-decoration:none}.imagify-columns{overflow:hidden;padding:15px 0;counter-reset:cols}.imagify-columns [class^="col-"]{float:left;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.imagify-columns .col-1-3{width:33.333%;padding-left:28px}.imagify-columns .col-2-3{width:66.666%;padding-left:28px}.imagify-columns .col-1-2{width:50%;padding:0 20px}.imagify-columns .col-overview{padding-left:20px}.imagify-columns .col-informations{width:36.6%;padding-right:30px}.imagify-columns .col-statistics{width:30%}@media (max-width:830px){.imagify-columns [class^="col-"]{float:none;margin-bottom:1.5em}.imagify-columns .col-1-3,.imagify-columns .col-1-2{width:auto;padding:0 28px;clear:both;padding-top:1em}}.imagify-columns [class^="col-"] img{float:left;margin-right:18px}.imagify-col-content{overflow:hidden}.imagify-col-title{margin:0 0 15px 0;font-size:23px}.counter .imagify-col-title:before{counter-increment:cols;content:counter(cols) ". ";color:#40B1D0}.imagify-col-desc{color:#5F758E;margin-bottom:2em}.imagify-notice.imagify-notice{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:0;margin:10px 20px 10px 2px;border:0 none;background:#2E3243;box-shadow:none;color:#FFF}@media (max-width:782px){.imagify-notice.imagify-notice,.imagify-welcome{margin-right:12px}}@media (max-width:450px){.imagify-notice.imagify-notice{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}}.wrap .imagify-notice{margin:5px 15px 2px;position:relative}.imagify-notice-logo{padding:18px 23px;background:#40B1D0}.updated .imagify-notice-logo{background:#8BC34A}.error .imagify-notice-logo{background:#D0021B}.imagify-notice-title{font-size:15px}.imagify-notice-content{padding:5px 23px}.imagify-notice-content.imagify-notice-content p{margin:0.65em 0}.imagify-notice a{color:#40B1D0}.imagify-notice a:hover,.imagify-notice a:focus{color:#FEE102}.imagify-notice code{background:rgba(0,0,0,0.4) none repeat scroll 0 0}.column-imagify_optimized_file.column-imagify_optimized_file{width:300px;text-align:center;vertical-align:middle}.column-imagify_optimized_file > *{max-width:235px;margin:0 auto}ul.imagify-datas-list.imagify-datas-list{margin:0 auto;color:#555;font-size:10px}.compat-field-imagify .label{vertical-align:top}.compat-field-imagify ul.imagify-datas-list{margin-top:7px;font-size:11px}ul.imagify-datas-list .big{font-size:12px;color:#40B1D0}.imagify-data-item{overflow:hidden}.imagify-data-item .imagify-chart{display:inline-block;top:1px;width:20px;vertical-align:middle;margin-bottom:0}li.imagify-data-item{clear:both;margin-bottom:2px}ul.imagify-datas-list .imagify-data-item span.data,ul.imagify-datas-list .imagify-data-item strong{float:left;width:50%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}ul.imagify-datas-list .imagify-data-item span.data{text-align:left;padding-right:5px}.compat-field-imagify .imagify-datas-list .imagify-data-item .data{width:130px;text-align:left;font-weight:bold}.media-sidebar .imagify-datas-list .imagify-data-item .data{width:auto;float:none}ul.imagify-datas-list .imagify-data-item strong{text-align:left;padding-left:5px}.media-sidebar .imagify-datas-list .imagify-data-item strong{width:auto;float:none}.imagify-datas-more-action.imagify-datas-more-action{margin:.4em auto;background:linear-gradient(to bottom,transparent,transparent 49%,rgba(0,0,0,.075) 50%,rgba(0,0,0,.075) 58%,transparent 58%,transparent)}.imagify-datas-more-action a{display:inline-block;padding:0 5px;background:#40B1D0;color:#FFF;text-transform:uppercase;font-size:9px;font-weight:bold;line-height:1.9;text-decoration:none}.imagify-datas-more-action a.is-open{background:#555}.imagify-datas-more-action a.is-open .dashicons{transform:rotate(180deg)}.imagify-datas-more-action a .dashicons{font-size:14px;vertical-align:middle;line-height:.8}.imagify-datas-more-action a .dashicons:before{vertical-align:middle;line-height:20px}.imagify-datas-more-action .the-text{display:inline-block;vertical-align:middle;height:20px;line-height:20px}ul.imagify-datas-details.imagify-datas-details{margin:.7em auto}.imagify-datas-details strong{color:#40B1D0}.imagify-datas-details .original{color:#555}.imagify-datas-actions-links{overflow:hidden;border-top:2px solid transparent;padding-top:5px;font-size:8px}.imagify-datas-actions-links a{position:relative;display:inline-block;padding-left:17px;text-decoration:none;font-weight:600}.compat-field-imagify .imagify-datas-actions-links{max-width:300px}.misc-pub-imagify .imagify-datas-actions-links{border-top:2px solid #f2f2f2;padding-bottom:5px}.compat-field-imagify .imagify-datas-actions-links a,.misc-pub-imagify .imagify-datas-actions-links a{font-size:10px;float:left;width:50%}.media-sidebar .compat-field-imagify .imagify-datas-actions-links a,.submitbox .misc-pub-imagify .imagify-datas-actions-links a{display:block;width:auto;float:none}.column-imagify_optimized_file .imagify-datas-actions-links a{margin:0 .7em;padding-left:15px}.imagify-datas-actions-links a:only-child{float:none;width:auto}.imagify-datas-details.is-open + .imagify-datas-actions-links{border-top-color:rgba(0,0,0,.075)}.imagify-datas-actions-links .dashicons{position:absolute;left:0;top:4px;width:12px;margin-right:2px;font-size:11px}.imagify-title > h1{padding:0}.imagify-title-right{display:table;float:right;margin-top:-10px}.imagify-title-right p{margin:0}.imagify-title-right a{font-weight:bold;text-decoration:none}.imagify-title-right > div{display:table-cell;vertical-align:middle}.imagify-title-right .dashicons-arrow-down-alt2{vertical-align:-4px;margin-left:2px}@media (max-width:1200px){.imagify-bulk .imagify-title{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.imagify-title-right{-webkit-box-ordinal-group:3;-webkit-order:2;-ms-flex-order:2;order:2;margin-top:20px}}.imagify-account,.imagify-account-link{padding-right:15px}.imagify-sep-v{width:1px;background:rgba(255,255,255,.2)}.imagify-credit-left{position:relative;min-width:280px;padding-left:15px}.imagify-meteo-icon{display:inline-block;height:38px;vertical-align:middle;margin-right:10px}.imagify-user-plan{color:#40b1d0}@media (max-width:630px){.imagify-title-right{display:block;width:auto}.imagify-title-right > div{display:block;width:auto;margin-top:10px;max-width:100%}.imagify-credit-left{padding-left:0}}.imagify-meteo-title.imagify-meteo-title{color:#FFF;font-size:17px}.imagify-space-left{display:inline-block;min-height:38px;min-width:245px;vertical-align:middle}.imagify-space-left > p{color:#FFF}[class^="imagify-bar-"],#wp-admin-bar-imagify-profile [class^="imagify-bar-"]{position:relative;height:15px;width:100%;background:#60758D;color:#FFF;font-size:10px}.base-transparent{background:transparent}[class^="imagify-bar-"].right-outside-number{-webkit-box-sizing:border-box;box-sizing:border-box;padding-right:45px}.right-outside-number .imagify-barnb{display:block;margin-right:-45px;text-align:right;font-weight:bold;line-height:15px}.imagify-progress-value,#wp-admin-bar-imagify-profile .imagify-progress-value{position:absolute;top:0;right:0;left:0;bottom:0;text-align:center;line-height:13px;font-weight:bold}.imagify-progress,#wp-admin-bar-imagify-profile .imagify-progress{height:15px}.imagify-bar-positive .imagify-progress{background:#8CC152}.imagify-bar-positive .imagify-barnb{color:#8CC152}.imagify-bar-negative .imagify-progress{background:#73818C}.imagify-bar-negative .imagify-barnb{color:#73818C}.imagify-bar-neutral .imagify-progress{background:#F5A623}.imagify-space-left .imagify-bar-negative .imagify-progress{background:#D0021B}#wpadminbar #wp-admin-bar-imagify-profile *{line-height:1.5;white-space:initial}#wpadminbar #wp-admin-bar-imagify .ab-submenu{padding-bottom:0}#wpadminbar #wp-admin-bar-imagify-profile .ab-item{height:auto;padding:0 13px}#wpadminbar #wp-admin-bar-imagify-profile{min-width:200px;padding:15px 0 10px;margin-top:0.7em;background:#222}#wp-admin-bar-imagify .dashicons{font-family:"dashicons";font-size:18px;vertical-align:middle;margin:0 5px 0 0}#wp-admin-bar-imagify .button-text{display:inline-block;vertical-align:middle}#wp-admin-bar-imagify .imagify-abq-row{display:table;width:100%}#wp-admin-bar-imagify .imagify-abq-row + .imagify-abq-row{margin-top:.75em}#wp-admin-bar-imagify .imagify-abq-row > *{display:table-cell}#wp-admin-bar-imagify-profile .imagify-meteo-icon{padding-right:7px}#wp-admin-bar-imagify-profile .imagify-meteo-icon img{width:37px}#wp-admin-bar-imagify-profile .imagify-meteo-title{font-size:17px}#wp-admin-bar-imagify-profile .imagify-meteo-subs{color:#72889F}#wpadminbar #wp-admin-bar-imagify-profile strong{font-weight:bold}#wpadminbar #wp-admin-bar-imagify-profile .imagify-user-plan,#wpadminbar #wp-admin-bar-imagify-profile a{padding:0;color:#40B1D0}#wpadminbar #wp-admin-bar-imagify-profile .imagify-account-link{display:table}#wpadminbar #wp-admin-bar-imagify-profile .imagify-account-link > *{display:table-cell}#wpadminbar #wp-admin-bar-imagify-profile .imagify-space-left{max-width:210px;min-width:210px;width:210px}#wpadminbar #wp-admin-bar-imagify-profile .imagify-space-left p{font-size:12px}#wp-admin-bar-imagify-profile .imagify-error,#wp-admin-bar-imagify-profile .imagify-warning{padding:10px;margin:0 -13px -13px}#wp-admin-bar-imagify-profile .imagify-error p + p,#wp-admin-bar-imagify-profile .imagify-warning p + p{margin-top:.5em}#wp-admin-bar-imagify-profile .imagify-error p + p + p,#wp-admin-bar-imagify-profile .imagify-warning p + p + p{margin-top:1em}.btn-ghost,#wpadminbar #wp-admin-bar-imagify-profile .btn-ghost{display:inline-block;height:auto;padding:7px 10px;border:1px solid #FFF;text-align:center;background:transparent;color:#FFF;border-radius:3px;transition:all .275s}.btn-ghost:hover,.btn-ghost:focus,#wpadminbar #wp-admin-bar-imagify-profile .btn-ghost:hover,#wpadminbar #wp-admin-bar-imagify-profile .btn-ghost:focus{background:#FFF;color:#888}.imagify-list-infos{max-width:100%;width:415px}.imagify-list-infos li,.imagify-info-block{position:relative;padding:10px;padding-left:42px;background:#D9E4EB;border-radius:4px;line-height:1.6}.imagify-list-infos .imagify-alt.imagify-alt{background:#8BA7B5;color:#FFF;font-weight:bold}.imagify-list-infos li + li{margin-top:1em}.imagify-list-infos li:before,.imagify-info-block:before{content:"";position:absolute;left:13px;top:14px;height:16px;width:16px;border:1px solid #46b1ce;border-radius:10px}.imagify-list-infos li:after,.imagify-info-block:after{content:"i";position:absolute;left:20px;top:13px;font-style:italic;color:#46b1ce}.imagify-cell .imagify-info-block{padding-top:0}.imagify-cell .imagify-info-block:after{top:6px}.imagify-cell .imagify-info-block:before{top:7px}.imagify-list-infos .imagify-alt:before,.imagify-list-infos .imagify-alt:after{color:#fff;border-color:#fff}.imagify-sub-title.imagify-sub-title{font-size:23px;background:#FFF;color:#2E3243;border-left:1px solid #D9D9D9;border-right:1px solid #D9D9D9;font-weight:lighter}.imagify-sub-title .icon-bulk{margin-right:10px;vertical-align:middle}.imagify-sub-title .title-text{display:inline-block;line-height:1;vertical-align:middle}.imagify-bulk .imagify-settings-section{border:1px solid #D9D9D9;border-top:0;background:#F2F5F7;color:#4A4A4A}.imagify-bulk .imagify-settings-section p,.imagify-bulk .imagify-settings-section li,.imagify-bulk .imagify-settings-section h3{color:#4A4A4A}.imagify-bulk .imagify-settings-section h3{margin-bottom:2em}.imagify-title .imagify-tooltips{position:absolute;top:100%;left:0}.imagify-tooltips .icon-round{float:left;display:inline-block;width:28px;height:28px;border:1px solid #FFF;margin-right:8px;margin-bottom:8px;font-size:17px;font-style:italic;line-height:29px;font-weight:bold;text-align:center;border-radius:50%}.imagify-tooltips .tooltip-content{display:block;position:relative;max-width:250px;padding:7px 15px 8px;background:#2e3242;color:#FFF;font-size:10px;border-radius:3px}.imagify-tooltips.right .tooltip-content{margin-left:12px}.imagify-tooltips.bottom .tooltip-content{margin-top:4px}.imagify-inline-options label .tooltip-content{position:absolute;left:0;right:0;top:100%;text-transform:none;font-size:10px;letter-spacing:0;text-align:center}.imagify-tooltips .tooltip-content:after{content:"";position:absolute}.imagify-tooltips.right .tooltip-content:after{top:16px;left:-6px;border-right:8px solid #2e3242;border-top:6px solid transparent;border-bottom:6px solid transparent}.imagify-tooltips.bottom .tooltip-content:after{top:-5px;left:50%;margin-left:-3px;border-bottom:6px solid #2e3242;border-left:6px solid transparent;border-right:6px solid transparent}.imagify-space-tooltips .tooltip-content{max-width:280px;margin-top:20px;margin-left:0;padding:5px 15px 5px;font-size:13px;background:#40B1D0;box-shadow:0 3px 0 #338EA6}.imagify-space-tooltips .tooltip-content:after{top:-14px;left:50%;margin-left:-7px;border:0 none;border-bottom:15px solid #40B1D0;border-left:15px solid transparent;border-right:15px solid transparent}.tooltip-content.tooltip-table{display:table;width:100%}.tooltip-content.tooltip-table > *{display:table-cell;vertical-align:middle}.tooltip-content .cell-icon{width:28px}.tooltip-content .cell-icon .icon{margin-bottom:0}.tooltip-content .cell-text{padding:5px 10px 5px 0;line-height:1.3}.tooltip-content .cell-sep{width:1px;background:rgba(255,255,255,.4)}.tooltip-content .cell-cta{padding-left:10px}.tooltip-content .cell-cta a{display:block;color:#FFF;width:100%;height:100%;white-space:nowrap}.imagify-number-you-optimized .number{display:table-cell;padding-right:15px;font-size:36px;font-weight:bold;line-height:1.1;vertical-align:middle;white-space:nowrap}.imagify-number-you-optimized .text{display:table-cell;vertical-align:middle;overflow:hidden;font-size:12px}.imagify-number-you-optimized .text br{display:none}.imagify-number-you-optimized > p{display:table}.imagify-number-you-optimized{padding-bottom:0.85em;margin-bottom:1.35em;overflow:hidden;border-bottom:1px solid rgba(0,0,0,0.05)}.imagify-bars p{font-weight:bold;font-size:12px;margin-bottom:0}.imagify-bars + .imagify-number-you-optimized{border-bottom:0;padding-top:0.85em}.imagify-bars + .imagify-number-you-optimized p{color:#46b1ce}.imagify-bulk-table{margin-top:2em;max-height:600px;max-height:60vh;overflow:auto}.imagify-bulk-table table{width:100%;border-spacing:0;border-collapse:collapse;border:1px solid #D3D3D3}.imagify-bulk-table td{padding:8px 15px}.imagify-bulk-table thead tr,.imagify-bulk-table thead th{background:#2E3242}.imagify-bulk-table tfoot tr,.imagify-bulk-table tfoot th{background:#73818C}.imagify-bulk-table thead th{padding:14px 15px;text-align:left;color:#F2F5F7;font-weight:bold;font-size:14px}.imagify-bulk-table tfoot td{padding:14px 15px;color:#F9FAFA}.imagify-bulk-table tbody tr,.imagify-bulk-table tbody td{background:#FFF}.imagify-bulk-table tbody tr:nth-child(odd),.imagify-bulk-table tbody tr:nth-child(odd) td{background:#F2F5F7}.imagify-bulk-table .imagify-row-progress{display:none}.imagify-bulk-table .imagify-row-progress,.imagify-bulk-table .imagify-row-progress td{height:15px;padding:0}.imagify-bulk-table .imagify-no-uploaded-yet td{height:200px;font-size:17px;letter-spacing:.1em;word-spacing:.12em;vertical-align:middle;text-transform:uppercase;font-weight:bold;text-align:center;color:#999;background-color:#FFF}.imagify-row-complete{padding:35px 20px;margin-top:2em;background:#8BC34A;color:#FFF;text-shadow:0 0 2px rgba(0,0,0,.1)}.imagify-row-complete .imagify-ac-chart{margin-top:3px}.imagify-row-complete p{color:#FFF;margin:0}@-webkit-keyframes congrate{0%{opacity:0;-webkit-transform:scale(1)}50%{-webkit-transform:scale(1.05);opacity:1}100%{-webkit-transform:scale(1);opacity:1}}​ @keyframes congrate{0%{opacity:0;transform:scale(1)}50%{transform:scale(1.05);opacity:1}100%{transform:scale(1);opacity:1}}.imagify-row-complete.done{-webkit-animation:congrate 500ms ease-in-out;animation:congrate 500ms ease-in-out}.imagify-all-complete{margin:1.5em 0}.imagify-all-complete > div{display:inline-block;vertical-align:middle}.imagify-ac-report{min-width:310px}.imagify-ac-chart{width:46px;height:46px;float:left;margin:0 20px 0 10px}.imagify-ac-report-text{overflow:hidden}.imagify-ac-report-text p{line-height:1.3}.imagify-ac-rt-big{font-weight:bold;font-size:24px;letter-spacing:0.15em;word-spacing:0.15em;text-transform:uppercase}.imagify-ac-share{text-align:right}.imagify-ac-share-content{display:inline-block;padding:10px 15px;background:rgba(255,255,255,.2)}.imagify-ac-share-content > *{display:inline-block;vertical-align:middle}.imagify-bulk-table .imagify-ac-share-content p{margin-right:5px}.imagify-share-networks,.imagify-share-networks li{margin:0}.imagify-share-networks li{display:inline-block}.imagify-share-networks a{display:inline-block;vertical-align:-7px;margin:0 5px;text-decoration:none;color:#FFF}.imagify-cell-filename{max-width:200px}.imagify-cell-status{max-width:145px}.imagify-cell-status .dashicons-warning{margin-right:2px}.imagify-cell-thumbnails{max-width:120px}td.imagify-cell-filename{text-overflow:clip;white-space:nowrap;overflow:hidden}.imagify-bulk-table td.imagify-cell-totaloriginal{padding-right:78px}.imagiuploaded,.imagifilename{display:inline-block;vertical-align:middle}.imagifilename{font-size:12px}.imagiuploaded{width:33px;height:33px;margin-right:5px;margin-left:-8px;overflow:hidden;background:url(../images/upload-image.png) 0 0 no-repeat;background-size:cover}.imagiuploaded img{max-widht:100%;height:auto}.imagistatus{color:#8CA6B3;text-transform:uppercase;font-weight:bold}.status-compressing{color:#46B1CE}.status-error{color:#CE0B24}.status-warning{color:#f5a623}.status-complete{color:#8CC152}.imagify-error{background:#D0021B;color:#FFF}.imagify-warning,#wpadminbar .imagify-warning *{background:#f5a623;color:#FFF;text-shadow:0 0 2px rgba(0,0,0,0.2)}.imagify-bulk-table .imagify-cell-thumbnails{text-align:center}.imagify-cell-percentage,.imagify-cell-savings{color:#46B1CE;font-weight:bold}.imagify-cell-optimized{font-weight:bold}.imagify-cell-totaloriginal{text-align:right}.dashicons.rotate{-webkit-animation:icon-rotate 2.6s infinite linear;animation:icon-rotate 2.6s infinite linear}.dashicons-admin-generic{transform-origin:48.75% 51.75%}.imagify-modal{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.js .imagify-modal{display:none;position:fixed;top:0;right:0;bottom:0;left:0;background-color:#1F2332;background-color:rgba(31,35,50,.95);z-index:99999}.imagify-modal-content{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;width:800px;max-width:95%;max-height:90vw;overflow:auto;padding:20px 25px;margin:1em auto;background:#FFF;box-shadow:1px 1px 4px rgba(0,0,0,.7);border-radius:3px}#imagify-visual-comparison .imagify-modal-content,.imagify-visual-comparison .imagify-modal-content{max-width:1400px;background:transparent;padding:5px;box-shadow:none;border-radius:0}.imagify-modal .h2{margin:.5em 0;color:#8ba6b4;font-weight:normal;font-size:24px;letter-spacing:0.075em;text-align:center}.imagify-modal .h3{color:#40b1d0;font-weight:normal;font-size:18px;letter-spacing:0.075em;text-align:center}.text-justify{text-align:justify}.imagify-modal .close-btn{display:none;visibility:hidden;position:absolute;right:20px;top:20px;font-size:1.2em;border:0;background:transparent none;border-radius:0;cursor:pointer}.imagify-modal .close-btn i{margin-left:-2px}.imagify-modal .close-btn:hover,.imagify-modal .close-btn:focus{color:#40b1d0}.js .imagify-modal .close-btn{display:block;visibility:visible}#imagify-visual-comparison .close-btn,.imagify-visual-comparison .close-btn{top:50px;right:5px;width:33px;height:33px;padding:1px 0 0 2px;border:1px solid #F2F2F2;color:#F2F2F2;line-height:19px;text-align:center;border-radius:50%}.wp_attachment_image #imagify-visual-comparison .close-btn,.imagify-visual-comparison .close-btn{top:0}.wp_attachment_image #imagify-visual-comparison .imagify-modal-content,.imagify-visual-comparison .imagify-modal-content{padding-top:40px}.imagify-modal .imagify-comparison-title{font-size:28px;margin-bottom:1em;color:#F2F2F2;text-align:left}.imagify-modal .imagify-comparison-title .twentytwenty-duo-buttons{position:static;margin:0 10px 0 15px}.imagify-comparison-title .twentytwenty-duo-buttons button{float:none;padding:6px 12px;font-size:16px;text-transform:none;border:1px solid #40B1D0;color:#888899;letter-spacing:0}.imagify-comparison-title .twentytwenty-duo-buttons button:focus{outline:none;box-shadow:none}.imagify-comparison-title .twentytwenty-duo-buttons .selected{border:1px solid #40B1D0;color:#FFF;background:#40B1D0}.imagify-comparison-levels{margin:15px 0;overflow:hidden}.imagify-comparison-levels div{display:none;min-width:175px;font-size:11px}.imagify-comparison-levels .imagify-chart,.imagify-comparison-levels .imagify-chart-container{width:25px;float:none;margin:0}.imagify-visual-comparison .imagify-chart-container canvas{width:15px!important;height:15px!important;margin-right:5px}.imagify-c-level.go-left{float:left}.imagify-c-level.go-right{float:right}.imagify-c-level.go-right,.imagify-c-level.go-left{display:table}.imagify-c-level .imagify-c-level-row{display:table-row;margin:0;color:#FFF}.imagify-c-level-row > span{display:table-cell;padding:2px 0}.imagify-c-level-row .value{text-align:right;padding-left:5px}.imagify-c-level-row .value.level{color:#40b1d0}.imagify-c-level-row .value.size{color:#8bc34a;font-weight:bold}.imagify-c-level-row .value .imagify-chart{top:1px}@-webkit-keyframes icon-rotate{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes icon-rotate{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.imagify-menu-bar-img{margin-top:1em}.imagify-modal .loader{position:absolute;top:50%;left:50%;margin:-32px 0 0 -32px;opacity:0;visibility:hidden;transition:opacity .4s}.imagify-modal .loading .loader{visibility:visible;opacity:1}.imagify-settings .imagify-visual-comparison-text{margin-top:1em;color:#40b1d0;font-weight:bold}.imagify-modal-cols,.imagify-border-styled,.imagify-offer-header,.imagify-payment-modal .imagify-modal-content,.imagify-flex-table,.imagify-tabs{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row}.imagify-modal-cols,.imagify-border-styled{-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.imagify-payment-modal{text-align:center;color:#7A8996}.imagify-payment-modal *{box-sizing:border-box}.imagify-modal-loader{position:absolute;top:0;left:0;right:0;bottom:0;background:#fff url('../images/loader-balls.svg') center no-repeat;z-index:10}.imagify-payment-modal .imagify-modal-content{width:980px;max-width:100%;min-width:925px;padding:0}.imagify-payment-modal .imagify-modal-main{width:70%}.imagify-payment-modal .imagify-modal-sidebar{width:30%;padding:15px 20px;background:#1F2332;color:#FFF}.imagify-payment-steps{padding-top:15px;margin-top:0;margin-left:0;list-style:none;counter-reset:steps}.imagify-payment-steps li{position:relative;display:inline-block;counter-increment:steps;font-weight:bold}.imagify-payment-steps li + li{margin-left:35px}.imagify-payment-steps li + li:after{content:"";position:absolute;top:19px;left:-90px;z-index:1;width:150px;height:2px;background:#E5EBEF}.imagify-payment-steps li + li.active:after{background:#40B1D0}.imagify-payment-steps li:before{display:block;position:relative;content:counter( steps,decimal );width:36px;height:36px;margin:0 auto .3em;border:2px solid #E5EBEF;text-align:center;line-height:34px;font-size:1.4em;color:#E5EBEF;background:#FFF;border-radius:50%;z-index:2}.imagify-payment-steps .active:before{color:#40B1D0;border-color:#40B1D0}.imagify-modal-section{padding:0 25px}.imagify-modal-section.section-gray{margin:1em 0;padding:10px 25px 15px;background:#F6F7FB}.imagify-tabs-contents .section-gray{padding:8px 25px 10px}.imagify-modal-section .imagify-modal-title:first-child{margin-top:.3em;margin-bottom:.5em}.imagify-modal-title{font-size:1.8em;font-weight:lighter}.imagify-border-styled{width:200px;margin:0 auto;color:#8BC34A;font-weight:bold;font-size:0.925em}.imagify-big-number{font-size:3.7em;font-weight:bold;margin:-3px 0;color:#4A4A4A;line-height:1}.imagify-border-styled:before,.imagify-border-styled:after{content:"";height:1px;background:rgba(0,0,0,.1);-webkit-flex-basis:40px;-ms-flex-preferred-size:40px;flex-basis:40px}.imagify-border-styled:before{margin-right:5px}.imagify-border-styled:after{margin-left:5px}.imagify-payment-modal strong{font-weight:bold;color:#4A4A4A}.imagify-col{-webkit-flex-basis:50%;-ms-flex-preferred-size:50%;flex-basis:50%}.imagify-modal .imagify-cols{padding:0 20px}.imagify-iconed{position:relative;text-align:left;padding-left:42px;margin-right:15px;font-weight:500}.imagify-iconed .dashicons,.imagify-iconed .icon{position:absolute;font-size:2em;left:0;top:2px;color:#40B1D0}.imagify-payment-modal .close-btn{top:10px;right:10px;width:24px;height:24px;padding:2px 0 0 4.5px;color:#FFF;background:#40B1D0;border-radius:50%;-webkit-transition:all .275s;transition:all .275s}.imagify-payment-modal .close-btn i{margin-left:-3.5px;margin-top:1px}.imagify-payment-modal .close-btn:hover{background:#F6F7FB}.imagify-offer-line{margin-top:1.5em}.imagify-offer-line + .imagify-offer-line{margin-top:0.75em}.imagify-offer-header{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;padding:0 0 0 15px;border-radius:4px 4px 0 0;-webkit-transition:all .275s;transition:all .275s}.imagify-offer-header.imagify-offer-header.imagify-offer-header .imagify-inline-options label:last-child{border-radius:0 4px 0 0}.imagify-offer-header .imagify-inline-options{width:auto}.imagify-offer-title{font-weight:bold;margin:0}.imagify-offer-header,.imagify-offer-header .imagify-inline-options input[type="radio"]:not(:checked) + label{background:#E5EBEF}.imagify-offer-onetime .imagify-offer-header{padding-top:8px;padding-bottom:8px}.imagify-offer-header .imagify-inline-options input[type="radio"]:not(:checked) + label,.imagify-offer-header .imagify-inline-options input[type="radio"]:checked + label{position:relative;padding:7px 30px;font-size:1em;letter-spacing:0.05em;color:inherit;box-shadow:0 0 0;border-radius:0}.imagify-offer-header .imagify-inline-options input[type="radio"]:checked + label{background:#F6F7FB}.imagify-2-free{position:absolute;bottom:100%;left:0;right:0;padding:2px 10px;margin-bottom:8px;font-size:0.8em;letter-spacing:0;text-transform:none;text-align:center;color:#FFF;background:#10121A;border-radius:2px}.imagify-2-free:after{content:"";position:absolute;left:50%;bottom:-3px;margin-left:-3px;border-top:3px solid #10121A;border-left:3px solid transparent;border-right:3px solid transparent}.imagify-2-free.imagify-b-right{bottom:auto;left:100%;right:-100%;margin-bottom:0;margin-left:8px}.imagify-2-free.imagify-b-right:after{left:-3px;bottom:auto;top:50%;margin-top:-3px;margin-left:0;border-right:3px solid #10121A;border-top:3px solid transparent;border-bottom:3px solid transparent;border-left:0}.imagify-2-free.imagify-b-bottom{bottom:-100%;left:0;right:0;margin-top:8px}.imagify-2-free.imagify-b-bottom:after{top:-3px;bottom:auto;border-bottom:3px solid #10121A;border-left:3px solid transparent;border-right:3px solid transparent;border-top:0}.imagify-offer-content{text-align:left;background:#F6F7FB;border-radius:0 0 4px 4px;-webkit-transition:all .275s;transition:all .275s}.imagify-offer-onetime .imagify-offer-content{padding:10px 0}div.imagify-col-checkbox{position:relative;width:35.5%;padding-top:10px;padding-bottom:7px}.imagify-col-checkbox label{display:block}.imagify-col-checkbox .imagify-checkbox.imagify-checkbox:not(:checked),.imagify-col-checkbox .imagify-checkbox.imagify-checkbox:checked{position:absolute;top:50%;left:6px;margin:-8px 0 0 0}.imagify-col-checkbox .imagify-checkbox.imagify-checkbox:not(:checked) + label:before,.imagify-col-checkbox .imagify-checkbox.imagify-checkbox:checked + label:before{margin:0;top:-3px;left:6px;-webkit-transition:all .275s;transition:all .275s}.imagify-col-checkbox .imagify-checkbox.imagify-checkbox:not(:checked) + label:after,.imagify-col-checkbox .imagify-checkbox.imagify-checkbox:checked + label:after{top:0;left:13px}.imagify-col-checkbox label{padding-left:55px!important}.imagify-offer-size{font-size:30px;color:#2E3243;font-weight:bold;-webkit-transition:all .275s;transition:all .275s}.imagify-offer-by{font-size:10px;-webkit-transition:all .275s;transition:all .275s}.imagify-approx{display:block;font-size:11px;line-height:1.2;-webkit-transition:all .275s;transition:all .275s}div.imagify-col-price{width:30%}.imagify-flex-table .imagify-price-block{padding-left:0;padding-right:0}.imagify-flex-table .imagify-price-complement{padding-right:0;font-size:10px;font-weight:bold}.imagify-price-block span{display:inline-block;vertical-align:middle}span.imagify-dollars{color:#1F2332;font-size:18px;font-weight:bold;vertical-align:-2px}.imagify-offer-onetime .imagify-col-price{padding-top:0}.imagify-offer-onetime .imagify-dollars{vertical-align:-7px}.imagify-price-big,.imagify-price-mini{color:#40B1D0;font-weight:bold}.imagify-price-big{font-size:36px}span.imagify-price-mini{font-size:18px;vertical-align:2px}span.imagify-price-by{font-size:10px;color:#1F2332;vertical-align:-13px;text-indent:-27px}.imagify-col-other-actions{width:18.5%;text-align:right}.imagify-col-other-actions a{font-size:11px}.imagify-offer-selected,.imagify-offer-selected .imagify-offer-title,.imagify-offer-selected .imagify-offer-size,.imagify-offer-selected .imagify-price-big,.imagify-offer-selected .imagify-price-mini,.imagify-offer-selected .imagify-price-complement,.imagify-offer-selected .imagify-col-other-actions a{color:#FFF}.imagify-offer-selected .imagify-offer-header,.imagify-offer-selected .imagify-offer-header .imagify-inline-options input[type="radio"]:not(:checked) + label{background:#338EA6}.imagify-offer-selected .imagify-offer-header .imagify-inline-options input[type="radio"]:checked + label{background:#40B1D0}.imagify-offer-selected .imagify-offer-content{background:#40B1D0}.imagify-offer-selected .imagify-checkbox.imagify-checkbox:not(:checked) + label:before,.imagify-offer-selected .imagify-checkbox.imagify-checkbox:checked + label:before{border-color:#FFF;background:#40B1D0}.imagify-offer-selected .imagify-offer-by{color:#2E3243}.imagify-submit-line{margin:2em 0}.imagify-submit-line button{font-size:16px}.imagify-footer-lines{width:500px;max-width:100%;margin:2em auto 1em;font-size:0.85em;line-height:1.6}.imagify-year-selected .imagify-switch-my .imagify-yearly{display:block}.imagify-year-selected .imagify-switch-my .imagify-monthly{display:none}.imagify-month-selected .imagify-switch-my .imagify-yearly{display:none}.imagify-month-selected .imagify-switch-my .imagify-monthly{display:block}.imagify-flex-table{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.imagify-flex-table > *{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;padding:7px 15px}div.imagify-col-details{width:22%;padding-left:25px}.imagify-col-details p{margin:0}.imagify-pricing-table{margin:0 20px}.imagify-pricing-table .imagify-offer-line{padding:.6em 0;border:2px solid #E8EEF0;text-align:left;border-radius:3px}.imagify-pricing-table .imagify-offer-line:first-child{margin-top:.75em}.imagify-pricing-table .imagify-offer-line + .imagify-offer-line{margin-top:-2px}.imagify-pricing-table .imagify-col-other-actions{width:20.5%}.imagify-pricing-table .imagify-approx{margin-left:0;line-height:0.5;margin-bottom:1em}.imagify-pricing-table .imagify-offer-selected{-webkit-transform:scale(1.03);transform:scale(1.03);background:#40B1D0;border-width:0}.imagify-pricing-table .imagify-offer-selected .imagify-approx{color:#FFF}.imagify-pricing-table .imagify-button-secondary{padding:3px 20px;box-shadow:none;text-transform:uppercase;font-size:12px;letter-spacing:0.025em}.imagify-offer-selected.imagify-offer-selected .imagify-button-secondary{border:2px solid #FFF;background:#40B1D0;box-shadow:none;text-shadow:none!important}.imagify-offer-selected.imagify-offer-selected .imagify-button-secondary:hover,.imagify-offer-selected.imagify-offer-selected .imagify-button-secondary:focus{background:#FFF;color:#40B1D0}.imagify-col .imagify-special-needs{margin-left:25px}.imagify-special-needs strong{font-size:25px;font-weight:bold;color:#40B1D0}.imagify-special-needs span{display:block;font-size:12px;margin-top:-.5em}div.imagify-col-price{position:relative}.imagify-recommend{display:none;position:absolute;left:-20px;bottom:100%;padding:0;margin-bottom:8px;color:#1F2332;font-weight:bold;font-style:italic}.imagify-offer-selected .imagify-recommend{display:block}[class*="imagify-onetime-"] .imagify-recommend{left:65px;margin-bottom:20px}.imagify-recommend:before{content:"";position:absolute;top:7px;left:-35px;width:29px;height:30px;background:url("../images/icon-arrow-choice.png") scroll 0 no-repeat;background-size:contain}@media only screen and (min-resolution:192dpi),only screen and (min-resolution:2dppx){.imagify-recommend:before{background-image:url("../images/icon-arrow-choice.svg")}}.imagify-offer-line[class*="imagify-onetime-"]{padding:0;margin:.3em 0 0}.imagify-offer-line.imagify-offer-line[class*="imagify-onetime-"]:first-child{margin-top:2em}.imagify-offer-line[class*="imagify-onetime-"] + .imagify-offer-line{margin-top:.5em}.imagify-offer-selected.imagify-offer-line[class*="imagify-onetime-"]{-webkit-transform:scale(1);transform:scale(1);border-width:2px}.imagify-offer-line[class*="imagify-onetime-"] .imagify-col-details{position:relative;overflow:hidden;width:21%;background:#1F2332;color:#FFF}.imagify-offer-selected.imagify-offer-line[class*="imagify-onetime-"] .imagify-col-details{background:#338EA6}.imagify-offer-line[class*="imagify-onetime-"] .imagify-col-details:before{content:"";position:absolute;bottom:0;right:25px;width:75px;height:54px;background:url("../images/icon-pack.png")}.imagify-offer-line[class*="imagify-onetime-"] .imagify-col-other-actions{width:30%}.imagify-offer-line[class*="imagify-onetime-"] .imagify-offer-size,.imagify-offer-line[class*="imagify-onetime-"] .imagify-approx{color:#FFF}.imagify-offer-line[class*="imagify-onetime-"] .imagify-offer-size{font-size:24px}.imagify-offer-line[class*="imagify-onetime-"] .imagify-approx{font-size:12px}.imagify-offer-line[class*="imagify-onetime-"] .imagify-price-block{padding-left:10px}.imagify-offer-line[class*="imagify-onetime-"] .imagify-dollars{vertical-align:middle}.imagify-offer-line[class*="imagify-onetime-"] .imagify-price-big{vertical-align:-5px}.imagify-offer-line[class*="imagify-onetime-"] .imagify-price-mini{vertical-align:7px}.imagify-tabs{margin-bottom:0;list-style:none;background:#E5EBEF}.imagify-modal-content .imagify-tabs{margin:1em 0 0}.imagify-tab{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;width:50%;margin:0;font-size:23px}.imagify-tab a{display:block;padding:15px 10px;color:inherit;text-decoration:none}.imagify-tab a:focus{box-shadow:none;outline:none;color:#40B1D8}.imagify-tab.imagify-current a{background:#F6F7FB}.imagify-tab-content.imagify-current{display:block}.imagify-tab-content{display:none}.imagify-tab-content .imagify-modal-section:first-child{margin-top:0}.imagify-modal-sidebar-content,.imagify-payment-modal .imagify-modal-sidebar{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.imagify-modal-sidebar-content{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1}p.imagify-modal-sidebar-title{margin-top:5px;padding-right:40px;font-size:18px;color:#FFF}.imagify-modal-testimony{margin-top:1em}.imagify-modal-testimony + .imagify-modal-testimony{margin-top:2em}@media (max-height:620px){.imagify-modal-testimony + .imagify-modal-testimony{display:none}}.imagify-modal-testimony-person{display:table;width:100%}.imagify-modal-testimony-person > *{display:table-cell;vertical-align:middle}.imagify-modal-avatar{width:114px;line-height:0}.imagify-modal-avatar img{border:2px solid #FFF;border-radius:50%;width:96px;height:96px}.imagify-modal-identity a{text-decoration:none;font-weight:bold}.imagify-modal-identity a:first-child{font-size:13px}.imagify-modal-identity a:first-child + a{display:block;font-size:10px;color:#7A8996}.imagify-modal-testimony-content p{font-size:13px;font-style:italic;line-height:1.7;color:#7A8996}.imagify-modal-sidebar-trust{margin-top:auto;padding-top:1.5em}.imagify-modal-sidebar-trust p{margin:0;font-weight:bold;font-size:12px;line-height:1.7}.imagify-modal-sidebar-trust p img{margin-right:3px;vertical-align:-2px}.imagify-modal-sidebar-trust p + p{font-size:11px}.imagify-cart{text-align:left}.imagify-cart .imagify-cart-list{border-top:1px solid rgba(122,137,150,.2);border-bottom:1px solid rgba(122,137,150,.2)}.imagify-cart .imagify-cart-label{margin-bottom:0.5em;font-size:10px;color:#2E3243}.imagify-cart-list p{margin:0;font-weight:bold}.imagify-cart-item{margin:.4em 0}.imagify-cart .imagify-cart-suggestion{margin-top:-.3em}.imagify-cart-suggestion a,.imagify-cl-description p{font-size:10px}.imagify-remove-from-cart{border:0;padding:0;width:14px;height:14px;line-height:13px;border-radius:50%;background:#40B1D0;cursor:pointer;transition:background .3s}.imagify-remove-from-cart i:before{position:relative;top:-6px;left:-3px;font-size:13px;color:#FFF}.imagify-remove-from-cart:hover,.imagify-remove-from-cart:focus{background:#D0021B}.imagify-cart .imagify-cl-remove{-webkit-box-flex:0;-webkit-flex-grow:0;-ms-flex-positive:0;flex-grow:0;width:45px}.imagify-cart .imagify-cl-name{-webkit-box-flex:0;-webkit-flex-grow:0;-ms-flex-positive:0;flex-grow:0;width:200px}.imagify-cart .imagify-cl-description{-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start;padding-top:10px}.imagify-cart .imagify-cl-price{text-align:right}#imagify-payment-iframe{width:100%;height:375px;margin-top:1em;background:#f6f7fb url(../images/loader-balls.svg) 50% 175px no-repeat}.imagify-success-view{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;height:100%}.imagify-success-view p{font-weight:bold;font-size:16px}.imagify-cart-emptied-item{margin:.3em auto;padding:6px 20px;background:#E6EBEF;border-radius:20px}.imagify-cart-emptied-item.imagify-cart-emptied-item p{font-weight:bold}.imagify-cart-emptied-item a{color:#40b1d0;float:right;font-weight:bold}
assets/css/sweetalert.css DELETED
@@ -1,930 +0,0 @@
1
- body.stop-scrolling {
2
- height: 100%;
3
- overflow: hidden; }
4
-
5
- .sweet-overlay {
6
- background-color: black;
7
- /* IE8 */
8
- -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=40)";
9
- /* IE8 */
10
- background-color: rgba(0, 0, 0, 0.4);
11
- position: fixed;
12
- left: 0;
13
- right: 0;
14
- top: 0;
15
- bottom: 0;
16
- display: none;
17
- z-index: 10000; }
18
-
19
- .sweet-alert {
20
- background-color: white;
21
- font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
22
- width: 478px;
23
- padding: 17px;
24
- border-radius: 5px;
25
- text-align: center;
26
- position: fixed;
27
- left: 50%;
28
- top: 50%;
29
- margin-left: -256px;
30
- margin-top: -200px;
31
- overflow: hidden;
32
- display: none;
33
- z-index: 99999; }
34
- @media all and (max-width: 540px) {
35
- .sweet-alert {
36
- width: auto;
37
- margin-left: 0;
38
- margin-right: 0;
39
- left: 15px;
40
- right: 15px; } }
41
- .sweet-alert h2 {
42
- color: #575757;
43
- font-size: 30px;
44
- text-align: center;
45
- font-weight: 600;
46
- text-transform: none;
47
- position: relative;
48
- margin: 25px 0;
49
- padding: 0;
50
- line-height: 40px;
51
- display: block; }
52
- .sweet-alert p {
53
- color: #797979;
54
- font-size: 16px;
55
- text-align: center;
56
- font-weight: 300;
57
- position: relative;
58
- text-align: inherit;
59
- float: none;
60
- margin: 0;
61
- padding: 0;
62
- line-height: normal; }
63
- .sweet-alert fieldset {
64
- border: none;
65
- position: relative; }
66
- .sweet-alert .sa-error-container {
67
- background-color: #f1f1f1;
68
- margin-left: -17px;
69
- margin-right: -17px;
70
- overflow: hidden;
71
- padding: 0 10px;
72
- max-height: 0;
73
- webkit-transition: padding 0.15s, max-height 0.15s;
74
- transition: padding 0.15s, max-height 0.15s; }
75
- .sweet-alert .sa-error-container.show {
76
- padding: 10px 0;
77
- max-height: 100px;
78
- webkit-transition: padding 0.2s, max-height 0.2s;
79
- transition: padding 0.25s, max-height 0.25s; }
80
- .sweet-alert .sa-error-container .icon {
81
- display: inline-block;
82
- width: 24px;
83
- height: 24px;
84
- border-radius: 50%;
85
- background-color: #ea7d7d;
86
- color: white;
87
- line-height: 24px;
88
- text-align: center;
89
- margin-right: 3px; }
90
- .sweet-alert .sa-error-container p {
91
- display: inline-block; }
92
- .sweet-alert .sa-input-error {
93
- position: absolute;
94
- top: 29px;
95
- right: 26px;
96
- width: 20px;
97
- height: 20px;
98
- opacity: 0;
99
- -webkit-transform: scale(0.5);
100
- transform: scale(0.5);
101
- -webkit-transform-origin: 50% 50%;
102
- transform-origin: 50% 50%;
103
- -webkit-transition: all 0.1s;
104
- transition: all 0.1s; }
105
- .sweet-alert .sa-input-error::before, .sweet-alert .sa-input-error::after {
106
- content: "";
107
- width: 20px;
108
- height: 6px;
109
- background-color: #f06e57;
110
- border-radius: 3px;
111
- position: absolute;
112
- top: 50%;
113
- margin-top: -4px;
114
- left: 50%;
115
- margin-left: -9px; }
116
- .sweet-alert .sa-input-error::before {
117
- -webkit-transform: rotate(-45deg);
118
- transform: rotate(-45deg); }
119
- .sweet-alert .sa-input-error::after {
120
- -webkit-transform: rotate(45deg);
121
- transform: rotate(45deg); }
122
- .sweet-alert .sa-input-error.show {
123
- opacity: 1;
124
- -webkit-transform: scale(1);
125
- transform: scale(1); }
126
- .sweet-alert input {
127
- width: 100%;
128
- box-sizing: border-box;
129
- border-radius: 3px;
130
- border: 1px solid #d7d7d7;
131
- height: 43px;
132
- margin-top: 10px;
133
- margin-bottom: 17px;
134
- font-size: 18px;
135
- box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.06);
136
- padding: 0 12px;
137
- display: none;
138
- -webkit-transition: all 0.3s;
139
- transition: all 0.3s; }
140
- .sweet-alert input:focus {
141
- outline: none;
142
- box-shadow: 0px 0px 3px #c4e6f5;
143
- border: 1px solid #b4dbed; }
144
- .sweet-alert input:focus::-moz-placeholder {
145
- transition: opacity 0.3s 0.03s ease;
146
- opacity: 0.5; }
147
- .sweet-alert input:focus:-ms-input-placeholder {
148
- transition: opacity 0.3s 0.03s ease;
149
- opacity: 0.5; }
150
- .sweet-alert input:focus::-webkit-input-placeholder {
151
- transition: opacity 0.3s 0.03s ease;
152
- opacity: 0.5; }
153
- .sweet-alert input::-moz-placeholder {
154
- color: #bdbdbd; }
155
- .sweet-alert input:-ms-input-placeholder {
156
- color: #bdbdbd; }
157
- .sweet-alert input::-webkit-input-placeholder {
158
- color: #bdbdbd; }
159
- .sweet-alert.show-input input {
160
- display: block; }
161
- .sweet-alert .sa-confirm-button-container {
162
- display: inline-block;
163
- position: relative; }
164
- .sweet-alert .la-ball-fall {
165
- position: absolute;
166
- left: 50%;
167
- top: 50%;
168
- margin-left: -27px;
169
- margin-top: 4px;
170
- opacity: 0;
171
- visibility: hidden; }
172
- .sweet-alert button {
173
- background-color: #8CD4F5;
174
- color: white;
175
- border: none;
176
- box-shadow: none;
177
- font-size: 17px;
178
- font-weight: 500;
179
- -webkit-border-radius: 4px;
180
- border-radius: 5px;
181
- padding: 10px 32px;
182
- margin: 26px 5px 0 5px;
183
- cursor: pointer; }
184
- .sweet-alert button:focus {
185
- outline: none;
186
- box-shadow: 0 0 2px rgba(128, 179, 235, 0.5), inset 0 0 0 1px rgba(0, 0, 0, 0.05); }
187
- .sweet-alert button:hover {
188
- background-color: #7ecff4; }
189
- .sweet-alert button:active {
190
- background-color: #5dc2f1; }
191
- .sweet-alert button.cancel {
192
- background-color: #C1C1C1; }
193
- .sweet-alert button.cancel:hover {
194
- background-color: #b9b9b9; }
195
- .sweet-alert button.cancel:active {
196
- background-color: #a8a8a8; }
197
- .sweet-alert button.cancel:focus {
198
- box-shadow: rgba(197, 205, 211, 0.8) 0px 0px 2px, rgba(0, 0, 0, 0.0470588) 0px 0px 0px 1px inset !important; }
199
- .sweet-alert button[disabled] {
200
- opacity: .6;
201
- cursor: default; }
202
- .sweet-alert button.confirm[disabled] {
203
- color: transparent; }
204
- .sweet-alert button.confirm[disabled] ~ .la-ball-fall {
205
- opacity: 1;
206
- visibility: visible;
207
- transition-delay: 0s; }
208
- .sweet-alert button::-moz-focus-inner {
209
- border: 0; }
210
- .sweet-alert[data-has-confirm-button=false][data-has-cancel-button=false] {
211
- padding-bottom: 40px; }
212
- .sweet-alert .sa-icon {
213
- width: 80px;
214
- height: 80px;
215
- border: 4px solid gray;
216
- -webkit-border-radius: 40px;
217
- border-radius: 40px;
218
- border-radius: 50%;
219
- margin: 20px auto;
220
- padding: 0;
221
- position: relative;
222
- box-sizing: content-box; }
223
- .sweet-alert .sa-icon.sa-error {
224
- border-color: #F27474; }
225
- .sweet-alert .sa-icon.sa-error .sa-x-mark {
226
- position: relative;
227
- display: block; }
228
- .sweet-alert .sa-icon.sa-error .sa-line {
229
- position: absolute;
230
- height: 5px;
231
- width: 47px;
232
- background-color: #F27474;
233
- display: block;
234
- top: 37px;
235
- border-radius: 2px; }
236
- .sweet-alert .sa-icon.sa-error .sa-line.sa-left {
237
- -webkit-transform: rotate(45deg);
238
- transform: rotate(45deg);
239
- left: 17px; }
240
- .sweet-alert .sa-icon.sa-error .sa-line.sa-right {
241
- -webkit-transform: rotate(-45deg);
242
- transform: rotate(-45deg);
243
- right: 16px; }
244
- .sweet-alert .sa-icon.sa-warning {
245
- border-color: #F8BB86; }
246
- .sweet-alert .sa-icon.sa-warning .sa-body {
247
- position: absolute;
248
- width: 5px;
249
- height: 47px;
250
- left: 50%;
251
- top: 10px;
252
- -webkit-border-radius: 2px;
253
- border-radius: 2px;
254
- margin-left: -2px;
255
- background-color: #F8BB86; }
256
- .sweet-alert .sa-icon.sa-warning .sa-dot {
257
- position: absolute;
258
- width: 7px;
259
- height: 7px;
260
- -webkit-border-radius: 50%;
261
- border-radius: 50%;
262
- margin-left: -3px;
263
- left: 50%;
264
- bottom: 10px;
265
- background-color: #F8BB86; }
266
- .sweet-alert .sa-icon.sa-info {
267
- border-color: #C9DAE1; }
268
- .sweet-alert .sa-icon.sa-info::before {
269
- content: "";
270
- position: absolute;
271
- width: 5px;
272
- height: 29px;
273
- left: 50%;
274
- bottom: 17px;
275
- border-radius: 2px;
276
- margin-left: -2px;
277
- background-color: #C9DAE1; }
278
- .sweet-alert .sa-icon.sa-info::after {
279
- content: "";
280
- position: absolute;
281
- width: 7px;
282
- height: 7px;
283
- border-radius: 50%;
284
- margin-left: -3px;
285
- top: 19px;
286
- background-color: #C9DAE1; }
287
- .sweet-alert .sa-icon.sa-success {
288
- border-color: #A5DC86; }
289
- .sweet-alert .sa-icon.sa-success::before, .sweet-alert .sa-icon.sa-success::after {
290
- content: '';
291
- -webkit-border-radius: 40px;
292
- border-radius: 40px;
293
- border-radius: 50%;
294
- position: absolute;
295
- width: 60px;
296
- height: 120px;
297
- background: white;
298
- -webkit-transform: rotate(45deg);
299
- transform: rotate(45deg); }
300
- .sweet-alert .sa-icon.sa-success::before {
301
- -webkit-border-radius: 120px 0 0 120px;
302
- border-radius: 120px 0 0 120px;
303
- top: -7px;
304
- left: -33px;
305
- -webkit-transform: rotate(-45deg);
306
- transform: rotate(-45deg);
307
- -webkit-transform-origin: 60px 60px;
308
- transform-origin: 60px 60px; }
309
- .sweet-alert .sa-icon.sa-success::after {
310
- -webkit-border-radius: 0 120px 120px 0;
311
- border-radius: 0 120px 120px 0;
312
- top: -11px;
313
- left: 30px;
314
- -webkit-transform: rotate(-45deg);
315
- transform: rotate(-45deg);
316
- -webkit-transform-origin: 0px 60px;
317
- transform-origin: 0px 60px; }
318
- .sweet-alert .sa-icon.sa-success .sa-placeholder {
319
- width: 80px;
320
- height: 80px;
321
- border: 4px solid rgba(165, 220, 134, 0.2);
322
- -webkit-border-radius: 40px;
323
- border-radius: 40px;
324
- border-radius: 50%;
325
- box-sizing: content-box;
326
- position: absolute;
327
- left: -4px;
328
- top: -4px;
329
- z-index: 2; }
330
- .sweet-alert .sa-icon.sa-success .sa-fix {
331
- width: 5px;
332
- height: 90px;
333
- background-color: white;
334
- position: absolute;
335
- left: 28px;
336
- top: 8px;
337
- z-index: 1;
338
- -webkit-transform: rotate(-45deg);
339
- transform: rotate(-45deg); }
340
- .sweet-alert .sa-icon.sa-success .sa-line {
341
- height: 5px;
342
- background-color: #A5DC86;
343
- display: block;
344
- border-radius: 2px;
345
- position: absolute;
346
- z-index: 2; }
347
- .sweet-alert .sa-icon.sa-success .sa-line.sa-tip {
348
- width: 25px;
349
- left: 14px;
350
- top: 46px;
351
- -webkit-transform: rotate(45deg);
352
- transform: rotate(45deg); }
353
- .sweet-alert .sa-icon.sa-success .sa-line.sa-long {
354
- width: 47px;
355
- right: 8px;
356
- top: 38px;
357
- -webkit-transform: rotate(-45deg);
358
- transform: rotate(-45deg); }
359
- .sweet-alert .sa-icon.sa-custom {
360
- background-size: contain;
361
- border-radius: 0;
362
- border: none;
363
- background-position: center center;
364
- background-repeat: no-repeat; }
365
-
366
- /*
367
- * Animations
368
- */
369
- @-webkit-keyframes showSweetAlert {
370
- 0% {
371
- transform: scale(0.7);
372
- -webkit-transform: scale(0.7); }
373
- 45% {
374
- transform: scale(1.05);
375
- -webkit-transform: scale(1.05); }
376
- 80% {
377
- transform: scale(0.95);
378
- -webkit-transform: scale(0.95); }
379
- 100% {
380
- transform: scale(1);
381
- -webkit-transform: scale(1); } }
382
-
383
- @keyframes showSweetAlert {
384
- 0% {
385
- transform: scale(0.7);
386
- -webkit-transform: scale(0.7); }
387
- 45% {
388
- transform: scale(1.05);
389
- -webkit-transform: scale(1.05); }
390
- 80% {
391
- transform: scale(0.95);
392
- -webkit-transform: scale(0.95); }
393
- 100% {
394
- transform: scale(1);
395
- -webkit-transform: scale(1); } }
396
-
397
- @-webkit-keyframes hideSweetAlert {
398
- 0% {
399
- transform: scale(1);
400
- -webkit-transform: scale(1); }
401
- 100% {
402
- transform: scale(0.5);
403
- -webkit-transform: scale(0.5); } }
404
-
405
- @keyframes hideSweetAlert {
406
- 0% {
407
- transform: scale(1);
408
- -webkit-transform: scale(1); }
409
- 100% {
410
- transform: scale(0.5);
411
- -webkit-transform: scale(0.5); } }
412
-
413
- @-webkit-keyframes slideFromTop {
414
- 0% {
415
- top: 0%; }
416
- 100% {
417
- top: 50%; } }
418
-
419
- @keyframes slideFromTop {
420
- 0% {
421
- top: 0%; }
422
- 100% {
423
- top: 50%; } }
424
-
425
- @-webkit-keyframes slideToTop {
426
- 0% {
427
- top: 50%; }
428
- 100% {
429
- top: 0%; } }
430
-
431
- @keyframes slideToTop {
432
- 0% {
433
- top: 50%; }
434
- 100% {
435
- top: 0%; } }
436
-
437
- @-webkit-keyframes slideFromBottom {
438
- 0% {
439
- top: 70%; }
440
- 100% {
441
- top: 50%; } }
442
-
443
- @keyframes slideFromBottom {
444
- 0% {
445
- top: 70%; }
446
- 100% {
447
- top: 50%; } }
448
-
449
- @-webkit-keyframes slideToBottom {
450
- 0% {
451
- top: 50%; }
452
- 100% {
453
- top: 70%; } }
454
-
455
- @keyframes slideToBottom {
456
- 0% {
457
- top: 50%; }
458
- 100% {
459
- top: 70%; } }
460
-
461
- .showSweetAlert[data-animation=pop] {
462
- -webkit-animation: showSweetAlert 0.3s;
463
- animation: showSweetAlert 0.3s; }
464
-
465
- .showSweetAlert[data-animation=none] {
466
- -webkit-animation: none;
467
- animation: none; }
468
-
469
- .showSweetAlert[data-animation=slide-from-top] {
470
- -webkit-animation: slideFromTop 0.3s;
471
- animation: slideFromTop 0.3s; }
472
-
473
- .showSweetAlert[data-animation=slide-from-bottom] {
474
- -webkit-animation: slideFromBottom 0.3s;
475
- animation: slideFromBottom 0.3s; }
476
-
477
- .hideSweetAlert[data-animation=pop] {
478
- -webkit-animation: hideSweetAlert 0.2s;
479
- animation: hideSweetAlert 0.2s; }
480
-
481
- .hideSweetAlert[data-animation=none] {
482
- -webkit-animation: none;
483
- animation: none; }
484
-
485
- .hideSweetAlert[data-animation=slide-from-top] {
486
- -webkit-animation: slideToTop 0.4s;
487
- animation: slideToTop 0.4s; }
488
-
489
- .hideSweetAlert[data-animation=slide-from-bottom] {
490
- -webkit-animation: slideToBottom 0.3s;
491
- animation: slideToBottom 0.3s; }
492
-
493
- @-webkit-keyframes animateSuccessTip {
494
- 0% {
495
- width: 0;
496
- left: 1px;
497
- top: 19px; }
498
- 54% {
499
- width: 0;
500
- left: 1px;
501
- top: 19px; }
502
- 70% {
503
- width: 50px;
504
- left: -8px;
505
- top: 37px; }
506
- 84% {
507
- width: 17px;
508
- left: 21px;
509
- top: 48px; }
510
- 100% {
511
- width: 25px;
512
- left: 14px;
513
- top: 45px; } }
514
-
515
- @keyframes animateSuccessTip {
516
- 0% {
517
- width: 0;
518
- left: 1px;
519
- top: 19px; }
520
- 54% {
521
- width: 0;
522
- left: 1px;
523
- top: 19px; }
524
- 70% {
525
- width: 50px;
526
- left: -8px;
527
- top: 37px; }
528
- 84% {
529
- width: 17px;
530
- left: 21px;
531
- top: 48px; }
532
- 100% {
533
- width: 25px;
534
- left: 14px;
535
- top: 45px; } }
536
-
537
- @-webkit-keyframes animateSuccessLong {
538
- 0% {
539
- width: 0;
540
- right: 46px;
541
- top: 54px; }
542
- 65% {
543
- width: 0;
544
- right: 46px;
545
- top: 54px; }
546
- 84% {
547
- width: 55px;
548
- right: 0px;
549
- top: 35px; }
550
- 100% {
551
- width: 47px;
552
- right: 8px;
553
- top: 38px; } }
554
-
555
- @keyframes animateSuccessLong {
556
- 0% {
557
- width: 0;
558
- right: 46px;
559
- top: 54px; }
560
- 65% {
561
- width: 0;
562
- right: 46px;
563
- top: 54px; }
564
- 84% {
565
- width: 55px;
566
- right: 0px;
567
- top: 35px; }
568
- 100% {
569
- width: 47px;
570
- right: 8px;
571
- top: 38px; } }
572
-
573
- @-webkit-keyframes rotatePlaceholder {
574
- 0% {
575
- transform: rotate(-45deg);
576
- -webkit-transform: rotate(-45deg); }
577
- 5% {
578
- transform: rotate(-45deg);
579
- -webkit-transform: rotate(-45deg); }
580
- 12% {
581
- transform: rotate(-405deg);
582
- -webkit-transform: rotate(-405deg); }
583
- 100% {
584
- transform: rotate(-405deg);
585
- -webkit-transform: rotate(-405deg); } }
586
-
587
- @keyframes rotatePlaceholder {
588
- 0% {
589
- transform: rotate(-45deg);
590
- -webkit-transform: rotate(-45deg); }
591
- 5% {
592
- transform: rotate(-45deg);
593
- -webkit-transform: rotate(-45deg); }
594
- 12% {
595
- transform: rotate(-405deg);
596
- -webkit-transform: rotate(-405deg); }
597
- 100% {
598
- transform: rotate(-405deg);
599
- -webkit-transform: rotate(-405deg); } }
600
-
601
- .animateSuccessTip {
602
- -webkit-animation: animateSuccessTip 0.75s;
603
- animation: animateSuccessTip 0.75s; }
604
-
605
- .animateSuccessLong {
606
- -webkit-animation: animateSuccessLong 0.75s;
607
- animation: animateSuccessLong 0.75s; }
608
-
609
- .sa-icon.sa-success.animate::after {
610
- -webkit-animation: rotatePlaceholder 4.25s ease-in;
611
- animation: rotatePlaceholder 4.25s ease-in; }
612
-
613
- @-webkit-keyframes animateErrorIcon {
614
- 0% {
615
- transform: rotateX(100deg);
616
- -webkit-transform: rotateX(100deg);
617
- opacity: 0; }
618
- 100% {
619
- transform: rotateX(0deg);
620
- -webkit-transform: rotateX(0deg);
621
- opacity: 1; } }
622
-
623
- @keyframes animateErrorIcon {
624
- 0% {
625
- transform: rotateX(100deg);
626
- -webkit-transform: rotateX(100deg);
627
- opacity: 0; }
628
- 100% {
629
- transform: rotateX(0deg);
630
- -webkit-transform: rotateX(0deg);
631
- opacity: 1; } }
632
-
633
- .animateErrorIcon {
634
- -webkit-animation: animateErrorIcon 0.5s;
635
- animation: animateErrorIcon 0.5s; }
636
-
637
- @-webkit-keyframes animateXMark {
638
- 0% {
639
- transform: scale(0.4);
640
- -webkit-transform: scale(0.4);
641
- margin-top: 26px;
642
- opacity: 0; }
643
- 50% {
644
- transform: scale(0.4);
645
- -webkit-transform: scale(0.4);
646
- margin-top: 26px;
647
- opacity: 0; }
648
- 80% {
649
- transform: scale(1.15);
650
- -webkit-transform: scale(1.15);
651
- margin-top: -6px; }
652
- 100% {
653
- transform: scale(1);
654
- -webkit-transform: scale(1);
655
- margin-top: 0;
656
- opacity: 1; } }
657
-
658
- @keyframes animateXMark {
659
- 0% {
660
- transform: scale(0.4);
661
- -webkit-transform: scale(0.4);
662
- margin-top: 26px;
663
- opacity: 0; }
664
- 50% {
665
- transform: scale(0.4);
666
- -webkit-transform: scale(0.4);
667
- margin-top: 26px;
668
- opacity: 0; }
669
- 80% {
670
- transform: scale(1.15);
671
- -webkit-transform: scale(1.15);
672
- margin-top: -6px; }
673
- 100% {
674
- transform: scale(1);
675
- -webkit-transform: scale(1);
676
- margin-top: 0;
677
- opacity: 1; } }
678
-
679
- .animateXMark {
680
- -webkit-animation: animateXMark 0.5s;
681
- animation: animateXMark 0.5s; }
682
-
683
- @-webkit-keyframes pulseWarning {
684
- 0% {
685
- border-color: #F8D486; }
686
- 100% {
687
- border-color: #F8BB86; } }
688
-
689
- @keyframes pulseWarning {
690
- 0% {
691
- border-color: #F8D486; }
692
- 100% {
693
- border-color: #F8BB86; } }
694
-
695
- .pulseWarning {
696
- -webkit-animation: pulseWarning 0.75s infinite alternate;
697
- animation: pulseWarning 0.75s infinite alternate; }
698
-
699
- @-webkit-keyframes pulseWarningIns {
700
- 0% {
701
- background-color: #F8D486; }
702
- 100% {
703
- background-color: #F8BB86; } }
704
-
705
- @keyframes pulseWarningIns {
706
- 0% {
707
- background-color: #F8D486; }
708
- 100% {
709
- background-color: #F8BB86; } }
710
-
711
- .pulseWarningIns {
712
- -webkit-animation: pulseWarningIns 0.75s infinite alternate;
713
- animation: pulseWarningIns 0.75s infinite alternate; }
714
-
715
- @-webkit-keyframes rotate-loading {
716
- 0% {
717
- transform: rotate(0deg); }
718
- 100% {
719
- transform: rotate(360deg); } }
720
-
721
- @keyframes rotate-loading {
722
- 0% {
723
- transform: rotate(0deg); }
724
- 100% {
725
- transform: rotate(360deg); } }
726
-
727
- /* Internet Explorer 9 has some special quirks that are fixed here */
728
- /* The icons are not animated. */
729
- /* This file is automatically merged into sweet-alert.min.js through Gulp */
730
- /* Error icon */
731
- .sweet-alert .sa-icon.sa-error .sa-line.sa-left {
732
- -ms-transform: rotate(45deg) \9; }
733
-
734
- .sweet-alert .sa-icon.sa-error .sa-line.sa-right {
735
- -ms-transform: rotate(-45deg) \9; }
736
-
737
- /* Success icon */
738
- .sweet-alert .sa-icon.sa-success {
739
- border-color: transparent\9; }
740
-
741
- .sweet-alert .sa-icon.sa-success .sa-line.sa-tip {
742
- -ms-transform: rotate(45deg) \9; }
743
-
744
- .sweet-alert .sa-icon.sa-success .sa-line.sa-long {
745
- -ms-transform: rotate(-45deg) \9; }
746
-
747
- /*!
748
- * Load Awesome v1.1.0 (http://github.danielcardoso.net/load-awesome/)
749
- * Copyright 2015 Daniel Cardoso <@DanielCardoso>
750
- * Licensed under MIT
751
- */
752
- .la-ball-fall,
753
- .la-ball-fall > div {
754
- position: relative;
755
- -webkit-box-sizing: border-box;
756
- -moz-box-sizing: border-box;
757
- box-sizing: border-box; }
758
-
759
- .la-ball-fall {
760
- display: block;
761
- font-size: 0;
762
- color: #fff; }
763
-
764
- .la-ball-fall.la-dark {
765
- color: #333; }
766
-
767
- .la-ball-fall > div {
768
- display: inline-block;
769
- float: none;
770
- background-color: currentColor;
771
- border: 0 solid currentColor; }
772
-
773
- .la-ball-fall {
774
- width: 54px;
775
- height: 18px; }
776
-
777
- .la-ball-fall > div {
778
- width: 10px;
779
- height: 10px;
780
- margin: 4px;
781
- border-radius: 100%;
782
- opacity: 0;
783
- -webkit-animation: ball-fall 1s ease-in-out infinite;
784
- -moz-animation: ball-fall 1s ease-in-out infinite;
785
- -o-animation: ball-fall 1s ease-in-out infinite;
786
- animation: ball-fall 1s ease-in-out infinite; }
787
-
788
- .la-ball-fall > div:nth-child(1) {
789
- -webkit-animation-delay: -200ms;
790
- -moz-animation-delay: -200ms;
791
- -o-animation-delay: -200ms;
792
- animation-delay: -200ms; }
793
-
794
- .la-ball-fall > div:nth-child(2) {
795
- -webkit-animation-delay: -100ms;
796
- -moz-animation-delay: -100ms;
797
- -o-animation-delay: -100ms;
798
- animation-delay: -100ms; }
799
-
800
- .la-ball-fall > div:nth-child(3) {
801
- -webkit-animation-delay: 0ms;
802
- -moz-animation-delay: 0ms;
803
- -o-animation-delay: 0ms;
804
- animation-delay: 0ms; }
805
-
806
- .la-ball-fall.la-sm {
807
- width: 26px;
808
- height: 8px; }
809
-
810
- .la-ball-fall.la-sm > div {
811
- width: 4px;
812
- height: 4px;
813
- margin: 2px; }
814
-
815
- .la-ball-fall.la-2x {
816
- width: 108px;
817
- height: 36px; }
818
-
819
- .la-ball-fall.la-2x > div {
820
- width: 20px;
821
- height: 20px;
822
- margin: 8px; }
823
-
824
- .la-ball-fall.la-3x {
825
- width: 162px;
826
- height: 54px; }
827
-
828
- .la-ball-fall.la-3x > div {
829
- width: 30px;
830
- height: 30px;
831
- margin: 12px; }
832
-
833
- /*
834
- * Animation
835
- */
836
- @-webkit-keyframes ball-fall {
837
- 0% {
838
- opacity: 0;
839
- -webkit-transform: translateY(-145%);
840
- transform: translateY(-145%); }
841
- 10% {
842
- opacity: .5; }
843
- 20% {
844
- opacity: 1;
845
- -webkit-transform: translateY(0);
846
- transform: translateY(0); }
847
- 80% {
848
- opacity: 1;
849
- -webkit-transform: translateY(0);
850
- transform: translateY(0); }
851
- 90% {
852
- opacity: .5; }
853
- 100% {
854
- opacity: 0;
855
- -webkit-transform: translateY(145%);
856
- transform: translateY(145%); } }
857
-
858
- @-moz-keyframes ball-fall {
859
- 0% {
860
- opacity: 0;
861
- -moz-transform: translateY(-145%);
862
- transform: translateY(-145%); }
863
- 10% {
864
- opacity: .5; }
865
- 20% {
866
- opacity: 1;
867
- -moz-transform: translateY(0);
868
- transform: translateY(0); }
869
- 80% {
870
- opacity: 1;
871
- -moz-transform: translateY(0);
872
- transform: translateY(0); }
873
- 90% {
874
- opacity: .5; }
875
- 100% {
876
- opacity: 0;
877
- -moz-transform: translateY(145%);
878
- transform: translateY(145%); } }
879
-
880
- @-o-keyframes ball-fall {
881
- 0% {
882
- opacity: 0;
883
- -o-transform: translateY(-145%);
884
- transform: translateY(-145%); }
885
- 10% {
886
- opacity: .5; }
887
- 20% {
888
- opacity: 1;
889
- -o-transform: translateY(0);
890
- transform: translateY(0); }
891
- 80% {
892
- opacity: 1;
893
- -o-transform: translateY(0);
894
- transform: translateY(0); }
895
- 90% {
896
- opacity: .5; }
897
- 100% {
898
- opacity: 0;
899
- -o-transform: translateY(145%);
900
- transform: translateY(145%); } }
901
-
902
- @keyframes ball-fall {
903
- 0% {
904
- opacity: 0;
905
- -webkit-transform: translateY(-145%);
906
- -moz-transform: translateY(-145%);
907
- -o-transform: translateY(-145%);
908
- transform: translateY(-145%); }
909
- 10% {
910
- opacity: .5; }
911
- 20% {
912
- opacity: 1;
913
- -webkit-transform: translateY(0);
914
- -moz-transform: translateY(0);
915
- -o-transform: translateY(0);
916
- transform: translateY(0); }
917
- 80% {
918
- opacity: 1;
919
- -webkit-transform: translateY(0);
920
- -moz-transform: translateY(0);
921
- -o-transform: translateY(0);
922
- transform: translateY(0); }
923
- 90% {
924
- opacity: .5; }
925
- 100% {
926
- opacity: 0;
927
- -webkit-transform: translateY(145%);
928
- -moz-transform: translateY(145%);
929
- -o-transform: translateY(145%);
930
- transform: translateY(145%); } }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/css/sweetalert.min.css DELETED
@@ -1 +0,0 @@
1
- body.stop-scrolling{ height:100%; overflow:hidden}.sweet-overlay{ background-color:black; -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=40)"; background-color:rgba(0,0,0,0.4); position:fixed; left:0; right:0; top:0; bottom:0; display:none; z-index:10000}.sweet-alert{ background-color:white; font-family:'Open Sans','Helvetica Neue',Helvetica,Arial,sans-serif; width:478px; padding:17px; border-radius:5px; text-align:center; position:fixed; left:50%; top:50%; margin-left:-256px; margin-top:-200px; overflow:hidden; display:none; z-index:99999} @media all and (max-width:540px){ .sweet-alert{ width:auto; margin-left:0; margin-right:0; left:15px; right:15px}} .sweet-alert h2{ color:#575757; font-size:30px; text-align:center; font-weight:600; text-transform:none; position:relative; margin:25px 0; padding:0; line-height:40px; display:block} .sweet-alert p{ color:#797979; font-size:16px; text-align:center; font-weight:300; position:relative; text-align:inherit; float:none; margin:0; padding:0; line-height:normal} .sweet-alert fieldset{ border:none; position:relative} .sweet-alert .sa-error-container{ background-color:#f1f1f1; margin-left:-17px; margin-right:-17px; overflow:hidden; padding:0 10px; max-height:0; webkit-transition:padding 0.15s,max-height 0.15s; transition:padding 0.15s,max-height 0.15s} .sweet-alert .sa-error-container.show{ padding:10px 0; max-height:100px; webkit-transition:padding 0.2s,max-height 0.2s; transition:padding 0.25s,max-height 0.25s} .sweet-alert .sa-error-container .icon{ display:inline-block; width:24px; height:24px; border-radius:50%; background-color:#ea7d7d; color:white; line-height:24px; text-align:center; margin-right:3px} .sweet-alert .sa-error-container p{ display:inline-block} .sweet-alert .sa-input-error{ position:absolute; top:29px; right:26px; width:20px; height:20px; opacity:0; -webkit-transform:scale(0.5); transform:scale(0.5); -webkit-transform-origin:50% 50%; transform-origin:50% 50%; -webkit-transition:all 0.1s; transition:all 0.1s} .sweet-alert .sa-input-error::before,.sweet-alert .sa-input-error::after{ content:""; width:20px; height:6px; background-color:#f06e57; border-radius:3px; position:absolute; top:50%; margin-top:-4px; left:50%; margin-left:-9px} .sweet-alert .sa-input-error::before{ -webkit-transform:rotate(-45deg); transform:rotate(-45deg)} .sweet-alert .sa-input-error::after{ -webkit-transform:rotate(45deg); transform:rotate(45deg)} .sweet-alert .sa-input-error.show{ opacity:1; -webkit-transform:scale(1); transform:scale(1)} .sweet-alert input{ width:100%; box-sizing:border-box; border-radius:3px; border:1px solid #d7d7d7; height:43px; margin-top:10px; margin-bottom:17px; font-size:18px; box-shadow:inset 0px 1px 1px rgba(0,0,0,0.06); padding:0 12px; display:none; -webkit-transition:all 0.3s; transition:all 0.3s} .sweet-alert input:focus{ outline:none; box-shadow:0px 0px 3px #c4e6f5; border:1px solid #b4dbed} .sweet-alert input:focus::-moz-placeholder{ transition:opacity 0.3s 0.03s ease; opacity:0.5} .sweet-alert input:focus:-ms-input-placeholder{ transition:opacity 0.3s 0.03s ease; opacity:0.5} .sweet-alert input:focus::-webkit-input-placeholder{ transition:opacity 0.3s 0.03s ease; opacity:0.5} .sweet-alert input::-moz-placeholder{ color:#bdbdbd} .sweet-alert input:-ms-input-placeholder{ color:#bdbdbd} .sweet-alert input::-webkit-input-placeholder{ color:#bdbdbd} .sweet-alert.show-input input{ display:block} .sweet-alert .sa-confirm-button-container{ display:inline-block; position:relative} .sweet-alert .la-ball-fall{ position:absolute; left:50%; top:50%; margin-left:-27px; margin-top:4px; opacity:0; visibility:hidden} .sweet-alert button{ background-color:#8CD4F5; color:white; border:none; box-shadow:none; font-size:17px; font-weight:500; -webkit-border-radius:4px; border-radius:5px; padding:10px 32px; margin:26px 5px 0 5px; cursor:pointer} .sweet-alert button:focus{ outline:none; box-shadow:0 0 2px rgba(128,179,235,0.5),inset 0 0 0 1px rgba(0,0,0,0.05)} .sweet-alert button:hover{ background-color:#7ecff4} .sweet-alert button:active{ background-color:#5dc2f1} .sweet-alert button.cancel{ background-color:#C1C1C1} .sweet-alert button.cancel:hover{ background-color:#b9b9b9} .sweet-alert button.cancel:active{ background-color:#a8a8a8} .sweet-alert button.cancel:focus{ box-shadow:rgba(197,205,211,0.8) 0px 0px 2px,rgba(0,0,0,0.0470588) 0px 0px 0px 1px inset !important} .sweet-alert button[disabled]{ opacity:.6; cursor:default} .sweet-alert button.confirm[disabled]{ color:transparent} .sweet-alert button.confirm[disabled] ~ .la-ball-fall{ opacity:1; visibility:visible; transition-delay:0s} .sweet-alert button::-moz-focus-inner{ border:0} .sweet-alert[data-has-confirm-button=false][data-has-cancel-button=false]{ padding-bottom:40px} .sweet-alert .sa-icon{ width:80px; height:80px; border:4px solid gray; -webkit-border-radius:40px; border-radius:40px; border-radius:50%; margin:20px auto; padding:0; position:relative; box-sizing:content-box} .sweet-alert .sa-icon.sa-error{ border-color:#F27474} .sweet-alert .sa-icon.sa-error .sa-x-mark{ position:relative; display:block} .sweet-alert .sa-icon.sa-error .sa-line{ position:absolute; height:5px; width:47px; background-color:#F27474; display:block; top:37px; border-radius:2px} .sweet-alert .sa-icon.sa-error .sa-line.sa-left{ -webkit-transform:rotate(45deg); transform:rotate(45deg); left:17px} .sweet-alert .sa-icon.sa-error .sa-line.sa-right{ -webkit-transform:rotate(-45deg); transform:rotate(-45deg); right:16px} .sweet-alert .sa-icon.sa-warning{ border-color:#F8BB86} .sweet-alert .sa-icon.sa-warning .sa-body{ position:absolute; width:5px; height:47px; left:50%; top:10px; -webkit-border-radius:2px; border-radius:2px; margin-left:-2px; background-color:#F8BB86} .sweet-alert .sa-icon.sa-warning .sa-dot{ position:absolute; width:7px; height:7px; -webkit-border-radius:50%; border-radius:50%; margin-left:-3px; left:50%; bottom:10px; background-color:#F8BB86} .sweet-alert .sa-icon.sa-info{ border-color:#C9DAE1} .sweet-alert .sa-icon.sa-info::before{ content:""; position:absolute; width:5px; height:29px; left:50%; bottom:17px; border-radius:2px; margin-left:-2px; background-color:#C9DAE1} .sweet-alert .sa-icon.sa-info::after{ content:""; position:absolute; width:7px; height:7px; border-radius:50%; margin-left:-3px; top:19px; background-color:#C9DAE1} .sweet-alert .sa-icon.sa-success{ border-color:#A5DC86} .sweet-alert .sa-icon.sa-success::before,.sweet-alert .sa-icon.sa-success::after{ content:''; -webkit-border-radius:40px; border-radius:40px; border-radius:50%; position:absolute; width:60px; height:120px; background:white; -webkit-transform:rotate(45deg); transform:rotate(45deg)} .sweet-alert .sa-icon.sa-success::before{ -webkit-border-radius:120px 0 0 120px; border-radius:120px 0 0 120px; top:-7px; left:-33px; -webkit-transform:rotate(-45deg); transform:rotate(-45deg); -webkit-transform-origin:60px 60px; transform-origin:60px 60px} .sweet-alert .sa-icon.sa-success::after{ -webkit-border-radius:0 120px 120px 0; border-radius:0 120px 120px 0; top:-11px; left:30px; -webkit-transform:rotate(-45deg); transform:rotate(-45deg); -webkit-transform-origin:0px 60px; transform-origin:0px 60px} .sweet-alert .sa-icon.sa-success .sa-placeholder{ width:80px; height:80px; border:4px solid rgba(165,220,134,0.2); -webkit-border-radius:40px; border-radius:40px; border-radius:50%; box-sizing:content-box; position:absolute; left:-4px; top:-4px; z-index:2} .sweet-alert .sa-icon.sa-success .sa-fix{ width:5px; height:90px; background-color:white; position:absolute; left:28px; top:8px; z-index:1; -webkit-transform:rotate(-45deg); transform:rotate(-45deg)} .sweet-alert .sa-icon.sa-success .sa-line{ height:5px; background-color:#A5DC86; display:block; border-radius:2px; position:absolute; z-index:2} .sweet-alert .sa-icon.sa-success .sa-line.sa-tip{ width:25px; left:14px; top:46px; -webkit-transform:rotate(45deg); transform:rotate(45deg)} .sweet-alert .sa-icon.sa-success .sa-line.sa-long{ width:47px; right:8px; top:38px; -webkit-transform:rotate(-45deg); transform:rotate(-45deg)} .sweet-alert .sa-icon.sa-custom{ background-size:contain; border-radius:0; border:none; background-position:center center; background-repeat:no-repeat}@-webkit-keyframes showSweetAlert{ 0%{ transform:scale(0.7); -webkit-transform:scale(0.7)} 45%{ transform:scale(1.05); -webkit-transform:scale(1.05)} 80%{ transform:scale(0.95); -webkit-transform:scale(0.95)} 100%{ transform:scale(1); -webkit-transform:scale(1)}}@keyframes showSweetAlert{ 0%{ transform:scale(0.7); -webkit-transform:scale(0.7)} 45%{ transform:scale(1.05); -webkit-transform:scale(1.05)} 80%{ transform:scale(0.95); -webkit-transform:scale(0.95)} 100%{ transform:scale(1); -webkit-transform:scale(1)}}@-webkit-keyframes hideSweetAlert{ 0%{ transform:scale(1); -webkit-transform:scale(1)} 100%{ transform:scale(0.5); -webkit-transform:scale(0.5)}}@keyframes hideSweetAlert{ 0%{ transform:scale(1); -webkit-transform:scale(1)} 100%{ transform:scale(0.5); -webkit-transform:scale(0.5)}}@-webkit-keyframes slideFromTop{ 0%{ top:0%} 100%{ top:50%}}@keyframes slideFromTop{ 0%{ top:0%} 100%{ top:50%}}@-webkit-keyframes slideToTop{ 0%{ top:50%} 100%{ top:0%}}@keyframes slideToTop{ 0%{ top:50%} 100%{ top:0%}}@-webkit-keyframes slideFromBottom{ 0%{ top:70%} 100%{ top:50%}}@keyframes slideFromBottom{ 0%{ top:70%} 100%{ top:50%}}@-webkit-keyframes slideToBottom{ 0%{ top:50%} 100%{ top:70%}}@keyframes slideToBottom{ 0%{ top:50%} 100%{ top:70%}}.showSweetAlert[data-animation=pop]{ -webkit-animation:showSweetAlert 0.3s; animation:showSweetAlert 0.3s}.showSweetAlert[data-animation=none]{ -webkit-animation:none; animation:none}.showSweetAlert[data-animation=slide-from-top]{ -webkit-animation:slideFromTop 0.3s; animation:slideFromTop 0.3s}.showSweetAlert[data-animation=slide-from-bottom]{ -webkit-animation:slideFromBottom 0.3s; animation:slideFromBottom 0.3s}.hideSweetAlert[data-animation=pop]{ -webkit-animation:hideSweetAlert 0.2s; animation:hideSweetAlert 0.2s}.hideSweetAlert[data-animation=none]{ -webkit-animation:none; animation:none}.hideSweetAlert[data-animation=slide-from-top]{ -webkit-animation:slideToTop 0.4s; animation:slideToTop 0.4s}.hideSweetAlert[data-animation=slide-from-bottom]{ -webkit-animation:slideToBottom 0.3s; animation:slideToBottom 0.3s}@-webkit-keyframes animateSuccessTip{ 0%{ width:0; left:1px; top:19px} 54%{ width:0; left:1px; top:19px} 70%{ width:50px; left:-8px; top:37px} 84%{ width:17px; left:21px; top:48px} 100%{ width:25px; left:14px; top:45px}}@keyframes animateSuccessTip{ 0%{ width:0; left:1px; top:19px} 54%{ width:0; left:1px; top:19px} 70%{ width:50px; left:-8px; top:37px} 84%{ width:17px; left:21px; top:48px} 100%{ width:25px; left:14px; top:45px}}@-webkit-keyframes animateSuccessLong{ 0%{ width:0; right:46px; top:54px} 65%{ width:0; right:46px; top:54px} 84%{ width:55px; right:0px; top:35px} 100%{ width:47px; right:8px; top:38px}}@keyframes animateSuccessLong{ 0%{ width:0; right:46px; top:54px} 65%{ width:0; right:46px; top:54px} 84%{ width:55px; right:0px; top:35px} 100%{ width:47px; right:8px; top:38px}}@-webkit-keyframes rotatePlaceholder{ 0%{ transform:rotate(-45deg); -webkit-transform:rotate(-45deg)} 5%{ transform:rotate(-45deg); -webkit-transform:rotate(-45deg)} 12%{ transform:rotate(-405deg); -webkit-transform:rotate(-405deg)} 100%{ transform:rotate(-405deg); -webkit-transform:rotate(-405deg)}}@keyframes rotatePlaceholder{ 0%{ transform:rotate(-45deg); -webkit-transform:rotate(-45deg)} 5%{ transform:rotate(-45deg); -webkit-transform:rotate(-45deg)} 12%{ transform:rotate(-405deg); -webkit-transform:rotate(-405deg)} 100%{ transform:rotate(-405deg); -webkit-transform:rotate(-405deg)}}.animateSuccessTip{ -webkit-animation:animateSuccessTip 0.75s; animation:animateSuccessTip 0.75s}.animateSuccessLong{ -webkit-animation:animateSuccessLong 0.75s; animation:animateSuccessLong 0.75s}.sa-icon.sa-success.animate::after{ -webkit-animation:rotatePlaceholder 4.25s ease-in; animation:rotatePlaceholder 4.25s ease-in}@-webkit-keyframes animateErrorIcon{ 0%{ transform:rotateX(100deg); -webkit-transform:rotateX(100deg); opacity:0} 100%{ transform:rotateX(0deg); -webkit-transform:rotateX(0deg); opacity:1}}@keyframes animateErrorIcon{ 0%{ transform:rotateX(100deg); -webkit-transform:rotateX(100deg); opacity:0} 100%{ transform:rotateX(0deg); -webkit-transform:rotateX(0deg); opacity:1}}.animateErrorIcon{ -webkit-animation:animateErrorIcon 0.5s; animation:animateErrorIcon 0.5s}@-webkit-keyframes animateXMark{ 0%{ transform:scale(0.4); -webkit-transform:scale(0.4); margin-top:26px; opacity:0} 50%{ transform:scale(0.4); -webkit-transform:scale(0.4); margin-top:26px; opacity:0} 80%{ transform:scale(1.15); -webkit-transform:scale(1.15); margin-top:-6px} 100%{ transform:scale(1); -webkit-transform:scale(1); margin-top:0; opacity:1}}@keyframes animateXMark{ 0%{ transform:scale(0.4); -webkit-transform:scale(0.4); margin-top:26px; opacity:0} 50%{ transform:scale(0.4); -webkit-transform:scale(0.4); margin-top:26px; opacity:0} 80%{ transform:scale(1.15); -webkit-transform:scale(1.15); margin-top:-6px} 100%{ transform:scale(1); -webkit-transform:scale(1); margin-top:0; opacity:1}}.animateXMark{ -webkit-animation:animateXMark 0.5s; animation:animateXMark 0.5s}@-webkit-keyframes pulseWarning{ 0%{ border-color:#F8D486} 100%{ border-color:#F8BB86}}@keyframes pulseWarning{ 0%{ border-color:#F8D486} 100%{ border-color:#F8BB86}}.pulseWarning{ -webkit-animation:pulseWarning 0.75s infinite alternate; animation:pulseWarning 0.75s infinite alternate}@-webkit-keyframes pulseWarningIns{ 0%{ background-color:#F8D486} 100%{ background-color:#F8BB86}}@keyframes pulseWarningIns{ 0%{ background-color:#F8D486} 100%{ background-color:#F8BB86}}.pulseWarningIns{ -webkit-animation:pulseWarningIns 0.75s infinite alternate; animation:pulseWarningIns 0.75s infinite alternate}@-webkit-keyframes rotate-loading{ 0%{ transform:rotate(0deg)} 100%{ transform:rotate(360deg)}}@keyframes rotate-loading{ 0%{ transform:rotate(0deg)} 100%{ transform:rotate(360deg)}}.sweet-alert .sa-icon.sa-error .sa-line.sa-left{ -ms-transform:rotate(45deg) \9}.sweet-alert .sa-icon.sa-error .sa-line.sa-right{ -ms-transform:rotate(-45deg) \9}.sweet-alert .sa-icon.sa-success{ border-color:transparent\9}.sweet-alert .sa-icon.sa-success .sa-line.sa-tip{ -ms-transform:rotate(45deg) \9}.sweet-alert .sa-icon.sa-success .sa-line.sa-long{ -ms-transform:rotate(-45deg) \9}.la-ball-fall,.la-ball-fall >div{ position:relative; -webkit-box-sizing:border-box; -moz-box-sizing:border-box; box-sizing:border-box}.la-ball-fall{ display:block; font-size:0; color:#fff}.la-ball-fall.la-dark{ color:#333}.la-ball-fall >div{ display:inline-block; float:none; background-color:currentColor; border:0 solid currentColor}.la-ball-fall{ width:54px; height:18px}.la-ball-fall >div{ width:10px; height:10px; margin:4px; border-radius:100%; opacity:0; -webkit-animation:ball-fall 1s ease-in-out infinite; -moz-animation:ball-fall 1s ease-in-out infinite; -o-animation:ball-fall 1s ease-in-out infinite; animation:ball-fall 1s ease-in-out infinite}.la-ball-fall >div:nth-child(1){ -webkit-animation-delay:-200ms; -moz-animation-delay:-200ms; -o-animation-delay:-200ms; animation-delay:-200ms}.la-ball-fall >div:nth-child(2){ -webkit-animation-delay:-100ms; -moz-animation-delay:-100ms; -o-animation-delay:-100ms; animation-delay:-100ms}.la-ball-fall >div:nth-child(3){ -webkit-animation-delay:0ms; -moz-animation-delay:0ms; -o-animation-delay:0ms; animation-delay:0ms}.la-ball-fall.la-sm{ width:26px; height:8px}.la-ball-fall.la-sm >div{ width:4px; height:4px; margin:2px}.la-ball-fall.la-2x{ width:108px; height:36px}.la-ball-fall.la-2x >div{ width:20px; height:20px; margin:8px}.la-ball-fall.la-3x{ width:162px; height:54px}.la-ball-fall.la-3x >div{ width:30px; height:30px; margin:12px}@-webkit-keyframes ball-fall{ 0%{ opacity:0; -webkit-transform:translateY(-145%); transform:translateY(-145%)} 10%{ opacity:.5} 20%{ opacity:1; -webkit-transform:translateY(0); transform:translateY(0)} 80%{ opacity:1; -webkit-transform:translateY(0); transform:translateY(0)} 90%{ opacity:.5} 100%{ opacity:0; -webkit-transform:translateY(145%); transform:translateY(145%)}}@-moz-keyframes ball-fall{ 0%{ opacity:0; -moz-transform:translateY(-145%); transform:translateY(-145%)} 10%{ opacity:.5} 20%{ opacity:1; -moz-transform:translateY(0); transform:translateY(0)} 80%{ opacity:1; -moz-transform:translateY(0); transform:translateY(0)} 90%{ opacity:.5} 100%{ opacity:0; -moz-transform:translateY(145%); transform:translateY(145%)}}@-o-keyframes ball-fall{ 0%{ opacity:0; -o-transform:translateY(-145%); transform:translateY(-145%)} 10%{ opacity:.5} 20%{ opacity:1; -o-transform:translateY(0); transform:translateY(0)} 80%{ opacity:1; -o-transform:translateY(0); transform:translateY(0)} 90%{ opacity:.5} 100%{ opacity:0; -o-transform:translateY(145%); transform:translateY(145%)}}@keyframes ball-fall{ 0%{ opacity:0; -webkit-transform:translateY(-145%); -moz-transform:translateY(-145%); -o-transform:translateY(-145%); transform:translateY(-145%)} 10%{ opacity:.5} 20%{ opacity:1; -webkit-transform:translateY(0); -moz-transform:translateY(0); -o-transform:translateY(0); transform:translateY(0)} 80%{ opacity:1; -webkit-transform:translateY(0); -moz-transform:translateY(0); -o-transform:translateY(0); transform:translateY(0)} 90%{ opacity:.5} 100%{ opacity:0; -webkit-transform:translateY(145%); -moz-transform:translateY(145%); -o-transform:translateY(145%); transform:translateY(145%)}}
 
assets/css/sweetalert2.css ADDED
@@ -0,0 +1,618 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .swal2-overlay {
2
+ background-color: rgba(0, 0, 0, 0.4);
3
+ position: fixed;
4
+ left: 0;
5
+ right: 0;
6
+ top: 0;
7
+ bottom: 0;
8
+ display: none;
9
+ z-index: 1000; }
10
+
11
+ .swal2-modal {
12
+ background-color: #fff;
13
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
14
+ border-radius: 5px;
15
+ box-sizing: border-box;
16
+ text-align: center;
17
+ position: fixed;
18
+ left: 50%;
19
+ top: 50%;
20
+ margin-top: -200px;
21
+ max-height: 90%;
22
+ overflow-x: hidden;
23
+ overflow-y: auto;
24
+ display: none;
25
+ z-index: 2000; }
26
+ .swal2-modal.loading {
27
+ overflow-y: hidden; }
28
+ .swal2-modal h2 {
29
+ color: #575757;
30
+ font-size: 30px;
31
+ text-align: center;
32
+ font-weight: 600;
33
+ text-transform: none;
34
+ position: relative;
35
+ margin: 0;
36
+ padding: 0;
37
+ line-height: 60px;
38
+ display: block; }
39
+ .swal2-modal hr {
40
+ height: 10px;
41
+ color: transparent;
42
+ border: 0; }
43
+ .swal2-modal button.styled {
44
+ color: #fff;
45
+ border: 0;
46
+ box-shadow: none;
47
+ font-size: 17px;
48
+ font-weight: 500;
49
+ border-radius: 3px;
50
+ padding: 10px 32px;
51
+ margin: 0 5px;
52
+ cursor: pointer; }
53
+ .swal2-modal button.styled:not(.loading)[disabled] {
54
+ opacity: .4;
55
+ cursor: no-drop; }
56
+ .swal2-modal button.styled.loading {
57
+ box-sizing: border-box;
58
+ border: 4px solid transparent;
59
+ border-color: transparent;
60
+ width: 40px;
61
+ height: 40px;
62
+ padding: 0;
63
+ margin: -2px 30px;
64
+ vertical-align: top;
65
+ background-color: transparent !important;
66
+ color: transparent;
67
+ cursor: default;
68
+ border-radius: 100%;
69
+ -webkit-animation: rotate-loading 1.5s linear 0s infinite normal;
70
+ animation: rotate-loading 1.5s linear 0s infinite normal; }
71
+ .swal2-modal button:not(.styled).loading:after {
72
+ display: inline-block;
73
+ content: "";
74
+ margin-left: 5px;
75
+ vertical-align: -1px;
76
+ height: 6px;
77
+ width: 6px;
78
+ border: 3px solid #999;
79
+ border-right-color: transparent;
80
+ border-radius: 50%;
81
+ -webkit-animation: rotate-loading 1.5s linear 0s infinite normal;
82
+ animation: rotate-loading 1.5s linear 0s infinite normal; }
83
+ .swal2-modal .swal2-image {
84
+ margin: 20px auto;
85
+ max-width: 100%; }
86
+ .swal2-modal .swal2-close {
87
+ font-size: 36px;
88
+ line-height: 36px;
89
+ font-family: serif;
90
+ position: absolute;
91
+ top: 5px;
92
+ right: 13px;
93
+ cursor: pointer;
94
+ color: #cfcfcf;
95
+ -webkit-transition: all 0.1s ease;
96
+ transition: all 0.1s ease; }
97
+ .swal2-modal .swal2-close:hover {
98
+ color: #d55; }
99
+ .swal2-modal > .swal2-input,
100
+ .swal2-modal > .swal2-textarea,
101
+ .swal2-modal > .swal2-select,
102
+ .swal2-modal > .swal2-radio,
103
+ .swal2-modal > .swal2-checkbox {
104
+ display: none; }
105
+
106
+ .swal2-content {
107
+ font-size: 18px;
108
+ text-align: center;
109
+ font-weight: 300;
110
+ position: relative;
111
+ float: none;
112
+ margin: 0;
113
+ padding: 0;
114
+ line-height: normal;
115
+ color: #555; }
116
+
117
+ .swal2-icon {
118
+ width: 80px;
119
+ height: 80px;
120
+ border: 4px solid #808080;
121
+ border-radius: 50%;
122
+ margin: 20px auto 30px;
123
+ padding: 0;
124
+ position: relative;
125
+ box-sizing: content-box;
126
+ cursor: default;
127
+ /* http://stackoverflow.com/a/4407335/1331425 */
128
+ -webkit-touch-callout: none;
129
+ -webkit-user-select: none;
130
+ -moz-user-select: none;
131
+ -ms-user-select: none;
132
+ user-select: none; }
133
+ .swal2-icon.swal2-error {
134
+ border-color: #f27474; }
135
+ .swal2-icon.swal2-error .x-mark {
136
+ position: relative;
137
+ display: block; }
138
+ .swal2-icon.swal2-error .line {
139
+ position: absolute;
140
+ height: 5px;
141
+ width: 47px;
142
+ background-color: #f27474;
143
+ display: block;
144
+ top: 37px;
145
+ border-radius: 2px; }
146
+ .swal2-icon.swal2-error .line.left {
147
+ -webkit-transform: rotate(45deg);
148
+ transform: rotate(45deg);
149
+ left: 17px; }
150
+ .swal2-icon.swal2-error .line.right {
151
+ -webkit-transform: rotate(-45deg);
152
+ transform: rotate(-45deg);
153
+ right: 16px; }
154
+ .swal2-icon.swal2-warning {
155
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
156
+ color: #f8bb86;
157
+ border-color: #f8bb86;
158
+ font-size: 60px;
159
+ line-height: 80px;
160
+ text-align: center; }
161
+ .swal2-icon.swal2-info {
162
+ font-family: "Open Sans", sans-serif;
163
+ color: #3fc3ee;
164
+ border-color: #3fc3ee;
165
+ font-size: 60px;
166
+ line-height: 80px;
167
+ text-align: center; }
168
+ .swal2-icon.swal2-question {
169
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
170
+ color: #c9dae1;
171
+ border-color: #c9dae1;
172
+ font-size: 60px;
173
+ line-height: 80px;
174
+ text-align: center; }
175
+ .swal2-icon.swal2-success {
176
+ border-color: #a5dc86; }
177
+ .swal2-icon.swal2-success::before, .swal2-icon.swal2-success::after {
178
+ content: '';
179
+ border-radius: 50%;
180
+ position: absolute;
181
+ width: 60px;
182
+ height: 120px;
183
+ background: #fff;
184
+ -webkit-transform: rotate(45deg);
185
+ transform: rotate(45deg); }
186
+ .swal2-icon.swal2-success::before {
187
+ border-radius: 120px 0 0 120px;
188
+ top: -7px;
189
+ left: -33px;
190
+ -webkit-transform: rotate(-45deg);
191
+ transform: rotate(-45deg);
192
+ -webkit-transform-origin: 60px 60px;
193
+ transform-origin: 60px 60px; }
194
+ .swal2-icon.swal2-success::after {
195
+ border-radius: 0 120px 120px 0;
196
+ top: -11px;
197
+ left: 30px;
198
+ -webkit-transform: rotate(-45deg);
199
+ transform: rotate(-45deg);
200
+ -webkit-transform-origin: 0 60px;
201
+ transform-origin: 0 60px; }
202
+ .swal2-icon.swal2-success .placeholder {
203
+ width: 80px;
204
+ height: 80px;
205
+ border: 4px solid rgba(165, 220, 134, 0.2);
206
+ border-radius: 50%;
207
+ box-sizing: content-box;
208
+ position: absolute;
209
+ left: -4px;
210
+ top: -4px;
211
+ z-index: 2; }
212
+ .swal2-icon.swal2-success .fix {
213
+ width: 7px;
214
+ height: 90px;
215
+ background-color: #fff;
216
+ position: absolute;
217
+ left: 28px;
218
+ top: 8px;
219
+ z-index: 1;
220
+ -webkit-transform: rotate(-45deg);
221
+ transform: rotate(-45deg); }
222
+ .swal2-icon.swal2-success .line {
223
+ height: 5px;
224
+ background-color: #a5dc86;
225
+ display: block;
226
+ border-radius: 2px;
227
+ position: absolute;
228
+ z-index: 2; }
229
+ .swal2-icon.swal2-success .line.tip {
230
+ width: 25px;
231
+ left: 14px;
232
+ top: 46px;
233
+ -webkit-transform: rotate(45deg);
234
+ transform: rotate(45deg); }
235
+ .swal2-icon.swal2-success .line.long {
236
+ width: 47px;
237
+ right: 8px;
238
+ top: 38px;
239
+ -webkit-transform: rotate(-45deg);
240
+ transform: rotate(-45deg); }
241
+
242
+ .swal2-input,
243
+ .swal2-textarea,
244
+ .swal2-select,
245
+ .swal2-radio,
246
+ .swal2-checkbox {
247
+ margin: 20px auto; }
248
+
249
+ .swal2-input:not([type="file"]), .swal2-textarea {
250
+ width: 100%;
251
+ box-sizing: border-box;
252
+ border-radius: 3px;
253
+ border: 1px solid #d7d7d7;
254
+ font-size: 18px;
255
+ box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.06);
256
+ -webkit-transition: all 0.3s;
257
+ transition: all 0.3s; }
258
+ .swal2-input:not([type="file"]).error, .swal2-textarea.error {
259
+ border-color: #f06e57 !important; }
260
+ .swal2-input:not([type="file"]):focus, .swal2-textarea:focus {
261
+ outline: none;
262
+ box-shadow: 0px 0px 3px #c4e6f5;
263
+ border: 1px solid #b4dbed; }
264
+ .swal2-input:not([type="file"]):focus::-moz-placeholder, .swal2-textarea:focus::-moz-placeholder {
265
+ -webkit-transition: opacity 0.3s 0.03s ease;
266
+ transition: opacity 0.3s 0.03s ease;
267
+ opacity: 0.8; }
268
+ .swal2-input:not([type="file"]):focus:-ms-input-placeholder, .swal2-textarea:focus:-ms-input-placeholder {
269
+ -webkit-transition: opacity 0.3s 0.03s ease;
270
+ transition: opacity 0.3s 0.03s ease;
271
+ opacity: 0.8; }
272
+ .swal2-input:not([type="file"]):focus::-webkit-input-placeholder, .swal2-textarea:focus::-webkit-input-placeholder {
273
+ -webkit-transition: opacity 0.3s 0.03s ease;
274
+ transition: opacity 0.3s 0.03s ease;
275
+ opacity: 0.8; }
276
+ .swal2-input:not([type="file"])::-moz-placeholder, .swal2-textarea::-moz-placeholder {
277
+ color: #bdbdbd; }
278
+ .swal2-input:not([type="file"]):-ms-input-placeholder, .swal2-textarea:-ms-input-placeholder {
279
+ color: #bdbdbd; }
280
+ .swal2-input:not([type="file"])::-webkit-input-placeholder, .swal2-textarea::-webkit-input-placeholder {
281
+ color: #bdbdbd; }
282
+
283
+ .swal2-input:not([type="file"]) {
284
+ height: 43px;
285
+ padding: 0 12px; }
286
+
287
+ .swal2-input[type="file"] {
288
+ font-size: 20px; }
289
+
290
+ .swal2-textarea {
291
+ height: 108px;
292
+ padding: 12px; }
293
+
294
+ .swal2-select {
295
+ color: #555;
296
+ font-size: inherit;
297
+ padding: 5px 10px;
298
+ min-width: 40%;
299
+ max-width: 100%; }
300
+
301
+ .swal2-radio {
302
+ border: 0; }
303
+ .swal2-radio label:not(:first-child) {
304
+ margin-left: 20px; }
305
+ .swal2-radio input, .swal2-radio span {
306
+ vertical-align: middle; }
307
+ .swal2-radio input {
308
+ margin: 0 3px 0 0; }
309
+
310
+ .swal2-checkbox {
311
+ color: #555; }
312
+ .swal2-checkbox input, .swal2-checkbox span {
313
+ vertical-align: middle; }
314
+
315
+ .swal2-validationerror {
316
+ background-color: #f1f1f1;
317
+ margin: 0 -20px;
318
+ overflow: hidden;
319
+ padding: 10px;
320
+ color: #797979;
321
+ font-size: 16px;
322
+ font-weight: 300;
323
+ display: none; }
324
+ .swal2-validationerror::before {
325
+ content: "!";
326
+ display: inline-block;
327
+ width: 24px;
328
+ height: 24px;
329
+ border-radius: 50%;
330
+ background-color: #ea7d7d;
331
+ color: white;
332
+ line-height: 24px;
333
+ text-align: center;
334
+ margin-right: 10px; }
335
+
336
+ @-webkit-keyframes showSweetAlert {
337
+ 0% {
338
+ -webkit-transform: scale(0.7);
339
+ transform: scale(0.7); }
340
+ 45% {
341
+ -webkit-transform: scale(1.05);
342
+ transform: scale(1.05); }
343
+ 80% {
344
+ -webkit-transform: scale(0.95);
345
+ transform: scale(0.95); }
346
+ 100% {
347
+ -webkit-transform: scale(1);
348
+ transform: scale(1); } }
349
+
350
+ @keyframes showSweetAlert {
351
+ 0% {
352
+ -webkit-transform: scale(0.7);
353
+ transform: scale(0.7); }
354
+ 45% {
355
+ -webkit-transform: scale(1.05);
356
+ transform: scale(1.05); }
357
+ 80% {
358
+ -webkit-transform: scale(0.95);
359
+ transform: scale(0.95); }
360
+ 100% {
361
+ -webkit-transform: scale(1);
362
+ transform: scale(1); } }
363
+
364
+ @-webkit-keyframes hideSweetAlert {
365
+ 0% {
366
+ -webkit-transform: scale(1);
367
+ transform: scale(1);
368
+ opacity: 1; }
369
+ 100% {
370
+ -webkit-transform: scale(0.5);
371
+ transform: scale(0.5);
372
+ opacity: 0; } }
373
+
374
+ @keyframes hideSweetAlert {
375
+ 0% {
376
+ -webkit-transform: scale(1);
377
+ transform: scale(1);
378
+ opacity: 1; }
379
+ 100% {
380
+ -webkit-transform: scale(0.5);
381
+ transform: scale(0.5);
382
+ opacity: 0; } }
383
+
384
+ .show-swal2 {
385
+ -webkit-animation: showSweetAlert 0.3s;
386
+ animation: showSweetAlert 0.3s; }
387
+ .show-swal2.no-animation {
388
+ -webkit-animation: none;
389
+ animation: none; }
390
+
391
+ .hide-swal2 {
392
+ -webkit-animation: hideSweetAlert 0.15s;
393
+ animation: hideSweetAlert 0.15s; }
394
+ .hide-swal2.no-animation {
395
+ -webkit-animation: none;
396
+ animation: none; }
397
+
398
+ @-webkit-keyframes animate-success-tip {
399
+ 0% {
400
+ width: 0;
401
+ left: 1px;
402
+ top: 19px; }
403
+ 54% {
404
+ width: 0;
405
+ left: 1px;
406
+ top: 19px; }
407
+ 70% {
408
+ width: 50px;
409
+ left: -8px;
410
+ top: 37px; }
411
+ 84% {
412
+ width: 17px;
413
+ left: 21px;
414
+ top: 48px; }
415
+ 100% {
416
+ width: 25px;
417
+ left: 14px;
418
+ top: 45px; } }
419
+
420
+ @keyframes animate-success-tip {
421
+ 0% {
422
+ width: 0;
423
+ left: 1px;
424
+ top: 19px; }
425
+ 54% {
426
+ width: 0;
427
+ left: 1px;
428
+ top: 19px; }
429
+ 70% {
430
+ width: 50px;
431
+ left: -8px;
432
+ top: 37px; }
433
+ 84% {
434
+ width: 17px;
435
+ left: 21px;
436
+ top: 48px; }
437
+ 100% {
438
+ width: 25px;
439
+ left: 14px;
440
+ top: 45px; } }
441
+
442
+ @-webkit-keyframes animate-success-long {
443
+ 0% {
444
+ width: 0;
445
+ right: 46px;
446
+ top: 54px; }
447
+ 65% {
448
+ width: 0;
449
+ right: 46px;
450
+ top: 54px; }
451
+ 84% {
452
+ width: 55px;
453
+ right: 0;
454
+ top: 35px; }
455
+ 100% {
456
+ width: 47px;
457
+ right: 8px;
458
+ top: 38px; } }
459
+
460
+ @keyframes animate-success-long {
461
+ 0% {
462
+ width: 0;
463
+ right: 46px;
464
+ top: 54px; }
465
+ 65% {
466
+ width: 0;
467
+ right: 46px;
468
+ top: 54px; }
469
+ 84% {
470
+ width: 55px;
471
+ right: 0;
472
+ top: 35px; }
473
+ 100% {
474
+ width: 47px;
475
+ right: 8px;
476
+ top: 38px; } }
477
+
478
+ @-webkit-keyframes rotatePlaceholder {
479
+ 0% {
480
+ -webkit-transform: rotate(-45deg);
481
+ transform: rotate(-45deg); }
482
+ 5% {
483
+ -webkit-transform: rotate(-45deg);
484
+ transform: rotate(-45deg); }
485
+ 12% {
486
+ -webkit-transform: rotate(-405deg);
487
+ transform: rotate(-405deg); }
488
+ 100% {
489
+ -webkit-transform: rotate(-405deg);
490
+ transform: rotate(-405deg); } }
491
+
492
+ @keyframes rotatePlaceholder {
493
+ 0% {
494
+ -webkit-transform: rotate(-45deg);
495
+ transform: rotate(-45deg); }
496
+ 5% {
497
+ -webkit-transform: rotate(-45deg);
498
+ transform: rotate(-45deg); }
499
+ 12% {
500
+ -webkit-transform: rotate(-405deg);
501
+ transform: rotate(-405deg); }
502
+ 100% {
503
+ -webkit-transform: rotate(-405deg);
504
+ transform: rotate(-405deg); } }
505
+
506
+ .animate-success-tip {
507
+ -webkit-animation: animate-success-tip 0.75s;
508
+ animation: animate-success-tip 0.75s; }
509
+
510
+ .animate-success-long {
511
+ -webkit-animation: animate-success-long 0.75s;
512
+ animation: animate-success-long 0.75s; }
513
+
514
+ .swal2-icon.swal2-success.animate::after {
515
+ -webkit-animation: rotatePlaceholder 4.25s ease-in;
516
+ animation: rotatePlaceholder 4.25s ease-in; }
517
+
518
+ @-webkit-keyframes animate-error-icon {
519
+ 0% {
520
+ -webkit-transform: rotateX(100deg);
521
+ transform: rotateX(100deg);
522
+ opacity: 0; }
523
+ 100% {
524
+ -webkit-transform: rotateX(0deg);
525
+ transform: rotateX(0deg);
526
+ opacity: 1; } }
527
+
528
+ @keyframes animate-error-icon {
529
+ 0% {
530
+ -webkit-transform: rotateX(100deg);
531
+ transform: rotateX(100deg);
532
+ opacity: 0; }
533
+ 100% {
534
+ -webkit-transform: rotateX(0deg);
535
+ transform: rotateX(0deg);
536
+ opacity: 1; } }
537
+
538
+ .animate-error-icon {
539
+ -webkit-animation: animate-error-icon 0.5s;
540
+ animation: animate-error-icon 0.5s; }
541
+
542
+ @-webkit-keyframes animate-x-mark {
543
+ 0% {
544
+ -webkit-transform: scale(0.4);
545
+ transform: scale(0.4);
546
+ margin-top: 26px;
547
+ opacity: 0; }
548
+ 50% {
549
+ -webkit-transform: scale(0.4);
550
+ transform: scale(0.4);
551
+ margin-top: 26px;
552
+ opacity: 0; }
553
+ 80% {
554
+ -webkit-transform: scale(1.15);
555
+ transform: scale(1.15);
556
+ margin-top: -6px; }
557
+ 100% {
558
+ -webkit-transform: scale(1);
559
+ transform: scale(1);
560
+ margin-top: 0;
561
+ opacity: 1; } }
562
+
563
+ @keyframes animate-x-mark {
564
+ 0% {
565
+ -webkit-transform: scale(0.4);
566
+ transform: scale(0.4);
567
+ margin-top: 26px;
568
+ opacity: 0; }
569
+ 50% {
570
+ -webkit-transform: scale(0.4);
571
+ transform: scale(0.4);
572
+ margin-top: 26px;
573
+ opacity: 0; }
574
+ 80% {
575
+ -webkit-transform: scale(1.15);
576
+ transform: scale(1.15);
577
+ margin-top: -6px; }
578
+ 100% {
579
+ -webkit-transform: scale(1);
580
+ transform: scale(1);
581
+ margin-top: 0;
582
+ opacity: 1; } }
583
+
584
+ .animate-x-mark {
585
+ -webkit-animation: animate-x-mark 0.5s;
586
+ animation: animate-x-mark 0.5s; }
587
+
588
+ @-webkit-keyframes pulse-warning {
589
+ 0% {
590
+ border-color: #f8d486; }
591
+ 100% {
592
+ border-color: #f8bb86; } }
593
+
594
+ @keyframes pulse-warning {
595
+ 0% {
596
+ border-color: #f8d486; }
597
+ 100% {
598
+ border-color: #f8bb86; } }
599
+
600
+ .pulse-warning {
601
+ -webkit-animation: pulse-warning 0.75s infinite alternate;
602
+ animation: pulse-warning 0.75s infinite alternate; }
603
+
604
+ @-webkit-keyframes rotate-loading {
605
+ 0% {
606
+ -webkit-transform: rotate(0deg);
607
+ transform: rotate(0deg); }
608
+ 100% {
609
+ -webkit-transform: rotate(360deg);
610
+ transform: rotate(360deg); } }
611
+
612
+ @keyframes rotate-loading {
613
+ 0% {
614
+ -webkit-transform: rotate(0deg);
615
+ transform: rotate(0deg); }
616
+ 100% {
617
+ -webkit-transform: rotate(360deg);
618
+ transform: rotate(360deg); } }
assets/css/sweetalert2.min.css ADDED
@@ -0,0 +1 @@
 
1
+ .swal2-modal,.swal2-overlay{position:fixed;display:none}.swal2-overlay{background-color:rgba(0,0,0,.4);left:0;right:0;top:0;bottom:0;z-index:1000}.swal2-modal{background-color:#fff;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;border-radius:5px;box-sizing:border-box;text-align:center;left:50%;top:50%;margin-top:-200px;max-height:90%;overflow-x:hidden;overflow-y:auto;z-index:2000}.swal2-modal.loading{overflow-y:hidden}.swal2-modal h2{color:#575757;font-size:30px;text-align:center;font-weight:600;text-transform:none;position:relative;margin:0;padding:0;line-height:60px;display:block}.swal2-modal hr{height:10px;color:transparent;border:0}.swal2-modal button.styled{color:#fff;border:0;box-shadow:none;font-size:17px;font-weight:500;border-radius:3px;padding:10px 32px;margin:0 5px;cursor:pointer}.swal2-content,.swal2-icon{padding:0;position:relative}.swal2-modal button.styled:not(.loading)[disabled]{opacity:.4;cursor:no-drop}.swal2-modal button.styled.loading{box-sizing:border-box;border:4px solid transparent;width:40px;height:40px;padding:0;margin:-2px 30px;vertical-align:top;background-color:transparent!important;color:transparent;cursor:default;border-radius:100%;-webkit-animation:rotate-loading 1.5s linear 0s infinite normal;animation:rotate-loading 1.5s linear 0s infinite normal}.swal2-modal button:not(.styled).loading:after{display:inline-block;content:"";margin-left:5px;vertical-align:-1px;height:6px;width:6px;border:3px solid #999;border-right-color:transparent;border-radius:50%;-webkit-animation:rotate-loading 1.5s linear 0s infinite normal;animation:rotate-loading 1.5s linear 0s infinite normal}.swal2-checkbox input,.swal2-checkbox span,.swal2-radio input,.swal2-radio span{vertical-align:middle}.swal2-modal .swal2-image{margin:20px auto;max-width:100%}.swal2-modal .swal2-close{font-size:36px;line-height:36px;font-family:serif;position:absolute;top:5px;right:13px;cursor:pointer;color:#cfcfcf;-webkit-transition:all .1s ease;transition:all .1s ease}.swal2-modal .swal2-close:hover{color:#d55}.swal2-modal>.swal2-checkbox,.swal2-modal>.swal2-input,.swal2-modal>.swal2-radio,.swal2-modal>.swal2-select,.swal2-modal>.swal2-textarea{display:none}.swal2-content{font-size:18px;text-align:center;font-weight:300;float:none;margin:0;line-height:normal;color:#555}.swal2-icon.swal2-info,.swal2-icon.swal2-question,.swal2-icon.swal2-warning{font-size:60px;line-height:80px;text-align:center}.swal2-icon{width:80px;height:80px;border:4px solid grey;border-radius:50%;margin:20px auto 30px;box-sizing:content-box;cursor:default;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.swal2-icon.swal2-error{border-color:#f27474}.swal2-icon.swal2-error .x-mark{position:relative;display:block}.swal2-icon.swal2-error .line{position:absolute;height:5px;width:47px;background-color:#f27474;display:block;top:37px;border-radius:2px}.swal2-icon.swal2-error .line.left{-webkit-transform:rotate(45deg);transform:rotate(45deg);left:17px}.swal2-icon.swal2-error .line.right{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);right:16px}.swal2-icon.swal2-warning{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;color:#f8bb86;border-color:#f8bb86}.swal2-icon.swal2-info{font-family:"Open Sans",sans-serif;color:#3fc3ee;border-color:#3fc3ee}.swal2-icon.swal2-question{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;color:#c9dae1;border-color:#c9dae1}.swal2-icon.swal2-success{border-color:#a5dc86}.swal2-icon.swal2-success::after,.swal2-icon.swal2-success::before{content:'';position:absolute;width:60px;height:120px;background:#fff}.swal2-icon.swal2-success::before{border-radius:120px 0 0 120px;top:-7px;left:-33px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:60px 60px;transform-origin:60px 60px}.swal2-icon.swal2-success::after{border-radius:0 120px 120px 0;top:-11px;left:30px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:0 60px;transform-origin:0 60px}.swal2-icon.swal2-success .placeholder{width:80px;height:80px;border:4px solid rgba(165,220,134,.2);border-radius:50%;box-sizing:content-box;position:absolute;left:-4px;top:-4px;z-index:2}.swal2-icon.swal2-success .fix{width:7px;height:90px;background-color:#fff;position:absolute;left:28px;top:8px;z-index:1;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.swal2-icon.swal2-success .line{height:5px;background-color:#a5dc86;display:block;border-radius:2px;position:absolute;z-index:2}.swal2-icon.swal2-success .line.tip{width:25px;left:14px;top:46px;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.swal2-icon.swal2-success .line.long{width:47px;right:8px;top:38px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.swal2-checkbox,.swal2-input,.swal2-radio,.swal2-select,.swal2-textarea{margin:20px auto}.swal2-input:not([type=file]),.swal2-textarea{width:100%;box-sizing:border-box;border-radius:3px;border:1px solid #d7d7d7;font-size:18px;box-shadow:inset 0 1px 1px rgba(0,0,0,.06);-webkit-transition:all .3s;transition:all .3s}.swal2-input:not([type=file]).error,.swal2-textarea.error{border-color:#f06e57!important}.swal2-input:not([type=file]):focus,.swal2-textarea:focus{outline:0;box-shadow:0 0 3px #c4e6f5;border:1px solid #b4dbed}.swal2-input:not([type=file]):focus::-moz-placeholder,.swal2-textarea:focus::-moz-placeholder{-webkit-transition:opacity .3s 30ms ease;transition:opacity .3s 30ms ease;opacity:.8}.swal2-input:not([type=file]):focus:-ms-input-placeholder,.swal2-textarea:focus:-ms-input-placeholder{-webkit-transition:opacity .3s 30ms ease;transition:opacity .3s 30ms ease;opacity:.8}.swal2-input:not([type=file]):focus::-webkit-input-placeholder,.swal2-textarea:focus::-webkit-input-placeholder{-webkit-transition:opacity .3s 30ms ease;transition:opacity .3s 30ms ease;opacity:.8}.swal2-input:not([type=file])::-moz-placeholder,.swal2-textarea::-moz-placeholder{color:#bdbdbd}.swal2-input:not([type=file]):-ms-input-placeholder,.swal2-textarea:-ms-input-placeholder{color:#bdbdbd}.swal2-input:not([type=file])::-webkit-input-placeholder,.swal2-textarea::-webkit-input-placeholder{color:#bdbdbd}.swal2-input:not([type=file]){height:43px;padding:0 12px}.swal2-input[type=file]{font-size:20px}.swal2-textarea{height:108px;padding:12px}.swal2-select{color:#555;font-size:inherit;padding:5px 10px;min-width:40%;max-width:100%}.swal2-radio{border:0}.swal2-radio label:not(:first-child){margin-left:20px}.swal2-radio input{margin:0 3px 0 0}.swal2-checkbox{color:#555}.swal2-validationerror{background-color:#f1f1f1;margin:0 -20px;overflow:hidden;padding:10px;color:#797979;font-size:16px;font-weight:300;display:none}.swal2-validationerror::before{content:"!";display:inline-block;width:24px;height:24px;border-radius:50%;background-color:#ea7d7d;color:#fff;line-height:24px;text-align:center;margin-right:10px}@-webkit-keyframes showSweetAlert{0%{-webkit-transform:scale(.7);transform:scale(.7)}45%{-webkit-transform:scale(1.05);transform:scale(1.05)}80%{-webkit-transform:scale(.95);transform:scale(.95)}100%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes showSweetAlert{0%{-webkit-transform:scale(.7);transform:scale(.7)}45%{-webkit-transform:scale(1.05);transform:scale(1.05)}80%{-webkit-transform:scale(.95);transform:scale(.95)}100%{-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes hideSweetAlert{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}100%{-webkit-transform:scale(.5);transform:scale(.5);opacity:0}}@keyframes hideSweetAlert{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}100%{-webkit-transform:scale(.5);transform:scale(.5);opacity:0}}.show-swal2{-webkit-animation:showSweetAlert .3s;animation:showSweetAlert .3s}.show-swal2.no-animation{-webkit-animation:none;animation:none}.hide-swal2{-webkit-animation:hideSweetAlert .15s;animation:hideSweetAlert .15s}.hide-swal2.no-animation{-webkit-animation:none;animation:none}@-webkit-keyframes animate-success-tip{0%,54%{width:0;left:1px;top:19px}70%{width:50px;left:-8px;top:37px}84%{width:17px;left:21px;top:48px}100%{width:25px;left:14px;top:45px}}@keyframes animate-success-tip{0%,54%{width:0;left:1px;top:19px}70%{width:50px;left:-8px;top:37px}84%{width:17px;left:21px;top:48px}100%{width:25px;left:14px;top:45px}}@-webkit-keyframes animate-success-long{0%,65%{width:0;right:46px;top:54px}84%{width:55px;right:0;top:35px}100%{width:47px;right:8px;top:38px}}@keyframes animate-success-long{0%,65%{width:0;right:46px;top:54px}84%{width:55px;right:0;top:35px}100%{width:47px;right:8px;top:38px}}@-webkit-keyframes rotatePlaceholder{0%,5%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}100%,12%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}}@keyframes rotatePlaceholder{0%,5%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}100%,12%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}}.animate-success-tip{-webkit-animation:animate-success-tip .75s;animation:animate-success-tip .75s}.animate-success-long{-webkit-animation:animate-success-long .75s;animation:animate-success-long .75s}.swal2-icon.swal2-success.animate::after{-webkit-animation:rotatePlaceholder 4.25s ease-in;animation:rotatePlaceholder 4.25s ease-in}@-webkit-keyframes animate-error-icon{0%{-webkit-transform:rotateX(100deg);transform:rotateX(100deg);opacity:0}100%{-webkit-transform:rotateX(0);transform:rotateX(0);opacity:1}}@keyframes animate-error-icon{0%{-webkit-transform:rotateX(100deg);transform:rotateX(100deg);opacity:0}100%{-webkit-transform:rotateX(0);transform:rotateX(0);opacity:1}}.animate-error-icon{-webkit-animation:animate-error-icon .5s;animation:animate-error-icon .5s}@-webkit-keyframes animate-x-mark{0%,50%{-webkit-transform:scale(.4);transform:scale(.4);margin-top:26px;opacity:0}80%{-webkit-transform:scale(1.15);transform:scale(1.15);margin-top:-6px}100%{-webkit-transform:scale(1);transform:scale(1);margin-top:0;opacity:1}}@keyframes animate-x-mark{0%,50%{-webkit-transform:scale(.4);transform:scale(.4);margin-top:26px;opacity:0}80%{-webkit-transform:scale(1.15);transform:scale(1.15);margin-top:-6px}100%{-webkit-transform:scale(1);transform:scale(1);margin-top:0;opacity:1}}.animate-x-mark{-webkit-animation:animate-x-mark .5s;animation:animate-x-mark .5s}@-webkit-keyframes pulse-warning{0%{border-color:#f8d486}100%{border-color:#f8bb86}}@keyframes pulse-warning{0%{border-color:#f8d486}100%{border-color:#f8bb86}}.pulse-warning{-webkit-animation:pulse-warning .75s infinite alternate;animation:pulse-warning .75s infinite alternate}@-webkit-keyframes rotate-loading{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotate-loading{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}
assets/js/admin.js CHANGED
@@ -19,36 +19,45 @@ jQuery(function($){
19
  // Display the sign up form
20
  swal({
21
  title: imagifyAdmin.labels.signupTitle,
22
- text: imagifyAdmin.labels.signupText,
23
  confirmButtonText: imagifyAdmin.labels.signupConfirmButtonText,
24
- type: "input",
25
  closeOnConfirm: false,
26
  allowOutsideClick: true,
27
  showLoaderOnConfirm: true,
28
- customClass: "imagify-sweet-alert imagify-sweet-alert-signup"
29
- },
30
- function(inputValue){
31
- if ($.trim(inputValue) == "" || ! inputValue) {
32
- swal.showInputError(imagifyAdmin.labels.signupErrorEmptyEmail);
33
- return false;
34
- }
35
-
36
- $.get(ajaxurl + concat + "action=imagify_signup&email=" +inputValue + "&imagifysignupnonce="+ $('#imagifysignupnonce').val())
37
- .done(function(response){
38
- if( !response.success ) {
39
- swal.showInputError(response.data);
40
- } else {
41
- swal({
42
- title:imagifyAdmin.labels.signupSuccessTitle,
43
- text: imagifyAdmin.labels.signupSuccessText,
44
- type: "success",
45
- customClass: "imagify-sweet-alert"
46
- });
47
- }
48
- });
49
- });
 
 
 
 
 
 
 
 
 
 
50
  });
51
-
52
  /*
53
  * Check and save the Imagify API Key
54
  */
@@ -58,33 +67,40 @@ jQuery(function($){
58
  // Display the sign up form
59
  swal({
60
  title: imagifyAdmin.labels.saveApiKeyTitle,
61
- text: imagifyAdmin.labels.saveApiKeyText,
62
  confirmButtonText: imagifyAdmin.labels.saveApiKeyConfirmButtonText,
63
- type: "input",
64
- closeOnConfirm: false,
65
  allowOutsideClick: true,
66
  showLoaderOnConfirm: true,
67
- customClass: "imagify-sweet-alert imagify-sweet-alert-signup"
68
- },
69
- function(inputValue){
70
- if ($.trim(inputValue) == "" || ! inputValue) {
71
- swal.showInputError(imagifyAdmin.labels.signupErrorEmptyEmail);
72
- return false;
73
- }
74
-
75
- $.get(ajaxurl + concat + "action=imagify_check_api_key_validity&api_key=" +inputValue + "&imagifycheckapikeynonce="+ $('#imagifycheckapikeynonce').val())
76
- .done(function(response){
77
- if( !response.success ) {
78
- swal.showInputError( response.data );
79
- } else {
80
- swal({
81
- title: imagifyAdmin.labels.ApiKeyCheckSuccessTitle,
82
- text: imagifyAdmin.labels.ApiKeyCheckSuccessText,
83
- type: "success",
84
- customClass: "imagify-sweet-alert"
85
- });
86
- }
87
- });
 
 
 
 
 
 
 
 
88
  });
89
  });
90
 
19
  // Display the sign up form
20
  swal({
21
  title: imagifyAdmin.labels.signupTitle,
22
+ html: imagifyAdmin.labels.signupText,
23
  confirmButtonText: imagifyAdmin.labels.signupConfirmButtonText,
24
+ input: 'email',
25
  closeOnConfirm: false,
26
  allowOutsideClick: true,
27
  showLoaderOnConfirm: true,
28
+ customClass: "imagify-sweet-alert imagify-sweet-alert-signup",
29
+ inputValidator: function(inputValue) {
30
+ return new Promise(function(resolve, reject) {
31
+ if ($.trim(inputValue) == "" || ! inputValue) {
32
+ reject(imagifyAdmin.labels.signupErrorEmptyEmail);
33
+ } else {
34
+ resolve();
35
+ }
36
+ });
37
+ },
38
+ preConfirm: function(inputValue) {
39
+ return new Promise(function(resolve, reject) {
40
+ setTimeout(function() {
41
+ $.get(ajaxurl + concat + "action=imagify_signup&email=" +inputValue + "&imagifysignupnonce="+ $('#imagifysignupnonce').val())
42
+ .done(function(response){
43
+ if( !response.success ) {
44
+ reject(response.data);
45
+ } else {
46
+ resolve();
47
+ }
48
+ });
49
+ }, 2000);
50
+ });
51
+ },
52
+ }).then(function(inputValue){
53
+ swal({
54
+ title:imagifyAdmin.labels.signupSuccessTitle,
55
+ html: imagifyAdmin.labels.signupSuccessText,
56
+ type: "success",
57
+ customClass: "imagify-sweet-alert"
58
+ });
59
+ });
60
  });
 
61
  /*
62
  * Check and save the Imagify API Key
63
  */
67
  // Display the sign up form
68
  swal({
69
  title: imagifyAdmin.labels.saveApiKeyTitle,
70
+ html: imagifyAdmin.labels.saveApiKeyText,
71
  confirmButtonText: imagifyAdmin.labels.saveApiKeyConfirmButtonText,
72
+ input: 'text',
 
73
  allowOutsideClick: true,
74
  showLoaderOnConfirm: true,
75
+ customClass: "imagify-sweet-alert imagify-sweet-alert-signup",
76
+ inputValidator: function(inputValue) {
77
+ return new Promise(function(resolve, reject) {
78
+ if ($.trim(inputValue) == "" || ! inputValue) {
79
+ reject(imagifyAdmin.labels.ApiKeyErrorEmpty);
80
+ } else {
81
+ resolve();
82
+ }
83
+ });
84
+ },
85
+ preConfirm: function(inputValue) {
86
+ return new Promise(function(resolve, reject) {
87
+ $.get(ajaxurl + concat + "action=imagify_check_api_key_validity&api_key=" +inputValue + "&imagifycheckapikeynonce="+ $('#imagifycheckapikeynonce').val())
88
+ .done(function(response){
89
+ if( !response.success ) {
90
+ reject( response.data );
91
+ } else {
92
+ resolve();
93
+ }
94
+ });
95
+ });
96
+ },
97
+ }).then(function(inputValue){
98
+ swal({
99
+ title: imagifyAdmin.labels.ApiKeyCheckSuccessTitle,
100
+ html: imagifyAdmin.labels.ApiKeyCheckSuccessText,
101
+ type: "success",
102
+ customClass: "imagify-sweet-alert"
103
+ });
104
  });
105
  });
106
 
assets/js/admin.min.js CHANGED
@@ -1,25 +1,25 @@
1
- jQuery(function(b){var x=0<ajaxurl.indexOf("?")?"&":"?";b("#imagify-signup").click(function(a){a.preventDefault();swal({title:imagifyAdmin.labels.signupTitle,text:imagifyAdmin.labels.signupText,confirmButtonText:imagifyAdmin.labels.signupConfirmButtonText,type:"input",closeOnConfirm:!1,allowOutsideClick:!0,showLoaderOnConfirm:!0,customClass:"imagify-sweet-alert imagify-sweet-alert-signup"},function(a){if(""==b.trim(a)||!a)return swal.showInputError(imagifyAdmin.labels.signupErrorEmptyEmail),!1;b.get(ajaxurl+
2
- x+"action=imagify_signup&email="+a+"&imagifysignupnonce="+b("#imagifysignupnonce").val()).done(function(a){a.success?swal({title:imagifyAdmin.labels.signupSuccessTitle,text:imagifyAdmin.labels.signupSuccessText,type:"success",customClass:"imagify-sweet-alert"}):swal.showInputError(a.data)})})});b("#imagify-save-api-key").click(function(a){a.preventDefault();swal({title:imagifyAdmin.labels.saveApiKeyTitle,text:imagifyAdmin.labels.saveApiKeyText,confirmButtonText:imagifyAdmin.labels.saveApiKeyConfirmButtonText,
3
- type:"input",closeOnConfirm:!1,allowOutsideClick:!0,showLoaderOnConfirm:!0,customClass:"imagify-sweet-alert imagify-sweet-alert-signup"},function(a){if(""==b.trim(a)||!a)return swal.showInputError(imagifyAdmin.labels.signupErrorEmptyEmail),!1;b.get(ajaxurl+x+"action=imagify_check_api_key_validity&api_key="+a+"&imagifycheckapikeynonce="+b("#imagifycheckapikeynonce").val()).done(function(a){a.success?swal({title:imagifyAdmin.labels.ApiKeyCheckSuccessTitle,text:imagifyAdmin.labels.ApiKeyCheckSuccessText,
4
- type:"success",customClass:"imagify-sweet-alert"}):swal.showInputError(a.data)})})});b(".imagify-notice-dismiss").click(function(a){a.preventDefault();var d=b(this);a=d.parents(".imagify-welcome, .imagify-notice");d=d.attr("href");a.fadeTo(100,0,function(){b(this).slideUp(100,function(){b(this).remove()})});b.get(d.replace("admin-post.php","admin-ajax.php"))});b(".imagify-modal").attr("aria-hidden","true");b(".imagify-modal-trigger").on("click.imagify",function(){var a=b(this),a=a.data("target")||
5
- a.attr("href");b(a).css("display","flex").hide().fadeIn(400).attr("aria-hidden","false").attr("tabindex","0").focus().removeAttr("tabindex").addClass("modal-is-open");b("body").addClass("imagify-modal-is-open");return!1});b(document).on("click.imagify",".imagify-modal .close-btn",function(){b(this).closest(".imagify-modal").fadeOut(400).attr("aria-hidden","true").removeClass("modal-is-open");b("body").removeClass("imagify-modal-is-open")}).on("blur.imagify",".imagify-modal .close-btn",function(){var a=
6
- b(this).closest(".imagify-modal");"false"===a.attr("aria-hidden")&&a.attr("tabindex","0").focus().removeAttr("tabindex")});b(window).on("keydown",function(a){if(27==a.keyCode&&0<b(".imagify-modal.modal-is-open").length)return a.preventDefault(),b(".imagify-modal.modal-is-open").find(".close-btn").trigger("click.imagify"),!1});var y=!1;b("#wp-admin-bar-imagify").hover(function(){if(!0!==y){y=!0;var a=b("#wp-admin-bar-imagify-profile-content");a.is(":empty")&&b.get(ajaxurl+x+"action=imagify_get_admin_bar_profile&imagifygetadminbarprofilenonce="+
7
- b("#imagifygetadminbarprofilenonce").val()).done(function(d){a.html(d.data);b("#wp-admin-bar-imagify-profile-loading").remove();y=!1})}});if(b("#imagify-pricing-modal").length){var z=b("#imagify-pricing-modal"),q=function(a,b){b||(b=null);output="";if("object"===typeof a){var c=a.yearly+"",e=(a.monthly+"").split("."),c=c.split(".");output+='<span class="imagify-switch-my"><span aria-hidden="'+("monthly"===b?"false":"true")+'" class="imagify-monthly"><span class="imagify-price-big">'+e[0]+'</span> <span class="imagify-price-mini">.'+
8
- (1===e[1].length?e[1]+"0":e[1])+'</span></span> <span aria-hidden="'+("yearly"===b?"false":"true")+'" class="imagify-yearly"><span class="imagify-price-big">'+c[0]+'</span> <span class="imagify-price-mini">.'+(1===c[1].length?c[1]+"0":c[1])+"</span></span></span>"}else e=(a+"").split("."),output+='<span class="imagify-price-big">'+e[0]+'</span> <span class="imagify-price-mini">.'+(1===e[1].length?e[1]+"0":e[1])+"</span>";return output},D=function(a){a={action:"imagify_get_prices",imagifynonce:a.data("nonce")};
9
- z.find(".imagify-modal-loader").hide().show();b.post(ajaxurl,a,function(a){if(a.success){var c=a.data;a=c.monthlies;var c=c.onetimes,e=b("#imagify-offer-monthly-template"),f=b("#imagify-offer-onetime-template"),l=f.html(),m=e.html(),r="",h="",g=!1,n=!1;b.each(a,function(a,c){if("free"===c.label)return!0;var d=c.additional_gb,e=c.annual_cost,f=c.id,l=c.label,r=c.monthly_cost,k=c.quota,g=1E3<=k?k/1E3+" GB":k+" MB",p=b(m).clone(),e={monthly:r,yearly:Math.round(e/12*100)/100};classes="";1E3<k&&!1===n&&
10
- (classes=" imagify-offer-selected",n=!0);p.addClass("imagify-monthly-"+l+classes);p.find(".imagify-offer-size").text(g);p.find(".imagify-approx-nb").text(5*k);p.find(".imagify-price-add-data").text("$"+d);p.find(".imagify-number-block").html(q(e,"monthly"));p.find(".imagify-payment-btn-select-plan").attr("data-offer",'{"'+l+'":{"id":'+f+',"name":"'+g+'","data":'+k+',"dataf":"'+g+'","imgs":'+5*k+',"prices":{"monthly":'+e.monthly+',"yearly":'+e.yearly+',"add":'+d+"}}}");h+=p[0].outerHTML});b.each(c,
11
- function(a,c){var d=c.id,e=c.cost,f=c.label,m=c.quota,h=1E3<=m?m/1E3+" GB":m+" MB",k=b(l).clone();classes="";51E3<m&&!1===g&&(classes=" imagify-offer-selected",g=!0);k.addClass("imagify-onetime-"+f+classes);k.find(".imagify-offer-size").text(h);k.find(".imagify-approx-nb").text(5*m);k.find(".imagify-number-block").html(q(e,"monthly"));k.find(".imagify-payment-btn-select-plan").attr("data-offer",'{"ot'+f+'":{"id":'+d+',"name":"'+h+'","data":'+m+',"dataf":"'+h+'","imgs":'+5*m+',"price":'+e+"}}");r+=
12
- k[0].outerHTML});e.parent().find(".imagify-offer-line")&&e.parent().find(".imagify-offer-line").remove();e.before(h);f.parent().find(".imagify-offer-line")&&f.parent().find(".imagify-offer-line").remove();f.before(r);z.find(".imagify-modal-loader").fadeOut(300)}})},B=function(a){a.each(function(){b(this).is(":checked")?b(this).closest(".imagify-offer-line").addClass("imagify-offer-selected"):b(this).closest(".imagify-offer-line").removeClass("imagify-offer-selected")})},C=function(a){a.each(function(){var a=
13
- b(this),c="",c=a.parent(".imagify-cart-list-switcher").length?a.closest(".imagify-cart"):a.parent(".imagify-small-options").length?a.parent(".imagify-small-options").next(".imagify-pricing-table"):a.closest(".imagify-offer-line"),e=c.find(".imagify-switch-my");"yearly"===a.val()?(c.addClass("imagify-year-selected").removeClass("imagify-month-selected"),e.find(".imagify-monthly").attr("aria-hidden","true"),e.find(".imagify-yearly").attr("aria-hidden","false")):(c.addClass("imagify-month-selected").removeClass("imagify-year-selected"),
14
- e.find(".imagify-monthly").attr("aria-hidden","false"),e.find(".imagify-yearly").attr("aria-hidden","true"))});return a},t=b(".imagify-offer-line").find(".imagify-checkbox"),u=b(".imagify-payment-modal").find(".imagify-radio-line").find("input");B(t);C(u.filter(":checked"));t.on("change.imagify",function(){B(b(this))});u.on("change.imagify",function(){C(b(this))});b("#imagify-get-pricing-modal").on("click.imagify-ajax",function(){D(b(this))});var v=b("#imagify-plans-selection-view"),n=b("#imagify-payment-process-view"),
15
- w=b("#imagify-pre-checkout-view"),t=b("#imagify-success-view"),u=b(".imagify-choose-another-plan"),g=function(a){var d=b("#imagify-payment-iframe"),c=d.attr("src"),e=0,f=0;"object"===typeof a?(a.monthly&&(e=a.monthly[Object.keys(a.monthly)[0]].id),a.onetime&&(f=a.onetime[Object.keys(a.onetime)[0]].id,f=999==f?a.onetime[Object.keys(a.onetime)[0]].data:f),a.period?(c=c.split("?")[0]+"?monthly="+e+"&onetime="+f+"&api="+b("#imagify-payment-iframe").data("imagify-api")+"&period="+a.period,d.attr("src",
16
- c)):imagifyAdmin.labels.info("No period defined")):"string"===typeof a&&(c=c.split("&period="),d.attr("src",c[0]+"&period="+a))},A=function(){return b(".imagify-cart").hasClass("imagify-month-selected")?"monthly":"yearly"};v.hide();n.hide();t.hide();u.on("click.imagify",function(){var a=b(this),d=a.data("imagify-choose");a.closest(".imagify-modal-views").hide().attr("aria-hidden","true");n.hide().attr("aria-hidden","true");v.fadeIn(300).attr("aria-hidden","false");var c=setInterval(function(){v.find('a[href="#imagify-pricing-tab-'+
17
- ("plan"==d?"monthly":"onetime")+'"]').trigger("click.imagify");clearInterval(c);c=null},60);return!1});z.on("click.imagify",".imagify-payment-btn-select-plan",function(){var a=b(this),d=a.closest(".imagify-offer-line"),c=a.data("offer"),e=a.attr("data-offer"),f="imagify-pricing-tab-monthly"===a.closest(".imagify-tab-content").attr("id")?!1:!0,l=f?w.find(".imagify-offer-onetime"):w.find(".imagify-offer-monthly"),a=f?null:a.closest(".imagify-pricing-table").hasClass("imagify-month-selected")?"monthly":
18
- "yearly",c=f?q(c[Object.keys(c)[0]].price):q(c[Object.keys(c)[0]].prices,a),m=d.find(".imagify-approx-nb").text(),g=d.find(".imagify-offer-size").text(),h=f?"":'<span class="imagify-price-by">'+d.find(".imagify-price-by").text()+"</span>";v.hide().attr("aria-hidden","true");w.fadeIn(300).attr("aria-hidden","false");l.find(".imagify-number-block").html(c+h);l.find(".imagify-approx-nb").text(m);l.find(".imagify-offer-size").text(g);l.attr("data-offer",e);f||(l.find(".imagify-price-add-data").text(d.find(".imagify-price-add-data").text()),
19
- "monthly"===a?l.find("#imagify-subscription-monthly").trigger("click.imagify"):l.find("#imagify-subscription-yearly").trigger("click.imagify"),l.find(".imagify-inline-options").find("input:radio:checked").trigger("change.imagify"));return!1});b("#imagify-modal-checkout-btn").on("click.imagify",function(){var a=b(".imagify-offer-monthly"),d=b(".imagify-offer-onetime"),c={},e=a.hasClass("imagify-year-selected")?"year":"month";a.hasClass("imagify-offer-selected")?(c.monthly=JSON.parse(a.attr("data-offer")),
20
  b(".imagify-cart-list-my-choice").show(),prices=c.monthly[Object.keys(c.monthly)[0]].prices,save_price=Math.round(1200*(prices.monthly-prices.yearly))/100,b(".imagify-nb-save-per-year").text("$"+save_price)):b(".imagify-cart-list-my-choice").hide();d.hasClass("imagify-offer-selected")&&(c.onetime=JSON.parse(d.attr("data-offer")));w.hide().attr("aria-hidden","true");n.fadeIn(300).attr("aria-hidden","false");b(".imagify-cart-emptied-item").hide().attr("aria-hidden","true");b("#imagify-pricing-step-2").addClass("active");
21
- n.find(".imagify-cart-item").hide().attr("data-offer","");b.each(c,function(a,c){var d=n.find(".imagify-cart-item-"+a),g=c[Object.keys(c)[0]],h=b(".imagify-cart");d.show();d.attr("data-offer",JSON.stringify(c));d.find(".imagify-the-product-name").text(g.name);d.find(".imagify-cart-offer-data").text(g.dataf);"onetime"===a?d.find(".imagify-number-block").html(q(g.price)):d.find(".imagify-number-block").find(".imagify-switch-my").html(q(g.prices,e+"ly"));h.removeClass("imagify-month-selected imagify-year-selected").addClass("imagify-"+
22
- e+"-selected");"month"===e?h.find("#imagify-checkout-monthly").trigger("click.imagify"):h.find("#imagify-checkout-yearly").trigger("click.imagify");h.find(".imagify-inline-options").find("input:radio:checked").trigger("change.imagify")});c.period=A();g(c);return!1});b(".imagify-remove-from-cart").on("click.imagify",function(){var a=b(this).closest(".imagify-cart-item"),d=a.hasClass("imagify-cart-item-monthly"),c=d?b(".imagify-cart-item-onetime"):b(".imagify-cart-item-monthly"),e=c.hasClass("imagify-temporary-removed"),
23
  f=a.attr("data-offer"),c=e?null:c.data("offer");a.hide().attr("aria-hidden","true").attr("data-offer","").addClass("imagify-temporary-removed");a.next(".imagify-cart-emptied-item").fadeIn(300).attr("aria-hidden","false").attr("data-offer",f).find(".imagify-removed-name").html(a.find(".imagify-cart-product-name").html());"function"===typeof g?null!==c?(a={},a[d?"onetime":"monthly"]=c,a.period=A(),g(a)):imagifyAdmin.labels.info("No offers selected"):imagifyAdmin.labels.info("imagify_iframe_set_src seems to be not declared");
24
  return!1});b(".imagify-cancel-removing").on("click.imagify",function(){var a=b(this).closest(".imagify-cart-emptied-item"),d=a.prev(".imagify-cart-item").hasClass("imagify-cart-item-monthly"),c=d?b(".imagify-cart-item-onetime"):b(".imagify-cart-item-monthly"),e=c.hasClass("imagify-temporary-removed"),f=a.attr("data-offer"),c=e?null:c.data("offer");a.hide().attr("aria-hidden","true").attr("data-offer","").prev(".imagify-cart-item").fadeIn(300).attr("aria-hidden","true").attr("data-offer",f).removeClass("imagify-temporary-removed");
25
  a={};a.monthly=d?JSON.parse(f):c;a.onetime=d?c:JSON.parse(f);a.period=A();"function"===typeof g?g(a):imagifyAdmin.labels.info("imagify_iframe_set_src seems to be not declared\u2026");return!1});b(".imagify-cart-list-my-choice").find('input[type="radio"]').on("change.imagify",function(){g(b(this).val())});b(".imagify-back-to-plans").on("click.imagify",function(){b(this).closest(".imagify-cart-item").hasClass("imagify-cart-item-onetime")?b(".imagify-offer-onetime").find(".imagify-choose-another-plan").trigger("click.imagify"):
1
+ jQuery(function(b){var x=0<ajaxurl.indexOf("?")?"&":"?";b("#imagify-signup").click(function(a){a.preventDefault();swal({title:imagifyAdmin.labels.signupTitle,html:imagifyAdmin.labels.signupText,confirmButtonText:imagifyAdmin.labels.signupConfirmButtonText,input:"email",closeOnConfirm:!1,allowOutsideClick:!0,showLoaderOnConfirm:!0,customClass:"imagify-sweet-alert imagify-sweet-alert-signup",inputValidator:function(a){return new Promise(function(c,e){""!=b.trim(a)&&a?c():e(imagifyAdmin.labels.signupErrorEmptyEmail)})},
2
+ preConfirm:function(a){return new Promise(function(c,e){setTimeout(function(){b.get(ajaxurl+x+"action=imagify_signup&email="+a+"&imagifysignupnonce="+b("#imagifysignupnonce").val()).done(function(a){a.success?c():e(a.data)})},2E3)})}}).then(function(a){swal({title:imagifyAdmin.labels.signupSuccessTitle,html:imagifyAdmin.labels.signupSuccessText,type:"success",customClass:"imagify-sweet-alert"})})});b("#imagify-save-api-key").click(function(a){a.preventDefault();swal({title:imagifyAdmin.labels.saveApiKeyTitle,
3
+ html:imagifyAdmin.labels.saveApiKeyText,confirmButtonText:imagifyAdmin.labels.saveApiKeyConfirmButtonText,input:"text",allowOutsideClick:!0,showLoaderOnConfirm:!0,customClass:"imagify-sweet-alert imagify-sweet-alert-signup",inputValidator:function(a){return new Promise(function(c,e){""!=b.trim(a)&&a?c():e(imagifyAdmin.labels.ApiKeyErrorEmpty)})},preConfirm:function(a){return new Promise(function(c,e){b.get(ajaxurl+x+"action=imagify_check_api_key_validity&api_key="+a+"&imagifycheckapikeynonce="+b("#imagifycheckapikeynonce").val()).done(function(a){a.success?
4
+ c():e(a.data)})})}}).then(function(a){swal({title:imagifyAdmin.labels.ApiKeyCheckSuccessTitle,html:imagifyAdmin.labels.ApiKeyCheckSuccessText,type:"success",customClass:"imagify-sweet-alert"})})});b(".imagify-notice-dismiss").click(function(a){a.preventDefault();var d=b(this);a=d.parents(".imagify-welcome, .imagify-notice");d=d.attr("href");a.fadeTo(100,0,function(){b(this).slideUp(100,function(){b(this).remove()})});b.get(d.replace("admin-post.php","admin-ajax.php"))});b(".imagify-modal").attr("aria-hidden",
5
+ "true");b(".imagify-modal-trigger").on("click.imagify",function(){var a=b(this),a=a.data("target")||a.attr("href");b(a).css("display","flex").hide().fadeIn(400).attr("aria-hidden","false").attr("tabindex","0").focus().removeAttr("tabindex").addClass("modal-is-open");b("body").addClass("imagify-modal-is-open");return!1});b(document).on("click.imagify",".imagify-modal .close-btn",function(){b(this).closest(".imagify-modal").fadeOut(400).attr("aria-hidden","true").removeClass("modal-is-open");b("body").removeClass("imagify-modal-is-open")}).on("blur.imagify",
6
+ ".imagify-modal .close-btn",function(){var a=b(this).closest(".imagify-modal");"false"===a.attr("aria-hidden")&&a.attr("tabindex","0").focus().removeAttr("tabindex")});b(window).on("keydown",function(a){if(27==a.keyCode&&0<b(".imagify-modal.modal-is-open").length)return a.preventDefault(),b(".imagify-modal.modal-is-open").find(".close-btn").trigger("click.imagify"),!1});var y=!1;b("#wp-admin-bar-imagify").hover(function(){if(!0!==y){y=!0;var a=b("#wp-admin-bar-imagify-profile-content");a.is(":empty")&&
7
+ b.get(ajaxurl+x+"action=imagify_get_admin_bar_profile&imagifygetadminbarprofilenonce="+b("#imagifygetadminbarprofilenonce").val()).done(function(d){a.html(d.data);b("#wp-admin-bar-imagify-profile-loading").remove();y=!1})}});if(b("#imagify-pricing-modal").length){var z=b("#imagify-pricing-modal"),q=function(a,b){b||(b=null);output="";if("object"===typeof a){var c=a.yearly+"",e=(a.monthly+"").split("."),c=c.split(".");output+='<span class="imagify-switch-my"><span aria-hidden="'+("monthly"===b?"false":
8
+ "true")+'" class="imagify-monthly"><span class="imagify-price-big">'+e[0]+'</span> <span class="imagify-price-mini">.'+(1===e[1].length?e[1]+"0":e[1])+'</span></span> <span aria-hidden="'+("yearly"===b?"false":"true")+'" class="imagify-yearly"><span class="imagify-price-big">'+c[0]+'</span> <span class="imagify-price-mini">.'+(1===c[1].length?c[1]+"0":c[1])+"</span></span></span>"}else e=(a+"").split("."),output+='<span class="imagify-price-big">'+e[0]+'</span> <span class="imagify-price-mini">.'+
9
+ (1===e[1].length?e[1]+"0":e[1])+"</span>";return output},D=function(a){a={action:"imagify_get_prices",imagifynonce:a.data("nonce")};z.find(".imagify-modal-loader").hide().show();b.post(ajaxurl,a,function(a){if(a.success){var c=a.data;a=c.monthlies;var c=c.onetimes,e=b("#imagify-offer-monthly-template"),f=b("#imagify-offer-onetime-template"),k=f.html(),m=e.html(),r="",l="",g=!1,n=!1;b.each(a,function(a,c){if("free"===c.label)return!0;var e=c.additional_gb,d=c.annual_cost,f=c.id,k=c.label,r=c.monthly_cost,
10
+ h=c.quota,g=1E3<=h?h/1E3+" GB":h+" MB",p=b(m).clone(),d={monthly:r,yearly:Math.round(d/12*100)/100};classes="";1E3<h&&!1===n&&(classes=" imagify-offer-selected",n=!0);p.addClass("imagify-monthly-"+k+classes);p.find(".imagify-offer-size").text(g);p.find(".imagify-approx-nb").text(5*h);p.find(".imagify-price-add-data").text("$"+e);p.find(".imagify-number-block").html(q(d,"monthly"));p.find(".imagify-payment-btn-select-plan").attr("data-offer",'{"'+k+'":{"id":'+f+',"name":"'+g+'","data":'+h+',"dataf":"'+
11
+ g+'","imgs":'+5*h+',"prices":{"monthly":'+d.monthly+',"yearly":'+d.yearly+',"add":'+e+"}}}");l+=p[0].outerHTML});b.each(c,function(a,c){var e=c.id,d=c.cost,f=c.label,m=c.quota,l=1E3<=m?m/1E3+" GB":m+" MB",h=b(k).clone();classes="";51E3<m&&!1===g&&(classes=" imagify-offer-selected",g=!0);h.addClass("imagify-onetime-"+f+classes);h.find(".imagify-offer-size").text(l);h.find(".imagify-approx-nb").text(5*m);h.find(".imagify-number-block").html(q(d,"monthly"));h.find(".imagify-payment-btn-select-plan").attr("data-offer",
12
+ '{"ot'+f+'":{"id":'+e+',"name":"'+l+'","data":'+m+',"dataf":"'+l+'","imgs":'+5*m+',"price":'+d+"}}");r+=h[0].outerHTML});e.parent().find(".imagify-offer-line")&&e.parent().find(".imagify-offer-line").remove();e.before(l);f.parent().find(".imagify-offer-line")&&f.parent().find(".imagify-offer-line").remove();f.before(r);z.find(".imagify-modal-loader").fadeOut(300)}})},B=function(a){a.each(function(){b(this).is(":checked")?b(this).closest(".imagify-offer-line").addClass("imagify-offer-selected"):b(this).closest(".imagify-offer-line").removeClass("imagify-offer-selected")})},
13
+ C=function(a){a.each(function(){var a=b(this),c;c=a.parent(".imagify-cart-list-switcher").length?a.closest(".imagify-cart"):a.parent(".imagify-small-options").length?a.parent(".imagify-small-options").next(".imagify-pricing-table"):a.closest(".imagify-offer-line");var e=c.find(".imagify-switch-my");"yearly"===a.val()?(c.addClass("imagify-year-selected").removeClass("imagify-month-selected"),e.find(".imagify-monthly").attr("aria-hidden","true"),e.find(".imagify-yearly").attr("aria-hidden","false")):
14
+ (c.addClass("imagify-month-selected").removeClass("imagify-year-selected"),e.find(".imagify-monthly").attr("aria-hidden","false"),e.find(".imagify-yearly").attr("aria-hidden","true"))});return a},t=b(".imagify-offer-line").find(".imagify-checkbox"),u=b(".imagify-payment-modal").find(".imagify-radio-line").find("input");B(t);C(u.filter(":checked"));t.on("change.imagify",function(){B(b(this))});u.on("change.imagify",function(){C(b(this))});b("#imagify-get-pricing-modal").on("click.imagify-ajax",function(){D(b(this))});
15
+ var v=b("#imagify-plans-selection-view"),n=b("#imagify-payment-process-view"),w=b("#imagify-pre-checkout-view"),t=b("#imagify-success-view"),u=b(".imagify-choose-another-plan"),g=function(a){var d=b("#imagify-payment-iframe"),c=d.attr("src"),e=0,f=0;"object"===typeof a?(a.monthly&&(e=a.monthly[Object.keys(a.monthly)[0]].id),a.onetime&&(f=a.onetime[Object.keys(a.onetime)[0]].id,f=999==f?a.onetime[Object.keys(a.onetime)[0]].data:f),a.period?(c=c.split("?")[0]+"?monthly="+e+"&onetime="+f+"&api="+b("#imagify-payment-iframe").data("imagify-api")+
16
+ "&period="+a.period,d.attr("src",c)):imagifyAdmin.labels.info("No period defined")):"string"===typeof a&&(c=c.split("&period="),d.attr("src",c[0]+"&period="+a))},A=function(){return b(".imagify-cart").hasClass("imagify-month-selected")?"monthly":"yearly"};v.hide();n.hide();t.hide();u.on("click.imagify",function(){var a=b(this),d=a.data("imagify-choose");a.closest(".imagify-modal-views").hide().attr("aria-hidden","true");n.hide().attr("aria-hidden","true");v.fadeIn(300).attr("aria-hidden","false");
17
+ var c=setInterval(function(){v.find('a[href="#imagify-pricing-tab-'+("plan"==d?"monthly":"onetime")+'"]').trigger("click.imagify");clearInterval(c);c=null},60);return!1});z.on("click.imagify",".imagify-payment-btn-select-plan",function(){var a=b(this),d=a.closest(".imagify-offer-line"),c=a.data("offer"),e=a.attr("data-offer"),f="imagify-pricing-tab-monthly"===a.closest(".imagify-tab-content").attr("id")?!1:!0,k=f?w.find(".imagify-offer-onetime"):w.find(".imagify-offer-monthly"),a=f?null:a.closest(".imagify-pricing-table").hasClass("imagify-month-selected")?
18
+ "monthly":"yearly",c=f?q(c[Object.keys(c)[0]].price):q(c[Object.keys(c)[0]].prices,a),m=d.find(".imagify-approx-nb").text(),g=d.find(".imagify-offer-size").text(),l=f?"":'<span class="imagify-price-by">'+d.find(".imagify-price-by").text()+"</span>";v.hide().attr("aria-hidden","true");w.fadeIn(300).attr("aria-hidden","false");k.find(".imagify-number-block").html(c+l);k.find(".imagify-approx-nb").text(m);k.find(".imagify-offer-size").text(g);k.attr("data-offer",e);f||(k.find(".imagify-price-add-data").text(d.find(".imagify-price-add-data").text()),
19
+ "monthly"===a?k.find("#imagify-subscription-monthly").trigger("click.imagify"):k.find("#imagify-subscription-yearly").trigger("click.imagify"),k.find(".imagify-inline-options").find("input:radio:checked").trigger("change.imagify"));return!1});b("#imagify-modal-checkout-btn").on("click.imagify",function(){var a=b(".imagify-offer-monthly"),d=b(".imagify-offer-onetime"),c={},e=a.hasClass("imagify-year-selected")?"year":"month";a.hasClass("imagify-offer-selected")?(c.monthly=JSON.parse(a.attr("data-offer")),
20
  b(".imagify-cart-list-my-choice").show(),prices=c.monthly[Object.keys(c.monthly)[0]].prices,save_price=Math.round(1200*(prices.monthly-prices.yearly))/100,b(".imagify-nb-save-per-year").text("$"+save_price)):b(".imagify-cart-list-my-choice").hide();d.hasClass("imagify-offer-selected")&&(c.onetime=JSON.parse(d.attr("data-offer")));w.hide().attr("aria-hidden","true");n.fadeIn(300).attr("aria-hidden","false");b(".imagify-cart-emptied-item").hide().attr("aria-hidden","true");b("#imagify-pricing-step-2").addClass("active");
21
+ n.find(".imagify-cart-item").hide().attr("data-offer","");b.each(c,function(a,c){var d=n.find(".imagify-cart-item-"+a),g=c[Object.keys(c)[0]],l=b(".imagify-cart");d.show();d.attr("data-offer",JSON.stringify(c));d.find(".imagify-the-product-name").text(g.name);d.find(".imagify-cart-offer-data").text(g.dataf);"onetime"===a?d.find(".imagify-number-block").html(q(g.price)):d.find(".imagify-number-block").find(".imagify-switch-my").html(q(g.prices,e+"ly"));l.removeClass("imagify-month-selected imagify-year-selected").addClass("imagify-"+
22
+ e+"-selected");"month"===e?l.find("#imagify-checkout-monthly").trigger("click.imagify"):l.find("#imagify-checkout-yearly").trigger("click.imagify");l.find(".imagify-inline-options").find("input:radio:checked").trigger("change.imagify")});c.period=A();g(c);return!1});b(".imagify-remove-from-cart").on("click.imagify",function(){var a=b(this).closest(".imagify-cart-item"),d=a.hasClass("imagify-cart-item-monthly"),c=d?b(".imagify-cart-item-onetime"):b(".imagify-cart-item-monthly"),e=c.hasClass("imagify-temporary-removed"),
23
  f=a.attr("data-offer"),c=e?null:c.data("offer");a.hide().attr("aria-hidden","true").attr("data-offer","").addClass("imagify-temporary-removed");a.next(".imagify-cart-emptied-item").fadeIn(300).attr("aria-hidden","false").attr("data-offer",f).find(".imagify-removed-name").html(a.find(".imagify-cart-product-name").html());"function"===typeof g?null!==c?(a={},a[d?"onetime":"monthly"]=c,a.period=A(),g(a)):imagifyAdmin.labels.info("No offers selected"):imagifyAdmin.labels.info("imagify_iframe_set_src seems to be not declared");
24
  return!1});b(".imagify-cancel-removing").on("click.imagify",function(){var a=b(this).closest(".imagify-cart-emptied-item"),d=a.prev(".imagify-cart-item").hasClass("imagify-cart-item-monthly"),c=d?b(".imagify-cart-item-onetime"):b(".imagify-cart-item-monthly"),e=c.hasClass("imagify-temporary-removed"),f=a.attr("data-offer"),c=e?null:c.data("offer");a.hide().attr("aria-hidden","true").attr("data-offer","").prev(".imagify-cart-item").fadeIn(300).attr("aria-hidden","true").attr("data-offer",f).removeClass("imagify-temporary-removed");
25
  a={};a.monthly=d?JSON.parse(f):c;a.onetime=d?c:JSON.parse(f);a.period=A();"function"===typeof g?g(a):imagifyAdmin.labels.info("imagify_iframe_set_src seems to be not declared\u2026");return!1});b(".imagify-cart-list-my-choice").find('input[type="radio"]').on("change.imagify",function(){g(b(this).val())});b(".imagify-back-to-plans").on("click.imagify",function(){b(this).closest(".imagify-cart-item").hasClass("imagify-cart-item-onetime")?b(".imagify-offer-onetime").find(".imagify-choose-another-plan").trigger("click.imagify"):
assets/js/bulk.js CHANGED
@@ -131,10 +131,8 @@ jQuery(function($){
131
  // Display an alert to wait
132
  swal({
133
  title:imagifyBulk.labels.waitTitle,
134
- text: imagifyBulk.labels.waitText,
135
- closeOnConfirm: false,
136
  showConfirmButton: false,
137
- html: true,
138
  imageUrl: imagifyBulk.labels.waitImageUrl
139
  });
140
 
@@ -166,10 +164,10 @@ jQuery(function($){
166
 
167
  // Display an alert to warn that all images has been optimized
168
  swal({
169
- title : swal_title,
170
- text : swal_text,
171
- type : "info",
172
- customClass : "imagify-sweet-alert"
173
  });
174
 
175
  } else {
@@ -231,12 +229,10 @@ jQuery(function($){
231
  if ( data.error.indexOf("You've consumed all your data") >= 0 ) {
232
  swal({
233
  title: imagifyBulk.labels.overQuotaTitle,
234
- text: imagifyBulk.labels.overQuotaText,
235
  type: "error",
236
  customClass: "imagify-sweet-alert",
237
- html: true,
238
- },
239
- function(){
240
  location.reload();
241
  });
242
  }
@@ -298,11 +294,10 @@ jQuery(function($){
298
  .fail(function () {
299
  swal({
300
  title: imagifyBulk.labels.getUnoptimizedImagesErrorTitle,
301
- text: imagifyBulk.labels.getUnoptimizedImagesErrorText,
302
  type: "error",
303
  customClass: "imagify-sweet-alert"
304
- },
305
- function(){
306
  location.reload();
307
  });
308
  });
131
  // Display an alert to wait
132
  swal({
133
  title:imagifyBulk.labels.waitTitle,
134
+ html: imagifyBulk.labels.waitText,
 
135
  showConfirmButton: false,
 
136
  imageUrl: imagifyBulk.labels.waitImageUrl
137
  });
138
 
164
 
165
  // Display an alert to warn that all images has been optimized
166
  swal({
167
+ title: swal_title,
168
+ html: swal_text,
169
+ type: "info",
170
+ customClass: "imagify-sweet-alert"
171
  });
172
 
173
  } else {
229
  if ( data.error.indexOf("You've consumed all your data") >= 0 ) {
230
  swal({
231
  title: imagifyBulk.labels.overQuotaTitle,
232
+ html: imagifyBulk.labels.overQuotaText,
233
  type: "error",
234
  customClass: "imagify-sweet-alert",
235
+ }).then( function() {
 
 
236
  location.reload();
237
  });
238
  }
294
  .fail(function () {
295
  swal({
296
  title: imagifyBulk.labels.getUnoptimizedImagesErrorTitle,
297
+ html: imagifyBulk.labels.getUnoptimizedImagesErrorText,
298
  type: "error",
299
  customClass: "imagify-sweet-alert"
300
+ }).then(function(){
 
301
  location.reload();
302
  });
303
  });
assets/js/bulk.min.js CHANGED
@@ -1,18 +1,18 @@
1
  jQuery(function(b){function l(c){c.each(function(){var a=parseInt(b(this).closest(".imagify-chart").next(".imagipercent").text()),a=[{value:a,color:"#00B3D3"},{value:100-a,color:"#D8D8D8"}];(new Chart(b(this)[0].getContext("2d"))).Doughnut(a,{segmentStrokeColor:"#FFF",segmentStrokeWidth:1,animateRotate:!0,tooltipEvents:[]})})}function m(c){c.each(function(){var a=parseInt(b(this).closest(".imagify-ac-chart").attr("data-percent")),a=[{value:a,color:"#40B1D0"},{value:100-a,color:"#FFFFFF"}];(new Chart(b(this)[0].getContext("2d"))).Doughnut(a,
2
- {segmentStrokeColor:"transparent",segmentStrokeWidth:0,animateRotate:!0,animation:!0,percentageInnerCutout:70,tooltipEvents:[]})})}var k=0<ajaxurl.indexOf("?")?"&":"?",n={log:function(b){"undefined"!==console&&console.log(b)}},f=document.getElementById("imagify-overview-chart"),e=[{value:imagifyBulk.labels.totalUnoptimizedAttachments,color:"#D9E4EB",highlight:"#D9E4EB",label:imagifyBulk.labels.overviewChartLabels.unoptimized},{value:imagifyBulk.labels.totalOptimizedAttachments,color:"#46B1CE",highlight:"#46B1CE",
3
  label:imagifyBulk.labels.overviewChartLabels.optimized},{value:imagifyBulk.labels.totalErrorsAttachments,color:"#2E3242",highlight:"#2E3242",label:imagifyBulk.labels.overviewChartLabels.error}];if(f){var d=(new Chart(f.getContext("2d"))).Doughnut(e,{segmentStrokeColor:"transparent",segmentStrokeWidth:0,animateRotate:!0,animation:!0,percentageInnerCutout:85,legendTemplate:'<ul class="imagify-<%=name.toLowerCase()%>-legend"><% for (var i=0; i<segments.length; i++){%><li><span style="background-color:<%=segments[i].fillColor%>"></span><%if(segments[i].label){%><%=segments[i].label%><%}%></li><%}%></ul>',
4
  tooltipTemplate:"<%= value %>"});overviewLegend='<ul class="imagify-doughnut-legend">';b(e).each(function(b){overviewLegend+='<li><span style="background-color:'+e[b].color+'"></span>'+e[b].label+"</li>"});overviewLegend+="</ul>";document.getElementById("imagify-overview-chart-legend").innerHTML=overviewLegend}b(document).on("heartbeat-send",function(b,a){a.imagify_heartbeat=imagifyBulk.heartbeat_id});b(document).on("heartbeat-tick",function(c,a){a.imagify_bulk_data&&(a=a.imagify_bulk_data,b("#imagify-overview-chart-percent").html(a.optimized_attachments_percent+
5
  "<span>%</span>"),b(".imagify-total-percent").html(a.optimized_attachments_percent+"%"),b(".imagify-unconsumed-percent").html(a.unconsumed_quota+"%"),b(".imagify-unconsumed-bar").animate({width:a.unconsumed_quota+"%"}),b("#imagify-total-optimized-attachments").html(a.already_optimized_attachments),b("#imagify-original-bar").find(".imagify-barnb").html(a.original_human),b("#imagify-optimized-bar").animate({width:a.optimized_percent+"%"}),b("#imagify-optimized-bar").find(".imagify-barnb").html(a.optimized_human),
6
  b("#imagify-total-optimized-attachments-pct").html(a.optimized_percent+"%"),d.segments[0].value=a.unoptimized_attachments,d.segments[1].value=a.optimized_attachments,d.segments[2].value=a.errors_attachments,d.update())});b("#imagify-simulate-bulk-action").click(function(c){c.preventDefault();b("#imagify-bulk-action").trigger("click")});b("#imagify-bulk-action").click(function(){var c=b(this),a=b('[name="optimization_level"]:checked').val();"undefined"===typeof a&&(a=-1);if(c.attr("disabled"))return!1;
7
- c.attr("disabled","disabled");c.find(".dashicons").addClass("rotate");confirmMessage=function(){return imagifyBulk.labels.processing};b(window).on("beforeunload",confirmMessage);swal({title:imagifyBulk.labels.waitTitle,text:imagifyBulk.labels.waitText,closeOnConfirm:!1,showConfirmButton:!1,html:!0,imageUrl:imagifyBulk.labels.waitImageUrl});b.get(ajaxurl+k+"action="+imagifyBulk.ajax_action+"&optimization_level="+a+"&imagifybulkuploadnonce="+b("#imagifybulkuploadnonce").val()).done(function(a){if(a.success){swal.close();
8
- a={lib:ajaxurl+k+"action=imagify_bulk_upload&imagifybulkuploadnonce="+b("#imagifybulkuploadnonce").val(),images:a.data,context:imagifyBulk.ajax_context};var e=b(".imagify-bulk-table table tbody"),d=0,f=0,g=0,h=0;b(".imagify-row-progress").slideDown();b(".imagify-no-uploaded-yet, .imagify-row-complete").hide(200);Optimizer=new ImagifyGulp(a);Optimizer.before(function(b){e.find(".imagify-row-progress").after('<tr id="attachment-'+b.id+'"><td class="imagify-cell-filename"><span class="imagiuploaded"><img src="'+
9
- b.thumbnail+'"/>"</span><span class="imagifilename">'+b.filename+'</span></td><td class="imagify-cell-status"><span class="imagistatus status-compressing"><span class="dashicons dashicons-admin-generic rotate"></span>Compressing<span></span></span></td><td class="imagify-cell-original"></td><td class="imagify-cell-optimized"></td><td class="imagify-cell-percentage"></td><td class="imagify-cell-thumbnails"></td><td class="imagify-cell-savings"></td></tr>')}).each(function(a){var c=b("#imagify-progress-bar");
10
- c.css({width:a.progress+"%"});c.find(".percent").html(a.progress+"%");a.success?(b("#attachment-"+a.image+" .imagify-cell-status").html('<span class="imagistatus status-complete"><span class="dashicons dashicons-yes"></span>Complete</span>'),b("#attachment-"+a.image+" .imagify-cell-original").html(a.original_size_human),b("#attachment-"+a.image+" .imagify-cell-optimized").html(a.new_size_human),b("#attachment-"+a.image+" .imagify-cell-percentage").html('<span class="imagify-chart"><span class="imagify-chart-container"><canvas height="18" width="18" id="imagify-consumption-chart" style="width: 18px; height: 18px;"></canvas></span></span><span class="imagipercent">'+
11
- a.percent+"</span>%"),l(b("#attachment-"+a.image+" .imagify-cell-percentage").find("canvas")),b("#attachment-"+a.image+" .imagify-cell-thumbnails").html(a.thumbnails),b("#attachment-"+a.image+" .imagify-cell-savings").html(Optimizer.humanSize(a.overall_saving,1)),d=d+a.thumbnails+1,b(".imagify-cell-nb-files").html(d+" file(s)"),g+=a.original_overall_size,b(".imagify-total-original").html(Optimizer.humanSize(g,1)),h+=a.overall_saving,b(".imagify-total-gain").html(Optimizer.humanSize(h,1))):(error_class=
12
- "error",error_dashicon="dismiss",error_message="Error",0<=a.error.indexOf("You've consumed all your data")&&swal({title:imagifyBulk.labels.overQuotaTitle,text:imagifyBulk.labels.overQuotaText,type:"error",customClass:"imagify-sweet-alert",html:!0},function(){location.reload()}),0<=a.error.indexOf("This image is already compressed")?(error_dashicon=error_class="warning",error_message="Notice"):(f++,b(".imagify-cell-errors").html(f+" error(s)")),b("#attachment-"+a.image).after('<tr><td colspan="7"><span class="status-'+
13
  error_class+'">'+a.error+"</span></td></tr>"),b("#attachment-"+a.image+" .imagify-cell-status").html('<span class="imagistatus status-'+error_class+'"><span class="dashicons dashicons-'+error_dashicon+'"></span>'+error_message+"</span>"))}).done(function(a){c.removeAttr("disabled");c.find(".dashicons").removeClass("rotate");b(window).off("beforeunload",confirmMessage);b(".imagify-row-progress").slideUp();"NaN"!==a.global_percent&&(b(".imagify-row-complete").removeClass("hidden").addClass("done").attr("aria-hidden",
14
  "false"),b("html, body").animate({scrollTop:b(".imagify-row-complete").offset().top},200),b(".imagify-ac-rt-total-gain").html(a.global_gain_human),b(".imagify-ac-rt-total-original").html(a.global_original_size_human),text2share=imagifyBulk.labels.textToShare,text2share=text2share.replace("%1$s",a.global_gain_human),text2share=text2share.replace("%2$s",a.global_original_size_human),text2share=encodeURIComponent(text2share),b(".imagify-sn-twitter").attr("href","https://twitter.com/intent/tweet?source=webclient&amp;original_referer="+
15
  imagifyBulk.labels.pluginURL+"&amp;text="+text2share+"&amp;url="+imagifyBulk.labels.pluginURL+"&amp;related=imagify&amp;hastags=performance,web,wordpress"),b(".imagify-ac-chart").attr("data-percent",a.global_percent),m(b(".imagify-ac-chart").find("canvas")))}).error(function(a){n.log("Can't optimize image with id "+a)}).run()}else c.removeAttr("disabled"),c.find(".dashicons").removeClass("rotate"),swal_text=swal_title="",b(window).off("beforeunload",confirmMessage),"invalid-api-key"==a.data.message&&
16
- (swal_title=imagifyBulk.labels.invalidAPIKeyTitle),"over-quota"==a.data.message&&(swal_title=imagifyBulk.labels.overQuotaTitle,text=imagifyBulk.labels.overQuotaText),"no-images"==a.data.message&&(swal_title=imagifyBulk.labels.noAttachmentToOptimizeTitle,swal_text=imagifyBulk.labels.noAttachmentToOptimizeText),swal({title:swal_title,text:swal_text,type:"info",customClass:"imagify-sweet-alert"})}).fail(function(){swal({title:imagifyBulk.labels.getUnoptimizedImagesErrorTitle,text:imagifyBulk.labels.getUnoptimizedImagesErrorText,
17
- type:"error",customClass:"imagify-sweet-alert"},function(){location.reload()})})})});var width=700,height=290;if(window.innerWidth)var clientLeft=(window.innerWidth-width)/2,clientTop=(window.innerHeight-height)/2;else clientLeft=(document.body.clientWidth-width)/2,clientTop=(document.body.clientHeight-height)/2;
18
  [].forEach.call(document.querySelectorAll(".imagify-share-networks a"),function(b){b.addEventListener("click",function(b){window.open(this.href,"","status=no, scrollbars=no, menubar=no, top="+clientTop+", left="+clientLeft+", width="+width+", height="+height);b.preventDefault()},!1)});
1
  jQuery(function(b){function l(c){c.each(function(){var a=parseInt(b(this).closest(".imagify-chart").next(".imagipercent").text()),a=[{value:a,color:"#00B3D3"},{value:100-a,color:"#D8D8D8"}];(new Chart(b(this)[0].getContext("2d"))).Doughnut(a,{segmentStrokeColor:"#FFF",segmentStrokeWidth:1,animateRotate:!0,tooltipEvents:[]})})}function m(c){c.each(function(){var a=parseInt(b(this).closest(".imagify-ac-chart").attr("data-percent")),a=[{value:a,color:"#40B1D0"},{value:100-a,color:"#FFFFFF"}];(new Chart(b(this)[0].getContext("2d"))).Doughnut(a,
2
+ {segmentStrokeColor:"transparent",segmentStrokeWidth:0,animateRotate:!0,animation:!0,percentageInnerCutout:70,tooltipEvents:[]})})}var g=0<ajaxurl.indexOf("?")?"&":"?",n={log:function(b){"undefined"!==console&&console.log(b)}},f=document.getElementById("imagify-overview-chart"),e=[{value:imagifyBulk.labels.totalUnoptimizedAttachments,color:"#D9E4EB",highlight:"#D9E4EB",label:imagifyBulk.labels.overviewChartLabels.unoptimized},{value:imagifyBulk.labels.totalOptimizedAttachments,color:"#46B1CE",highlight:"#46B1CE",
3
  label:imagifyBulk.labels.overviewChartLabels.optimized},{value:imagifyBulk.labels.totalErrorsAttachments,color:"#2E3242",highlight:"#2E3242",label:imagifyBulk.labels.overviewChartLabels.error}];if(f){var d=(new Chart(f.getContext("2d"))).Doughnut(e,{segmentStrokeColor:"transparent",segmentStrokeWidth:0,animateRotate:!0,animation:!0,percentageInnerCutout:85,legendTemplate:'<ul class="imagify-<%=name.toLowerCase()%>-legend"><% for (var i=0; i<segments.length; i++){%><li><span style="background-color:<%=segments[i].fillColor%>"></span><%if(segments[i].label){%><%=segments[i].label%><%}%></li><%}%></ul>',
4
  tooltipTemplate:"<%= value %>"});overviewLegend='<ul class="imagify-doughnut-legend">';b(e).each(function(b){overviewLegend+='<li><span style="background-color:'+e[b].color+'"></span>'+e[b].label+"</li>"});overviewLegend+="</ul>";document.getElementById("imagify-overview-chart-legend").innerHTML=overviewLegend}b(document).on("heartbeat-send",function(b,a){a.imagify_heartbeat=imagifyBulk.heartbeat_id});b(document).on("heartbeat-tick",function(c,a){a.imagify_bulk_data&&(a=a.imagify_bulk_data,b("#imagify-overview-chart-percent").html(a.optimized_attachments_percent+
5
  "<span>%</span>"),b(".imagify-total-percent").html(a.optimized_attachments_percent+"%"),b(".imagify-unconsumed-percent").html(a.unconsumed_quota+"%"),b(".imagify-unconsumed-bar").animate({width:a.unconsumed_quota+"%"}),b("#imagify-total-optimized-attachments").html(a.already_optimized_attachments),b("#imagify-original-bar").find(".imagify-barnb").html(a.original_human),b("#imagify-optimized-bar").animate({width:a.optimized_percent+"%"}),b("#imagify-optimized-bar").find(".imagify-barnb").html(a.optimized_human),
6
  b("#imagify-total-optimized-attachments-pct").html(a.optimized_percent+"%"),d.segments[0].value=a.unoptimized_attachments,d.segments[1].value=a.optimized_attachments,d.segments[2].value=a.errors_attachments,d.update())});b("#imagify-simulate-bulk-action").click(function(c){c.preventDefault();b("#imagify-bulk-action").trigger("click")});b("#imagify-bulk-action").click(function(){var c=b(this),a=b('[name="optimization_level"]:checked').val();"undefined"===typeof a&&(a=-1);if(c.attr("disabled"))return!1;
7
+ c.attr("disabled","disabled");c.find(".dashicons").addClass("rotate");confirmMessage=function(){return imagifyBulk.labels.processing};b(window).on("beforeunload",confirmMessage);swal({title:imagifyBulk.labels.waitTitle,html:imagifyBulk.labels.waitText,showConfirmButton:!1,imageUrl:imagifyBulk.labels.waitImageUrl});b.get(ajaxurl+g+"action="+imagifyBulk.ajax_action+"&optimization_level="+a+"&imagifybulkuploadnonce="+b("#imagifybulkuploadnonce").val()).done(function(a){if(a.success){swal.close();a={lib:ajaxurl+
8
+ g+"action=imagify_bulk_upload&imagifybulkuploadnonce="+b("#imagifybulkuploadnonce").val(),images:a.data,context:imagifyBulk.ajax_context};var e=b(".imagify-bulk-table table tbody"),d=0,f=0,h=0,k=0;b(".imagify-row-progress").slideDown();b(".imagify-no-uploaded-yet, .imagify-row-complete").hide(200);Optimizer=new ImagifyGulp(a);Optimizer.before(function(b){e.find(".imagify-row-progress").after('<tr id="attachment-'+b.id+'"><td class="imagify-cell-filename"><span class="imagiuploaded"><img src="'+b.thumbnail+
9
+ '"/>"</span><span class="imagifilename">'+b.filename+'</span></td><td class="imagify-cell-status"><span class="imagistatus status-compressing"><span class="dashicons dashicons-admin-generic rotate"></span>Compressing<span></span></span></td><td class="imagify-cell-original"></td><td class="imagify-cell-optimized"></td><td class="imagify-cell-percentage"></td><td class="imagify-cell-thumbnails"></td><td class="imagify-cell-savings"></td></tr>')}).each(function(a){var c=b("#imagify-progress-bar");c.css({width:a.progress+
10
+ "%"});c.find(".percent").html(a.progress+"%");a.success?(b("#attachment-"+a.image+" .imagify-cell-status").html('<span class="imagistatus status-complete"><span class="dashicons dashicons-yes"></span>Complete</span>'),b("#attachment-"+a.image+" .imagify-cell-original").html(a.original_size_human),b("#attachment-"+a.image+" .imagify-cell-optimized").html(a.new_size_human),b("#attachment-"+a.image+" .imagify-cell-percentage").html('<span class="imagify-chart"><span class="imagify-chart-container"><canvas height="18" width="18" id="imagify-consumption-chart" style="width: 18px; height: 18px;"></canvas></span></span><span class="imagipercent">'+
11
+ a.percent+"</span>%"),l(b("#attachment-"+a.image+" .imagify-cell-percentage").find("canvas")),b("#attachment-"+a.image+" .imagify-cell-thumbnails").html(a.thumbnails),b("#attachment-"+a.image+" .imagify-cell-savings").html(Optimizer.humanSize(a.overall_saving,1)),d=d+a.thumbnails+1,b(".imagify-cell-nb-files").html(d+" file(s)"),h+=a.original_overall_size,b(".imagify-total-original").html(Optimizer.humanSize(h,1)),k+=a.overall_saving,b(".imagify-total-gain").html(Optimizer.humanSize(k,1))):(error_class=
12
+ "error",error_dashicon="dismiss",error_message="Error",0<=a.error.indexOf("You've consumed all your data")&&swal({title:imagifyBulk.labels.overQuotaTitle,html:imagifyBulk.labels.overQuotaText,type:"error",customClass:"imagify-sweet-alert"}).then(function(){location.reload()}),0<=a.error.indexOf("This image is already compressed")?(error_dashicon=error_class="warning",error_message="Notice"):(f++,b(".imagify-cell-errors").html(f+" error(s)")),b("#attachment-"+a.image).after('<tr><td colspan="7"><span class="status-'+
13
  error_class+'">'+a.error+"</span></td></tr>"),b("#attachment-"+a.image+" .imagify-cell-status").html('<span class="imagistatus status-'+error_class+'"><span class="dashicons dashicons-'+error_dashicon+'"></span>'+error_message+"</span>"))}).done(function(a){c.removeAttr("disabled");c.find(".dashicons").removeClass("rotate");b(window).off("beforeunload",confirmMessage);b(".imagify-row-progress").slideUp();"NaN"!==a.global_percent&&(b(".imagify-row-complete").removeClass("hidden").addClass("done").attr("aria-hidden",
14
  "false"),b("html, body").animate({scrollTop:b(".imagify-row-complete").offset().top},200),b(".imagify-ac-rt-total-gain").html(a.global_gain_human),b(".imagify-ac-rt-total-original").html(a.global_original_size_human),text2share=imagifyBulk.labels.textToShare,text2share=text2share.replace("%1$s",a.global_gain_human),text2share=text2share.replace("%2$s",a.global_original_size_human),text2share=encodeURIComponent(text2share),b(".imagify-sn-twitter").attr("href","https://twitter.com/intent/tweet?source=webclient&amp;original_referer="+
15
  imagifyBulk.labels.pluginURL+"&amp;text="+text2share+"&amp;url="+imagifyBulk.labels.pluginURL+"&amp;related=imagify&amp;hastags=performance,web,wordpress"),b(".imagify-ac-chart").attr("data-percent",a.global_percent),m(b(".imagify-ac-chart").find("canvas")))}).error(function(a){n.log("Can't optimize image with id "+a)}).run()}else c.removeAttr("disabled"),c.find(".dashicons").removeClass("rotate"),swal_text=swal_title="",b(window).off("beforeunload",confirmMessage),"invalid-api-key"==a.data.message&&
16
+ (swal_title=imagifyBulk.labels.invalidAPIKeyTitle),"over-quota"==a.data.message&&(swal_title=imagifyBulk.labels.overQuotaTitle,text=imagifyBulk.labels.overQuotaText),"no-images"==a.data.message&&(swal_title=imagifyBulk.labels.noAttachmentToOptimizeTitle,swal_text=imagifyBulk.labels.noAttachmentToOptimizeText),swal({title:swal_title,html:swal_text,type:"info",customClass:"imagify-sweet-alert"})}).fail(function(){swal({title:imagifyBulk.labels.getUnoptimizedImagesErrorTitle,html:imagifyBulk.labels.getUnoptimizedImagesErrorText,
17
+ type:"error",customClass:"imagify-sweet-alert"}).then(function(){location.reload()})})})});var width=700,height=290;if(window.innerWidth)var clientLeft=(window.innerWidth-width)/2,clientTop=(window.innerHeight-height)/2;else clientLeft=(document.body.clientWidth-width)/2,clientTop=(document.body.clientHeight-height)/2;
18
  [].forEach.call(document.querySelectorAll(".imagify-share-networks a"),function(b){b.addEventListener("click",function(b){window.open(this.href,"","status=no, scrollbars=no, menubar=no, top="+clientTop+", left="+clientLeft+", width="+width+", height="+height);b.preventDefault()},!1)});
assets/js/options.js CHANGED
@@ -37,10 +37,10 @@ jQuery(function($){
37
  $('#imagify-check-api-container').remove();
38
  swal({
39
  title: imagifyAdmin.labels.ApiKeyCheckSuccessTitle,
40
- text: imagifyAdmin.labels.ApiKeyCheckSuccessText,
41
  type: "success",
42
  customClass: "imagify-sweet-alert"
43
- },
44
  function(){
45
  location.reload();
46
  });
@@ -85,15 +85,17 @@ jQuery(function($){
85
  var $_this = $(this);
86
  swal({
87
  title: imagifyOptions.noBackupTitle,
88
- text: imagifyOptions.noBackupText,
89
- type: "info",
90
  customClass: "imagify-sweet-alert",
91
  showCancelButton: true,
92
- cancelButtonText: imagifyAdmin.labels.swalCancel
93
- }, function(isConfirm){
94
- if ( ! isConfirm ) {
 
 
 
95
  $_this.prop('checked', true);
96
- }
97
  });
98
  }
99
  });
37
  $('#imagify-check-api-container').remove();
38
  swal({
39
  title: imagifyAdmin.labels.ApiKeyCheckSuccessTitle,
40
+ html: imagifyAdmin.labels.ApiKeyCheckSuccessText,
41
  type: "success",
42
  customClass: "imagify-sweet-alert"
43
+ }).then(
44
  function(){
45
  location.reload();
46
  });
85
  var $_this = $(this);
86
  swal({
87
  title: imagifyOptions.noBackupTitle,
88
+ html: imagifyOptions.noBackupText,
89
+ type: "warning",
90
  customClass: "imagify-sweet-alert",
91
  showCancelButton: true,
92
+ cancelButtonText: imagifyAdmin.labels.swalCancel,
93
+ reverseButtons: true,
94
+ }).then(
95
+ function() {
96
+ },
97
+ function(dismiss){
98
  $_this.prop('checked', true);
 
99
  });
100
  }
101
  });
assets/js/options.min.js CHANGED
@@ -1,4 +1,4 @@
1
  jQuery(function(a){var c=!1,d=!1,f=0<ajaxurl.indexOf("?")?"&":"?";a("#imagify-settings #api_key").blur(function(){var b=a(this),e=b.val();if(""===a.trim(e))return!1;if(a("#check_api_key").val()===e)return a("#imagify-check-api-container").html('<span class="dashicons dashicons-yes"></span> '+imagifyAdmin.labels.ValidApiKeyText),!1;!0===c?d.abort():(a("#imagify-check-api-container").remove(),b.after('<span id="imagify-check-api-container"><span class="imagify-spinner"></span>'+imagifyAdmin.labels.waitApiKeyCheckText+
2
- "</span>"));c=!0;d=a.get(ajaxurl+f+"action=imagify_check_api_key_validity&api_key="+b.val()+"&imagifycheckapikeynonce="+a("#imagifycheckapikeynonce").val()).done(function(b){b.success?(a("#imagify-check-api-container").remove(),swal({title:imagifyAdmin.labels.ApiKeyCheckSuccessTitle,text:imagifyAdmin.labels.ApiKeyCheckSuccessText,type:"success",customClass:"imagify-sweet-alert"},function(){location.reload()})):a("#imagify-check-api-container").html('<span class="dashicons dashicons-no"></span> '+
3
  b.data);c=!1})});a(".imagify-options-line").css("cursor","pointer").on("click",function(b){if("INPUT"!==b.target.nodeName)return a('input[aria-describedby="'+a(this).attr("id")+'"]').trigger("click"),!1});a(".imagify-settings th span").on("click",function(b){1===a(this).parent().next("td").find("input:checkbox").length&&a(this).parent().next("td").find("input:checkbox").trigger("click")});a(".imagify-options-line").find("input").on("change focus",function(){var b=a(this).closest(".imagify-options-line").prev("label").prev("input");
4
- b[0].checked||b.prop("checked",!0)});a(".imagify-settings-section").find("#backup").on("change",function(){if(!a(this).is(":checked")){var b=a(this);swal({title:imagifyOptions.noBackupTitle,text:imagifyOptions.noBackupText,type:"info",customClass:"imagify-sweet-alert",showCancelButton:!0,cancelButtonText:imagifyAdmin.labels.swalCancel},function(a){a||b.prop("checked",!0)})}})});
1
  jQuery(function(a){var c=!1,d=!1,f=0<ajaxurl.indexOf("?")?"&":"?";a("#imagify-settings #api_key").blur(function(){var b=a(this),e=b.val();if(""===a.trim(e))return!1;if(a("#check_api_key").val()===e)return a("#imagify-check-api-container").html('<span class="dashicons dashicons-yes"></span> '+imagifyAdmin.labels.ValidApiKeyText),!1;!0===c?d.abort():(a("#imagify-check-api-container").remove(),b.after('<span id="imagify-check-api-container"><span class="imagify-spinner"></span>'+imagifyAdmin.labels.waitApiKeyCheckText+
2
+ "</span>"));c=!0;d=a.get(ajaxurl+f+"action=imagify_check_api_key_validity&api_key="+b.val()+"&imagifycheckapikeynonce="+a("#imagifycheckapikeynonce").val()).done(function(b){b.success?(a("#imagify-check-api-container").remove(),swal({title:imagifyAdmin.labels.ApiKeyCheckSuccessTitle,html:imagifyAdmin.labels.ApiKeyCheckSuccessText,type:"success",customClass:"imagify-sweet-alert"}).then(function(){location.reload()})):a("#imagify-check-api-container").html('<span class="dashicons dashicons-no"></span> '+
3
  b.data);c=!1})});a(".imagify-options-line").css("cursor","pointer").on("click",function(b){if("INPUT"!==b.target.nodeName)return a('input[aria-describedby="'+a(this).attr("id")+'"]').trigger("click"),!1});a(".imagify-settings th span").on("click",function(b){1===a(this).parent().next("td").find("input:checkbox").length&&a(this).parent().next("td").find("input:checkbox").trigger("click")});a(".imagify-options-line").find("input").on("change focus",function(){var b=a(this).closest(".imagify-options-line").prev("label").prev("input");
4
+ b[0].checked||b.prop("checked",!0)});a(".imagify-settings-section").find("#backup").on("change",function(){if(!a(this).is(":checked")){var b=a(this);swal({title:imagifyOptions.noBackupTitle,html:imagifyOptions.noBackupText,type:"warning",customClass:"imagify-sweet-alert",showCancelButton:!0,cancelButtonText:imagifyAdmin.labels.swalCancel,reverseButtons:!0}).then(function(){},function(a){b.prop("checked",!0)})}})});
assets/js/sweetalert.min.js DELETED
@@ -1 +0,0 @@
1
- !function(e,t,n){"use strict";!function o(e,t,n){function a(s,l){if(!t[s]){if(!e[s]){var i="function"==typeof require&&require;if(!l&&i)return i(s,!0);if(r)return r(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var c=t[s]={exports:{}};e[s][0].call(c.exports,function(t){var n=e[s][1][t];return a(n?n:t)},c,c.exports,o,e,t,n)}return t[s].exports}for(var r="function"==typeof require&&require,s=0;s<n.length;s++)a(n[s]);return a}({1:[function(o){var a,r,s,l,i=function(e){return e&&e.__esModule?e:{"default":e}},u=o("./modules/handle-dom"),c=o("./modules/utils"),d=o("./modules/handle-swal-dom"),f=o("./modules/handle-click"),p=o("./modules/handle-key"),m=i(p),v=o("./modules/default-params"),y=i(v),h=o("./modules/set-params"),g=i(h);s=l=function(){function o(e){var t=s;return t[e]===n?y["default"][e]:t[e]}var s=arguments[0];if(u.addClass(t.body,"stop-scrolling"),d.resetInput(),s===n)return c.logStr("SweetAlert expects at least 1 attribute!"),!1;var i=c.extend({},y["default"]);switch(typeof s){case"string":i.title=s,i.text=arguments[1]||"",i.type=arguments[2]||"";break;case"object":if(s.title===n)return c.logStr('Missing "title" argument!'),!1;i.title=s.title;for(var p in y["default"])i[p]=o(p);i.confirmButtonText=i.showCancelButton?"Confirm":y["default"].confirmButtonText,i.confirmButtonText=o("confirmButtonText"),i.doneFunction=arguments[1]||null;break;default:return c.logStr('Unexpected type of argument! Expected "string" or "object", got '+typeof s),!1}g["default"](i),d.fixVerticalPosition(),d.openModal(arguments[1]);for(var v=d.getModal(),h=v.querySelectorAll("button"),b=["onclick","onmouseover","onmouseout","onmousedown","onmouseup","onfocus"],w=function(e){return f.handleButton(e,i,v)},C=0;C<h.length;C++)for(var S=0;S<b.length;S++){var x=b[S];h[C][x]=w}d.getOverlay().onclick=w,a=e.onkeydown;var k=function(e){return m["default"](e,i,v)};e.onkeydown=k,e.onfocus=function(){setTimeout(function(){r!==n&&(r.focus(),r=n)},0)},l.enableButtons()},s.setDefaults=l.setDefaults=function(e){if(!e)throw new Error("userParams is required");if("object"!=typeof e)throw new Error("userParams has to be a object");c.extend(y["default"],e)},s.close=l.close=function(){var o=d.getModal();u.fadeOut(d.getOverlay(),5),u.fadeOut(o,5),u.removeClass(o,"showSweetAlert"),u.addClass(o,"hideSweetAlert"),u.removeClass(o,"visible");var s=o.querySelector(".sa-icon.sa-success");u.removeClass(s,"animate"),u.removeClass(s.querySelector(".sa-tip"),"animateSuccessTip"),u.removeClass(s.querySelector(".sa-long"),"animateSuccessLong");var l=o.querySelector(".sa-icon.sa-error");u.removeClass(l,"animateErrorIcon"),u.removeClass(l.querySelector(".sa-x-mark"),"animateXMark");var i=o.querySelector(".sa-icon.sa-warning");return u.removeClass(i,"pulseWarning"),u.removeClass(i.querySelector(".sa-body"),"pulseWarningIns"),u.removeClass(i.querySelector(".sa-dot"),"pulseWarningIns"),setTimeout(function(){var e=o.getAttribute("data-custom-class");u.removeClass(o,e)},300),u.removeClass(t.body,"stop-scrolling"),e.onkeydown=a,e.previousActiveElement&&e.previousActiveElement.focus(),r=n,clearTimeout(o.timeout),!0},s.showInputError=l.showInputError=function(e){var t=d.getModal(),n=t.querySelector(".sa-input-error");u.addClass(n,"show");var o=t.querySelector(".sa-error-container");u.addClass(o,"show"),o.querySelector("p").innerHTML=e,setTimeout(function(){s.enableButtons()},1),t.querySelector("input").focus()},s.resetInputError=l.resetInputError=function(e){if(e&&13===e.keyCode)return!1;var t=d.getModal(),n=t.querySelector(".sa-input-error");u.removeClass(n,"show");var o=t.querySelector(".sa-error-container");u.removeClass(o,"show")},s.disableButtons=l.disableButtons=function(){var e=d.getModal(),t=e.querySelector("button.confirm"),n=e.querySelector("button.cancel");t.disabled=!0,n.disabled=!0},s.enableButtons=l.enableButtons=function(){var e=d.getModal(),t=e.querySelector("button.confirm"),n=e.querySelector("button.cancel");t.disabled=!1,n.disabled=!1},"undefined"!=typeof e?e.sweetAlert=e.swal=s:c.logStr("SweetAlert is a frontend module!")},{"./modules/default-params":2,"./modules/handle-click":3,"./modules/handle-dom":4,"./modules/handle-key":5,"./modules/handle-swal-dom":6,"./modules/set-params":8,"./modules/utils":9}],2:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var o={title:"",text:"",type:null,allowOutsideClick:!1,showConfirmButton:!0,showCancelButton:!1,closeOnConfirm:!0,closeOnCancel:!0,confirmButtonText:"OK",confirmButtonColor:"#8CD4F5",cancelButtonText:"Cancel",imageUrl:null,imageSize:null,timer:null,customClass:"",html:!1,animation:!0,allowEscapeKey:!0,inputType:"text",inputPlaceholder:"",inputValue:"",showLoaderOnConfirm:!1};n["default"]=o,t.exports=n["default"]},{}],3:[function(t,n,o){Object.defineProperty(o,"__esModule",{value:!0});var a=t("./utils"),r=(t("./handle-swal-dom"),t("./handle-dom")),s=function(t,n,o){function s(e){m&&n.confirmButtonColor&&(p.style.backgroundColor=e)}var u,c,d,f=t||e.event,p=f.target||f.srcElement,m=-1!==p.className.indexOf("confirm"),v=-1!==p.className.indexOf("sweet-overlay"),y=r.hasClass(o,"visible"),h=n.doneFunction&&"true"===o.getAttribute("data-has-done-function");switch(m&&n.confirmButtonColor&&(u=n.confirmButtonColor,c=a.colorLuminance(u,-.04),d=a.colorLuminance(u,-.14)),f.type){case"mouseover":s(c);break;case"mouseout":s(u);break;case"mousedown":s(d);break;case"mouseup":s(c);break;case"focus":var g=o.querySelector("button.confirm"),b=o.querySelector("button.cancel");m?b.style.boxShadow="none":g.style.boxShadow="none";break;case"click":var w=o===p,C=r.isDescendant(o,p);if(!w&&!C&&y&&!n.allowOutsideClick)break;m&&h&&y?l(o,n):h&&y||v?i(o,n):r.isDescendant(o,p)&&"BUTTON"===p.tagName&&sweetAlert.close()}},l=function(e,t){var n=!0;r.hasClass(e,"show-input")&&(n=e.querySelector("input").value,n||(n="")),t.doneFunction(n),t.closeOnConfirm&&sweetAlert.close(),t.showLoaderOnConfirm&&sweetAlert.disableButtons()},i=function(e,t){var n=String(t.doneFunction).replace(/\s/g,""),o="function("===n.substring(0,9)&&")"!==n.substring(9,10);o&&t.doneFunction(!1),t.closeOnCancel&&sweetAlert.close()};o["default"]={handleButton:s,handleConfirm:l,handleCancel:i},n.exports=o["default"]},{"./handle-dom":4,"./handle-swal-dom":6,"./utils":9}],4:[function(n,o,a){Object.defineProperty(a,"__esModule",{value:!0});var r=function(e,t){return new RegExp(" "+t+" ").test(" "+e.className+" ")},s=function(e,t){r(e,t)||(e.className+=" "+t)},l=function(e,t){var n=" "+e.className.replace(/[\t\r\n]/g," ")+" ";if(r(e,t)){for(;n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=n.replace(/^\s+|\s+$/g,"")}},i=function(e){var n=t.createElement("div");return n.appendChild(t.createTextNode(e)),n.innerHTML},u=function(e){e.style.opacity="",e.style.display="block"},c=function(e){if(e&&!e.length)return u(e);for(var t=0;t<e.length;++t)u(e[t])},d=function(e){e.style.opacity="",e.style.display="none"},f=function(e){if(e&&!e.length)return d(e);for(var t=0;t<e.length;++t)d(e[t])},p=function(e,t){for(var n=t.parentNode;null!==n;){if(n===e)return!0;n=n.parentNode}return!1},m=function(e){e.style.left="-9999px",e.style.display="block";var t,n=e.clientHeight;return t="undefined"!=typeof getComputedStyle?parseInt(getComputedStyle(e).getPropertyValue("padding-top"),10):parseInt(e.currentStyle.padding),e.style.left="",e.style.display="none","-"+parseInt((n+t)/2)+"px"},v=function(e,t){if(+e.style.opacity<1){t=t||16,e.style.opacity=0,e.style.display="block";var n=+new Date,o=function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){e.style.opacity=+e.style.opacity+(new Date-n)/100,n=+new Date,+e.style.opacity<1&&setTimeout(o,t)});o()}e.style.display="block"},y=function(e,t){t=t||16,e.style.opacity=1;var n=+new Date,o=function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){e.style.opacity=+e.style.opacity-(new Date-n)/100,n=+new Date,+e.style.opacity>0?setTimeout(o,t):e.style.display="none"});o()},h=function(n){if("function"==typeof MouseEvent){var o=new MouseEvent("click",{view:e,bubbles:!1,cancelable:!0});n.dispatchEvent(o)}else if(t.createEvent){var a=t.createEvent("MouseEvents");a.initEvent("click",!1,!1),n.dispatchEvent(a)}else t.createEventObject?n.fireEvent("onclick"):"function"==typeof n.onclick&&n.onclick()},g=function(t){"function"==typeof t.stopPropagation?(t.stopPropagation(),t.preventDefault()):e.event&&e.event.hasOwnProperty("cancelBubble")&&(e.event.cancelBubble=!0)};a.hasClass=r,a.addClass=s,a.removeClass=l,a.escapeHtml=i,a._show=u,a.show=c,a._hide=d,a.hide=f,a.isDescendant=p,a.getTopMargin=m,a.fadeIn=v,a.fadeOut=y,a.fireClick=h,a.stopEventPropagation=g},{}],5:[function(t,o,a){Object.defineProperty(a,"__esModule",{value:!0});var r=t("./handle-dom"),s=t("./handle-swal-dom"),l=function(t,o,a){var l=t||e.event,i=l.keyCode||l.which,u=a.querySelector("button.confirm"),c=a.querySelector("button.cancel"),d=a.querySelectorAll("button[tabindex]");if(-1!==[9,13,32,27].indexOf(i)){for(var f=l.target||l.srcElement,p=-1,m=0;m<d.length;m++)if(f===d[m]){p=m;break}9===i?(f=-1===p?u:p===d.length-1?d[0]:d[p+1],r.stopEventPropagation(l),f.focus(),o.confirmButtonColor&&s.setFocusStyle(f,o.confirmButtonColor)):13===i?("INPUT"===f.tagName&&(f=u,u.focus()),f=-1===p?u:n):27===i&&o.allowEscapeKey===!0?(f=c,r.fireClick(f,l)):f=n}};a["default"]=l,o.exports=a["default"]},{"./handle-dom":4,"./handle-swal-dom":6}],6:[function(n,o,a){var r=function(e){return e&&e.__esModule?e:{"default":e}};Object.defineProperty(a,"__esModule",{value:!0});var s=n("./utils"),l=n("./handle-dom"),i=n("./default-params"),u=r(i),c=n("./injected-html"),d=r(c),f=".sweet-alert",p=".sweet-overlay",m=function(){var e=t.createElement("div");for(e.innerHTML=d["default"];e.firstChild;)t.body.appendChild(e.firstChild)},v=function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){var e=t.querySelector(f);return e||(m(),e=v()),e}),y=function(){var e=v();return e?e.querySelector("input"):void 0},h=function(){return t.querySelector(p)},g=function(e,t){var n=s.hexToRgb(t);e.style.boxShadow="0 0 2px rgba("+n+", 0.8), inset 0 0 0 1px rgba(0, 0, 0, 0.05)"},b=function(n){var o=v();l.fadeIn(h(),10),l.show(o),l.addClass(o,"showSweetAlert"),l.removeClass(o,"hideSweetAlert"),e.previousActiveElement=t.activeElement;var a=o.querySelector("button.confirm");a.focus(),setTimeout(function(){l.addClass(o,"visible")},500);var r=o.getAttribute("data-timer");if("null"!==r&&""!==r){var s=n;o.timeout=setTimeout(function(){var e=(s||null)&&"true"===o.getAttribute("data-has-done-function");e?s(null):sweetAlert.close()},r)}},w=function(){var e=v(),t=y();l.removeClass(e,"show-input"),t.value=u["default"].inputValue,t.setAttribute("type",u["default"].inputType),t.setAttribute("placeholder",u["default"].inputPlaceholder),C()},C=function(e){if(e&&13===e.keyCode)return!1;var t=v(),n=t.querySelector(".sa-input-error");l.removeClass(n,"show");var o=t.querySelector(".sa-error-container");l.removeClass(o,"show")},S=function(){var e=v();e.style.marginTop=l.getTopMargin(v())};a.sweetAlertInitialize=m,a.getModal=v,a.getOverlay=h,a.getInput=y,a.setFocusStyle=g,a.openModal=b,a.resetInput=w,a.resetInputError=C,a.fixVerticalPosition=S},{"./default-params":2,"./handle-dom":4,"./injected-html":7,"./utils":9}],7:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var o='<div class="sweet-overlay" tabIndex="-1"></div><div class="sweet-alert"><div class="sa-icon sa-error">\n <span class="sa-x-mark">\n <span class="sa-line sa-left"></span>\n <span class="sa-line sa-right"></span>\n </span>\n </div><div class="sa-icon sa-warning">\n <span class="sa-body"></span>\n <span class="sa-dot"></span>\n </div><div class="sa-icon sa-info"></div><div class="sa-icon sa-success">\n <span class="sa-line sa-tip"></span>\n <span class="sa-line sa-long"></span>\n\n <div class="sa-placeholder"></div>\n <div class="sa-fix"></div>\n </div><div class="sa-icon sa-custom"></div><h2>Title</h2>\n <p>Text</p>\n <fieldset>\n <input type="text" tabIndex="3" />\n <div class="sa-input-error"></div>\n </fieldset><div class="sa-error-container">\n <div class="icon">!</div>\n <p>Not valid!</p>\n </div><div class="sa-button-container">\n <button class="cancel" tabIndex="2">Cancel</button>\n <div class="sa-confirm-button-container">\n <button class="confirm" tabIndex="1">OK</button><div class="la-ball-fall">\n <div></div>\n <div></div>\n <div></div>\n </div>\n </div>\n </div></div>';n["default"]=o,t.exports=n["default"]},{}],8:[function(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});var a=e("./utils"),r=e("./handle-swal-dom"),s=e("./handle-dom"),l=["error","warning","info","success","input","prompt"],i=function(e){var t=r.getModal(),o=t.querySelector("h2"),i=t.querySelector("p"),u=t.querySelector("button.cancel"),c=t.querySelector("button.confirm");if(o.innerHTML=e.html?e.title:s.escapeHtml(e.title).split("\n").join("<br>"),i.innerHTML=e.html?e.text:s.escapeHtml(e.text||"").split("\n").join("<br>"),e.text&&s.show(i),e.customClass)s.addClass(t,e.customClass),t.setAttribute("data-custom-class",e.customClass);else{var d=t.getAttribute("data-custom-class");s.removeClass(t,d),t.setAttribute("data-custom-class","")}if(s.hide(t.querySelectorAll(".sa-icon")),e.type&&!a.isIE8()){var f=function(){for(var o=!1,a=0;a<l.length;a++)if(e.type===l[a]){o=!0;break}if(!o)return logStr("Unknown alert type: "+e.type),{v:!1};var i=["success","error","warning","info"],u=n;-1!==i.indexOf(e.type)&&(u=t.querySelector(".sa-icon.sa-"+e.type),s.show(u));var c=r.getInput();switch(e.type){case"success":s.addClass(u,"animate"),s.addClass(u.querySelector(".sa-tip"),"animateSuccessTip"),s.addClass(u.querySelector(".sa-long"),"animateSuccessLong");break;case"error":s.addClass(u,"animateErrorIcon"),s.addClass(u.querySelector(".sa-x-mark"),"animateXMark");break;case"warning":s.addClass(u,"pulseWarning"),s.addClass(u.querySelector(".sa-body"),"pulseWarningIns"),s.addClass(u.querySelector(".sa-dot"),"pulseWarningIns");break;case"input":case"prompt":c.setAttribute("type",e.inputType),c.value=e.inputValue,c.setAttribute("placeholder",e.inputPlaceholder),s.addClass(t,"show-input"),setTimeout(function(){c.focus(),c.addEventListener("keyup",swal.resetInputError)},400)}}();if("object"==typeof f)return f.v}if(e.imageUrl){var p=t.querySelector(".sa-icon.sa-custom");p.style.backgroundImage="url("+e.imageUrl+")",s.show(p);var m=80,v=80;if(e.imageSize){var y=e.imageSize.toString().split("x"),h=y[0],g=y[1];h&&g?(m=h,v=g):logStr("Parameter imageSize expects value with format WIDTHxHEIGHT, got "+e.imageSize)}p.setAttribute("style",p.getAttribute("style")+"width:"+m+"px; height:"+v+"px")}t.setAttribute("data-has-cancel-button",e.showCancelButton),e.showCancelButton?u.style.display="inline-block":s.hide(u),t.setAttribute("data-has-confirm-button",e.showConfirmButton),e.showConfirmButton?c.style.display="inline-block":s.hide(c),e.cancelButtonText&&(u.innerHTML=s.escapeHtml(e.cancelButtonText)),e.confirmButtonText&&(c.innerHTML=s.escapeHtml(e.confirmButtonText)),e.confirmButtonColor&&(c.style.backgroundColor=e.confirmButtonColor,c.style.borderLeftColor=e.confirmLoadingButtonColor,c.style.borderRightColor=e.confirmLoadingButtonColor,r.setFocusStyle(c,e.confirmButtonColor)),t.setAttribute("data-allow-outside-click",e.allowOutsideClick);var b=e.doneFunction?!0:!1;t.setAttribute("data-has-done-function",b),e.animation?"string"==typeof e.animation?t.setAttribute("data-animation",e.animation):t.setAttribute("data-animation","pop"):t.setAttribute("data-animation","none"),t.setAttribute("data-timer",e.timer)};o["default"]=i,t.exports=o["default"]},{"./handle-dom":4,"./handle-swal-dom":6,"./utils":9}],9:[function(t,n,o){Object.defineProperty(o,"__esModule",{value:!0});var a=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},r=function(e){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?parseInt(t[1],16)+", "+parseInt(t[2],16)+", "+parseInt(t[3],16):null},s=function(){return e.attachEvent&&!e.addEventListener},l=function(t){e.console&&e.console.log("SweetAlert: "+t)},i=function(e,t){e=String(e).replace(/[^0-9a-f]/gi,""),e.length<6&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),t=t||0;var n,o,a="#";for(o=0;3>o;o++)n=parseInt(e.substr(2*o,2),16),n=Math.round(Math.min(Math.max(0,n+n*t),255)).toString(16),a+=("00"+n).substr(n.length);return a};o.extend=a,o.hexToRgb=r,o.isIE8=s,o.logStr=l,o.colorLuminance=i},{}]},{},[1]),"function"==typeof define&&define.amd?define(function(){return sweetAlert}):"undefined"!=typeof module&&module.exports&&(module.exports=sweetAlert)}(window,document);
 
assets/js/sweetalert2.js ADDED
@@ -0,0 +1,1343 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*!
2
+ * sweetalert2 v4.0.15
3
+ * Released under the MIT License.
4
+ */
5
+ (function (global, factory) {
6
+ typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
7
+ typeof define === 'function' && define.amd ? define(factory) :
8
+ (global.Sweetalert2 = factory());
9
+ }(this, function () { 'use strict';
10
+
11
+ var swalPrefix = 'swal2-';
12
+
13
+ var prefix = function(items) {
14
+ var result = {};
15
+ for (var i in items) {
16
+ result[items[i]] = swalPrefix + items[i];
17
+ }
18
+ return result;
19
+ };
20
+
21
+ var swalClasses = prefix([
22
+ 'container',
23
+ 'modal',
24
+ 'overlay',
25
+ 'close',
26
+ 'content',
27
+ 'spacer',
28
+ 'confirm',
29
+ 'cancel',
30
+ 'icon',
31
+ 'image',
32
+ 'input',
33
+ 'select',
34
+ 'radio',
35
+ 'checkbox',
36
+ 'textarea',
37
+ 'validationerror'
38
+ ]);
39
+
40
+ var iconTypes = prefix([
41
+ 'success',
42
+ 'warning',
43
+ 'info',
44
+ 'question',
45
+ 'error'
46
+ ]);
47
+
48
+ var defaultParams = {
49
+ title: '',
50
+ text: '',
51
+ html: '',
52
+ type: null,
53
+ animation: true,
54
+ allowOutsideClick: true,
55
+ allowEscapeKey: true,
56
+ showConfirmButton: true,
57
+ showCancelButton: false,
58
+ preConfirm: null,
59
+ confirmButtonText: 'OK',
60
+ confirmButtonColor: '#3085d6',
61
+ confirmButtonClass: null,
62
+ cancelButtonText: 'Cancel',
63
+ cancelButtonColor: '#aaa',
64
+ cancelButtonClass: null,
65
+ buttonsStyling: true,
66
+ reverseButtons: false,
67
+ showCloseButton: false,
68
+ showLoaderOnConfirm: false,
69
+ imageUrl: null,
70
+ imageWidth: null,
71
+ imageHeight: null,
72
+ imageClass: null,
73
+ timer: null,
74
+ width: 500,
75
+ padding: 20,
76
+ background: '#fff',
77
+ input: null, // 'text' | 'email' | 'password' | 'select' | 'radio' | 'checkbox' | 'textarea' | 'file'
78
+ inputPlaceholder: '',
79
+ inputValue: '',
80
+ inputOptions: {},
81
+ inputAutoTrim: true,
82
+ inputClass: null,
83
+ inputAttributes: {},
84
+ inputValidator: null,
85
+ onOpen: null,
86
+ onClose: null,
87
+ };
88
+
89
+ var sweetHTML = '<div class="' + swalClasses.overlay + '" tabIndex="-1"></div>' +
90
+ '<div class="' + swalClasses.modal + '" style="display: none" tabIndex="-1">' +
91
+ '<div class="' + swalClasses.icon + ' ' + iconTypes.error + '">' +
92
+ '<span class="x-mark"><span class="line left"></span><span class="line right"></span></span>' +
93
+ '</div>' +
94
+ '<div class="' + swalClasses.icon + ' ' + iconTypes.question + '">?</div>' +
95
+ '<div class="' + swalClasses.icon + ' ' + iconTypes.warning + '">!</div>' +
96
+ '<div class="' + swalClasses.icon + ' ' + iconTypes.info + '">i</div>' +
97
+ '<div class="' + swalClasses.icon + ' ' + iconTypes.success + '">' +
98
+ '<span class="line tip"></span> <span class="line long"></span>' +
99
+ '<div class="placeholder"></div> <div class="fix"></div>' +
100
+ '</div>' +
101
+ '<img class="' + swalClasses.image + '">' +
102
+ '<h2></h2>' +
103
+ '<div class="' + swalClasses.content + '"></div>' +
104
+ '<input class="' + swalClasses.input + '">' +
105
+ '<select class="' + swalClasses.select + '"></select>' +
106
+ '<div class="' + swalClasses.radio + '"></div>' +
107
+ '<label for="' + swalClasses.checkbox + '" class="' + swalClasses.checkbox + '">' +
108
+ '<input type="checkbox" id="' + swalClasses.checkbox + '">' +
109
+ '</label>' +
110
+ '<textarea class="' + swalClasses.textarea + '"></textarea>' +
111
+ '<div class="' + swalClasses.validationerror + '"></div>' +
112
+ '<hr class="' + swalClasses.spacer + '">' +
113
+ '<button class="' + swalClasses.confirm + '">OK</button>' +
114
+ '<button class="' + swalClasses.cancel + '">Cancel</button>' +
115
+ '<span class="' + swalClasses.close + '">&times;</span>' +
116
+ '</div>';
117
+
118
+ var extend = function(a, b) {
119
+ for (var key in b) {
120
+ if (b.hasOwnProperty(key)) {
121
+ a[key] = b[key];
122
+ }
123
+ }
124
+
125
+ return a;
126
+ };
127
+
128
+
129
+ /*
130
+ * Set hover, active and focus-states for buttons (source: http://www.sitepoint.com/javascript-generate-lighter-darker-color)
131
+ */
132
+ var colorLuminance = function(hex, lum) {
133
+ // Validate hex string
134
+ hex = String(hex).replace(/[^0-9a-f]/gi, '');
135
+ if (hex.length < 6) {
136
+ hex = hex[0] + hex[0] + hex[1] + hex[1] + hex[2] + hex[2];
137
+ }
138
+ lum = lum || 0;
139
+
140
+ // Convert to decimal and change luminosity
141
+ var rgb = '#';
142
+ for (var i = 0; i < 3; i++) {
143
+ var c = parseInt(hex.substr(i * 2, 2), 16);
144
+ c = Math.round(Math.min(Math.max(0, c + (c * lum)), 255)).toString(16);
145
+ rgb += ('00' + c).substr(c.length);
146
+ }
147
+
148
+ return rgb;
149
+ };
150
+
151
+ var mediaqueryId = swalPrefix + 'mediaquery';
152
+
153
+ // Remember state in cases where opening and handling a modal will fiddle with it.
154
+ var states = {
155
+ previousWindowKeyDown: null,
156
+ previousActiveElement: null
157
+ };
158
+
159
+ /*
160
+ * Manipulate DOM
161
+ */
162
+ var elementByClass = function(className) {
163
+ return document.querySelector('.' + className);
164
+ };
165
+
166
+ var getModal = function() {
167
+ return elementByClass(swalClasses.modal);
168
+ };
169
+
170
+ var getOverlay = function() {
171
+ return elementByClass(swalClasses.overlay);
172
+ };
173
+
174
+ var getConfirmButton = function() {
175
+ return elementByClass(swalClasses.confirm);
176
+ };
177
+
178
+ var getCancelButton = function() {
179
+ return elementByClass(swalClasses.cancel);
180
+ };
181
+
182
+ var getCloseButton = function() {
183
+ return elementByClass(swalClasses.close);
184
+ };
185
+
186
+ var hasClass = function(elem, className) {
187
+ return elem.classList.contains(className);
188
+ };
189
+
190
+ var focusInput = function(input) {
191
+ input.focus();
192
+
193
+ // http://stackoverflow.com/a/2345915/1331425
194
+ var val = input.value;
195
+ input.value = '';
196
+ input.value = val;
197
+ };
198
+
199
+ var addClass = function(elem, className) {
200
+ if (!elem || !className) {
201
+ return;
202
+ }
203
+ var classes = className.split(/\s+/);
204
+ classes.forEach(function (className) {
205
+ elem.classList.add(className)
206
+ });
207
+ };
208
+
209
+ var removeClass = function(elem, className) {
210
+ if (!elem || !className) {
211
+ return;
212
+ }
213
+ var classes = className.split(/\s+/);
214
+ classes.forEach(function (className) {
215
+ elem.classList.remove(className);
216
+ });
217
+ };
218
+
219
+ var getChildByClass = function(elem, className) {
220
+ for (var i = 0; i < elem.childNodes.length; i++) {
221
+ if (hasClass(elem.childNodes[i], className)) {
222
+ return elem.childNodes[i];
223
+ }
224
+ }
225
+ };
226
+
227
+ var _show = function(elem) {
228
+ elem.style.opacity = '';
229
+ elem.style.display = 'block';
230
+ };
231
+
232
+ var show = function(elems) {
233
+ if (elems && !elems.length) {
234
+ return _show(elems);
235
+ }
236
+ for (var i = 0; i < elems.length; ++i) {
237
+ _show(elems[i]);
238
+ }
239
+ };
240
+
241
+ var _hide = function(elem) {
242
+ elem.style.opacity = '';
243
+ elem.style.display = 'none';
244
+ };
245
+
246
+ var hide = function(elems) {
247
+ if (elems && !elems.length) {
248
+ return _hide(elems);
249
+ }
250
+ for (var i = 0; i < elems.length; ++i) {
251
+ _hide(elems[i]);
252
+ }
253
+ };
254
+
255
+ var removeStyleProperty = function(elem, property) {
256
+ if (elem.style.removeProperty) {
257
+ elem.style.removeProperty(property);
258
+ } else {
259
+ elem.style.removeAttribute(property);
260
+ }
261
+ };
262
+
263
+ var getTopMargin = function(elem) {
264
+ var elemDisplay = elem.style.display;
265
+ elem.style.left = '-9999px';
266
+ elem.style.display = 'block';
267
+
268
+ var height = elem.clientHeight;
269
+
270
+ elem.style.left = '';
271
+ elem.style.display = elemDisplay;
272
+ return ('-' + parseInt(height / 2, 10) + 'px');
273
+ };
274
+
275
+ var fadeIn = function(elem, interval) {
276
+ if (+elem.style.opacity < 1) {
277
+ interval = interval || 16;
278
+ elem.style.opacity = 0;
279
+ elem.style.display = 'block';
280
+ var last = +new Date();
281
+ var tick = function() {
282
+ var newOpacity = +elem.style.opacity + (new Date() - last) / 100;
283
+ elem.style.opacity = (newOpacity > 1) ? 1 : newOpacity;
284
+ last = +new Date();
285
+
286
+ if (+elem.style.opacity < 1) {
287
+ setTimeout(tick, interval);
288
+ }
289
+ };
290
+ tick();
291
+ }
292
+ };
293
+
294
+ var fadeOut = function(elem, interval) {
295
+ if (+elem.style.opacity > 0) {
296
+ interval = interval || 16;
297
+ var opacity = elem.style.opacity;
298
+ var last = +new Date();
299
+ var tick = function() {
300
+ var change = new Date() - last;
301
+ var newOpacity = +elem.style.opacity - change / (opacity * 100);
302
+ elem.style.opacity = newOpacity;
303
+ last = +new Date();
304
+
305
+ if (+elem.style.opacity > 0) {
306
+ setTimeout(tick, interval);
307
+ } else {
308
+ _hide(elem);
309
+ }
310
+ };
311
+ tick();
312
+ }
313
+ };
314
+
315
+ var fireClick = function(node) {
316
+ // Taken from http://www.nonobtrusive.com/2011/11/29/programatically-fire-crossbrowser-click-event-with-javascript/
317
+ // Then fixed for today's Chrome browser.
318
+ if (typeof MouseEvent === 'function') {
319
+ // Up-to-date approach
320
+ var mevt = new MouseEvent('click', {
321
+ view: window,
322
+ bubbles: false,
323
+ cancelable: true
324
+ });
325
+ node.dispatchEvent(mevt);
326
+ } else if (document.createEvent) {
327
+ // Fallback
328
+ var evt = document.createEvent('MouseEvents');
329
+ evt.initEvent('click', false, false);
330
+ node.dispatchEvent(evt);
331
+ } else if (document.createEventObject) {
332
+ node.fireEvent('onclick');
333
+ } else if (typeof node.onclick === 'function') {
334
+ node.onclick();
335
+ }
336
+ };
337
+
338
+ var stopEventPropagation = function(e) {
339
+ // In particular, make sure the space bar doesn't scroll the main window.
340
+ if (typeof e.stopPropagation === 'function') {
341
+ e.stopPropagation();
342
+ e.preventDefault();
343
+ } else if (window.event && window.event.hasOwnProperty('cancelBubble')) {
344
+ window.event.cancelBubble = true;
345
+ }
346
+ };
347
+
348
+ var animationEndEvent = (function() {
349
+ var testEl = document.createElement('div'),
350
+ transEndEventNames = {
351
+ 'WebkitAnimation': 'webkitAnimationEnd',
352
+ 'MozAnimation': 'animationend',
353
+ 'OAnimation': 'oAnimationEnd oanimationend',
354
+ 'msAnimation': 'MSAnimationEnd',
355
+ 'animation': 'animationend'
356
+ };
357
+ for (var i in transEndEventNames) {
358
+ if (transEndEventNames.hasOwnProperty(i) &&
359
+ testEl.style[i] !== undefined) {
360
+ return transEndEventNames[i];
361
+ }
362
+ }
363
+
364
+ return false;
365
+ })();
366
+
367
+
368
+ // Reset the page to its previous state
369
+ var resetPrevState = function() {
370
+ var modal = getModal();
371
+ window.onkeydown = states.previousWindowKeyDown;
372
+ if (states.previousActiveElement) {
373
+ states.previousActiveElement.focus();
374
+ }
375
+ clearTimeout(modal.timeout);
376
+
377
+ // Remove dynamically created media query
378
+ var head = document.getElementsByTagName('head')[0];
379
+ var mediaquery = document.getElementById(mediaqueryId);
380
+ if (mediaquery) {
381
+ head.removeChild(mediaquery);
382
+ }
383
+ };
384
+
385
+ var modalParams = extend({}, defaultParams);
386
+
387
+ /*
388
+ * Set type, text and actions on modal
389
+ */
390
+ var setParameters = function(params) {
391
+ var modal = getModal();
392
+
393
+ for (var param in params) {
394
+ if (!defaultParams.hasOwnProperty(param) && param !== 'extraParams') {
395
+ console.warn('SweetAlert2: Unknown parameter "' + param + '"');
396
+ }
397
+ }
398
+
399
+ // set modal width, padding and margin-left
400
+ modal.style.width = params.width + 'px';
401
+ modal.style.padding = params.padding + 'px';
402
+ modal.style.marginLeft = -params.width / 2 + 'px';
403
+ modal.style.background = params.background;
404
+
405
+ // add dynamic media query css
406
+ var head = document.getElementsByTagName('head')[0];
407
+ var cssNode = document.createElement('style');
408
+ cssNode.type = 'text/css';
409
+ cssNode.id = mediaqueryId;
410
+ var margin = 5; // %
411
+ var mediaQueryMaxWidth = params.width + parseInt(params.width * (margin/100) * 2, 10);
412
+ cssNode.innerHTML =
413
+ '@media screen and (max-width: ' + mediaQueryMaxWidth + 'px) {' +
414
+ '.' + swalClasses.modal + ' {' +
415
+ 'width: auto !important;' +
416
+ 'left: ' + margin + '% !important;' +
417
+ 'right: ' + margin + '% !important;' +
418
+ 'margin-left: 0 !important;' +
419
+ '}' +
420
+ '}';
421
+ head.appendChild(cssNode);
422
+
423
+ var $title = modal.querySelector('h2');
424
+ var $content = modal.querySelector('.' + swalClasses.content);
425
+ var $confirmBtn = getConfirmButton();
426
+ var $cancelBtn = getCancelButton();
427
+ var $spacer = modal.querySelector('.' + swalClasses.spacer);
428
+ var $closeButton = modal.querySelector('.' + swalClasses.close);
429
+
430
+ // Title
431
+ $title.innerHTML = params.title.split('\n').join('<br>');
432
+
433
+ // Content
434
+ if (params.text || params.html) {
435
+ if (typeof params.html === 'object') {
436
+ $content.innerHTML = '';
437
+ if (0 in params.html) {
438
+ for (var i = 0; i in params.html; i++) {
439
+ $content.appendChild(params.html[i]);
440
+ }
441
+ } else {
442
+ $content.appendChild(params.html);
443
+ }
444
+ } else {
445
+ $content.innerHTML = params.html || (params.text.split('\n').join('<br>'));
446
+ }
447
+ show($content);
448
+ } else {
449
+ hide($content);
450
+ }
451
+
452
+ // Close button
453
+ if (params.showCloseButton) {
454
+ show($closeButton);
455
+ } else {
456
+ hide($closeButton);
457
+ }
458
+
459
+ // Custom Class
460
+ modal.className = swalClasses.modal;
461
+ if (params.customClass) {
462
+ addClass(modal, params.customClass);
463
+ }
464
+
465
+ // Icon
466
+ hide(modal.querySelectorAll('.' + swalClasses.icon));
467
+ if (params.type) {
468
+ var validType = false;
469
+ for (var iconType in iconTypes) {
470
+ if (params.type === iconType) {
471
+ validType = true;
472
+ break;
473
+ }
474
+ }
475
+ if (!validType) {
476
+ console.error('SweetAlert2: Unknown alert type: ' + params.type);
477
+ return false;
478
+ }
479
+ var $icon = modal.querySelector('.' + swalClasses.icon + '.' + iconTypes[params.type]);
480
+ show($icon);
481
+
482
+ // Animate icon
483
+ switch (params.type) {
484
+ case 'success':
485
+ addClass($icon, 'animate');
486
+ addClass($icon.querySelector('.tip'), 'animate-success-tip');
487
+ addClass($icon.querySelector('.long'), 'animate-success-long');
488
+ break;
489
+ case 'error':
490
+ addClass($icon, 'animate-error-icon');
491
+ addClass($icon.querySelector('.x-mark'), 'animate-x-mark');
492
+ break;
493
+ case 'warning':
494
+ addClass($icon, 'pulse-warning');
495
+ break;
496
+ default:
497
+ break;
498
+ }
499
+
500
+ }
501
+
502
+ // Custom image
503
+ var $customImage = modal.querySelector('.' + swalClasses.image);
504
+ if (params.imageUrl) {
505
+ $customImage.setAttribute('src', params.imageUrl);
506
+ show($customImage);
507
+
508
+ if (params.imageWidth) {
509
+ $customImage.setAttribute('width', params.imageWidth);
510
+ } else {
511
+ $customImage.removeAttribute('width');
512
+ }
513
+
514
+ if (params.imageHeight) {
515
+ $customImage.setAttribute('height', params.imageHeight);
516
+ } else {
517
+ $customImage.removeAttribute('height');
518
+ }
519
+
520
+ if (params.imageClass) {
521
+ addClass($customImage, params.imageClass);
522
+ }
523
+ } else {
524
+ hide($customImage);
525
+ }
526
+
527
+ // Cancel button
528
+ if (params.showCancelButton) {
529
+ $cancelBtn.style.display = 'inline-block';
530
+ } else {
531
+ hide($cancelBtn);
532
+ }
533
+
534
+ // Confirm button
535
+ if (params.showConfirmButton) {
536
+ removeStyleProperty($confirmBtn, 'display');
537
+ } else {
538
+ hide($confirmBtn);
539
+ }
540
+
541
+ // Buttons spacer
542
+ if (!params.showConfirmButton && !params.showCancelButton) {
543
+ hide($spacer);
544
+ } else {
545
+ show($spacer);
546
+ }
547
+
548
+ // Edit text on cancel and confirm buttons
549
+ $confirmBtn.innerHTML = params.confirmButtonText;
550
+ $cancelBtn.innerHTML = params.cancelButtonText;
551
+
552
+ // Set buttons to selected background colors
553
+ if (params.buttonsStyling) {
554
+ $confirmBtn.style.backgroundColor = params.confirmButtonColor;
555
+ $cancelBtn.style.backgroundColor = params.cancelButtonColor;
556
+ }
557
+
558
+ // Add buttons custom classes
559
+ $confirmBtn.className = swalClasses.confirm;
560
+ addClass($confirmBtn, params.confirmButtonClass);
561
+ $cancelBtn.className = swalClasses.cancel;
562
+ addClass($cancelBtn, params.cancelButtonClass);
563
+
564
+ // Buttons styling
565
+ if (params.buttonsStyling) {
566
+ addClass($confirmBtn, 'styled');
567
+ addClass($cancelBtn, 'styled');
568
+ } else {
569
+ removeClass($confirmBtn, 'styled');
570
+ removeClass($cancelBtn, 'styled');
571
+
572
+ $confirmBtn.style.backgroundColor = $confirmBtn.style.borderLeftColor = $confirmBtn.style.borderRightColor = '';
573
+ $cancelBtn.style.backgroundColor = $cancelBtn.style.borderLeftColor = $cancelBtn.style.borderRightColor = '';
574
+ }
575
+
576
+ // CSS animation
577
+ if (params.animation === true) {
578
+ removeClass(modal, 'no-animation');
579
+ } else {
580
+ addClass(modal, 'no-animation');
581
+ }
582
+ };
583
+
584
+ /*
585
+ * Animations
586
+ */
587
+ var openModal = function(animation, onComplete) {
588
+ var modal = getModal();
589
+ if (animation) {
590
+ fadeIn(getOverlay(), 10);
591
+ addClass(modal, 'show-swal2');
592
+ removeClass(modal, 'hide-swal2');
593
+ } else {
594
+ show(getOverlay());
595
+ }
596
+ show(modal);
597
+ states.previousActiveElement = document.activeElement;
598
+ addClass(modal, 'visible');
599
+ if (onComplete !== null && typeof onComplete === 'function') {
600
+ onComplete.call(this, modal);
601
+ }
602
+ };
603
+
604
+ /*
605
+ * Set 'margin-top'-property on modal based on its computed height
606
+ */
607
+ var fixVerticalPosition = function() {
608
+ var modal = getModal();
609
+
610
+ modal.style.marginTop = getTopMargin(modal);
611
+ };
612
+
613
+ function modalDependant() {
614
+
615
+ if (arguments[0] === undefined) {
616
+ console.error('SweetAlert2 expects at least 1 attribute!');
617
+ return false;
618
+ }
619
+
620
+ var params = extend({}, modalParams);
621
+
622
+ switch (typeof arguments[0]) {
623
+
624
+ case 'string':
625
+ params.title = arguments[0];
626
+ params.text = arguments[1] || '';
627
+ params.type = arguments[2] || '';
628
+
629
+ break;
630
+
631
+ case 'object':
632
+ extend(params, arguments[0]);
633
+ params.extraParams = arguments[0].extraParams;
634
+
635
+ if (params.input === 'email' && params.inputValidator === null) {
636
+ params.inputValidator = function(email) {
637
+ return new Promise(function(resolve, reject) {
638
+ var emailRegex = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6}$/;
639
+ if (emailRegex.test(email)) {
640
+ resolve();
641
+ } else {
642
+ reject('Invalid email address');
643
+ }
644
+ });
645
+ };
646
+ }
647
+
648
+ break;
649
+
650
+ default:
651
+ console.error('SweetAlert2: Unexpected type of argument! Expected "string" or "object", got ' + typeof arguments[0]);
652
+ return false;
653
+ }
654
+
655
+ setParameters(params);
656
+
657
+ // Modal interactions
658
+ var modal = getModal();
659
+
660
+ return new Promise(function(resolve, reject) {
661
+ // Close on timer
662
+ if (params.timer) {
663
+ modal.timeout = setTimeout(function() {
664
+ sweetAlert.closeModal(params.onClose);
665
+ reject('timer');
666
+ }, params.timer);
667
+ }
668
+
669
+ var getInput = function() {
670
+ switch (params.input) {
671
+ case 'select':
672
+ return getChildByClass(modal, swalClasses.select);
673
+ case 'radio':
674
+ return modal.querySelector('.' + swalClasses.radio + ' input:checked') ||
675
+ modal.querySelector('.' + swalClasses.radio + ' input:first-child');
676
+ case 'checkbox':
677
+ return modal.querySelector('#' + swalClasses.checkbox);
678
+ case 'textarea':
679
+ return getChildByClass(modal, swalClasses.textarea);
680
+ default:
681
+ return getChildByClass(modal, swalClasses.input);
682
+ }
683
+ };
684
+ var getInputValue = function() {
685
+ var input = getInput();
686
+ switch (params.input) {
687
+ case 'checkbox':
688
+ return input.checked ? 1 : 0;
689
+ case 'radio':
690
+ return input.checked ? input.value : null;
691
+ case 'file':
692
+ return input.files.length ? input.files[0] : null;
693
+ default:
694
+ return params.inputAutoTrim? input.value.trim() : input.value;
695
+ }
696
+ };
697
+
698
+ if (params.input) {
699
+ setTimeout(function() {
700
+ var input = getInput();
701
+ if (input) {
702
+ focusInput(input);
703
+ }
704
+ }, 0);
705
+ }
706
+
707
+ var confirm = function(value) {
708
+ if (params.showLoaderOnConfirm) {
709
+ sweetAlert.showLoading();
710
+ }
711
+
712
+ if (params.preConfirm) {
713
+ params.preConfirm(value, params.extraParams).then(
714
+ function(preConfirmValue) {
715
+ sweetAlert.closeModal(params.onClose);
716
+ resolve(preConfirmValue || value);
717
+ },
718
+ function(error) {
719
+ sweetAlert.hideLoading();
720
+ if (error) {
721
+ sweetAlert.showValidationError(error);
722
+ }
723
+ }
724
+ );
725
+ } else {
726
+ sweetAlert.closeModal(params.onClose);
727
+ resolve(value);
728
+ }
729
+ };
730
+
731
+ // Mouse interactions
732
+ var onButtonEvent = function(event) {
733
+ var e = event || window.event;
734
+ var target = e.target || e.srcElement;
735
+ var confirmBtn = getConfirmButton();
736
+ var cancelBtn = getCancelButton();
737
+ var targetedConfirm = confirmBtn === target || confirmBtn.contains(target);
738
+ var targetedCancel = cancelBtn === target || cancelBtn.contains(target);
739
+ var modalIsVisible = hasClass(modal, 'visible');
740
+
741
+ switch (e.type) {
742
+ case 'mouseover':
743
+ case 'mouseup':
744
+ if (params.buttonsStyling) {
745
+ if (targetedConfirm) {
746
+ confirmBtn.style.backgroundColor = colorLuminance(params.confirmButtonColor, -0.1);
747
+ } else if (targetedCancel) {
748
+ cancelBtn.style.backgroundColor = colorLuminance(params.cancelButtonColor, -0.1);
749
+ }
750
+ }
751
+ break;
752
+ case 'mouseout':
753
+ if (params.buttonsStyling) {
754
+ if (targetedConfirm) {
755
+ confirmBtn.style.backgroundColor = params.confirmButtonColor;
756
+ } else if (targetedCancel) {
757
+ cancelBtn.style.backgroundColor = params.cancelButtonColor;
758
+ }
759
+ }
760
+ break;
761
+ case 'mousedown':
762
+ if (params.buttonsStyling) {
763
+ if (targetedConfirm) {
764
+ confirmBtn.style.backgroundColor = colorLuminance(params.confirmButtonColor, -0.2);
765
+ } else if (targetedCancel) {
766
+ cancelBtn.style.backgroundColor = colorLuminance(params.cancelButtonColor, -0.2);
767
+ }
768
+ }
769
+ break;
770
+ case 'click':
771
+ // Clicked 'confirm'
772
+ if (targetedConfirm && modalIsVisible) {
773
+ if (params.input) {
774
+ var inputValue = getInputValue();
775
+
776
+ if (params.inputValidator) {
777
+ sweetAlert.disableInput();
778
+ params.inputValidator(inputValue, params.extraParams).then(
779
+ function() {
780
+ sweetAlert.enableInput();
781
+ confirm(inputValue);
782
+ },
783
+ function(error) {
784
+ sweetAlert.enableInput();
785
+ if (error) {
786
+ sweetAlert.showValidationError(error);
787
+ }
788
+ }
789
+ );
790
+ } else {
791
+ confirm(inputValue);
792
+ }
793
+
794
+ } else {
795
+ confirm(true);
796
+ }
797
+
798
+ // Clicked 'cancel'
799
+ } else if (targetedCancel && modalIsVisible) {
800
+ sweetAlert.closeModal(params.onClose);
801
+ reject('cancel');
802
+ }
803
+
804
+ break;
805
+ default:
806
+ }
807
+ };
808
+
809
+ var $buttons = modal.querySelectorAll('button');
810
+ var i;
811
+ for (i = 0; i < $buttons.length; i++) {
812
+ $buttons[i].onclick = onButtonEvent;
813
+ $buttons[i].onmouseover = onButtonEvent;
814
+ $buttons[i].onmouseout = onButtonEvent;
815
+ $buttons[i].onmousedown = onButtonEvent;
816
+ }
817
+
818
+ // Closing modal by close button
819
+ getCloseButton().onclick = function() {
820
+ sweetAlert.closeModal(params.onClose);
821
+ reject('close');
822
+ };
823
+
824
+ // Closing modal by overlay click
825
+ getOverlay().onclick = function() {
826
+ if (params.allowOutsideClick) {
827
+ sweetAlert.closeModal(params.onClose);
828
+ reject('overlay');
829
+ }
830
+ };
831
+
832
+ var $confirmButton = getConfirmButton();
833
+ var $cancelButton = getCancelButton();
834
+ var $modalElements = [$confirmButton, $cancelButton].concat(Array.prototype.slice.call(
835
+ modal.querySelectorAll('button:not([class^=' + swalPrefix + ']), input:not([type=hidden]), textarea, select')
836
+ ));
837
+
838
+ // Reverse buttons if neede d
839
+ if (params.reverseButtons) {
840
+ $confirmButton.parentNode.insertBefore($cancelButton, $confirmButton);
841
+ }
842
+
843
+ // Focus handling
844
+ function setFocus(index, increment) {
845
+ // search for visible elements and select the next possible match
846
+ for (var i = 0; i < $modalElements.length; i++) {
847
+ index = index + increment;
848
+
849
+ // rollover to first item
850
+ if (index === $modalElements.length) {
851
+ index = 0;
852
+
853
+ // go to last item
854
+ } else if (index === -1) {
855
+ index = $modalElements.length - 1;
856
+ }
857
+
858
+ // determine if element is visible, the following is borrowed from jqeury $(elem).is(':visible') implementation
859
+ if (
860
+ $modalElements[index].offsetWidth ||
861
+ $modalElements[index].offsetHeight ||
862
+ $modalElements[index].getClientRects().length
863
+ ) {
864
+ $modalElements[index].focus();
865
+ return;
866
+ }
867
+ }
868
+ }
869
+
870
+ function handleKeyDown(event) {
871
+ var e = event || window.event;
872
+ var keyCode = e.keyCode || e.which;
873
+
874
+ if ([9, 13, 32, 27].indexOf(keyCode) === -1) {
875
+ // Don't do work on keys we don't care about.
876
+ return;
877
+ }
878
+
879
+ var $targetElement = e.target || e.srcElement;
880
+
881
+ var btnIndex = -1; // Find the button - note, this is a nodelist, not an array.
882
+ for (var i = 0; i < $modalElements.length; i++) {
883
+ if ($targetElement === $modalElements[i]) {
884
+ btnIndex = i;
885
+ break;
886
+ }
887
+ }
888
+
889
+ // TAB
890
+ if (keyCode === 9) {
891
+ if (!e.shiftKey) {
892
+ // Cycle to the next button
893
+ setFocus(btnIndex, 1);
894
+ } else {
895
+ // Cycle to the prev button
896
+ setFocus(btnIndex, -1);
897
+ }
898
+
899
+ stopEventPropagation(e);
900
+
901
+ } else {
902
+ if (keyCode === 13 || keyCode === 32) {
903
+ if (btnIndex === -1) {
904
+ // ENTER/SPACE clicked outside of a button.
905
+ fireClick($confirmButton, e);
906
+ }
907
+ } else if (keyCode === 27 && params.allowEscapeKey === true) {
908
+ sweetAlert.closeModal(params.onClose);
909
+ reject('esc');
910
+ }
911
+ }
912
+ }
913
+
914
+ states.previousWindowKeyDown = window.onkeydown;
915
+ window.onkeydown = handleKeyDown;
916
+
917
+ // Loading state
918
+ if (params.buttonsStyling) {
919
+ $confirmButton.style.borderLeftColor = params.confirmButtonColor;
920
+ $confirmButton.style.borderRightColor = params.confirmButtonColor;
921
+ }
922
+
923
+ /**
924
+ * Show spinner instead of Confirm button and disable Cancel button
925
+ */
926
+ sweetAlert.showLoading = sweetAlert.enableLoading = function() {
927
+ addClass($confirmButton, 'loading');
928
+ addClass(modal, 'loading');
929
+ $confirmButton.disabled = true;
930
+ $cancelButton.disabled = true;
931
+ };
932
+
933
+ /**
934
+ * Show spinner instead of Confirm button and disable Cancel button
935
+ */
936
+ sweetAlert.hideLoading = sweetAlert.disableLoading = function() {
937
+ removeClass($confirmButton, 'loading');
938
+ removeClass(modal, 'loading');
939
+ $confirmButton.disabled = false;
940
+ $cancelButton.disabled = false;
941
+ };
942
+
943
+ sweetAlert.enableButtons = function() {
944
+ $confirmButton.disabled = false;
945
+ $cancelButton.disabled = false;
946
+ };
947
+
948
+ sweetAlert.disableButtons = function() {
949
+ $confirmButton.disabled = true;
950
+ $cancelButton.disabled = true;
951
+ };
952
+
953
+ sweetAlert.enableConfirmButton = function() {
954
+ $confirmButton.disabled = false;
955
+ };
956
+
957
+ sweetAlert.disableConfirmButton = function() {
958
+ $confirmButton.disabled = true;
959
+ };
960
+
961
+ sweetAlert.enableInput = function() {
962
+ var input = getInput();
963
+ if (input.type === 'radio') {
964
+ var radiosContainer = input.parentNode.parentNode;
965
+ var radios = radiosContainer.querySelectorAll('input');
966
+ for (var i = 0; i < radios.length; i++) {
967
+ radios[i].disabled = false;
968
+ }
969
+ } else {
970
+ input.disabled = false;
971
+ }
972
+ };
973
+
974
+ sweetAlert.disableInput = function() {
975
+ var input = getInput();
976
+ if (input.type === 'radio') {
977
+ var radiosContainer = input.parentNode.parentNode;
978
+ var radios = radiosContainer.querySelectorAll('input');
979
+ for (var i = 0; i < radios.length; i++) {
980
+ radios[i].disabled = true;
981
+ }
982
+ } else {
983
+ input.disabled = true;
984
+ }
985
+ };
986
+
987
+ sweetAlert.showValidationError = function(error) {
988
+ var $validationError = modal.querySelector('.' + swalClasses.validationerror);
989
+ $validationError.innerHTML = error;
990
+ show($validationError);
991
+
992
+ var input = getInput();
993
+ focusInput(input);
994
+ addClass(input, 'error');
995
+ };
996
+
997
+ sweetAlert.resetValidationError = function() {
998
+ var $validationError = modal.querySelector('.' + swalClasses.validationerror);
999
+ hide($validationError);
1000
+
1001
+ var input = getInput();
1002
+ if (input) {
1003
+ removeClass(input, 'error');
1004
+ }
1005
+ };
1006
+
1007
+ sweetAlert.enableButtons();
1008
+ sweetAlert.hideLoading();
1009
+ sweetAlert.resetValidationError();
1010
+
1011
+ // input, select
1012
+ var inputTypes = ['input', 'select', 'radio', 'checkbox', 'textarea'];
1013
+ var input;
1014
+ for (i = 0; i < inputTypes.length; i++) {
1015
+ var inputClass = swalClasses[inputTypes[i]];
1016
+ input = getChildByClass(modal, inputClass);
1017
+
1018
+ // set attributes
1019
+ while (input.attributes.length > 0) {
1020
+ input.removeAttribute(input.attributes[0].name);
1021
+ }
1022
+ for (var attr in params.inputAttributes) {
1023
+ input.setAttribute(attr, params.inputAttributes[attr]);
1024
+ }
1025
+
1026
+ // set class
1027
+ input.className = inputClass;
1028
+ if (params.inputClass) {
1029
+ addClass(input, params.inputClass);
1030
+ }
1031
+
1032
+ _hide(input);
1033
+ }
1034
+
1035
+ var populateInputOptions;
1036
+ switch (params.input) {
1037
+ case 'text':
1038
+ case 'email':
1039
+ case 'password':
1040
+ case 'file':
1041
+ input = getChildByClass(modal, swalClasses.input);
1042
+ input.value = params.inputValue;
1043
+ input.placeholder = params.inputPlaceholder;
1044
+ input.type = params.input;
1045
+ _show(input);
1046
+ break;
1047
+ case 'select':
1048
+ var select = getChildByClass(modal, swalClasses.select);
1049
+ select.innerHTML = '';
1050
+ if (params.inputPlaceholder) {
1051
+ var placeholder = document.createElement('option');
1052
+ placeholder.innerHTML = params.inputPlaceholder;
1053
+ placeholder.value = '';
1054
+ placeholder.disabled = true;
1055
+ placeholder.selected = true;
1056
+ select.appendChild(placeholder);
1057
+ }
1058
+ populateInputOptions = function(inputOptions) {
1059
+ for (var optionValue in inputOptions) {
1060
+ var option = document.createElement('option');
1061
+ option.value = optionValue;
1062
+ option.innerHTML = inputOptions[optionValue];
1063
+ if (params.inputValue === optionValue) {
1064
+ option.selected = true;
1065
+ }
1066
+ select.appendChild(option);
1067
+ }
1068
+ _show(select);
1069
+ select.focus();
1070
+ };
1071
+ break;
1072
+ case 'radio':
1073
+ var radio = getChildByClass(modal, swalClasses.radio);
1074
+ radio.innerHTML = '';
1075
+ populateInputOptions = function(inputOptions) {
1076
+ for (var radioValue in inputOptions) {
1077
+ var id = 1;
1078
+ var radioInput = document.createElement('input');
1079
+ var radioLabel = document.createElement('label');
1080
+ var radioLabelSpan = document.createElement('span');
1081
+ radioInput.type = 'radio';
1082
+ radioInput.name = swalClasses.radio;
1083
+ radioInput.value = radioValue;
1084
+ radioInput.id = swalClasses.radio + '-' + (id++);
1085
+ if (params.inputValue === radioValue) {
1086
+ radioInput.checked = true;
1087
+ }
1088
+ radioLabelSpan.innerHTML = inputOptions[radioValue];
1089
+ radioLabel.appendChild(radioInput);
1090
+ radioLabel.appendChild(radioLabelSpan);
1091
+ radioLabel.for = radioInput.id;
1092
+ radio.appendChild(radioLabel);
1093
+ }
1094
+ _show(radio);
1095
+ var radios = radio.querySelectorAll('input');
1096
+ if (radios.length) {
1097
+ radios[0].focus();
1098
+ }
1099
+ };
1100
+ break;
1101
+ case 'checkbox':
1102
+ var checkbox = getChildByClass(modal, swalClasses.checkbox);
1103
+ var checkboxInput = modal.querySelector('#' + swalClasses.checkbox);
1104
+ checkboxInput.value = 1;
1105
+ checkboxInput.checked = Boolean(params.inputValue);
1106
+ var label = checkbox.getElementsByTagName('span');
1107
+ if (label.length) {
1108
+ checkbox.removeChild(label[0]);
1109
+ }
1110
+ label = document.createElement('span');
1111
+ label.innerHTML = params.inputPlaceholder;
1112
+ checkbox.appendChild(label);
1113
+ _show(checkbox);
1114
+ break;
1115
+ case 'textarea':
1116
+ var textarea = getChildByClass(modal, swalClasses.textarea);
1117
+ textarea.value = params.inputValue;
1118
+ textarea.placeholder = params.inputPlaceholder;
1119
+ _show(textarea);
1120
+ break;
1121
+ case null:
1122
+ break;
1123
+ default:
1124
+ console.error('SweetAlert2: Unexpected type of input! Expected "text" or "email" or "password", "select", "checkbox", "textarea" or "file", got "' + params.input + '"');
1125
+ break;
1126
+ }
1127
+
1128
+ if (params.input === 'select' || params.input === 'radio') {
1129
+ if (params.inputOptions instanceof Promise) {
1130
+ sweetAlert.showLoading();
1131
+ params.inputOptions.then(function(inputOptions) {
1132
+ sweetAlert.hideLoading();
1133
+ populateInputOptions(inputOptions);
1134
+ });
1135
+ } else if (typeof params.inputOptions === 'object') {
1136
+ populateInputOptions(params.inputOptions);
1137
+ } else {
1138
+ console.error('SweetAlert2: Unexpected type of inputOptions! Expected object or Promise, got ' + typeof params.inputOptions);
1139
+ }
1140
+ }
1141
+
1142
+ fixVerticalPosition();
1143
+ openModal(params.animation, params.onOpen);
1144
+
1145
+ // Focus the first element (input or button)
1146
+ setFocus(-1, 1);
1147
+ });
1148
+ }
1149
+
1150
+ // SweetAlert function
1151
+ function sweetAlert() {
1152
+ // Copy arguments to the local args variable
1153
+ var args = arguments;
1154
+ var modal = getModal();
1155
+
1156
+ if (modal === null) {
1157
+ sweetAlert.init();
1158
+ modal = getModal();
1159
+ }
1160
+
1161
+ if (hasClass(modal, 'visible')) {
1162
+ resetPrevState();
1163
+ }
1164
+
1165
+ return modalDependant.apply(this, args);
1166
+ }
1167
+
1168
+ /*
1169
+ * Global function for chaining sweetAlert modals
1170
+ */
1171
+ sweetAlert.queue = function(steps) {
1172
+ return new Promise(function(resolve, reject) {
1173
+ (function step(i, callback) {
1174
+ if (i < steps.length) {
1175
+ sweetAlert(steps[i]).then(function() {
1176
+ step(i+1, callback);
1177
+ }, function(dismiss) {
1178
+ reject(dismiss);
1179
+ });
1180
+ } else {
1181
+ resolve();
1182
+ }
1183
+ })(0);
1184
+ });
1185
+ };
1186
+
1187
+ /*
1188
+ * Global function to close sweetAlert
1189
+ */
1190
+ sweetAlert.close = sweetAlert.closeModal = function(onComplete) {
1191
+ var modal = getModal();
1192
+ removeClass(modal, 'show-swal2');
1193
+ addClass(modal, 'hide-swal2');
1194
+ removeClass(modal, 'visible');
1195
+
1196
+ // Reset icon animations
1197
+ var $successIcon = modal.querySelector('.' + swalClasses.icon + '.' + iconTypes.success);
1198
+ removeClass($successIcon, 'animate');
1199
+ removeClass($successIcon.querySelector('.tip'), 'animate-success-tip');
1200
+ removeClass($successIcon.querySelector('.long'), 'animate-success-long');
1201
+
1202
+ var $errorIcon = modal.querySelector('.' + swalClasses.icon + '.' + iconTypes.error);
1203
+ removeClass($errorIcon, 'animate-error-icon');
1204
+ removeClass($errorIcon.querySelector('.x-mark'), 'animate-x-mark');
1205
+
1206
+ var $warningIcon = modal.querySelector('.' + swalClasses.icon + '.' + iconTypes.warning);
1207
+ removeClass($warningIcon, 'pulse-warning');
1208
+
1209
+ resetPrevState();
1210
+
1211
+ if (animationEndEvent && !hasClass(modal, 'no-animation')) {
1212
+ modal.addEventListener(animationEndEvent, function swalCloseEventFinished() {
1213
+ modal.removeEventListener(animationEndEvent, swalCloseEventFinished);
1214
+ if (hasClass(modal, 'hide-swal2')) {
1215
+ _hide(modal);
1216
+ fadeOut(getOverlay(), 0);
1217
+ }
1218
+ });
1219
+ } else {
1220
+ _hide(modal);
1221
+ _hide(getOverlay());
1222
+ }
1223
+ if (onComplete !== null && typeof onComplete === 'function') {
1224
+ onComplete.call(this, modal);
1225
+ }
1226
+ };
1227
+
1228
+ /*
1229
+ * Global function to click 'Confirm' button
1230
+ */
1231
+ sweetAlert.clickConfirm = function() {
1232
+ getConfirmButton().click();
1233
+ };
1234
+
1235
+ /*
1236
+ * Global function to click 'Cancel' button
1237
+ */
1238
+ sweetAlert.clickCancel = function() {
1239
+ getCancelButton().click();
1240
+ };
1241
+
1242
+ /*
1243
+ * Add modal + overlay to DOM
1244
+ */
1245
+ sweetAlert.init = function() {
1246
+ if (typeof document === 'undefined') {
1247
+ console.log('SweetAlert2 requires document to initialize');
1248
+ return;
1249
+ } else if (document.getElementsByClassName(swalClasses.container).length) {
1250
+ return;
1251
+ }
1252
+
1253
+ var sweetWrap = document.createElement('div');
1254
+ sweetWrap.className = swalClasses.container;
1255
+
1256
+ sweetWrap.innerHTML = sweetHTML;
1257
+
1258
+ document.body.appendChild(sweetWrap);
1259
+
1260
+ var modal = getModal();
1261
+ var $input = getChildByClass(modal, swalClasses.input);
1262
+ var $select = getChildByClass(modal, swalClasses.select);
1263
+ var $checkbox = modal.querySelector('#' + swalClasses.checkbox);
1264
+ var $textarea = getChildByClass(modal, swalClasses.textarea);
1265
+
1266
+ $input.oninput = function() {
1267
+ sweetAlert.resetValidationError();
1268
+ };
1269
+
1270
+ $input.onkeyup = function(event) {
1271
+ event.stopPropagation();
1272
+ if (event.keyCode === 13) {
1273
+ sweetAlert.clickConfirm();
1274
+ }
1275
+ };
1276
+
1277
+ $select.onchange = function() {
1278
+ sweetAlert.resetValidationError();
1279
+ };
1280
+
1281
+ $checkbox.onchange = function() {
1282
+ sweetAlert.resetValidationError();
1283
+ };
1284
+
1285
+ $textarea.oninput = function() {
1286
+ sweetAlert.resetValidationError();
1287
+ };
1288
+
1289
+ window.addEventListener('resize', fixVerticalPosition, false);
1290
+ };
1291
+
1292
+ /**
1293
+ * Set default params for each popup
1294
+ * @param {Object} userParams
1295
+ */
1296
+ sweetAlert.setDefaults = function(userParams) {
1297
+ if (!userParams) {
1298
+ throw new Error('userParams is required');
1299
+ }
1300
+ if (typeof userParams !== 'object') {
1301
+ throw new Error('userParams has to be a object');
1302
+ }
1303
+
1304
+ extend(modalParams, userParams);
1305
+ };
1306
+
1307
+ /**
1308
+ * Reset default params for each popup
1309
+ */
1310
+ sweetAlert.resetDefaults = function() {
1311
+ modalParams = extend({}, defaultParams);
1312
+ };
1313
+
1314
+ sweetAlert.version = '4.0.15';
1315
+
1316
+ window.sweetAlert = window.swal = sweetAlert;
1317
+
1318
+ /*
1319
+ * If library is injected after page has loaded
1320
+ */
1321
+ (function() {
1322
+ if (document.readyState === 'complete' || document.readyState === 'interactive' && document.body) {
1323
+ sweetAlert.init();
1324
+ } else {
1325
+ document.addEventListener('DOMContentLoaded', function onDomContentLoaded() {
1326
+ document.removeEventListener('DOMContentLoaded', onDomContentLoaded, false);
1327
+ sweetAlert.init();
1328
+ }, false);
1329
+ }
1330
+ })();
1331
+
1332
+ if (typeof Promise === 'function') {
1333
+ Promise.prototype.done = function() {
1334
+ return this.catch(function() {
1335
+ // Catch promise rejections silently.
1336
+ // https://github.com/limonte/sweetalert2/issues/177
1337
+ });
1338
+ };
1339
+ }
1340
+
1341
+ return sweetAlert;
1342
+
1343
+ }));
assets/js/sweetalert2.min.js ADDED
@@ -0,0 +1 @@
 
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Sweetalert2=t()}(this,function(){"use strict";function e(){if(void 0===arguments[0])return console.error("SweetAlert2 expects at least 1 attribute!"),!1;var e=c({},H);switch(typeof arguments[0]){case"string":e.title=arguments[0],e.text=arguments[1]||"",e.type=arguments[2]||"";break;case"object":c(e,arguments[0]),e.extraParams=arguments[0].extraParams,"email"===e.input&&null===e.inputValidator&&(e.inputValidator=function(e){return new Promise(function(t,n){var o=/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6}$/;o.test(e)?t():n("Invalid email address")})});break;default:return console.error('SweetAlert2: Unexpected type of argument! Expected "string" or "object", got '+typeof arguments[0]),!1}N(e);var o=f();return new Promise(function(r,a){function l(e,t){for(var n=0;n<V.length;n++)if(e+=t,e===V.length?e=0:-1===e&&(e=V.length-1),V[e].offsetWidth||V[e].offsetHeight||V[e].getClientRects().length)return void V[e].focus()}function c(n){var o=n||window.event,i=o.keyCode||o.which;if(-1!==[9,13,32,27].indexOf(i)){for(var r=o.target||o.srcElement,c=-1,s=0;s<V.length;s++)if(r===V[s]){c=s;break}9===i?(o.shiftKey?l(c,-1):l(c,1),T(o)):13===i||32===i?-1===c&&P(M,o):27===i&&e.allowEscapeKey===!0&&(t.closeModal(e.onClose),a("esc"))}}e.timer&&(o.timeout=setTimeout(function(){t.closeModal(e.onClose),a("timer")},e.timer));var u=function(){switch(e.input){case"select":return k(o,i.select);case"radio":return o.querySelector("."+i.radio+" input:checked")||o.querySelector("."+i.radio+" input:first-child");case"checkbox":return o.querySelector("#"+i.checkbox);case"textarea":return k(o,i.textarea);default:return k(o,i.input)}},p=function(){var t=u();switch(e.input){case"checkbox":return t.checked?1:0;case"radio":return t.checked?t.value:null;case"file":return t.files.length?t.files[0]:null;default:return e.inputAutoTrim?t.value.trim():t.value}};e.input&&setTimeout(function(){var e=u();e&&g(e)},0);var f,A=function(n){e.showLoaderOnConfirm&&t.showLoading(),e.preConfirm?e.preConfirm(n,e.extraParams).then(function(o){t.closeModal(e.onClose),r(o||n)},function(e){t.hideLoading(),e&&t.showValidationError(e)}):(t.closeModal(e.onClose),r(n))},L=function(n){var i=n||window.event,r=i.target||i.srcElement,l=v(),c=y(),u=l===r||l.contains(r),d=c===r||c.contains(r),f=b(o,"visible");switch(i.type){case"mouseover":case"mouseup":e.buttonsStyling&&(u?l.style.backgroundColor=s(e.confirmButtonColor,-.1):d&&(c.style.backgroundColor=s(e.cancelButtonColor,-.1)));break;case"mouseout":e.buttonsStyling&&(u?l.style.backgroundColor=e.confirmButtonColor:d&&(c.style.backgroundColor=e.cancelButtonColor));break;case"mousedown":e.buttonsStyling&&(u?l.style.backgroundColor=s(e.confirmButtonColor,-.2):d&&(c.style.backgroundColor=s(e.cancelButtonColor,-.2)));break;case"click":if(u&&f)if(e.input){var m=p();e.inputValidator?(t.disableInput(),e.inputValidator(m,e.extraParams).then(function(){t.enableInput(),A(m)},function(e){t.enableInput(),e&&t.showValidationError(e)})):A(m)}else A(!0);else d&&f&&(t.closeModal(e.onClose),a("cancel"))}},q=o.querySelectorAll("button");for(f=0;f<q.length;f++)q[f].onclick=L,q[f].onmouseover=L,q[f].onmouseout=L,q[f].onmousedown=L;h().onclick=function(){t.closeModal(e.onClose),a("close")},m().onclick=function(){e.allowOutsideClick&&(t.closeModal(e.onClose),a("overlay"))};var M=v(),O=y(),V=[M,O].concat(Array.prototype.slice.call(o.querySelectorAll("button:not([class^="+n+"]), input:not([type=hidden]), textarea, select")));e.reverseButtons&&M.parentNode.insertBefore(O,M),d.previousWindowKeyDown=window.onkeydown,window.onkeydown=c,e.buttonsStyling&&(M.style.borderLeftColor=e.confirmButtonColor,M.style.borderRightColor=e.confirmButtonColor),t.showLoading=t.enableLoading=function(){w(M,"loading"),w(o,"loading"),M.disabled=!0,O.disabled=!0},t.hideLoading=t.disableLoading=function(){C(M,"loading"),C(o,"loading"),M.disabled=!1,O.disabled=!1},t.enableButtons=function(){M.disabled=!1,O.disabled=!1},t.disableButtons=function(){M.disabled=!0,O.disabled=!0},t.enableConfirmButton=function(){M.disabled=!1},t.disableConfirmButton=function(){M.disabled=!0},t.enableInput=function(){var e=u();if("radio"===e.type)for(var t=e.parentNode.parentNode,n=t.querySelectorAll("input"),o=0;o<n.length;o++)n[o].disabled=!1;else e.disabled=!1},t.disableInput=function(){var e=u();if("radio"===e.type)for(var t=e.parentNode.parentNode,n=t.querySelectorAll("input"),o=0;o<n.length;o++)n[o].disabled=!0;else e.disabled=!0},t.showValidationError=function(e){var t=o.querySelector("."+i.validationerror);t.innerHTML=e,E(t);var n=u();g(n),w(n,"error")},t.resetValidationError=function(){var e=o.querySelector("."+i.validationerror);B(e);var t=u();t&&C(t,"error")},t.enableButtons(),t.hideLoading(),t.resetValidationError();var H,N=["input","select","radio","checkbox","textarea"];for(f=0;f<N.length;f++){var j=i[N[f]];for(H=k(o,j);H.attributes.length>0;)H.removeAttribute(H.attributes[0].name);for(var K in e.inputAttributes)H.setAttribute(K,e.inputAttributes[K]);H.className=j,e.inputClass&&w(H,e.inputClass),S(H)}var U;switch(e.input){case"text":case"email":case"password":case"file":H=k(o,i.input),H.value=e.inputValue,H.placeholder=e.inputPlaceholder,H.type=e.input,x(H);break;case"select":var W=k(o,i.select);if(W.innerHTML="",e.inputPlaceholder){var z=document.createElement("option");z.innerHTML=e.inputPlaceholder,z.value="",z.disabled=!0,z.selected=!0,W.appendChild(z)}U=function(t){for(var n in t){var o=document.createElement("option");o.value=n,o.innerHTML=t[n],e.inputValue===n&&(o.selected=!0),W.appendChild(o)}x(W),W.focus()};break;case"radio":var R=k(o,i.radio);R.innerHTML="",U=function(t){for(var n in t){var o=1,r=document.createElement("input"),a=document.createElement("label"),l=document.createElement("span");r.type="radio",r.name=i.radio,r.value=n,r.id=i.radio+"-"+o++,e.inputValue===n&&(r.checked=!0),l.innerHTML=t[n],a.appendChild(r),a.appendChild(l),a["for"]=r.id,R.appendChild(a)}x(R);var c=R.querySelectorAll("input");c.length&&c[0].focus()};break;case"checkbox":var Z=k(o,i.checkbox),$=o.querySelector("#"+i.checkbox);$.value=1,$.checked=Boolean(e.inputValue);var _=Z.getElementsByTagName("span");_.length&&Z.removeChild(_[0]),_=document.createElement("span"),_.innerHTML=e.inputPlaceholder,Z.appendChild(_),x(Z);break;case"textarea":var F=k(o,i.textarea);F.value=e.inputValue,F.placeholder=e.inputPlaceholder,x(F);break;case null:break;default:console.error('SweetAlert2: Unexpected type of input! Expected "text" or "email" or "password", "select", "checkbox", "textarea" or "file", got "'+e.input+'"')}"select"!==e.input&&"radio"!==e.input||(e.inputOptions instanceof Promise?(t.showLoading(),e.inputOptions.then(function(e){t.hideLoading(),U(e)})):"object"==typeof e.inputOptions?U(e.inputOptions):console.error("SweetAlert2: Unexpected type of inputOptions! Expected object or Promise, got "+typeof e.inputOptions)),I(),D(e.animation,e.onOpen),l(-1,1)})}function t(){var n=arguments,o=f();return null===o&&(t.init(),o=f()),b(o,"visible")&&V(),e.apply(this,n)}var n="swal2-",o=function(e){var t={};for(var o in e)t[e[o]]=n+e[o];return t},i=o(["container","modal","overlay","close","content","spacer","confirm","cancel","icon","image","input","select","radio","checkbox","textarea","validationerror"]),r=o(["success","warning","info","question","error"]),a={title:"",text:"",html:"",type:null,animation:!0,allowOutsideClick:!0,allowEscapeKey:!0,showConfirmButton:!0,showCancelButton:!1,preConfirm:null,confirmButtonText:"OK",confirmButtonColor:"#3085d6",confirmButtonClass:null,cancelButtonText:"Cancel",cancelButtonColor:"#aaa",cancelButtonClass:null,buttonsStyling:!0,reverseButtons:!1,showCloseButton:!1,showLoaderOnConfirm:!1,imageUrl:null,imageWidth:null,imageHeight:null,imageClass:null,timer:null,width:500,padding:20,background:"#fff",input:null,inputPlaceholder:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputClass:null,inputAttributes:{},inputValidator:null,onOpen:null,onClose:null},l='<div class="'+i.overlay+'" tabIndex="-1"></div><div class="'+i.modal+'" style="display: none" tabIndex="-1"><div class="'+i.icon+" "+r.error+'"><span class="x-mark"><span class="line left"></span><span class="line right"></span></span></div><div class="'+i.icon+" "+r.question+'">?</div><div class="'+i.icon+" "+r.warning+'">!</div><div class="'+i.icon+" "+r.info+'">i</div><div class="'+i.icon+" "+r.success+'"><span class="line tip"></span> <span class="line long"></span><div class="placeholder"></div> <div class="fix"></div></div><img class="'+i.image+'"><h2></h2><div class="'+i.content+'"></div><input class="'+i.input+'"><select class="'+i.select+'"></select><div class="'+i.radio+'"></div><label for="'+i.checkbox+'" class="'+i.checkbox+'"><input type="checkbox" id="'+i.checkbox+'"></label><textarea class="'+i.textarea+'"></textarea><div class="'+i.validationerror+'"></div><hr class="'+i.spacer+'"><button class="'+i.confirm+'">OK</button><button class="'+i.cancel+'">Cancel</button><span class="'+i.close+'">&times;</span></div>',c=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},s=function(e,t){e=String(e).replace(/[^0-9a-f]/gi,""),e.length<6&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),t=t||0;for(var n="#",o=0;3>o;o++){var i=parseInt(e.substr(2*o,2),16);i=Math.round(Math.min(Math.max(0,i+i*t),255)).toString(16),n+=("00"+i).substr(i.length)}return n},u=n+"mediaquery",d={previousWindowKeyDown:null,previousActiveElement:null},p=function(e){return document.querySelector("."+e)},f=function(){return p(i.modal)},m=function(){return p(i.overlay)},v=function(){return p(i.confirm)},y=function(){return p(i.cancel)},h=function(){return p(i.close)},b=function(e,t){return e.classList.contains(t)},g=function(e){e.focus();var t=e.value;e.value="",e.value=t},w=function(e,t){if(e&&t){var n=t.split(/\s+/);n.forEach(function(t){e.classList.add(t)})}},C=function(e,t){if(e&&t){var n=t.split(/\s+/);n.forEach(function(t){e.classList.remove(t)})}},k=function(e,t){for(var n=0;n<e.childNodes.length;n++)if(b(e.childNodes[n],t))return e.childNodes[n]},x=function(e){e.style.opacity="",e.style.display="block"},E=function(e){if(e&&!e.length)return x(e);for(var t=0;t<e.length;++t)x(e[t])},S=function(e){e.style.opacity="",e.style.display="none"},B=function(e){if(e&&!e.length)return S(e);for(var t=0;t<e.length;++t)S(e[t])},A=function(e,t){e.style.removeProperty?e.style.removeProperty(t):e.style.removeAttribute(t)},L=function(e){var t=e.style.display;e.style.left="-9999px",e.style.display="block";var n=e.clientHeight;return e.style.left="",e.style.display=t,"-"+parseInt(n/2,10)+"px"},q=function(e,t){if(+e.style.opacity<1){t=t||16,e.style.opacity=0,e.style.display="block";var n=+new Date,o=function(){var i=+e.style.opacity+(new Date-n)/100;e.style.opacity=i>1?1:i,n=+new Date,+e.style.opacity<1&&setTimeout(o,t)};o()}},M=function(e,t){if(+e.style.opacity>0){t=t||16;var n=e.style.opacity,o=+new Date,i=function(){var r=new Date-o,a=+e.style.opacity-r/(100*n);e.style.opacity=a,o=+new Date,+e.style.opacity>0?setTimeout(i,t):S(e)};i()}},P=function(e){if("function"==typeof MouseEvent){var t=new MouseEvent("click",{view:window,bubbles:!1,cancelable:!0});e.dispatchEvent(t)}else if(document.createEvent){var n=document.createEvent("MouseEvents");n.initEvent("click",!1,!1),e.dispatchEvent(n)}else document.createEventObject?e.fireEvent("onclick"):"function"==typeof e.onclick&&e.onclick()},T=function(e){"function"==typeof e.stopPropagation?(e.stopPropagation(),e.preventDefault()):window.event&&window.event.hasOwnProperty("cancelBubble")&&(window.event.cancelBubble=!0)},O=function(){var e=document.createElement("div"),t={WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd oanimationend",msAnimation:"MSAnimationEnd",animation:"animationend"};for(var n in t)if(t.hasOwnProperty(n)&&void 0!==e.style[n])return t[n];return!1}(),V=function(){var e=f();window.onkeydown=d.previousWindowKeyDown,d.previousActiveElement&&d.previousActiveElement.focus(),clearTimeout(e.timeout);var t=document.getElementsByTagName("head")[0],n=document.getElementById(u);n&&t.removeChild(n)},H=c({},a),N=function(e){var t=f();for(var n in e)a.hasOwnProperty(n)||"extraParams"===n||console.warn('SweetAlert2: Unknown parameter "'+n+'"');t.style.width=e.width+"px",t.style.padding=e.padding+"px",t.style.marginLeft=-e.width/2+"px",t.style.background=e.background;var o=document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css",l.id=u;var c=5,s=e.width+parseInt(e.width*(c/100)*2,10);l.innerHTML="@media screen and (max-width: "+s+"px) {."+i.modal+" {width: auto !important;left: "+c+"% !important;right: "+c+"% !important;margin-left: 0 !important;}}",o.appendChild(l);var d=t.querySelector("h2"),p=t.querySelector("."+i.content),m=v(),h=y(),b=t.querySelector("."+i.spacer),g=t.querySelector("."+i.close);if(d.innerHTML=e.title.split("\n").join("<br>"),e.text||e.html){if("object"==typeof e.html)if(p.innerHTML="",0 in e.html)for(var k=0;k in e.html;k++)p.appendChild(e.html[k]);else p.appendChild(e.html);else p.innerHTML=e.html||e.text.split("\n").join("<br>");E(p)}else B(p);if(e.showCloseButton?E(g):B(g),t.className=i.modal,e.customClass&&w(t,e.customClass),B(t.querySelectorAll("."+i.icon)),e.type){var x=!1;for(var S in r)if(e.type===S){x=!0;break}if(!x)return console.error("SweetAlert2: Unknown alert type: "+e.type),!1;var L=t.querySelector("."+i.icon+"."+r[e.type]);switch(E(L),e.type){case"success":w(L,"animate"),w(L.querySelector(".tip"),"animate-success-tip"),w(L.querySelector(".long"),"animate-success-long");break;case"error":w(L,"animate-error-icon"),w(L.querySelector(".x-mark"),"animate-x-mark");break;case"warning":w(L,"pulse-warning")}}var q=t.querySelector("."+i.image);e.imageUrl?(q.setAttribute("src",e.imageUrl),E(q),e.imageWidth?q.setAttribute("width",e.imageWidth):q.removeAttribute("width"),e.imageHeight?q.setAttribute("height",e.imageHeight):q.removeAttribute("height"),e.imageClass&&w(q,e.imageClass)):B(q),e.showCancelButton?h.style.display="inline-block":B(h),e.showConfirmButton?A(m,"display"):B(m),e.showConfirmButton||e.showCancelButton?E(b):B(b),m.innerHTML=e.confirmButtonText,h.innerHTML=e.cancelButtonText,e.buttonsStyling&&(m.style.backgroundColor=e.confirmButtonColor,h.style.backgroundColor=e.cancelButtonColor),m.className=i.confirm,w(m,e.confirmButtonClass),h.className=i.cancel,w(h,e.cancelButtonClass),e.buttonsStyling?(w(m,"styled"),w(h,"styled")):(C(m,"styled"),C(h,"styled"),m.style.backgroundColor=m.style.borderLeftColor=m.style.borderRightColor="",h.style.backgroundColor=h.style.borderLeftColor=h.style.borderRightColor=""),e.animation===!0?C(t,"no-animation"):w(t,"no-animation")},D=function(e,t){var n=f();e?(q(m(),10),w(n,"show-swal2"),C(n,"hide-swal2")):E(m()),E(n),d.previousActiveElement=document.activeElement,w(n,"visible"),null!==t&&"function"==typeof t&&t.call(this,n)},I=function(){var e=f();e.style.marginTop=L(e)};return t.queue=function(e){return new Promise(function(n,o){!function i(r,a){r<e.length?t(e[r]).then(function(){i(r+1,a)},function(e){o(e)}):n()}(0)})},t.close=t.closeModal=function(e){var t=f();C(t,"show-swal2"),w(t,"hide-swal2"),C(t,"visible");var n=t.querySelector("."+i.icon+"."+r.success);C(n,"animate"),C(n.querySelector(".tip"),"animate-success-tip"),C(n.querySelector(".long"),"animate-success-long");var o=t.querySelector("."+i.icon+"."+r.error);C(o,"animate-error-icon"),C(o.querySelector(".x-mark"),"animate-x-mark");var a=t.querySelector("."+i.icon+"."+r.warning);C(a,"pulse-warning"),V(),O&&!b(t,"no-animation")?t.addEventListener(O,function l(){t.removeEventListener(O,l),b(t,"hide-swal2")&&(S(t),M(m(),0))}):(S(t),S(m())),null!==e&&"function"==typeof e&&e.call(this,t)},t.clickConfirm=function(){v().click()},t.clickCancel=function(){y().click()},t.init=function(){if("undefined"==typeof document)return void console.log("SweetAlert2 requires document to initialize");if(!document.getElementsByClassName(i.container).length){var e=document.createElement("div");e.className=i.container,e.innerHTML=l,document.body.appendChild(e);var n=f(),o=k(n,i.input),r=k(n,i.select),a=n.querySelector("#"+i.checkbox),c=k(n,i.textarea);o.oninput=function(){t.resetValidationError()},o.onkeyup=function(e){e.stopPropagation(),13===e.keyCode&&t.clickConfirm()},r.onchange=function(){t.resetValidationError()},a.onchange=function(){t.resetValidationError()},c.oninput=function(){t.resetValidationError()},window.addEventListener("resize",I,!1)}},t.setDefaults=function(e){if(!e)throw new Error("userParams is required");if("object"!=typeof e)throw new Error("userParams has to be a object");c(H,e)},t.resetDefaults=function(){H=c({},a)},t.version="4.0.15",window.sweetAlert=window.swal=t,function(){"complete"===document.readyState||"interactive"===document.readyState&&document.body?t.init():document.addEventListener("DOMContentLoaded",function e(){document.removeEventListener("DOMContentLoaded",e,!1),t.init()},!1)}(),"function"==typeof Promise&&(Promise.prototype.done=function(){return this["catch"](function(){})}),t});
imagify.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Imagify
4
  Plugin URI: https://wordpress.org/plugins/imagify/
5
  Description: Dramaticaly reduce image file sizes without losing quality, make your website load faster, boost your SEO and save money on your bandwith using Imagify, the new most advanced image optimization tool.
6
- Version: 1.5.5
7
  Author: WP Media
8
  Author URI: http://wp-media.me
9
  Licence: GPLv2
@@ -17,7 +17,7 @@ Copyright 2016 WP Media
17
  defined( 'ABSPATH' ) or die( 'Cheatin\' uh?' );
18
 
19
  // Imagify defines
20
- define( 'IMAGIFY_VERSION' , '1.5.5' );
21
  define( 'IMAGIFY_SLUG' , 'imagify' );
22
  define( 'IMAGIFY_SETTINGS_SLUG' , IMAGIFY_SLUG . '_settings' );
23
  define( 'IMAGIFY_WEB_MAIN' , 'https://imagify.io' );
3
  Plugin Name: Imagify
4
  Plugin URI: https://wordpress.org/plugins/imagify/
5
  Description: Dramaticaly reduce image file sizes without losing quality, make your website load faster, boost your SEO and save money on your bandwith using Imagify, the new most advanced image optimization tool.
6
+ Version: 1.5.6
7
  Author: WP Media
8
  Author URI: http://wp-media.me
9
  Licence: GPLv2
17
  defined( 'ABSPATH' ) or die( 'Cheatin\' uh?' );
18
 
19
  // Imagify defines
20
+ define( 'IMAGIFY_VERSION' , '1.5.6' );
21
  define( 'IMAGIFY_SLUG' , 'imagify' );
22
  define( 'IMAGIFY_SETTINGS_SLUG' , IMAGIFY_SLUG . '_settings' );
23
  define( 'IMAGIFY_WEB_MAIN' , 'https://imagify.io' );
inc/admin/enqueue.php CHANGED
@@ -22,7 +22,7 @@ function _imagify_admin_print_styles() {
22
 
23
  wp_register_style(
24
  'imagify-css-sweetalert',
25
- IMAGIFY_ASSETS_CSS_URL . 'sweetalert' . $css_ext,
26
  array(),
27
  IMAGIFY_VERSION
28
  );
@@ -68,7 +68,7 @@ function _imagify_admin_print_styles() {
68
 
69
  wp_register_script(
70
  'imagify-js-sweetalert',
71
- IMAGIFY_ASSETS_JS_URL . 'sweetalert.min.js',
72
  array( 'jquery' ),
73
  IMAGIFY_VERSION,
74
  true
22
 
23
  wp_register_style(
24
  'imagify-css-sweetalert',
25
+ IMAGIFY_ASSETS_CSS_URL . 'sweetalert2' . $css_ext,
26
  array(),
27
  IMAGIFY_VERSION
28
  );
68
 
69
  wp_register_script(
70
  'imagify-js-sweetalert',
71
+ IMAGIFY_ASSETS_JS_URL . 'sweetalert2' . $js_ext,
72
  array( 'jquery' ),
73
  IMAGIFY_VERSION,
74
  true
inc/admin/ui/bulk.php CHANGED
@@ -217,7 +217,7 @@ function _imagify_display_bulk_page() {
217
  </p>
218
  </div>
219
  <div class="imagify-cell imagify-pl0">
220
- <p class="imagify-info-block"><?php printf( __( 'All images greater than %s will be optimized when using a paying monthly plan.', 'imagify' ), size_format( 5000000 ) ); ?></p>
221
  </div>
222
  </div>
223
  </div>
217
  </p>
218
  </div>
219
  <div class="imagify-cell imagify-pl0">
220
+ <p class="imagify-info-block"><?php printf( __( 'All images greater than %s will be optimized when using a paying monthly plan.', 'imagify' ), size_format( get_imagify_max_image_size() ) ); ?></p>
221
  </div>
222
  </div>
223
  </div>
inc/api/imagify.php CHANGED
@@ -89,6 +89,22 @@ function get_imagify_packs_prices() {
89
  return Imagify()->getPacksPrices();
90
  }
91
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
92
  /**
93
  * Imagify.io API for WordPress
94
  */
@@ -287,6 +303,15 @@ class Imagify {
287
  return $this->httpCall( 'pricing/pack/' );
288
  }
289
 
 
 
 
 
 
 
 
 
 
290
  /**
291
  * Make an HTTP call using curl.
292
  *
89
  return Imagify()->getPacksPrices();
90
  }
91
 
92
+ /**
93
+ * Get Maximum image size for free plan
94
+ *
95
+ * @return string
96
+ * @since 1.5.6
97
+ * @author Remy Perona
98
+ **/
99
+ function get_imagify_max_image_size() {
100
+ if ( false === ( $max_image_size = get_transient( 'imagify_max_image_size' ) ) ) {
101
+ $max_image_size = Imagify()->getPublicInfo()->max_image_size;
102
+ set_transient( 'imagify_max_image_size', $max_image_size, 6 * HOUR_IN_SECONDS );
103
+ }
104
+
105
+ return $max_image_size;
106
+ }
107
+
108
  /**
109
  * Imagify.io API for WordPress
110
  */
303
  return $this->httpCall( 'pricing/pack/' );
304
  }
305
 
306
+ /**
307
+ * Get Public Info
308
+ *
309
+ * @return object
310
+ */
311
+ public function getPublicInfo() {
312
+ return $this->httpCall( 'public-info' );
313
+ }
314
+
315
  /**
316
  * Make an HTTP call using curl.
317
  *
inc/functions/i18n.php CHANGED
@@ -27,6 +27,7 @@ function get_imagify_localize_script_translations( $context ) {
27
  'saveApiKeyText' => __( 'Paste your API key below:', 'imagify' ),
28
  'saveApiKeyConfirmButtonText' => __( 'Connect me', 'imagify' ),
29
  'waitApiKeyCheckText' => __( 'Check in progress...', 'imagify' ),
 
30
  'ApiKeyCheckSuccessTitle' => __( 'Congratulations!', 'imagify' ),
31
  'ApiKeyCheckSuccessText' => __( 'Your API key is valid. You can now configure the Imagify settings to optimize your images.', 'imagify' ),
32
  'ValidApiKeyText' => __( 'Your API key is valid.', 'imagify' ),
27
  'saveApiKeyText' => __( 'Paste your API key below:', 'imagify' ),
28
  'saveApiKeyConfirmButtonText' => __( 'Connect me', 'imagify' ),
29
  'waitApiKeyCheckText' => __( 'Check in progress...', 'imagify' ),
30
+ 'ApiKeyErrorEmpty' => __( 'You need to specify your api key!', 'imagify' ),
31
  'ApiKeyCheckSuccessTitle' => __( 'Congratulations!', 'imagify' ),
32
  'ApiKeyCheckSuccessText' => __( 'Your API key is valid. You can now configure the Imagify settings to optimize your images.', 'imagify' ),
33
  'ValidApiKeyText' => __( 'Your API key is valid.', 'imagify' ),
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: wp_media
3
  Tags: compress image, images, performance, optimization, photos, upload, resize, gif, png, jpg, reduce image size, retina
4
  Requires at least: 3.7.0
5
- Tested up to: 4.5.3
6
- Stable tag: 1.5.5
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -135,6 +135,10 @@ When the plugin is disabled, your existing images remain optimized. Backups of t
135
  3. Media Page
136
 
137
  == Changelog ==
 
 
 
 
138
 
139
  = 1.5.5 =
140
  * Bug Fix
2
  Contributors: wp_media
3
  Tags: compress image, images, performance, optimization, photos, upload, resize, gif, png, jpg, reduce image size, retina
4
  Requires at least: 3.7.0
5
+ Tested up to: 4.6
6
+ Stable tag: 1.5.6
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
135
  3. Media Page
136
 
137
  == Changelog ==
138
+ = 1.5.6 =
139
+ * Improvement
140
+ * Dynamically update from the API the maximum image size allowed in bulk optimization
141
+ * Updated SweetAlert to SweetAlert2
142
 
143
  = 1.5.5 =
144
  * Bug Fix
uninstall.php CHANGED
@@ -9,6 +9,7 @@ delete_site_option( 'imagify_settings' );
9
  delete_site_transient( 'imagify_check_licence_1' );
10
  delete_site_transient( 'imagify_bulk_optimization_level' );
11
  delete_site_transient( 'imagify_large_library' );
 
12
 
13
  global $wpdb;
14
  // WP transients
9
  delete_site_transient( 'imagify_check_licence_1' );
10
  delete_site_transient( 'imagify_bulk_optimization_level' );
11
  delete_site_transient( 'imagify_large_library' );
12
+ delete_site_transient( 'imagify_max_image_size' );
13
 
14
  global $wpdb;
15
  // WP transients