Easy Digital Downloads - Version 2.8.4

Version Description

Download this release

Release Info

Developer cklosows
Plugin Icon 128x128 Easy Digital Downloads
Version 2.8.4
Comparing to
See all releases

Code changes from version 2.8.3 to 2.8.4

assets/css/edd-admin.css CHANGED
@@ -471,9 +471,10 @@ input[class*="edd-price-field"] {
471
  min-width: 100%;
472
  }
473
  #edd_product_notes_field {
474
- margin: 0;
475
- width: 98%;
476
  height: 4em;
 
477
  }
478
 
479
  /* still used by extensions - Software Licensing upgrade paths, Custom Prices */
471
  min-width: 100%;
472
  }
473
  #edd_product_notes_field {
474
+ display: block;
475
+ margin: 12px 0 0;
476
  height: 4em;
477
+ width: 100%;
478
  }
479
 
480
  /* still used by extensions - Software Licensing upgrade paths, Custom Prices */
assets/css/edd-admin.min.css CHANGED
@@ -1 +1 @@
1
- #edd-payment-date-filters input,.edd-mobile-link{vertical-align:middle}.edd-hidden{display:none}.edd-clearfix:after{content:".";display:block;height:0;text-indent:-9999px;visibility:hidden}.edd-wrap a{text-decoration:none}a.edd-delete{color:#a00}a.edd-delete:hover{color:red}.download_page_edd-settings .form-table label{color:#666;font-size:14px;font-style:italic;margin:4px 0 0}.download_page_edd-settings .form-table input.small-text~label,.download_page_edd-settings .form-table input[type=checkbox]+label{display:inline}.download_page_edd-settings .form-table tr>th>h3,.download_page_edd-settings .form-table tr>th>strong{font-size:1.2em;font-weight:600;margin:0 auto}.edd-help-tip{cursor:help}.edd-ui-tooltip{background:#333!important;border-width:1px!important;border-radius:3px!important;box-shadow:1px 1px 2px 1px rgba(214,214,214,.5)!important;color:#dedede!important;max-width:300px!important;padding:7px!important;text-rendering:optimizeLegibility;text-shadow:none!important;z-index:9999!important}#edd-add-ons h2.nav-tab-wrapper{position:relative}#edd-add-ons h2 .button-primary,.edd-tab-span{position:absolute}.edd-tab-span{top:-6px;right:0}.edd-add-ons-footer{padding-top:10px}#edd-add-ons h2{margin:0 0 15px}#edd-add-ons .edd-extension{background:#fff;border:1px solid #ccc;float:left;padding:14px;position:relative;margin:0 15px 15px 0;width:320px;height:315px}#edd-add-ons .edd-extension h3{font-size:13px;margin:0 0 8px}#edd-add-ons .edd-extension .button-secondary{position:absolute;bottom:14px;left:14px}#edd-add-ons .edd-browse-all{clear:both;width:100%}#edd-add-ons .edd-extension .third-party{display:none}#edd-add-ons .edd-starter-package{background-color:#85c0e5;border-color:#62a9d7;color:#fff}#edd-add-ons .edd-starter-package h3{color:#fff}#edd-payment-filters p,.edd-repeatable-row-actions .toggle-custom-price-option-section{color:#777}#edd-add-ons .edd-extension .wp-post-image{width:100%;height:auto}#edd-products{height:100px;min-width:200px}#edd-add-discount input[type=checkbox],#edd-edit-discount input[type=checkbox]{width:15px}#edd-payment-filters{background:#f5f5f5;clear:both;background-image:-webkit-gradient(linear,left bottom,left top,from(#f5f5f5),to(#fafafa));background-image:-webkit-linear-gradient(bottom,#f5f5f5,#fafafa);background-image:-moz-linear-gradient(bottom,#f5f5f5,#fafafa);background-image:-o-linear-gradient(bottom,#f5f5f5,#fafafa);background-image:linear-gradient(to top,#f5f5f5,#fafafa);border-color:#dfdfdf;border-width:1px;border-style:solid;border-radius:3px;font-size:13px;line-height:2.1em;overflow:auto;padding:12px;margin:8px 0}#edd-payments-filter ul.subsubsub{margin-bottom:8px}tr.status-refunded td{background:#cecece;border-top-color:#ccc}.wp-list-table.downloads th#ID{width:80px}.wp-list-table.downloads th#details{width:130px}.wp-list-table.downloads th#date{width:140px}.wp-list-table.downloads th#user{width:130px}.edd-mobile-link{line-height:32px}.edd-mobile-link img{max-width:80%;height:auto;float:left}@media handheld,only screen and (max-width:640px){.wp-list-table.downloads th{width:auto!important}}.download_page_edd-payment-history .ui-dialog .ui-dialog-titlebar-close span{margin-left:-8px;margin-top:-8px}#edd-download-link-textarea{width:100%}.edd_files_name_label{width:225px;float:left}.edd_files_url_label{width:220px;float:left}#postbox-container-1 .edd_files_name_label,#postbox-container-1 .edd_files_url_label{width:80px}.edd-add-repeatable-row{margin:10px 0}.edd-add-repeatable-row .submit{padding:0!important}.edd_repeatable_upload_wrapper:not(:first-child),.edd_variable_prices_wrapper:not(:first-child){margin-top:12px}.edd-repeatable-row-actions{color:#777;font-size:12px}.edd-repeatable-row-actions a{text-decoration:none;width:auto;cursor:pointer;vertical-align:middle}.edd-repeatable-row-actions .toggle-custom-price-option-section:hover{color:#444}.edd-bundle-products-header,.edd-repeatable-row-header{clear:both;background:#f1f1f1;border:1px solid #e5e5e5}.edd-repeatable-row-header{cursor:move}.edd-bundled-product-row:after,.edd-bundled-product-row:before,.edd-repeatable-row-header:after,.edd-repeatable-row-header:before{content:'';display:table}.edd-bundled-product-row:after,.edd-repeatable-row-header:after{clear:both}.edd-repeatable-row-title{float:left;font-weight:600}.edd-admin-box .right,.edd-bundled-product-row .edd-bundled-product-actions{float:right}.edd-bundled-product-item-reorder .edd-product-file-reorder{color:#e5e5e5;font-family:dashicons;content:"\f545";font-size:18px;font-weight:300;margin-left:4px;vertical-align:top;transition:.2s color}.edd-bundled-product-item-reorder .edd-product-file-reorder:hover{color:#bbb}.edd-repeatable-row-actions,.edd-repeatable-row-title{padding:8px;box-sizing:border-box}.edd-repeatable-row-actions{float:right;text-align:right;padding:8px}.edd-bundled-product-row .edd-remove-row,.edd-repeatable-row-actions .edd-remove-row{font-size:12px;width:auto;cursor:pointer}.edd-bundled-product-row,.edd-repeatable-row-standard-fields{background:#f9f9f9;padding:8px;border-width:0 1px 1px;border-style:solid;border-color:#e5e5e5}.edd-repeatable-row-setting-label{display:block;margin-bottom:4px}.edd-repeatable-row-setting-label .edd-help-tip{display:inline-block;margin-left:4px}.edd-bundled-product-row .edd-bundled-product-actions,.edd-bundled-product-row .edd-bundled-product-item,.edd-bundled-product-row .edd-bundled-product-item-reorder,.edd-bundled-product-row .edd-bundled-product-price-assignment,.edd-file-assignment,.edd-file-name,.edd-file-url,.edd-option-name,.edd-option-price,.edd_repeatable_default{display:inline-block;vertical-align:top}.edd-option-name{width:38%;margin-right:5%}.edd-option-price{min-width:100px}.edd_repeatable_default{text-align:center;min-width:80px}.edd-file-name{width:18%;margin-right:3%}.edd-file-url{width:65%}.edd-repeatable-row-standard-fields.has-variable-pricing .edd-file-url{width:38%;margin-right:5%}.edd-file-assignment{width:27%}.edd-file-assignment .edd-repeatable-row-setting-label{margin-bottom:0}.edd-custom-price-option-sections-wrap{display:none;border-width:0 1px 1px;border-style:solid;border-color:#e5e5e5;box-sizing:border-box;width:100%}.edd-custom-price-option-section{display:block;padding:10px 8px;border-bottom:1px solid rgba(222,222,222,.3)}.edd-custom-price-option-section:last-child{border-bottom:none}label.edd_prices_shipping{display:none!important}.edd-custom-price-option-section-title{display:block;font-size:14px;font-weight:600;padding:0 0 10px}.edd-custom-price-option-section>:not(.edd-custom-price-option-section-title){display:inline-block;padding-right:20px;vertical-align:top;margin-bottom:4px}.edd-custom-price-option-section>:not(.edd-custom-price-option-section-title) label{display:block;margin-bottom:2px}.edd-bundle-products-header{font-weight:600;padding:8px}.edd-bundled-product-row .edd-bundled-product-item-reorder{min-width:30px;margin-right:8px}.edd-bundled-product-row .edd-bundled-product-item-reorder .edd-product-file-reorder{font-size:20px;font-weight:300;padding:16px 4px 0;cursor:move}.edd-admin-box .label,.edd-admin-box-inside .strong{font-weight:600}.edd-bundled-product-row .edd-bundled-product-item{width:60%;margin-right:3%}.edd-bundled-product-row.has-variable-pricing .edd-bundled-product-item{width:47%}.edd-bundled-product-row .edd-bundled-product-price-assignment{width:23%;margin-right:3%}.edd_repeatable_upload_wrapper .edd_repeatable_upload_field_container{position:relative}.edd_upload_file{background:#fff;display:block;padding:2px 8px;position:absolute;top:3px;right:7px}.edd_upload_field{padding-right:8em}textarea#edd-payment-note{width:100%;height:4em;margin:0}#edd-purchased-files .row .edd-purchased-files-list-wrapper .download{line-height:1.4}#edd-purchased-files .edd-purchased-files-list-wrapper .edd-purchased-option{color:#666}input[class*=edd-price-field]{padding:3px 5px;width:75px}#edd-order-download-quantity[type=number].small-text,#edd-order-download-tax[type=text].small-text,[class*=item_] [class*=edd-payment-details-download-][type=number].small-text{height:25px}#edd-order-download-quantity[type=number].small-text,.item_price .edd-payment-details-download-quantity[type=number].small-text{width:55px}#edd-order-download-tax[type=text].small-text,.item_tax .edd-payment-details-download-item-tax[type=number].small-text{width:75px}.edd_repeatable_product_wrapper .edd-select,.edd_repeatable_upload_wrapper .pricing select{min-width:100%}#edd_product_notes_field{margin:0;width:98%;height:4em}.edd_remove_repeatable{border:none;cursor:pointer;display:inline-block;padding:0;overflow:hidden;margin:8px 0 0;text-indent:-9999px;width:10px;height:10px}.edd_remove_repeatable:active,.edd_remove_repeatable:focus,.edd_remove_repeatable:hover{background-position:-10px 0!important}#edd-edit-order-form .column{width:32%}.edd-edit-purchase-element[class*=columns-] ul li{padding-right:1%}#edd-edit-order-form .column:nth-child(2n+1),#edd-edit-order-form .columns-4 .column:nth-child(2n+1),#edd-edit-order-form .columns-5 .column:nth-child(3n+1){margin-right:0}.edd-edit-purchase-element ul li.download{width:35%}.edd-edit-purchase-element ul li.item_price{width:15%}.edd-edit-purchase-element ul li.item_price.item_quantity{width:25%}.edd-edit-purchase-element ul li.item_tax{width:15%}.edd-edit-purchase-element ul li.price{width:20%}.edd-admin-box-inside{border-bottom:1px solid #eee;clear:both;padding:3px 12px;margin:0;word-break:break-word}.rtl .edd-admin-box-inside{padding:5px 10px 5px 0}.edd-payment-fees .fee-label{color:#666;font-weight:400}.rtl .edd-admin-box .right{float:left;margin-left:10px}#edd-customer-details .actions,#edd-order-recalc-total{float:right}#edd-order-details .inside,#edd-order-update .inside{margin:0;padding:0}#edd-order-update input.edd_datepicker{width:180px}#edd-order-update input[type=number].edd-payment-time-hour,#edd-order-update input[type=number].edd-payment-time-min{width:50px}#edd-order-update .edd-tax-rate{color:#9c9c9c;font-style:italic}#edd-order-resend-receipt .inside{margin-top:11px}#edd-order-resend-receipt .edd-order-resend-receipt-addresses{margin-top:10px}.edd-admin-box-inside:last-child{border-bottom:0}#edd-edit-order-form .data-payment-key{word-break:break-all}.edd-order-update-box #major-publishing-actions .button-secondary{margin-right:10px}.edd-edit-purchase-element .edd-select-chosen{width:196px}#edd-customer-details .order-data-address input,#edd-customer-details .order-data-column p.data input,#edd-edit-order-form .column input,#edd-order-address-country-wrap select,.edd-edit-purchase-element ul{clear:both;display:block}#edd-customer-details .customer-info .column{width:49%}.edd-order-data input.small-text{margin:0}.edd-order-data input.med-text{margin:0;width:100px}#edd-order-update span.label{display:inline;width:50px}.edd-order-update-box .button-primary{margin-right:0}#edd-edit-order-form .column .description{padding-right:10px}#edd-edit-order-form .column,.edd-edit-purchase-element ul li{display:inline-block;line-height:1.4;position:relative;margin:0;vertical-align:middle}.edd-edit-purchase-element .row{padding:12px}.edd-edit-purchase-element .row:not(:last-child){border-bottom:1px solid #eee}.edd-edit-purchase-element .row:nth-child(odd):not(.header){background-color:#f9f9f9}.edd-edit-purchase-element .row.header{padding:6px 12px;font-weight:600;vertical-align:top}.edd-edit-purchase-element ul{font-size:0}.edd-edit-purchase-element ul li{font-size:13px}#edd-order-data .data span{color:#666;font-weight:600}.edd-edit-purchase-element .inside{padding:12px}.edd-edit-purchase-element .edd-purchased-download-title{font-size:14px;font-weight:500}.edd-edit-purchase-element .edd-purchased-download-actions{color:#777;line-height:1.4}.edd-edit-purchase-element .edd-purchased-download-actions .edd-purchased-download-actions-label{font-weight:500}.edd-edit-purchase-element .edd-purchased-download-actions a{color:#777;font-size:12px}.edd-edit-purchase-element .edd-purchased-download-actions a:hover{color:#444}.edd-edit-purchase-element .edd-purchased-download-actions .edd-order-remove-download{color:#a00}.edd-edit-purchase-element .edd-purchased-download-actions .edd-order-remove-download:hover{color:red}#edd_products .edd-select,.edd_repeatable_product_wrapper .edd-select,.edd_repeatable_upload_wrapper .pricing select{min-width:100%;max-width:200px}.edd_repeatable_product_wrapper td{overflow:visible}.edd-payment-details-label-mobile{display:none}@media screen and (max-width:1284px){.edd-edit-purchase-element ul li.download{padding-bottom:15px;width:100%}.edd-edit-purchase-element .edd-purchased-download-title{font-size:16px}.edd-edit-purchase-element ul li.item_price{width:22%}.edd-edit-purchase-element ul li.item_price.item_quantity{width:35%}.edd-edit-purchase-element ul li.item_tax{width:25%}.edd-edit-purchase-element ul li.price{width:20%}.edd-edit-purchase-element .edd-purchased-download-actions{padding-top:10px}.edd-add-download-to-purchase-header,.edd-purchased-files-header{display:none}.edd-payment-details-label-mobile{display:block;font-weight:500;padding-bottom:6px}}@media screen and (max-width:1024px){.edd-edit-purchase-element ul li.item_price.item_quantity{width:40%}.edd-edit-purchase-element ul li.price{width:24%}.edd-edit-purchase-element .edd-purchased-download-actions{padding-top:15px}.edd-edit-purchase-element .edd-purchased-download-actions,.edd-edit-purchase-element .edd-purchased-download-actions a{font-size:14px}}@media screen and (max-width:782px){#edd-edit-order-form .column{width:49%}.edd-edit-purchase-element ul li.item_price,.edd-edit-purchase-element ul li.item_price.item_quantity{padding-bottom:10px}.edd-edit-purchase-element ul li.item_price.item_quantity{width:35%}.edd-edit-purchase-element ul li.item_tax,.edd-edit-purchase-element ul li.price{width:20%;padding-bottom:10px}.edd-payment-details-label-mobile{font-size:14px;font-weight:500}.edd-payment-details-download-amount,.edd-price-currency{font-size:16px}.order-data-column input[type=email]{padding:6px 10px}}@media screen and (max-width:600px){.edd-edit-purchase-element ul li.item_price,.edd-edit-purchase-element ul li.item_price.item_quantity,.edd-edit-purchase-element ul li.item_tax{width:100%;padding-bottom:20px}.edd-edit-purchase-element .edd-add-download-to-purchase ul li.item_tax,.edd-edit-purchase-element ul li.price{width:100%;padding-bottom:0}.edd-edit-purchase-element .edd-add-download-to-purchase-actions{padding-top:15px}#edd-edit-order-form .column{width:100%}}#edd_product_stats .label{display:inline-block}#edd_product_stats hr{border-style:solid;border-width:1px;border-color:#ccc #fff #fff #ccc}#edd_product_stats .product-earnings-stats:before,#edd_product_stats .product-sales-stats:before{color:#82878c;font:400 20px/1 dashicons;display:inline-block;padding:0 2px 0 0;position:relative;top:0;left:-1px;speak:none;text-decoration:none!important;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#edd-item-card-wrapper a.delete,#edd-item-stats-wrapper a,.customer-edit-link a,.disconnect-user a,.wrap-licenses .edd-license-data.edd-license-expired a:hover,.wrap-licenses .edd-license-data.license-expires-soon-notice a:hover,.wrap-licenses .edd-license-data[class*=edd-license-] a:hover{text-decoration:none}#edd_product_stats .product-sales-stats:before{content:'\f174'}#edd_product_stats .product-earnings-stats:before{content:'\f239'}.edd_dashboard_widget table thead td{border-bottom:1px solid #ececec;color:#777}.edd_dashboard_widget .table_left{float:left;width:45%}.edd_dashboard_widget .table_right{float:right;width:45%}.edd_dashboard_widget .inside{font-size:12px}.edd_dashboard_widget td{padding:3px 0}.edd_dashboard_widget .b,.edd_dashboard_widget .t{line-height:1.5;vertical-align:middle}.edd_dashboard_widget .b{font-size:14px;font-family:Georgia,"Times New Roman","Bitstream Charter",Times,serif;padding-right:6px;width:auto}.edd_dashboard_widget .t{font-size:12px;padding-right:12px;color:#777;width:100%}.edd_dashboard_widget .label_heading{border-top:1px solid #ececec;color:#8f8f8f;font-family:Helvetica,Arial,sans-serif;font-size:12px;font-weight:400;display:block;padding-top:10px;margin:0 0 8px 12px}.edd_dashboard_widget .edd_dashboard_widget_subheading{border-top:1px solid #ececec;color:#8f8f8f;font-size:14px;padding-top:10px;margin:1em 0 0}.edd_dashboard_widget .edd_dashboard_widget_subheading+.table{margin:8px 0 0}.edd_dashboard_widget .edd_price_label{background:#00769c;border-radius:3px;color:#fff;font-size:10px;padding:2px 4px;margin-right:2px}.edd_dashboard_widget table{width:100%;margin-left:0;margin-bottom:1em}td.edd_order_label{width:80%}td.edd_order_price{text-align:right}@media handheld,only screen and (max-width:1000px){.edd_dashboard_widget .edd-recent-email{display:none}}#edd-dashboard-widgets-wrap .postbox h3{cursor:default}#edd-date-range-options,#edd-graphs-date-options{float:left}#edd-date-range-options span{float:left;line-height:24px;height:24px;margin-right:6px}.edd-import-export-form{position:relative}.edd-import-export-form .edd-progress{background:#ddd;position:absolute;bottom:15px;width:95%;height:15px}.edd-import-export-form .edd-progress div{background:#ccc;height:100%;width:0}.edd-import-export-form .notice-wrap{background-color:#f4f4f4;border-style:solid;border-width:1px 0;border-color:#eae9e9;padding:12px 12px 4px;overflow:auto;margin:20px -12px -23px}.edd-import-export-form .notice-wrap .spinner{margin:4px 10px 8px;float:right}.admin-color-fresh .edd-import-export-form .edd-progress div{background:#0073aa}.admin-color-light .edd-import-export-form .edd-progress div{background:#888}.admin-color-blue .edd-import-export-form .edd-progress div{background:#096484}.admin-color-coffee .edd-import-export-form .edd-progress div{background:#c7a589}.admin-color-ectoplasm .edd-import-export-form .edd-progress div{background:#a3b745}.admin-color-midnight .edd-import-export-form .edd-progress div{background:#e14d43}.admin-color-sunrise .edd-import-export-form .edd-progress div{background:#dd823b}#edd-graphs-filter label{vertical-align:inherit}#edd-graphs-filter .graph-option-section{float:left;line-height:2.5em;padding-right:5px}.edd-mix-totals{background-color:#fff;border:1px solid #e5e5e5;box-shadow:0 1px 1px rgba(0,0,0,.04);padding:10px}.edd-mix-chart{display:inline-block;width:49%;vertical-align:top}.edd-graph-notes{color:#9c9c9c}.edd-graph-notes span{display:block}.edd-pie-graph .legend{display:none}.edd-pie-legend{overflow:auto;margin-top:10px}.edd-legend-item-wrapper{color:#333;display:inline-block;font-size:8pt;padding:2px 5px 0;width:48%;height:20px}.edd-legend-color{border:1px solid #cfcfcf;display:inline-block;margin-right:5px;width:20px;height:15px}.edd-pie-legend-item{display:inline-block;vertical-align:top;width:80%}#edd_tax_rates{margin:1em 0 0}#edd_tax_rates .edd_tax_country *,#edd_tax_rates .edd_tax_state *{max-width:100%}#edd_tax_rates .edd_tax_country,#edd_tax_rates .edd_tax_state{width:180px}#edd_tax_rates .edd_tax_rate{width:80px}#edd_tax_rates th{padding:15px 10px}.wrap-licenses .form-table,.wrap-licenses caption,.wrap-licenses tbody,.wrap-licenses td,.wrap-licenses tfoot,.wrap-licenses th,.wrap-licenses thead,.wrap-licenses tr{display:block}.wrap-licenses .form-table tr{float:left;margin:0 15px 15px 0;background:#fff;border:1px solid #ccc;width:30.5%;max-width:350px;padding:14px;min-height:220px;position:relative;box-sizing:border-box}.wrap-licenses .form-table th{background:#f9f9f9;padding:14px;border-bottom:1px solid #ccc;margin:-14px -14px 20px;width:100%}.wrap-licenses .form-table td{padding:0}.wrap-licenses td input.regular-text{margin:0 0 8px;width:100%}.wrap-licenses .edd-license-data[class*=edd-license-]{position:absolute;background:#fafafa;padding:14px;border-top:1px solid #eee;margin:20px -14px -14px;min-height:67px;width:100%;bottom:14px;box-sizing:border-box}.wrap-licenses .edd-license-data[class*=edd-license-] a{color:#444}.wrap-licenses .edd-license-data.license-expires-soon-notice{background-color:#00a0d2;color:#fff;border-color:#00a0d2}.wrap-licenses .edd-license-data.edd-license-expired{background-color:#e24e4e;color:#fff;border-color:#e24e4e}.wrap-licenses .edd-license-data.edd-license-error,.wrap-licenses .edd-license-data.edd-license-invalid,.wrap-licenses .edd-license-data.edd-license-item_name_mismatch,.wrap-licenses .edd-license-data.edd-license-missing,.wrap-licenses .edd-license-data.edd-license-site_inactive{background-color:#ffebcd;border-color:#ffebcd}.wrap-licenses .edd-license-data p{font-size:13px;margin-top:0}.wrap-licenses .edd-license-data.edd-license-expired a,.wrap-licenses .edd-license-data.license-expires-soon-notice a{color:#fff}.wrap-licenses p.submit{clear:both}#system-info-textarea{background:0 0;font-family:Menlo,Monaco,monospace;display:block;overflow:auto;white-space:pre;width:800px;height:400px}#TB_window #edd-add-download:active,#TB_window #edd-add-download:focus,#TB_window #edd-add-download:hover{color:#fff}.edd-graph .y1Axis{color:#edc240!important}.edd-graph .y2Axis{color:#afd8f8!important}.download_page_edd-tools .apikeys .column-user{width:192px}.edd-select-chosen{width:100%;max-width:300px}.chosen-container-multi .chosen-choices{background-image:none;border-color:#dfdfdf;-webkit-border-radius:3px;border-radius:3px}.chosen-container-multi .chosen-choices input{border-color:#dfdfdf;height:27px!important;margin:2px}.chosen-container .chosen-drop{border-color:#aaa;-webkit-box-shadow:1px 1px 2px rgba(0,0,0,.1);box-shadow:1px 1px 2px rgba(0,0,0,.1)}.chosen-container .search-field{float:none!important}.chosen-container .search-field input{width:90%!important}.chosen-container-active .chosen-choices{border-color:#aaa;-webkit-border-top-left-radius:3px;-webkit-border-top-right-radius:3px;-webkit-border-bottom-left-radius:0;-webkit-box-shadow:1px 1px 2px rgba(0,0,0,.1);box-shadow:1px 1px 2px rgba(0,0,0,.1);border-radius:3px 3px 0 0}.download_page_edd-tools .tablenav .actions{overflow:visible}.edd_user_search_wrap{position:relative;overflow:visible}.edd_user_search_results{position:absolute;left:0;top:27px}.edd_user_search_results a.edd-ajax-user-cancel{position:absolute;right:6px;top:2px}.edd_user_search_results ul{background:#f0f0f0;border:1px solid #dfdfdf;overflow-y:scroll;padding:10px 10px 4px;margin:0;max-height:200px;width:300px}.wp-list-table .type-download .row-actions{color:#999}@media screen and (max-width:1100px){.edd-mix-chart{display:block;width:100%}.wrap-licenses .form-table tr{width:46%;max-width:none;min-height:230px}}@media screen and (max-width:782px){.post-type-download .nav-tab-wrapper a{font-size:70%;padding:2px 4px}.download_page_edd-tools .apikeys .column-user{width:80px}.license-expiration-date-notice,.license-lifetime-notice,.license-null{padding-left:0}[class^=license-] input[type=text]{margin-bottom:3px}}#edd-item-tab-wrapper-list li a,#edd-item-tab-wrapper-list li.active{display:block;padding:8px 10px 8px 6px}@media screen and (max-width:600px){.wrap-licenses .form-table tr{width:100%;min-height:230px}}#edd-item-wrapper{background:#f5f5f5;border:1px solid #e5e5e5;webkit-box-shadow:0 1px 1px rgba(0,0,0,.04);box-shadow:0 1px 1px rgba(0,0,0,.04);max-width:830px}#edd-item-wrapper:after{content:"";display:block;clear:both;visibility:hidden;font-size:0;height:0}#edd-item-tab-wrapper{float:left;width:18%;z-index:1}#edd-item-tab-wrapper-list{background:#fff;margin:0}#edd-item-tab-wrapper-list li{display:block;background-color:#eaeaea;color:#444;font-size:12px;border-bottom:1px solid #e5e5e5;margin-bottom:0;-webkit-hyphens:auto;-moz-hyphens:auto;-ms-hyphens:auto;hyphens:auto;word-wrap:break-word}#edd-item-tab-wrapper-list li.active{background-color:#fff}#edd-item-tab-wrapper-list .inactive a,#edd-item-tab-wrapper-list .inactive a:visited{background-color:#f5f5f5;color:#444;text-decoration:none}#edd-item-tab-wrapper-list .inactive a:hover{background-color:#fff}#edd-item-tab-wrapper-list .dashicons{color:#444;font-size:16px;min-width:24px;height:auto}#edd-item-card-wrapper .left{float:left}#edd-item-card-wrapper .right{float:right}#edd-item-card-wrapper input{font-weight:400}#edd-item-card-wrapper .customer-id,.customer-info .customer-name{font-size:24px;font-weight:600}#edd-item-card-wrapper{background-color:#fff;border:1px solid #e5e5e5;display:inline-block;margin-left:-1px;min-height:200px;width:700px;z-index:2}.edd-item-has-tabs #edd-item-card-wrapper{border-width:0 0 0 1px;width:82%}#edd-item-card-wrapper .customer-section{border-bottom:1px solid #eee;margin-bottom:10px;overflow:auto}#edd-item-card-wrapper .customer-section table{margin-bottom:20px}#edd-item-card-wrapper>div{padding:0 20px}#edd-item-card-wrapper>div:first-child{padding-top:20px}#edd-item-card-wrapper>div:last-child{border:none;padding-bottom:20px}#edd-item-card-wrapper .avatar-wrap{padding-right:10px;text-align:center}#edd-item-card-wrapper .customer-main-wrapper input{width:200px}#edd-item-card-wrapper .customer-address-wrapper{margin-right:25px;max-width:33%;width:202px}#edd-item-card-wrapper .customer-address-wrapper select{width:200px}#edd-item-card-wrapper .customer-info{margin-top:5px;margin-bottom:10px;min-height:185px}#edd-item-card-wrapper .info-wrapper{min-height:125px;overflow:visible}#edd-item-card-wrapper a.delete{color:red;margin-right:5px}.customer-edit-link a,.disconnect-user a{font-size:12px;font-weight:400}#customer-edit-actions{line-height:28px;margin-bottom:20px;text-align:center}#customer-edit-actions .button-secondary{margin-right:10px}#edd-item-card-wrapper .row-title{width:30%}#edd-item-card-wrapper .info-item{display:block;line-height:16px;padding-bottom:5px}#edd-item-card-wrapper .edit-item{display:none}#edd-item-card-wrapper .edd_user_search_results{left:1px;top:16px}#edd-item-card-wrapper .edd_user_search_results ul{width:200px}#edd-item-stats-wrapper{margin:0 auto;min-height:30px;text-align:center}#edd-item-stats-wrapper li{font-size:14px;float:left;line-height:22px;width:50%}#edd-item-stats-wrapper .dashicons{color:#888}#edd-item-tables-wrapper table{text-align:center;width:100%}#edd-item-tables-wrapper th{text-align:center}#edd-item-tables-wrapper .downloads tr>td:first-child,#edd-item-tables-wrapper .downloads tr>th:first-child,#edd-item-tables-wrapper .emails tr>td:first-child,#edd-item-tables-wrapper .emails tr>th:first-child{text-align:left}#edd-item-tables-wrapper .downloads tr>td:only-child,.delete-customer{text-align:center}#edd-item-tables-wrapper .emails .add-customer-email-row td{background-color:#f9f9f9;border-top:1px solid #e5e5e5}#edd-item-tables-wrapper .emails .primary-email-icon{font-size:13px;vertical-align:middle;line-height:1.5em}#edd-item-tables-wrapper .emails input{vertical-align:middle;margin:6px 0}#edd-item-tables-wrapper .emails .spinner{float:none}#edd-item-notes-wrapper{min-height:50px}.edd-item-notes-header img,.edd-item-notes-header span{font-weight:600;line-height:30px;vertical-align:middle}.customer-note-input{margin-bottom:5px;width:100%}#edd-customer-notes div:nth-of-type(even){background-color:#fcfcfc}.customer-note-wrapper{border-bottom:1px solid #f9f9f9;min-height:38px;padding:7px 0 7px 7px}.customer-note-wrapper span{display:block}.note-content-wrap{padding-top:7px}#edd-item-card-wrapper .notice-wrap{padding-left:20px;padding-right:20px;margin-left:-20px;margin-right:-20px}@media screen and (max-width:810px) and (min-width:656px){.customer-info .customer-name{font-size:16px}#edd-item-card-wrapper .widefat td,.widefat th{padding:4px 6px;max-width:100px!important;display:table-cell}}@media screen and (max-width:781px){#edd-item-card-wrapper,#edd-item-tab-wrapper{margin:0;width:100%}#edd-item-tab-wrapper-list{background:#fff;margin:0}#edd-item-tab-wrapper-list li{float:left;display:inline;font-size:14px;box-sizing:border-box;border-width:0 1px 1px 0;border-style:solid;border-color:#e5e5e5;width:33.33333%}#edd-item-tab-wrapper-list li:nth-child(3n+3){border-width:0 0 1px}#edd-item-tab-wrapper-list .dashicons{font-size:18px}.edd-item-has-tabs #edd-item-card-wrapper{border-top:1px solid #e5e5e5;border-left:0;margin-top:-1px;width:100%}}@media screen and (max-width:656px){#edd-item-card-wrapper .customer-id,.customer-info .customer-name{font-size:16px}#edd-item-card-wrapper .customer-info{min-height:220px}.edd-item-info.customer-info{position:relative}#edd-item-card-wrapper .customer-address-wrapper{float:none;position:absolute;top:84px;left:110px;max-width:200px}#edd-item-card-wrapper .customer-main-wrapper{float:none;position:absolute;left:110px}#edd-item-card-wrapper #edd-item-stats-wrapper{padding-left:0;padding-right:0}#edd-item-card-wrapper .customer-section{margin-bottom:0}#edd-item-card-wrapper .widefat td,#edd-item-card-wrapper .widefat th{padding:4px 6px;max-width:100px!important;display:table-cell;overflow:hidden}}@media screen and (max-width:480px){#edd-item-tab-wrapper-list li{width:50%}#edd-item-tab-wrapper-list li:nth-child(3n+3){border-width:0 1px 1px 0}#edd-item-tab-wrapper-list li:nth-child(even){border-width:0 0 1px}.edd-repeatable-row-actions,.edd-repeatable-row-title{text-align:left;width:100%}.edd-repeatable-row-title{padding-bottom:0}.edd-bundled-product-item-reorder,.edd-bundled-product-row .edd-bundled-product-item,.edd-bundled-product-row .edd-bundled-product-price-assignment,.edd-file-assignment,.edd-file-name,.edd-file-url,.edd-option-name,.edd-option-price,.edd_repeatable_default{float:none;text-align:left;width:100%!important;margin:10px 0}.edd-bundled-product-row .edd-bundled-product-actions{float:none}.edd-bundled-product-row .edd-bundled-product-item-reorder .edd-product-file-reorder{padding:0}}.recount-stats-controls form{display:inline}.edd-recount-stats-descriptions span{display:none;line-height:24px}
1
+ #edd-payment-date-filters input,.edd-mobile-link{vertical-align:middle}.edd-hidden{display:none}.edd-clearfix:after{content:".";display:block;height:0;text-indent:-9999px;visibility:hidden}.edd-wrap a{text-decoration:none}a.edd-delete{color:#a00}a.edd-delete:hover{color:red}.download_page_edd-settings .form-table label{color:#666;font-size:14px;font-style:italic;margin:4px 0 0}.download_page_edd-settings .form-table input.small-text~label,.download_page_edd-settings .form-table input[type=checkbox]+label{display:inline}.download_page_edd-settings .form-table tr>th>h3,.download_page_edd-settings .form-table tr>th>strong{font-size:1.2em;font-weight:600;margin:0 auto}.edd-help-tip{cursor:help}.edd-ui-tooltip{background:#333!important;border-width:1px!important;border-radius:3px!important;box-shadow:1px 1px 2px 1px rgba(214,214,214,.5)!important;color:#dedede!important;max-width:300px!important;padding:7px!important;text-rendering:optimizeLegibility;text-shadow:none!important;z-index:9999!important}#edd-add-ons h2.nav-tab-wrapper{position:relative}#edd-add-ons h2 .button-primary,.edd-tab-span{position:absolute}.edd-tab-span{top:-6px;right:0}.edd-add-ons-footer{padding-top:10px}#edd-add-ons h2{margin:0 0 15px}#edd-add-ons .edd-extension{background:#fff;border:1px solid #ccc;float:left;padding:14px;position:relative;margin:0 15px 15px 0;width:320px;height:315px}#edd-add-ons .edd-extension h3{font-size:13px;margin:0 0 8px}#edd-add-ons .edd-extension .button-secondary{position:absolute;bottom:14px;left:14px}#edd-add-ons .edd-browse-all{clear:both;width:100%}#edd-add-ons .edd-extension .third-party{display:none}#edd-add-ons .edd-starter-package{background-color:#85c0e5;border-color:#62a9d7;color:#fff}#edd-add-ons .edd-starter-package h3{color:#fff}#edd-payment-filters p,.edd-repeatable-row-actions .toggle-custom-price-option-section{color:#777}#edd-add-ons .edd-extension .wp-post-image{width:100%;height:auto}#edd-products{height:100px;min-width:200px}#edd-add-discount input[type=checkbox],#edd-edit-discount input[type=checkbox]{width:15px}#edd-payment-filters{background:#f5f5f5;clear:both;background-image:-webkit-gradient(linear,left bottom,left top,from(#f5f5f5),to(#fafafa));background-image:-webkit-linear-gradient(bottom,#f5f5f5,#fafafa);background-image:-moz-linear-gradient(bottom,#f5f5f5,#fafafa);background-image:-o-linear-gradient(bottom,#f5f5f5,#fafafa);background-image:linear-gradient(to top,#f5f5f5,#fafafa);border-color:#dfdfdf;border-width:1px;border-style:solid;border-radius:3px;font-size:13px;line-height:2.1em;overflow:auto;padding:12px;margin:8px 0}#edd-payments-filter ul.subsubsub{margin-bottom:8px}tr.status-refunded td{background:#cecece;border-top-color:#ccc}.wp-list-table.downloads th#ID{width:80px}.wp-list-table.downloads th#details{width:130px}.wp-list-table.downloads th#date{width:140px}.wp-list-table.downloads th#user{width:130px}.edd-mobile-link{line-height:32px}.edd-mobile-link img{max-width:80%;height:auto;float:left}@media handheld,only screen and (max-width:640px){.wp-list-table.downloads th{width:auto!important}}.download_page_edd-payment-history .ui-dialog .ui-dialog-titlebar-close span{margin-left:-8px;margin-top:-8px}#edd-download-link-textarea{width:100%}.edd_files_name_label{width:225px;float:left}.edd_files_url_label{width:220px;float:left}#postbox-container-1 .edd_files_name_label,#postbox-container-1 .edd_files_url_label{width:80px}.edd-add-repeatable-row{margin:10px 0}.edd-add-repeatable-row .submit{padding:0!important}.edd_repeatable_upload_wrapper:not(:first-child),.edd_variable_prices_wrapper:not(:first-child){margin-top:12px}.edd-repeatable-row-actions{color:#777;font-size:12px}.edd-repeatable-row-actions a{text-decoration:none;width:auto;cursor:pointer;vertical-align:middle}.edd-repeatable-row-actions .toggle-custom-price-option-section:hover{color:#444}.edd-bundle-products-header,.edd-repeatable-row-header{clear:both;background:#f1f1f1;border:1px solid #e5e5e5}.edd-repeatable-row-header{cursor:move}.edd-bundled-product-row:after,.edd-bundled-product-row:before,.edd-repeatable-row-header:after,.edd-repeatable-row-header:before{content:'';display:table}.edd-bundled-product-row:after,.edd-repeatable-row-header:after{clear:both}.edd-repeatable-row-title{float:left;font-weight:600}.edd-admin-box .right,.edd-bundled-product-row .edd-bundled-product-actions{float:right}.edd-bundled-product-item-reorder .edd-product-file-reorder{color:#e5e5e5;font-family:dashicons;content:"\f545";font-size:18px;font-weight:300;margin-left:4px;vertical-align:top;transition:.2s color}.edd-bundled-product-item-reorder .edd-product-file-reorder:hover{color:#bbb}.edd-repeatable-row-actions,.edd-repeatable-row-title{padding:8px;box-sizing:border-box}.edd-repeatable-row-actions{float:right;text-align:right;padding:8px}.edd-bundled-product-row .edd-remove-row,.edd-repeatable-row-actions .edd-remove-row{font-size:12px;width:auto;cursor:pointer}.edd-bundled-product-row,.edd-repeatable-row-standard-fields{background:#f9f9f9;padding:8px;border-width:0 1px 1px;border-style:solid;border-color:#e5e5e5}.edd-repeatable-row-setting-label{display:block;margin-bottom:4px}.edd-repeatable-row-setting-label .edd-help-tip{display:inline-block;margin-left:4px}.edd-bundled-product-row .edd-bundled-product-actions,.edd-bundled-product-row .edd-bundled-product-item,.edd-bundled-product-row .edd-bundled-product-item-reorder,.edd-bundled-product-row .edd-bundled-product-price-assignment,.edd-file-assignment,.edd-file-name,.edd-file-url,.edd-option-name,.edd-option-price,.edd_repeatable_default{display:inline-block;vertical-align:top}.edd-option-name{width:38%;margin-right:5%}.edd-option-price{min-width:100px}.edd_repeatable_default{text-align:center;min-width:80px}.edd-file-name{width:18%;margin-right:3%}.edd-file-url{width:65%}.edd-repeatable-row-standard-fields.has-variable-pricing .edd-file-url{width:38%;margin-right:5%}.edd-file-assignment{width:27%}.edd-file-assignment .edd-repeatable-row-setting-label{margin-bottom:0}.edd-custom-price-option-sections-wrap{display:none;border-width:0 1px 1px;border-style:solid;border-color:#e5e5e5;box-sizing:border-box;width:100%}.edd-custom-price-option-section{display:block;padding:10px 8px;border-bottom:1px solid rgba(222,222,222,.3)}.edd-custom-price-option-section:last-child{border-bottom:none}label.edd_prices_shipping{display:none!important}.edd-custom-price-option-section-title{display:block;font-size:14px;font-weight:600;padding:0 0 10px}.edd-custom-price-option-section>:not(.edd-custom-price-option-section-title){display:inline-block;padding-right:20px;vertical-align:top;margin-bottom:4px}.edd-custom-price-option-section>:not(.edd-custom-price-option-section-title) label{display:block;margin-bottom:2px}.edd-bundle-products-header{font-weight:600;padding:8px}.edd-bundled-product-row .edd-bundled-product-item-reorder{min-width:30px;margin-right:8px}.edd-bundled-product-row .edd-bundled-product-item-reorder .edd-product-file-reorder{font-size:20px;font-weight:300;padding:16px 4px 0;cursor:move}.edd-admin-box .label,.edd-admin-box-inside .strong{font-weight:600}.edd-bundled-product-row .edd-bundled-product-item{width:60%;margin-right:3%}.edd-bundled-product-row.has-variable-pricing .edd-bundled-product-item{width:47%}.edd-bundled-product-row .edd-bundled-product-price-assignment{width:23%;margin-right:3%}.edd_repeatable_upload_wrapper .edd_repeatable_upload_field_container{position:relative}.edd_upload_file{background:#fff;display:block;padding:2px 8px;position:absolute;top:3px;right:7px}.edd_upload_field{padding-right:8em}textarea#edd-payment-note{width:100%;height:4em;margin:0}#edd-purchased-files .row .edd-purchased-files-list-wrapper .download{line-height:1.4}#edd-purchased-files .edd-purchased-files-list-wrapper .edd-purchased-option{color:#666}input[class*=edd-price-field]{padding:3px 5px;width:75px}#edd-order-download-quantity[type=number].small-text,#edd-order-download-tax[type=text].small-text,[class*=item_] [class*=edd-payment-details-download-][type=number].small-text{height:25px}#edd-order-download-quantity[type=number].small-text,.item_price .edd-payment-details-download-quantity[type=number].small-text{width:55px}#edd-order-download-tax[type=text].small-text,.item_tax .edd-payment-details-download-item-tax[type=number].small-text{width:75px}.edd_repeatable_product_wrapper .edd-select,.edd_repeatable_upload_wrapper .pricing select{min-width:100%}#edd_product_notes_field{display:block;margin:12px 0 0;height:4em;width:100%}.edd_remove_repeatable{border:none;cursor:pointer;display:inline-block;padding:0;overflow:hidden;margin:8px 0 0;text-indent:-9999px;width:10px;height:10px}.edd_remove_repeatable:active,.edd_remove_repeatable:focus,.edd_remove_repeatable:hover{background-position:-10px 0!important}#edd-edit-order-form .column{width:32%}.edd-edit-purchase-element[class*=columns-] ul li{padding-right:1%}#edd-edit-order-form .column:nth-child(2n+1),#edd-edit-order-form .columns-4 .column:nth-child(2n+1),#edd-edit-order-form .columns-5 .column:nth-child(3n+1){margin-right:0}.edd-edit-purchase-element ul li.download{width:35%}.edd-edit-purchase-element ul li.item_price{width:15%}.edd-edit-purchase-element ul li.item_price.item_quantity{width:25%}.edd-edit-purchase-element ul li.item_tax{width:15%}.edd-edit-purchase-element ul li.price{width:20%}.edd-admin-box-inside{border-bottom:1px solid #eee;clear:both;padding:3px 12px;margin:0;word-break:break-word}.rtl .edd-admin-box-inside{padding:5px 10px 5px 0}.edd-payment-fees .fee-label{color:#666;font-weight:400}.rtl .edd-admin-box .right{float:left;margin-left:10px}#edd-customer-details .actions,#edd-order-recalc-total{float:right}#edd-order-details .inside,#edd-order-update .inside{margin:0;padding:0}#edd-order-update input.edd_datepicker{width:180px}#edd-order-update input[type=number].edd-payment-time-hour,#edd-order-update input[type=number].edd-payment-time-min{width:50px}#edd-order-update .edd-tax-rate{color:#9c9c9c;font-style:italic}#edd-order-resend-receipt .inside{margin-top:11px}#edd-order-resend-receipt .edd-order-resend-receipt-addresses{margin-top:10px}.edd-admin-box-inside:last-child{border-bottom:0}#edd-edit-order-form .data-payment-key{word-break:break-all}.edd-order-update-box #major-publishing-actions .button-secondary{margin-right:10px}.edd-edit-purchase-element .edd-select-chosen{width:196px}#edd-customer-details .order-data-address input,#edd-customer-details .order-data-column p.data input,#edd-edit-order-form .column input,#edd-order-address-country-wrap select,.edd-edit-purchase-element ul{clear:both;display:block}#edd-customer-details .customer-info .column{width:49%}.edd-order-data input.small-text{margin:0}.edd-order-data input.med-text{margin:0;width:100px}#edd-order-update span.label{display:inline;width:50px}.edd-order-update-box .button-primary{margin-right:0}#edd-edit-order-form .column .description{padding-right:10px}#edd-edit-order-form .column,.edd-edit-purchase-element ul li{display:inline-block;line-height:1.4;position:relative;margin:0;vertical-align:middle}.edd-edit-purchase-element .row{padding:12px}.edd-edit-purchase-element .row:not(:last-child){border-bottom:1px solid #eee}.edd-edit-purchase-element .row:nth-child(odd):not(.header){background-color:#f9f9f9}.edd-edit-purchase-element .row.header{padding:6px 12px;font-weight:600;vertical-align:top}.edd-edit-purchase-element ul{font-size:0}.edd-edit-purchase-element ul li{font-size:13px}#edd-order-data .data span{color:#666;font-weight:600}.edd-edit-purchase-element .inside{padding:12px}.edd-edit-purchase-element .edd-purchased-download-title{font-size:14px;font-weight:500}.edd-edit-purchase-element .edd-purchased-download-actions{color:#777;line-height:1.4}.edd-edit-purchase-element .edd-purchased-download-actions .edd-purchased-download-actions-label{font-weight:500}.edd-edit-purchase-element .edd-purchased-download-actions a{color:#777;font-size:12px}.edd-edit-purchase-element .edd-purchased-download-actions a:hover{color:#444}.edd-edit-purchase-element .edd-purchased-download-actions .edd-order-remove-download{color:#a00}.edd-edit-purchase-element .edd-purchased-download-actions .edd-order-remove-download:hover{color:red}#edd_products .edd-select,.edd_repeatable_product_wrapper .edd-select,.edd_repeatable_upload_wrapper .pricing select{min-width:100%;max-width:200px}.edd_repeatable_product_wrapper td{overflow:visible}.edd-payment-details-label-mobile{display:none}@media screen and (max-width:1284px){.edd-edit-purchase-element ul li.download{padding-bottom:15px;width:100%}.edd-edit-purchase-element .edd-purchased-download-title{font-size:16px}.edd-edit-purchase-element ul li.item_price{width:22%}.edd-edit-purchase-element ul li.item_price.item_quantity{width:35%}.edd-edit-purchase-element ul li.item_tax{width:25%}.edd-edit-purchase-element ul li.price{width:20%}.edd-edit-purchase-element .edd-purchased-download-actions{padding-top:10px}.edd-add-download-to-purchase-header,.edd-purchased-files-header{display:none}.edd-payment-details-label-mobile{display:block;font-weight:500;padding-bottom:6px}}@media screen and (max-width:1024px){.edd-edit-purchase-element ul li.item_price.item_quantity{width:40%}.edd-edit-purchase-element ul li.price{width:24%}.edd-edit-purchase-element .edd-purchased-download-actions{padding-top:15px}.edd-edit-purchase-element .edd-purchased-download-actions,.edd-edit-purchase-element .edd-purchased-download-actions a{font-size:14px}}@media screen and (max-width:782px){#edd-edit-order-form .column{width:49%}.edd-edit-purchase-element ul li.item_price,.edd-edit-purchase-element ul li.item_price.item_quantity{padding-bottom:10px}.edd-edit-purchase-element ul li.item_price.item_quantity{width:35%}.edd-edit-purchase-element ul li.item_tax,.edd-edit-purchase-element ul li.price{width:20%;padding-bottom:10px}.edd-payment-details-label-mobile{font-size:14px;font-weight:500}.edd-payment-details-download-amount,.edd-price-currency{font-size:16px}.order-data-column input[type=email]{padding:6px 10px}}@media screen and (max-width:600px){.edd-edit-purchase-element ul li.item_price,.edd-edit-purchase-element ul li.item_price.item_quantity,.edd-edit-purchase-element ul li.item_tax{width:100%;padding-bottom:20px}.edd-edit-purchase-element .edd-add-download-to-purchase ul li.item_tax,.edd-edit-purchase-element ul li.price{width:100%;padding-bottom:0}.edd-edit-purchase-element .edd-add-download-to-purchase-actions{padding-top:15px}#edd-edit-order-form .column{width:100%}}#edd_product_stats .label{display:inline-block}#edd_product_stats hr{border-style:solid;border-width:1px;border-color:#ccc #fff #fff #ccc}#edd_product_stats .product-earnings-stats:before,#edd_product_stats .product-sales-stats:before{color:#82878c;font:400 20px/1 dashicons;display:inline-block;padding:0 2px 0 0;position:relative;top:0;left:-1px;speak:none;text-decoration:none!important;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#edd-item-card-wrapper a.delete,#edd-item-stats-wrapper a,.customer-edit-link a,.disconnect-user a,.wrap-licenses .edd-license-data.edd-license-expired a:hover,.wrap-licenses .edd-license-data.license-expires-soon-notice a:hover,.wrap-licenses .edd-license-data[class*=edd-license-] a:hover{text-decoration:none}#edd_product_stats .product-sales-stats:before{content:'\f174'}#edd_product_stats .product-earnings-stats:before{content:'\f239'}.edd_dashboard_widget table thead td{border-bottom:1px solid #ececec;color:#777}.edd_dashboard_widget .table_left{float:left;width:45%}.edd_dashboard_widget .table_right{float:right;width:45%}.edd_dashboard_widget .inside{font-size:12px}.edd_dashboard_widget td{padding:3px 0}.edd_dashboard_widget .b,.edd_dashboard_widget .t{line-height:1.5;vertical-align:middle}.edd_dashboard_widget .b{font-size:14px;font-family:Georgia,"Times New Roman","Bitstream Charter",Times,serif;padding-right:6px;width:auto}.edd_dashboard_widget .t{font-size:12px;padding-right:12px;color:#777;width:100%}.edd_dashboard_widget .label_heading{border-top:1px solid #ececec;color:#8f8f8f;font-family:Helvetica,Arial,sans-serif;font-size:12px;font-weight:400;display:block;padding-top:10px;margin:0 0 8px 12px}.edd_dashboard_widget .edd_dashboard_widget_subheading{border-top:1px solid #ececec;color:#8f8f8f;font-size:14px;padding-top:10px;margin:1em 0 0}.edd_dashboard_widget .edd_dashboard_widget_subheading+.table{margin:8px 0 0}.edd_dashboard_widget .edd_price_label{background:#00769c;border-radius:3px;color:#fff;font-size:10px;padding:2px 4px;margin-right:2px}.edd_dashboard_widget table{width:100%;margin-left:0;margin-bottom:1em}td.edd_order_label{width:80%}td.edd_order_price{text-align:right}@media handheld,only screen and (max-width:1000px){.edd_dashboard_widget .edd-recent-email{display:none}}#edd-dashboard-widgets-wrap .postbox h3{cursor:default}#edd-date-range-options,#edd-graphs-date-options{float:left}#edd-date-range-options span{float:left;line-height:24px;height:24px;margin-right:6px}.edd-import-export-form{position:relative}.edd-import-export-form .edd-progress{background:#ddd;position:absolute;bottom:15px;width:95%;height:15px}.edd-import-export-form .edd-progress div{background:#ccc;height:100%;width:0}.edd-import-export-form .notice-wrap{background-color:#f4f4f4;border-style:solid;border-width:1px 0;border-color:#eae9e9;padding:12px 12px 4px;overflow:auto;margin:20px -12px -23px}.edd-import-export-form .notice-wrap .spinner{margin:4px 10px 8px;float:right}.admin-color-fresh .edd-import-export-form .edd-progress div{background:#0073aa}.admin-color-light .edd-import-export-form .edd-progress div{background:#888}.admin-color-blue .edd-import-export-form .edd-progress div{background:#096484}.admin-color-coffee .edd-import-export-form .edd-progress div{background:#c7a589}.admin-color-ectoplasm .edd-import-export-form .edd-progress div{background:#a3b745}.admin-color-midnight .edd-import-export-form .edd-progress div{background:#e14d43}.admin-color-sunrise .edd-import-export-form .edd-progress div{background:#dd823b}#edd-graphs-filter label{vertical-align:inherit}#edd-graphs-filter .graph-option-section{float:left;line-height:2.5em;padding-right:5px}.edd-mix-totals{background-color:#fff;border:1px solid #e5e5e5;box-shadow:0 1px 1px rgba(0,0,0,.04);padding:10px}.edd-mix-chart{display:inline-block;width:49%;vertical-align:top}.edd-graph-notes{color:#9c9c9c}.edd-graph-notes span{display:block}.edd-pie-graph .legend{display:none}.edd-pie-legend{overflow:auto;margin-top:10px}.edd-legend-item-wrapper{color:#333;display:inline-block;font-size:8pt;padding:2px 5px 0;width:48%;height:20px}.edd-legend-color{border:1px solid #cfcfcf;display:inline-block;margin-right:5px;width:20px;height:15px}.edd-pie-legend-item{display:inline-block;vertical-align:top;width:80%}#edd_tax_rates{margin:1em 0 0}#edd_tax_rates .edd_tax_country *,#edd_tax_rates .edd_tax_state *{max-width:100%}#edd_tax_rates .edd_tax_country,#edd_tax_rates .edd_tax_state{width:180px}#edd_tax_rates .edd_tax_rate{width:80px}#edd_tax_rates th{padding:15px 10px}.wrap-licenses .form-table,.wrap-licenses caption,.wrap-licenses tbody,.wrap-licenses td,.wrap-licenses tfoot,.wrap-licenses th,.wrap-licenses thead,.wrap-licenses tr{display:block}.wrap-licenses .form-table tr{float:left;margin:0 15px 15px 0;background:#fff;border:1px solid #ccc;width:30.5%;max-width:350px;padding:14px;min-height:220px;position:relative;box-sizing:border-box}.wrap-licenses .form-table th{background:#f9f9f9;padding:14px;border-bottom:1px solid #ccc;margin:-14px -14px 20px;width:100%}.wrap-licenses .form-table td{padding:0}.wrap-licenses td input.regular-text{margin:0 0 8px;width:100%}.wrap-licenses .edd-license-data[class*=edd-license-]{position:absolute;background:#fafafa;padding:14px;border-top:1px solid #eee;margin:20px -14px -14px;min-height:67px;width:100%;bottom:14px;box-sizing:border-box}.wrap-licenses .edd-license-data[class*=edd-license-] a{color:#444}.wrap-licenses .edd-license-data.license-expires-soon-notice{background-color:#00a0d2;color:#fff;border-color:#00a0d2}.wrap-licenses .edd-license-data.edd-license-expired{background-color:#e24e4e;color:#fff;border-color:#e24e4e}.wrap-licenses .edd-license-data.edd-license-error,.wrap-licenses .edd-license-data.edd-license-invalid,.wrap-licenses .edd-license-data.edd-license-item_name_mismatch,.wrap-licenses .edd-license-data.edd-license-missing,.wrap-licenses .edd-license-data.edd-license-site_inactive{background-color:#ffebcd;border-color:#ffebcd}.wrap-licenses .edd-license-data p{font-size:13px;margin-top:0}.wrap-licenses .edd-license-data.edd-license-expired a,.wrap-licenses .edd-license-data.license-expires-soon-notice a{color:#fff}.wrap-licenses p.submit{clear:both}#system-info-textarea{background:0 0;font-family:Menlo,Monaco,monospace;display:block;overflow:auto;white-space:pre;width:800px;height:400px}#TB_window #edd-add-download:active,#TB_window #edd-add-download:focus,#TB_window #edd-add-download:hover{color:#fff}.edd-graph .y1Axis{color:#edc240!important}.edd-graph .y2Axis{color:#afd8f8!important}.download_page_edd-tools .apikeys .column-user{width:192px}.edd-select-chosen{width:100%;max-width:300px}.chosen-container-multi .chosen-choices{background-image:none;border-color:#dfdfdf;-webkit-border-radius:3px;border-radius:3px}.chosen-container-multi .chosen-choices input{border-color:#dfdfdf;height:27px!important;margin:2px}.chosen-container .chosen-drop{border-color:#aaa;-webkit-box-shadow:1px 1px 2px rgba(0,0,0,.1);box-shadow:1px 1px 2px rgba(0,0,0,.1)}.chosen-container .search-field{float:none!important}.chosen-container .search-field input{width:90%!important}.chosen-container-active .chosen-choices{border-color:#aaa;-webkit-border-top-left-radius:3px;-webkit-border-top-right-radius:3px;-webkit-border-bottom-left-radius:0;-webkit-box-shadow:1px 1px 2px rgba(0,0,0,.1);box-shadow:1px 1px 2px rgba(0,0,0,.1);border-radius:3px 3px 0 0}.download_page_edd-tools .tablenav .actions{overflow:visible}.edd_user_search_wrap{position:relative;overflow:visible}.edd_user_search_results{position:absolute;left:0;top:27px}.edd_user_search_results a.edd-ajax-user-cancel{position:absolute;right:6px;top:2px}.edd_user_search_results ul{background:#f0f0f0;border:1px solid #dfdfdf;overflow-y:scroll;padding:10px 10px 4px;margin:0;max-height:200px;width:300px}.wp-list-table .type-download .row-actions{color:#999}@media screen and (max-width:1100px){.edd-mix-chart{display:block;width:100%}.wrap-licenses .form-table tr{width:46%;max-width:none;min-height:230px}}@media screen and (max-width:782px){.post-type-download .nav-tab-wrapper a{font-size:70%;padding:2px 4px}.download_page_edd-tools .apikeys .column-user{width:80px}.license-expiration-date-notice,.license-lifetime-notice,.license-null{padding-left:0}[class^=license-] input[type=text]{margin-bottom:3px}}#edd-item-tab-wrapper-list li a,#edd-item-tab-wrapper-list li.active{display:block;padding:8px 10px 8px 6px}@media screen and (max-width:600px){.wrap-licenses .form-table tr{width:100%;min-height:230px}}#edd-item-wrapper{background:#f5f5f5;border:1px solid #e5e5e5;webkit-box-shadow:0 1px 1px rgba(0,0,0,.04);box-shadow:0 1px 1px rgba(0,0,0,.04);max-width:830px}#edd-item-wrapper:after{content:"";display:block;clear:both;visibility:hidden;font-size:0;height:0}#edd-item-tab-wrapper{float:left;width:18%;z-index:1}#edd-item-tab-wrapper-list{background:#fff;margin:0}#edd-item-tab-wrapper-list li{display:block;background-color:#eaeaea;color:#444;font-size:12px;border-bottom:1px solid #e5e5e5;margin-bottom:0;-webkit-hyphens:auto;-moz-hyphens:auto;-ms-hyphens:auto;hyphens:auto;word-wrap:break-word}#edd-item-tab-wrapper-list li.active{background-color:#fff}#edd-item-tab-wrapper-list .inactive a,#edd-item-tab-wrapper-list .inactive a:visited{background-color:#f5f5f5;color:#444;text-decoration:none}#edd-item-tab-wrapper-list .inactive a:hover{background-color:#fff}#edd-item-tab-wrapper-list .dashicons{color:#444;font-size:16px;min-width:24px;height:auto}#edd-item-card-wrapper .left{float:left}#edd-item-card-wrapper .right{float:right}#edd-item-card-wrapper input{font-weight:400}#edd-item-card-wrapper .customer-id,.customer-info .customer-name{font-size:24px;font-weight:600}#edd-item-card-wrapper{background-color:#fff;border:1px solid #e5e5e5;display:inline-block;margin-left:-1px;min-height:200px;width:700px;z-index:2}.edd-item-has-tabs #edd-item-card-wrapper{border-width:0 0 0 1px;width:82%}#edd-item-card-wrapper .customer-section{border-bottom:1px solid #eee;margin-bottom:10px;overflow:auto}#edd-item-card-wrapper .customer-section table{margin-bottom:20px}#edd-item-card-wrapper>div{padding:0 20px}#edd-item-card-wrapper>div:first-child{padding-top:20px}#edd-item-card-wrapper>div:last-child{border:none;padding-bottom:20px}#edd-item-card-wrapper .avatar-wrap{padding-right:10px;text-align:center}#edd-item-card-wrapper .customer-main-wrapper input{width:200px}#edd-item-card-wrapper .customer-address-wrapper{margin-right:25px;max-width:33%;width:202px}#edd-item-card-wrapper .customer-address-wrapper select{width:200px}#edd-item-card-wrapper .customer-info{margin-top:5px;margin-bottom:10px;min-height:185px}#edd-item-card-wrapper .info-wrapper{min-height:125px;overflow:visible}#edd-item-card-wrapper a.delete{color:red;margin-right:5px}.customer-edit-link a,.disconnect-user a{font-size:12px;font-weight:400}#customer-edit-actions{line-height:28px;margin-bottom:20px;text-align:center}#customer-edit-actions .button-secondary{margin-right:10px}#edd-item-card-wrapper .row-title{width:30%}#edd-item-card-wrapper .info-item{display:block;line-height:16px;padding-bottom:5px}#edd-item-card-wrapper .edit-item{display:none}#edd-item-card-wrapper .edd_user_search_results{left:1px;top:16px}#edd-item-card-wrapper .edd_user_search_results ul{width:200px}#edd-item-stats-wrapper{margin:0 auto;min-height:30px;text-align:center}#edd-item-stats-wrapper li{font-size:14px;float:left;line-height:22px;width:50%}#edd-item-stats-wrapper .dashicons{color:#888}#edd-item-tables-wrapper table{text-align:center;width:100%}#edd-item-tables-wrapper th{text-align:center}#edd-item-tables-wrapper .downloads tr>td:first-child,#edd-item-tables-wrapper .downloads tr>th:first-child,#edd-item-tables-wrapper .emails tr>td:first-child,#edd-item-tables-wrapper .emails tr>th:first-child{text-align:left}#edd-item-tables-wrapper .downloads tr>td:only-child,.delete-customer{text-align:center}#edd-item-tables-wrapper .emails .add-customer-email-row td{background-color:#f9f9f9;border-top:1px solid #e5e5e5}#edd-item-tables-wrapper .emails .primary-email-icon{font-size:13px;vertical-align:middle;line-height:1.5em}#edd-item-tables-wrapper .emails input{vertical-align:middle;margin:6px 0}#edd-item-tables-wrapper .emails .spinner{float:none}#edd-item-notes-wrapper{min-height:50px}.edd-item-notes-header img,.edd-item-notes-header span{font-weight:600;line-height:30px;vertical-align:middle}.customer-note-input{margin-bottom:5px;width:100%}#edd-customer-notes div:nth-of-type(even){background-color:#fcfcfc}.customer-note-wrapper{border-bottom:1px solid #f9f9f9;min-height:38px;padding:7px 0 7px 7px}.customer-note-wrapper span{display:block}.note-content-wrap{padding-top:7px}#edd-item-card-wrapper .notice-wrap{padding-left:20px;padding-right:20px;margin-left:-20px;margin-right:-20px}@media screen and (max-width:810px) and (min-width:656px){.customer-info .customer-name{font-size:16px}#edd-item-card-wrapper .widefat td,.widefat th{padding:4px 6px;max-width:100px!important;display:table-cell}}@media screen and (max-width:781px){#edd-item-card-wrapper,#edd-item-tab-wrapper{margin:0;width:100%}#edd-item-tab-wrapper-list{background:#fff;margin:0}#edd-item-tab-wrapper-list li{float:left;display:inline;font-size:14px;box-sizing:border-box;border-width:0 1px 1px 0;border-style:solid;border-color:#e5e5e5;width:33.33333%}#edd-item-tab-wrapper-list li:nth-child(3n+3){border-width:0 0 1px}#edd-item-tab-wrapper-list .dashicons{font-size:18px}.edd-item-has-tabs #edd-item-card-wrapper{border-top:1px solid #e5e5e5;border-left:0;margin-top:-1px;width:100%}}@media screen and (max-width:656px){#edd-item-card-wrapper .customer-id,.customer-info .customer-name{font-size:16px}#edd-item-card-wrapper .customer-info{min-height:220px}.edd-item-info.customer-info{position:relative}#edd-item-card-wrapper .customer-address-wrapper{float:none;position:absolute;top:84px;left:110px;max-width:200px}#edd-item-card-wrapper .customer-main-wrapper{float:none;position:absolute;left:110px}#edd-item-card-wrapper #edd-item-stats-wrapper{padding-left:0;padding-right:0}#edd-item-card-wrapper .customer-section{margin-bottom:0}#edd-item-card-wrapper .widefat td,#edd-item-card-wrapper .widefat th{padding:4px 6px;max-width:100px!important;display:table-cell;overflow:hidden}}@media screen and (max-width:480px){#edd-item-tab-wrapper-list li{width:50%}#edd-item-tab-wrapper-list li:nth-child(3n+3){border-width:0 1px 1px 0}#edd-item-tab-wrapper-list li:nth-child(even){border-width:0 0 1px}.edd-repeatable-row-actions,.edd-repeatable-row-title{text-align:left;width:100%}.edd-repeatable-row-title{padding-bottom:0}.edd-bundled-product-item-reorder,.edd-bundled-product-row .edd-bundled-product-item,.edd-bundled-product-row .edd-bundled-product-price-assignment,.edd-file-assignment,.edd-file-name,.edd-file-url,.edd-option-name,.edd-option-price,.edd_repeatable_default{float:none;text-align:left;width:100%!important;margin:10px 0}.edd-bundled-product-row .edd-bundled-product-actions{float:none}.edd-bundled-product-row .edd-bundled-product-item-reorder .edd-product-file-reorder{padding:0}}.recount-stats-controls form{display:inline}.edd-recount-stats-descriptions span{display:none;line-height:24px}
assets/js/admin-scripts.js CHANGED
@@ -618,9 +618,9 @@ jQuery(document).ready(function ($) {
618
  var row = $(this).parents('ul.edd-purchased-files-list-wrapper');
619
  $( '.edd-order-payment-recalc-totals' ).show();
620
 
621
- var quantity = row.find('input.edd-payment-details-download-quantity').val();
622
- var item_price = row.find('input.edd-payment-details-download-item-price').val();
623
- var item_tax = row.find('input.edd-payment-details-download-item-tax').val();
624
 
625
  item_price = parseFloat( item_price );
626
  if ( isNaN( item_price ) ) {
618
  var row = $(this).parents('ul.edd-purchased-files-list-wrapper');
619
  $( '.edd-order-payment-recalc-totals' ).show();
620
 
621
+ var quantity = row.find('input.edd-payment-details-download-quantity').val().replace(edd_vars.thousands_separator,'');
622
+ var item_price = row.find('input.edd-payment-details-download-item-price').val().replace(edd_vars.thousands_separator,'');
623
+ var item_tax = row.find('input.edd-payment-details-download-item-tax').val().replace(edd_vars.thousands_separator,'');
624
 
625
  item_price = parseFloat( item_price );
626
  if ( isNaN( item_price ) ) {
assets/js/admin-scripts.min.js CHANGED
@@ -1,2 +1,2 @@
1
- function edd_attach_tooltips(e){e.tooltip({content:function(){return jQuery(this).prop("title")},tooltipClass:"edd-ui-tooltip",position:{my:"center top",at:"center bottom+10",collision:"flipfit"},hide:{duration:200},show:{duration:200}})}jQuery(document).ready(function(e){var t=e(".edd-help-tip");edd_attach_tooltips(t);var d={init:function(){this.add(),this.move(),this.remove(),this.type(),this.prices(),this.files(),this.updatePrices()},clone_repeatable:function(t){var d=highest=1;return t.parent().find(".edd_repeatable_row").each(function(){var t=e(this).data("key");parseInt(t)>highest&&(highest=t)}),d=highest+=1,clone=t.clone(),clone.find("select").each(function(){e(this).val(t.find('select[name="'+e(this).attr("name")+'"]').val())}),clone.removeClass("edd_add_blank"),clone.attr("data-key",d),clone.find("input, select, textarea").val("").each(function(){var t=e(this).attr("name"),a=e(this).attr("id");t&&(t=t.replace(/\[(\d+)\]/,"["+parseInt(d)+"]"),e(this).attr("name",t)),e(this).attr("data-key",d),"undefined"!=typeof a&&(a=a.replace(/(\d+)/,parseInt(d)),e(this).attr("id",a))}),clone.find("span.edd_price_id").each(function(){e(this).text(parseInt(d))}),clone.find("span.edd_file_id").each(function(){e(this).text(parseInt(d))}),clone.find(".edd_repeatable_default_input").each(function(){e(this).val(parseInt(d)).removeAttr("checked")}),clone.find(".edd_repeatable_condition_field").each(function(){e(this).find("option:eq(0)").prop("selected","selected")}),clone.find(".search-choice").remove(),clone.find(".chosen-container").remove(),edd_attach_tooltips(clone.find(".edd-help-tip")),clone},add:function(){e(document.body).on("click",".submit .edd_add_repeatable",function(t){t.preventDefault();var a=e(this),n=a.parent().parent().prev(".edd_repeatable_row"),i=d.clone_repeatable(n);i.insertAfter(n).find("input, textarea, select").filter(":visible").eq(0).focus(),i.find(".edd-select-chosen").chosen({inherit_select_classes:!0,placeholder_text_single:edd_vars.one_option,placeholder_text_multiple:edd_vars.one_or_more_option}),i.find(".edd-select-chosen").css("width","100%"),i.find(".edd-select-chosen .chosen-search input").attr("placeholder",edd_vars.search_placeholder)})},move:function(){e(".edd_repeatable_table .edd-repeatables-wrap").sortable({handle:".edd-draghandle-anchor",items:".edd_repeatable_row",opacity:.6,cursor:"move",axis:"y",update:function(){var t=0;e(this).find(".edd_repeatable_row").each(function(){e(this).find("input.edd_repeatable_index").each(function(){e(this).val(t)}),t++})}})},remove:function(){e(document.body).on("click",".edd-remove-row, .edd_remove_repeatable",function(t){t.preventDefault();var d,a,n,i=e(this).parents(".edd_repeatable_row"),o=i.parent().find(".edd_repeatable_row").length,r=e(this).data("type"),s="div.edd_repeatable_"+r+"s";if(d=e(this).is(".ui-sortable .edd_repeatable_row:first-child .edd-remove-row, .ui-sortable .edd_repeatable_row:first-child .edd_remove_repeatable")?i.next(".edd_repeatable_row"):i.prev(".edd_repeatable_row"),a=d.find("select, input, textarea, button").filter(":visible"),n=a.eq(0),"price"===r){var c=i.data("key");e('.edd_repeatable_condition_field option[value="'+c+'"]').remove()}if(o>1)e("input, select",i).val(""),i.fadeOut("fast").remove(),n.focus();else switch(r){case"price":alert(edd_vars.one_price_min);break;case"file":e("input, select",i).val("");break;default:alert(edd_vars.one_field_min)}e(s).each(function(t){e(this).find("input, select").each(function(){var d=e(this).attr("name");d=d.replace(/\[(\d+)\]/,"["+t+"]"),e(this).attr("name",d).attr("id",d)})})})},type:function(){e(document.body).on("change","#_edd_product_type",function(t){var d=e("#edd_products"),a=e("#edd_download_files"),n=e("#edd_download_limit_wrap");"bundle"===e(this).val()?(d.show(),a.hide(),n.hide()):(d.hide(),a.show(),n.show())})},prices:function(){e(document.body).on("change","#edd_variable_pricing",function(t){var d=e(this).is(":checked"),a=e("#edd_regular_price_field"),n=e("#edd_variable_price_fields, .edd_repeatable_table .pricing"),i=e(".edd-bundled-product-row, .edd-repeatable-row-standard-fields");d?(a.hide(),n.show(),i.addClass("has-variable-pricing")):(a.show(),n.hide(),i.removeClass("has-variable-pricing"))})},files:function(){var t;window.formfield="",e(document.body).on("click",".edd_upload_file_button",function(a){a.preventDefault();var n=e(this);return window.formfield=e(this).closest(".edd_repeatable_upload_wrapper"),t?void t.open():(t=wp.media.frames.file_frame=wp.media({frame:"post",state:"insert",title:n.data("uploader-title"),button:{text:n.data("uploader-button-text")},multiple:"0"==e(this).data("multiple")?!1:!0}),t.on("menu:render:default",function(e){var t={};e.unset("library-separator"),e.unset("gallery"),e.unset("featured-image"),e.unset("embed"),e.set(t)}),t.on("insert",function(){var a=t.state().get("selection");a.each(function(t,a){t=t.toJSON();var n="image"===t.type?e(".attachment-display-settings .size option:selected").val():!1,i=t.url,o=t.title.length>0?t.title:t.filename;if(n&&"undefined"!=typeof t.sizes[n]&&(i=t.sizes[n].url),"image"===t.type&&(o=n&&"undefined"!=typeof t.sizes[n]?o+"-"+t.sizes[n].width+"x"+t.sizes[n].height:o+"-"+t.width+"x"+t.height),0===a)window.formfield.find(".edd_repeatable_attachment_id_field").val(t.id),window.formfield.find(".edd_repeatable_thumbnail_size_field").val(n),window.formfield.find(".edd_repeatable_upload_field").val(i),window.formfield.find(".edd_repeatable_name_field").val(o);else{var r=window.formfield,s=d.clone_repeatable(r);s.find(".edd_repeatable_attachment_id_field").val(t.id),s.find("edd_repeatable_thumbnail_size_field").val(n),s.find(".edd_repeatable_upload_field").val(i),s.find(".edd_repeatable_name_field").val(o),s.insertAfter(r)}})}),void t.open())});var t;window.formfield=""},updatePrices:function(){e("#edd_price_fields").on("keyup",".edd_variable_prices_name",function(){var t=e(this).parents(".edd_repeatable_row").data("key"),d=e(this).val(),a=e(".edd_repeatable_condition_field option[value="+t+"]");a.length>0?a.text(d):e(".edd_repeatable_condition_field").append(e("<option></option>").attr("value",t).text(d))})}};e(document.body).on("click",".toggle-custom-price-option-section",function(t){t.preventDefault();var d=e(this).html()==edd_vars.show_advanced_settings?!0:!1;d?e(this).html(edd_vars.hide_advanced_settings):e(this).html(edd_vars.show_advanced_settings);var a=e(this).parents(".edd-repeatable-row-header");a.siblings(".edd-custom-price-option-sections-wrap").slideToggle();var n;n=d?e(":input:not(input[type=button],input[type=submit],button):visible:first",a.siblings(".edd-custom-price-option-sections-wrap")):e(":input:not(input[type=button],input[type=submit],button):visible:first",a.siblings(".edd-repeatable-row-standard-fields")),n.focus()}),d.init();var a=e(".edd_datepicker");if(a.length>0){var n="mm/dd/yy";a.datepicker({dateFormat:n})}var i={init:function(){this.edit_address(),this.remove_download(),this.add_download(),this.change_customer(),this.new_customer(),this.edit_price(),this.recalculate_total(),this.variable_prices_check(),this.add_note(),this.remove_note(),this.resend_receipt(),this.copy_download_link()},edit_address:function(){e('select[name="edd-payment-address[0][country]"]').change(function(){var t=e(this),d={action:"edd_get_shop_states",country:t.val(),field_name:"edd-payment-address[0][state]"};return e.post(ajaxurl,d,function(t){var d=e("#edd-order-address-state-wrap select, #edd-order-address-state-wrap input");e("#edd-order-address-state-wrap .chosen-container").remove(),"nostates"==t?d.replaceWith('<input type="text" name="edd-payment-address[0][state]" value="" class="edd-edit-toggles medium-text"/>'):d.replaceWith(t)}),!1})},remove_download:function(){e("#edd-purchased-files").on("click",".edd-order-remove-download",function(){var t=e(document.body).find("#edd-purchased-files > .row:not(.header)").length;if(1===t)return alert(edd_vars.one_download_min),!1;if(confirm(edd_vars.delete_payment_download)){var d=e(this).data("key"),a=(e(".edd-payment-id").val(),e('input[name="edd-payment-details-downloads['+d+'][id]"]').val()),n=e('input[name="edd-payment-details-downloads['+d+'][price_id]"]').val(),i=e('input[name="edd-payment-details-downloads['+d+'][quantity]"]').val(),o=e('input[name="edd-payment-details-downloads['+d+'][amount]"]').val();if(e('input[name="edd-payment-details-downloads['+d+'][tax]"]'))var r=e('input[name="edd-payment-details-downloads['+d+'][tax]"]').val();if(e('input[name="edd-payment-details-downloads['+d+'][fees]"]'))var r=e.parseJSON(e('input[name="edd-payment-details-downloads['+d+'][fees]"]').val());var s=e('input[name="edd-payment-removed"]').val();s=e.parseJSON(s),s.length<1&&(s={});var c=[{id:a,price_id:n,quantity:i,amount:o,cart_index:d}];s[d]=c,e('input[name="edd-payment-removed"]').val(JSON.stringify(s)),e(this).parent().parent().remove(),r&&r.length&&e.each(r,function(t,d){e('*li[data-fee-id="'+d+'"]').remove()}),e("#edd-payment-downloads-changed").val(1),e(".edd-order-payment-recalc-totals").show()}return!1})},change_customer:function(){e("#edd-customer-details").on("click",".edd-payment-change-customer, .edd-payment-change-customer-cancel",function(t){t.preventDefault();var d=e(this).hasClass("edd-payment-change-customer"),a=e(this).hasClass("edd-payment-change-customer-cancel");d?(e(".customer-info").hide(),e(".change-customer").show(),e(".edd-payment-change-customer-input").css("width","auto")):a&&(e(".customer-info").show(),e(".change-customer").hide())})},new_customer:function(){e("#edd-customer-details").on("click",".edd-payment-new-customer, .edd-payment-new-customer-cancel",function(t){t.preventDefault();var d=e(this).hasClass("edd-payment-new-customer"),a=e(this).hasClass("edd-payment-new-customer-cancel");d?(e(".customer-info").hide(),e(".new-customer").show()):a&&(e(".customer-info").show(),e(".new-customer").hide());var d=e("#edd-new-customer");e(".new-customer").is(":visible")?d.val(1):d.val(0)})},add_download:function(){e(".edd-edit-purchase-element").on("click","#edd-order-add-download",function(t){t.preventDefault();var d=e("#edd_order_download_select"),a=e("#edd-order-download-quantity"),n=e("#edd-order-download-price"),i=e("#edd-order-download-tax"),o=e(".edd_price_options_select option:selected"),r=d.val(),s=d.find(":selected").text(),c=a.val(),l=n.val(),p=i.val(),u=o.val(),_=o.text();if(1>r)return!1;if(l||(l=0),l=parseFloat(l),isNaN(l))return alert(edd_vars.numeric_item_price),!1;if(p=parseFloat(p),isNaN(p))return alert(edd_vars.numeric_item_tax),!1;if(isNaN(parseInt(c)))return alert(edd_vars.numeric_quantity),!1;_&&(s=s+" - "+_);var m=e("#edd-purchased-files div.row").length,f=e("#edd-purchased-files div.row:last").clone();f.find(".download span").html('<a href="post.php?post='+r+'&action=edit"></a>'),f.find(".download span a").text(s),f.find(".edd-payment-details-download-item-price").val(l.toFixed(edd_vars.currency_decimals)),f.find(".edd-payment-details-download-item-tax").val(p.toFixed(edd_vars.currency_decimals)),f.find("input.edd-payment-details-download-id").val(r),f.find("input.edd-payment-details-download-price-id").val(u);var h=l*c+p;h=h.toFixed(edd_vars.currency_decimals),f.find("span.edd-payment-details-download-amount").text(h),f.find("input.edd-payment-details-download-amount").val(h),f.find("input.edd-payment-details-download-quantity").val(c),f.find("input.edd-payment-details-download-has-log").val(0),f.find(".edd-copy-download-link-wrapper").remove(),f.find("input").each(function(){var t=e(this).attr("name");t=t.replace(/\[(\d+)\]/,"["+parseInt(m)+"]"),e(this).attr("name",t).attr("id",t)}),f.find("a.edd-order-remove-download").attr("data-key",parseInt(m)),e("#edd-payment-downloads-changed").val(1),e(f).insertAfter("#edd-purchased-files div.row:last"),e(".edd-order-payment-recalc-totals").show(),e(".edd-add-download-field").val("")})},edit_price:function(){e(document.body).on("change keyup",".edd-payment-item-input",function(){var t=e(this).parents("ul.edd-purchased-files-list-wrapper");e(".edd-order-payment-recalc-totals").show();var d=t.find("input.edd-payment-details-download-quantity").val(),a=t.find("input.edd-payment-details-download-item-price").val(),n=t.find("input.edd-payment-details-download-item-tax").val();if(a=parseFloat(a),isNaN(a))return alert(edd_vars.numeric_item_price),!1;n=parseFloat(n),isNaN(n)&&(n=0),isNaN(parseInt(d))&&(d=1);var i=a*d+n;i=i.toFixed(edd_vars.currency_decimals),t.find("input.edd-payment-details-download-amount").val(i),t.find("span.edd-payment-details-download-amount").text(i)})},recalculate_total:function(){e("#edd-order-recalc-total").on("click",function(t){t.preventDefault();var d=0,a=0,n=e("#edd-purchased-files .row input.edd-payment-details-download-amount"),i=e("#edd-purchased-files .row input.edd-payment-details-download-item-tax");n.length&&n.each(function(){d+=parseFloat(e(this).val())}),i.length&&i.each(function(){a+=parseFloat(e(this).val())}),e(".edd-payment-fees").length&&e(".edd-payment-fees span.fee-amount").each(function(){d+=parseFloat(e(this).data("fee"))}),e("input[name=edd-payment-total]").val(d.toFixed(edd_vars.currency_decimals)),e("input[name=edd-payment-tax]").val(a.toFixed(edd_vars.currency_decimals))})},variable_prices_check:function(){e(".edd-edit-purchase-element").on("change","select#edd_order_download_select",function(){var t=e(this),d=t.val();if(parseInt(d)>0){var a={action:"edd_check_for_download_price_variations",download_id:d};e.ajax({type:"POST",data:a,url:ajaxurl,success:function(d){e(".edd_price_options_select").remove(),e(d).insertAfter(t.next())}}).fail(function(e){window.console&&window.console.log&&console.log(e)})}})},add_note:function(){e("#edd-add-payment-note").on("click",function(t){t.preventDefault();var d={action:"edd_insert_payment_note",payment_id:e(this).data("payment-id"),note:e("#edd-payment-note").val()};if(d.note)e.ajax({type:"POST",data:d,url:ajaxurl,success:function(t){e("#edd-payment-notes-inner").append(t),e(".edd-no-payment-notes").hide(),e("#edd-payment-note").val("")}}).fail(function(e){window.console&&window.console.log&&console.log(e)});else{var a=e("#edd-payment-note").css("border-color");e("#edd-payment-note").css("border-color","red"),setTimeout(function(){e("#edd-payment-note").css("border-color",a)},500)}})},remove_note:function(){e(document.body).on("click",".edd-delete-payment-note",function(t){if(t.preventDefault(),confirm(edd_vars.delete_payment_note)){var d={action:"edd_delete_payment_note",payment_id:e(this).data("payment-id"),note_id:e(this).data("note-id")};return e.ajax({type:"POST",data:d,url:ajaxurl,success:function(t){return e("#edd-payment-note-"+d.note_id).remove(),e(".edd-payment-note").length||e(".edd-no-payment-notes").show(),!1}}).fail(function(e){window.console&&window.console.log&&console.log(e)}),!0}})},resend_receipt:function(){var t=e(".edd-order-resend-receipt-addresses");e(document.body).on("click","#edd-select-receipt-email",function(e){e.preventDefault(),t.slideDown()}),e(document.body).on("change",".edd-order-resend-receipt-email",function(){var t=e("#edd-select-receipt-email").prop("href")+"&email="+e(this).val();confirm(edd_vars.resend_receipt)&&(window.location=t)}),e(document.body).on("click","#edd-resend-receipt",function(e){return confirm(edd_vars.resend_receipt)})},copy_download_link:function(){e(document.body).on("click",".edd-copy-download-link",function(t){t.preventDefault();var d=e(this),a={action:"edd_get_file_download_link",payment_id:e('input[name="edd_payment_id"]').val(),download_id:d.data("download-id"),price_id:d.data("price-id")};e.ajax({type:"POST",data:a,url:ajaxurl,success:function(t){return e("#edd-download-link").dialog({width:400}).html('<textarea rows="10" cols="40" id="edd-download-link-textarea">'+t+"</textarea>"),e("#edd-download-link-textarea").focus().select(),!1}}).fail(function(e){window.console&&window.console.log&&console.log(e)})})}};i.init();var o={init:function(){this.type_select(),this.product_requirements()},type_select:function(){e("#edd-edit-discount #edd-type, #edd-add-discount #edd-type").change(function(){var t=e(this).val();e(".edd-amount-description").hide(),e(".edd-amount-description."+t+"-discount").show()})},product_requirements:function(){e("#products").change(function(){var t=e("#edd-discount-product-conditions");e(this).val()?t.show():t.hide()})}};o.init();var r={init:function(){this.date_options(),this.customers_export()},date_options:function(){e("#edd-graphs-date-options").change(function(){var t=e(this),d=e("#edd-date-range-options");"other"===t.val()?d.show():d.hide()})},customers_export:function(){e("#edd_customer_export_download").change(function(){var t=e(this),d=e("option:selected",t).val(),a=e("#edd_customer_export_option");if("0"===t.val()?a.show():a.hide(),0!=parseInt(d)){var n={action:"edd_check_for_download_price_variations",download_id:d,all_prices:!0},i=e(".edd_price_options_select");e.post(ajaxurl,n,function(t){i.remove(),e("#edd_customer_export_download_chosen").after(t)})}else i.remove()})}};r.init();var s={init:function(){this.general(),this.taxes(),this.emails(),this.misc()},general:function(){var t=e(".edd-color-picker");if(t.length&&t.wpColorPicker(),"undefined"==typeof wp||"1"!==edd_vars.new_media_ui){var d=e(".edd_settings_upload_button");d.length>0&&(window.formfield="",e(document.body).on("click",d,function(t){t.preventDefault(),window.formfield=e(this).parent().prev(),window.tbframe_interval=setInterval(function(){jQuery("#TB_iframeContent").contents().find(".savesend .button").val(edd_vars.use_this_file).end().find("#insert-gallery, .wp-post-thumbnail").hide()},2e3),tb_show(edd_vars.add_new_download,"media-upload.php?TB_iframe=true")}),window.edd_send_to_editor=window.send_to_editor,window.send_to_editor=function(t){window.formfield?(imgurl=e("a","<div>"+t+"</div>").attr("href"),window.formfield.val(imgurl),window.clearInterval(window.tbframe_interval),tb_remove()):window.edd_send_to_editor(t),window.send_to_editor=window.edd_send_to_editor,window.formfield="",window.imagefield=!1})}else{var a;window.formfield="",e(document.body).on("click",".edd_settings_upload_button",function(t){t.preventDefault();var d=e(this);return window.formfield=e(this).parent().prev(),a?void a.open():(a=wp.media.frames.file_frame=wp.media({frame:"post",state:"insert",title:d.data("uploader_title"),button:{text:d.data("uploader_button_text")},multiple:!1}),a.on("menu:render:default",function(e){var t={};e.unset("library-separator"),e.unset("gallery"),e.unset("featured-image"),e.unset("embed"),e.set(t)}),a.on("insert",function(){var e=a.state().get("selection");e.each(function(e,t){e=e.toJSON(),window.formfield.val(e.url)})}),void a.open())});var a;window.formfield=""}},taxes:function(){var t=e("select.edd-no-states");t.length&&t.closest("tr").hide(),e('select[name="edd_settings[base_country]"]').change(function(){var t=e(this),d=t.closest("tr"),a={action:"edd_get_shop_states",country:e(this).val(),field_name:"edd_settings[base_state]"};return e.post(ajaxurl,a,function(e){"nostates"==e?d.next().hide():(d.next().show(),d.next().find("select").replaceWith(e))}),!1}),e(document.body).on("change","#edd_tax_rates select.edd-tax-country",function(){var t=e(this),d={action:"edd_get_shop_states",country:e(this).val(),field_name:t.attr("name").replace("country","state")};return e.post(ajaxurl,d,function(e){if("nostates"==e){var a='<input type="text" name="'+d.field_name+'" value=""/>';t.parent().next().find("select").replaceWith(a)}else t.parent().next().find("input,select").show(),t.parent().next().find("input,select").replaceWith(e)}),!1}),e("#edd_add_tax_rate").on("click",function(){var t=e("#edd_tax_rates tr:last"),d=t.clone(),a=t.parent().find("tr").length;return d.find("td input").not(":input[type=checkbox]").val(""),d.find('td [type="checkbox"]').attr("checked",!1),d.find("input, select").each(function(){var t=e(this).attr("name");t=t.replace(/\[(\d+)\]/,"["+parseInt(a)+"]"),e(this).attr("name",t).attr("id",t)}),d.find("label").each(function(){var t=e(this).attr("for");t=t.replace(/\[(\d+)\]/,"["+parseInt(a)+"]"),e(this).attr("for",t)}),d.insertAfter(t),!1}),e(document.body).on("click","#edd_tax_rates .edd_remove_tax_rate",function(){if(confirm(edd_vars.delete_tax_rate)){var t=e("#edd_tax_rates tr:visible"),d=t.length;2===d?(e("#edd_tax_rates select").val(""),e('#edd_tax_rates input[type="text"]').val(""),e('#edd_tax_rates input[type="number"]').val(""),e('#edd_tax_rates input[type="checkbox"]').attr("checked",!1)):e(this).closest("tr").remove(),e("#edd_tax_rates tr").each(function(t){e(this).children().find("input, select").each(function(){var d=e(this).attr("name");d=d.replace(/\[(\d+)\]/,"["+(t-1)+"]"),e(this).attr("name",d).attr("id",d)})})}return!1})},emails:function(){var t=e("#email-preview-wrap");if(t.length){var d=e("#email-preview");t.colorbox({inline:!0,href:d,width:"80%",height:"auto"})}},misc:function(){var t=e('select[name="edd_settings[download_method]"]'),d=t.parent().parent().next();"direct"==t.val()&&(d.hide(),d.find("input").prop("checked",!1)),t.on("change",function(){"direct"==e(this).val()?(d.hide(),d.find("input").prop("checked",!1)):d.show()})}};s.init(),e(".download_page_edd-payment-history .row-actions .delete a, a.edd-delete-payment").on("click",function(){return confirm(edd_vars.delete_payment)?!0:!1}),e("#the-list").on("click",".editinline",function(){var t=e(this).closest("tr").attr("id");t=t.replace("post-","");var d=e("#post-"+t),a=d.find(".column-price .downloadprice-"+t).val();a!=e("#post-"+t+".column-price .downloadprice-"+t).val()?e(".regprice","#edd-download-data").val(a).attr("disabled",!1):e(".regprice","#edd-download-data").val(edd_vars.quick_edit_warning).attr("disabled","disabled")}),e(document.body).on("click","#bulk_edit",function(){var t=e("#bulk-edit"),d=new Array;t.find("#bulk-titles").children().each(function(){d.push(e(this).attr("id").replace(/^(ttle)/i,""))});var a=e('#edd-download-data input[name="_edd_regprice"]').val(),n={action:"edd_save_bulk_edit",edd_bulk_nonce:d,post_ids:d,price:a};e.post(ajaxurl,n)}),e(".edd-select-chosen").chosen({inherit_select_classes:!0,placeholder_text_single:edd_vars.one_option,placeholder_text_multiple:edd_vars.one_or_more_option}),e(".edd-select-chosen .chosen-search input").each(function(){var t=e(this).parent().parent().parent().prev("select.edd-select-chosen"),d=(t.data("search-type"),t.data("search-placeholder"));e(this).attr("placeholder",d)}),e(".chosen-choices").on("click",function(){var t=e(this).parent().prev().data("search-placeholder");t.length||(t=edd_vars.type_to_search),e(this).children("li").children("input").attr("placeholder",t)});var c,l=342;e(document.body).on("keyup",".edd-select.chosen-container .chosen-search input, .edd-select.chosen-container .search-field input",function(t){var d=e(this).val(),a=e(this).closest(".edd-select-chosen"),n=(a.attr("id").replace("_chosen",""),a.prev()),i=a.hasClass("no-bundles"),o=a.hasClass("variations"),r=t.which,s="edd_download_search";if(a.prev().data("search-type")){if("no_ajax"==n.data("search-type"))return;s="edd_"+n.data("search-type")+"_search"}d.length<=3&&"edd_download_search"==s||16==r||13==r||91==r||17==r||37==r||38==r||39==r||40==r||(clearTimeout(c),c=setTimeout(function(){e.ajax({type:"GET",url:ajaxurl,data:{action:s,s:d,no_bundles:i,variations:o},dataType:"json",beforeSend:function(){n.closest("ul.chosen-results").empty()},success:function(t){e("option:not(:selected)",n).remove(),e.each(t,function(t,d){e('option[value="'+d.id+'"]',n).length||n.prepend('<option value="'+d.id+'">'+d.name+"</option>")}),e(".edd-select-chosen").trigger("chosen:updated"),n.next().find("input").val(d)}}).fail(function(e){window.console&&window.console.log&&console.log(e)}).done(function(e){})},l))}),e("#post").on("click",".edd-thickbox",function(){e(".edd-select-chosen","#choose-download").css("width","100%")});var p={init:function(){this.revoke_api_key(),this.regenerate_api_key(),this.create_api_key(),this.recount_stats()},revoke_api_key:function(){e(document.body).on("click",".edd-revoke-api-key",function(e){return confirm(edd_vars.revoke_api_key)})},regenerate_api_key:function(){e(document.body).on("click",".edd-regenerate-api-key",function(e){return confirm(edd_vars.regenerate_api_key)})},create_api_key:function(){e(document.body).on("submit","#api-key-generate-form",function(t){var d=e('input[type="text"][name="user_id"]');d.css("border-color","#ddd");var a=d.val();return a.length<1||0==a?(d.css("border-color","#ff0000"),!1):void 0})},recount_stats:function(){e(document.body).on("change","#recount-stats-type",function(){var t=e("#edd-tools-recount-form"),d=e("option:selected",this).data("type"),a=e("#recount-stats-submit"),n=e("#tools-product-dropdown");if(t.find(".notice-wrap").remove(),a.removeClass("button-disabled").attr("disabled",!1),n.hide(),e(".edd-recount-stats-descriptions span").hide(),"recount-download"===d)n.show(),n.find(".edd-select-chosen").css("width","auto");else if("reset-stats"===d){t.append('<div class="notice-wrap"></div>');var i=t.find(".notice-wrap");i.html('<div class="notice notice-warning"><p><input type="checkbox" id="confirm-reset" name="confirm_reset_store" value="1" /> <label for="confirm-reset">'+edd_vars.reset_stats_warn+"</label></p></div>"),e("#recount-stats-submit").addClass("button-disabled").attr("disabled","disabled")}else n.hide(),n.val(0);e("#"+d).show()}),e(document.body).on("change","#confirm-reset",function(){var t=e(this).is(":checked");t?e("#recount-stats-submit").removeClass("button-disabled").removeAttr("disabled"):e("#recount-stats-submit").addClass("button-disabled").attr("disabled","disabled")}),e("#edd-tools-recount-form").submit(function(t){var d=e("#recount-stats-type").val(),a=e(this),n=e("option:selected",this).data("type");if("reset-stats"===n){var i=e("#confirm-reset").is(":checked");if(i)return!0;r=!0}a.find(".notice-wrap").remove(),a.append('<div class="notice-wrap"></div>');var o=a.find(".notice-wrap"),r=!1;if((null===d||0===d)&&(o.html('<div class="updated error"><p>'+edd_vars.batch_export_no_class+"</p></div>"),r=!0),"recount-download"===n){var s=e('select[name="download_id"]').val();0==s&&(o.html('<div class="updated error"><p>'+edd_vars.batch_export_no_reqs+"</p></div>"),r=!0)}return r?(a.find(".button-disabled").removeClass("button-disabled"),!1):void 0})}};p.init();var u={init:function(){this.submit(),this.dismiss_message()},submit:function(){var t=this;e(document.body).on("submit",".edd-export-form",function(d){d.preventDefault();var a=e(this).find('input[type="submit"]');if(!a.hasClass("button-disabled")){var n=e(this).serialize();a.addClass("button-disabled"),e(this).find(".notice-wrap").remove(),e(this).append('<div class="notice-wrap"><span class="spinner is-active"></span><div class="edd-progress"><div></div></div></div>'),t.process_step(1,n,t)}})},process_step:function(t,d,a){e.ajax({type:"POST",url:ajaxurl,data:{form:d,action:"edd_do_ajax_export",step:t},dataType:"json",success:function(t){if("done"==t.step||t.error||t.success){var n=e(".edd-export-form").find(".edd-progress").parent().parent(),i=n.find(".notice-wrap");if(n.find(".button-disabled").removeClass("button-disabled"),t.error){var o=t.message;i.html('<div class="updated error"><p>'+o+"</p></div>")}else if(t.success){var r=t.message;i.html('<div id="edd-batch-success" class="updated notice is-dismissible"><p>'+r+'<span class="notice-dismiss"></span></p></div>')}else i.remove(),window.location=t.url}else e(".edd-progress div").animate({width:t.percentage+"%"},50,function(){}),a.process_step(parseInt(t.step),d,a)}}).fail(function(e){window.console&&window.console.log&&console.log(e)})},dismiss_message:function(){e(document.body).on("click","#edd-batch-success .notice-dismiss",function(){e("#edd-batch-success").parent().slideUp("fast")})}};u.init();var _={init:function(){this.submit()},submit:function(){var t=this;e(".edd-import-form").ajaxForm({beforeSubmit:t.before_submit,success:t.success,complete:t.complete,dataType:"json",error:t.error})},before_submit:function(t,d,a){if(d.find(".notice-wrap").remove(),d.append('<div class="notice-wrap"><span class="spinner is-active"></span><div class="edd-progress"><div></div></div></div>'),!(window.File&&window.FileReader&&window.FileList&&window.Blob)){var n=e(".edd-import-form").find(".edd-progress").parent().parent(),i=n.find(".notice-wrap");return n.find(".button-disabled").removeClass("button-disabled"),i.html('<div class="update error"><p>'+edd_vars.unsupported_browser+"</p></div>"),!1}},success:function(e,t,d,a){},complete:function(t){var d=jQuery.parseJSON(t.responseText);if(d.success){var a=e(".edd-import-form .notice-wrap").parent();a.find(".edd-import-file-wrap,.notice-wrap").remove(),a.find(".edd-import-options").slideDown();var n=a.find("select.edd-import-csv-column"),i=(n.parent().parent(),""),o=d.data.columns.sort(function(e,t){return t>e?-1:e>t?1:0});e.each(o,function(e,t){i+='<option value="'+t+'">'+t+"</option>"}),n.append(i),n.on("change",function(){var t=e(this).val();t&&0!=d.data.first_row[t]?e(this).parent().next().html(d.data.first_row[t]):e(this).parent().next().html("")}),e(document.body).on("click",".edd-import-proceed",function(e){e.preventDefault(),a.append('<div class="notice-wrap"><span class="spinner is-active"></span><div class="edd-progress"><div></div></div></div>'),d.data.mapping=a.serialize(),_.process_step(1,d.data,self)})}else _.error(t)},error:function(t){var d=jQuery.parseJSON(t.responseText),a=e(".edd-import-form").find(".edd-progress").parent().parent(),n=a.find(".notice-wrap");a.find(".button-disabled").removeClass("button-disabled"),d.data.error?n.html('<div class="update error"><p>'+d.data.error+"</p></div>"):n.remove()},process_step:function(t,d,a){e.ajax({type:"POST",url:ajaxurl,data:{form:d.form,nonce:d.nonce,"class":d["class"],upload:d.upload,mapping:d.mapping,action:"edd_do_ajax_import",step:t},dataType:"json",success:function(t){if("done"==t.data.step||t.data.error){var n=e(".edd-import-form").find(".edd-progress").parent().parent(),i=n.find(".notice-wrap");n.find(".button-disabled").removeClass("button-disabled"),t.data.error?i.html('<div class="update error"><p>'+t.data.error+"</p></div>"):(n.find(".edd-import-options").hide(),e("html, body").animate({scrollTop:n.parent().offset().top},500),i.html('<div class="updated"><p>'+t.data.message+"</p></div>"))}else e(".edd-progress div").animate({width:t.data.percentage+"%"},50,function(){}),_.process_step(parseInt(t.data.step),d,a)}}).fail(function(e){window.console&&window.console.log&&console.log(e)})}};_.init();var m={vars:{customer_card_wrap_editable:e(".edd-customer-card-wrapper .editable"),customer_card_wrap_edit_item:e(".edd-customer-card-wrapper .edit-item"),user_id:e('input[name="customerinfo[user_id]"]'),state_input:e(':input[name="customerinfo[state]"]'),note:e("#customer-note")},init:function(){this.edit_customer(),this.add_email(),this.user_search(),this.remove_user(),this.cancel_edit(),this.change_country(),this.add_note(),this.delete_checked()},edit_customer:function(){e(document.body).on("click","#edit-customer",function(e){e.preventDefault(),m.vars.customer_card_wrap_editable.hide(),m.vars.customer_card_wrap_edit_item.fadeIn().css("display","block")})},add_email:function(){e(document.body).on("click","#add-customer-email",function(t){t.preventDefault();var d=e(this),a=d.parent();a.parent().find(".notice-wrap").remove(),a.find(".spinner").css("visibility","visible"),d.attr("disabled",!0);var n=a.find('input[name="customer-id"]').val(),i=a.find('input[name="additional-email"]').val(),o=a.find('input[name="make-additional-primary"]').is(":checked"),r=a.find('input[name="add_email_nonce"]').val(),s={edd_action:"customer-add-email",customer_id:n,email:i,primary:o,_wpnonce:r};e.post(ajaxurl,s,function(e){!0===e.success?window.location.href=e.redirect:(d.attr("disabled",!1),a.after('<div class="notice-wrap"><div class="notice notice-error inline"><p>'+e.message+"</p></div></div>"),
2
- a.find(".spinner").css("visibility","hidden"))},"json")})},user_search:function(){e(document.body).on("click.eddSelectUser",".edd_user_search_results a",function(t){t.preventDefault();var d=e(this).data("userid");m.vars.user_id.val(d)})},remove_user:function(){e(document.body).on("click","#disconnect-customer",function(t){t.preventDefault();var d=e('input[name="customerinfo[id]"]').val(),a={edd_action:"disconnect-userid",customer_id:d,_wpnonce:e("#edit-customer-info #_wpnonce").val()};e.post(ajaxurl,a,function(e){window.location.href=window.location.href},"json")})},cancel_edit:function(){e(document.body).on("click","#edd-edit-customer-cancel",function(t){t.preventDefault(),m.vars.customer_card_wrap_edit_item.hide(),m.vars.customer_card_wrap_editable.show(),e(".edd_user_search_results").html("")})},change_country:function(){e('select[name="customerinfo[country]"]').change(function(){var t=e(this),d={action:"edd_get_shop_states",country:t.val(),field_name:"customerinfo[state]"};return e.post(ajaxurl,d,function(e){"nostates"==e?m.vars.state_input.replaceWith('<input type="text" name="'+d.field_name+'" value="" class="edd-edit-toggles medium-text"/>'):m.vars.state_input.replaceWith(e)}),!1})},add_note:function(){e(document.body).on("click","#add-customer-note",function(t){t.preventDefault();var d={edd_action:"add-customer-note",customer_id:e("#customer-id").val(),customer_note:m.vars.note.val(),add_customer_note_nonce:e("#add_customer_note_nonce").val()};if(d.customer_note)e.ajax({type:"POST",data:d,url:ajaxurl,success:function(t){e("#edd-customer-notes").prepend(t),e(".edd-no-customer-notes").hide(),m.vars.note.val("")}}).fail(function(e){window.console&&window.console.log&&console.log(e)});else{var a=m.vars.note.css("border-color");m.vars.note.css("border-color","red"),setTimeout(function(){m.vars.note.css("border-color",a)},500)}})},delete_checked:function(){e("#edd-customer-delete-confirm").change(function(){var t=e("#edd-customer-delete-records"),d=e("#edd-delete-customer");e(this).prop("checked")?(t.attr("disabled",!1),d.attr("disabled",!1)):(t.attr("disabled",!0),t.prop("checked",!1),d.attr("disabled",!0))})}};m.init(),e(".edd-ajax-user-search").keyup(function(){var t=e(this).val(),d="";e(this).data("exclude")&&(d=e(this).data("exclude")),e(".edd-ajax").show();var a={action:"edd_search_users",user_name:t,exclude:d};document.body.style.cursor="wait",e.ajax({type:"POST",data:a,dataType:"json",url:ajaxurl,success:function(t){e(".edd-ajax").hide(),e(".edd_user_search_results").removeClass("hidden"),e(".edd_user_search_results span").html(""),e(t.results).appendTo(".edd_user_search_results span"),document.body.style.cursor="default"}})}),e(document.body).on("click.eddSelectUser",".edd_user_search_results span a",function(t){t.preventDefault();var d=e(this).data("login");e(".edd-ajax-user-search").val(d),e(".edd_user_search_results").addClass("hidden"),e(".edd_user_search_results span").html("")}),e(document.body).on("click.eddCancelUserSearch",".edd_user_search_results a.edd-ajax-user-cancel",function(t){t.preventDefault(),e(".edd-ajax-user-search").val(""),e(".edd_user_search_results").addClass("hidden"),e(".edd_user_search_results span").html("")}),e("#edd_dashboard_sales").length&&e.ajax({type:"GET",data:{action:"edd_load_dashboard_widget"},url:ajaxurl,success:function(t){e("#edd_dashboard_sales .inside").html(t)}}),e(document.body).on("keydown",".customer-note-input",function(t){13==t.keyCode&&(t.metaKey||t.ctrlKey)&&e("#add-customer-note").click()})});var eddFormatCurrency=function(e){var t=parseFloat(e),d=edd_vars.currency,a=edd_vars.currency_decimals;return t.toLocaleString(d,{style:"currency",currency:d,minimumFractionDigits:a,maximumFractionDigits:a})},eddFormatNumber=function(e){var t=parseFloat(e),d=edd_vars.currency;edd_vars.currency_decimals;return t.toLocaleString(d,{style:"decimal",minimumFractionDigits:0,maximumFractionDigits:0})},eddLabelFormatter=function(e,t){return'<div style="font-size:12px; text-align:center; padding:2px">'+e+"</div>"},eddLegendFormatterSales=function(e,t){var d=e.toLowerCase().replace(/\s/g,"-"),a='<div class="edd-legend-color" style="background-color: '+t.color+'"></div>',n='<div class="edd-pie-legend-item">'+e+": "+Math.round(t.percent)+"% ("+eddFormatNumber(t.data[0][1])+")</div>",i='<div id="'+t.edd_vars.id+d+'" class="edd-legend-item-wrapper">'+a+n+"</div>";return jQuery("#edd-pie-legend-"+t.edd_vars.id).append(i),i},eddLegendFormatterEarnings=function(e,t){var d=e.toLowerCase().replace(/\s/g,"-"),a='<div class="edd-legend-color" style="background-color: '+t.color+'"></div>',n='<div class="edd-pie-legend-item">'+e+": "+Math.round(t.percent)+"% ("+eddFormatCurrency(t.data[0][1])+")</div>",i='<div id="'+t.edd_vars.id+d+'" class="edd-legend-item-wrapper">'+a+n+"</div>";return jQuery("#edd-pie-legend-"+t.edd_vars.id).append(i),i};
1
+ function edd_attach_tooltips(e){e.tooltip({content:function(){return jQuery(this).prop("title")},tooltipClass:"edd-ui-tooltip",position:{my:"center top",at:"center bottom+10",collision:"flipfit"},hide:{duration:200},show:{duration:200}})}jQuery(document).ready(function(e){var t=e(".edd-help-tip");edd_attach_tooltips(t);var d={init:function(){this.add(),this.move(),this.remove(),this.type(),this.prices(),this.files(),this.updatePrices()},clone_repeatable:function(t){var d=highest=1;return t.parent().find(".edd_repeatable_row").each(function(){var t=e(this).data("key");parseInt(t)>highest&&(highest=t)}),d=highest+=1,clone=t.clone(),clone.find("select").each(function(){e(this).val(t.find('select[name="'+e(this).attr("name")+'"]').val())}),clone.removeClass("edd_add_blank"),clone.attr("data-key",d),clone.find("input, select, textarea").val("").each(function(){var t=e(this).attr("name"),a=e(this).attr("id");t&&(t=t.replace(/\[(\d+)\]/,"["+parseInt(d)+"]"),e(this).attr("name",t)),e(this).attr("data-key",d),"undefined"!=typeof a&&(a=a.replace(/(\d+)/,parseInt(d)),e(this).attr("id",a))}),clone.find("span.edd_price_id").each(function(){e(this).text(parseInt(d))}),clone.find("span.edd_file_id").each(function(){e(this).text(parseInt(d))}),clone.find(".edd_repeatable_default_input").each(function(){e(this).val(parseInt(d)).removeAttr("checked")}),clone.find(".edd_repeatable_condition_field").each(function(){e(this).find("option:eq(0)").prop("selected","selected")}),clone.find(".search-choice").remove(),clone.find(".chosen-container").remove(),edd_attach_tooltips(clone.find(".edd-help-tip")),clone},add:function(){e(document.body).on("click",".submit .edd_add_repeatable",function(t){t.preventDefault();var a=e(this),n=a.parent().parent().prev(".edd_repeatable_row"),i=d.clone_repeatable(n);i.insertAfter(n).find("input, textarea, select").filter(":visible").eq(0).focus(),i.find(".edd-select-chosen").chosen({inherit_select_classes:!0,placeholder_text_single:edd_vars.one_option,placeholder_text_multiple:edd_vars.one_or_more_option}),i.find(".edd-select-chosen").css("width","100%"),i.find(".edd-select-chosen .chosen-search input").attr("placeholder",edd_vars.search_placeholder)})},move:function(){e(".edd_repeatable_table .edd-repeatables-wrap").sortable({handle:".edd-draghandle-anchor",items:".edd_repeatable_row",opacity:.6,cursor:"move",axis:"y",update:function(){var t=0;e(this).find(".edd_repeatable_row").each(function(){e(this).find("input.edd_repeatable_index").each(function(){e(this).val(t)}),t++})}})},remove:function(){e(document.body).on("click",".edd-remove-row, .edd_remove_repeatable",function(t){t.preventDefault();var d,a,n,i=e(this).parents(".edd_repeatable_row"),o=i.parent().find(".edd_repeatable_row").length,r=e(this).data("type"),s="div.edd_repeatable_"+r+"s";if(d=e(this).is(".ui-sortable .edd_repeatable_row:first-child .edd-remove-row, .ui-sortable .edd_repeatable_row:first-child .edd_remove_repeatable")?i.next(".edd_repeatable_row"):i.prev(".edd_repeatable_row"),a=d.find("select, input, textarea, button").filter(":visible"),n=a.eq(0),"price"===r){var c=i.data("key");e('.edd_repeatable_condition_field option[value="'+c+'"]').remove()}if(o>1)e("input, select",i).val(""),i.fadeOut("fast").remove(),n.focus();else switch(r){case"price":alert(edd_vars.one_price_min);break;case"file":e("input, select",i).val("");break;default:alert(edd_vars.one_field_min)}e(s).each(function(t){e(this).find("input, select").each(function(){var d=e(this).attr("name");d=d.replace(/\[(\d+)\]/,"["+t+"]"),e(this).attr("name",d).attr("id",d)})})})},type:function(){e(document.body).on("change","#_edd_product_type",function(t){var d=e("#edd_products"),a=e("#edd_download_files"),n=e("#edd_download_limit_wrap");"bundle"===e(this).val()?(d.show(),a.hide(),n.hide()):(d.hide(),a.show(),n.show())})},prices:function(){e(document.body).on("change","#edd_variable_pricing",function(t){var d=e(this).is(":checked"),a=e("#edd_regular_price_field"),n=e("#edd_variable_price_fields, .edd_repeatable_table .pricing"),i=e(".edd-bundled-product-row, .edd-repeatable-row-standard-fields");d?(a.hide(),n.show(),i.addClass("has-variable-pricing")):(a.show(),n.hide(),i.removeClass("has-variable-pricing"))})},files:function(){var t;window.formfield="",e(document.body).on("click",".edd_upload_file_button",function(a){a.preventDefault();var n=e(this);return window.formfield=e(this).closest(".edd_repeatable_upload_wrapper"),t?void t.open():(t=wp.media.frames.file_frame=wp.media({frame:"post",state:"insert",title:n.data("uploader-title"),button:{text:n.data("uploader-button-text")},multiple:"0"==e(this).data("multiple")?!1:!0}),t.on("menu:render:default",function(e){var t={};e.unset("library-separator"),e.unset("gallery"),e.unset("featured-image"),e.unset("embed"),e.set(t)}),t.on("insert",function(){var a=t.state().get("selection");a.each(function(t,a){t=t.toJSON();var n="image"===t.type?e(".attachment-display-settings .size option:selected").val():!1,i=t.url,o=t.title.length>0?t.title:t.filename;if(n&&"undefined"!=typeof t.sizes[n]&&(i=t.sizes[n].url),"image"===t.type&&(o=n&&"undefined"!=typeof t.sizes[n]?o+"-"+t.sizes[n].width+"x"+t.sizes[n].height:o+"-"+t.width+"x"+t.height),0===a)window.formfield.find(".edd_repeatable_attachment_id_field").val(t.id),window.formfield.find(".edd_repeatable_thumbnail_size_field").val(n),window.formfield.find(".edd_repeatable_upload_field").val(i),window.formfield.find(".edd_repeatable_name_field").val(o);else{var r=window.formfield,s=d.clone_repeatable(r);s.find(".edd_repeatable_attachment_id_field").val(t.id),s.find("edd_repeatable_thumbnail_size_field").val(n),s.find(".edd_repeatable_upload_field").val(i),s.find(".edd_repeatable_name_field").val(o),s.insertAfter(r)}})}),void t.open())});var t;window.formfield=""},updatePrices:function(){e("#edd_price_fields").on("keyup",".edd_variable_prices_name",function(){var t=e(this).parents(".edd_repeatable_row").data("key"),d=e(this).val(),a=e(".edd_repeatable_condition_field option[value="+t+"]");a.length>0?a.text(d):e(".edd_repeatable_condition_field").append(e("<option></option>").attr("value",t).text(d))})}};e(document.body).on("click",".toggle-custom-price-option-section",function(t){t.preventDefault();var d=e(this).html()==edd_vars.show_advanced_settings?!0:!1;d?e(this).html(edd_vars.hide_advanced_settings):e(this).html(edd_vars.show_advanced_settings);var a=e(this).parents(".edd-repeatable-row-header");a.siblings(".edd-custom-price-option-sections-wrap").slideToggle();var n;n=d?e(":input:not(input[type=button],input[type=submit],button):visible:first",a.siblings(".edd-custom-price-option-sections-wrap")):e(":input:not(input[type=button],input[type=submit],button):visible:first",a.siblings(".edd-repeatable-row-standard-fields")),n.focus()}),d.init();var a=e(".edd_datepicker");if(a.length>0){var n="mm/dd/yy";a.datepicker({dateFormat:n})}var i={init:function(){this.edit_address(),this.remove_download(),this.add_download(),this.change_customer(),this.new_customer(),this.edit_price(),this.recalculate_total(),this.variable_prices_check(),this.add_note(),this.remove_note(),this.resend_receipt(),this.copy_download_link()},edit_address:function(){e('select[name="edd-payment-address[0][country]"]').change(function(){var t=e(this),d={action:"edd_get_shop_states",country:t.val(),field_name:"edd-payment-address[0][state]"};return e.post(ajaxurl,d,function(t){var d=e("#edd-order-address-state-wrap select, #edd-order-address-state-wrap input");e("#edd-order-address-state-wrap .chosen-container").remove(),"nostates"==t?d.replaceWith('<input type="text" name="edd-payment-address[0][state]" value="" class="edd-edit-toggles medium-text"/>'):d.replaceWith(t)}),!1})},remove_download:function(){e("#edd-purchased-files").on("click",".edd-order-remove-download",function(){var t=e(document.body).find("#edd-purchased-files > .row:not(.header)").length;if(1===t)return alert(edd_vars.one_download_min),!1;if(confirm(edd_vars.delete_payment_download)){var d=e(this).data("key"),a=(e(".edd-payment-id").val(),e('input[name="edd-payment-details-downloads['+d+'][id]"]').val()),n=e('input[name="edd-payment-details-downloads['+d+'][price_id]"]').val(),i=e('input[name="edd-payment-details-downloads['+d+'][quantity]"]').val(),o=e('input[name="edd-payment-details-downloads['+d+'][amount]"]').val();if(e('input[name="edd-payment-details-downloads['+d+'][tax]"]'))var r=e('input[name="edd-payment-details-downloads['+d+'][tax]"]').val();if(e('input[name="edd-payment-details-downloads['+d+'][fees]"]'))var r=e.parseJSON(e('input[name="edd-payment-details-downloads['+d+'][fees]"]').val());var s=e('input[name="edd-payment-removed"]').val();s=e.parseJSON(s),s.length<1&&(s={});var c=[{id:a,price_id:n,quantity:i,amount:o,cart_index:d}];s[d]=c,e('input[name="edd-payment-removed"]').val(JSON.stringify(s)),e(this).parent().parent().remove(),r&&r.length&&e.each(r,function(t,d){e('*li[data-fee-id="'+d+'"]').remove()}),e("#edd-payment-downloads-changed").val(1),e(".edd-order-payment-recalc-totals").show()}return!1})},change_customer:function(){e("#edd-customer-details").on("click",".edd-payment-change-customer, .edd-payment-change-customer-cancel",function(t){t.preventDefault();var d=e(this).hasClass("edd-payment-change-customer"),a=e(this).hasClass("edd-payment-change-customer-cancel");d?(e(".customer-info").hide(),e(".change-customer").show(),e(".edd-payment-change-customer-input").css("width","auto")):a&&(e(".customer-info").show(),e(".change-customer").hide())})},new_customer:function(){e("#edd-customer-details").on("click",".edd-payment-new-customer, .edd-payment-new-customer-cancel",function(t){t.preventDefault();var d=e(this).hasClass("edd-payment-new-customer"),a=e(this).hasClass("edd-payment-new-customer-cancel");d?(e(".customer-info").hide(),e(".new-customer").show()):a&&(e(".customer-info").show(),e(".new-customer").hide());var d=e("#edd-new-customer");e(".new-customer").is(":visible")?d.val(1):d.val(0)})},add_download:function(){e(".edd-edit-purchase-element").on("click","#edd-order-add-download",function(t){t.preventDefault();var d=e("#edd_order_download_select"),a=e("#edd-order-download-quantity"),n=e("#edd-order-download-price"),i=e("#edd-order-download-tax"),o=e(".edd_price_options_select option:selected"),r=d.val(),s=d.find(":selected").text(),c=a.val(),l=n.val(),p=i.val(),u=o.val(),_=o.text();if(1>r)return!1;if(l||(l=0),l=parseFloat(l),isNaN(l))return alert(edd_vars.numeric_item_price),!1;if(p=parseFloat(p),isNaN(p))return alert(edd_vars.numeric_item_tax),!1;if(isNaN(parseInt(c)))return alert(edd_vars.numeric_quantity),!1;_&&(s=s+" - "+_);var m=e("#edd-purchased-files div.row").length,f=e("#edd-purchased-files div.row:last").clone();f.find(".download span").html('<a href="post.php?post='+r+'&action=edit"></a>'),f.find(".download span a").text(s),f.find(".edd-payment-details-download-item-price").val(l.toFixed(edd_vars.currency_decimals)),f.find(".edd-payment-details-download-item-tax").val(p.toFixed(edd_vars.currency_decimals)),f.find("input.edd-payment-details-download-id").val(r),f.find("input.edd-payment-details-download-price-id").val(u);var h=l*c+p;h=h.toFixed(edd_vars.currency_decimals),f.find("span.edd-payment-details-download-amount").text(h),f.find("input.edd-payment-details-download-amount").val(h),f.find("input.edd-payment-details-download-quantity").val(c),f.find("input.edd-payment-details-download-has-log").val(0),f.find(".edd-copy-download-link-wrapper").remove(),f.find("input").each(function(){var t=e(this).attr("name");t=t.replace(/\[(\d+)\]/,"["+parseInt(m)+"]"),e(this).attr("name",t).attr("id",t)}),f.find("a.edd-order-remove-download").attr("data-key",parseInt(m)),e("#edd-payment-downloads-changed").val(1),e(f).insertAfter("#edd-purchased-files div.row:last"),e(".edd-order-payment-recalc-totals").show(),e(".edd-add-download-field").val("")})},edit_price:function(){e(document.body).on("change keyup",".edd-payment-item-input",function(){var t=e(this).parents("ul.edd-purchased-files-list-wrapper");e(".edd-order-payment-recalc-totals").show();var d=t.find("input.edd-payment-details-download-quantity").val().replace(edd_vars.thousands_separator,""),a=t.find("input.edd-payment-details-download-item-price").val().replace(edd_vars.thousands_separator,""),n=t.find("input.edd-payment-details-download-item-tax").val().replace(edd_vars.thousands_separator,"");if(a=parseFloat(a),isNaN(a))return alert(edd_vars.numeric_item_price),!1;n=parseFloat(n),isNaN(n)&&(n=0),isNaN(parseInt(d))&&(d=1);var i=a*d+n;i=i.toFixed(edd_vars.currency_decimals),t.find("input.edd-payment-details-download-amount").val(i),t.find("span.edd-payment-details-download-amount").text(i)})},recalculate_total:function(){e("#edd-order-recalc-total").on("click",function(t){t.preventDefault();var d=0,a=0,n=e("#edd-purchased-files .row input.edd-payment-details-download-amount"),i=e("#edd-purchased-files .row input.edd-payment-details-download-item-tax");n.length&&n.each(function(){d+=parseFloat(e(this).val())}),i.length&&i.each(function(){a+=parseFloat(e(this).val())}),e(".edd-payment-fees").length&&e(".edd-payment-fees span.fee-amount").each(function(){d+=parseFloat(e(this).data("fee"))}),e("input[name=edd-payment-total]").val(d.toFixed(edd_vars.currency_decimals)),e("input[name=edd-payment-tax]").val(a.toFixed(edd_vars.currency_decimals))})},variable_prices_check:function(){e(".edd-edit-purchase-element").on("change","select#edd_order_download_select",function(){var t=e(this),d=t.val();if(parseInt(d)>0){var a={action:"edd_check_for_download_price_variations",download_id:d};e.ajax({type:"POST",data:a,url:ajaxurl,success:function(d){e(".edd_price_options_select").remove(),e(d).insertAfter(t.next())}}).fail(function(e){window.console&&window.console.log&&console.log(e)})}})},add_note:function(){e("#edd-add-payment-note").on("click",function(t){t.preventDefault();var d={action:"edd_insert_payment_note",payment_id:e(this).data("payment-id"),note:e("#edd-payment-note").val()};if(d.note)e.ajax({type:"POST",data:d,url:ajaxurl,success:function(t){e("#edd-payment-notes-inner").append(t),e(".edd-no-payment-notes").hide(),e("#edd-payment-note").val("")}}).fail(function(e){window.console&&window.console.log&&console.log(e)});else{var a=e("#edd-payment-note").css("border-color");e("#edd-payment-note").css("border-color","red"),setTimeout(function(){e("#edd-payment-note").css("border-color",a)},500)}})},remove_note:function(){e(document.body).on("click",".edd-delete-payment-note",function(t){if(t.preventDefault(),confirm(edd_vars.delete_payment_note)){var d={action:"edd_delete_payment_note",payment_id:e(this).data("payment-id"),note_id:e(this).data("note-id")};return e.ajax({type:"POST",data:d,url:ajaxurl,success:function(t){return e("#edd-payment-note-"+d.note_id).remove(),e(".edd-payment-note").length||e(".edd-no-payment-notes").show(),!1}}).fail(function(e){window.console&&window.console.log&&console.log(e)}),!0}})},resend_receipt:function(){var t=e(".edd-order-resend-receipt-addresses");e(document.body).on("click","#edd-select-receipt-email",function(e){e.preventDefault(),t.slideDown()}),e(document.body).on("change",".edd-order-resend-receipt-email",function(){var t=e("#edd-select-receipt-email").prop("href")+"&email="+e(this).val();confirm(edd_vars.resend_receipt)&&(window.location=t)}),e(document.body).on("click","#edd-resend-receipt",function(e){return confirm(edd_vars.resend_receipt)})},copy_download_link:function(){e(document.body).on("click",".edd-copy-download-link",function(t){t.preventDefault();var d=e(this),a={action:"edd_get_file_download_link",payment_id:e('input[name="edd_payment_id"]').val(),download_id:d.data("download-id"),price_id:d.data("price-id")};e.ajax({type:"POST",data:a,url:ajaxurl,success:function(t){return e("#edd-download-link").dialog({width:400}).html('<textarea rows="10" cols="40" id="edd-download-link-textarea">'+t+"</textarea>"),e("#edd-download-link-textarea").focus().select(),!1}}).fail(function(e){window.console&&window.console.log&&console.log(e)})})}};i.init();var o={init:function(){this.type_select(),this.product_requirements()},type_select:function(){e("#edd-edit-discount #edd-type, #edd-add-discount #edd-type").change(function(){var t=e(this).val();e(".edd-amount-description").hide(),e(".edd-amount-description."+t+"-discount").show()})},product_requirements:function(){e("#products").change(function(){var t=e("#edd-discount-product-conditions");e(this).val()?t.show():t.hide()})}};o.init();var r={init:function(){this.date_options(),this.customers_export()},date_options:function(){e("#edd-graphs-date-options").change(function(){var t=e(this),d=e("#edd-date-range-options");"other"===t.val()?d.show():d.hide()})},customers_export:function(){e("#edd_customer_export_download").change(function(){var t=e(this),d=e("option:selected",t).val(),a=e("#edd_customer_export_option");if("0"===t.val()?a.show():a.hide(),0!=parseInt(d)){var n={action:"edd_check_for_download_price_variations",download_id:d,all_prices:!0},i=e(".edd_price_options_select");e.post(ajaxurl,n,function(t){i.remove(),e("#edd_customer_export_download_chosen").after(t)})}else i.remove()})}};r.init();var s={init:function(){this.general(),this.taxes(),this.emails(),this.misc()},general:function(){var t=e(".edd-color-picker");if(t.length&&t.wpColorPicker(),"undefined"==typeof wp||"1"!==edd_vars.new_media_ui){var d=e(".edd_settings_upload_button");d.length>0&&(window.formfield="",e(document.body).on("click",d,function(t){t.preventDefault(),window.formfield=e(this).parent().prev(),window.tbframe_interval=setInterval(function(){jQuery("#TB_iframeContent").contents().find(".savesend .button").val(edd_vars.use_this_file).end().find("#insert-gallery, .wp-post-thumbnail").hide()},2e3),tb_show(edd_vars.add_new_download,"media-upload.php?TB_iframe=true")}),window.edd_send_to_editor=window.send_to_editor,window.send_to_editor=function(t){window.formfield?(imgurl=e("a","<div>"+t+"</div>").attr("href"),window.formfield.val(imgurl),window.clearInterval(window.tbframe_interval),tb_remove()):window.edd_send_to_editor(t),window.send_to_editor=window.edd_send_to_editor,window.formfield="",window.imagefield=!1})}else{var a;window.formfield="",e(document.body).on("click",".edd_settings_upload_button",function(t){t.preventDefault();var d=e(this);return window.formfield=e(this).parent().prev(),a?void a.open():(a=wp.media.frames.file_frame=wp.media({frame:"post",state:"insert",title:d.data("uploader_title"),button:{text:d.data("uploader_button_text")},multiple:!1}),a.on("menu:render:default",function(e){var t={};e.unset("library-separator"),e.unset("gallery"),e.unset("featured-image"),e.unset("embed"),e.set(t)}),a.on("insert",function(){var e=a.state().get("selection");e.each(function(e,t){e=e.toJSON(),window.formfield.val(e.url)})}),void a.open())});var a;window.formfield=""}},taxes:function(){var t=e("select.edd-no-states");t.length&&t.closest("tr").hide(),e('select[name="edd_settings[base_country]"]').change(function(){var t=e(this),d=t.closest("tr"),a={action:"edd_get_shop_states",country:e(this).val(),field_name:"edd_settings[base_state]"};return e.post(ajaxurl,a,function(e){"nostates"==e?d.next().hide():(d.next().show(),d.next().find("select").replaceWith(e))}),!1}),e(document.body).on("change","#edd_tax_rates select.edd-tax-country",function(){var t=e(this),d={action:"edd_get_shop_states",country:e(this).val(),field_name:t.attr("name").replace("country","state")};return e.post(ajaxurl,d,function(e){if("nostates"==e){var a='<input type="text" name="'+d.field_name+'" value=""/>';t.parent().next().find("select").replaceWith(a)}else t.parent().next().find("input,select").show(),t.parent().next().find("input,select").replaceWith(e)}),!1}),e("#edd_add_tax_rate").on("click",function(){var t=e("#edd_tax_rates tr:last"),d=t.clone(),a=t.parent().find("tr").length;return d.find("td input").not(":input[type=checkbox]").val(""),d.find('td [type="checkbox"]').attr("checked",!1),d.find("input, select").each(function(){var t=e(this).attr("name");t=t.replace(/\[(\d+)\]/,"["+parseInt(a)+"]"),e(this).attr("name",t).attr("id",t)}),d.find("label").each(function(){var t=e(this).attr("for");t=t.replace(/\[(\d+)\]/,"["+parseInt(a)+"]"),e(this).attr("for",t)}),d.insertAfter(t),!1}),e(document.body).on("click","#edd_tax_rates .edd_remove_tax_rate",function(){if(confirm(edd_vars.delete_tax_rate)){var t=e("#edd_tax_rates tr:visible"),d=t.length;2===d?(e("#edd_tax_rates select").val(""),e('#edd_tax_rates input[type="text"]').val(""),e('#edd_tax_rates input[type="number"]').val(""),e('#edd_tax_rates input[type="checkbox"]').attr("checked",!1)):e(this).closest("tr").remove(),e("#edd_tax_rates tr").each(function(t){e(this).children().find("input, select").each(function(){var d=e(this).attr("name");d=d.replace(/\[(\d+)\]/,"["+(t-1)+"]"),e(this).attr("name",d).attr("id",d)})})}return!1})},emails:function(){var t=e("#email-preview-wrap");if(t.length){var d=e("#email-preview");t.colorbox({inline:!0,href:d,width:"80%",height:"auto"})}},misc:function(){var t=e('select[name="edd_settings[download_method]"]'),d=t.parent().parent().next();"direct"==t.val()&&(d.hide(),d.find("input").prop("checked",!1)),t.on("change",function(){"direct"==e(this).val()?(d.hide(),d.find("input").prop("checked",!1)):d.show()})}};s.init(),e(".download_page_edd-payment-history .row-actions .delete a, a.edd-delete-payment").on("click",function(){return confirm(edd_vars.delete_payment)?!0:!1}),e("#the-list").on("click",".editinline",function(){var t=e(this).closest("tr").attr("id");t=t.replace("post-","");var d=e("#post-"+t),a=d.find(".column-price .downloadprice-"+t).val();a!=e("#post-"+t+".column-price .downloadprice-"+t).val()?e(".regprice","#edd-download-data").val(a).attr("disabled",!1):e(".regprice","#edd-download-data").val(edd_vars.quick_edit_warning).attr("disabled","disabled")}),e(document.body).on("click","#bulk_edit",function(){var t=e("#bulk-edit"),d=new Array;t.find("#bulk-titles").children().each(function(){d.push(e(this).attr("id").replace(/^(ttle)/i,""))});var a=e('#edd-download-data input[name="_edd_regprice"]').val(),n={action:"edd_save_bulk_edit",edd_bulk_nonce:d,post_ids:d,price:a};e.post(ajaxurl,n)}),e(".edd-select-chosen").chosen({inherit_select_classes:!0,placeholder_text_single:edd_vars.one_option,placeholder_text_multiple:edd_vars.one_or_more_option}),e(".edd-select-chosen .chosen-search input").each(function(){var t=e(this).parent().parent().parent().prev("select.edd-select-chosen"),d=(t.data("search-type"),t.data("search-placeholder"));e(this).attr("placeholder",d)}),e(".chosen-choices").on("click",function(){var t=e(this).parent().prev().data("search-placeholder");t.length||(t=edd_vars.type_to_search),e(this).children("li").children("input").attr("placeholder",t)});var c,l=342;e(document.body).on("keyup",".edd-select.chosen-container .chosen-search input, .edd-select.chosen-container .search-field input",function(t){var d=e(this).val(),a=e(this).closest(".edd-select-chosen"),n=(a.attr("id").replace("_chosen",""),a.prev()),i=a.hasClass("no-bundles"),o=a.hasClass("variations"),r=t.which,s="edd_download_search";if(a.prev().data("search-type")){if("no_ajax"==n.data("search-type"))return;s="edd_"+n.data("search-type")+"_search"}d.length<=3&&"edd_download_search"==s||16==r||13==r||91==r||17==r||37==r||38==r||39==r||40==r||(clearTimeout(c),c=setTimeout(function(){e.ajax({type:"GET",url:ajaxurl,data:{action:s,s:d,no_bundles:i,variations:o},dataType:"json",beforeSend:function(){n.closest("ul.chosen-results").empty()},success:function(t){e("option:not(:selected)",n).remove(),e.each(t,function(t,d){e('option[value="'+d.id+'"]',n).length||n.prepend('<option value="'+d.id+'">'+d.name+"</option>")}),e(".edd-select-chosen").trigger("chosen:updated"),n.next().find("input").val(d)}}).fail(function(e){window.console&&window.console.log&&console.log(e)}).done(function(e){})},l))}),e("#post").on("click",".edd-thickbox",function(){e(".edd-select-chosen","#choose-download").css("width","100%")});var p={init:function(){this.revoke_api_key(),this.regenerate_api_key(),this.create_api_key(),this.recount_stats()},revoke_api_key:function(){e(document.body).on("click",".edd-revoke-api-key",function(e){return confirm(edd_vars.revoke_api_key)})},regenerate_api_key:function(){e(document.body).on("click",".edd-regenerate-api-key",function(e){return confirm(edd_vars.regenerate_api_key)})},create_api_key:function(){e(document.body).on("submit","#api-key-generate-form",function(t){var d=e('input[type="text"][name="user_id"]');d.css("border-color","#ddd");var a=d.val();return a.length<1||0==a?(d.css("border-color","#ff0000"),!1):void 0})},recount_stats:function(){e(document.body).on("change","#recount-stats-type",function(){var t=e("#edd-tools-recount-form"),d=e("option:selected",this).data("type"),a=e("#recount-stats-submit"),n=e("#tools-product-dropdown");if(t.find(".notice-wrap").remove(),a.removeClass("button-disabled").attr("disabled",!1),n.hide(),e(".edd-recount-stats-descriptions span").hide(),"recount-download"===d)n.show(),n.find(".edd-select-chosen").css("width","auto");else if("reset-stats"===d){t.append('<div class="notice-wrap"></div>');var i=t.find(".notice-wrap");i.html('<div class="notice notice-warning"><p><input type="checkbox" id="confirm-reset" name="confirm_reset_store" value="1" /> <label for="confirm-reset">'+edd_vars.reset_stats_warn+"</label></p></div>"),e("#recount-stats-submit").addClass("button-disabled").attr("disabled","disabled")}else n.hide(),n.val(0);e("#"+d).show()}),e(document.body).on("change","#confirm-reset",function(){var t=e(this).is(":checked");t?e("#recount-stats-submit").removeClass("button-disabled").removeAttr("disabled"):e("#recount-stats-submit").addClass("button-disabled").attr("disabled","disabled")}),e("#edd-tools-recount-form").submit(function(t){var d=e("#recount-stats-type").val(),a=e(this),n=e("option:selected",this).data("type");if("reset-stats"===n){var i=e("#confirm-reset").is(":checked");if(i)return!0;r=!0}a.find(".notice-wrap").remove(),a.append('<div class="notice-wrap"></div>');var o=a.find(".notice-wrap"),r=!1;if((null===d||0===d)&&(o.html('<div class="updated error"><p>'+edd_vars.batch_export_no_class+"</p></div>"),r=!0),"recount-download"===n){var s=e('select[name="download_id"]').val();0==s&&(o.html('<div class="updated error"><p>'+edd_vars.batch_export_no_reqs+"</p></div>"),r=!0)}return r?(a.find(".button-disabled").removeClass("button-disabled"),!1):void 0})}};p.init();var u={init:function(){this.submit(),this.dismiss_message()},submit:function(){var t=this;e(document.body).on("submit",".edd-export-form",function(d){d.preventDefault();var a=e(this).find('input[type="submit"]');if(!a.hasClass("button-disabled")){var n=e(this).serialize();a.addClass("button-disabled"),e(this).find(".notice-wrap").remove(),e(this).append('<div class="notice-wrap"><span class="spinner is-active"></span><div class="edd-progress"><div></div></div></div>'),t.process_step(1,n,t)}})},process_step:function(t,d,a){e.ajax({type:"POST",url:ajaxurl,data:{form:d,action:"edd_do_ajax_export",step:t},dataType:"json",success:function(t){if("done"==t.step||t.error||t.success){var n=e(".edd-export-form").find(".edd-progress").parent().parent(),i=n.find(".notice-wrap");if(n.find(".button-disabled").removeClass("button-disabled"),t.error){var o=t.message;i.html('<div class="updated error"><p>'+o+"</p></div>")}else if(t.success){var r=t.message;i.html('<div id="edd-batch-success" class="updated notice is-dismissible"><p>'+r+'<span class="notice-dismiss"></span></p></div>')}else i.remove(),window.location=t.url}else e(".edd-progress div").animate({width:t.percentage+"%"},50,function(){}),a.process_step(parseInt(t.step),d,a)}}).fail(function(e){window.console&&window.console.log&&console.log(e)})},dismiss_message:function(){e(document.body).on("click","#edd-batch-success .notice-dismiss",function(){e("#edd-batch-success").parent().slideUp("fast")})}};u.init();var _={init:function(){this.submit()},submit:function(){var t=this;e(".edd-import-form").ajaxForm({beforeSubmit:t.before_submit,success:t.success,complete:t.complete,dataType:"json",error:t.error})},before_submit:function(t,d,a){if(d.find(".notice-wrap").remove(),d.append('<div class="notice-wrap"><span class="spinner is-active"></span><div class="edd-progress"><div></div></div></div>'),!(window.File&&window.FileReader&&window.FileList&&window.Blob)){var n=e(".edd-import-form").find(".edd-progress").parent().parent(),i=n.find(".notice-wrap");return n.find(".button-disabled").removeClass("button-disabled"),i.html('<div class="update error"><p>'+edd_vars.unsupported_browser+"</p></div>"),!1}},success:function(e,t,d,a){},complete:function(t){var d=jQuery.parseJSON(t.responseText);if(d.success){var a=e(".edd-import-form .notice-wrap").parent();a.find(".edd-import-file-wrap,.notice-wrap").remove(),a.find(".edd-import-options").slideDown();var n=a.find("select.edd-import-csv-column"),i=(n.parent().parent(),""),o=d.data.columns.sort(function(e,t){return t>e?-1:e>t?1:0});e.each(o,function(e,t){i+='<option value="'+t+'">'+t+"</option>"}),n.append(i),n.on("change",function(){var t=e(this).val();t&&0!=d.data.first_row[t]?e(this).parent().next().html(d.data.first_row[t]):e(this).parent().next().html("")}),e(document.body).on("click",".edd-import-proceed",function(e){e.preventDefault(),a.append('<div class="notice-wrap"><span class="spinner is-active"></span><div class="edd-progress"><div></div></div></div>'),d.data.mapping=a.serialize(),_.process_step(1,d.data,self)})}else _.error(t)},error:function(t){var d=jQuery.parseJSON(t.responseText),a=e(".edd-import-form").find(".edd-progress").parent().parent(),n=a.find(".notice-wrap");a.find(".button-disabled").removeClass("button-disabled"),d.data.error?n.html('<div class="update error"><p>'+d.data.error+"</p></div>"):n.remove()},process_step:function(t,d,a){e.ajax({type:"POST",url:ajaxurl,data:{form:d.form,nonce:d.nonce,"class":d["class"],upload:d.upload,mapping:d.mapping,action:"edd_do_ajax_import",step:t},dataType:"json",success:function(t){if("done"==t.data.step||t.data.error){var n=e(".edd-import-form").find(".edd-progress").parent().parent(),i=n.find(".notice-wrap");n.find(".button-disabled").removeClass("button-disabled"),t.data.error?i.html('<div class="update error"><p>'+t.data.error+"</p></div>"):(n.find(".edd-import-options").hide(),e("html, body").animate({scrollTop:n.parent().offset().top},500),i.html('<div class="updated"><p>'+t.data.message+"</p></div>"))}else e(".edd-progress div").animate({width:t.data.percentage+"%"},50,function(){}),_.process_step(parseInt(t.data.step),d,a)}}).fail(function(e){window.console&&window.console.log&&console.log(e)})}};_.init();var m={vars:{customer_card_wrap_editable:e(".edd-customer-card-wrapper .editable"),customer_card_wrap_edit_item:e(".edd-customer-card-wrapper .edit-item"),user_id:e('input[name="customerinfo[user_id]"]'),state_input:e(':input[name="customerinfo[state]"]'),note:e("#customer-note")},init:function(){this.edit_customer(),this.add_email(),this.user_search(),this.remove_user(),this.cancel_edit(),this.change_country(),this.add_note(),this.delete_checked()},edit_customer:function(){e(document.body).on("click","#edit-customer",function(e){e.preventDefault(),m.vars.customer_card_wrap_editable.hide(),m.vars.customer_card_wrap_edit_item.fadeIn().css("display","block")})},add_email:function(){e(document.body).on("click","#add-customer-email",function(t){t.preventDefault();var d=e(this),a=d.parent();a.parent().find(".notice-wrap").remove(),a.find(".spinner").css("visibility","visible"),d.attr("disabled",!0);var n=a.find('input[name="customer-id"]').val(),i=a.find('input[name="additional-email"]').val(),o=a.find('input[name="make-additional-primary"]').is(":checked"),r=a.find('input[name="add_email_nonce"]').val(),s={edd_action:"customer-add-email",customer_id:n,email:i,primary:o,_wpnonce:r};e.post(ajaxurl,s,function(e){!0===e.success?window.location.href=e.redirect:(d.attr("disabled",!1),
2
+ a.after('<div class="notice-wrap"><div class="notice notice-error inline"><p>'+e.message+"</p></div></div>"),a.find(".spinner").css("visibility","hidden"))},"json")})},user_search:function(){e(document.body).on("click.eddSelectUser",".edd_user_search_results a",function(t){t.preventDefault();var d=e(this).data("userid");m.vars.user_id.val(d)})},remove_user:function(){e(document.body).on("click","#disconnect-customer",function(t){t.preventDefault();var d=e('input[name="customerinfo[id]"]').val(),a={edd_action:"disconnect-userid",customer_id:d,_wpnonce:e("#edit-customer-info #_wpnonce").val()};e.post(ajaxurl,a,function(e){window.location.href=window.location.href},"json")})},cancel_edit:function(){e(document.body).on("click","#edd-edit-customer-cancel",function(t){t.preventDefault(),m.vars.customer_card_wrap_edit_item.hide(),m.vars.customer_card_wrap_editable.show(),e(".edd_user_search_results").html("")})},change_country:function(){e('select[name="customerinfo[country]"]').change(function(){var t=e(this),d={action:"edd_get_shop_states",country:t.val(),field_name:"customerinfo[state]"};return e.post(ajaxurl,d,function(e){"nostates"==e?m.vars.state_input.replaceWith('<input type="text" name="'+d.field_name+'" value="" class="edd-edit-toggles medium-text"/>'):m.vars.state_input.replaceWith(e)}),!1})},add_note:function(){e(document.body).on("click","#add-customer-note",function(t){t.preventDefault();var d={edd_action:"add-customer-note",customer_id:e("#customer-id").val(),customer_note:m.vars.note.val(),add_customer_note_nonce:e("#add_customer_note_nonce").val()};if(d.customer_note)e.ajax({type:"POST",data:d,url:ajaxurl,success:function(t){e("#edd-customer-notes").prepend(t),e(".edd-no-customer-notes").hide(),m.vars.note.val("")}}).fail(function(e){window.console&&window.console.log&&console.log(e)});else{var a=m.vars.note.css("border-color");m.vars.note.css("border-color","red"),setTimeout(function(){m.vars.note.css("border-color",a)},500)}})},delete_checked:function(){e("#edd-customer-delete-confirm").change(function(){var t=e("#edd-customer-delete-records"),d=e("#edd-delete-customer");e(this).prop("checked")?(t.attr("disabled",!1),d.attr("disabled",!1)):(t.attr("disabled",!0),t.prop("checked",!1),d.attr("disabled",!0))})}};m.init(),e(".edd-ajax-user-search").keyup(function(){var t=e(this).val(),d="";e(this).data("exclude")&&(d=e(this).data("exclude")),e(".edd-ajax").show();var a={action:"edd_search_users",user_name:t,exclude:d};document.body.style.cursor="wait",e.ajax({type:"POST",data:a,dataType:"json",url:ajaxurl,success:function(t){e(".edd-ajax").hide(),e(".edd_user_search_results").removeClass("hidden"),e(".edd_user_search_results span").html(""),e(t.results).appendTo(".edd_user_search_results span"),document.body.style.cursor="default"}})}),e(document.body).on("click.eddSelectUser",".edd_user_search_results span a",function(t){t.preventDefault();var d=e(this).data("login");e(".edd-ajax-user-search").val(d),e(".edd_user_search_results").addClass("hidden"),e(".edd_user_search_results span").html("")}),e(document.body).on("click.eddCancelUserSearch",".edd_user_search_results a.edd-ajax-user-cancel",function(t){t.preventDefault(),e(".edd-ajax-user-search").val(""),e(".edd_user_search_results").addClass("hidden"),e(".edd_user_search_results span").html("")}),e("#edd_dashboard_sales").length&&e.ajax({type:"GET",data:{action:"edd_load_dashboard_widget"},url:ajaxurl,success:function(t){e("#edd_dashboard_sales .inside").html(t)}}),e(document.body).on("keydown",".customer-note-input",function(t){13==t.keyCode&&(t.metaKey||t.ctrlKey)&&e("#add-customer-note").click()})});var eddFormatCurrency=function(e){var t=parseFloat(e),d=edd_vars.currency,a=edd_vars.currency_decimals;return t.toLocaleString(d,{style:"currency",currency:d,minimumFractionDigits:a,maximumFractionDigits:a})},eddFormatNumber=function(e){var t=parseFloat(e),d=edd_vars.currency;edd_vars.currency_decimals;return t.toLocaleString(d,{style:"decimal",minimumFractionDigits:0,maximumFractionDigits:0})},eddLabelFormatter=function(e,t){return'<div style="font-size:12px; text-align:center; padding:2px">'+e+"</div>"},eddLegendFormatterSales=function(e,t){var d=e.toLowerCase().replace(/\s/g,"-"),a='<div class="edd-legend-color" style="background-color: '+t.color+'"></div>',n='<div class="edd-pie-legend-item">'+e+": "+Math.round(t.percent)+"% ("+eddFormatNumber(t.data[0][1])+")</div>",i='<div id="'+t.edd_vars.id+d+'" class="edd-legend-item-wrapper">'+a+n+"</div>";return jQuery("#edd-pie-legend-"+t.edd_vars.id).append(i),i},eddLegendFormatterEarnings=function(e,t){var d=e.toLowerCase().replace(/\s/g,"-"),a='<div class="edd-legend-color" style="background-color: '+t.color+'"></div>',n='<div class="edd-pie-legend-item">'+e+": "+Math.round(t.percent)+"% ("+eddFormatCurrency(t.data[0][1])+")</div>",i='<div id="'+t.edd_vars.id+d+'" class="edd-legend-item-wrapper">'+a+n+"</div>";return jQuery("#edd-pie-legend-"+t.edd_vars.id).append(i),i};
easy-digital-downloads.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: The easiest way to sell digital products with WordPress.
6
  * Author: Easy Digital Downloads
7
  * Author URI: https://easydigitaldownloads.com
8
- * Version: 2.8.3
9
  * Text Domain: easy-digital-downloads
10
  * Domain Path: languages
11
  *
@@ -25,7 +25,7 @@
25
  * @package EDD
26
  * @category Core
27
  * @author Pippin Williamson
28
- * @version 2.8.3
29
  */
30
 
31
  // Exit if accessed directly.
@@ -206,7 +206,7 @@ final class Easy_Digital_Downloads {
206
 
207
  // Plugin version.
208
  if ( ! defined( 'EDD_VERSION' ) ) {
209
- define( 'EDD_VERSION', '2.8.3' );
210
  }
211
 
212
  // Plugin Folder Path.
5
  * Description: The easiest way to sell digital products with WordPress.
6
  * Author: Easy Digital Downloads
7
  * Author URI: https://easydigitaldownloads.com
8
+ * Version: 2.8.4
9
  * Text Domain: easy-digital-downloads
10
  * Domain Path: languages
11
  *
25
  * @package EDD
26
  * @category Core
27
  * @author Pippin Williamson
28
+ * @version 2.8.4
29
  */
30
 
31
  // Exit if accessed directly.
206
 
207
  // Plugin version.
208
  if ( ! defined( 'EDD_VERSION' ) ) {
209
+ define( 'EDD_VERSION', '2.8.4' );
210
  }
211
 
212
  // Plugin Folder Path.
includes/admin/settings/register-settings.php CHANGED
@@ -863,9 +863,9 @@ function edd_get_registered_settings() {
863
  * @since 1.0.8.2
864
  *
865
  * @param array $input The value inputted in the field
866
- * @global $edd_options Array of all the EDD Options
867
  *
868
- * @return string $input Sanitizied value
869
  */
870
  function edd_settings_sanitize( $input = array() ) {
871
  global $edd_options;
@@ -1000,7 +1000,7 @@ function edd_get_registered_settings_types( $filtered_tab = false, $filtered_sec
1000
  *
1001
  * @since 2.5
1002
  * @param array $input The value inputted in the field
1003
- * @return string $input Sanitizied value
1004
  */
1005
  function edd_settings_sanitize_misc_file_downloads( $input ) {
1006
 
@@ -1022,7 +1022,7 @@ add_filter( 'edd_settings_misc-file_downloads_sanitize', 'edd_settings_sanitize_
1022
  *
1023
  * @since 2.5
1024
  * @param array $input The value inputted in the field
1025
- * @return string $input Sanitizied value
1026
  */
1027
  function edd_settings_sanitize_misc_accounting( $input ) {
1028
 
@@ -1049,7 +1049,7 @@ add_filter( 'edd_settings_misc-accounting_sanitize', 'edd_settings_sanitize_misc
1049
  *
1050
  * @since 1.6
1051
  * @param array $input The value inputted in the field
1052
- * @return string $input Sanitizied value
1053
  */
1054
  function edd_settings_sanitize_taxes( $input ) {
1055
 
@@ -1076,7 +1076,7 @@ add_filter( 'edd_settings_taxes_sanitize', 'edd_settings_sanitize_taxes' );
1076
  *
1077
  * @since 2.7
1078
  * @param array $input The value inputted in the field
1079
- * @return string $input Sanitizied value
1080
  */
1081
  function edd_settings_sanitize_gateways( $input ) {
1082
 
@@ -1114,7 +1114,7 @@ add_filter( 'edd_settings_gateways_sanitize', 'edd_settings_sanitize_gateways' )
1114
  *
1115
  * @since 1.8
1116
  * @param array $input The field value
1117
- * @return string $input Sanitizied value
1118
  */
1119
  function edd_sanitize_text_field( $input ) {
1120
  $tags = array(
@@ -1130,7 +1130,6 @@ function edd_sanitize_text_field( $input ) {
1130
  'href' => array(),
1131
  'title' => array(),
1132
  'class' => array(),
1133
- 'title' => array(),
1134
  'id' => array(),
1135
  ),
1136
  'strong' => array(),
863
  * @since 1.0.8.2
864
  *
865
  * @param array $input The value inputted in the field
866
+ * @global array $edd_options Array of all the EDD Options
867
  *
868
+ * @return string $input Sanitized value
869
  */
870
  function edd_settings_sanitize( $input = array() ) {
871
  global $edd_options;
1000
  *
1001
  * @since 2.5
1002
  * @param array $input The value inputted in the field
1003
+ * @return string $input Sanitized value
1004
  */
1005
  function edd_settings_sanitize_misc_file_downloads( $input ) {
1006
 
1022
  *
1023
  * @since 2.5
1024
  * @param array $input The value inputted in the field
1025
+ * @return string $input Sanitized value
1026
  */
1027
  function edd_settings_sanitize_misc_accounting( $input ) {
1028
 
1049
  *
1050
  * @since 1.6
1051
  * @param array $input The value inputted in the field
1052
+ * @return string $input Sanitized value
1053
  */
1054
  function edd_settings_sanitize_taxes( $input ) {
1055
 
1076
  *
1077
  * @since 2.7
1078
  * @param array $input The value inputted in the field
1079
+ * @return string $input Sanitized value
1080
  */
1081
  function edd_settings_sanitize_gateways( $input ) {
1082
 
1114
  *
1115
  * @since 1.8
1116
  * @param array $input The field value
1117
+ * @return string $input Sanitized value
1118
  */
1119
  function edd_sanitize_text_field( $input ) {
1120
  $tags = array(
1130
  'href' => array(),
1131
  'title' => array(),
1132
  'class' => array(),
 
1133
  'id' => array(),
1134
  ),
1135
  'strong' => array(),
includes/cart/class-edd-cart.php CHANGED
@@ -240,15 +240,21 @@ class EDD_Cart {
240
  $fees = $this->get_fees( 'fee', $item['id'], $price_id );
241
  $subtotal = $item_price * $quantity;
242
 
243
- // Subtotal for tax calculation must bwe exclusive of fees. See $this->get_tax_on_fees()
244
  $subtotal_for_tax = $subtotal;
245
 
246
  foreach ( $fees as $fee ) {
247
  $fee_amount = (float) $fee['amount'];
248
  $subtotal += $fee_amount;
 
 
 
 
 
 
249
  }
250
 
251
- $tax = $this->get_item_tax( $item['id'], $options, $subtotal_for_tax - $discount );
252
 
253
  if ( edd_prices_include_tax() ) {
254
  $subtotal -= round( $tax, edd_currency_decimal_filter() );
240
  $fees = $this->get_fees( 'fee', $item['id'], $price_id );
241
  $subtotal = $item_price * $quantity;
242
 
243
+ // Subtotal for tax calculation must exclude fees that are greater than 0. See $this->get_tax_on_fees()
244
  $subtotal_for_tax = $subtotal;
245
 
246
  foreach ( $fees as $fee ) {
247
  $fee_amount = (float) $fee['amount'];
248
  $subtotal += $fee_amount;
249
+
250
+ if( $fee_amount > 0 ) {
251
+ continue;
252
+ }
253
+
254
+ $subtotal_for_tax += $fee_amount;
255
  }
256
 
257
+ $tax = $this->get_item_tax( $item['id'], $options, $subtotal_for_tax - $discount );
258
 
259
  if ( edd_prices_include_tax() ) {
260
  $subtotal -= round( $tax, edd_currency_decimal_filter() );
includes/error-tracking.php CHANGED
@@ -27,16 +27,25 @@ if ( ! defined( 'ABSPATH' ) ) exit;
27
  function edd_print_errors() {
28
  $errors = edd_get_errors();
29
  if ( $errors ) {
 
30
  $classes = apply_filters( 'edd_error_class', array(
31
  'edd_errors', 'edd-alert', 'edd-alert-error'
32
  ) );
33
- echo '<div class="' . implode( ' ', $classes ) . '">';
34
- // Loop error codes and display errors
35
- foreach ( $errors as $error_id => $error ) {
36
- echo '<p class="edd_error" id="edd_error_' . $error_id . '"><strong>' . __( 'Error', 'easy-digital-downloads' ) . '</strong>: ' . $error . '</p>';
37
- }
38
- echo '</div>';
 
 
 
 
 
 
 
39
  edd_clear_errors();
 
40
  }
41
  }
42
  add_action( 'edd_purchase_form_before_submit', 'edd_print_errors' );
27
  function edd_print_errors() {
28
  $errors = edd_get_errors();
29
  if ( $errors ) {
30
+
31
  $classes = apply_filters( 'edd_error_class', array(
32
  'edd_errors', 'edd-alert', 'edd-alert-error'
33
  ) );
34
+
35
+ if ( ! empty( $errors ) ) {
36
+ echo '<div class="' . implode( ' ', $classes ) . '">';
37
+ // Loop error codes and display errors
38
+ foreach ( $errors as $error_id => $error ) {
39
+
40
+ echo '<p class="edd_error" id="edd_error_' . $error_id . '"><strong>' . __( 'Error', 'easy-digital-downloads' ) . '</strong>: ' . $error . '</p>';
41
+
42
+ }
43
+
44
+ echo '</div>';
45
+ }
46
+
47
  edd_clear_errors();
48
+
49
  }
50
  }
51
  add_action( 'edd_purchase_form_before_submit', 'edd_print_errors' );
includes/payments/actions.php CHANGED
@@ -517,8 +517,9 @@ add_action( 'template_redirect', 'edd_recovery_user_mismatch' );
517
  function edd_recovery_force_login_fields() {
518
  $resuming_payment = EDD()->session->get( 'edd_resume_payment' );
519
  if ( $resuming_payment ) {
520
- $payment = new EDD_Payment( $resuming_payment );
521
- if ( $payment->user_id > 0 && ( ! is_user_logged_in() ) ) {
 
522
  ?>
523
  <div class="edd-alert edd-alert-info">
524
  <p><?php _e( 'To complete this payment, please login to your account.', 'easy-digital-downloads' ); ?></p>
@@ -550,8 +551,11 @@ add_action( 'edd_purchase_form_before_register_login', 'edd_recovery_force_login
550
  function edd_recovery_verify_logged_in( $verified_data, $post_data ) {
551
  $resuming_payment = EDD()->session->get( 'edd_resume_payment' );
552
  if ( $resuming_payment ) {
553
- $payment = new EDD_Payment( $resuming_payment );
554
- if ( ! empty( $payment->user_id ) && ( ! is_user_logged_in() || $payment->user_id != get_current_user_id() ) ) {
 
 
 
555
  edd_set_error( 'recovery_requires_login', __( 'To complete this payment, please login to your account.', 'easy-digital-downloads' ) );
556
  }
557
  }
517
  function edd_recovery_force_login_fields() {
518
  $resuming_payment = EDD()->session->get( 'edd_resume_payment' );
519
  if ( $resuming_payment ) {
520
+ $payment = new EDD_Payment( $resuming_payment );
521
+ $requires_login = edd_no_guest_checkout();
522
+ if ( ( $requires_login && ! is_user_logged_in() ) && ( $payment->user_id > 0 && ( ! is_user_logged_in() ) ) ) {
523
  ?>
524
  <div class="edd-alert edd-alert-info">
525
  <p><?php _e( 'To complete this payment, please login to your account.', 'easy-digital-downloads' ); ?></p>
551
  function edd_recovery_verify_logged_in( $verified_data, $post_data ) {
552
  $resuming_payment = EDD()->session->get( 'edd_resume_payment' );
553
  if ( $resuming_payment ) {
554
+ $payment = new EDD_Payment( $resuming_payment );
555
+ $same_user = ! empty( $payment->user_id ) && ( is_user_logged_in() && $payment->user_id == get_current_user_id() );
556
+ $same_email = strtolower( $payment->email ) === strtolower( $post_data['edd_email'] );
557
+
558
+ if ( ( is_user_logged_in() && ! $same_user ) || ( ! is_user_logged_in() && (int) $payment->user_id > 0 && ! $same_email ) ) {
559
  edd_set_error( 'recovery_requires_login', __( 'To complete this payment, please login to your account.', 'easy-digital-downloads' ) );
560
  }
561
  }
includes/payments/class-edd-payment.php CHANGED
@@ -557,35 +557,7 @@ class EDD_Payment {
557
  $this->ID = $payment_id;
558
  $this->_ID = $payment_id;
559
 
560
- $customer = new stdClass;
561
-
562
- if ( did_action( 'edd_pre_process_purchase' ) && is_user_logged_in() ) {
563
-
564
- $customer = new EDD_customer( get_current_user_id(), true );
565
-
566
- // Customer is logged in but used a different email to purchase with so assign to their customer record
567
- if( ! empty( $customer->id ) && $this->email != $customer->email ) {
568
- $customer->add_email( $this->email );
569
- }
570
-
571
- }
572
-
573
- if ( empty( $customer->id ) ) {
574
- $customer = new EDD_Customer( $this->email );
575
- }
576
-
577
- if ( empty( $customer->id ) ) {
578
-
579
- $customer_data = array(
580
- 'name' => ! is_email( $payment_title ) ? $this->first_name . ' ' . $this->last_name : '',
581
- 'email' => $this->email,
582
- 'user_id' => $this->user_id,
583
- );
584
-
585
- $customer->create( $customer_data );
586
-
587
- }
588
-
589
 
590
  $this->customer_id = $customer->id;
591
  $this->pending['customer_id'] = $this->customer_id;
@@ -641,6 +613,14 @@ class EDD_Payment {
641
  $this->ID = $this->_ID;
642
  }
643
 
 
 
 
 
 
 
 
 
644
  // If we have something pending, let's save it
645
  if ( ! empty( $this->pending ) ) {
646
 
@@ -883,6 +863,8 @@ class EDD_Payment {
883
 
884
  case 'customer_id':
885
  $this->update_meta( '_edd_payment_customer_id', $this->customer_id );
 
 
886
  break;
887
 
888
  case 'user_id':
@@ -1405,14 +1387,15 @@ class EDD_Payment {
1405
  return false;
1406
  }
1407
 
1408
- $new_subtotal = $merged_item['item_price'] * $merged_item['quantity'];
1409
- $merged_item['subtotal'] = $new_subtotal;
1410
- $merged_item['price'] = $new_subtotal + $merged_item['tax'];
1411
 
1412
- $this->cart_details[ $cart_index ] = $merged_item;
1413
- $modified_download = $merged_item;
1414
- $modified_download['action'] = 'modify';
1415
- $modified_download['previous_data'] = $current_args;
 
 
1416
 
1417
  $this->pending['downloads'][] = $modified_download;
1418
 
@@ -2696,4 +2679,46 @@ class EDD_Payment {
2696
  return in_array( $this->status, $in_process_statuses );
2697
  }
2698
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2699
  }
557
  $this->ID = $payment_id;
558
  $this->_ID = $payment_id;
559
 
560
+ $customer = $this->maybe_create_customer();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
561
 
562
  $this->customer_id = $customer->id;
563
  $this->pending['customer_id'] = $this->customer_id;
613
  $this->ID = $this->_ID;
614
  }
615
 
616
+ $customer = $this->maybe_create_customer();
617
+ if ( $this->customer_id != $customer->id ) {
618
+
619
+ $this->customer_id = $customer->id;
620
+ $this->pending['customer_id'] = $this->customer_id;
621
+
622
+ }
623
+
624
  // If we have something pending, let's save it
625
  if ( ! empty( $this->pending ) ) {
626
 
863
 
864
  case 'customer_id':
865
  $this->update_meta( '_edd_payment_customer_id', $this->customer_id );
866
+ $customer = new EDD_Customer( $this->customer_id );
867
+ $customer->attach_payment( $this->ID, false );
868
  break;
869
 
870
  case 'user_id':
1387
  return false;
1388
  }
1389
 
1390
+ // Format the item_price correctly now
1391
+ $merged_item['item_price'] = edd_sanitize_amount( $merged_item['item_price'] );
 
1392
 
1393
+ $new_subtotal = floatval( $merged_item['item_price'] ) * $merged_item['quantity'];
1394
+ $merged_item['price'] = $new_subtotal + $merged_item['tax'];
1395
+ $this->cart_details[ $cart_index ] = $merged_item;
1396
+ $modified_download = $merged_item;
1397
+ $modified_download['action'] = 'modify';
1398
+ $modified_download['previous_data'] = $current_args;
1399
 
1400
  $this->pending['downloads'][] = $modified_download;
1401
 
2679
  return in_array( $this->status, $in_process_statuses );
2680
  }
2681
 
2682
+ /**
2683
+ * Determines if a customer needs to be created given the current payment details.
2684
+ *
2685
+ * @since 2.8.4
2686
+ *
2687
+ * @return EDD_Customer The customer object of the existing customer or new customer.
2688
+ */
2689
+ private function maybe_create_customer() {
2690
+ $customer = new stdClass;
2691
+
2692
+ if ( did_action( 'edd_pre_process_purchase' ) && is_user_logged_in() ) {
2693
+
2694
+ $customer = new EDD_customer( get_current_user_id(), true );
2695
+
2696
+ // Customer is logged in but used a different email to purchase with so assign to their customer record
2697
+ if( ! empty( $customer->id ) && $this->email != $customer->email ) {
2698
+ $customer->add_email( $this->email );
2699
+ }
2700
+
2701
+ }
2702
+
2703
+ if ( empty( $customer->id ) ) {
2704
+ $customer = new EDD_Customer( $this->email );
2705
+ }
2706
+
2707
+ if ( empty( $customer->id ) ) {
2708
+
2709
+ $name = ( ! empty( $this->first_name ) && ! empty( $this->last_name ) ) ? $this->first_name . ' ' . $this->last_name : $this->email;
2710
+
2711
+ $customer_data = array(
2712
+ 'name' => $name,
2713
+ 'email' => $this->email,
2714
+ 'user_id' => $this->user_id,
2715
+ );
2716
+
2717
+ $customer->create( $customer_data );
2718
+
2719
+ }
2720
+
2721
+ return $customer;
2722
+ }
2723
+
2724
  }
includes/payments/functions.php CHANGED
@@ -167,7 +167,6 @@ function edd_insert_payment( $payment_data = array() ) {
167
  }
168
 
169
  if ( $resume_payment ) {
170
-
171
  $payment->date = date( 'Y-m-d G:i:s', current_time( 'timestamp' ) );
172
 
173
  $payment->add_note( __( 'Payment recovery processed', 'easy-digital-downloads' ) );
@@ -185,6 +184,19 @@ function edd_insert_payment( $payment_data = array() ) {
185
  $payment->remove_download( $download['id'], $item_args );
186
  }
187
 
 
 
 
 
 
 
 
 
 
 
 
 
 
188
  // Remove any remainders of possible fees from items.
189
  $payment->save();
190
 
167
  }
168
 
169
  if ( $resume_payment ) {
 
170
  $payment->date = date( 'Y-m-d G:i:s', current_time( 'timestamp' ) );
171
 
172
  $payment->add_note( __( 'Payment recovery processed', 'easy-digital-downloads' ) );
184
  $payment->remove_download( $download['id'], $item_args );
185
  }
186
 
187
+ if ( strtolower( $payment->email ) !== strtolower( $payment_data['user_info']['email'] ) ) {
188
+
189
+ // Remove the payment from the previous customer.
190
+ $previous_customer = new EDD_Customer( $payment->customer_id );
191
+ $previous_customer->remove_payment( $payment->ID, false );
192
+
193
+ // Redefine the email frst and last names.
194
+ $payment->email = $payment_data['user_info']['email'];
195
+ $payment->first_name = $payment_data['user_info']['first_name'];
196
+ $payment->last_name = $payment_data['user_info']['last_name'];
197
+
198
+ }
199
+
200
  // Remove any remainders of possible fees from items.
201
  $payment->save();
202
 
includes/scripts.php CHANGED
@@ -218,6 +218,8 @@ function edd_load_admin_scripts( $hook ) {
218
  'currency_sign' => edd_currency_filter( '' ),
219
  'currency_pos' => edd_get_option( 'currency_position', 'before' ),
220
  'currency_decimals' => edd_currency_decimal_filter(),
 
 
221
  'new_media_ui' => apply_filters( 'edd_use_35_media_ui', 1 ),
222
  'remove_text' => __( 'Remove', 'easy-digital-downloads' ),
223
  'type_to_search' => sprintf( __( 'Type to search %s', 'easy-digital-downloads' ), edd_get_label_plural() ),
218
  'currency_sign' => edd_currency_filter( '' ),
219
  'currency_pos' => edd_get_option( 'currency_position', 'before' ),
220
  'currency_decimals' => edd_currency_decimal_filter(),
221
+ 'decimal_separator' => edd_get_option( 'decimal_separator', '.' ),
222
+ 'thousands_separator' => edd_get_option( 'thousands_separator', ',' ),
223
  'new_media_ui' => apply_filters( 'edd_use_35_media_ui', 1 ),
224
  'remove_text' => __( 'Remove', 'easy-digital-downloads' ),
225
  'type_to_search' => sprintf( __( 'Type to search %s', 'easy-digital-downloads' ), edd_get_label_plural() ),
includes/tax-functions.php CHANGED
@@ -55,7 +55,7 @@ function edd_get_tax_rate( $country = false, $state = false ) {
55
  if( empty( $country ) ) {
56
  if( ! empty( $_POST['billing_country'] ) ) {
57
  $country = $_POST['billing_country'];
58
- } elseif( is_user_logged_in() && ! empty( $user_address ) ) {
59
  $country = $user_address['country'];
60
  }
61
  $country = ! empty( $country ) ? $country : edd_get_shop_country();
@@ -66,7 +66,7 @@ function edd_get_tax_rate( $country = false, $state = false ) {
66
  $state = $_POST['state'];
67
  } elseif( ! empty( $_POST['card_state'] ) ) {
68
  $state = $_POST['card_state'];
69
- } elseif( is_user_logged_in() && ! empty( $user_address ) ) {
70
  $state = $user_address['state'];
71
  }
72
  $state = ! empty( $state ) ? $state : edd_get_shop_state();
55
  if( empty( $country ) ) {
56
  if( ! empty( $_POST['billing_country'] ) ) {
57
  $country = $_POST['billing_country'];
58
+ } elseif( is_user_logged_in() && ! empty( $user_address['country'] ) ) {
59
  $country = $user_address['country'];
60
  }
61
  $country = ! empty( $country ) ? $country : edd_get_shop_country();
66
  $state = $_POST['state'];
67
  } elseif( ! empty( $_POST['card_state'] ) ) {
68
  $state = $_POST['card_state'];
69
+ } elseif( is_user_logged_in() && ! empty( $user_address['state'] ) ) {
70
  $state = $user_address['state'];
71
  }
72
  $state = ! empty( $state ) ? $state : edd_get_shop_state();
includes/user-functions.php CHANGED
@@ -526,23 +526,14 @@ function edd_get_customer_address( $user_id = 0 ) {
526
  $address = array();
527
  }
528
 
529
- if( ! isset( $address['line1'] ) )
530
- $address['line1'] = '';
531
-
532
- if( ! isset( $address['line2'] ) )
533
- $address['line2'] = '';
534
-
535
- if( ! isset( $address['city'] ) )
536
- $address['city'] = '';
537
-
538
- if( ! isset( $address['zip'] ) )
539
- $address['zip'] = '';
540
-
541
- if( ! isset( $address['country'] ) )
542
- $address['country'] = '';
543
-
544
- if( ! isset( $address['state'] ) )
545
- $address['state'] = '';
546
 
547
  return $address;
548
  }
526
  $address = array();
527
  }
528
 
529
+ $address = wp_parse_args( $address, array(
530
+ 'line1' => '',
531
+ 'line2' => '',
532
+ 'city' => '',
533
+ 'zip' => '',
534
+ 'country' => '',
535
+ 'state' => '',
536
+ ) );
 
 
 
 
 
 
 
 
 
537
 
538
  return $address;
539
  }
includes/widgets.php CHANGED
@@ -404,7 +404,7 @@ class EDD_Product_Details_Widget extends WP_Widget {
404
  <!-- Download title -->
405
  <p>
406
  <input <?php checked( $instance['download_title'], 'on' ); ?> id="<?php echo esc_attr( $this->get_field_id( 'download_title' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'download_title' ) ); ?>" type="checkbox" />
407
- <label for="<?php echo esc_attr( $this->get_field_id( 'download_title' ) ); ?>"><?php _e( 'Show Title', 'easy-digital-downloads' ); ?></label>
408
  </p>
409
 
410
  <!-- Show purchase button -->
404
  <!-- Download title -->
405
  <p>
406
  <input <?php checked( $instance['download_title'], 'on' ); ?> id="<?php echo esc_attr( $this->get_field_id( 'download_title' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'download_title' ) ); ?>" type="checkbox" />
407
+ <label for="<?php echo esc_attr( $this->get_field_id( 'download_title' ) ); ?>"><?php printf( __( 'Show %s Title', 'easy-digital-downloads' ), edd_get_label_singular() ); ?></label>
408
  </p>
409
 
410
  <!-- Show purchase button -->
languages/easy-digital-downloads.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the same license as the Easy Digital Downloads package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Easy Digital Downloads 2.8.2\n"
6
  "Report-Msgid-Bugs-To: https://easydigitaldownloads.com/\n"
7
- "POT-Creation-Date: 2017-08-08 16:47:15+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -89,16 +89,16 @@ msgstr ""
89
  #: includes/admin/upgrades/upgrade-functions.php:1098
90
  #: includes/api/class-edd-api.php:1988 includes/api/class-edd-api.php:1993
91
  #: includes/api/class-edd-api.php:2005 includes/api/class-edd-api.php:2007
92
- #: includes/cart/class-edd-cart.php:1461 includes/cart/class-edd-cart.php:1475
93
  #: includes/class-edd-license-handler.php:307
94
  #: includes/deprecated-functions.php:517 includes/deprecated-functions.php:532
95
  #: includes/deprecated-functions.php:542 includes/download-functions.php:1248
96
  #: includes/emails/actions.php:53 includes/emails/template.php:245
97
- #: includes/error-tracking.php:36 includes/gateways/functions.php:221
98
  #: includes/gateways/manual.php:33 includes/gateways/paypal-standard.php:155
99
  #: includes/process-download.php:284 includes/process-download.php:817
100
- #: includes/query-filters.php:48 includes/user-functions.php:887
101
- #: includes/user-functions.php:912 includes/user-functions.php:965
102
  msgid "Error"
103
  msgstr ""
104
 
@@ -173,7 +173,7 @@ msgstr ""
173
 
174
  #: includes/admin/admin-pages.php:43 includes/admin/plugins.php:57
175
  #: includes/admin/settings/contextual-help.php:87
176
- #: includes/admin/settings/register-settings.php:1203
177
  msgid "Extensions"
178
  msgstr ""
179
 
@@ -407,7 +407,7 @@ msgstr ""
407
  #: includes/admin/discounts/class-discount-codes-table.php:289
408
  #: includes/admin/payments/class-payments-table.php:362
409
  #: includes/admin/payments/class-payments-table.php:434
410
- #: includes/payments/functions.php:1583
411
  msgid "Delete"
412
  msgstr ""
413
 
@@ -488,7 +488,7 @@ msgid "An error has occured. Please try again."
488
  msgstr ""
489
 
490
  #: includes/admin/customers/customer-actions.php:207
491
- #: includes/user-functions.php:912
492
  msgid "Nonce verification failed."
493
  msgstr ""
494
 
@@ -598,7 +598,7 @@ msgid "City"
598
  msgstr ""
599
 
600
  #: includes/admin/customers/customers.php:269
601
- #: includes/admin/settings/register-settings.php:2001
602
  #: includes/admin/tools.php:690 includes/checkout/template.php:435
603
  #: templates/shortcode-profile-editor.php:171
604
  msgid "State / Province"
@@ -700,7 +700,7 @@ msgstr ""
700
  #: includes/admin/downloads/metabox.php:698
701
  #: includes/admin/downloads/metabox.php:823
702
  #: includes/admin/payments/view-order-details.php:478
703
- #: includes/admin/settings/register-settings.php:2004 includes/scripts.php:221
704
  #: templates/checkout_cart.php:57 templates/checkout_cart.php:75
705
  #: templates/shortcode-profile-editor.php:123
706
  msgid "Remove"
@@ -1169,12 +1169,12 @@ msgstr ""
1169
 
1170
  #: includes/admin/discounts/contextual-help.php:38
1171
  #: includes/admin/settings/contextual-help.php:42
1172
- #: includes/admin/settings/register-settings.php:1196
1173
- #: includes/admin/settings/register-settings.php:1251
1174
- #: includes/admin/settings/register-settings.php:1256
1175
- #: includes/admin/settings/register-settings.php:1260
1176
- #: includes/admin/settings/register-settings.php:1265
1177
- #: includes/admin/settings/register-settings.php:1268
1178
  #: includes/admin/tools.php:68
1179
  msgid "General"
1180
  msgstr ""
@@ -1518,7 +1518,7 @@ msgstr ""
1518
  msgid "Price ID: %s"
1519
  msgstr ""
1520
 
1521
- #: includes/admin/downloads/metabox.php:433 includes/scripts.php:228
1522
  msgid "Show advanced settings"
1523
  msgstr ""
1524
 
@@ -1869,35 +1869,35 @@ msgid "Completed"
1869
  msgstr ""
1870
 
1871
  #: includes/admin/payments/class-payments-table.php:240
1872
- #: includes/payments/functions.php:737
1873
  msgid "Pending"
1874
  msgstr ""
1875
 
1876
  #: includes/admin/payments/class-payments-table.php:241
1877
- #: includes/payments/functions.php:743
1878
  msgid "Processing"
1879
  msgstr ""
1880
 
1881
  #: includes/admin/payments/class-payments-table.php:242
1882
- #: includes/payments/functions.php:739
1883
  msgid "Refunded"
1884
  msgstr ""
1885
 
1886
  #: includes/admin/payments/class-payments-table.php:243
1887
  #: includes/admin/reporting/export/class-batch-export-earnings-report.php:68
1888
- #: includes/payments/functions.php:742
1889
  msgid "Revoked"
1890
  msgstr ""
1891
 
1892
  #: includes/admin/payments/class-payments-table.php:244
1893
  #: includes/admin/reporting/export/class-batch-export-earnings-report.php:70
1894
- #: includes/payments/functions.php:740
1895
  msgid "Failed"
1896
  msgstr ""
1897
 
1898
  #: includes/admin/payments/class-payments-table.php:245
1899
  #: includes/admin/reporting/export/class-batch-export-earnings-report.php:69
1900
- #: includes/payments/functions.php:741
1901
  msgid "Abandoned"
1902
  msgstr ""
1903
 
@@ -2511,7 +2511,7 @@ msgstr ""
2511
 
2512
  #: includes/admin/reporting/class-export-payments.php:70
2513
  #: includes/admin/reporting/export/class-batch-export-payments.php:50
2514
- #: includes/admin/settings/register-settings.php:2000
2515
  #: includes/admin/tools.php:708 templates/shortcode-profile-editor.php:162
2516
  msgid "Country"
2517
  msgstr ""
@@ -2778,7 +2778,7 @@ msgstr ""
2778
 
2779
  #: includes/admin/reporting/export/class-batch-export-payments.php:63
2780
  #: includes/admin/settings/register-settings.php:340
2781
- #: includes/admin/settings/register-settings.php:1252
2782
  msgid "Currency"
2783
  msgstr ""
2784
 
@@ -2902,7 +2902,7 @@ msgid "Refresh Reports"
2902
  msgstr ""
2903
 
2904
  #: includes/admin/reporting/logs.php:144
2905
- #: includes/admin/settings/register-settings.php:1278
2906
  msgid "File Downloads"
2907
  msgstr ""
2908
 
@@ -2932,7 +2932,7 @@ msgstr ""
2932
 
2933
  #: includes/admin/reporting/reports.php:59
2934
  #: includes/admin/settings/contextual-help.php:71
2935
- #: includes/admin/settings/register-settings.php:1200
2936
  msgid "Taxes"
2937
  msgstr ""
2938
 
@@ -3075,7 +3075,7 @@ msgstr ""
3075
 
3076
  #: includes/admin/settings/contextual-help.php:48
3077
  #: includes/admin/settings/register-settings.php:408
3078
- #: includes/admin/settings/register-settings.php:1197
3079
  msgid "Payment Gateways"
3080
  msgstr ""
3081
 
@@ -3104,7 +3104,7 @@ msgid ""
3104
  msgstr ""
3105
 
3106
  #: includes/admin/settings/contextual-help.php:57
3107
- #: includes/admin/settings/register-settings.php:1198
3108
  msgid "Emails"
3109
  msgstr ""
3110
 
@@ -3124,7 +3124,7 @@ msgid ""
3124
  msgstr ""
3125
 
3126
  #: includes/admin/settings/contextual-help.php:65
3127
- #: includes/admin/settings/register-settings.php:1199
3128
  msgid "Styles"
3129
  msgstr ""
3130
 
@@ -3207,7 +3207,7 @@ msgid ""
3207
  msgstr ""
3208
 
3209
  #: includes/admin/settings/contextual-help.php:93
3210
- #: includes/admin/settings/register-settings.php:1275
3211
  msgid "Miscellaneous"
3212
  msgstr ""
3213
 
@@ -3384,7 +3384,7 @@ msgid "The symbol (usually , or .) to separate decimal points."
3384
  msgstr ""
3385
 
3386
  #: includes/admin/settings/register-settings.php:376
3387
- #: includes/admin/settings/register-settings.php:1253
3388
  msgid "API"
3389
  msgstr ""
3390
 
@@ -4060,171 +4060,171 @@ msgstr ""
4060
  msgid "%s could not be set as the default gateway. It must first be enabled."
4061
  msgstr ""
4062
 
4063
- #: includes/admin/settings/register-settings.php:1206
4064
  msgid "Licenses"
4065
  msgstr ""
4066
 
4067
- #: includes/admin/settings/register-settings.php:1209
4068
  msgid "Misc"
4069
  msgstr ""
4070
 
4071
- #: includes/admin/settings/register-settings.php:1257
4072
  #: includes/gateways/functions.php:25 includes/gateways/paypal-standard.php:33
4073
  msgid "PayPal Standard"
4074
  msgstr ""
4075
 
4076
- #: includes/admin/settings/register-settings.php:1261
4077
  msgid "Purchase Receipts"
4078
  msgstr ""
4079
 
4080
- #: includes/admin/settings/register-settings.php:1262
4081
  msgid "New Sale Notifications"
4082
  msgstr ""
4083
 
4084
- #: includes/admin/settings/register-settings.php:1271
4085
  msgid "Main"
4086
  msgstr ""
4087
 
4088
- #: includes/admin/settings/register-settings.php:1276 includes/install.php:92
4089
  #: includes/template-functions.php:182 templates/widget-cart-checkout.php:6
4090
  #: templates/widget-cart-empty.php:7
4091
  msgid "Checkout"
4092
  msgstr ""
4093
 
4094
- #: includes/admin/settings/register-settings.php:1277
4095
  msgid "Button Text"
4096
  msgstr ""
4097
 
4098
- #: includes/admin/settings/register-settings.php:1279
4099
  msgid "Accounting"
4100
  msgstr ""
4101
 
4102
- #: includes/admin/settings/register-settings.php:1280
4103
  msgid "Terms of Agreement"
4104
  msgstr ""
4105
 
4106
- #: includes/admin/settings/register-settings.php:1522
4107
  msgid ""
4108
  "Don't see what you need? More Payment Gateway options are available <a "
4109
  "href=\"%s\">here</a>."
4110
  msgstr ""
4111
 
4112
- #: includes/admin/settings/register-settings.php:1743
4113
  msgid "The callback function used for the %s setting is missing."
4114
  msgstr ""
4115
 
4116
- #: includes/admin/settings/register-settings.php:1901
4117
  msgid "Upload File"
4118
  msgstr ""
4119
 
4120
- #: includes/admin/settings/register-settings.php:2002
4121
  msgid "Country Wide"
4122
  msgstr ""
4123
 
4124
- #: includes/admin/settings/register-settings.php:2003
4125
  msgid "Rate"
4126
  msgstr ""
4127
 
4128
- #: includes/admin/settings/register-settings.php:2003
4129
  msgid ""
4130
  "<strong>Regional tax rates: </strong>When a customer enters an address on "
4131
  "checkout that matches the specified region for this tax rate, the cart tax "
4132
  "will adjust automatically. Enter a percentage, such as 6.5 for 6.5%."
4133
  msgstr ""
4134
 
4135
- #: includes/admin/settings/register-settings.php:2020
4136
- #: includes/admin/settings/register-settings.php:2065
4137
  msgid "Choose a country"
4138
  msgstr ""
4139
 
4140
- #: includes/admin/settings/register-settings.php:2035
4141
  msgid "Choose a state"
4142
  msgstr ""
4143
 
4144
- #: includes/admin/settings/register-settings.php:2047
4145
- #: includes/admin/settings/register-settings.php:2075
4146
  msgid "Apply to whole country"
4147
  msgstr ""
4148
 
4149
- #: includes/admin/settings/register-settings.php:2050
4150
- #: includes/admin/settings/register-settings.php:2078
4151
  msgid "Remove Rate"
4152
  msgstr ""
4153
 
4154
- #: includes/admin/settings/register-settings.php:2083
4155
  msgid "Add Tax Rate"
4156
  msgstr ""
4157
 
4158
- #: includes/admin/settings/register-settings.php:2136
4159
  msgid ""
4160
  "Your license key expired on %s. Please <a href=\"%s\" "
4161
  "target=\"_blank\">renew your license key</a>."
4162
  msgstr ""
4163
 
4164
- #: includes/admin/settings/register-settings.php:2149
4165
  msgid ""
4166
  "Your license key has been disabled. Please <a href=\"%s\" "
4167
  "target=\"_blank\">contact support</a> for more information."
4168
  msgstr ""
4169
 
4170
- #: includes/admin/settings/register-settings.php:2161
4171
  msgid ""
4172
  "Invalid license. Please <a href=\"%s\" target=\"_blank\">visit your account "
4173
  "page</a> and verify it."
4174
  msgstr ""
4175
 
4176
- #: includes/admin/settings/register-settings.php:2174
4177
  msgid ""
4178
  "Your %s is not active for this URL. Please <a href=\"%s\" "
4179
  "target=\"_blank\">visit your account page</a> to manage your license key "
4180
  "URLs."
4181
  msgstr ""
4182
 
4183
- #: includes/admin/settings/register-settings.php:2186
4184
  msgid "This appears to be an invalid license key for %s."
4185
  msgstr ""
4186
 
4187
- #: includes/admin/settings/register-settings.php:2195
4188
  msgid ""
4189
  "Your license key has reached its activation limit. <a href=\"%s\">View "
4190
  "possible upgrades</a> now."
4191
  msgstr ""
4192
 
4193
- #: includes/admin/settings/register-settings.php:2204
4194
  msgid ""
4195
  "The key you entered belongs to a bundle, please use the product specific "
4196
  "license key."
4197
  msgstr ""
4198
 
4199
- #: includes/admin/settings/register-settings.php:2212
4200
  msgid "unknown_error"
4201
  msgstr ""
4202
 
4203
- #: includes/admin/settings/register-settings.php:2213
4204
  msgid ""
4205
  "There was an error with this license key: %s. Please <a href=\"%s\">contact "
4206
  "our support team</a>."
4207
  msgstr ""
4208
 
4209
- #: includes/admin/settings/register-settings.php:2233
4210
  msgid "License key never expires."
4211
  msgstr ""
4212
 
4213
- #: includes/admin/settings/register-settings.php:2240
4214
  msgid ""
4215
  "Your license key expires soon! It expires on %s. <a href=\"%s\" "
4216
  "target=\"_blank\">Renew your license key</a>."
4217
  msgstr ""
4218
 
4219
- #: includes/admin/settings/register-settings.php:2250
4220
  msgid "Your license key expires on %s."
4221
  msgstr ""
4222
 
4223
- #: includes/admin/settings/register-settings.php:2268
4224
  msgid "To receive updates, please enter your valid %s license key."
4225
  msgstr ""
4226
 
4227
- #: includes/admin/settings/register-settings.php:2281
4228
  msgid "Deactivate License"
4229
  msgstr ""
4230
 
@@ -4323,7 +4323,7 @@ msgstr ""
4323
  msgid "Use these tools to recount / reset store stats."
4324
  msgstr ""
4325
 
4326
- #: includes/admin/tools.php:144 includes/scripts.php:87
4327
  msgid "Please select an option"
4328
  msgstr ""
4329
 
@@ -4831,27 +4831,27 @@ msgstr ""
4831
  msgid "No download logs found!"
4832
  msgstr ""
4833
 
4834
- #: includes/api/class-edd-api.php:1952 includes/user-functions.php:1047
4835
  msgid "Easy Digital Downloads API Keys"
4836
  msgstr ""
4837
 
4838
- #: includes/api/class-edd-api.php:1961 includes/user-functions.php:1052
4839
  msgid "Generate API Key"
4840
  msgstr ""
4841
 
4842
- #: includes/api/class-edd-api.php:1963 includes/user-functions.php:1054
4843
  msgid "Public key:"
4844
  msgstr ""
4845
 
4846
- #: includes/api/class-edd-api.php:1964 includes/user-functions.php:1055
4847
  msgid "Secret key:"
4848
  msgstr ""
4849
 
4850
- #: includes/api/class-edd-api.php:1965 includes/user-functions.php:1056
4851
  msgid "Token:"
4852
  msgstr ""
4853
 
4854
- #: includes/api/class-edd-api.php:1967 includes/user-functions.php:1058
4855
  msgid "Revoke API Keys"
4856
  msgstr ""
4857
 
@@ -4863,32 +4863,32 @@ msgstr ""
4863
  msgid "You do not have permission to %s API keys for this user"
4864
  msgstr ""
4865
 
4866
- #: includes/cart/class-edd-cart.php:902
4867
  msgid "includes %s tax"
4868
  msgstr ""
4869
 
4870
- #: includes/cart/class-edd-cart.php:904
4871
  msgid "excludes %s tax"
4872
  msgstr ""
4873
 
4874
- #: includes/cart/class-edd-cart.php:1424 includes/cart/class-edd-cart.php:1487
4875
  #: templates/shortcode-profile-editor.php:22
4876
  msgid "Success"
4877
  msgstr ""
4878
 
4879
- #: includes/cart/class-edd-cart.php:1425
4880
  msgid "Cart saved successfully. You can restore your cart using this URL:"
4881
  msgstr ""
4882
 
4883
- #: includes/cart/class-edd-cart.php:1461 includes/cart/class-edd-cart.php:1475
4884
  msgid "Cart restoration failed. Invalid token."
4885
  msgstr ""
4886
 
4887
- #: includes/cart/class-edd-cart.php:1469 includes/cart/class-edd-cart.php:1478
4888
  msgid "The cart cannot be restored. Invalid token."
4889
  msgstr ""
4890
 
4891
- #: includes/cart/class-edd-cart.php:1487
4892
  msgid "Cart restored successfully."
4893
  msgstr ""
4894
 
@@ -5131,7 +5131,7 @@ msgid "Enter a coupon code if you have one."
5131
  msgstr ""
5132
 
5133
  #: includes/checkout/template.php:748 includes/process-purchase.php:350
5134
- #: includes/scripts.php:64
5135
  msgid "Enter discount"
5136
  msgstr ""
5137
 
@@ -5319,8 +5319,8 @@ msgstr ""
5319
  msgid "Customer User ID: %s"
5320
  msgstr ""
5321
 
5322
- #: includes/class-edd-cli.php:335 includes/user-functions.php:574
5323
- #: includes/user-functions.php:583
5324
  msgid "Username: %s"
5325
  msgstr ""
5326
 
@@ -5518,7 +5518,7 @@ msgstr ""
5518
  msgid "New Download Product"
5519
  msgstr ""
5520
 
5521
- #: includes/class-edd-html-elements.php:44 includes/scripts.php:211
5522
  msgid "Choose a %s"
5523
  msgstr ""
5524
 
@@ -6691,27 +6691,27 @@ msgstr ""
6691
  msgid "Payment recovery triggered URL"
6692
  msgstr ""
6693
 
6694
- #: includes/payments/actions.php:524 includes/payments/actions.php:555
6695
  msgid "To complete this payment, please login to your account."
6696
  msgstr ""
6697
 
6698
- #: includes/payments/actions.php:526
6699
  msgid "Lost Password"
6700
  msgstr ""
6701
 
6702
- #: includes/payments/actions.php:527 templates/shortcode-login.php:33
6703
  msgid "Lost Password?"
6704
  msgstr ""
6705
 
6706
- #: includes/payments/functions.php:173
6707
  msgid "Payment recovery processed"
6708
  msgstr ""
6709
 
6710
- #: includes/payments/functions.php:738
6711
  msgid "Complete"
6712
  msgstr ""
6713
 
6714
- #: includes/payments/functions.php:1568
6715
  msgid "EDD Bot"
6716
  msgstr ""
6717
 
@@ -7033,7 +7033,7 @@ msgstr ""
7033
  msgid "File not found"
7034
  msgstr ""
7035
 
7036
- #: includes/process-purchase.php:31 includes/scripts.php:85
7037
  msgid "Your cart is empty"
7038
  msgstr ""
7039
 
@@ -7135,151 +7135,151 @@ msgstr ""
7135
  msgid "You do not have permission to view this file."
7136
  msgstr ""
7137
 
7138
- #: includes/scripts.php:62
7139
  msgid "Please select a payment method"
7140
  msgstr ""
7141
 
7142
- #: includes/scripts.php:63
7143
  msgid "Please enter a discount code"
7144
  msgstr ""
7145
 
7146
- #: includes/scripts.php:65
7147
  msgid "Discount Applied"
7148
  msgstr ""
7149
 
7150
- #: includes/scripts.php:66
7151
  msgid "Please enter an email address before applying a discount code"
7152
  msgstr ""
7153
 
7154
- #: includes/scripts.php:67
7155
  msgid "Please enter a username before applying a discount code"
7156
  msgstr ""
7157
 
7158
- #: includes/scripts.php:68
7159
  msgid "Please Wait..."
7160
  msgstr ""
7161
 
7162
- #: includes/scripts.php:84
7163
  msgid "You have already added this item to your cart"
7164
  msgstr ""
7165
 
7166
- #: includes/scripts.php:86 includes/template-functions.php:177
7167
  msgid "Loading"
7168
  msgstr ""
7169
 
7170
- #: includes/scripts.php:197
7171
  msgid "Add New Download"
7172
  msgstr ""
7173
 
7174
- #: includes/scripts.php:198
7175
  msgid "Use This File"
7176
  msgstr ""
7177
 
7178
- #: includes/scripts.php:199
7179
  msgid "Sorry, not available for variable priced products."
7180
  msgstr ""
7181
 
7182
- #: includes/scripts.php:200
7183
  msgid "Are you sure you wish to delete this payment?"
7184
  msgstr ""
7185
 
7186
- #: includes/scripts.php:201
7187
  msgid "Are you sure you wish to delete this note?"
7188
  msgstr ""
7189
 
7190
- #: includes/scripts.php:202
7191
  msgid "Are you sure you wish to delete this tax rate?"
7192
  msgstr ""
7193
 
7194
- #: includes/scripts.php:203
7195
  msgid "Are you sure you wish to revoke this API key?"
7196
  msgstr ""
7197
 
7198
- #: includes/scripts.php:204
7199
  msgid "Are you sure you wish to regenerate this API key?"
7200
  msgstr ""
7201
 
7202
- #: includes/scripts.php:205
7203
  msgid "Are you sure you wish to resend the purchase receipt?"
7204
  msgstr ""
7205
 
7206
- #: includes/scripts.php:206
7207
  msgid "Copy these links to your clipboard and give them to your customer"
7208
  msgstr ""
7209
 
7210
- #: includes/scripts.php:207
7211
  msgid "Are you sure you wish to delete this %s?"
7212
  msgstr ""
7213
 
7214
- #: includes/scripts.php:208
7215
  msgid "You must have at least one price"
7216
  msgstr ""
7217
 
7218
- #: includes/scripts.php:209
7219
  msgid "You must have at least one field"
7220
  msgstr ""
7221
 
7222
- #: includes/scripts.php:210
7223
  msgid "Payments must contain at least one item"
7224
  msgstr ""
7225
 
7226
- #: includes/scripts.php:212
7227
  msgid "Choose one or more %s"
7228
  msgstr ""
7229
 
7230
- #: includes/scripts.php:213
7231
  msgid "Item price must be numeric"
7232
  msgstr ""
7233
 
7234
- #: includes/scripts.php:214
7235
  msgid "Item tax must be numeric"
7236
  msgstr ""
7237
 
7238
- #: includes/scripts.php:215
7239
  msgid "Quantity must be numeric"
7240
  msgstr ""
7241
 
7242
- #: includes/scripts.php:222
7243
  msgid "Type to search %s"
7244
  msgstr ""
7245
 
7246
- #: includes/scripts.php:224
7247
  msgid "You must choose a method."
7248
  msgstr ""
7249
 
7250
- #: includes/scripts.php:225
7251
  msgid "Required fields not completed."
7252
  msgstr ""
7253
 
7254
- #: includes/scripts.php:226
7255
  msgid ""
7256
  "Are you sure you want to reset your store? This process is <strong><em>not "
7257
  "reversible</em></strong>. Please be sure you have a recent backup."
7258
  msgstr ""
7259
 
7260
- #: includes/scripts.php:227
7261
  msgid ""
7262
  "We are sorry but your browser is not compatible with this kind of file "
7263
  "upload. Please upgrade your browser."
7264
  msgstr ""
7265
 
7266
- #: includes/scripts.php:229
7267
  msgid "Hide advanced settings"
7268
  msgstr ""
7269
 
7270
- #: includes/scripts.php:240
7271
  msgid "Purchase Limit Settings"
7272
  msgstr ""
7273
 
7274
- #: includes/scripts.php:241
7275
  msgid "Simple Shipping Settings"
7276
  msgstr ""
7277
 
7278
- #: includes/scripts.php:242
7279
  msgid "Software Licensing Settings"
7280
  msgstr ""
7281
 
7282
- #: includes/scripts.php:243
7283
  msgid "Recurring Payments Settings"
7284
  msgstr ""
7285
 
@@ -7375,51 +7375,51 @@ msgstr ""
7375
  msgid "Plain Text"
7376
  msgstr ""
7377
 
7378
- #: includes/user-functions.php:572
7379
  msgid "[%s] New User Registration"
7380
  msgstr ""
7381
 
7382
- #: includes/user-functions.php:573
7383
  msgid "New user registration"
7384
  msgstr ""
7385
 
7386
- #: includes/user-functions.php:575
7387
  msgid "E-mail: %s"
7388
  msgstr ""
7389
 
7390
- #: includes/user-functions.php:581
7391
  msgid "[%s] Your username and password"
7392
  msgstr ""
7393
 
7394
- #: includes/user-functions.php:582
7395
  msgid "Your account info"
7396
  msgstr ""
7397
 
7398
- #: includes/user-functions.php:586
7399
  msgid "Password entered at checkout"
7400
  msgstr ""
7401
 
7402
- #: includes/user-functions.php:588
7403
  msgid "Password entered at registration"
7404
  msgstr ""
7405
 
7406
- #: includes/user-functions.php:591
7407
  msgid "Password: %s"
7408
  msgstr ""
7409
 
7410
- #: includes/user-functions.php:595
7411
  msgid "Click here to log in"
7412
  msgstr ""
7413
 
7414
- #: includes/user-functions.php:599
7415
  msgid "To log in, visit: %s"
7416
  msgstr ""
7417
 
7418
- #: includes/user-functions.php:755 includes/user-functions.php:756
7419
  msgid "Verify your account"
7420
  msgstr ""
7421
 
7422
- #: includes/user-functions.php:758
7423
  msgid ""
7424
  "Hello %s,\n"
7425
  "\n"
@@ -7429,33 +7429,33 @@ msgid ""
7429
  "Link missing? Visit the following URL: %s"
7430
  msgstr ""
7431
 
7432
- #: includes/user-functions.php:883
7433
  msgid ""
7434
  "Sorry but your account verification link has expired. <a href=\"%s\">Click "
7435
  "here</a> to request a new verification URL."
7436
  msgstr ""
7437
 
7438
- #: includes/user-functions.php:916
7439
  msgid "You must be logged in to verify your account."
7440
  msgstr ""
7441
 
7442
- #: includes/user-functions.php:916 includes/user-functions.php:920
7443
  msgid "Notice"
7444
  msgstr ""
7445
 
7446
- #: includes/user-functions.php:920
7447
  msgid "Your account has already been verified."
7448
  msgstr ""
7449
 
7450
- #: includes/user-functions.php:965
7451
  msgid "Invalid verification token provided."
7452
  msgstr ""
7453
 
7454
- #: includes/user-functions.php:1070
7455
  msgid "Easy Digital Downloads <a href=\"%s\">iOS App</a>"
7456
  msgstr ""
7457
 
7458
- #: includes/user-functions.php:1077
7459
  msgid "Add to iOS App"
7460
  msgstr ""
7461
 
@@ -7528,7 +7528,7 @@ msgid "%s ID"
7528
  msgstr ""
7529
 
7530
  #: includes/widgets.php:407
7531
- msgid "Show Title"
7532
  msgstr ""
7533
 
7534
  #: includes/widgets.php:413
2
  # This file is distributed under the same license as the Easy Digital Downloads package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Easy Digital Downloads 2.8.4\n"
6
  "Report-Msgid-Bugs-To: https://easydigitaldownloads.com/\n"
7
+ "POT-Creation-Date: 2017-08-16 18:16:38+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
89
  #: includes/admin/upgrades/upgrade-functions.php:1098
90
  #: includes/api/class-edd-api.php:1988 includes/api/class-edd-api.php:1993
91
  #: includes/api/class-edd-api.php:2005 includes/api/class-edd-api.php:2007
92
+ #: includes/cart/class-edd-cart.php:1467 includes/cart/class-edd-cart.php:1481
93
  #: includes/class-edd-license-handler.php:307
94
  #: includes/deprecated-functions.php:517 includes/deprecated-functions.php:532
95
  #: includes/deprecated-functions.php:542 includes/download-functions.php:1248
96
  #: includes/emails/actions.php:53 includes/emails/template.php:245
97
+ #: includes/error-tracking.php:40 includes/gateways/functions.php:221
98
  #: includes/gateways/manual.php:33 includes/gateways/paypal-standard.php:155
99
  #: includes/process-download.php:284 includes/process-download.php:817
100
+ #: includes/query-filters.php:48 includes/user-functions.php:878
101
+ #: includes/user-functions.php:903 includes/user-functions.php:956
102
  msgid "Error"
103
  msgstr ""
104
 
173
 
174
  #: includes/admin/admin-pages.php:43 includes/admin/plugins.php:57
175
  #: includes/admin/settings/contextual-help.php:87
176
+ #: includes/admin/settings/register-settings.php:1202
177
  msgid "Extensions"
178
  msgstr ""
179
 
407
  #: includes/admin/discounts/class-discount-codes-table.php:289
408
  #: includes/admin/payments/class-payments-table.php:362
409
  #: includes/admin/payments/class-payments-table.php:434
410
+ #: includes/payments/functions.php:1595
411
  msgid "Delete"
412
  msgstr ""
413
 
488
  msgstr ""
489
 
490
  #: includes/admin/customers/customer-actions.php:207
491
+ #: includes/user-functions.php:903
492
  msgid "Nonce verification failed."
493
  msgstr ""
494
 
598
  msgstr ""
599
 
600
  #: includes/admin/customers/customers.php:269
601
+ #: includes/admin/settings/register-settings.php:2000
602
  #: includes/admin/tools.php:690 includes/checkout/template.php:435
603
  #: templates/shortcode-profile-editor.php:171
604
  msgid "State / Province"
700
  #: includes/admin/downloads/metabox.php:698
701
  #: includes/admin/downloads/metabox.php:823
702
  #: includes/admin/payments/view-order-details.php:478
703
+ #: includes/admin/settings/register-settings.php:2003 includes/scripts.php:224
704
  #: templates/checkout_cart.php:57 templates/checkout_cart.php:75
705
  #: templates/shortcode-profile-editor.php:123
706
  msgid "Remove"
1169
 
1170
  #: includes/admin/discounts/contextual-help.php:38
1171
  #: includes/admin/settings/contextual-help.php:42
1172
+ #: includes/admin/settings/register-settings.php:1195
1173
+ #: includes/admin/settings/register-settings.php:1250
1174
+ #: includes/admin/settings/register-settings.php:1255
1175
+ #: includes/admin/settings/register-settings.php:1259
1176
+ #: includes/admin/settings/register-settings.php:1264
1177
+ #: includes/admin/settings/register-settings.php:1267
1178
  #: includes/admin/tools.php:68
1179
  msgid "General"
1180
  msgstr ""
1518
  msgid "Price ID: %s"
1519
  msgstr ""
1520
 
1521
+ #: includes/admin/downloads/metabox.php:433 includes/scripts.php:231
1522
  msgid "Show advanced settings"
1523
  msgstr ""
1524
 
1869
  msgstr ""
1870
 
1871
  #: includes/admin/payments/class-payments-table.php:240
1872
+ #: includes/payments/functions.php:749
1873
  msgid "Pending"
1874
  msgstr ""
1875
 
1876
  #: includes/admin/payments/class-payments-table.php:241
1877
+ #: includes/payments/functions.php:755
1878
  msgid "Processing"
1879
  msgstr ""
1880
 
1881
  #: includes/admin/payments/class-payments-table.php:242
1882
+ #: includes/payments/functions.php:751
1883
  msgid "Refunded"
1884
  msgstr ""
1885
 
1886
  #: includes/admin/payments/class-payments-table.php:243
1887
  #: includes/admin/reporting/export/class-batch-export-earnings-report.php:68
1888
+ #: includes/payments/functions.php:754
1889
  msgid "Revoked"
1890
  msgstr ""
1891
 
1892
  #: includes/admin/payments/class-payments-table.php:244
1893
  #: includes/admin/reporting/export/class-batch-export-earnings-report.php:70
1894
+ #: includes/payments/functions.php:752
1895
  msgid "Failed"
1896
  msgstr ""
1897
 
1898
  #: includes/admin/payments/class-payments-table.php:245
1899
  #: includes/admin/reporting/export/class-batch-export-earnings-report.php:69
1900
+ #: includes/payments/functions.php:753
1901
  msgid "Abandoned"
1902
  msgstr ""
1903
 
2511
 
2512
  #: includes/admin/reporting/class-export-payments.php:70
2513
  #: includes/admin/reporting/export/class-batch-export-payments.php:50
2514
+ #: includes/admin/settings/register-settings.php:1999
2515
  #: includes/admin/tools.php:708 templates/shortcode-profile-editor.php:162
2516
  msgid "Country"
2517
  msgstr ""
2778
 
2779
  #: includes/admin/reporting/export/class-batch-export-payments.php:63
2780
  #: includes/admin/settings/register-settings.php:340
2781
+ #: includes/admin/settings/register-settings.php:1251
2782
  msgid "Currency"
2783
  msgstr ""
2784
 
2902
  msgstr ""
2903
 
2904
  #: includes/admin/reporting/logs.php:144
2905
+ #: includes/admin/settings/register-settings.php:1277
2906
  msgid "File Downloads"
2907
  msgstr ""
2908
 
2932
 
2933
  #: includes/admin/reporting/reports.php:59
2934
  #: includes/admin/settings/contextual-help.php:71
2935
+ #: includes/admin/settings/register-settings.php:1199
2936
  msgid "Taxes"
2937
  msgstr ""
2938
 
3075
 
3076
  #: includes/admin/settings/contextual-help.php:48
3077
  #: includes/admin/settings/register-settings.php:408
3078
+ #: includes/admin/settings/register-settings.php:1196
3079
  msgid "Payment Gateways"
3080
  msgstr ""
3081
 
3104
  msgstr ""
3105
 
3106
  #: includes/admin/settings/contextual-help.php:57
3107
+ #: includes/admin/settings/register-settings.php:1197
3108
  msgid "Emails"
3109
  msgstr ""
3110
 
3124
  msgstr ""
3125
 
3126
  #: includes/admin/settings/contextual-help.php:65
3127
+ #: includes/admin/settings/register-settings.php:1198
3128
  msgid "Styles"
3129
  msgstr ""
3130
 
3207
  msgstr ""
3208
 
3209
  #: includes/admin/settings/contextual-help.php:93
3210
+ #: includes/admin/settings/register-settings.php:1274
3211
  msgid "Miscellaneous"
3212
  msgstr ""
3213
 
3384
  msgstr ""
3385
 
3386
  #: includes/admin/settings/register-settings.php:376
3387
+ #: includes/admin/settings/register-settings.php:1252
3388
  msgid "API"
3389
  msgstr ""
3390
 
4060
  msgid "%s could not be set as the default gateway. It must first be enabled."
4061
  msgstr ""
4062
 
4063
+ #: includes/admin/settings/register-settings.php:1205
4064
  msgid "Licenses"
4065
  msgstr ""
4066
 
4067
+ #: includes/admin/settings/register-settings.php:1208
4068
  msgid "Misc"
4069
  msgstr ""
4070
 
4071
+ #: includes/admin/settings/register-settings.php:1256
4072
  #: includes/gateways/functions.php:25 includes/gateways/paypal-standard.php:33
4073
  msgid "PayPal Standard"
4074
  msgstr ""
4075
 
4076
+ #: includes/admin/settings/register-settings.php:1260
4077
  msgid "Purchase Receipts"
4078
  msgstr ""
4079
 
4080
+ #: includes/admin/settings/register-settings.php:1261
4081
  msgid "New Sale Notifications"
4082
  msgstr ""
4083
 
4084
+ #: includes/admin/settings/register-settings.php:1270
4085
  msgid "Main"
4086
  msgstr ""
4087
 
4088
+ #: includes/admin/settings/register-settings.php:1275 includes/install.php:92
4089
  #: includes/template-functions.php:182 templates/widget-cart-checkout.php:6
4090
  #: templates/widget-cart-empty.php:7
4091
  msgid "Checkout"
4092
  msgstr ""
4093
 
4094
+ #: includes/admin/settings/register-settings.php:1276
4095
  msgid "Button Text"
4096
  msgstr ""
4097
 
4098
+ #: includes/admin/settings/register-settings.php:1278
4099
  msgid "Accounting"
4100
  msgstr ""
4101
 
4102
+ #: includes/admin/settings/register-settings.php:1279
4103
  msgid "Terms of Agreement"
4104
  msgstr ""
4105
 
4106
+ #: includes/admin/settings/register-settings.php:1521
4107
  msgid ""
4108
  "Don't see what you need? More Payment Gateway options are available <a "
4109
  "href=\"%s\">here</a>."
4110
  msgstr ""
4111
 
4112
+ #: includes/admin/settings/register-settings.php:1742
4113
  msgid "The callback function used for the %s setting is missing."
4114
  msgstr ""
4115
 
4116
+ #: includes/admin/settings/register-settings.php:1900
4117
  msgid "Upload File"
4118
  msgstr ""
4119
 
4120
+ #: includes/admin/settings/register-settings.php:2001
4121
  msgid "Country Wide"
4122
  msgstr ""
4123
 
4124
+ #: includes/admin/settings/register-settings.php:2002
4125
  msgid "Rate"
4126
  msgstr ""
4127
 
4128
+ #: includes/admin/settings/register-settings.php:2002
4129
  msgid ""
4130
  "<strong>Regional tax rates: </strong>When a customer enters an address on "
4131
  "checkout that matches the specified region for this tax rate, the cart tax "
4132
  "will adjust automatically. Enter a percentage, such as 6.5 for 6.5%."
4133
  msgstr ""
4134
 
4135
+ #: includes/admin/settings/register-settings.php:2019
4136
+ #: includes/admin/settings/register-settings.php:2064
4137
  msgid "Choose a country"
4138
  msgstr ""
4139
 
4140
+ #: includes/admin/settings/register-settings.php:2034
4141
  msgid "Choose a state"
4142
  msgstr ""
4143
 
4144
+ #: includes/admin/settings/register-settings.php:2046
4145
+ #: includes/admin/settings/register-settings.php:2074
4146
  msgid "Apply to whole country"
4147
  msgstr ""
4148
 
4149
+ #: includes/admin/settings/register-settings.php:2049
4150
+ #: includes/admin/settings/register-settings.php:2077
4151
  msgid "Remove Rate"
4152
  msgstr ""
4153
 
4154
+ #: includes/admin/settings/register-settings.php:2082
4155
  msgid "Add Tax Rate"
4156
  msgstr ""
4157
 
4158
+ #: includes/admin/settings/register-settings.php:2135
4159
  msgid ""
4160
  "Your license key expired on %s. Please <a href=\"%s\" "
4161
  "target=\"_blank\">renew your license key</a>."
4162
  msgstr ""
4163
 
4164
+ #: includes/admin/settings/register-settings.php:2148
4165
  msgid ""
4166
  "Your license key has been disabled. Please <a href=\"%s\" "
4167
  "target=\"_blank\">contact support</a> for more information."
4168
  msgstr ""
4169
 
4170
+ #: includes/admin/settings/register-settings.php:2160
4171
  msgid ""
4172
  "Invalid license. Please <a href=\"%s\" target=\"_blank\">visit your account "
4173
  "page</a> and verify it."
4174
  msgstr ""
4175
 
4176
+ #: includes/admin/settings/register-settings.php:2173
4177
  msgid ""
4178
  "Your %s is not active for this URL. Please <a href=\"%s\" "
4179
  "target=\"_blank\">visit your account page</a> to manage your license key "
4180
  "URLs."
4181
  msgstr ""
4182
 
4183
+ #: includes/admin/settings/register-settings.php:2185
4184
  msgid "This appears to be an invalid license key for %s."
4185
  msgstr ""
4186
 
4187
+ #: includes/admin/settings/register-settings.php:2194
4188
  msgid ""
4189
  "Your license key has reached its activation limit. <a href=\"%s\">View "
4190
  "possible upgrades</a> now."
4191
  msgstr ""
4192
 
4193
+ #: includes/admin/settings/register-settings.php:2203
4194
  msgid ""
4195
  "The key you entered belongs to a bundle, please use the product specific "
4196
  "license key."
4197
  msgstr ""
4198
 
4199
+ #: includes/admin/settings/register-settings.php:2211
4200
  msgid "unknown_error"
4201
  msgstr ""
4202
 
4203
+ #: includes/admin/settings/register-settings.php:2212
4204
  msgid ""
4205
  "There was an error with this license key: %s. Please <a href=\"%s\">contact "
4206
  "our support team</a>."
4207
  msgstr ""
4208
 
4209
+ #: includes/admin/settings/register-settings.php:2232
4210
  msgid "License key never expires."
4211
  msgstr ""
4212
 
4213
+ #: includes/admin/settings/register-settings.php:2239
4214
  msgid ""
4215
  "Your license key expires soon! It expires on %s. <a href=\"%s\" "
4216
  "target=\"_blank\">Renew your license key</a>."
4217
  msgstr ""
4218
 
4219
+ #: includes/admin/settings/register-settings.php:2249
4220
  msgid "Your license key expires on %s."
4221
  msgstr ""
4222
 
4223
+ #: includes/admin/settings/register-settings.php:2267
4224
  msgid "To receive updates, please enter your valid %s license key."
4225
  msgstr ""
4226
 
4227
+ #: includes/admin/settings/register-settings.php:2280
4228
  msgid "Deactivate License"
4229
  msgstr ""
4230
 
4323
  msgid "Use these tools to recount / reset store stats."
4324
  msgstr ""
4325
 
4326
+ #: includes/admin/tools.php:144 includes/scripts.php:88
4327
  msgid "Please select an option"
4328
  msgstr ""
4329
 
4831
  msgid "No download logs found!"
4832
  msgstr ""
4833
 
4834
+ #: includes/api/class-edd-api.php:1952 includes/user-functions.php:1038
4835
  msgid "Easy Digital Downloads API Keys"
4836
  msgstr ""
4837
 
4838
+ #: includes/api/class-edd-api.php:1961 includes/user-functions.php:1043
4839
  msgid "Generate API Key"
4840
  msgstr ""
4841
 
4842
+ #: includes/api/class-edd-api.php:1963 includes/user-functions.php:1045
4843
  msgid "Public key:"
4844
  msgstr ""
4845
 
4846
+ #: includes/api/class-edd-api.php:1964 includes/user-functions.php:1046
4847
  msgid "Secret key:"
4848
  msgstr ""
4849
 
4850
+ #: includes/api/class-edd-api.php:1965 includes/user-functions.php:1047
4851
  msgid "Token:"
4852
  msgstr ""
4853
 
4854
+ #: includes/api/class-edd-api.php:1967 includes/user-functions.php:1049
4855
  msgid "Revoke API Keys"
4856
  msgstr ""
4857
 
4863
  msgid "You do not have permission to %s API keys for this user"
4864
  msgstr ""
4865
 
4866
+ #: includes/cart/class-edd-cart.php:908
4867
  msgid "includes %s tax"
4868
  msgstr ""
4869
 
4870
+ #: includes/cart/class-edd-cart.php:910
4871
  msgid "excludes %s tax"
4872
  msgstr ""
4873
 
4874
+ #: includes/cart/class-edd-cart.php:1430 includes/cart/class-edd-cart.php:1493
4875
  #: templates/shortcode-profile-editor.php:22
4876
  msgid "Success"
4877
  msgstr ""
4878
 
4879
+ #: includes/cart/class-edd-cart.php:1431
4880
  msgid "Cart saved successfully. You can restore your cart using this URL:"
4881
  msgstr ""
4882
 
4883
+ #: includes/cart/class-edd-cart.php:1467 includes/cart/class-edd-cart.php:1481
4884
  msgid "Cart restoration failed. Invalid token."
4885
  msgstr ""
4886
 
4887
+ #: includes/cart/class-edd-cart.php:1475 includes/cart/class-edd-cart.php:1484
4888
  msgid "The cart cannot be restored. Invalid token."
4889
  msgstr ""
4890
 
4891
+ #: includes/cart/class-edd-cart.php:1493
4892
  msgid "Cart restored successfully."
4893
  msgstr ""
4894
 
5131
  msgstr ""
5132
 
5133
  #: includes/checkout/template.php:748 includes/process-purchase.php:350
5134
+ #: includes/scripts.php:65
5135
  msgid "Enter discount"
5136
  msgstr ""
5137
 
5319
  msgid "Customer User ID: %s"
5320
  msgstr ""
5321
 
5322
+ #: includes/class-edd-cli.php:335 includes/user-functions.php:565
5323
+ #: includes/user-functions.php:574
5324
  msgid "Username: %s"
5325
  msgstr ""
5326
 
5518
  msgid "New Download Product"
5519
  msgstr ""
5520
 
5521
+ #: includes/class-edd-html-elements.php:44 includes/scripts.php:212
5522
  msgid "Choose a %s"
5523
  msgstr ""
5524
 
6691
  msgid "Payment recovery triggered URL"
6692
  msgstr ""
6693
 
6694
+ #: includes/payments/actions.php:525 includes/payments/actions.php:559
6695
  msgid "To complete this payment, please login to your account."
6696
  msgstr ""
6697
 
6698
+ #: includes/payments/actions.php:527
6699
  msgid "Lost Password"
6700
  msgstr ""
6701
 
6702
+ #: includes/payments/actions.php:528 templates/shortcode-login.php:33
6703
  msgid "Lost Password?"
6704
  msgstr ""
6705
 
6706
+ #: includes/payments/functions.php:172
6707
  msgid "Payment recovery processed"
6708
  msgstr ""
6709
 
6710
+ #: includes/payments/functions.php:750
6711
  msgid "Complete"
6712
  msgstr ""
6713
 
6714
+ #: includes/payments/functions.php:1580
6715
  msgid "EDD Bot"
6716
  msgstr ""
6717
 
7033
  msgid "File not found"
7034
  msgstr ""
7035
 
7036
+ #: includes/process-purchase.php:31 includes/scripts.php:86
7037
  msgid "Your cart is empty"
7038
  msgstr ""
7039
 
7135
  msgid "You do not have permission to view this file."
7136
  msgstr ""
7137
 
7138
+ #: includes/scripts.php:63
7139
  msgid "Please select a payment method"
7140
  msgstr ""
7141
 
7142
+ #: includes/scripts.php:64
7143
  msgid "Please enter a discount code"
7144
  msgstr ""
7145
 
7146
+ #: includes/scripts.php:66
7147
  msgid "Discount Applied"
7148
  msgstr ""
7149
 
7150
+ #: includes/scripts.php:67
7151
  msgid "Please enter an email address before applying a discount code"
7152
  msgstr ""
7153
 
7154
+ #: includes/scripts.php:68
7155
  msgid "Please enter a username before applying a discount code"
7156
  msgstr ""
7157
 
7158
+ #: includes/scripts.php:69
7159
  msgid "Please Wait..."
7160
  msgstr ""
7161
 
7162
+ #: includes/scripts.php:85
7163
  msgid "You have already added this item to your cart"
7164
  msgstr ""
7165
 
7166
+ #: includes/scripts.php:87 includes/template-functions.php:177
7167
  msgid "Loading"
7168
  msgstr ""
7169
 
7170
+ #: includes/scripts.php:198
7171
  msgid "Add New Download"
7172
  msgstr ""
7173
 
7174
+ #: includes/scripts.php:199
7175
  msgid "Use This File"
7176
  msgstr ""
7177
 
7178
+ #: includes/scripts.php:200
7179
  msgid "Sorry, not available for variable priced products."
7180
  msgstr ""
7181
 
7182
+ #: includes/scripts.php:201
7183
  msgid "Are you sure you wish to delete this payment?"
7184
  msgstr ""
7185
 
7186
+ #: includes/scripts.php:202
7187
  msgid "Are you sure you wish to delete this note?"
7188
  msgstr ""
7189
 
7190
+ #: includes/scripts.php:203
7191
  msgid "Are you sure you wish to delete this tax rate?"
7192
  msgstr ""
7193
 
7194
+ #: includes/scripts.php:204
7195
  msgid "Are you sure you wish to revoke this API key?"
7196
  msgstr ""
7197
 
7198
+ #: includes/scripts.php:205
7199
  msgid "Are you sure you wish to regenerate this API key?"
7200
  msgstr ""
7201
 
7202
+ #: includes/scripts.php:206
7203
  msgid "Are you sure you wish to resend the purchase receipt?"
7204
  msgstr ""
7205
 
7206
+ #: includes/scripts.php:207
7207
  msgid "Copy these links to your clipboard and give them to your customer"
7208
  msgstr ""
7209
 
7210
+ #: includes/scripts.php:208
7211
  msgid "Are you sure you wish to delete this %s?"
7212
  msgstr ""
7213
 
7214
+ #: includes/scripts.php:209
7215
  msgid "You must have at least one price"
7216
  msgstr ""
7217
 
7218
+ #: includes/scripts.php:210
7219
  msgid "You must have at least one field"
7220
  msgstr ""
7221
 
7222
+ #: includes/scripts.php:211
7223
  msgid "Payments must contain at least one item"
7224
  msgstr ""
7225
 
7226
+ #: includes/scripts.php:213
7227
  msgid "Choose one or more %s"
7228
  msgstr ""
7229
 
7230
+ #: includes/scripts.php:214
7231
  msgid "Item price must be numeric"
7232
  msgstr ""
7233
 
7234
+ #: includes/scripts.php:215
7235
  msgid "Item tax must be numeric"
7236
  msgstr ""
7237
 
7238
+ #: includes/scripts.php:216
7239
  msgid "Quantity must be numeric"
7240
  msgstr ""
7241
 
7242
+ #: includes/scripts.php:225
7243
  msgid "Type to search %s"
7244
  msgstr ""
7245
 
7246
+ #: includes/scripts.php:227
7247
  msgid "You must choose a method."
7248
  msgstr ""
7249
 
7250
+ #: includes/scripts.php:228
7251
  msgid "Required fields not completed."
7252
  msgstr ""
7253
 
7254
+ #: includes/scripts.php:229
7255
  msgid ""
7256
  "Are you sure you want to reset your store? This process is <strong><em>not "
7257
  "reversible</em></strong>. Please be sure you have a recent backup."
7258
  msgstr ""
7259
 
7260
+ #: includes/scripts.php:230
7261
  msgid ""
7262
  "We are sorry but your browser is not compatible with this kind of file "
7263
  "upload. Please upgrade your browser."
7264
  msgstr ""
7265
 
7266
+ #: includes/scripts.php:232
7267
  msgid "Hide advanced settings"
7268
  msgstr ""
7269
 
7270
+ #: includes/scripts.php:243
7271
  msgid "Purchase Limit Settings"
7272
  msgstr ""
7273
 
7274
+ #: includes/scripts.php:244
7275
  msgid "Simple Shipping Settings"
7276
  msgstr ""
7277
 
7278
+ #: includes/scripts.php:245
7279
  msgid "Software Licensing Settings"
7280
  msgstr ""
7281
 
7282
+ #: includes/scripts.php:246
7283
  msgid "Recurring Payments Settings"
7284
  msgstr ""
7285
 
7375
  msgid "Plain Text"
7376
  msgstr ""
7377
 
7378
+ #: includes/user-functions.php:563
7379
  msgid "[%s] New User Registration"
7380
  msgstr ""
7381
 
7382
+ #: includes/user-functions.php:564
7383
  msgid "New user registration"
7384
  msgstr ""
7385
 
7386
+ #: includes/user-functions.php:566
7387
  msgid "E-mail: %s"
7388
  msgstr ""
7389
 
7390
+ #: includes/user-functions.php:572
7391
  msgid "[%s] Your username and password"
7392
  msgstr ""
7393
 
7394
+ #: includes/user-functions.php:573
7395
  msgid "Your account info"
7396
  msgstr ""
7397
 
7398
+ #: includes/user-functions.php:577
7399
  msgid "Password entered at checkout"
7400
  msgstr ""
7401
 
7402
+ #: includes/user-functions.php:579
7403
  msgid "Password entered at registration"
7404
  msgstr ""
7405
 
7406
+ #: includes/user-functions.php:582
7407
  msgid "Password: %s"
7408
  msgstr ""
7409
 
7410
+ #: includes/user-functions.php:586
7411
  msgid "Click here to log in"
7412
  msgstr ""
7413
 
7414
+ #: includes/user-functions.php:590
7415
  msgid "To log in, visit: %s"
7416
  msgstr ""
7417
 
7418
+ #: includes/user-functions.php:746 includes/user-functions.php:747
7419
  msgid "Verify your account"
7420
  msgstr ""
7421
 
7422
+ #: includes/user-functions.php:749
7423
  msgid ""
7424
  "Hello %s,\n"
7425
  "\n"
7429
  "Link missing? Visit the following URL: %s"
7430
  msgstr ""
7431
 
7432
+ #: includes/user-functions.php:874
7433
  msgid ""
7434
  "Sorry but your account verification link has expired. <a href=\"%s\">Click "
7435
  "here</a> to request a new verification URL."
7436
  msgstr ""
7437
 
7438
+ #: includes/user-functions.php:907
7439
  msgid "You must be logged in to verify your account."
7440
  msgstr ""
7441
 
7442
+ #: includes/user-functions.php:907 includes/user-functions.php:911
7443
  msgid "Notice"
7444
  msgstr ""
7445
 
7446
+ #: includes/user-functions.php:911
7447
  msgid "Your account has already been verified."
7448
  msgstr ""
7449
 
7450
+ #: includes/user-functions.php:956
7451
  msgid "Invalid verification token provided."
7452
  msgstr ""
7453
 
7454
+ #: includes/user-functions.php:1061
7455
  msgid "Easy Digital Downloads <a href=\"%s\">iOS App</a>"
7456
  msgstr ""
7457
 
7458
+ #: includes/user-functions.php:1068
7459
  msgid "Add to iOS App"
7460
  msgstr ""
7461
 
7528
  msgstr ""
7529
 
7530
  #: includes/widgets.php:407
7531
+ msgid "Show %s Title"
7532
  msgstr ""
7533
 
7534
  #: includes/widgets.php:413
readme.txt CHANGED
@@ -6,7 +6,7 @@ Donate link: https://easydigitaldownloads.com/donate/
6
  Tags: download, downloads, e-store, eshop, digital downloads, e-commerce, wp-ecommerce, wp ecommerce, ecommerce, ebook
7
  Requires at least: 4.4
8
  Tested up to: 4.9
9
- Stable Tag: 2.8.3
10
  License: GNU Version 2 or Any Later Version
11
 
12
  The easiest way to sell digital products with WordPress.
@@ -213,7 +213,18 @@ Yes. Easy Digital Downloads also includes default support for Amazon Payments an
213
 
214
  == Changelog ==
215
 
 
 
 
 
 
 
 
 
 
 
216
  = 2.8.3, August 9, 2017 =
 
217
  * Fix: Update HTML5 pattern on card field to account for whitespace.
218
  * Fix: Don't enqueue jQuery.payment by default, allow gateways to enqueue when supported.
219
 
@@ -228,7 +239,7 @@ Yes. Easy Digital Downloads also includes default support for Amazon Payments an
228
  * Fix: Discounts with multiple exclusions could be applied to excluded products.
229
  * Fix: Customer query pagination did not work correctly.
230
  * Fix: Removed custom widths on the primary column of list table.
231
- * Fix: 'Processing' status in Payments list table shows empty brackets when no processign payments.
232
  * Fix: Billing fields were unnecessarily validated when cart total was $0.
233
  * Fix: WPLANG is deprecated, use get_locale() instead.
234
  * Fix: Prevent duplicate queries when edd_get_purchase_id_by_key() is called more than once for the same payment key.
6
  Tags: download, downloads, e-store, eshop, digital downloads, e-commerce, wp-ecommerce, wp ecommerce, ecommerce, ebook
7
  Requires at least: 4.4
8
  Tested up to: 4.9
9
+ Stable Tag: 2.8.4
10
  License: GNU Version 2 or Any Later Version
11
 
12
  The easiest way to sell digital products with WordPress.
213
 
214
  == Changelog ==
215
 
216
+ = 2.8.4, August 16, 2017 =
217
+
218
+ * Fix: Minor improvements to edd_get_customer_address() function.
219
+ * Fix: Negative product fees were not properly affecting subtotal used for tax calculations.
220
+ * Fix: Editing item price on a payment caused incorrect calculations when item price contained thousands separators.
221
+ * Fix: Download History shortcode was incorrectly using get_the_title instead of the supplied name.
222
+ * Fix: Resuming payment for guest payments while logged out could incorrectly prompt the user to login.
223
+ * Tweak: Download Details widget edit form used generic 'Show Title' instead of 'Show Download Title'.
224
+ * Tweak: Product Notes metabox field wasn't full width.
225
+
226
  = 2.8.3, August 9, 2017 =
227
+
228
  * Fix: Update HTML5 pattern on card field to account for whitespace.
229
  * Fix: Don't enqueue jQuery.payment by default, allow gateways to enqueue when supported.
230
 
239
  * Fix: Discounts with multiple exclusions could be applied to excluded products.
240
  * Fix: Customer query pagination did not work correctly.
241
  * Fix: Removed custom widths on the primary column of list table.
242
+ * Fix: 'Processing' status in Payments list table shows empty brackets when no processing payments.
243
  * Fix: Billing fields were unnecessarily validated when cart total was $0.
244
  * Fix: WPLANG is deprecated, use get_locale() instead.
245
  * Fix: Prevent duplicate queries when edd_get_purchase_id_by_key() is called more than once for the same payment key.
templates/history-downloads.php CHANGED
@@ -37,7 +37,7 @@ if ( $purchases ) :
37
  <?php
38
  $price_id = edd_get_cart_item_price_id( $download );
39
  $download_files = edd_get_download_files( $download['id'], $price_id );
40
- $name = get_the_title( $download['id'] );
41
 
42
  // Retrieve and append the price option name
43
  if ( ! empty( $price_id ) && 0 !== $price_id ) {
37
  <?php
38
  $price_id = edd_get_cart_item_price_id( $download );
39
  $download_files = edd_get_download_files( $download['id'], $price_id );
40
+ $name = $download['name'];
41
 
42
  // Retrieve and append the price option name
43
  if ( ! empty( $price_id ) && 0 !== $price_id ) {
templates/shortcode-profile-editor.php CHANGED
@@ -11,7 +11,7 @@ if ( is_user_logged_in() ):
11
  $display_name = $current_user->display_name;
12
  $address = edd_get_customer_address( $user_id );
13
  $states = edd_get_shop_states( $address['country'] );
14
- $state = ( ! empty( $address['state'] ) ) ? $address['state'] : '';
15
 
16
  if ( edd_is_cart_saved() ): ?>
17
  <?php $restore_url = add_query_arg( array( 'edd_action' => 'restore_cart', 'edd_cart_token' => edd_get_cart_token() ), edd_get_checkout_uri() ); ?>
11
  $display_name = $current_user->display_name;
12
  $address = edd_get_customer_address( $user_id );
13
  $states = edd_get_shop_states( $address['country'] );
14
+ $state = $address['state'];
15
 
16
  if ( edd_is_cart_saved() ): ?>
17
  <?php $restore_url = add_query_arg( array( 'edd_action' => 'restore_cart', 'edd_cart_token' => edd_get_cart_token() ), edd_get_checkout_uri() ); ?>