diff --git a/wp-content/plugins/easy-digital-downloads/assets/css/edd-admin-rtl.min.css b/wp-content/plugins/easy-digital-downloads/assets/css/edd-admin-rtl.min.css index 4befe0f6..19be3e24 100644 --- a/wp-content/plugins/easy-digital-downloads/assets/css/edd-admin-rtl.min.css +++ b/wp-content/plugins/easy-digital-downloads/assets/css/edd-admin-rtl.min.css @@ -1 +1 @@ -.edd-custom-price-option-sections-wrap{display:none;border:1px solid #c3c4c7;border-top:0 solid #c3c4c7;box-sizing:border-box;width:100%}.edd-custom-price-option-section{display:block;padding:10px 8px;border-bottom:1px solid hsla(0,0%,87.1%,.3)}.edd-custom-price-option-section-title{display:block;font-weight:600;padding:0 0 10px}.edd-custom-price-option-section-content{display:flex;gap:12px;margin-bottom:6px}.edd-custom-price-option-section:last-child{border-bottom:none}.toggle-custom-price-option-section{color:#787c82}.toggle-custom-price-option-section:hover{color:#537994}#edd_product_settings .edd-product-options__title,#edd_product_settings .inside strong{border-top:1px solid #c3c4c7;border-bottom:1px solid #c3c4c7;background-color:#f9f9f9;display:flex;font-weight:600;margin:0 -12px 16px;padding:8px 12px;justify-content:space-between;align-items:center}#edd_product_settings .edd-product-options-wrapper:first-of-type .edd-product-options__title,#edd_product_settings .inside div:first-child strong{margin-top:-8px}#edd_product_settings .edd-product-options__title .edd-help-tip,#edd_product_settings .inside strong .edd-help-tip{font-size:20px}#edd_product_settings .label--block{display:block;margin:0 0 4px}.edd_repeatable_row.ui-sortable-placeholder{line-height:0;padding:0;margin:0;box-sizing:border-box;border:1px dashed #c3c4c7;visibility:visible!important}.edd-add-repeatable-row{border-top:1px solid #c3c4c7;padding:12px;margin:15px -12px -12px;display:flex;justify-content:flex-end;align-items:center}.edd_repeatable_row input[type=text].large-text{width:100%}.edd_repeatable_upload_wrapper:not(:first-child),.edd_variable_prices_wrapper:not(:first-child){margin-top:12px}.edd_repeatable_row.ui-sortable-helper .edd-repeatable-row-actions .edd-remove-row{display:none}.edd-repeatable-row-actions{color:#787c82}.edd-repeatable-row-actions a{text-decoration:none;width:auto;cursor:pointer}.edd-bundle-products-header,.edd-repeatable-row-header{clear:both;background:#f6f7f7;border:1px solid #c3c4c7;display:flex;justify-content:space-between}.edd-repeatable-row-header{cursor:move}.edd_repeatable_row:hover .edd-repeatable-row-header,.edd_repeatable_row:hover .edd-repeatable-row-standard-fields{border-color:#c3c4c7}.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-bundle-products-header,.edd-repeatable-row-title{font-weight:600}.edd-bundle-products-header,.edd-repeatable-row-actions,.edd-repeatable-row-title{padding:8px;box-sizing:border-box}.edd-repeatable-row-actions{flex-grow:1;text-align:left}.edd-bundled-product-row .edd-remove-row,.edd-repeatable-row-actions .edd-remove-row{width:auto;cursor:pointer}.edd-bundled-product-row,.edd-repeatable-row-standard-fields{padding:8px;border:1px solid #c3c4c7;border-top:0 solid #c3c4c7;display:flex;justify-content:space-between;align-items:center;gap:18px}.edd-bundled-product-row .edd-form-group,.edd-repeatable-row-standard-fields .edd-form-group{margin-bottom:0;display:inline-flex;flex-direction:column;flex-grow:1;justify-content:space-between}.edd-repeatable-row-setting-label .edd-help-tip{display:inline-block;margin-right:4px}.edd-bundled-product-item-reorder{min-width:30px}.edd-bundled-product-item-reorder .edd-product-file-reorder{font-size:20px;cursor:move;color:#dcdcde;font-family:dashicons;content:"";transition:color .2s}.edd-bundled-product-item-reorder .edd-product-file-reorder:hover{color:#a7aaad}.edd-bundled-product-actions{-ms-grid-row-align:center;align-self:center}#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}@media screen and (max-width:480px){.edd-bundle-products-header,.edd-bundled-product-row,.edd-repeatable-row-header,.edd-repeatable-row-standard-fields{flex-wrap:wrap}.edd-bundled-product-row .edd-form-group,.edd-repeatable-row-standard-fields .edd-form-group{margin-right:0!important;margin-bottom:24px}}.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_repeatable_upload_wrapper .edd_repeatable_upload_field_container{position:relative;width:100%}.edd_repeatable_upload_wrapper .edd_repeatable_upload_field_container+span:first-child{width:100%}.edd_repeatable_upload_field{padding-left:32px}.edd_upload_file button{background:#f6f7f7;border:none;border-right:1px solid #c3c4c7;padding:0 4px;position:absolute;height:calc(100% - 4px);overflow:hidden;top:2px;left:2px;display:inline-flex;justify-content:center;align-items:center}.edd-form-group{margin-bottom:16px}.edd-form-group:last-of-type{margin-bottom:0}.edd-form-group>label,.edd-form-group__label{display:block;font-weight:600;margin-bottom:8px;padding:0}.edd-form-group__control{margin-bottom:12px;max-width:100%}.edd-form-group__control.is-check,.edd-form-group__control.is-radio{margin-top:4px}.edd-form-group__control:last-of-type{margin-bottom:0}.edd-form-group__control--is-inline{display:inline-flex;align-items:flex-end}.edd-form-group__input{max-width:100%}.edd-form-group__input[type=checkbox],.edd-form-group__input[type=radio]{margin-top:0}.edd-form-group__input[type=checkbox]+label,.edd-form-group__input[type=radio]+label{display:unset}select.edd-form-group__input{max-width:100%}.edd-form-group__help{color:#646970;font-size:13px;font-style:italic;line-height:normal;margin:8px 0 0}.edd-form-row{display:flex;flex-wrap:wrap;gap:12px}.edd-form-row__column{display:inline-flex;flex-direction:column;justify-content:flex-end}.edd-form-row__column.edd-form-group{margin-bottom:0}.edd-form-row label,.edd-form-row label.edd-form-group__label{margin-bottom:8px}#edd-migration-progress .dashicons-minus{color:#949494}#edd-migration-progress .dashicons-yes{color:green}#edd-migration-progress .dashicons-update:before{animation:rotation 2s linear infinite;display:block}#edd-v3-migration-remove-legacy-data-submit-wrap{display:flex;align-items:center;gap:6px}#edd-v3-migration-remove-legacy-data-submit-wrap .button{margin:0}#edd-filters{padding:10px;margin:0;display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px}#edd-filters .filter-items{flex-wrap:wrap;gap:6px;float:none;flex-grow:1}#edd-filters .filter-items,#edd-filters .filter-items .graph-option-section{display:flex;align-items:center}#edd-filters .filter-items .edd-date-range-picker[data-range=other] .edd-graphs-date-options{border-top-left-radius:4px;border-bottom-left-radius:4px}#edd-filters .filter-items .edd-date-range-picker[data-range=other] .edd-date-range-dates,#edd-filters .filter-items .edd-date-range-picker[data-range=other] .edd-date-range-relative-dates{display:none}#edd-filters .filter-items .edd-date-range-options{display:inline-block;margin:10px 0}#edd-filters .filter-items .edd-graphs-date-options{border-top-left-radius:0;border-bottom-left-radius:0}#edd-filters .filter-items .edd-date-range-dates{display:flex;align-items:center;border:1px solid #8c8f94;border-right:none;color:#2c3338;padding:4px 10px;margin-right:-5px;border-top-left-radius:4px;border-bottom-left-radius:4px;cursor:pointer;gap:4px}#edd-filters .filter-items .edd-date-range-dates.hidden{display:none}#edd-filters .filter-items .edd-date-range-selected-date{display:inline-block}#edd-filters .filter-items .edd-date-range-relative-dates{display:flex;align-items:center;margin-right:10px}#edd-filters .filter-items .edd-date-range-relative-dates.hidden{display:none}#edd-filters .filter-items .edd-date-range-selected-relative-date{position:relative;display:flex;align-items:center;border:1px solid #8c8f94;padding:4px 6px 4px 2px;color:#2c3338;margin-right:10px;margin-left:10px;border-radius:4px;cursor:pointer}#edd-filters .filter-items .edd-date-range-selected-relative-date .arrow-down{width:16px;height:auto;margin-right:6px;margin-top:2px;vertical-align:middle}#edd-filters .filter-items .edd-date-range-selected-relative-date.opened .edd-date-range-relative-dropdown{display:block}#edd-filters .filter-items .edd-date-range-relative-dropdown{position:absolute;z-index:99;width:420px;right:50%;top:100%;margin-top:10px;transform:translateX(50%);background-color:#fff;border:1px solid #8c8f94;border-radius:4px;box-shadow:0 2px 5px 0 rgba(0,0,0,.25);display:none}#edd-filters .filter-items .edd-date-range-relative-dropdown:after{height:10px;width:10px;position:absolute;content:"";background:#fff;border-color:#8c8f94;border-style:solid;border-width:0 0 1px 1px;transform:rotate(135deg);top:-6px;right:calc(50% - 4px)}#edd-filters .filter-items .edd-date-range-relative-dropdown .spinner{display:none}#edd-filters .filter-items .edd-date-range-relative-dropdown.loading{padding:10px;text-align:center}#edd-filters .filter-items .edd-date-range-relative-dropdown.loading .spinner{display:inline-block;visibility:visible;margin:0;float:unset}#edd-filters .filter-items .edd-date-range-relative-dropdown.loading :not(.spinner){display:none}#edd-filters .filter-items .edd-date-range-relative-dropdown ul li{display:flex;align-items:center;padding:2px 10px;opacity:.85;gap:20px}#edd-filters .filter-items .edd-date-range-relative-dropdown ul li.active,#edd-filters .filter-items .edd-date-range-relative-dropdown ul li:hover{cursor:pointer;color:var(--wp-admin-theme-color);opacity:1}#edd-filters .filter-items .edd-date-range-relative-dropdown ul li .date-range-name{width:110px}@media screen and (max-width:950px){#edd-filters .filter-items .graph-option-section{margin-top:8px;width:100%}#edd-filters .filter-items .edd-date-range-picker{flex-wrap:wrap}#edd-filters .filter-items .edd-graphs-date-options{width:100%;max-width:100%;min-height:40px;font-size:14px;border-top-left-radius:4px;border-bottom-left-radius:4px}#edd-filters .filter-items .edd-date-range-dates{width:100%;margin-top:10px;border:1px solid #8c8f94;margin-right:unset;border-radius:4px;font-size:14px;padding:8px 8px 8px 6px}#edd-filters .filter-items .edd-date-range-relative-dates{width:100%;flex-wrap:wrap;margin-right:0;margin-top:6px}#edd-filters .filter-items .edd-date-range-selected-relative-date{width:100%;margin-top:8px;margin-right:0;margin-left:0;font-size:14px;padding:8px 8px 8px 6px;flex-wrap:wrap}#edd-filters .filter-items .edd-date-range-selected-relative-date .arrow-down{margin-right:auto}#edd-filters .filter-items .edd-date-range-relative-dropdown{position:relative;width:100%;right:0;top:0;transform:unset;box-shadow:unset;border:unset;margin:0}#edd-filters .filter-items .edd-date-range-relative-dropdown:after{display:none}#edd-filters .filter-items .edd-date-range-relative-dropdown ul{margin-bottom:0}#edd-filters .filter-items .edd-date-range-relative-dropdown ul li{padding-right:0;padding-left:0;justify-content:space-between;flex-wrap:wrap;gap:unset}#edd-filters .filter-items .edd-date-range-relative-dropdown ul li .date-range-dates,#edd-filters .filter-items .edd-date-range-relative-dropdown ul li .date-range-name{width:100%}}#edd-filters>p{color:#757575}#edd-filters input[type=number],#edd-filters input[type=text].edd_datepicker{max-width:105px}#edd-filters .button-secondary,#edd-filters input[type=number]{margin-bottom:0}#edd-filters .search-form{margin:0}@media screen and (max-width:480px){#edd-filters span{margin:2px 0}}#edd-advanced-filters{position:relative}#edd-advanced-filters .inside{z-index:99;position:absolute;top:29px;left:0;border:1px solid #e0e0e0;padding:0;background:#fff;box-shadow:0 3px 5px rgba(0,0,0,.2);min-width:285px;opacity:0;visibility:hidden}#edd-advanced-filters fieldset{display:block;padding:10px 15px 15px;margin:10px 0}#edd-advanced-filters fieldset:not(:last-of-type){border-bottom:1px solid #e0e0e0}#edd-advanced-filters fieldset:last-of-type{padding-bottom:5px}#edd-advanced-filters fieldset.edd-add-on-filters div,#edd-advanced-filters fieldset.edd-add-on-filters label,#edd-advanced-filters fieldset.edd-add-on-filters p,#edd-advanced-filters fieldset.edd-add-on-filters span{display:block;margin-bottom:2px}#edd-advanced-filters div.edd-select-chosen:not(:last-child){margin-bottom:10px}#edd-advanced-filters.open .edd-advanced-filters-button{background:#e0e0e0;border-color:#949494;box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5);transform:translateY(1px)}#edd-advanced-filters.open .inside{visibility:visible;opacity:1;transition:opacity .2s ease-in}.download_page_edd-reports #edd-filters{margin-bottom:-1px;box-shadow:none}@media screen and (max-width:782px){.download_page_edd-reports #edd-filters{gap:0}}.edd-old-log-filters{margin-top:-30px;margin-right:2px}@media screen and (min-width:600px){#edd-reports-charts-wrap{display:-ms-grid;display:grid;-ms-grid-columns:(minmax(200px,50%))[2];grid-template-columns:repeat(2,minmax(200px,50%));grid-gap:20px}.edd-reports-chart{margin-bottom:0}.edd-reports-chart-bar,.edd-reports-chart-line{-ms-grid-column:1;-ms-grid-column-span:2;grid-column:1/span 2}}.edd-reports-chart{height:500px;max-height:700px}.chart-timezone{font-size:.75rem;color:#ccc}.edd-mobile-link{line-height:32px}.edd-mobile-link a{text-decoration:none}.edd-mobile-link a:after,.edd-mobile-link a:before{display:inline-block;-webkit-font-smoothing:antialiased;font:normal 20px/30px dashicons;vertical-align:top;margin:1px 0 0;padding:0}.edd-mobile-link a:before{content:"";color:#757575;margin-left:-3px}.edd-mobile-link a:after{content:""}#edd-reports-tiles-wrap #dashboard-widgets .sortable-placeholder{padding:0;margin:0 0 20px;line-height:0;box-sizing:border-box;height:110px}#edd-reports-tiles-wrap #dashboard-widgets #primary-sortables{margin-right:0}#edd-reports-tiles-wrap #dashboard-widgets #tertiary-sortables{margin-left:0}#edd-reports-tiles-wrap{display:-ms-grid;display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));grid-gap:20px}.edd-reports-tile{text-align:center;padding:20px 10px 35px;display:flex;flex-direction:column;justify-content:center;border:1px solid #e5e5e5;background:#fafafa;position:relative;box-sizing:border-box;gap:.5em}.edd-reports-tile>span:not(.tile-compare){width:100%}.edd-reports-tile .tile-label{text-align:center;text-transform:uppercase;font-size:12px;font-weight:400;color:#101517}.edd-reports-tile .tile-value{color:#333;font-size:2em;line-height:1;transition:all .2s ease-in-out;display:flex;justify-content:center;flex-direction:column;gap:.25em}.edd-reports-tile:hover{border:1px solid #aaa}.edd-reports-tile:hover .tile-value:not(.tile-no-data){transform:scale(1.05)}.edd-reports-tile .tile-amount{color:#2794da}.edd-reports-tile .tile-number{color:#96f}.edd-reports-tile .tile-amount,.edd-reports-tile .tile-number{color:#fff}.edd-reports-tile .tile-value.tile-no-data{color:#ddd}.edd-reports-tile .tile-value.tile-url{font-size:1.5em}.edd-reports-tile .tile-relative{font-size:12px;font-weight:400;color:#888}.edd-reports-tile span.dashicons{display:inline-block;font-size:30px;line-height:20px;height:20px;width:20px;position:relative;top:4px;right:-5px;margin-right:-5px;color:#999}.edd-reports-tile .tile-relative span.dashicons{top:-5px;right:-3px;margin-right:0}.edd-reports-tile .tile-relative span.dashicons-arrow-down,.edd-reports-tile .tile-relative span.dashicons-arrow-up.reverse{color:#d63638}.edd-reports-tile .tile-relative span.dashicons-arrow-down.reverse,.edd-reports-tile .tile-relative span.dashicons-arrow-up{color:#008a20}.edd-reports-tile .tile-compare{position:absolute;left:0;bottom:0;color:#aaa;font-size:11px;line-height:1em;background-color:#fff;border-color:#e5e5e5 #e5e5e5 #fff #fff;border-style:solid;border-width:1px;border-top-right-radius:8px;padding:4px 9px 0 0;margin:0 0 -1px -1px}.edd-reports-tile:hover .tile-compare{border-right:1px solid #bbb;border-top:1px solid #bbb;color:#777}#edd-submit-refund-status{text-align:center;font-size:1.2em}#edd-submit-refund-status .edd-submit-refund-message:before{font-family:dashicons;font-size:1.5em;vertical-align:middle;color:#fff;border-radius:16px;margin:5px}#edd-submit-refund-status .edd-submit-refund-message.success:before{content:"";background-color:#008a20;padding-left:1px}#edd-submit-refund-status .edd-submit-refund-message.fail{display:block;margin-bottom:16px}#edd-submit-refund-status .edd-submit-refund-message.fail:before{content:"";background-color:#d63638}.refund-items td,.refund-items th.check-column{vertical-align:baseline}.refund-items .column-amount,.refund-items .column-discount,.refund-items .column-quantity,.refund-items .column-subtotal,.refund-items .column-tax,.refund-items .column-total{width:80px}.refund-items .edd-form-group__control{display:flex;align-items:center}.refund-items .edd-form-group__control input,.refund-items .edd-form-group__control select{background-color:transparent;border:0;border-bottom:1px solid;border-radius:0;box-shadow:none;text-align:left;width:100%}.refund-items .edd-form-group__control input:disabled,.refund-items .edd-form-group__control select:disabled{border-bottom:none}.refund-items .edd-form-group__control input:focus,.refund-items .edd-form-group__control select:focus{border-bottom:1px solid var(--wp-admin-theme-color-darker-10);box-shadow:0 1px 0 var(--wp-admin-theme-color-darker-10)}.refund-items .edd-form-group__control select[data-original="1"]{background:transparent}.refund-items .edd-form-group__control .is-before+span>input,.refund-items .edd-form-group__control select{text-align:right}.refund-items .edd-refund-submit-line-total{background-color:#fff!important}.refund-items .edd-refund-submit-line-total td{text-align:left}.refund-items .edd-refund-submit-line-total-amount{display:inline-block;margin-right:20px;text-align:right;width:80px}.refund-items #edd-refund-submit-subtotal td{border-top:2px solid #c3c4c7}@media screen and (max-width:782px){.refund-items td.column-total{margin-bottom:16px}.refund-items .edd-refund-submit-line-total-amount{padding-left:16px;width:unset}}.edd-submit-refund-actions{margin:16px 0 0}.did-refund .edd-submit-refund-actions,.did-refund .refund-items{display:none}.edd-admin-notice-top-of-page{font-size:15px;line-height:1.4;color:#fff;margin-right:-20px;padding:12px 20px 12px 32px;background:#2d6ca2}.edd-admin-notice-top-of-page.edd-pro-inactive{background:#d63638}@media screen and (min-width:783px){.edd-admin-notice-top-of-page{padding:10px 22px 10px 46px}}@media screen and (min-width:961px){.edd-admin-notice-top-of-page{text-align:center}}.edd-admin-notice-top-of-page a{color:#fff}.edd-admin-notice-top-of-page a:hover{text-decoration:none}.edd-admin-notice-top-of-page .button-link{position:absolute;top:48px;left:-1px;font-size:20px;color:#fff;font-weight:700;text-decoration:none;margin-right:5px;padding:6px 10px}.edd-admin-notice-top-of-page .button-link:active,.edd-admin-notice-top-of-page .button-link:focus,.edd-admin-notice-top-of-page .button-link:hover{color:#fff;text-decoration:none}@media screen and (min-width:601px){.edd-admin-notice-top-of-page .button-link{top:1px}}@media screen and (min-width:783px){.edd-admin-notice-top-of-page .button-link{left:9px}}#edd-admin-notice-five-star-review{display:-ms-grid;display:grid}#edd_dashboard_sales .edd-promo-notice{border-bottom:1px solid #c3c4c7}.edd-review-actions{display:flex;gap:6px;margin:0 0 16px}.edd-promo-notice .edd-peeking{align-self:flex-end;justify-self:flex-end;margin-left:16px;margin-bottom:-1px}@media screen and (max-width:782px){#edd-admin-notice-five-star-review.notice .edd-peeking{margin-bottom:-6px}}@media screen and (min-width:480px){.edd-promo-notice.notice-info .edd-peeking{justify-self:flex-start;margin-left:0;margin-right:250px}}.edd-promo-notice .edd-peeking,.edd-review-step{-ms-grid-row:1;grid-area:1/-1}.edd-promo-notice__overlay{display:none;position:fixed;background:rgba(16,21,23,.75);top:0;left:0;bottom:0;right:160px;z-index:11;justify-content:center;align-items:center}.folded .edd-promo-notice__overlay{right:36px}@media screen and (max-width:782px){.edd-promo-notice__overlay{right:0}}.edd-admin-notice-overlay{display:none;background-color:#fff;padding:2.5em;text-align:center;max-width:650px;position:relative;flex-direction:column}.edd-promo-notice__overlay .edd-admin-notice-overlay{display:flex}.edd-admin-notice-overlay h2{line-height:1.6em;margin:0 auto;max-width:540px}.edd-admin-notice-overlay .edd-promo-notice__features{text-align:right;display:-ms-grid;display:grid;-ms-grid-columns:(auto)[3];grid-template-columns:repeat(3,auto);margin:2em auto;gap:0 1.5em}.edd-admin-notice-overlay .edd-promo-notice__features li{display:flex;gap:.5em;align-items:center}@media screen and (max-width:600px){.edd-admin-notice-overlay .edd-promo-notice__features{-ms-grid-columns:unset;grid-template-columns:unset}}.edd-admin-notice-overlay .button-primary{padding:4px 36px;margin:0 auto .5em;max-width:360px}.edd-admin-notice-overlay__link{color:#101517}.edd-admin-notice-overlay .edd-promo-notice-dismiss.button-link{position:absolute;color:#537994;text-decoration:none;font-size:2em;top:0;left:.5em}.edd-admin-notice-overlay .edd-promo-notice-dismiss.button-link:active,.edd-admin-notice-overlay .edd-promo-notice-dismiss.button-link:hover{color:#101517}@media screen and (max-width:782px){.edd-admin-notice-overlay{margin:1em}}.edd-paypal-account-status ul{margin-right:25px}.edd-paypal-account-status>li{margin-bottom:1em}.edd-paypal-account-status ul:not(.edd-paypal-webhook-events){list-style:disc;list-style-position:inside}.edd-paypal-account-status ul:not(.edd-paypal-webhook-events) li{margin:.25em 0}.edd-paypal-account-status .dashicons-yes{color:#008a20}.edd-paypal-account-status .dashicons-no{color:#d63638}.edd-overlay{position:fixed;z-index:1052;top:0;left:0;bottom:0;right:160px;background-color:#141b38;opacity:.5;transition:.5s}.edd-slide-in{transform:translateX(-100%)!important;-webkit-transform:translateX(-100%)!important}#edd-notifications-panel{background-color:#fff;height:100%;width:100%;max-width:570px;position:fixed;z-index:1053;top:0;left:0;bottom:0;overflow-x:hidden;transition:.5s;transform:translateX(0);-webkit-transform:translateX(0)}body.admin-bar #edd-notifications-panel{top:32px}@media screen and (max-width:600px){body.admin-bar #edd-notifications-panel{top:46px}}#edd-notifications-header{display:flex;align-items:center;padding:0 30px;color:#fff;background-color:#0c5d95}#edd-notifications-header h3{color:#fff;flex:1}#edd-notifications-header .edd-close{background:none;border:none;color:#fff;cursor:pointer}#edd-notifications-body{padding:30px}.edd-notification{display:flex;gap:20px;margin-bottom:20px}.edd-notification--icon{color:#00aa63}.edd-notification--icon.edd-notification--icon-info{color:#005ae0}.edd-notification--icon.edd-notification--icon-warning{color:#f18200}.edd-notification--icon.edd-notification--icon-error{color:#df2a4a}.edd-notification--body{flex:1}.edd-notification--header{align-items:center;display:flex;justify-content:space-between;gap:5px;margin-bottom:7px}.edd-notification--title{color:#141b38;flex:1;font-size:16px;font-weight:600;margin:0}.edd-notification--date{color:#71747e;font-size:12px}.edd-notification--actions{flex-wrap:wrap;display:flex;align-items:center;gap:5px;margin-top:10px}.edd-notification--dismiss{background:none!important;border:none!important;box-shadow:none!important;color:#71747e!important;cursor:pointer;padding:0 10px;text-decoration:underline}.edd-notification--dismiss:hover{text-decoration:none}.edd-dialog{display:none}.edd-item-header-small{padding-bottom:20px;border-bottom:1px solid #e5e5e5;display:flex;justify-content:flex-start;align-items:center;gap:6px}.edd-item-header-small span{font-weight:600;font-size:15px}.wrap-licenses .edd-licenses__description{margin:2em 1em}.wrap-licenses .form-table,.wrap-licenses caption,.wrap-licenses tfoot,.wrap-licenses th,.wrap-licenses thead,.wrap-licenses tr{display:block}@media screen and (min-width:600px){.wrap-licenses .form-table,.wrap-licenses caption,.wrap-licenses tfoot,.wrap-licenses th,.wrap-licenses thead,.wrap-licenses tr{display:unset}}.wrap-licenses tbody{display:-ms-grid;display:grid;gap:1em}.wrap-licenses .form-table tr{margin:0;background:#fff;border:1px solid #dcdcde;border-radius:3px;padding:0;box-sizing:border-box;display:flex;flex-direction:column;justify-content:space-between}@media screen and (min-width:600px){.wrap-licenses .form-table tr{display:-ms-grid;display:grid;-ms-grid-columns:200px 1fr;grid-template-columns:200px 1fr}}.wrap-licenses .form-table th{background:#f9f9f9;margin-bottom:2.5em;padding:1em;border-bottom:1px solid #dcdcde;width:unset}@media screen and (min-width:600px){.wrap-licenses .form-table th{border-bottom:none;margin-bottom:0;display:flex;align-items:center}}.wrap-licenses .form-table td{margin:0;padding:0;display:flex;flex-direction:column;gap:2.5em;flex-grow:1}@media screen and (min-width:600px){.wrap-licenses .form-table td{flex-direction:row;gap:unset}}.wrap-licenses .form-table td input.regular-text{margin:0;width:100%;max-width:250px}.wrap-licenses .form-table td button{margin:0}.wrap-licenses .form-table .edd-license__control{flex-grow:1;padding:0 1em;display:flex;gap:4px;align-items:center;justify-content:center}@media screen and (min-width:600px){.wrap-licenses .form-table .edd-license__control{justify-content:flex-end}}.wrap-licenses .form-table .edd-licensing__actions{display:flex;gap:4px}.wrap-licenses .edd-license-data[class*=edd-license-]{background:#f9f9f9;padding:1em;border-top:1px solid #dcdcde;margin:0;width:100%;box-sizing:border-box;display:flex;align-items:flex-end}.wrap-licenses .edd-license-data[class*=edd-license-] a{color:#444}.wrap-licenses .edd-license-data[class*=edd-license-] a:hover{text-decoration:none}@media screen and (min-width:600px){.wrap-licenses .edd-license-data[class*=edd-license-]{border-top:none;width:unset;flex-basis:100%;align-items:center}.wrap-licenses .edd-license-data[class*=edd-license-]:not(:only-child){flex:0 1 300px}}.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 .edd-license-data.edd-license-expired a:hover,.wrap-licenses .edd-license-data.license-expires-soon-notice a:hover{text-decoration:none}.edd-settings-content{max-width:1440px}.edd-settings-color,.edd-settings-colors{display:flex;flex-wrap:wrap;gap:1em}.edd-settings-color{flex-direction:column}.edd-upload-button-wrapper{width:100%;display:flex;gap:5px}.edd-upload-button-wrapper button.edd_settings_upload_button{margin-bottom:0}.edd-hidden{display:none}.edd-clearfix:after{content:"";display:table;clear:both}.edd-notice .notice-dismiss,.edd-wrap a{text-decoration:none}.wp-core-ui .edd-delete,a.edd-delete{color:#a00}.wp-core-ui .edd-delete:hover,a.edd-delete:hover{color:red}body.post-type-download #contextual-help-link-wrap,body.post-type-download #screen-options-link-wrap{top:5px!important}body.post-type-download #screen-meta{margin:0 -20px -1px 0}#edd-header{border-top:5px solid #0c5d95;border-bottom:1px solid #c3c4c7;padding:20px 0;margin-right:-20px;background:#fff}#edd-header-wrapper{display:flex;justify-content:space-between;padding:0 20px;align-items:center}#edd-header img{display:block;max-width:300px;margin:0}.edd-header-page-title-wrap{font-size:1.75em;margin-top:-5px;margin-left:auto;padding-right:7px}.edd-header-separator{margin-top:-2px;opacity:.25}.edd-header-page-title{font-weight:400;font-size:1em;line-height:1.3em;display:inline}.edd-header-page-title-wrap .button{margin-right:5px}.no-js #edd-header-actions{display:none}#edd-header .edd-round{position:relative;background-color:#f3f4f5;border-radius:50%;width:40px;height:40px;display:flex;align-items:center;justify-content:center;margin-right:10px;cursor:pointer;transition:background-color .2s ease}button.edd-round{border:none}#edd-header button.edd-round:hover{background-color:#e5e5e5}button.edd-round:active,button.edd-round:focus{outline:2px solid #0c5d95}#edd-header .edd-number{position:absolute;background-color:#df2a4a;width:16px;height:16px;font-weight:600;font-size:10px;color:#fff;top:-8px;right:50%;transform:translateX(50%);margin:0;animation:bounce 2s 5}#edd-header .edd-number.edd-hidden{display:none!important}#edd-header .edd-round svg{width:20px;height:20px}@media screen and (max-width:840px){#edd-header img,.edd-header-separator{display:none}}.edd_datepicker{height:29px}.edd-from-to-wrapper input{width:105px;margin:0;position:relative;z-index:1}.edd-from-to-wrapper input[name*=start],.edd-from-to-wrapper input[name=filter_from]{border-top-left-radius:0;border-bottom-left-radius:0}.edd-from-to-wrapper input[name*=end],.edd-from-to-wrapper input[name=filter_to]{margin-right:-1px;border-top-right-radius:0;border-bottom-right-radius:0}.edd-from-to-wrapper input:focus{z-index:2;position:relative}.edd-settings-sub-nav{margin:0 0 10px;width:100%;border-bottom:1px solid #ccc;box-shadow:0 1px 1px rgba(0,0,0,.04)}.edd-settings-sub-nav a{padding:13px;display:block}.edd-settings-sub-nav a.current{border-bottom:4px solid #000;padding-bottom:9px}.admin-color-fresh .edd-settings-sub-nav a.current{border-bottom-color:#00a0d2}.admin-color-blue .edd-settings-sub-nav a.current{border-bottom-color:#096484}.admin-color-coffee .edd-settings-sub-nav a.current{border-bottom-color:#c7a589}.admin-color-ectoplasm .edd-settings-sub-nav a.current{border-bottom-color:#a3b745}.admin-color-midnight .edd-settings-sub-nav a.current{border-bottom-color:#e14d43}.admin-color-ocean .edd-settings-sub-nav a.current{border-bottom-color:#627c83}.admin-color-sunrise .edd-settings-sub-nav a.current{border-bottom-color:#be3631}.admin-color-light .edd-settings-sub-nav a.current{border-bottom-color:#888}.admin-color-evergreen .edd-settings-sub-nav a.current{border-bottom-color:#36533f}.admin-color-mint .edd-settings-sub-nav a.current{border-bottom-color:#4f6d59}.download_page_edd-settings .edd-check-wrapper{clear:both}.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-sortable-list{margin:0;width:300px;position:relative}.edd-sortable-list li{margin:0;padding:0;position:relative;height:28px;cursor:move}.edd-sortable-list li label *{vertical-align:middle}.edd-sortable-list li label:after{display:block;width:17px;height:17px;position:absolute;left:6px;top:0;color:#aaa;font-family:dashicons;font-size:17px;content:"";cursor:move}.form-table .edd-sortable-list li label{display:block;height:28px;padding:0;margin:0}.edd-sortable-list .payment-icon{width:32px;height:24px;position:relative;top:-2px;margin-left:5px}.edd-help-tip{cursor:help;margin-top:-2px;font-size:24px;color:grey}.edd-ui-tooltip{position:absolute;background:#333!important;border-width:1px!important;border-radius:3px!important;box-shadow:-1px 1px 2px 1px hsla(0,0%,83.9%,.5)!important;color:#dedede!important;max-width:300px!important;padding:7px!important;text-rendering:optimizeLegibility;text-shadow:none!important;z-index:9999!important}.download_page_edd-settings .edd-settings-payment-icon-wrapper{margin-top:5px}.download_page_edd-settings .edd-settings-payment-icon-wrapper input{margin-top:1px}.download_page_edd-settings .form-table .edd-settings-payment-icon-wrapper input[type=checkbox]+label{margin:0;display:inline-block}.download_page_edd-settings .edd-settings-payment-icon-wrapper .payment-icon-image{margin-left:5px;width:32px;display:inline-block;vertical-align:middle}.download_page_edd-settings .edd-settings-payment-icon-wrapper .payment-option-name{vertical-align:middle}.download_page_edd-settings .taxrates td,.download_page_edd-settings .taxrates th{padding:8px 10px}.download_page_edd-settings .taxrates td{line-height:1.5em;vertical-align:top;margin:0}.download_page_edd-settings .taxrates .regular-text{width:100%}#TB_window{overflow:hidden}#TB_title{padding:5px}#TB_ajaxContent{width:calc(100% - 30px)!important;padding:15px;margin:0;height:calc(100% - 118px)!important}#TB_ajaxWindowTitle{font-size:18px;font-weight:600;line-height:30px}#TB_closeWindowButton{left:6px;top:6px}#choose-download-wrapper{width:100%}#choose-download-wrapper .wrap{overflow-y:scroll;margin:0;padding:0;height:calc(100% - 50px)}#choose-download-wrapper .submit-wrapper{position:absolute;width:100%;bottom:0;padding:0;margin:0 -15px 0 0;text-align:left}#choose-download-wrapper .submit-wrapper div{background-color:#fafafa;padding:15px;border-top:1px solid #ddd}.wp-media-buttons .button.edd-thickbox{padding-right:0}.wp-media-buttons .button.edd-email-tags-inserter .dashicons{margin-top:-2px}.download_page_edd-payment-history .edit-post-editor-regions__header{flex-shrink:0;height:auto;border-bottom:1px solid #e2e4e7;z-index:30;position:sticky;top:32px;margin-right:-20px}@media screen and (max-width:782px){.download_page_edd-payment-history .edit-post-editor-regions__header{position:static;top:46px}}.download_page_edd-payment-history .edit-post-header{height:56px;background:#fff;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;max-width:100%;box-sizing:border-box;padding:4px 20px}@media screen and (max-width:782px){.download_page_edd-payment-history .edit-post-header{padding-right:10px;padding-left:10px}}@media(min-width:280px){.download_page_edd-payment-history .edit-post-header{flex-wrap:nowrap}}.download_page_edd-payment-history .edit-post-header .edit-post-header__toolbar{order:0}.download_page_edd-payment-history .edit-post-header .edit-post-header__settings{order:1}.download_page_edd-payment-history .edit-post-header #publishing-action,.download_page_edd-payment-history .edit-post-header .edit-post-header__settings,.download_page_edd-payment-history .edit-post-header .edit-post-header__toolbar{display:flex;align-items:center}.download_page_edd-payment-history .edit-post-header #publishing-action .spinner{margin:0 0 0 5px}.download_page_edd-payment-history .edit-post-header .button-primary{margin:2px;height:34px;line-height:32px;font-size:13px}#edd-order-items .hndle{display:flex;align-items:center;justify-content:space-between}#edd-order-items .hndle .edd-toggle{font-weight:400}.edd-add-order-item td{vertical-align:middle}.edd-add-order-item input{width:80%}.edd-add-order-item input[readonly]{color:#555;background:none;border:1px solid transparent;box-shadow:none}.order-customer-info .customer-details-wrap{margin:15px 0;align-items:center}.order-customer-info .customer-details-wrap .spinner{margin:0}.order-customer-info .customer-details{display:flex;flex-direction:column}.order-customer-info .customer-details .customer-since{color:#666;display:block;margin:4px 0 6px}.order-customer-info .customer-details>span{margin-bottom:5px}.edd-order-add-download-select .spinner{display:none}table.edd-order-overview-summary{border-width:0;table-layout:fixed}table.edd-order-overview-summary--refund{border-width:0}@media screen and (min-width:782px){.edd-order-overview .column-right{text-align:left}}.edd-ml-auto{margin-right:auto!important}@media screen and (min-width:782px){.edd-ml-lg-auto{margin-right:auto!important}}.edd-ml-auto+.edd-ml-auto{margin-right:10px!important}.edd-order-overview-summary__items-name{align-self:flex-start}.edd-order-overview-summary__items>:nth-child(odd){background-color:#f9f9f9}@media screen and (min-width:782px){.edd-order-overview-summary__items tr:last-child td,.edd-order-overview-summary__items tr:last-child th{border-bottom:1px solid #e5e5e5}}@media screen and (max-width:782px){.edd-order-overview-summary .row-actions>*,.edd-order-overview-summary__items-name .row-actions{display:block!important}.edd-order-overview-summary .row-actions>:not(:first-child):before{display:none}}.edd-order-overview-summary th:not(.column-primary){width:100px}.edd-order-overview-summary .row-actions>:not(:first-child):before{color:#999;content:" | "}.edd-order-overview-summary .row-actions .text{color:#555}.edd-order-overview-summary .removable{display:flex;align-items:center;position:relative}.edd-order-overview-summary .removable .delete{display:inline-block;margin-left:10px;margin-right:-8px;padding:10px;border-left:1px solid #e5e5e5;color:#a00}.edd-order-overview-summary .removable .delete:hover{color:#dc3232}.edd-order-overview-summary__adjustments .column-primary{font-weight:600}.edd-order-overview-summary__adjustments td small{font-weight:400}.edd-order-overview-summary__subtotal .column-primary,.edd-order-overview-summary__tax tr:first-of-type .column-primary,.edd-order-overview-summary__total .column-primary{font-weight:600}.edd-order-overview-summary__adjustments td,.edd-order-overview-summary__subtotal td,.edd-order-overview-summary__tax td,.edd-order-overview-summary__total td{vertical-align:middle}.edd-order-overview-summary__tax td small,.edd-order-overview-summary__total td small{font-weight:400}.edd-order-overview-summary__total .total{color:#017d5c;display:inline-block}.edd-order-overview-summary__total .total.is-negative{color:#a00}@media screen and (min-width:783px){.edd-order-overview-summary__adjustments .removable .delete{margin-right:-50px}.edd-order-overview-summary__total .total{font-size:150%;padding-top:5px;padding-bottom:5px}}.edd-order-overview-summary__total tr:last-child td:not(:first-of-type),.edd-order-overview-summary__total tr:last-child th{border-top:1px solid #e5e5e5}.edd-order-overview-summary__total .notice{margin:-1px}.edd-order-overview-summary__total .notice p{font-weight:400;margin:.5em 0}.edd-order-overview-summary__refunds .column-primary{font-weight:600}.edd-order-overview-summary__refunds td small{font-weight:400}.edd-order-overview-summary__refunds tr:first-child td{border-top:1px solid #e5e5e5}#edd-order-overview-actions.inside{border-top:1px solid #ccd0d4;margin-top:0;display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between}#edd-order-overview-actions.inside:empty{padding:0;border-top:0}#edd-order-overview-actions.inside>div{display:flex;align-items:center}#edd-order-overview-actions .edd-order-overview-actions__notice{flex-basis:100%;margin-top:15px}.edd-order-overview-actions .button{width:100%;margin-bottom:12px}.edd-order-overview-actions .button:last-of-type{margin-bottom:0}@media screen and (min-width:782px){.edd-order-overview-actions .button{width:auto;margin-right:12px;margin-bottom:0}.edd-order-overview-actions .button:first-of-type{margin-right:auto}}.edd-order-overview-actions__locked{font-style:italic;opacity:.8}@media screen and (max-width:782px){.edd-order-overview-actions__locked{margin-bottom:12px}}.edd-order-overview-actions__refund .dashicons{margin-left:8px}.edd-dialog .ui-button-icon-only{font-size:0}.download_page_edd-payment-history .ui-dialog,.download_page_edd-payment-history .ui-dialog-content{overflow:visible}.edd-order-overview-modal form>p{margin-top:0}.edd-order-overview-modal fieldset legend,.edd-order-overview-modal form label{display:block;margin-bottom:4px}.edd-order-overview-modal fieldset{margin-bottom:calc(1em - 3px)}.edd-order-overview-modal fieldset>p{margin:2px 0 3px}.edd-order-overview-modal form .submit{margin:0 -16px -16px;padding:16px;background:#fcfcfc;border-top:1px solid #dfdfdf;display:flex;align-items:center}.edd-order-overview-modal form .submit .spinner{margin:0}.edd-order-overview-add-item [for=auto-calculate]{display:flex;align-items:center}.edd-order-overview-add-item [for=auto-calculate] input[type=checkbox]{margin-top:0}.edd-order-overview-add-item [for=auto-calculate] .label{line-height:1.15;margin-right:8px}.edd-order-overview-add-item [for=auto-calculate] .label small{margin-top:4px;display:block;opacity:.75}.edd-order-overview-add-adjustment .notice,.edd-order-overview-add-item .notice{margin:0 0 1rem}.edd-order-overview-add-adjustment #description,.edd-order-overview-add-discount select{width:100%}.edd-order-overview-error{font-style:italic;color:#a00;display:block;margin:4px 0}.edd-order-copy-download-link textarea{width:100%}.edd-admin-order-status-badge{padding:2px 7px;border-radius:4px;background:#ececec;display:inline-flex;align-items:center}.edd-admin-order-status-badge__icon{opacity:.8;margin:0 2px 0 -2px}.edd-admin-order-status-badge--refunded .edd-admin-order-status-badge__icon{font-size:16px;width:16px;height:16px}.edd-admin-order-status-badge--failed{color:#ac3d3d;background:#ffd6d6}.edd-admin-order-status-badge--failed .edd-admin-order-status-badge__icon{margin-right:0;margin-top:-1px}.edd-admin-order-status-badge--complete{color:#017d5c;background:#e5f5f0}.edd-admin-order-status-badge--complete .edd-admin-order-status-badge__icon{margin-right:0}.edd-admin-order-status-badge--pending{color:#7d6e01;background:#f5f2e5}.edd-admin-order-status-badge--processing{color:#015a7d;background:#e5f1f5}.wp-list-table.orderitems .refunded .edd-admin-order-status-badge{margin-right:10px}.edd-order-resend-email-chooser legend{font-weight:700;margin-bottom:4px}.edd-order-resend-email-chooser p{margin:4px 0}.edd-notes .edd-note{padding:10px;background-color:#ffe;border:1px solid #cc0;width:100%;position:relative;margin-bottom:10px;box-sizing:border-box;overflow:hidden}.edd-notes .edd-note.deleting{opacity:.5}.edd-notes .edd-note__header{display:flex;align-items:center}.edd-add-note .spinner{float:none;display:inline-block;margin:0}.edd-notes .edd-note time{font-size:11px;color:#aaa}.edd-notes .edd-note .edd-note-author{margin-left:5px}.edd-notes .edd-note .edd-delete-note{color:#a00;font-weight:700;text-decoration:none;margin-right:auto}.edd-notes .edd-note .edd-delete-note:hover{color:#888}.edd-notes .edd-note p:last-child{margin-bottom:0}.edd-notes .edd-no-notes{margin:4px 0 10px}textarea[name=edd-note]{width:100%;min-height:70px;margin-top:0}.edd-notes-wrapper{width:80%}.edd-note-pagination{float:left;margin:-35px 5px 15px}.edd-note-pagination a,.edd-note-pagination span.page-numbers{padding:5px 8px;margin:2px;text-decoration:none}.edd-note-pagination a{border:1px solid #e5e5e5;background:#fcfcfc}.edd-note-pagination a:last-child,.edd-note-pagination span.page-numbers:last-child{margin-left:0}#edd-products{height:100px;min-width:200px}#edd-add-discount input[type=text],#edd-edit-discount input[type=text]{width:300px}#edd-add-discount .edd-discount-datetime input,#edd-edit-discount .edd-discount-datetime input{vertical-align:middle}#edd-add-discount input[type=text].edd_datepicker,#edd-edit-discount input[type=text].edd_datepicker{display:inline-block;width:183px}#edd-edit-discount textarea{height:100px}.edd-amount-type-wrapper{position:relative;display:flex}.edd-amount-type-wrapper select{border-top-right-radius:0;border-bottom-right-radius:0;width:auto!important}.edd-amount-type-wrapper #edd-amount{border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-2px;padding:0 8px;width:unset;max-width:125px}.edd-amount-type-wrapper input:focus{z-index:2}.post-type-download .tablenav.top .edd-select{margin-left:6px}.wp-list-table.addresses .column-primary strong,.wp-list-table.customers .column-primary strong,.wp-list-table.discounts .column-primary strong,.wp-list-table.emails .column-primary strong,.wp-list-table.orderadjustments .column-primary strong,.wp-list-table.orderitems .column-primary strong,.wp-list-table.orders .column-primary strong{font-size:14px}.wp-list-table.customers .column-primary .avatar,.wp-list-table.emails .column-customer .avatar{float:right;margin-left:10px;margin-top:1px;border-radius:5px}.wp-list-table.orders div.order-list-email{font-size:.85em;color:#888}.wp-list-table.orders th.column-amount{width:100px}.wp-list-table .row-actions span.activate a{color:green}.wp-list-table .row-actions span.refund a{color:#836fff}.wp-list-table .row-actions span.cancel a{color:#cc8c00}.wp-list-table .row-actions span.cancel a:hover,.wp-list-table .row-actions span.refund a:hover{opacity:.8}.wp-list-table .type-download .row-actions{color:#999}.no-js.edit-tags-php.post-type-download .wp-heading-inline{position:absolute;top:0}.no-js.edit-tags-php.post-type-download .nav-tab-wrapper{margin-top:50px}.download_page_edd-customers .wrap .nav-tab-wrapper .page-title-action,.download_page_edd-discounts .wrap .nav-tab-wrapper .page-title-action,.download_page_edd-payment-history .wrap .nav-tab-wrapper .page-title-action,.edit-tags-php.post-type-download .wrap .nav-tab-wrapper .page-title-action{top:3px;margin-right:10px;line-height:24px}#edd-payments-filter ul.subsubsub{margin-bottom:8px}tr.status-refunded td{background:#cecece;border-top-color:#ccc}marquee{padding:0;margin:0}@media handheld,only screen and (max-width:640px){.wp-list-table.downloads th{width:auto!important}}#edd-download-link-textarea{width:100%}.edd_files_name_label{width:225px;float:right}.edd_files_url_label{width:220px;float:right}#postbox-container-1 .edd_files_name_label,#postbox-container-1 .edd_files_url_label{width:80px}#edd_product_files .inside,#edd_product_prices .inside{margin-bottom:0}textarea#edd-payment-note{width:100%;height:4em;margin:0}#edd-order-items .row .edd-purchased-files-list-wrapper .download{line-height:1.4}#edd-order-items .edd-purchased-files-list-wrapper .edd-purchased-option{color:#666}input[class*=edd-price-field]{max-width:125px}#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:80%;max-width:125px}#edd_product_notes_field{display:block;margin:12px 0 0;height:4em;width:100%}.edd-metabox-title-action{margin:0;float:left;padding:4px 8px;position:relative;top:-1px;text-decoration:none;border:1px solid #ccc;border-radius:2px;background:#f7f7f7;text-shadow:none;font-weight:600;font-size:10px;line-height:normal;color:#0073aa;cursor:pointer;outline:0}.edd-metabox-title-action:hover{border-color:#008ec2;background:#00a0d2;color:#fff}.edd-edit-purchase-element .tablenav{padding:2px 10px 8px}.edd-edit-purchase-element .edd-order-children-wrapper{margin:0 -1px}.edd-edit-purchase-element .edd-order-children-wrapper.child-count-0 table{border-top:none;border-bottom:none}.edd-edit-purchase-element .edd-order-children-wrapper.child-count-0 .tablenav{display:none}.edd-edit-purchase-element[class*=columns-] ul li{padding-left:1%}#edd-edit-order-form .column:nth-child(odd),#edd-edit-order-form .columns-4 .column:nth-child(odd),#edd-edit-order-form .columns-5 .column:nth-child(3n+1){margin-left:0}#edd-edit-order-form input.large-text{width:90%}.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 #f1f1f1;clear:both;padding:12px;margin:0;word-wrap:break-word}.edd-admin-box-inside--row{display:flex;flex-wrap:wrap;word-break:break-all;justify-content:space-between;align-items:center}.edd-admin-box-inside>p{margin:8px 3px}.edd-admin-box-inside .strong{font-weight:600}.edd-admin-box div:not(.edd-admin-box-inside--row) .label{display:block;margin-bottom:4px;margin-left:0}.edd-admin-box .label--has-tip{display:flex;align-items:center}.edd-admin-box .label--has-tip .edd-help-tip{margin-top:0;font-size:20px}.edd-admin-box div:not(.edd-admin-box-inside--row) .label--has-checkbox{margin-bottom:0}.edd-payment-fees .fee-label{color:#666;font-weight:400}.edd-admin-box .right{float:left}#edd-order-refunds-list{padding-right:25px}#poststuff .edd-order-data .inside{margin:0;padding:0}.edd-order-data .edd-select-chosen{width:130px!important}.edd-order-data input.edd_datepicker{width:180px}.edd-order-data input[type=number].edd-payment-time-hour,.edd-order-data input[type=number].edd-payment-time-min{width:50px}.edd-order-data .edd-tax-rate{color:#9c9c9c;font-style:italic;padding:5px}#edd_general_logs p{margin:0;padding:0}.edd-admin-box-inside span.label{margin-left:10px}#edd-order-resend-receipt .inside{margin-top:11px}#edd-order-resend-receipt .edd-order-resend-receipt-addresses{margin-top:10px}.edd-order-resend-receipt-header{font-size:14px;line-height:1.4}.edd-order-resend-receipt-addresses label{display:block;line-height:1.75em}.edd-order-resend-receipt-addresses label:last-child{margin-bottom: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-left:10px}.edd-order-update-box .button-primary{margin-left:0}.edd-edit-purchase-element .edd-select-chosen{width:196px}.edd-edit-purchase-element ul{clear:both;display:block}#edd-customer-details .actions{float:left}.order-data-address h3{margin:0 0 10px}.order-data-address #edd-order-address-country-wrap,.order-data-address #edd-order-address-state-wrap{display:inline-block;width:50%;max-width:300px}.edd-order-data input.small-text{margin:0}.edd-order-data input.med-text{margin:0;width:100px}.edd-edit-purchase-element ul li{display:block;line-height:1.4;position:relative;margin:0;vertical-align:middle;font-size:13px}.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{margin:0 0 15px}.edd-edit-purchase-element ul:last-of-type{margin-bottom:0}#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-title .deleted{color:#777}.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-add-adjustment-to-purchase,.edd-add-download-to-purchase{padding:15px;border-top:1px solid #e5e5e5;background-color:#f5f5f5}.edd-add-adjustment-to-purchase .chosen-container,.edd-add-download-to-purchase .chosen-container{width:90%!important;max-width:220px!important}.edd-add-adjustment-to-purchase .spinner,.edd-add-download-to-purchase .spinner{margin:0;float:none}.edd-add-download-to-purchase .edd-add-order-quantity{width:40px;height:29px;vertical-align:middle}.edd-add-adjustment-to-purchase .edd-add-adjustment-button,.edd-add-adjustment-to-purchase input[type=text],.edd-add-download-to-purchase .edd-add-order-item-button{height:29px}@media screen and (max-width:1284px){.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}}@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-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-download-amount,.edd-price-currency{font-size:16px}.order-data-column input[type=email]{padding:6px 10px}.edd-refund-submit-line-total td:last-of-type{flex:0 0 120px}#edd-item-tables-wrapper .addresses tbody tr{display:-ms-grid;display:grid}#edd-item-tables-wrapper .addresses tbody td:not(.no-items){padding-right:35%}}@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_product_stats .label{display:inline-block}#edd_product_stats .product-earnings-stats:before,#edd_product_stats .product-sales-stats:before{color:#82878c;font:normal 20px/1 dashicons;display:inline-block;padding:0 0 0 2px;position:relative;top:0;right:-1px;speak:none;text-decoration:none!important;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#edd_product_stats .product-sales-stats:before{content:""}#edd_product_stats .product-earnings-stats:before{content:""}body.dashboard_page_edd-upgrades.js .postbox .hndle{cursor:default}.edd_dashboard_widget table thead td{border-bottom:1px solid #ececec;color:#777}.edd_dashboard_widget .table_left{float:right;width:45%}.edd_dashboard_widget .table_right{float:left;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{padding-left:6px;width:auto}.edd_dashboard_widget .t{font-size:12px;padding-left: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 12px 8px 0}.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-left:2px}.edd_dashboard_widget table{width:100%;margin-right:0;margin-bottom:1em}td.edd_order_label{width:80%}td.edd_order_price{text-align:left}@media handheld,only screen and (max-width:1000px){.edd_dashboard_widget .edd-recent-email{display:none}}body.download_page_edd-reports{overflow-y:scroll}.edd-chip{font-size:10px;font-weight:700;text-transform:uppercase;line-height:1;padding:3px;border-radius:3px;color:#fff;background-color:#444}.edd-reports-wrapper .postbox h2,.edd-reports-wrapper .postbox h3{font-size:1.3em}#edd-dashboard-widgets-wrap .metabox-holder{padding-top:0}.edd-reports-wrapper .postbox .edd-select{max-width:200px;vertical-align:baseline;margin-left:4px;margin-bottom:16px}.download_page_edd-reports #edd-item-wrapper{margin:0}#edd-dashboard-widgets-wrap .postbox h2,#edd-dashboard-widgets-wrap .postbox h3{cursor:default}.edd-date-range-options .edd_datepicker{width:105px}.edd-report-wrap{clear:both}.edd-report-wrap h3{clear:both;margin:0 0 20px}.edd-reports-chart,.edd-reports-table{margin-bottom:20px}.edd-admin--has-grid{display:grid;display:-ms-grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));grid-gap:20px}.edd-admin--has-grid .postbox{margin-bottom:0}.edd-admin--has-grid .edd-from-to-wrapper{display:flex;margin-bottom:16px;width:100%}.edd-admin--has-grid .edd-from-to-wrapper input{width:100%}.edd-admin--has-grid .edd-from-to-wrapper span{flex-grow:1}.edd-admin--has-grid form{display:flex;flex-direction:column;flex-wrap:wrap;position:relative}fieldset.edd-to-and-from-container{display:flex;gap:8px}fieldset.edd-to-and-from-container select{flex:0 0 calc(50% - 6px)}span.edd-to-and-from--separator{line-height:normal;-ms-grid-row-align:center;align-self:center;margin-bottom:16px}.edd-admin--has-grid .postbox .edd-select{max-width:100%;margin-left:0}.edd-admin--has-grid .button.updated-message:before,.edd-admin--has-grid .button.updating-message:before{vertical-align:text-bottom;margin:0 0 0 5px}.edd-import-export-form .edd-progress{background:#ddd;border-radius:15px;height:15px;flex-basis:100%}.edd-import-export-form .edd-progress div{background:#ccc;border-radius:15px;height:100%;width:0}.edd-import-export-form .notice-wrap{background-color:#f4f4f4;border-color:#eae9e9;border-style:solid;border-width:1px 0;padding:12px;overflow:auto;margin:20px -12px -23px;position:relative;width:100%;display:flex;justify-content:space-between;align-items:center}.notice-wrap div.notice{margin:0}.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}.graph-option-section{float:right}.edd-report-filters-title span{display:block;padding:20px}#edd-graphs-filter form{padding:20px}#edd-graphs-filter label{vertical-align:inherit}#edd-graphs-filter .graph-option-section{display:inline-block;line-height:2em;margin:0 0 0 5px;padding:0}.download_page_edd-reports .section-content #post-body-content{float:none}.download_page_edd-reports .section-content select[name=range]{display:none}.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-left:5px;width:20px;height:15px}.edd-pie-legend-item{display:inline-block;vertical-align:top;width:80%}#edd-reports-tiles-wrap .metabox-holder{padding:0}#edd-reports-tiles-wrap #dashboard-widgets{overflow:auto}#edd-reports-tiles-wrap #dashboard-widgets .postbox-container{width:33.3%}.download_page_edd-reports .section-content .tablenav.top{display:none}#edd_tax_rates{margin:1em 0 0}[id*=edd-recapture-].button{font-size:16px;height:auto;padding:8px 14px;margin:6px 0 0}[id*=edd-recapture-].button .dashicons{line-height:29px;margin-left:8px}[id*=edd-recapture-].button .edd-loading,[id*=edd-recapture-].button .edd-loading:after{border-radius:50%;display:inline-block;width:14px;height:14px}[id*=edd-recapture-].button .edd-loading{position:relative;top:3px;margin-right:4px;box-shadow:0 0 2px rgba(0,0,0,.2);animation:edd-spinning 1.1s linear infinite;border:2px solid hsla(0,0%,100%,.5);border-right-color:#fff;font-size:14px;filter:alpha(opacity=0);transform:translateZ(0)}#edd-recapture-disconnect.button .edd-loading.dark{border-color:rgba(0,0,0,.2) #666 rgba(0,0,0,.2) rgba(0,0,0,.2);box-shadow:none}.recapture-notice{position:relative}@keyframes edd-spinning{0%{transform:rotate(0deg)}to{transform:rotate(-1turn)}}#edd-chartjs-tooltip{position:absolute;background-color:#fff;border-radius:7px;transition:all .1s ease;pointer-events:none;transform:translate(50%);font-size:12px;box-shadow:0 0 0 1px rgba(89,94,100,.1),0 15px 35px 0 rgba(89,94,100,.1),0 5px 15px 0 rgba(0,0,0,.12);min-width:120px;opacity:0}.edd-chartjs-tooltip-key{display:inline-block;width:10px;height:10px;margin-left:5px}#edd-send-test-summary-save-changes-notice .notice p{font-size:13px}#edd-send-test-summary-notice,#edd-send-test-summary-save-changes-notice{display:flex;margin-top:5px}.edd-graph .y1Axis{color:#edc240!important}.edd-graph .y2Axis{color:#afd8f8!important}.wp-list-table.apikeys input.code{width:100%;font-size:10px;cursor:text;background:#fff;border:1px solid #ddd;box-shadow:none;color:#555}.edd-toggle{position:relative;display:inline-block;overflow:visible}.edd-toggle input[type=checkbox]{display:inline-block;vertical-align:middle;position:relative;margin:0;padding:0;width:42px;min-width:42px;height:24px;background-color:#ccc;transition:background .2s ease;border-radius:34px;box-shadow:none;border:none}.edd-toggle .label{display:inline-block;vertical-align:middle;white-space:nowrap}.edd-toggle input[type=checkbox]:before{position:absolute;content:"";height:18px;width:18px;right:3px;bottom:3px;background-color:#fff;transition:transform .1s ease;border-radius:50%}@media only screen and (max-width:782px){.edd-toggle input[type=checkbox]:checked:before{margin:-.1875rem -.25rem 0 0}}.edd-toggle input[type=checkbox]:checked{background-color:#007cba;background-color:var(--wp-admin-theme-color)}.edd-toggle input[type=checkbox]:active,.edd-toggle input[type=checkbox]:focus{outline:0;box-shadow:0 0 0 1px #fff,0 0 0 3px #7e8993}.edd-toggle input[type=checkbox]:checked:active,.edd-toggle input[type=checkbox]:checked:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px #007cba;box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color)}.edd-toggle input[type=checkbox]:checked:before{transform:translateX(-22px)}.edd-toggle .label+input,.edd-toggle input+.label{margin-right:5px}.download_page_edd-tools .tablenav .actions{overflow:visible}.edd_user_search_wrap{position:relative;overflow:visible}.edd_user_search_wrap .spinner{position:absolute;margin:0;padding:0;left:4px;top:-2px}.edd_user_search_wrap.loading .spinner{visibility:visible}.edd_user_search_results{position:absolute;right:0;top:20px}.edd_user_search_results a.edd-ajax-user-cancel{position:absolute;left:6px;top:2px}.edd_user_search_results ul{background:#fafafa;border:1px solid #dfdfdf;overflow-y:scroll;padding:0;margin:0;height:150px;width:185px;box-shadow:0 3px 5px rgba(0,0,0,.1)}.edd_user_search_results li{margin:0}.edd_user_search_results li a{display:block;text-decoration:none;padding:6px 10px}.edd_user_search_results li a:hover{background:#f5f5f5}.edd_user_search_results li.no-users{text-align:center;vertical-align:middle;display:block;line-height:150px;color:#bbb;text-transform:uppercase;font-size:11px}@media screen and (max-width:1100px){.edd-mix-chart{display:block;width:100%}}@media screen and (max-width:782px){.license-expiration-date-notice,.license-lifetime-notice,.license-null{padding-right:0}}@media screen and (max-width:600px){#edd-edit-order-form input.large-text{width:100%}}#edd-item-wrapper{background:#fff;border:1px solid #c3c4c7;box-shadow:0 1px 1px rgba(0,0,0,.04);position:relative;margin-top:15px;display:flex}#edd-item-wrapper.full-width{max-width:100%}#edd-item-wrapper:after{content:"";display:block;clear:both;visibility:hidden;font-size:0;height:0}.edd-sections-wrap{clear:both;width:100%}.edd-sections-wrap .section-wrap{background-color:#fff;display:inline-block;z-index:2}.js .edd-sections-wrap .edd-vertical-sections:not(.meta-box) .section-wrap>div{min-height:500px;height:100%}.edd-sections-wrap .section-wrap .customer-section:not(:last-child){border-bottom:1px solid #eee}.edd-sections-wrap .section-wrap .customer-section table{margin-bottom:20px}.edd-sections-wrap .section-wrap{border-right:1px solid #e5e5e5}.edd-sections-wrap .section-wrap .section-content>*{padding:20px}.edd-sections-wrap .section-wrap .section-content h2{margin:0;padding-bottom:0}.edd-sections-wrap .section-wrap .avatar-wrap{float:right;padding-left:10px;text-align:center}.edd-sections-wrap .section-wrap img.avatar{border-radius:5px}.edd-sections-wrap .section-wrap .customer-id{position:absolute;left:0;top:0;padding:10px;background-color:#fafafa;border-bottom-right-radius:20%;border:1px solid #eee;border-top:none;border-left:none;font-family:monospace;font-size:18px;font-weight:600}.edd-item-info.customer-info input[type=password],.edd-item-info.customer-info input[type=text],.edd-item-info.customer-info select{width:200px;height:auto;box-shadow:none;transition:none;border:1px solid #ddd;margin:-5px -2px 4px 0;font-size:13px;padding:2px 4px}.edd-sections-wrap .section-wrap .customer-main-wrapper{float:right}.edd-sections-wrap .section-wrap .customer-main-wrapper input[name="customerinfo[name]"]{font-size:24px}.edd-sections-wrap .section-wrap .customer-address-wrapper{float:left;margin-top:-3px;margin-left:50px;width:202px}.edd-sections-wrap .section-wrap .info-wrapper{min-height:125px;overflow:visible}.edd-sections-wrap .section-wrap .customer-address span[data-key=address2],.edd-sections-wrap .section-wrap .customer-address span[data-key=address],.edd-sections-wrap .section-wrap .customer-address span[data-key=country]{display:block}.edd-sections-wrap .section-wrap a.delete{color:red;margin-left:5px;text-decoration:none}.customer-info{min-height:185px}.customer-info .customer-name{font-size:24px;font-weight:600}.customer-info .customer-name.editable{margin-bottom:6px}.customer-edit-link a{font-weight:400;text-decoration:none}.disconnect-user a{color:#aaa;font-size:20px}#customer-edit-actions{padding:3px;line-height:28px;text-align:center}#customer-edit-actions .button-secondary{margin-left:5px}#customer-edit-actions .cancel{padding:5px}.edd-sections-wrap .section-wrap .row-title{width:30%}.edd-sections-wrap .section-wrap .editable{display:block;padding:3px}.edd-sections-wrap .section-wrap div.edit-item{margin-right:-4px;margin-top:-20px}.edd-sections-wrap .section-wrap .customer-address.edit-item{margin-top:3px}.edd-sections-wrap .section-wrap span.edit-item{display:none}.edd-sections-wrap .section-wrap .edit-item input{font-size:13px}.edd-sections-wrap .section-wrap .customer-name.edit-item input{margin-top:-5px}.edd-sections-wrap .section-wrap .edd_user_search_results{right:-2px;top:18px}.edd-sections-wrap .section-wrap .edd_user_search_results ul{width:198px}#edd-item-stats-wrapper{margin:0 auto;text-align:center}#edd-item-stats-wrapper ul{display:flex;margin:0}#edd-item-stats-wrapper li{font-size:14px;margin-bottom:0;width:50%}#edd-item-stats-wrapper a{text-decoration:none}#edd-item-stats-wrapper .dashicons{color:#888;margin-top:-2px}#edd-item-tables-wrapper table{width:100%}#edd-item-tables-wrapper .no-items{text-align:right}#edd-item-tables-wrapper .emails .add-customer-email-row{background-color:#f4f4f4;border-top:1px solid #e5e5e5}#edd-item-tables-wrapper .add-customer-email-wrapper{display:flex;flex-wrap:wrap;align-items:center;margin:12px 0}#edd-item-tables-wrapper .edd-form-group{margin-bottom:0}#edd-item-tables-wrapper .edd-make-email-primary{flex-grow:1;margin-right:12px}#edd-item-tables-wrapper .emails .spinner{float:none;margin:0 10px;-ms-grid-row-align:center;align-self:center}#edd-item-tables-wrapper .notice-error{background-color:#fff5f5}#edd-item-notes-wrapper{min-height:50px}.customer-note-input{margin-bottom:5px;width:100%}.customer-note-wrapper{border-bottom:1px solid #f9f9f9;min-height:38px;padding:7px 7px 7px 0}.customer-note-wrapper span{display:block}.note-content-wrap{padding-top:7px}.edd-sections-wrap .section-wrap .notice-container{padding-right:20px;padding-left:20px;margin-right:-20px;margin-left:-20px}@media screen and (max-width:810px)and (min-width:656px){.customer-info .customer-name{font-size:16px}.edd-sections-wrap .section-wrap .widefat td,.widefat th{max-width:100%!important;display:table-cell}}@media screen and (max-width:781px){#edd-item-tab-wrapper,.edd-sections-wrap .section-wrap{margin:0;width:100%}#edd-item-tab-wrapper-list .dashicons{font-size:18px}.edd-item-has-tabs .edd-sections-wrap .section-wrap{border-top:1px solid #e5e5e5;border-right:0;margin-top:-1px}}@media screen and (max-width:656px){.edd-item-info.customer-info{position:relative}.edd-sections-wrap .section-wrap .customer-address-wrapper{float:none;position:absolute;top:84px;right:165px;max-width:200px}.edd-sections-wrap .section-wrap .customer-main-wrapper{float:none;position:absolute;right:165px}.customer-info .customer-name{font-size:16px}.edd-sections-wrap .section-wrap #edd-item-stats-wrapper{padding-right:0;padding-left:0}.edd-sections-wrap .section-wrap .customer-section{margin-bottom:0}.edd-sections-wrap .section-wrap .widefat td.column-primary,.edd-sections-wrap .section-wrap .widefat td.no-items,.edd-sections-wrap .section-wrap .widefat th.column-primary{width:100px!important;display:table-cell;overflow:hidden;text-align:right}.edd-sections-wrap .section-wrap .customer-id{display:none}#edd-item-tables-wrapper .emails td.column-primary{padding-left:10px;width:100%!important}#edd-item-tables-wrapper .edd-form-group{margin:0 0 16px}}@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 0 1px 1px}#edd-item-tab-wrapper-list li:nth-child(2n){border-width:0 0 1px}.download_page_edd-reports .button{text-align:center}#edd-payment-date-filters span{display:block}#edd-payment-date-filters span>input{float:left}#edd-add-discount select[multiple] option,#edd-edit-discount select[multiple] option{height:20px}.download_page_edd-reports .inside .button,.download_page_edd-reports .inside input[type=submit],.download_page_edd-reports .inside input[type=text],.download_page_edd-reports .inside select,.download_page_edd-settings .inside input[type=button],.download_page_edd-tools .inside input[type=submit],.download_page_edd-tools .inside input[type=text],.download_page_edd-tools .inside select{width:100%}#edd-add-discount select[multiple],#edd-edit-discount select[multiple],.download_page_edd-tools select[multiple]{height:200px!important}.download_page_edd-settings input[type=checkbox]{margin:2px 0}.post-type-download input[type=checkbox]{margin-right:2px}}.inside .edd-tools-textarea{background:#32373c;color:rgba(240,245,250,.7);font-size:12px;font-family:Menlo,Monaco,monospace;display:block;overflow:auto;white-space:pre;width:100%;height:450px;padding:10px;outline:none}#system-info-textarea::selection{background:#555;color:#fff}#edd-system-info .edd-inline-button{margin-right:5px}.recount-stats-controls form{display:inline}.edd-recount-stats-descriptions span{display:none;line-height:24px}.edd-vertical-sections{overflow:visible;display:block;display:flex}#edd-item-tab-wrapper,.edd-vertical-sections .section-nav{position:relative;width:20%;line-height:1em;margin:0 0 0 -1px;padding:0;background-color:#f5f5f5;border-left:1px solid #e5e5e5;box-sizing:border-box;max-width:200px}#edd-item-tab-wrapper-list{margin:0}#edd-item-tab-wrapper li,.edd-vertical-sections .section-nav li{display:block;position:relative;margin:0;padding:0;background-color:#fcfcfc}.edd-vertical-sections .section-title:last-of-type{margin-bottom:24px}#edd-item-tab-wrapper li>.edd-item-tab-label-wrap,#edd-item-tab-wrapper li a,.edd-vertical-sections .section-nav li a{display:flex;margin:0;padding:9px;text-decoration:none;border-bottom:1px solid #e5e5e5;box-shadow:none;position:relative;align-items:center}#edd-item-tab-wrapper li a:focus,#edd-item-tab-wrapper li a:hover,.edd-vertical-sections .section-nav li a:focus,.edd-vertical-sections .section-nav li a:hover{box-shadow:inset -5px 0;outline:0;transition:all .25s}.edd-vertical-sections .section-nav .section-title--is-active a:after{content:"";width:1px;height:100%;background:#fff;position:absolute;left:0;top:0;bottom:0;z-index:3}#edd-item-tab-wrapper li>.edd-item-tab-label-wrap{background-color:#fff}.edd-vertical-sections .section-nav li a>.dashicons,.edd-vertical-sections .section-nav li a>span{display:inline-block}.edd-vertical-sections .section-nav li a>span{max-width:76%}.edd-vertical-sections .section-nav li a .dashicons{line-height:20px;margin-left:3px;color:#888}.edd-vertical-sections .section-nav .section-title--is-active a{font-weight:700;color:#555;background-color:#fff;border-left:none;margin-left:-1px}.edd-vertical-sections.use-js .section-content,.no-js .edd-vertical-sections.use-js.edd-item-header-small,.no-js .edd-vertical-sections.use-js .section-nav{display:none}.no-js .edd-vertical-sections.use-js .section-content{display:block}.admin-color-fresh .edd-vertical-sections .section-nav .section-title--is-active a,.admin-color-fresh .edd-vertical-sections .section-nav li a:focus,.admin-color-fresh .edd-vertical-sections .section-nav li a:hover{box-shadow:inset -5px 0 #0073aa}.admin-color-blue .edd-vertical-sections .section-nav .section-title--is-active a,.admin-color-blue .edd-vertical-sections .section-nav li a:focus,.admin-color-blue .edd-vertical-sections .section-nav li a:hover{box-shadow:inset -5px 0 #096484}.admin-color-coffee .edd-vertical-sections .section-nav .section-title--is-active a,.admin-color-coffee .edd-vertical-sections .section-nav li a:focus,.admin-color-coffee .edd-vertical-sections .section-nav li a:hover{box-shadow:inset -5px 0 #c7a589}.admin-color-ectoplasm .edd-vertical-sections .section-nav .section-title--is-active a,.admin-color-ectoplasm .edd-vertical-sections .section-nav li a:focus,.admin-color-ectoplasm .edd-vertical-sections .section-nav li a:hover{box-shadow:inset -5px 0 #a3b745}.admin-color-midnight .edd-vertical-sections .section-nav .section-title--is-active a,.admin-color-midnight .edd-vertical-sections .section-nav li a:focus,.admin-color-midnight .edd-vertical-sections .section-nav li a:hover{box-shadow:inset -5px 0 #e14d43}.admin-color-ocean .edd-vertical-sections .section-nav .section-title--is-active a,.admin-color-ocean .edd-vertical-sections .section-nav li a:focus,.admin-color-ocean .edd-vertical-sections .section-nav li a:hover{box-shadow:inset -5px 0 #627c83}.admin-color-sunrise .edd-vertical-sections .section-nav .section-title--is-active a,.admin-color-sunrise .edd-vertical-sections .section-nav li a:focus,.admin-color-sunrise .edd-vertical-sections .section-nav li a:hover{box-shadow:inset -5px 0 #be3631}.admin-color-light .edd-vertical-sections .section-nav .section-title--is-active a,.admin-color-light .edd-vertical-sections .section-nav li a:focus,.admin-color-light .edd-vertical-sections .section-nav li a:hover{box-shadow:inset -5px 0 #888}.admin-color-evergreen .edd-vertical-sections .section-nav .section-title--is-active a,.admin-color-evergreen .edd-vertical-sections .section-nav li a:focus,.admin-color-evergreen .edd-vertical-sections .section-nav li a:hover{box-shadow:inset -5px 0 #36533f}.admin-color-mint .edd-vertical-sections .section-nav .section-title--is-active a,.admin-color-mint .edd-vertical-sections .section-nav li a:focus,.admin-color-mint .edd-vertical-sections .section-nav li a:hover{box-shadow:inset -5px 0 #4f6d59}.edd-vertical-sections .section-nav .section-title--is-active .dashicons{color:#555}@media only screen and (max-width:782px){#edd-item-tab-wrapper,.edd-vertical-sections .section-nav{width:48px}.edd-vertical-sections .section-nav li a{justify-content:center}.edd-vertical-sections .section-nav li a .dashicons{width:24px;height:24px;font-size:24px;line-height:24px;margin:0}.section-nav li .dashicons:before{width:24px;height:24px}#edd-item-tab-wrapper .edd-item-tab-label,.section-nav li .label{overflow:hidden;position:absolute;top:-1000em;right:-1000em;width:1px;height:1px}}#edd-item-card-wrapper,.edd-vertical-sections .section-wrap{width:80%}#edd-item-card-wrapper .item-section{background:#fff;overflow:hidden;box-sizing:border-box}:not(#edd-item-tab-wrapper)+#edd-item-card-wrapper .item-section{margin:25px 0;padding:20px;border:1px solid #e5e5e5;box-shadow:0 1px 1px rgba(0,0,0,.04)}#edd-item-tab-wrapper+#edd-item-card-wrapper{padding:20px;border-right:1px solid #e5e5e5;box-sizing:border-box}@media only screen and (min-width:1200px){#edd-graphs-filter,#edd-item-card-wrapper,.edd-vertical-sections:not(.meta-box) .section-wrap{width:calc(100% - 200px)}}@media only screen and (max-width:782px){#edd-graphs-filter,#edd-item-card-wrapper,.edd-vertical-sections .section-wrap{width:calc(100% - 48px)}}#edd-debug-log .edd-inline-button{margin-right:5px}.edd-settings-sidebar{padding-top:27px}.edd-settings-sidebar-content{background-color:#fff;text-align:center;border:1px solid #ddd;box-sizing:border-box;max-width:300px}.edd-settings-sidebar-content p{font-size:14px;line-height:1.5;margin-top:0}.edd-sidebar-header-section{background-color:#35495c;line-height:1;padding:26px 20px 24px;border-bottom:3px dashed #fafafa}.edd-sidebar-description-section{background-color:#fafafa;padding:16px 20px;border-bottom:1px solid #ddd}.edd-sidebar-description-section .edd-sidebar-description{margin:0}.edd-sidebar-coupon-section{font-size:14px;padding:16px 20px}.edd-sidebar-coupon-section label{display:block;line-height:1.4;margin-bottom:6px}.edd-sidebar-coupon-section label strong{color:#253b51;font-weight:700}.edd-sidebar-coupon-section input{background:#f4f7fa;font-size:22px;font-weight:600;text-align:center;padding:10px;border:2px dashed #2794da;border-radius:4px;margin-bottom:16px;box-shadow:none;width:100%}.edd-sidebar-coupon-section input:focus{border:2px dashed #2794da;box-shadow:none}.edd-settings-sidebar-content .edd-coupon-note{color:#6c7883;font-size:13px;font-style:italic;margin:0}.edd-settings-sidebar-content .edd-coupon-note a{color:#253b51}.edd-settings-sidebar-content .edd-coupon-note a:hover{text-decoration:none}.edd-sidebar-footer-section{background-color:#fafafa;padding:16px 20px;border-top:1px solid #ddd}.edd-sidebar-footer-section .edd-cta-button{display:block;background-color:#2794da;color:#fff;text-decoration:none;font-size:20px;font-weight:700;text-transform:uppercase;padding:17px 10px;border:none;border-radius:4px;width:100%;box-sizing:border-box;box-shadow:none;transition:background-color .2s}.edd-sidebar-footer-section .edd-cta-button:hover{background-color:#2386c5}@media (min-width:1080px){.edd-has-sidebar .edd-settings-content{float:right;width:67%}.edd-has-sidebar .edd-settings-sidebar{float:left;width:31%}}@media (min-width:1240px){.edd-has-sidebar .edd-settings-content{width:74%}.edd-has-sidebar .edd-settings-sidebar{width:23%}}.taxes-tab .edd-has-sidebar .edd-settings-content,.taxes-tab .edd-has-sidebar .edd-settings-sidebar{float:none;width:100%}.bfcm-promo-img-container{background-color:#35495c;width:100%;height:160px}.bfcm-code{color:#2794da;font-weight:700}.sale-ends{position:absolute;bottom:9px;left:14px;display:inline-block;color:#6c7883;font-size:12px;text-align:left;font-style:italic;width:150px} \ No newline at end of file +.edd-custom-price-option-sections-wrap{display:none;border:1px solid #c3c4c7;border-top:0 solid #c3c4c7;box-sizing:border-box;width:100%}.edd-custom-price-option-section{display:block;padding:10px 8px;border-bottom:1px solid hsla(0,0%,87.1%,.3)}.edd-custom-price-option-section-title{display:block;font-weight:600;padding:0 0 10px}.edd-custom-price-option-section-content{display:flex;gap:12px;margin-bottom:6px}.edd-custom-price-option-section:last-child{border-bottom:none}.toggle-custom-price-option-section{color:#787c82}.toggle-custom-price-option-section:hover{color:#537994}#edd_product_settings .edd-product-options__title,#edd_product_settings .inside strong{border-top:1px solid #c3c4c7;border-bottom:1px solid #c3c4c7;background-color:#f9f9f9;display:flex;font-weight:600;margin:0 -12px 16px;padding:8px 12px;justify-content:space-between;align-items:center}#edd_product_settings .edd-product-options-wrapper:first-of-type .edd-product-options__title,#edd_product_settings .inside div:first-child strong{margin-top:-8px}#edd_product_settings .edd-product-options__title .edd-help-tip,#edd_product_settings .inside strong .edd-help-tip{font-size:20px}#edd_product_settings .label--block{display:block;margin:0 0 4px}.edd_repeatable_row.ui-sortable-placeholder{line-height:0;padding:0;margin:0;box-sizing:border-box;border:1px dashed #c3c4c7;visibility:visible!important}.edd-add-repeatable-row{border-top:1px solid #c3c4c7;padding:12px;margin:15px -12px -12px;display:flex;justify-content:flex-end;align-items:center}.edd_repeatable_row input[type=text].large-text{width:100%}.edd_repeatable_upload_wrapper:not(:first-child),.edd_variable_prices_wrapper:not(:first-child){margin-top:12px}.edd_repeatable_row.ui-sortable-helper .edd-repeatable-row-actions .edd-remove-row{display:none}.edd-repeatable-row-actions{color:#787c82}.edd-repeatable-row-actions a{text-decoration:none;width:auto;cursor:pointer}.edd-bundle-products-header,.edd-repeatable-row-header{clear:both;background:#f6f7f7;border:1px solid #c3c4c7;display:flex;justify-content:space-between}.edd-repeatable-row-header{cursor:move}.edd_repeatable_row:hover .edd-repeatable-row-header,.edd_repeatable_row:hover .edd-repeatable-row-standard-fields{border-color:#c3c4c7}.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-bundle-products-header,.edd-repeatable-row-title{font-weight:600}.edd-bundle-products-header,.edd-repeatable-row-actions,.edd-repeatable-row-title{padding:8px;box-sizing:border-box}.edd-repeatable-row-actions{flex-grow:1;text-align:left}.edd-bundled-product-row .edd-remove-row,.edd-repeatable-row-actions .edd-remove-row{width:auto;cursor:pointer}.edd-bundled-product-row,.edd-repeatable-row-standard-fields{padding:8px;border:1px solid #c3c4c7;border-top:0 solid #c3c4c7;display:flex;justify-content:space-between;align-items:center;gap:18px}.edd-bundled-product-row .edd-form-group,.edd-repeatable-row-standard-fields .edd-form-group{margin-bottom:0;display:inline-flex;flex-direction:column;flex-grow:1;justify-content:space-between}.edd-repeatable-row-setting-label .edd-help-tip{display:inline-block;margin-right:4px}.edd-bundled-product-item-reorder{min-width:30px}.edd-bundled-product-item-reorder .edd-product-file-reorder{font-size:20px;cursor:move;color:#dcdcde;font-family:dashicons;content:"";transition:color .2s}.edd-bundled-product-item-reorder .edd-product-file-reorder:hover{color:#a7aaad}.edd-bundled-product-actions{-ms-grid-row-align:center;align-self:center}#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}@media screen and (max-width:480px){.edd-bundle-products-header,.edd-bundled-product-row,.edd-repeatable-row-header,.edd-repeatable-row-standard-fields{flex-wrap:wrap}.edd-bundled-product-row .edd-form-group,.edd-repeatable-row-standard-fields .edd-form-group{margin-right:0!important;margin-bottom:24px}}.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_repeatable_upload_wrapper .edd_repeatable_upload_field_container{position:relative;width:100%}.edd_repeatable_upload_wrapper .edd_repeatable_upload_field_container+span:first-child{width:100%}.edd_repeatable_upload_field{padding-left:32px}.edd_upload_file button{background:#f6f7f7;border:none;border-right:1px solid #c3c4c7;padding:0 4px;position:absolute;height:calc(100% - 4px);overflow:hidden;top:2px;left:2px;display:inline-flex;justify-content:center;align-items:center}.edd-form-group{margin-bottom:16px}.edd-form-group:last-of-type{margin-bottom:0}.edd-form-group>label,.edd-form-group__label{display:block;font-weight:600;margin-bottom:8px;padding:0}.edd-form-group__control{margin-bottom:12px;max-width:100%}.edd-form-group__control.is-check,.edd-form-group__control.is-radio{margin-top:4px}.edd-form-group__control:last-of-type{margin-bottom:0}.edd-form-group__control--is-inline{display:inline-flex;align-items:flex-end}.edd-form-group__input{max-width:100%}.edd-form-group__input[type=checkbox],.edd-form-group__input[type=radio]{margin-top:0}.edd-form-group__input[type=checkbox]+label,.edd-form-group__input[type=radio]+label{display:unset}select.edd-form-group__input{max-width:100%}.edd-form-group__help{color:#646970;font-size:13px;font-style:italic;line-height:normal;margin:8px 0 0}.edd-form-row{display:flex;flex-wrap:wrap;gap:12px}.edd-form-row__column{display:inline-flex;flex-direction:column;justify-content:flex-end}.edd-form-row__column.edd-form-group{margin-bottom:0}.edd-form-row label,.edd-form-row label.edd-form-group__label{margin-bottom:8px}#edd-migration-progress .dashicons-minus{color:#949494}#edd-migration-progress .dashicons-yes{color:green}#edd-migration-progress .dashicons-update:before{animation:rotation 2s linear infinite;display:block}#edd-v3-migration-remove-legacy-data-submit-wrap{display:flex;align-items:center;gap:6px}#edd-v3-migration-remove-legacy-data-submit-wrap .button{margin:0}#edd-filters{padding:10px;margin:0;display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px}#edd-filters .filter-items{flex-wrap:wrap;gap:6px;float:none;flex-grow:1}#edd-filters .filter-items,#edd-filters .filter-items .graph-option-section{display:flex;align-items:center}#edd-filters .filter-items .edd-date-range-picker[data-range=other] .edd-graphs-date-options{border-top-left-radius:4px;border-bottom-left-radius:4px}#edd-filters .filter-items .edd-date-range-picker[data-range=other] .edd-date-range-dates,#edd-filters .filter-items .edd-date-range-picker[data-range=other] .edd-date-range-relative-dates{display:none}#edd-filters .filter-items .edd-date-range-options{display:inline-block;margin:10px 0}#edd-filters .filter-items .edd-graphs-date-options{border-top-left-radius:0;border-bottom-left-radius:0}#edd-filters .filter-items .edd-date-range-dates{display:flex;align-items:center;border:1px solid #8c8f94;border-right:none;color:#2c3338;padding:4px 10px;margin-right:-5px;border-top-left-radius:4px;border-bottom-left-radius:4px;cursor:pointer;gap:4px}#edd-filters .filter-items .edd-date-range-dates.hidden{display:none}#edd-filters .filter-items .edd-date-range-selected-date{display:inline-block}#edd-filters .filter-items .edd-date-range-relative-dates{display:flex;align-items:center;margin-right:10px}#edd-filters .filter-items .edd-date-range-relative-dates.hidden{display:none}#edd-filters .filter-items .edd-date-range-selected-relative-date{position:relative;display:flex;align-items:center;border:1px solid #8c8f94;padding:4px 6px 4px 2px;color:#2c3338;margin-right:10px;margin-left:10px;border-radius:4px;cursor:pointer}#edd-filters .filter-items .edd-date-range-selected-relative-date .arrow-down{width:16px;height:auto;margin-right:6px;margin-top:2px;vertical-align:middle}#edd-filters .filter-items .edd-date-range-selected-relative-date.opened .edd-date-range-relative-dropdown{display:block}#edd-filters .filter-items .edd-date-range-relative-dropdown{position:absolute;z-index:99;width:420px;right:50%;top:100%;margin-top:10px;transform:translateX(50%);background-color:#fff;border:1px solid #8c8f94;border-radius:4px;box-shadow:0 2px 5px 0 rgba(0,0,0,.25);display:none}#edd-filters .filter-items .edd-date-range-relative-dropdown:after{height:10px;width:10px;position:absolute;content:"";background:#fff;border-color:#8c8f94;border-style:solid;border-width:0 0 1px 1px;transform:rotate(135deg);top:-6px;right:calc(50% - 4px)}#edd-filters .filter-items .edd-date-range-relative-dropdown .spinner{display:none}#edd-filters .filter-items .edd-date-range-relative-dropdown.loading{padding:10px;text-align:center}#edd-filters .filter-items .edd-date-range-relative-dropdown.loading .spinner{display:inline-block;visibility:visible;margin:0;float:unset}#edd-filters .filter-items .edd-date-range-relative-dropdown.loading :not(.spinner){display:none}#edd-filters .filter-items .edd-date-range-relative-dropdown ul li{display:flex;align-items:center;padding:2px 10px;opacity:.85;gap:20px}#edd-filters .filter-items .edd-date-range-relative-dropdown ul li.active,#edd-filters .filter-items .edd-date-range-relative-dropdown ul li:hover{cursor:pointer;color:var(--wp-admin-theme-color);opacity:1}#edd-filters .filter-items .edd-date-range-relative-dropdown ul li .date-range-name{width:110px}@media screen and (max-width:950px){#edd-filters .filter-items .graph-option-section{margin-top:8px;width:100%}#edd-filters .filter-items .edd-date-range-picker{flex-wrap:wrap}#edd-filters .filter-items .edd-graphs-date-options{width:100%;max-width:100%;min-height:40px;font-size:14px;border-top-left-radius:4px;border-bottom-left-radius:4px}#edd-filters .filter-items .edd-date-range-dates{width:100%;margin-top:10px;border:1px solid #8c8f94;margin-right:unset;border-radius:4px;font-size:14px;padding:8px 8px 8px 6px}#edd-filters .filter-items .edd-date-range-relative-dates{width:100%;flex-wrap:wrap;margin-right:0;margin-top:6px}#edd-filters .filter-items .edd-date-range-selected-relative-date{width:100%;margin-top:8px;margin-right:0;margin-left:0;font-size:14px;padding:8px 8px 8px 6px;flex-wrap:wrap}#edd-filters .filter-items .edd-date-range-selected-relative-date .arrow-down{margin-right:auto}#edd-filters .filter-items .edd-date-range-relative-dropdown{position:relative;width:100%;right:0;top:0;transform:unset;box-shadow:unset;border:unset;margin:0}#edd-filters .filter-items .edd-date-range-relative-dropdown:after{display:none}#edd-filters .filter-items .edd-date-range-relative-dropdown ul{margin-bottom:0}#edd-filters .filter-items .edd-date-range-relative-dropdown ul li{padding-right:0;padding-left:0;justify-content:space-between;flex-wrap:wrap;gap:unset}#edd-filters .filter-items .edd-date-range-relative-dropdown ul li .date-range-dates,#edd-filters .filter-items .edd-date-range-relative-dropdown ul li .date-range-name{width:100%}}#edd-filters>p{color:#757575}#edd-filters input[type=number],#edd-filters input[type=text].edd_datepicker{max-width:105px}#edd-filters .button-secondary,#edd-filters input[type=number]{margin-bottom:0}#edd-filters .search-form{margin:0}@media screen and (max-width:480px){#edd-filters span{margin:2px 0}}#edd-advanced-filters{position:relative}#edd-advanced-filters .inside{z-index:99;position:absolute;top:29px;left:0;border:1px solid #e0e0e0;padding:0;background:#fff;box-shadow:0 3px 5px rgba(0,0,0,.2);min-width:285px;opacity:0;visibility:hidden}#edd-advanced-filters fieldset{display:block;padding:10px 15px 15px;margin:10px 0}#edd-advanced-filters fieldset:not(:last-of-type){border-bottom:1px solid #e0e0e0}#edd-advanced-filters fieldset:last-of-type{padding-bottom:5px}#edd-advanced-filters fieldset.edd-add-on-filters div,#edd-advanced-filters fieldset.edd-add-on-filters label,#edd-advanced-filters fieldset.edd-add-on-filters p,#edd-advanced-filters fieldset.edd-add-on-filters span{display:block;margin-bottom:2px}#edd-advanced-filters div.edd-select-chosen:not(:last-child){margin-bottom:10px}#edd-advanced-filters.open .edd-advanced-filters-button{background:#e0e0e0;border-color:#949494;box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5);transform:translateY(1px)}#edd-advanced-filters.open .inside{visibility:visible;opacity:1;transition:opacity .2s ease-in}.download_page_edd-reports #edd-filters{margin-bottom:-1px;box-shadow:none}@media screen and (max-width:782px){.download_page_edd-reports #edd-filters{gap:0}}.edd-old-log-filters{margin-top:-30px;margin-right:2px}@media screen and (min-width:600px){#edd-reports-charts-wrap{display:-ms-grid;display:grid;-ms-grid-columns:(minmax(200px,50%))[2];grid-template-columns:repeat(2,minmax(200px,50%));grid-gap:20px}.edd-reports-chart{margin-bottom:0}.edd-reports-chart-bar,.edd-reports-chart-line{-ms-grid-column:1;-ms-grid-column-span:2;grid-column:1/span 2}}.edd-reports-chart{height:500px;max-height:700px}.chart-timezone{font-size:.75rem;color:#ccc}.edd-mobile-link{line-height:32px}.edd-mobile-link a{text-decoration:none}.edd-mobile-link a:after,.edd-mobile-link a:before{display:inline-block;-webkit-font-smoothing:antialiased;font:normal 20px/30px dashicons;vertical-align:top;margin:1px 0 0;padding:0}.edd-mobile-link a:before{content:"";color:#757575;margin-left:-3px}.edd-mobile-link a:after{content:""}#edd-reports-tiles-wrap #dashboard-widgets .sortable-placeholder{padding:0;margin:0 0 20px;line-height:0;box-sizing:border-box;height:110px}#edd-reports-tiles-wrap #dashboard-widgets #primary-sortables{margin-right:0}#edd-reports-tiles-wrap #dashboard-widgets #tertiary-sortables{margin-left:0}#edd-reports-tiles-wrap{display:-ms-grid;display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));grid-gap:20px}.edd-reports-tile{text-align:center;padding:20px 10px 35px;display:flex;flex-direction:column;justify-content:center;border:1px solid #e5e5e5;background:#fafafa;position:relative;box-sizing:border-box;gap:.5em}.edd-reports-tile>span:not(.tile-compare){width:100%}.edd-reports-tile .tile-label{text-align:center;text-transform:uppercase;font-size:12px;font-weight:400;color:#101517}.edd-reports-tile .tile-value{color:#333;font-size:2em;line-height:1;transition:all .2s ease-in-out;display:flex;justify-content:center;flex-direction:column;gap:.25em}.edd-reports-tile:hover{border:1px solid #aaa}.edd-reports-tile:hover .tile-value:not(.tile-no-data){transform:scale(1.05)}.edd-reports-tile .tile-amount{color:#2794da}.edd-reports-tile .tile-number{color:#96f}.edd-reports-tile .tile-amount,.edd-reports-tile .tile-number{color:#fff}.edd-reports-tile .tile-value.tile-no-data{color:#ddd}.edd-reports-tile .tile-value.tile-url{font-size:1.5em}.edd-reports-tile .tile-relative{font-size:12px;font-weight:400;color:#888}.edd-reports-tile span.dashicons{display:inline-block;font-size:30px;line-height:20px;height:20px;width:20px;position:relative;top:4px;right:-5px;margin-right:-5px;color:#999}.edd-reports-tile .tile-relative span.dashicons{top:-5px;right:-3px;margin-right:0}.edd-reports-tile .tile-relative span.dashicons-arrow-down,.edd-reports-tile .tile-relative span.dashicons-arrow-up.reverse{color:#d63638}.edd-reports-tile .tile-relative span.dashicons-arrow-down.reverse,.edd-reports-tile .tile-relative span.dashicons-arrow-up{color:#008a20}.edd-reports-tile .tile-compare{position:absolute;left:0;bottom:0;color:#aaa;font-size:11px;line-height:1em;background-color:#fff;border-color:#e5e5e5 #e5e5e5 #fff #fff;border-style:solid;border-width:1px;border-top-right-radius:8px;padding:4px 9px 0 0;margin:0 0 -1px -1px}.edd-reports-tile:hover .tile-compare{border-right:1px solid #bbb;border-top:1px solid #bbb;color:#777}#edd-submit-refund-status{text-align:center;font-size:1.2em}#edd-submit-refund-status .edd-submit-refund-message:before{font-family:dashicons;font-size:1.5em;vertical-align:middle;color:#fff;border-radius:16px;margin:5px}#edd-submit-refund-status .edd-submit-refund-message.success:before{content:"";background-color:#008a20;padding-left:1px}#edd-submit-refund-status .edd-submit-refund-message.fail{display:block;margin-bottom:16px}#edd-submit-refund-status .edd-submit-refund-message.fail:before{content:"";background-color:#d63638}.refund-items td,.refund-items th.check-column{vertical-align:baseline}.refund-items .column-amount,.refund-items .column-discount,.refund-items .column-quantity,.refund-items .column-subtotal,.refund-items .column-tax,.refund-items .column-total{width:80px}.refund-items .edd-form-group__control{display:flex;align-items:center}.refund-items .edd-form-group__control input,.refund-items .edd-form-group__control select{background-color:transparent;border:0;border-bottom:1px solid;border-radius:0;box-shadow:none;text-align:left;width:100%}.refund-items .edd-form-group__control input:disabled,.refund-items .edd-form-group__control select:disabled{border-bottom:none}.refund-items .edd-form-group__control input:focus,.refund-items .edd-form-group__control select:focus{border-bottom:1px solid var(--wp-admin-theme-color-darker-10);box-shadow:0 1px 0 var(--wp-admin-theme-color-darker-10)}.refund-items .edd-form-group__control select[data-original="1"]{background:transparent}.refund-items .edd-form-group__control .is-before+span>input,.refund-items .edd-form-group__control select{text-align:right}.refund-items .edd-refund-submit-line-total{background-color:#fff!important}.refund-items .edd-refund-submit-line-total td{text-align:left}.refund-items .edd-refund-submit-line-total-amount{display:inline-block;margin-right:20px;text-align:right;width:80px}.refund-items #edd-refund-submit-subtotal td{border-top:2px solid #c3c4c7}@media screen and (max-width:782px){.refund-items td.column-total{margin-bottom:16px}.refund-items .edd-refund-submit-line-total-amount{padding-left:16px;width:unset}}.edd-submit-refund-actions{margin:16px 0 0}.did-refund .edd-submit-refund-actions,.did-refund .refund-items{display:none}.edd-admin-notice-top-of-page{font-size:15px;line-height:1.4;color:#fff;margin-right:-20px;padding:12px 20px 12px 32px;background:#2d6ca2}.edd-admin-notice-top-of-page.edd-pro-inactive{background:#d63638}@media screen and (min-width:783px){.edd-admin-notice-top-of-page{padding:10px 22px 10px 46px}}@media screen and (min-width:961px){.edd-admin-notice-top-of-page{text-align:center}}.edd-admin-notice-top-of-page a{color:#fff}.edd-admin-notice-top-of-page a:hover{text-decoration:none}.edd-admin-notice-top-of-page .button-link{position:absolute;top:48px;left:-1px;font-size:20px;color:#fff;font-weight:700;text-decoration:none;margin-right:5px;padding:6px 10px}.edd-admin-notice-top-of-page .button-link:active,.edd-admin-notice-top-of-page .button-link:focus,.edd-admin-notice-top-of-page .button-link:hover{color:#fff;text-decoration:none}@media screen and (min-width:601px){.edd-admin-notice-top-of-page .button-link{top:1px}}@media screen and (min-width:783px){.edd-admin-notice-top-of-page .button-link{left:9px}}#edd-admin-notice-five-star-review{display:-ms-grid;display:grid}#edd_dashboard_sales .edd-promo-notice{border-bottom:1px solid #c3c4c7}.edd-review-actions{display:flex;gap:6px;margin:0 0 16px}.edd-promo-notice .edd-peeking{align-self:flex-end;justify-self:flex-end;margin-left:16px;margin-bottom:-1px}@media screen and (max-width:782px){#edd-admin-notice-five-star-review.notice .edd-peeking{margin-bottom:-6px}}@media screen and (min-width:480px){.edd-promo-notice.notice-info .edd-peeking{justify-self:flex-start;margin-left:0;margin-right:250px}}.edd-promo-notice .edd-peeking,.edd-review-step{-ms-grid-row:1;grid-area:1/-1}.edd-promo-notice__overlay{display:none;position:fixed;background:rgba(16,21,23,.75);top:0;left:0;bottom:0;right:160px;z-index:11;justify-content:center;align-items:center}.folded .edd-promo-notice__overlay{right:36px}@media screen and (max-width:782px){.edd-promo-notice__overlay{right:0}}.edd-admin-notice-overlay{display:none;background-color:#fff;padding:2.5em;text-align:center;max-width:650px;position:relative;flex-direction:column}.edd-promo-notice__overlay .edd-admin-notice-overlay{display:flex}.edd-admin-notice-overlay h2{line-height:1.6em;margin:0 auto;max-width:540px}.edd-admin-notice-overlay .edd-promo-notice__features{text-align:right;display:-ms-grid;display:grid;-ms-grid-columns:(auto)[3];grid-template-columns:repeat(3,auto);margin:2em auto;gap:0 1.5em}.edd-admin-notice-overlay .edd-promo-notice__features li{display:flex;gap:.5em;align-items:center}@media screen and (max-width:600px){.edd-admin-notice-overlay .edd-promo-notice__features{-ms-grid-columns:unset;grid-template-columns:unset}}.edd-admin-notice-overlay .button-primary{padding:4px 36px;margin:0 auto .5em;max-width:360px}.edd-admin-notice-overlay__link{color:#101517}.edd-admin-notice-overlay .edd-promo-notice-dismiss.button-link{position:absolute;color:#537994;text-decoration:none;font-size:2em;top:0;left:.5em}.edd-admin-notice-overlay .edd-promo-notice-dismiss.button-link:active,.edd-admin-notice-overlay .edd-promo-notice-dismiss.button-link:hover{color:#101517}@media screen and (max-width:782px){.edd-admin-notice-overlay{margin:1em}}.edd-paypal-account-status ul{margin-right:25px}.edd-paypal-account-status>li{margin-bottom:1em}.edd-paypal-account-status ul:not(.edd-paypal-webhook-events){list-style:disc;list-style-position:inside}.edd-paypal-account-status ul:not(.edd-paypal-webhook-events) li{margin:.25em 0}.edd-paypal-account-status .dashicons-yes{color:#008a20}.edd-paypal-account-status .dashicons-no{color:#d63638}.edd-overlay{position:fixed;z-index:1052;top:0;left:0;bottom:0;right:160px;background-color:#141b38;opacity:.5;transition:.5s}.edd-slide-in{transform:translateX(-100%)!important;-webkit-transform:translateX(-100%)!important}#edd-notifications-panel{background-color:#fff;height:100%;width:100%;max-width:570px;position:fixed;z-index:1053;top:0;left:0;bottom:0;overflow-x:hidden;transition:.5s;transform:translateX(0);-webkit-transform:translateX(0)}body.admin-bar #edd-notifications-panel{top:32px}@media screen and (max-width:600px){body.admin-bar #edd-notifications-panel{top:46px}}#edd-notifications-header{display:flex;align-items:center;padding:0 30px;color:#fff;background-color:#0c5d95}#edd-notifications-header h3{color:#fff;flex:1}#edd-notifications-header .edd-close{background:none;border:none;color:#fff;cursor:pointer}#edd-notifications-body{padding:30px}.edd-notification{display:flex;gap:20px;margin-bottom:20px}.edd-notification--icon{color:#00aa63}.edd-notification--icon.edd-notification--icon-info{color:#005ae0}.edd-notification--icon.edd-notification--icon-warning{color:#f18200}.edd-notification--icon.edd-notification--icon-error{color:#df2a4a}.edd-notification--body{flex:1}.edd-notification--header{align-items:center;display:flex;justify-content:space-between;gap:5px;margin-bottom:7px}.edd-notification--title{color:#141b38;flex:1;font-size:16px;font-weight:600;margin:0}.edd-notification--date{color:#71747e;font-size:12px}.edd-notification--actions{flex-wrap:wrap;display:flex;align-items:center;gap:5px;margin-top:10px}.edd-notification--dismiss{background:none!important;border:none!important;box-shadow:none!important;color:#71747e!important;cursor:pointer;padding:0 10px;text-decoration:underline}.edd-notification--dismiss:hover{text-decoration:none}.edd-dialog{display:none}.edd-item-header-small{padding-bottom:20px;border-bottom:1px solid #e5e5e5;display:flex;justify-content:flex-start;align-items:center;gap:6px}.edd-item-header-small span{font-weight:600;font-size:15px}.wrap-licenses .edd-licenses__description{margin:2em 1em}.wrap-licenses .form-table,.wrap-licenses caption,.wrap-licenses tfoot,.wrap-licenses th,.wrap-licenses thead,.wrap-licenses tr{display:block}@media screen and (min-width:600px){.wrap-licenses .form-table,.wrap-licenses caption,.wrap-licenses tfoot,.wrap-licenses th,.wrap-licenses thead,.wrap-licenses tr{display:unset}}.wrap-licenses tbody{display:-ms-grid;display:grid;gap:1em}.wrap-licenses .form-table tr{margin:0;background:#fff;border:1px solid #dcdcde;border-radius:3px;padding:0;box-sizing:border-box;display:flex;flex-direction:column;justify-content:space-between}@media screen and (min-width:600px){.wrap-licenses .form-table tr{display:-ms-grid;display:grid;-ms-grid-columns:200px 1fr;grid-template-columns:200px 1fr}}.wrap-licenses .form-table th{background:#f9f9f9;margin-bottom:2.5em;padding:1em;border-bottom:1px solid #dcdcde;width:unset}@media screen and (min-width:600px){.wrap-licenses .form-table th{border-bottom:none;margin-bottom:0;display:flex;align-items:center}}.wrap-licenses .form-table td{margin:0;padding:0;display:flex;flex-direction:column;gap:2.5em;flex-grow:1}@media screen and (min-width:600px){.wrap-licenses .form-table td{flex-direction:row;gap:unset}}.wrap-licenses .form-table td input.regular-text{margin:0;width:100%;max-width:250px}.wrap-licenses .form-table td button{margin:0}.wrap-licenses .form-table .edd-license__control{flex-grow:1;padding:0 1em;display:flex;gap:4px;align-items:center;justify-content:center}@media screen and (min-width:600px){.wrap-licenses .form-table .edd-license__control{justify-content:flex-end}}.wrap-licenses .form-table .edd-licensing__actions{display:flex;gap:4px}.wrap-licenses .edd-license-data[class*=edd-license-]{background:#f9f9f9;padding:1em;border-top:1px solid #dcdcde;margin:0;width:100%;box-sizing:border-box;display:flex;align-items:flex-end}.wrap-licenses .edd-license-data[class*=edd-license-] a{color:#444}.wrap-licenses .edd-license-data[class*=edd-license-] a:hover{text-decoration:none}@media screen and (min-width:600px){.wrap-licenses .edd-license-data[class*=edd-license-]{border-top:none;width:unset;flex-basis:100%;align-items:center}.wrap-licenses .edd-license-data[class*=edd-license-]:not(:only-child){flex:0 1 300px}}.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 .edd-license-data.edd-license-expired a:hover,.wrap-licenses .edd-license-data.license-expires-soon-notice a:hover{text-decoration:none}.edd-settings-content{max-width:1440px}.edd-settings-color,.edd-settings-colors{display:flex;flex-wrap:wrap;gap:1em}.edd-settings-color{flex-direction:column}.edd-upload-button-wrapper{width:100%;display:flex;gap:5px}.edd-upload-button-wrapper button.edd_settings_upload_button{margin-bottom:0}#edd-payment-gateways a.button.edd-settings__button-settings{position:absolute;left:2em;min-height:unset;height:1.5em;width:1.5em;border:none;background-color:#f9f9f9}#edd-payment-gateways a.button.edd-settings__button-settings,#edd-payment-gateways a.button.edd-settings__button-settings:active,#edd-payment-gateways a.button.edd-settings__button-settings:hover{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNS4yOSA2LjI5M2wtMS41MTUuODc1YTUuODczIDUuODczIDAgMDEwIDEuNjY0bDEuNTE1Ljg3NS0yLjE2NiAzLjc1My0xLjUxNi0uODc1YTUuODI3IDUuODI3IDAgMDEtMS40NDEuODMzdjEuNzQ5SDUuODM0di0xLjc1YTUuODI1IDUuODI1IDAgMDEtMS40NDEtLjgzMmwtMS41MTYuODc1TC43MSA5LjcwN2wxLjUxNi0uODc1YTUuODc4IDUuODc4IDAgMDEwLTEuNjY0TC43MSA2LjI5MyAyLjg3NyAyLjU0bDEuNTE2Ljg3NmE1LjgyNyA1LjgyNyAwIDAxMS40NC0uODMzVi44MzNoNC4zMzR2MS43NWE1LjgzIDUuODMgMCAwMTEuNDQuODMzbDEuNTE3LS44NzYgMi4xNjYgMy43NTN6TTggMTAuMzMzYTIuMzMzIDIuMzMzIDAgMTAwLTQuNjY2IDIuMzMzIDIuMzMzIDAgMDAwIDQuNjY2eiIgZmlsbD0iIzZCNzI4MCIvPjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTUuMjkgNi4yOTNsLTEuNTE1Ljg3NWE1Ljg3MyA1Ljg3MyAwIDAxMCAxLjY2NGwxLjUxNS44NzUtMi4xNjYgMy43NTMtMS41MTYtLjg3NWE1LjgyNyA1LjgyNyAwIDAxLTEuNDQxLjgzM3YxLjc0OUg1LjgzNHYtMS43NWE1LjgyNSA1LjgyNSAwIDAxLTEuNDQxLS44MzJsLTEuNTE2Ljg3NUwuNzEgOS43MDdsMS41MTYtLjg3NWE1Ljg3OCA1Ljg3OCAwIDAxMC0xLjY2NEwuNzEgNi4yOTMgMi44NzcgMi41NGwxLjUxNi44NzZhNS44MjcgNS44MjcgMCAwMTEuNDQtLjgzM1YuODMzaDQuMzM0djEuNzVhNS44MyA1LjgzIDAgMDExLjQ0LjgzM2wxLjUxNy0uODc2IDIuMTY2IDMuNzUzek04IDEwLjMzM2EyLjMzMyAyLjMzMyAwIDEwMC00LjY2NiAyLjMzMyAyLjMzMyAwIDAwMCA0LjY2NnoiIGZpbGw9IiNmZmYiIGZpbGwtb3BhY2l0eT0iLjUiLz48L3N2Zz4=);background-size:1em;background-repeat:no-repeat;background-position:50%}.edd-plugin__active #edd-payment-gateways a.button.edd-settings__button-settings{display:block}.edd-hidden{display:none}.edd-clearfix:after{content:"";display:table;clear:both}.edd-notice .notice-dismiss,.edd-wrap a{text-decoration:none}.wp-core-ui .edd-delete,a.edd-delete{color:#a00}.wp-core-ui .edd-delete:hover,a.edd-delete:hover{color:red}body.post-type-download #contextual-help-link-wrap,body.post-type-download #screen-options-link-wrap{top:5px!important}body.post-type-download #screen-meta{margin:0 -20px -1px 0}#edd-header{border-top:5px solid #0c5d95;border-bottom:1px solid #c3c4c7;padding:20px 0;margin-right:-20px;background:#fff}#edd-header-wrapper{display:flex;justify-content:space-between;padding:0 20px;align-items:center}#edd-header img{display:block;max-width:300px;margin:0}.edd-header-page-title-wrap{font-size:1.75em;margin-top:-5px;margin-left:auto;padding-right:7px}.edd-header-separator{margin-top:-2px;opacity:.25}.edd-header-page-title{font-weight:400;font-size:1em;line-height:1.3em;display:inline}.edd-header-page-title-wrap .button{margin-right:5px}.no-js #edd-header-actions{display:none}#edd-header .edd-round{position:relative;background-color:#f3f4f5;border-radius:50%;width:40px;height:40px;display:flex;align-items:center;justify-content:center;margin-right:10px;cursor:pointer;transition:background-color .2s ease}button.edd-round{border:none}#edd-header button.edd-round:hover{background-color:#e5e5e5}button.edd-round:active,button.edd-round:focus{outline:2px solid #0c5d95}#edd-header .edd-number{position:absolute;background-color:#df2a4a;width:16px;height:16px;font-weight:600;font-size:10px;color:#fff;top:-8px;right:50%;transform:translateX(50%);margin:0;animation:bounce 2s 5}#edd-header .edd-number.edd-hidden{display:none!important}#edd-header .edd-round svg{width:20px;height:20px}@media screen and (max-width:840px){#edd-header img,.edd-header-separator{display:none}}.edd_datepicker{height:29px}.edd-from-to-wrapper input{width:105px;margin:0;position:relative;z-index:1}.edd-from-to-wrapper input[name*=start],.edd-from-to-wrapper input[name=filter_from]{border-top-left-radius:0;border-bottom-left-radius:0}.edd-from-to-wrapper input[name*=end],.edd-from-to-wrapper input[name=filter_to]{margin-right:-1px;border-top-right-radius:0;border-bottom-right-radius:0}.edd-from-to-wrapper input:focus{z-index:2;position:relative}.edd-settings-sub-nav{margin:0 0 10px;width:100%;border-bottom:1px solid #ccc;box-shadow:0 1px 1px rgba(0,0,0,.04)}.edd-settings-sub-nav a{padding:13px;display:block}.edd-settings-sub-nav a.current{border-bottom:4px solid #000;padding-bottom:9px}.admin-color-fresh .edd-settings-sub-nav a.current{border-bottom-color:#00a0d2}.admin-color-blue .edd-settings-sub-nav a.current{border-bottom-color:#096484}.admin-color-coffee .edd-settings-sub-nav a.current{border-bottom-color:#c7a589}.admin-color-ectoplasm .edd-settings-sub-nav a.current{border-bottom-color:#a3b745}.admin-color-midnight .edd-settings-sub-nav a.current{border-bottom-color:#e14d43}.admin-color-ocean .edd-settings-sub-nav a.current{border-bottom-color:#627c83}.admin-color-sunrise .edd-settings-sub-nav a.current{border-bottom-color:#be3631}.admin-color-light .edd-settings-sub-nav a.current{border-bottom-color:#888}.admin-color-evergreen .edd-settings-sub-nav a.current{border-bottom-color:#36533f}.admin-color-mint .edd-settings-sub-nav a.current{border-bottom-color:#4f6d59}.download_page_edd-settings .edd-check-wrapper{clear:both}.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-sortable-list{margin:0;width:300px;position:relative}.edd-sortable-list li{margin:0;padding:0;position:relative;height:28px;cursor:move}.edd-sortable-list li label *{vertical-align:middle}.edd-sortable-list li label:after{display:block;width:17px;height:17px;position:absolute;left:6px;top:0;color:#aaa;font-family:dashicons;font-size:17px;content:"";cursor:move}.form-table .edd-sortable-list li label{display:block;height:28px;padding:0;margin:0}.edd-sortable-list .payment-icon{width:32px;height:24px;position:relative;top:-2px;margin-left:5px}.edd-help-tip{cursor:help;margin-top:-2px;font-size:24px;color:grey}.edd-ui-tooltip{position:absolute;background:#333!important;border-width:1px!important;border-radius:3px!important;box-shadow:-1px 1px 2px 1px hsla(0,0%,83.9%,.5)!important;color:#dedede!important;max-width:300px!important;padding:7px!important;text-rendering:optimizeLegibility;text-shadow:none!important;z-index:9999!important}.download_page_edd-settings .edd-settings-payment-icon-wrapper{margin-top:5px}.download_page_edd-settings .edd-settings-payment-icon-wrapper input{margin-top:1px}.download_page_edd-settings .form-table .edd-settings-payment-icon-wrapper input[type=checkbox]+label{margin:0;display:inline-block}.download_page_edd-settings .edd-settings-payment-icon-wrapper .payment-icon-image{margin-left:5px;width:32px;display:inline-block;vertical-align:middle}.download_page_edd-settings .edd-settings-payment-icon-wrapper .payment-option-name{vertical-align:middle}.download_page_edd-settings .taxrates td,.download_page_edd-settings .taxrates th{padding:8px 10px}.download_page_edd-settings .taxrates td{line-height:1.5em;vertical-align:top;margin:0}.download_page_edd-settings .taxrates .regular-text{width:100%}#TB_window{overflow:hidden}#TB_title{padding:5px}#TB_ajaxContent{width:calc(100% - 30px)!important;padding:15px;margin:0;height:calc(100% - 118px)!important}#TB_ajaxWindowTitle{font-size:18px;font-weight:600;line-height:30px}#TB_closeWindowButton{left:6px;top:6px}#choose-download-wrapper{width:100%}#choose-download-wrapper .wrap{overflow-y:scroll;margin:0;padding:0;height:calc(100% - 50px)}#choose-download-wrapper .submit-wrapper{position:absolute;width:100%;bottom:0;padding:0;margin:0 -15px 0 0;text-align:left}#choose-download-wrapper .submit-wrapper div{background-color:#fafafa;padding:15px;border-top:1px solid #ddd}.wp-media-buttons .button.edd-thickbox{padding-right:0}.wp-media-buttons .button.edd-email-tags-inserter .dashicons{margin-top:-2px}.download_page_edd-payment-history .edit-post-editor-regions__header{flex-shrink:0;height:auto;border-bottom:1px solid #e2e4e7;z-index:30;position:sticky;top:32px;margin-right:-20px}@media screen and (max-width:782px){.download_page_edd-payment-history .edit-post-editor-regions__header{position:static;top:46px}}.download_page_edd-payment-history .edit-post-header{height:56px;background:#fff;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;max-width:100%;box-sizing:border-box;padding:4px 20px}@media screen and (max-width:782px){.download_page_edd-payment-history .edit-post-header{padding-right:10px;padding-left:10px}}@media(min-width:280px){.download_page_edd-payment-history .edit-post-header{flex-wrap:nowrap}}.download_page_edd-payment-history .edit-post-header .edit-post-header__toolbar{order:0}.download_page_edd-payment-history .edit-post-header .edit-post-header__settings{order:1}.download_page_edd-payment-history .edit-post-header #publishing-action,.download_page_edd-payment-history .edit-post-header .edit-post-header__settings,.download_page_edd-payment-history .edit-post-header .edit-post-header__toolbar{display:flex;align-items:center}.download_page_edd-payment-history .edit-post-header #publishing-action .spinner{margin:0 0 0 5px}.download_page_edd-payment-history .edit-post-header .button-primary{margin:2px;height:34px;line-height:32px;font-size:13px}#edd-order-items .hndle{display:flex;align-items:center;justify-content:space-between}#edd-order-items .hndle .edd-toggle{font-weight:400}.edd-add-order-item td{vertical-align:middle}.edd-add-order-item input{width:80%}.edd-add-order-item input[readonly]{color:#555;background:none;border:1px solid transparent;box-shadow:none}.order-customer-info .customer-details-wrap{margin:15px 0;align-items:center}.order-customer-info .customer-details-wrap .spinner{margin:0}.order-customer-info .customer-details{display:flex;flex-direction:column}.order-customer-info .customer-details .customer-since{color:#666;display:block;margin:4px 0 6px}.order-customer-info .customer-details>span{margin-bottom:5px}.edd-order-add-download-select .spinner{display:none}table.edd-order-overview-summary{border-width:0;table-layout:fixed}table.edd-order-overview-summary--refund{border-width:0}@media screen and (min-width:782px){.edd-order-overview .column-right{text-align:left}}.edd-ml-auto{margin-right:auto!important}@media screen and (min-width:782px){.edd-ml-lg-auto{margin-right:auto!important}}.edd-ml-auto+.edd-ml-auto{margin-right:10px!important}.edd-order-overview-summary__items-name{align-self:flex-start}.edd-order-overview-summary__items>:nth-child(odd){background-color:#f9f9f9}@media screen and (min-width:782px){.edd-order-overview-summary__items tr:last-child td,.edd-order-overview-summary__items tr:last-child th{border-bottom:1px solid #e5e5e5}}@media screen and (max-width:782px){.edd-order-overview-summary .row-actions>*,.edd-order-overview-summary__items-name .row-actions{display:block!important}.edd-order-overview-summary .row-actions>:not(:first-child):before{display:none}}.edd-order-overview-summary th:not(.column-primary){width:100px}.edd-order-overview-summary .row-actions>:not(:first-child):before{color:#999;content:" | "}.edd-order-overview-summary .row-actions .text{color:#555}.edd-order-overview-summary .removable{display:flex;align-items:center;position:relative}.edd-order-overview-summary .removable .delete{display:inline-block;margin-left:10px;margin-right:-8px;padding:10px;border-left:1px solid #e5e5e5;color:#a00}.edd-order-overview-summary .removable .delete:hover{color:#dc3232}.edd-order-overview-summary__adjustments .column-primary{font-weight:600}.edd-order-overview-summary__adjustments td small{font-weight:400}.edd-order-overview-summary__subtotal .column-primary,.edd-order-overview-summary__tax tr:first-of-type .column-primary,.edd-order-overview-summary__total .column-primary{font-weight:600}.edd-order-overview-summary__adjustments td,.edd-order-overview-summary__subtotal td,.edd-order-overview-summary__tax td,.edd-order-overview-summary__total td{vertical-align:middle}.edd-order-overview-summary__tax td small,.edd-order-overview-summary__total td small{font-weight:400}.edd-order-overview-summary__total .total{color:#017d5c;display:inline-block}.edd-order-overview-summary__total .total.is-negative{color:#a00}@media screen and (min-width:783px){.edd-order-overview-summary__adjustments .removable .delete{margin-right:-50px}.edd-order-overview-summary__total .total{font-size:150%;padding-top:5px;padding-bottom:5px}}.edd-order-overview-summary__total tr:last-child td:not(:first-of-type),.edd-order-overview-summary__total tr:last-child th{border-top:1px solid #e5e5e5}.edd-order-overview-summary__total .notice{margin:-1px}.edd-order-overview-summary__total .notice p{font-weight:400;margin:.5em 0}.edd-order-overview-summary__refunds .column-primary{font-weight:600}.edd-order-overview-summary__refunds td small{font-weight:400}.edd-order-overview-summary__refunds tr:first-child td{border-top:1px solid #e5e5e5}#edd-order-overview-actions.inside{border-top:1px solid #ccd0d4;margin-top:0;display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between}#edd-order-overview-actions.inside:empty{padding:0;border-top:0}#edd-order-overview-actions.inside>div{display:flex;align-items:center}#edd-order-overview-actions .edd-order-overview-actions__notice{flex-basis:100%;margin-top:15px}.edd-order-overview-actions .button{width:100%;margin-bottom:12px}.edd-order-overview-actions .button:last-of-type{margin-bottom:0}@media screen and (min-width:782px){.edd-order-overview-actions .button{width:auto;margin-right:12px;margin-bottom:0}.edd-order-overview-actions .button:first-of-type{margin-right:auto}}.edd-order-overview-actions__locked{font-style:italic;opacity:.8}@media screen and (max-width:782px){.edd-order-overview-actions__locked{margin-bottom:12px}}.edd-order-overview-actions__refund .dashicons{margin-left:8px}.edd-dialog .ui-button-icon-only{font-size:0}.download_page_edd-payment-history .ui-dialog,.download_page_edd-payment-history .ui-dialog-content{overflow:visible}.edd-order-overview-modal form>p{margin-top:0}.edd-order-overview-modal fieldset legend,.edd-order-overview-modal form label{display:block;margin-bottom:4px}.edd-order-overview-modal fieldset{margin-bottom:calc(1em - 3px)}.edd-order-overview-modal fieldset>p{margin:2px 0 3px}.edd-order-overview-modal form .submit{margin:0 -16px -16px;padding:16px;background:#fcfcfc;border-top:1px solid #dfdfdf;display:flex;align-items:center}.edd-order-overview-modal form .submit .spinner{margin:0}.edd-order-overview-add-item [for=auto-calculate]{display:flex;align-items:center}.edd-order-overview-add-item [for=auto-calculate] input[type=checkbox]{margin-top:0}.edd-order-overview-add-item [for=auto-calculate] .label{line-height:1.15;margin-right:8px}.edd-order-overview-add-item [for=auto-calculate] .label small{margin-top:4px;display:block;opacity:.75}.edd-order-overview-add-adjustment .notice,.edd-order-overview-add-item .notice{margin:0 0 1rem}.edd-order-overview-add-adjustment #description,.edd-order-overview-add-discount select{width:100%}.edd-order-overview-error{font-style:italic;color:#a00;display:block;margin:4px 0}.edd-order-copy-download-link textarea{width:100%}.edd-admin-order-status-badge{padding:2px 7px;border-radius:4px;background:#ececec;display:inline-flex;align-items:center}.edd-admin-order-status-badge__icon{opacity:.8;margin:0 2px 0 -2px}.edd-admin-order-status-badge--refunded .edd-admin-order-status-badge__icon{font-size:16px;width:16px;height:16px}.edd-admin-order-status-badge--failed{color:#ac3d3d;background:#ffd6d6}.edd-admin-order-status-badge--failed .edd-admin-order-status-badge__icon{margin-right:0;margin-top:-1px}.edd-admin-order-status-badge--complete{color:#017d5c;background:#e5f5f0}.edd-admin-order-status-badge--complete .edd-admin-order-status-badge__icon{margin-right:0}.edd-admin-order-status-badge--pending{color:#7d6e01;background:#f5f2e5}.edd-admin-order-status-badge--processing{color:#015a7d;background:#e5f1f5}.wp-list-table.orderitems .refunded .edd-admin-order-status-badge{margin-right:10px}.edd-order-resend-email-chooser legend{font-weight:700;margin-bottom:4px}.edd-order-resend-email-chooser p{margin:4px 0}.edd-notes .edd-note{padding:10px;background-color:#ffe;border:1px solid #cc0;width:100%;position:relative;margin-bottom:10px;box-sizing:border-box;overflow:hidden}.edd-notes .edd-note.deleting{opacity:.5}.edd-notes .edd-note__header{display:flex;align-items:center}.edd-add-note .spinner{float:none;display:inline-block;margin:0}.edd-notes .edd-note time{font-size:11px;color:#aaa}.edd-notes .edd-note .edd-note-author{margin-left:5px}.edd-notes .edd-note .edd-delete-note{color:#a00;font-weight:700;text-decoration:none;margin-right:auto}.edd-notes .edd-note .edd-delete-note:hover{color:#888}.edd-notes .edd-note p:last-child{margin-bottom:0}.edd-notes .edd-no-notes{margin:4px 0 10px}textarea[name=edd-note]{width:100%;min-height:70px;margin-top:0}.edd-notes-wrapper{width:80%}.edd-note-pagination{float:left;margin:-35px 5px 15px}.edd-note-pagination a,.edd-note-pagination span.page-numbers{padding:5px 8px;margin:2px;text-decoration:none}.edd-note-pagination a{border:1px solid #e5e5e5;background:#fcfcfc}.edd-note-pagination a:last-child,.edd-note-pagination span.page-numbers:last-child{margin-left:0}#edd-products{height:100px;min-width:200px}#edd-add-discount input[type=text],#edd-edit-discount input[type=text]{width:300px}#edd-add-discount .edd-discount-datetime input,#edd-edit-discount .edd-discount-datetime input{vertical-align:middle}#edd-add-discount input[type=text].edd_datepicker,#edd-edit-discount input[type=text].edd_datepicker{display:inline-block;width:183px}#edd-edit-discount textarea{height:100px}.edd-amount-type-wrapper{position:relative;display:flex}.edd-amount-type-wrapper select{border-top-right-radius:0;border-bottom-right-radius:0;width:auto!important}.edd-amount-type-wrapper #edd-amount{border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-2px;padding:0 8px;width:unset;max-width:125px}.edd-amount-type-wrapper input:focus{z-index:2}.post-type-download .tablenav.top .edd-select{margin-left:6px}.wp-list-table.addresses .column-primary strong,.wp-list-table.customers .column-primary strong,.wp-list-table.discounts .column-primary strong,.wp-list-table.emails .column-primary strong,.wp-list-table.orderadjustments .column-primary strong,.wp-list-table.orderitems .column-primary strong,.wp-list-table.orders .column-primary strong{font-size:14px}.wp-list-table.customers .column-primary .avatar,.wp-list-table.emails .column-customer .avatar{float:right;margin-left:10px;margin-top:1px;border-radius:5px}.wp-list-table.orders div.order-list-email{font-size:.85em;color:#888}.wp-list-table.orders th.column-amount{width:100px}.wp-list-table .row-actions span.activate a{color:green}.wp-list-table .row-actions span.refund a{color:#836fff}.wp-list-table .row-actions span.cancel a{color:#cc8c00}.wp-list-table .row-actions span.cancel a:hover,.wp-list-table .row-actions span.refund a:hover{opacity:.8}.wp-list-table .type-download .row-actions{color:#999}.no-js.edit-tags-php.post-type-download .wp-heading-inline{position:absolute;top:0}.no-js.edit-tags-php.post-type-download .nav-tab-wrapper{margin-top:50px}.download_page_edd-customers .wrap .nav-tab-wrapper .page-title-action,.download_page_edd-discounts .wrap .nav-tab-wrapper .page-title-action,.download_page_edd-payment-history .wrap .nav-tab-wrapper .page-title-action,.edit-tags-php.post-type-download .wrap .nav-tab-wrapper .page-title-action{top:3px;margin-right:10px;line-height:24px}#edd-payments-filter ul.subsubsub{margin-bottom:8px}tr.status-refunded td{background:#cecece;border-top-color:#ccc}marquee{padding:0;margin:0}@media handheld,only screen and (max-width:640px){.wp-list-table.downloads th{width:auto!important}}#edd-download-link-textarea{width:100%}.edd_files_name_label{width:225px;float:right}.edd_files_url_label{width:220px;float:right}#postbox-container-1 .edd_files_name_label,#postbox-container-1 .edd_files_url_label{width:80px}#edd_product_files .inside,#edd_product_prices .inside{margin-bottom:0}textarea#edd-payment-note{width:100%;height:4em;margin:0}#edd-order-items .row .edd-purchased-files-list-wrapper .download{line-height:1.4}#edd-order-items .edd-purchased-files-list-wrapper .edd-purchased-option{color:#666}input[class*=edd-price-field]{max-width:125px}#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:80%;max-width:125px}#edd_product_notes_field{display:block;margin:12px 0 0;height:4em;width:100%}.edd-metabox-title-action{margin:0;float:left;padding:4px 8px;position:relative;top:-1px;text-decoration:none;border:1px solid #ccc;border-radius:2px;background:#f7f7f7;text-shadow:none;font-weight:600;font-size:10px;line-height:normal;color:#0073aa;cursor:pointer;outline:0}.edd-metabox-title-action:hover{border-color:#008ec2;background:#00a0d2;color:#fff}.edd-edit-purchase-element .tablenav{padding:2px 10px 8px}.edd-edit-purchase-element .edd-order-children-wrapper{margin:0 -1px}.edd-edit-purchase-element .edd-order-children-wrapper.child-count-0 table{border-top:none;border-bottom:none}.edd-edit-purchase-element .edd-order-children-wrapper.child-count-0 .tablenav{display:none}.edd-edit-purchase-element[class*=columns-] ul li{padding-left:1%}#edd-edit-order-form .column:nth-child(odd),#edd-edit-order-form .columns-4 .column:nth-child(odd),#edd-edit-order-form .columns-5 .column:nth-child(3n+1){margin-left:0}#edd-edit-order-form input.large-text{width:90%}.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 #f1f1f1;clear:both;padding:12px;margin:0;word-wrap:break-word}.edd-admin-box-inside--row{display:flex;flex-wrap:wrap;word-break:break-all;justify-content:space-between;align-items:center}.edd-admin-box-inside>p{margin:8px 3px}.edd-admin-box-inside .strong{font-weight:600}.edd-admin-box div:not(.edd-admin-box-inside--row) .label{display:block;margin-bottom:4px;margin-left:0}.edd-admin-box .label--has-tip{display:flex;align-items:center}.edd-admin-box .label--has-tip .edd-help-tip{margin-top:0;font-size:20px}.edd-admin-box div:not(.edd-admin-box-inside--row) .label--has-checkbox{margin-bottom:0}.edd-payment-fees .fee-label{color:#666;font-weight:400}.edd-admin-box .right{float:left}#edd-order-refunds-list{padding-right:25px}#poststuff .edd-order-data .inside{margin:0;padding:0}.edd-order-data .edd-select-chosen{width:130px!important}.edd-order-data input.edd_datepicker{width:180px}.edd-order-data input[type=number].edd-payment-time-hour,.edd-order-data input[type=number].edd-payment-time-min{width:50px}.edd-order-data .edd-tax-rate{color:#9c9c9c;font-style:italic;padding:5px}#edd_general_logs p{margin:0;padding:0}.edd-admin-box-inside span.label{margin-left:10px}#edd-order-resend-receipt .inside{margin-top:11px}#edd-order-resend-receipt .edd-order-resend-receipt-addresses{margin-top:10px}.edd-order-resend-receipt-header{font-size:14px;line-height:1.4}.edd-order-resend-receipt-addresses label{display:block;line-height:1.75em}.edd-order-resend-receipt-addresses label:last-child{margin-bottom: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-left:10px}.edd-order-update-box .button-primary{margin-left:0}.edd-edit-purchase-element .edd-select-chosen{width:196px}.edd-edit-purchase-element ul{clear:both;display:block}#edd-customer-details .actions{float:left}.order-data-address h3{margin:0 0 10px}.order-data-address #edd-order-address-country-wrap,.order-data-address #edd-order-address-state-wrap{display:inline-block;width:50%;max-width:300px}.edd-order-data input.small-text{margin:0}.edd-order-data input.med-text{margin:0;width:100px}.edd-edit-purchase-element ul li{display:block;line-height:1.4;position:relative;margin:0;vertical-align:middle;font-size:13px}.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{margin:0 0 15px}.edd-edit-purchase-element ul:last-of-type{margin-bottom:0}#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-title .deleted{color:#777}.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-add-adjustment-to-purchase,.edd-add-download-to-purchase{padding:15px;border-top:1px solid #e5e5e5;background-color:#f5f5f5}.edd-add-adjustment-to-purchase .chosen-container,.edd-add-download-to-purchase .chosen-container{width:90%!important;max-width:220px!important}.edd-add-adjustment-to-purchase .spinner,.edd-add-download-to-purchase .spinner{margin:0;float:none}.edd-add-download-to-purchase .edd-add-order-quantity{width:40px;height:29px;vertical-align:middle}.edd-add-adjustment-to-purchase .edd-add-adjustment-button,.edd-add-adjustment-to-purchase input[type=text],.edd-add-download-to-purchase .edd-add-order-item-button{height:29px}@media screen and (max-width:1284px){.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}}@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-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-download-amount,.edd-price-currency{font-size:16px}.order-data-column input[type=email]{padding:6px 10px}.edd-refund-submit-line-total td:last-of-type{flex:0 0 120px}#edd-item-tables-wrapper .addresses tbody tr{display:-ms-grid;display:grid}#edd-item-tables-wrapper .addresses tbody td:not(.no-items){padding-right:35%}}@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_product_stats .label{display:inline-block}#edd_product_stats .product-earnings-stats:before,#edd_product_stats .product-sales-stats:before{color:#82878c;font:normal 20px/1 dashicons;display:inline-block;padding:0 0 0 2px;position:relative;top:0;right:-1px;speak:none;text-decoration:none!important;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#edd_product_stats .product-sales-stats:before{content:""}#edd_product_stats .product-earnings-stats:before{content:""}body.dashboard_page_edd-upgrades.js .postbox .hndle{cursor:default}.edd_dashboard_widget table thead td{border-bottom:1px solid #ececec;color:#777}.edd_dashboard_widget .table_left{float:right;width:45%}.edd_dashboard_widget .table_right{float:left;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{padding-left:6px;width:auto}.edd_dashboard_widget .t{font-size:12px;padding-left: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 12px 8px 0}.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-left:2px}.edd_dashboard_widget table{width:100%;margin-right:0;margin-bottom:1em}td.edd_order_label{width:80%}td.edd_order_price{text-align:left}@media handheld,only screen and (max-width:1000px){.edd_dashboard_widget .edd-recent-email{display:none}}body.download_page_edd-reports{overflow-y:scroll}.edd-chip{font-size:10px;font-weight:700;text-transform:uppercase;line-height:1;padding:3px;border-radius:3px;color:#fff;background-color:#444}.edd-reports-wrapper .postbox h2,.edd-reports-wrapper .postbox h3{font-size:1.3em}#edd-dashboard-widgets-wrap .metabox-holder{padding-top:0}.edd-reports-wrapper .postbox .edd-select{max-width:200px;vertical-align:baseline;margin-left:4px;margin-bottom:16px}.download_page_edd-reports #edd-item-wrapper{margin:0}#edd-dashboard-widgets-wrap .postbox h2,#edd-dashboard-widgets-wrap .postbox h3{cursor:default}.edd-date-range-options .edd_datepicker{width:105px}.edd-report-wrap{clear:both}.edd-report-wrap h3{clear:both;margin:0 0 20px}.edd-reports-chart,.edd-reports-table{margin-bottom:20px}.edd-admin--has-grid{display:grid;display:-ms-grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));grid-gap:20px}.edd-admin--has-grid .postbox{margin-bottom:0}.edd-admin--has-grid .edd-from-to-wrapper{display:flex;margin-bottom:16px;width:100%}.edd-admin--has-grid .edd-from-to-wrapper input{width:100%}.edd-admin--has-grid .edd-from-to-wrapper span{flex-grow:1}.edd-admin--has-grid form{display:flex;flex-direction:column;flex-wrap:wrap;position:relative}fieldset.edd-to-and-from-container{display:flex;gap:8px}fieldset.edd-to-and-from-container select{flex:0 0 calc(50% - 6px)}span.edd-to-and-from--separator{line-height:normal;-ms-grid-row-align:center;align-self:center;margin-bottom:16px}.edd-admin--has-grid .postbox .edd-select{max-width:100%;margin-left:0}.edd-admin--has-grid .button.updated-message:before,.edd-admin--has-grid .button.updating-message:before{vertical-align:text-bottom;margin:0 0 0 5px}.edd-import-export-form .edd-progress{background:#ddd;border-radius:15px;height:15px;flex-basis:100%}.edd-import-export-form .edd-progress div{background:#ccc;border-radius:15px;height:100%;width:0}.edd-import-export-form .notice-wrap{background-color:#f4f4f4;border-color:#eae9e9;border-style:solid;border-width:1px 0;padding:12px;overflow:auto;margin:20px -12px -23px;position:relative;width:100%;display:flex;justify-content:space-between;align-items:center}.notice-wrap div.notice{margin:0}.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}.graph-option-section{float:right}.edd-report-filters-title span{display:block;padding:20px}#edd-graphs-filter form{padding:20px}#edd-graphs-filter label{vertical-align:inherit}#edd-graphs-filter .graph-option-section{display:inline-block;line-height:2em;margin:0 0 0 5px;padding:0}.download_page_edd-reports .section-content #post-body-content{float:none}.download_page_edd-reports .section-content select[name=range]{display:none}.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-left:5px;width:20px;height:15px}.edd-pie-legend-item{display:inline-block;vertical-align:top;width:80%}#edd-reports-tiles-wrap .metabox-holder{padding:0}#edd-reports-tiles-wrap #dashboard-widgets{overflow:auto}#edd-reports-tiles-wrap #dashboard-widgets .postbox-container{width:33.3%}.download_page_edd-reports .section-content .tablenav.top{display:none}#edd_tax_rates{margin:1em 0 0}[id*=edd-recapture-].button{font-size:16px;height:auto;padding:8px 14px;margin:6px 0 0}[id*=edd-recapture-].button .dashicons{line-height:29px;margin-left:8px}[id*=edd-recapture-].button .edd-loading,[id*=edd-recapture-].button .edd-loading:after{border-radius:50%;display:inline-block;width:14px;height:14px}[id*=edd-recapture-].button .edd-loading{position:relative;top:3px;margin-right:4px;box-shadow:0 0 2px rgba(0,0,0,.2);animation:edd-spinning 1.1s linear infinite;border:2px solid hsla(0,0%,100%,.5);border-right-color:#fff;font-size:14px;filter:alpha(opacity=0);transform:translateZ(0)}#edd-recapture-disconnect.button .edd-loading.dark{border-color:rgba(0,0,0,.2) #666 rgba(0,0,0,.2) rgba(0,0,0,.2);box-shadow:none}.recapture-notice{position:relative}@keyframes edd-spinning{0%{transform:rotate(0deg)}to{transform:rotate(-1turn)}}#edd-chartjs-tooltip{position:absolute;background-color:#fff;border-radius:7px;transition:all .1s ease;pointer-events:none;transform:translate(50%);font-size:12px;box-shadow:0 0 0 1px rgba(89,94,100,.1),0 15px 35px 0 rgba(89,94,100,.1),0 5px 15px 0 rgba(0,0,0,.12);min-width:120px;opacity:0}.edd-chartjs-tooltip-key{display:inline-block;width:10px;height:10px;margin-left:5px}#edd-send-test-summary-save-changes-notice .notice p{font-size:13px}#edd-send-test-summary-notice,#edd-send-test-summary-save-changes-notice{display:flex;margin-top:5px}.edd-graph .y1Axis{color:#edc240!important}.edd-graph .y2Axis{color:#afd8f8!important}.wp-list-table.apikeys input.code{width:100%;font-size:10px;cursor:text;background:#fff;border:1px solid #ddd;box-shadow:none;color:#555}.edd-toggle{position:relative;display:inline-block;overflow:visible}.edd-toggle input[type=checkbox]{display:inline-block;vertical-align:middle;position:relative;margin:0;padding:0;width:42px;min-width:42px;height:24px;background-color:#ccc;transition:background .2s ease;border-radius:34px;box-shadow:none;border:none}.edd-toggle .label{display:inline-block;vertical-align:middle;white-space:nowrap}.edd-toggle input[type=checkbox]:before{position:absolute;content:"";height:18px;width:18px;right:3px;bottom:3px;background-color:#fff;transition:transform .1s ease;border-radius:50%}@media only screen and (max-width:782px){.edd-toggle input[type=checkbox]:checked:before{margin:-.1875rem -.25rem 0 0}}.edd-toggle input[type=checkbox]:checked{background-color:#007cba;background-color:var(--wp-admin-theme-color)}.edd-toggle input[type=checkbox]:active,.edd-toggle input[type=checkbox]:focus{outline:0;box-shadow:0 0 0 1px #fff,0 0 0 3px #7e8993}.edd-toggle input[type=checkbox]:checked:active,.edd-toggle input[type=checkbox]:checked:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px #007cba;box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color)}.edd-toggle input[type=checkbox]:checked:before{transform:translateX(-22px)}.edd-toggle .label+input,.edd-toggle input+.label{margin-right:5px}.download_page_edd-tools .tablenav .actions{overflow:visible}.edd_user_search_wrap{position:relative;overflow:visible}.edd_user_search_wrap .spinner{position:absolute;margin:0;padding:0;left:4px;top:-2px}.edd_user_search_wrap.loading .spinner{visibility:visible}.edd_user_search_results{position:absolute;right:0;top:20px}.edd_user_search_results a.edd-ajax-user-cancel{position:absolute;left:6px;top:2px}.edd_user_search_results ul{background:#fafafa;border:1px solid #dfdfdf;overflow-y:scroll;padding:0;margin:0;height:150px;width:185px;box-shadow:0 3px 5px rgba(0,0,0,.1)}.edd_user_search_results li{margin:0}.edd_user_search_results li a{display:block;text-decoration:none;padding:6px 10px}.edd_user_search_results li a:hover{background:#f5f5f5}.edd_user_search_results li.no-users{text-align:center;vertical-align:middle;display:block;line-height:150px;color:#bbb;text-transform:uppercase;font-size:11px}@media screen and (max-width:1100px){.edd-mix-chart{display:block;width:100%}}@media screen and (max-width:782px){.license-expiration-date-notice,.license-lifetime-notice,.license-null{padding-right:0}}@media screen and (max-width:600px){#edd-edit-order-form input.large-text{width:100%}}#edd-item-wrapper{background:#fff;border:1px solid #c3c4c7;box-shadow:0 1px 1px rgba(0,0,0,.04);position:relative;margin-top:15px;display:flex}#edd-item-wrapper.full-width{max-width:100%}#edd-item-wrapper:after{content:"";display:block;clear:both;visibility:hidden;font-size:0;height:0}.edd-sections-wrap{clear:both;width:100%}.edd-sections-wrap .section-wrap{background-color:#fff;display:inline-block;z-index:2}.js .edd-sections-wrap .edd-vertical-sections:not(.meta-box) .section-wrap>div{min-height:500px;height:100%}.edd-sections-wrap .section-wrap .customer-section:not(:last-child){border-bottom:1px solid #eee}.edd-sections-wrap .section-wrap .customer-section table{margin-bottom:20px}.edd-sections-wrap .section-wrap{border-right:1px solid #e5e5e5}.edd-sections-wrap .section-wrap .section-content>*{padding:20px}.edd-sections-wrap .section-wrap .section-content h2{margin:0;padding-bottom:0}.edd-sections-wrap .section-wrap .avatar-wrap{float:right;padding-left:10px;text-align:center}.edd-sections-wrap .section-wrap img.avatar{border-radius:5px}.edd-sections-wrap .section-wrap .customer-id{position:absolute;left:0;top:0;padding:10px;background-color:#fafafa;border-bottom-right-radius:20%;border:1px solid #eee;border-top:none;border-left:none;font-family:monospace;font-size:18px;font-weight:600}.edd-item-info.customer-info input[type=password],.edd-item-info.customer-info input[type=text],.edd-item-info.customer-info select{width:200px;height:auto;box-shadow:none;transition:none;border:1px solid #ddd;margin:-5px -2px 4px 0;font-size:13px;padding:2px 4px}.edd-sections-wrap .section-wrap .customer-main-wrapper{float:right}.edd-sections-wrap .section-wrap .customer-main-wrapper input[name="customerinfo[name]"]{font-size:24px}.edd-sections-wrap .section-wrap .customer-address-wrapper{float:left;margin-top:-3px;margin-left:50px;width:202px}.edd-sections-wrap .section-wrap .info-wrapper{min-height:125px;overflow:visible}.edd-sections-wrap .section-wrap .customer-address span[data-key=address2],.edd-sections-wrap .section-wrap .customer-address span[data-key=address],.edd-sections-wrap .section-wrap .customer-address span[data-key=country]{display:block}.edd-sections-wrap .section-wrap a.delete{color:red;margin-left:5px;text-decoration:none}.customer-info{min-height:185px}.customer-info .customer-name{font-size:24px;font-weight:600}.customer-info .customer-name.editable{margin-bottom:6px}.customer-edit-link a{font-weight:400;text-decoration:none}.disconnect-user a{color:#aaa;font-size:20px}#customer-edit-actions{padding:3px;line-height:28px;text-align:center}#customer-edit-actions .button-secondary{margin-left:5px}#customer-edit-actions .cancel{padding:5px}.edd-sections-wrap .section-wrap .row-title{width:30%}.edd-sections-wrap .section-wrap .editable{display:block;padding:3px}.edd-sections-wrap .section-wrap div.edit-item{margin-right:-4px;margin-top:-20px}.edd-sections-wrap .section-wrap .customer-address.edit-item{margin-top:3px}.edd-sections-wrap .section-wrap span.edit-item{display:none}.edd-sections-wrap .section-wrap .edit-item input{font-size:13px}.edd-sections-wrap .section-wrap .customer-name.edit-item input{margin-top:-5px}.edd-sections-wrap .section-wrap .edd_user_search_results{right:-2px;top:18px}.edd-sections-wrap .section-wrap .edd_user_search_results ul{width:198px}#edd-item-stats-wrapper{margin:0 auto;text-align:center}#edd-item-stats-wrapper ul{display:flex;margin:0}#edd-item-stats-wrapper li{font-size:14px;margin-bottom:0;width:50%}#edd-item-stats-wrapper a{text-decoration:none}#edd-item-stats-wrapper .dashicons{color:#888;margin-top:-2px}#edd-item-tables-wrapper table{width:100%}#edd-item-tables-wrapper .no-items{text-align:right}#edd-item-tables-wrapper .emails .add-customer-email-row{background-color:#f4f4f4;border-top:1px solid #e5e5e5}#edd-item-tables-wrapper .add-customer-email-wrapper{display:flex;flex-wrap:wrap;align-items:center;margin:12px 0}#edd-item-tables-wrapper .edd-form-group{margin-bottom:0}#edd-item-tables-wrapper .edd-make-email-primary{flex-grow:1;margin-right:12px}#edd-item-tables-wrapper .emails .spinner{float:none;margin:0 10px;-ms-grid-row-align:center;align-self:center}#edd-item-tables-wrapper .notice-error{background-color:#fff5f5}#edd-item-notes-wrapper{min-height:50px}.customer-note-input{margin-bottom:5px;width:100%}.customer-note-wrapper{border-bottom:1px solid #f9f9f9;min-height:38px;padding:7px 7px 7px 0}.customer-note-wrapper span{display:block}.note-content-wrap{padding-top:7px}.edd-sections-wrap .section-wrap .notice-container{padding-right:20px;padding-left:20px;margin-right:-20px;margin-left:-20px}@media screen and (max-width:810px)and (min-width:656px){.customer-info .customer-name{font-size:16px}.edd-sections-wrap .section-wrap .widefat td,.widefat th{max-width:100%!important;display:table-cell}}@media screen and (max-width:781px){#edd-item-tab-wrapper,.edd-sections-wrap .section-wrap{margin:0;width:100%}#edd-item-tab-wrapper-list .dashicons{font-size:18px}.edd-item-has-tabs .edd-sections-wrap .section-wrap{border-top:1px solid #e5e5e5;border-right:0;margin-top:-1px}}@media screen and (max-width:656px){.edd-item-info.customer-info{position:relative}.edd-sections-wrap .section-wrap .customer-address-wrapper{float:none;position:absolute;top:84px;right:165px;max-width:200px}.edd-sections-wrap .section-wrap .customer-main-wrapper{float:none;position:absolute;right:165px}.customer-info .customer-name{font-size:16px}.edd-sections-wrap .section-wrap #edd-item-stats-wrapper{padding-right:0;padding-left:0}.edd-sections-wrap .section-wrap .customer-section{margin-bottom:0}.edd-sections-wrap .section-wrap .widefat td.column-primary,.edd-sections-wrap .section-wrap .widefat td.no-items,.edd-sections-wrap .section-wrap .widefat th.column-primary{width:100px!important;display:table-cell;overflow:hidden;text-align:right}.edd-sections-wrap .section-wrap .customer-id{display:none}#edd-item-tables-wrapper .emails td.column-primary{padding-left:10px;width:100%!important}#edd-item-tables-wrapper .edd-form-group{margin:0 0 16px}}@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 0 1px 1px}#edd-item-tab-wrapper-list li:nth-child(2n){border-width:0 0 1px}.download_page_edd-reports .button{text-align:center}#edd-payment-date-filters span{display:block}#edd-payment-date-filters span>input{float:left}#edd-add-discount select[multiple] option,#edd-edit-discount select[multiple] option{height:20px}.download_page_edd-reports .inside .button,.download_page_edd-reports .inside input[type=submit],.download_page_edd-reports .inside input[type=text],.download_page_edd-reports .inside select,.download_page_edd-settings .inside input[type=button],.download_page_edd-tools .inside input[type=submit],.download_page_edd-tools .inside input[type=text],.download_page_edd-tools .inside select{width:100%}#edd-add-discount select[multiple],#edd-edit-discount select[multiple],.download_page_edd-tools select[multiple]{height:200px!important}.download_page_edd-settings input[type=checkbox]{margin:2px 0}.post-type-download input[type=checkbox]{margin-right:2px}}.inside .edd-tools-textarea{background:#32373c;color:rgba(240,245,250,.7);font-size:12px;font-family:Menlo,Monaco,monospace;display:block;overflow:auto;white-space:pre;width:100%;height:450px;padding:10px;outline:none}#system-info-textarea::selection{background:#555;color:#fff}#edd-system-info .edd-inline-button{margin-right:5px}.recount-stats-controls form{display:inline}.edd-recount-stats-descriptions span{display:none;line-height:24px}.edd-vertical-sections{overflow:visible;display:block;display:flex}#edd-item-tab-wrapper,.edd-vertical-sections .section-nav{position:relative;width:20%;line-height:1em;margin:0 0 0 -1px;padding:0;background-color:#f5f5f5;border-left:1px solid #e5e5e5;box-sizing:border-box;max-width:200px}#edd-item-tab-wrapper-list{margin:0}#edd-item-tab-wrapper li,.edd-vertical-sections .section-nav li{display:block;position:relative;margin:0;padding:0;background-color:#fcfcfc}.edd-vertical-sections .section-title:last-of-type{margin-bottom:24px}#edd-item-tab-wrapper li>.edd-item-tab-label-wrap,#edd-item-tab-wrapper li a,.edd-vertical-sections .section-nav li a{display:flex;margin:0;padding:9px;text-decoration:none;border-bottom:1px solid #e5e5e5;box-shadow:none;position:relative;align-items:center}#edd-item-tab-wrapper li a:focus,#edd-item-tab-wrapper li a:hover,.edd-vertical-sections .section-nav li a:focus,.edd-vertical-sections .section-nav li a:hover{box-shadow:inset -5px 0;outline:0;transition:all .25s}.edd-vertical-sections .section-nav .section-title--is-active a:after{content:"";width:1px;height:100%;background:#fff;position:absolute;left:0;top:0;bottom:0;z-index:3}#edd-item-tab-wrapper li>.edd-item-tab-label-wrap{background-color:#fff}.edd-vertical-sections .section-nav li a>.dashicons,.edd-vertical-sections .section-nav li a>span{display:inline-block}.edd-vertical-sections .section-nav li a>span{max-width:76%}.edd-vertical-sections .section-nav li a .dashicons{line-height:20px;margin-left:3px;color:#888}.edd-vertical-sections .section-nav .section-title--is-active a{font-weight:700;color:#555;background-color:#fff;border-left:none;margin-left:-1px}.edd-vertical-sections.use-js .section-content,.no-js .edd-vertical-sections.use-js.edd-item-header-small,.no-js .edd-vertical-sections.use-js .section-nav{display:none}.no-js .edd-vertical-sections.use-js .section-content{display:block}.admin-color-fresh .edd-vertical-sections .section-nav .section-title--is-active a,.admin-color-fresh .edd-vertical-sections .section-nav li a:focus,.admin-color-fresh .edd-vertical-sections .section-nav li a:hover{box-shadow:inset -5px 0 #0073aa}.admin-color-blue .edd-vertical-sections .section-nav .section-title--is-active a,.admin-color-blue .edd-vertical-sections .section-nav li a:focus,.admin-color-blue .edd-vertical-sections .section-nav li a:hover{box-shadow:inset -5px 0 #096484}.admin-color-coffee .edd-vertical-sections .section-nav .section-title--is-active a,.admin-color-coffee .edd-vertical-sections .section-nav li a:focus,.admin-color-coffee .edd-vertical-sections .section-nav li a:hover{box-shadow:inset -5px 0 #c7a589}.admin-color-ectoplasm .edd-vertical-sections .section-nav .section-title--is-active a,.admin-color-ectoplasm .edd-vertical-sections .section-nav li a:focus,.admin-color-ectoplasm .edd-vertical-sections .section-nav li a:hover{box-shadow:inset -5px 0 #a3b745}.admin-color-midnight .edd-vertical-sections .section-nav .section-title--is-active a,.admin-color-midnight .edd-vertical-sections .section-nav li a:focus,.admin-color-midnight .edd-vertical-sections .section-nav li a:hover{box-shadow:inset -5px 0 #e14d43}.admin-color-ocean .edd-vertical-sections .section-nav .section-title--is-active a,.admin-color-ocean .edd-vertical-sections .section-nav li a:focus,.admin-color-ocean .edd-vertical-sections .section-nav li a:hover{box-shadow:inset -5px 0 #627c83}.admin-color-sunrise .edd-vertical-sections .section-nav .section-title--is-active a,.admin-color-sunrise .edd-vertical-sections .section-nav li a:focus,.admin-color-sunrise .edd-vertical-sections .section-nav li a:hover{box-shadow:inset -5px 0 #be3631}.admin-color-light .edd-vertical-sections .section-nav .section-title--is-active a,.admin-color-light .edd-vertical-sections .section-nav li a:focus,.admin-color-light .edd-vertical-sections .section-nav li a:hover{box-shadow:inset -5px 0 #888}.admin-color-evergreen .edd-vertical-sections .section-nav .section-title--is-active a,.admin-color-evergreen .edd-vertical-sections .section-nav li a:focus,.admin-color-evergreen .edd-vertical-sections .section-nav li a:hover{box-shadow:inset -5px 0 #36533f}.admin-color-mint .edd-vertical-sections .section-nav .section-title--is-active a,.admin-color-mint .edd-vertical-sections .section-nav li a:focus,.admin-color-mint .edd-vertical-sections .section-nav li a:hover{box-shadow:inset -5px 0 #4f6d59}.edd-vertical-sections .section-nav .section-title--is-active .dashicons{color:#555}@media only screen and (max-width:782px){#edd-item-tab-wrapper,.edd-vertical-sections .section-nav{width:48px}.edd-vertical-sections .section-nav li a{justify-content:center}.edd-vertical-sections .section-nav li a .dashicons{width:24px;height:24px;font-size:24px;line-height:24px;margin:0}.section-nav li .dashicons:before{width:24px;height:24px}#edd-item-tab-wrapper .edd-item-tab-label,.section-nav li .label{overflow:hidden;position:absolute;top:-1000em;right:-1000em;width:1px;height:1px}}#edd-item-card-wrapper,.edd-vertical-sections .section-wrap{width:80%}#edd-item-card-wrapper .item-section{background:#fff;overflow:hidden;box-sizing:border-box}:not(#edd-item-tab-wrapper)+#edd-item-card-wrapper .item-section{margin:25px 0;padding:20px;border:1px solid #e5e5e5;box-shadow:0 1px 1px rgba(0,0,0,.04)}#edd-item-tab-wrapper+#edd-item-card-wrapper{padding:20px;border-right:1px solid #e5e5e5;box-sizing:border-box}@media only screen and (min-width:1200px){#edd-graphs-filter,#edd-item-card-wrapper,.edd-vertical-sections:not(.meta-box) .section-wrap{width:calc(100% - 200px)}}@media only screen and (max-width:782px){#edd-graphs-filter,#edd-item-card-wrapper,.edd-vertical-sections .section-wrap{width:calc(100% - 48px)}}#edd-debug-log .edd-inline-button{margin-right:5px}.edd-settings-sidebar{padding-top:27px}.edd-settings-sidebar-content{background-color:#fff;text-align:center;border:1px solid #ddd;box-sizing:border-box;max-width:300px}.edd-settings-sidebar-content p{font-size:14px;line-height:1.5;margin-top:0}.edd-sidebar-header-section{background-color:#35495c;line-height:1;padding:26px 20px 24px;border-bottom:3px dashed #fafafa}.edd-sidebar-description-section{background-color:#fafafa;padding:16px 20px;border-bottom:1px solid #ddd}.edd-sidebar-description-section .edd-sidebar-description{margin:0}.edd-sidebar-coupon-section{font-size:14px;padding:16px 20px}.edd-sidebar-coupon-section label{display:block;line-height:1.4;margin-bottom:6px}.edd-sidebar-coupon-section label strong{color:#253b51;font-weight:700}.edd-sidebar-coupon-section input{background:#f4f7fa;font-size:22px;font-weight:600;text-align:center;padding:10px;border:2px dashed #2794da;border-radius:4px;margin-bottom:16px;box-shadow:none;width:100%}.edd-sidebar-coupon-section input:focus{border:2px dashed #2794da;box-shadow:none}.edd-settings-sidebar-content .edd-coupon-note{color:#6c7883;font-size:13px;font-style:italic;margin:0}.edd-settings-sidebar-content .edd-coupon-note a{color:#253b51}.edd-settings-sidebar-content .edd-coupon-note a:hover{text-decoration:none}.edd-sidebar-footer-section{background-color:#fafafa;padding:16px 20px;border-top:1px solid #ddd}.edd-sidebar-footer-section .edd-cta-button{display:block;background-color:#2794da;color:#fff;text-decoration:none;font-size:20px;font-weight:700;text-transform:uppercase;padding:17px 10px;border:none;border-radius:4px;width:100%;box-sizing:border-box;box-shadow:none;transition:background-color .2s}.edd-sidebar-footer-section .edd-cta-button:hover{background-color:#2386c5}@media (min-width:1080px){.edd-has-sidebar .edd-settings-content{float:right;width:67%}.edd-has-sidebar .edd-settings-sidebar{float:left;width:31%}}@media (min-width:1240px){.edd-has-sidebar .edd-settings-content{width:74%}.edd-has-sidebar .edd-settings-sidebar{width:23%}}.taxes-tab .edd-has-sidebar .edd-settings-content,.taxes-tab .edd-has-sidebar .edd-settings-sidebar{float:none;width:100%}.bfcm-promo-img-container{background-color:#35495c;width:100%;height:160px}.bfcm-code{color:#2794da;font-weight:700}.sale-ends{position:absolute;bottom:9px;left:14px;display:inline-block;color:#6c7883;font-size:12px;text-align:left;font-style:italic;width:150px} \ No newline at end of file diff --git a/wp-content/plugins/easy-digital-downloads/assets/css/edd-admin.min.css b/wp-content/plugins/easy-digital-downloads/assets/css/edd-admin.min.css index 0f5526a7..1c5d1c18 100644 --- a/wp-content/plugins/easy-digital-downloads/assets/css/edd-admin.min.css +++ b/wp-content/plugins/easy-digital-downloads/assets/css/edd-admin.min.css @@ -1 +1 @@ -.edd-custom-price-option-sections-wrap{display:none;border:1px solid #c3c4c7;border-top:0 solid #c3c4c7;box-sizing:border-box;width:100%}.edd-custom-price-option-section{display:block;padding:10px 8px;border-bottom:1px solid hsla(0,0%,87.1%,.3)}.edd-custom-price-option-section-title{display:block;font-weight:600;padding:0 0 10px}.edd-custom-price-option-section-content{display:flex;gap:12px;margin-bottom:6px}.edd-custom-price-option-section:last-child{border-bottom:none}.toggle-custom-price-option-section{color:#787c82}.toggle-custom-price-option-section:hover{color:#537994}#edd_product_settings .edd-product-options__title,#edd_product_settings .inside strong{border-top:1px solid #c3c4c7;border-bottom:1px solid #c3c4c7;background-color:#f9f9f9;display:flex;font-weight:600;margin:0 -12px 16px;padding:8px 12px;justify-content:space-between;align-items:center}#edd_product_settings .edd-product-options-wrapper:first-of-type .edd-product-options__title,#edd_product_settings .inside div:first-child strong{margin-top:-8px}#edd_product_settings .edd-product-options__title .edd-help-tip,#edd_product_settings .inside strong .edd-help-tip{font-size:20px}#edd_product_settings .label--block{display:block;margin:0 0 4px}.edd_repeatable_row.ui-sortable-placeholder{line-height:0;padding:0;margin:0;box-sizing:border-box;border:1px dashed #c3c4c7;visibility:visible!important}.edd-add-repeatable-row{border-top:1px solid #c3c4c7;padding:12px;margin:15px -12px -12px;display:flex;justify-content:flex-end;align-items:center}.edd_repeatable_row input[type=text].large-text{width:100%}.edd_repeatable_upload_wrapper:not(:first-child),.edd_variable_prices_wrapper:not(:first-child){margin-top:12px}.edd_repeatable_row.ui-sortable-helper .edd-repeatable-row-actions .edd-remove-row{display:none}.edd-repeatable-row-actions{color:#787c82}.edd-repeatable-row-actions a{text-decoration:none;width:auto;cursor:pointer}.edd-bundle-products-header,.edd-repeatable-row-header{clear:both;background:#f6f7f7;border:1px solid #c3c4c7;display:flex;justify-content:space-between}.edd-repeatable-row-header{cursor:move}.edd_repeatable_row:hover .edd-repeatable-row-header,.edd_repeatable_row:hover .edd-repeatable-row-standard-fields{border-color:#c3c4c7}.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-bundle-products-header,.edd-repeatable-row-title{font-weight:600}.edd-bundle-products-header,.edd-repeatable-row-actions,.edd-repeatable-row-title{padding:8px;box-sizing:border-box}.edd-repeatable-row-actions{flex-grow:1;text-align:right}.edd-bundled-product-row .edd-remove-row,.edd-repeatable-row-actions .edd-remove-row{width:auto;cursor:pointer}.edd-bundled-product-row,.edd-repeatable-row-standard-fields{padding:8px;border:1px solid #c3c4c7;border-top:0 solid #c3c4c7;display:flex;justify-content:space-between;align-items:center;gap:18px}.edd-bundled-product-row .edd-form-group,.edd-repeatable-row-standard-fields .edd-form-group{margin-bottom:0;display:inline-flex;flex-direction:column;flex-grow:1;justify-content:space-between}.edd-repeatable-row-setting-label .edd-help-tip{display:inline-block;margin-left:4px}.edd-bundled-product-item-reorder{min-width:30px}.edd-bundled-product-item-reorder .edd-product-file-reorder{font-size:20px;cursor:move;color:#dcdcde;font-family:dashicons;content:"";transition:color .2s}.edd-bundled-product-item-reorder .edd-product-file-reorder:hover{color:#a7aaad}.edd-bundled-product-actions{-ms-grid-row-align:center;align-self:center}#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}@media screen and (max-width:480px){.edd-bundle-products-header,.edd-bundled-product-row,.edd-repeatable-row-header,.edd-repeatable-row-standard-fields{flex-wrap:wrap}.edd-bundled-product-row .edd-form-group,.edd-repeatable-row-standard-fields .edd-form-group{margin-left:0!important;margin-bottom:24px}}.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_repeatable_upload_wrapper .edd_repeatable_upload_field_container{position:relative;width:100%}.edd_repeatable_upload_wrapper .edd_repeatable_upload_field_container+span:first-child{width:100%}.edd_repeatable_upload_field{padding-right:32px}.edd_upload_file button{background:#f6f7f7;border:none;border-left:1px solid #c3c4c7;padding:0 4px;position:absolute;height:calc(100% - 4px);overflow:hidden;top:2px;right:2px;display:inline-flex;justify-content:center;align-items:center}.edd-form-group{margin-bottom:16px}.edd-form-group:last-of-type{margin-bottom:0}.edd-form-group>label,.edd-form-group__label{display:block;font-weight:600;margin-bottom:8px;padding:0}.edd-form-group__control{margin-bottom:12px;max-width:100%}.edd-form-group__control.is-check,.edd-form-group__control.is-radio{margin-top:4px}.edd-form-group__control:last-of-type{margin-bottom:0}.edd-form-group__control--is-inline{display:inline-flex;align-items:flex-end}.edd-form-group__input{max-width:100%}.edd-form-group__input[type=checkbox],.edd-form-group__input[type=radio]{margin-top:0}.edd-form-group__input[type=checkbox]+label,.edd-form-group__input[type=radio]+label{display:unset}select.edd-form-group__input{max-width:100%}.edd-form-group__help{color:#646970;font-size:13px;font-style:italic;line-height:normal;margin:8px 0 0}.edd-form-row{display:flex;flex-wrap:wrap;gap:12px}.edd-form-row__column{display:inline-flex;flex-direction:column;justify-content:flex-end}.edd-form-row__column.edd-form-group{margin-bottom:0}.edd-form-row label,.edd-form-row label.edd-form-group__label{margin-bottom:8px}#edd-migration-progress .dashicons-minus{color:#949494}#edd-migration-progress .dashicons-yes{color:green}#edd-migration-progress .dashicons-update:before{animation:rotation 2s linear infinite;display:block}#edd-v3-migration-remove-legacy-data-submit-wrap{display:flex;align-items:center;gap:6px}#edd-v3-migration-remove-legacy-data-submit-wrap .button{margin:0}#edd-filters{padding:10px;margin:0;display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px}#edd-filters .filter-items{flex-wrap:wrap;gap:6px;float:none;flex-grow:1}#edd-filters .filter-items,#edd-filters .filter-items .graph-option-section{display:flex;align-items:center}#edd-filters .filter-items .edd-date-range-picker[data-range=other] .edd-graphs-date-options{border-top-right-radius:4px;border-bottom-right-radius:4px}#edd-filters .filter-items .edd-date-range-picker[data-range=other] .edd-date-range-dates,#edd-filters .filter-items .edd-date-range-picker[data-range=other] .edd-date-range-relative-dates{display:none}#edd-filters .filter-items .edd-date-range-options{display:inline-block;margin:10px 0}#edd-filters .filter-items .edd-graphs-date-options{border-top-right-radius:0;border-bottom-right-radius:0}#edd-filters .filter-items .edd-date-range-dates{display:flex;align-items:center;border:1px solid #8c8f94;border-left:none;color:#2c3338;padding:4px 10px;margin-left:-5px;border-top-right-radius:4px;border-bottom-right-radius:4px;cursor:pointer;gap:4px}#edd-filters .filter-items .edd-date-range-dates.hidden{display:none}#edd-filters .filter-items .edd-date-range-selected-date{display:inline-block}#edd-filters .filter-items .edd-date-range-relative-dates{display:flex;align-items:center;margin-left:10px}#edd-filters .filter-items .edd-date-range-relative-dates.hidden{display:none}#edd-filters .filter-items .edd-date-range-selected-relative-date{position:relative;display:flex;align-items:center;border:1px solid #8c8f94;padding:4px 2px 4px 6px;color:#2c3338;margin-left:10px;margin-right:10px;border-radius:4px;cursor:pointer}#edd-filters .filter-items .edd-date-range-selected-relative-date .arrow-down{width:16px;height:auto;margin-left:6px;margin-top:2px;vertical-align:middle}#edd-filters .filter-items .edd-date-range-selected-relative-date.opened .edd-date-range-relative-dropdown{display:block}#edd-filters .filter-items .edd-date-range-relative-dropdown{position:absolute;z-index:99;width:420px;left:50%;top:100%;margin-top:10px;transform:translateX(-50%);background-color:#fff;border:1px solid #8c8f94;border-radius:4px;box-shadow:0 2px 5px 0 rgba(0,0,0,.25);display:none}#edd-filters .filter-items .edd-date-range-relative-dropdown:after{height:10px;width:10px;position:absolute;content:"";background:#fff;border-color:#8c8f94;border-style:solid;border-width:0 1px 1px 0;transform:rotate(-135deg);top:-6px;left:calc(50% - 4px)}#edd-filters .filter-items .edd-date-range-relative-dropdown .spinner{display:none}#edd-filters .filter-items .edd-date-range-relative-dropdown.loading{padding:10px;text-align:center}#edd-filters .filter-items .edd-date-range-relative-dropdown.loading .spinner{display:inline-block;visibility:visible;margin:0;float:unset}#edd-filters .filter-items .edd-date-range-relative-dropdown.loading :not(.spinner){display:none}#edd-filters .filter-items .edd-date-range-relative-dropdown ul li{display:flex;align-items:center;padding:2px 10px;opacity:.85;gap:20px}#edd-filters .filter-items .edd-date-range-relative-dropdown ul li.active,#edd-filters .filter-items .edd-date-range-relative-dropdown ul li:hover{cursor:pointer;color:var(--wp-admin-theme-color);opacity:1}#edd-filters .filter-items .edd-date-range-relative-dropdown ul li .date-range-name{width:110px}@media screen and (max-width:950px){#edd-filters .filter-items .graph-option-section{margin-top:8px;width:100%}#edd-filters .filter-items .edd-date-range-picker{flex-wrap:wrap}#edd-filters .filter-items .edd-graphs-date-options{width:100%;max-width:100%;min-height:40px;font-size:14px;border-top-right-radius:4px;border-bottom-right-radius:4px}#edd-filters .filter-items .edd-date-range-dates{width:100%;margin-top:10px;border:1px solid #8c8f94;margin-left:unset;border-radius:4px;font-size:14px;padding:8px 6px 8px 8px}#edd-filters .filter-items .edd-date-range-relative-dates{width:100%;flex-wrap:wrap;margin-left:0;margin-top:6px}#edd-filters .filter-items .edd-date-range-selected-relative-date{width:100%;margin-top:8px;margin-left:0;margin-right:0;font-size:14px;padding:8px 6px 8px 8px;flex-wrap:wrap}#edd-filters .filter-items .edd-date-range-selected-relative-date .arrow-down{margin-left:auto}#edd-filters .filter-items .edd-date-range-relative-dropdown{position:relative;width:100%;left:0;top:0;transform:unset;box-shadow:unset;border:unset;margin:0}#edd-filters .filter-items .edd-date-range-relative-dropdown:after{display:none}#edd-filters .filter-items .edd-date-range-relative-dropdown ul{margin-bottom:0}#edd-filters .filter-items .edd-date-range-relative-dropdown ul li{padding-left:0;padding-right:0;justify-content:space-between;flex-wrap:wrap;gap:unset}#edd-filters .filter-items .edd-date-range-relative-dropdown ul li .date-range-dates,#edd-filters .filter-items .edd-date-range-relative-dropdown ul li .date-range-name{width:100%}}#edd-filters>p{color:#757575}#edd-filters input[type=number],#edd-filters input[type=text].edd_datepicker{max-width:105px}#edd-filters .button-secondary,#edd-filters input[type=number]{margin-bottom:0}#edd-filters .search-form{margin:0}@media screen and (max-width:480px){#edd-filters span{margin:2px 0}}#edd-advanced-filters{position:relative}#edd-advanced-filters .inside{z-index:99;position:absolute;top:29px;right:0;border:1px solid #e0e0e0;padding:0;background:#fff;box-shadow:0 3px 5px rgba(0,0,0,.2);min-width:285px;opacity:0;visibility:hidden}#edd-advanced-filters fieldset{display:block;padding:10px 15px 15px;margin:10px 0}#edd-advanced-filters fieldset:not(:last-of-type){border-bottom:1px solid #e0e0e0}#edd-advanced-filters fieldset:last-of-type{padding-bottom:5px}#edd-advanced-filters fieldset.edd-add-on-filters div,#edd-advanced-filters fieldset.edd-add-on-filters label,#edd-advanced-filters fieldset.edd-add-on-filters p,#edd-advanced-filters fieldset.edd-add-on-filters span{display:block;margin-bottom:2px}#edd-advanced-filters div.edd-select-chosen:not(:last-child){margin-bottom:10px}#edd-advanced-filters.open .edd-advanced-filters-button{background:#e0e0e0;border-color:#949494;box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5);transform:translateY(1px)}#edd-advanced-filters.open .inside{visibility:visible;opacity:1;transition:opacity .2s ease-in}.download_page_edd-reports #edd-filters{margin-bottom:-1px;box-shadow:none}@media screen and (max-width:782px){.download_page_edd-reports #edd-filters{gap:0}}.edd-old-log-filters{margin-top:-30px;margin-left:2px}@media screen and (min-width:600px){#edd-reports-charts-wrap{display:-ms-grid;display:grid;-ms-grid-columns:(minmax(200px,50%))[2];grid-template-columns:repeat(2,minmax(200px,50%));grid-gap:20px}.edd-reports-chart{margin-bottom:0}.edd-reports-chart-bar,.edd-reports-chart-line{-ms-grid-column:1;-ms-grid-column-span:2;grid-column:1/span 2}}.edd-reports-chart{height:500px;max-height:700px}.chart-timezone{font-size:.75rem;color:#ccc}.edd-mobile-link{line-height:32px}.edd-mobile-link a{text-decoration:none}.edd-mobile-link a:after,.edd-mobile-link a:before{display:inline-block;-webkit-font-smoothing:antialiased;font:normal 20px/30px dashicons;vertical-align:top;margin:1px 0 0;padding:0}.edd-mobile-link a:before{content:"";color:#757575;margin-right:-3px}.edd-mobile-link a:after{content:""}#edd-reports-tiles-wrap #dashboard-widgets .sortable-placeholder{padding:0;margin:0 0 20px;line-height:0;box-sizing:border-box;height:110px}#edd-reports-tiles-wrap #dashboard-widgets #primary-sortables{margin-left:0}#edd-reports-tiles-wrap #dashboard-widgets #tertiary-sortables{margin-right:0}#edd-reports-tiles-wrap{display:-ms-grid;display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));grid-gap:20px}.edd-reports-tile{text-align:center;padding:20px 10px 35px;display:flex;flex-direction:column;justify-content:center;border:1px solid #e5e5e5;background:#fafafa;position:relative;box-sizing:border-box;gap:.5em}.edd-reports-tile>span:not(.tile-compare){width:100%}.edd-reports-tile .tile-label{text-align:center;text-transform:uppercase;font-size:12px;font-weight:400;color:#101517}.edd-reports-tile .tile-value{color:#333;font-size:2em;line-height:1;transition:all .2s ease-in-out;display:flex;justify-content:center;flex-direction:column;gap:.25em}.edd-reports-tile:hover{border:1px solid #aaa}.edd-reports-tile:hover .tile-value:not(.tile-no-data){transform:scale(1.05)}.edd-reports-tile .tile-amount{color:#2794da}.edd-reports-tile .tile-number{color:#96f}.edd-reports-tile .tile-amount,.edd-reports-tile .tile-number{color:#fff}.edd-reports-tile .tile-value.tile-no-data{color:#ddd}.edd-reports-tile .tile-value.tile-url{font-size:1.5em}.edd-reports-tile .tile-relative{font-size:12px;font-weight:400;color:#888}.edd-reports-tile span.dashicons{display:inline-block;font-size:30px;line-height:20px;height:20px;width:20px;position:relative;top:4px;left:-5px;margin-left:-5px;color:#999}.edd-reports-tile .tile-relative span.dashicons{top:-5px;left:-3px;margin-left:0}.edd-reports-tile .tile-relative span.dashicons-arrow-down,.edd-reports-tile .tile-relative span.dashicons-arrow-up.reverse{color:#d63638}.edd-reports-tile .tile-relative span.dashicons-arrow-down.reverse,.edd-reports-tile .tile-relative span.dashicons-arrow-up{color:#008a20}.edd-reports-tile .tile-compare{position:absolute;right:0;bottom:0;color:#aaa;font-size:11px;line-height:1em;background-color:#fff;border-color:#e5e5e5 #fff #fff #e5e5e5;border-style:solid;border-width:1px;border-top-left-radius:8px;padding:4px 0 0 9px;margin:0 -1px -1px 0}.edd-reports-tile:hover .tile-compare{border-left:1px solid #bbb;border-top:1px solid #bbb;color:#777}#edd-submit-refund-status{text-align:center;font-size:1.2em}#edd-submit-refund-status .edd-submit-refund-message:before{font-family:dashicons;font-size:1.5em;vertical-align:middle;color:#fff;border-radius:16px;margin:5px}#edd-submit-refund-status .edd-submit-refund-message.success:before{content:"";background-color:#008a20;padding-right:1px}#edd-submit-refund-status .edd-submit-refund-message.fail{display:block;margin-bottom:16px}#edd-submit-refund-status .edd-submit-refund-message.fail:before{content:"";background-color:#d63638}.refund-items td,.refund-items th.check-column{vertical-align:baseline}.refund-items .column-amount,.refund-items .column-discount,.refund-items .column-quantity,.refund-items .column-subtotal,.refund-items .column-tax,.refund-items .column-total{width:80px}.refund-items .edd-form-group__control{display:flex;align-items:center}.refund-items .edd-form-group__control input,.refund-items .edd-form-group__control select{background-color:transparent;border:0;border-bottom:1px solid;border-radius:0;box-shadow:none;text-align:right;width:100%}.refund-items .edd-form-group__control input:disabled,.refund-items .edd-form-group__control select:disabled{border-bottom:none}.refund-items .edd-form-group__control input:focus,.refund-items .edd-form-group__control select:focus{border-bottom:1px solid var(--wp-admin-theme-color-darker-10);box-shadow:0 1px 0 var(--wp-admin-theme-color-darker-10)}.refund-items .edd-form-group__control select[data-original="1"]{background:transparent}.refund-items .edd-form-group__control .is-before+span>input,.refund-items .edd-form-group__control select{text-align:left}.refund-items .edd-refund-submit-line-total{background-color:#fff!important}.refund-items .edd-refund-submit-line-total td{text-align:right}.refund-items .edd-refund-submit-line-total-amount{display:inline-block;margin-left:20px;text-align:left;width:80px}.refund-items #edd-refund-submit-subtotal td{border-top:2px solid #c3c4c7}@media screen and (max-width:782px){.refund-items td.column-total{margin-bottom:16px}.refund-items .edd-refund-submit-line-total-amount{padding-right:16px;width:unset}}.edd-submit-refund-actions{margin:16px 0 0}.did-refund .edd-submit-refund-actions,.did-refund .refund-items{display:none}.edd-admin-notice-top-of-page{font-size:15px;line-height:1.4;color:#fff;margin-left:-20px;padding:12px 32px 12px 20px;background:#2d6ca2}.edd-admin-notice-top-of-page.edd-pro-inactive{background:#d63638}@media screen and (min-width:783px){.edd-admin-notice-top-of-page{padding:10px 46px 10px 22px}}@media screen and (min-width:961px){.edd-admin-notice-top-of-page{text-align:center}}.edd-admin-notice-top-of-page a{color:#fff}.edd-admin-notice-top-of-page a:hover{text-decoration:none}.edd-admin-notice-top-of-page .button-link{position:absolute;top:48px;right:-1px;font-size:20px;color:#fff;font-weight:700;text-decoration:none;margin-left:5px;padding:6px 10px}.edd-admin-notice-top-of-page .button-link:active,.edd-admin-notice-top-of-page .button-link:focus,.edd-admin-notice-top-of-page .button-link:hover{color:#fff;text-decoration:none}@media screen and (min-width:601px){.edd-admin-notice-top-of-page .button-link{top:1px}}@media screen and (min-width:783px){.edd-admin-notice-top-of-page .button-link{right:9px}}#edd-admin-notice-five-star-review{display:-ms-grid;display:grid}#edd_dashboard_sales .edd-promo-notice{border-bottom:1px solid #c3c4c7}.edd-review-actions{display:flex;gap:6px;margin:0 0 16px}.edd-promo-notice .edd-peeking{align-self:flex-end;justify-self:flex-end;margin-right:16px;margin-bottom:-1px}@media screen and (max-width:782px){#edd-admin-notice-five-star-review.notice .edd-peeking{margin-bottom:-6px}}@media screen and (min-width:480px){.edd-promo-notice.notice-info .edd-peeking{justify-self:flex-start;margin-right:0;margin-left:250px}}.edd-promo-notice .edd-peeking,.edd-review-step{-ms-grid-row:1;grid-area:1/-1}.edd-promo-notice__overlay{display:none;position:fixed;background:rgba(16,21,23,.75);top:0;right:0;bottom:0;left:160px;z-index:11;justify-content:center;align-items:center}.folded .edd-promo-notice__overlay{left:36px}@media screen and (max-width:782px){.edd-promo-notice__overlay{left:0}}.edd-admin-notice-overlay{display:none;background-color:#fff;padding:2.5em;text-align:center;max-width:650px;position:relative;flex-direction:column}.edd-promo-notice__overlay .edd-admin-notice-overlay{display:flex}.edd-admin-notice-overlay h2{line-height:1.6em;margin:0 auto;max-width:540px}.edd-admin-notice-overlay .edd-promo-notice__features{text-align:left;display:-ms-grid;display:grid;-ms-grid-columns:(auto)[3];grid-template-columns:repeat(3,auto);margin:2em auto;gap:0 1.5em}.edd-admin-notice-overlay .edd-promo-notice__features li{display:flex;gap:.5em;align-items:center}@media screen and (max-width:600px){.edd-admin-notice-overlay .edd-promo-notice__features{-ms-grid-columns:unset;grid-template-columns:unset}}.edd-admin-notice-overlay .button-primary{padding:4px 36px;margin:0 auto .5em;max-width:360px}.edd-admin-notice-overlay__link{color:#101517}.edd-admin-notice-overlay .edd-promo-notice-dismiss.button-link{position:absolute;color:#537994;text-decoration:none;font-size:2em;top:0;right:.5em}.edd-admin-notice-overlay .edd-promo-notice-dismiss.button-link:active,.edd-admin-notice-overlay .edd-promo-notice-dismiss.button-link:hover{color:#101517}@media screen and (max-width:782px){.edd-admin-notice-overlay{margin:1em}}.edd-paypal-account-status ul{margin-left:25px}.edd-paypal-account-status>li{margin-bottom:1em}.edd-paypal-account-status ul:not(.edd-paypal-webhook-events){list-style:disc;list-style-position:inside}.edd-paypal-account-status ul:not(.edd-paypal-webhook-events) li{margin:.25em 0}.edd-paypal-account-status .dashicons-yes{color:#008a20}.edd-paypal-account-status .dashicons-no{color:#d63638}.edd-overlay{position:fixed;z-index:1052;top:0;right:0;bottom:0;left:160px;background-color:#141b38;opacity:.5;transition:.5s}.edd-slide-in{transform:translateX(100%)!important;-webkit-transform:translateX(100%)!important}#edd-notifications-panel{background-color:#fff;height:100%;width:100%;max-width:570px;position:fixed;z-index:1053;top:0;right:0;bottom:0;overflow-x:hidden;transition:.5s;transform:translateX(0);-webkit-transform:translateX(0)}body.admin-bar #edd-notifications-panel{top:32px}@media screen and (max-width:600px){body.admin-bar #edd-notifications-panel{top:46px}}#edd-notifications-header{display:flex;align-items:center;padding:0 30px;color:#fff;background-color:#0c5d95}#edd-notifications-header h3{color:#fff;flex:1}#edd-notifications-header .edd-close{background:none;border:none;color:#fff;cursor:pointer}#edd-notifications-body{padding:30px}.edd-notification{display:flex;gap:20px;margin-bottom:20px}.edd-notification--icon{color:#00aa63}.edd-notification--icon.edd-notification--icon-info{color:#005ae0}.edd-notification--icon.edd-notification--icon-warning{color:#f18200}.edd-notification--icon.edd-notification--icon-error{color:#df2a4a}.edd-notification--body{flex:1}.edd-notification--header{align-items:center;display:flex;justify-content:space-between;gap:5px;margin-bottom:7px}.edd-notification--title{color:#141b38;flex:1;font-size:16px;font-weight:600;margin:0}.edd-notification--date{color:#71747e;font-size:12px}.edd-notification--actions{flex-wrap:wrap;display:flex;align-items:center;gap:5px;margin-top:10px}.edd-notification--dismiss{background:none!important;border:none!important;box-shadow:none!important;color:#71747e!important;cursor:pointer;padding:0 10px;text-decoration:underline}.edd-notification--dismiss:hover{text-decoration:none}.edd-dialog{display:none}.edd-item-header-small{padding-bottom:20px;border-bottom:1px solid #e5e5e5;display:flex;justify-content:flex-start;align-items:center;gap:6px}.edd-item-header-small span{font-weight:600;font-size:15px}.wrap-licenses .edd-licenses__description{margin:2em 1em}.wrap-licenses .form-table,.wrap-licenses caption,.wrap-licenses tfoot,.wrap-licenses th,.wrap-licenses thead,.wrap-licenses tr{display:block}@media screen and (min-width:600px){.wrap-licenses .form-table,.wrap-licenses caption,.wrap-licenses tfoot,.wrap-licenses th,.wrap-licenses thead,.wrap-licenses tr{display:unset}}.wrap-licenses tbody{display:-ms-grid;display:grid;gap:1em}.wrap-licenses .form-table tr{margin:0;background:#fff;border:1px solid #dcdcde;border-radius:3px;padding:0;box-sizing:border-box;display:flex;flex-direction:column;justify-content:space-between}@media screen and (min-width:600px){.wrap-licenses .form-table tr{display:-ms-grid;display:grid;-ms-grid-columns:200px 1fr;grid-template-columns:200px 1fr}}.wrap-licenses .form-table th{background:#f9f9f9;margin-bottom:2.5em;padding:1em;border-bottom:1px solid #dcdcde;width:unset}@media screen and (min-width:600px){.wrap-licenses .form-table th{border-bottom:none;margin-bottom:0;display:flex;align-items:center}}.wrap-licenses .form-table td{margin:0;padding:0;display:flex;flex-direction:column;gap:2.5em;flex-grow:1}@media screen and (min-width:600px){.wrap-licenses .form-table td{flex-direction:row;gap:unset}}.wrap-licenses .form-table td input.regular-text{margin:0;width:100%;max-width:250px}.wrap-licenses .form-table td button{margin:0}.wrap-licenses .form-table .edd-license__control{flex-grow:1;padding:0 1em;display:flex;gap:4px;align-items:center;justify-content:center}@media screen and (min-width:600px){.wrap-licenses .form-table .edd-license__control{justify-content:flex-end}}.wrap-licenses .form-table .edd-licensing__actions{display:flex;gap:4px}.wrap-licenses .edd-license-data[class*=edd-license-]{background:#f9f9f9;padding:1em;border-top:1px solid #dcdcde;margin:0;width:100%;box-sizing:border-box;display:flex;align-items:flex-end}.wrap-licenses .edd-license-data[class*=edd-license-] a{color:#444}.wrap-licenses .edd-license-data[class*=edd-license-] a:hover{text-decoration:none}@media screen and (min-width:600px){.wrap-licenses .edd-license-data[class*=edd-license-]{border-top:none;width:unset;flex-basis:100%;align-items:center}.wrap-licenses .edd-license-data[class*=edd-license-]:not(:only-child){flex:0 1 300px}}.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 .edd-license-data.edd-license-expired a:hover,.wrap-licenses .edd-license-data.license-expires-soon-notice a:hover{text-decoration:none}.edd-settings-content{max-width:1440px}.edd-settings-color,.edd-settings-colors{display:flex;flex-wrap:wrap;gap:1em}.edd-settings-color{flex-direction:column}.edd-upload-button-wrapper{width:100%;display:flex;gap:5px}.edd-upload-button-wrapper button.edd_settings_upload_button{margin-bottom:0}.edd-hidden{display:none}.edd-clearfix:after{content:"";display:table;clear:both}.edd-notice .notice-dismiss,.edd-wrap a{text-decoration:none}.wp-core-ui .edd-delete,a.edd-delete{color:#a00}.wp-core-ui .edd-delete:hover,a.edd-delete:hover{color:red}body.post-type-download #contextual-help-link-wrap,body.post-type-download #screen-options-link-wrap{top:5px!important}body.post-type-download #screen-meta{margin:0 0 -1px -20px}#edd-header{border-top:5px solid #0c5d95;border-bottom:1px solid #c3c4c7;padding:20px 0;margin-left:-20px;background:#fff}#edd-header-wrapper{display:flex;justify-content:space-between;padding:0 20px;align-items:center}#edd-header img{display:block;max-width:300px;margin:0}.edd-header-page-title-wrap{font-size:1.75em;margin-top:-5px;margin-right:auto;padding-left:7px}.edd-header-separator{margin-top:-2px;opacity:.25}.edd-header-page-title{font-weight:400;font-size:1em;line-height:1.3em;display:inline}.edd-header-page-title-wrap .button{margin-left:5px}.no-js #edd-header-actions{display:none}#edd-header .edd-round{position:relative;background-color:#f3f4f5;border-radius:50%;width:40px;height:40px;display:flex;align-items:center;justify-content:center;margin-left:10px;cursor:pointer;transition:background-color .2s ease}button.edd-round{border:none}#edd-header button.edd-round:hover{background-color:#e5e5e5}button.edd-round:active,button.edd-round:focus{outline:2px solid #0c5d95}#edd-header .edd-number{position:absolute;background-color:#df2a4a;width:16px;height:16px;font-weight:600;font-size:10px;color:#fff;top:-8px;left:50%;transform:translateX(-50%);margin:0;animation:bounce 2s 5}#edd-header .edd-number.edd-hidden{display:none!important}#edd-header .edd-round svg{width:20px;height:20px}@media screen and (max-width:840px){#edd-header img,.edd-header-separator{display:none}}.edd_datepicker{height:29px}.edd-from-to-wrapper input{width:105px;margin:0;position:relative;z-index:1}.edd-from-to-wrapper input[name*=start],.edd-from-to-wrapper input[name=filter_from]{border-top-right-radius:0;border-bottom-right-radius:0}.edd-from-to-wrapper input[name*=end],.edd-from-to-wrapper input[name=filter_to]{margin-left:-1px;border-top-left-radius:0;border-bottom-left-radius:0}.edd-from-to-wrapper input:focus{z-index:2;position:relative}.edd-settings-sub-nav{margin:0 0 10px;width:100%;border-bottom:1px solid #ccc;box-shadow:0 1px 1px rgba(0,0,0,.04)}.edd-settings-sub-nav a{padding:13px;display:block}.edd-settings-sub-nav a.current{border-bottom:4px solid #000;padding-bottom:9px}.admin-color-fresh .edd-settings-sub-nav a.current{border-bottom-color:#00a0d2}.admin-color-blue .edd-settings-sub-nav a.current{border-bottom-color:#096484}.admin-color-coffee .edd-settings-sub-nav a.current{border-bottom-color:#c7a589}.admin-color-ectoplasm .edd-settings-sub-nav a.current{border-bottom-color:#a3b745}.admin-color-midnight .edd-settings-sub-nav a.current{border-bottom-color:#e14d43}.admin-color-ocean .edd-settings-sub-nav a.current{border-bottom-color:#627c83}.admin-color-sunrise .edd-settings-sub-nav a.current{border-bottom-color:#be3631}.admin-color-light .edd-settings-sub-nav a.current{border-bottom-color:#888}.admin-color-evergreen .edd-settings-sub-nav a.current{border-bottom-color:#36533f}.admin-color-mint .edd-settings-sub-nav a.current{border-bottom-color:#4f6d59}.download_page_edd-settings .edd-check-wrapper{clear:both}.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-sortable-list{margin:0;width:300px;position:relative}.edd-sortable-list li{margin:0;padding:0;position:relative;height:28px;cursor:move}.edd-sortable-list li label *{vertical-align:middle}.edd-sortable-list li label:after{display:block;width:17px;height:17px;position:absolute;right:6px;top:0;color:#aaa;font-family:dashicons;font-size:17px;content:"";cursor:move}.form-table .edd-sortable-list li label{display:block;height:28px;padding:0;margin:0}.edd-sortable-list .payment-icon{width:32px;height:24px;position:relative;top:-2px;margin-right:5px}.edd-help-tip{cursor:help;margin-top:-2px;font-size:24px;color:grey}.edd-ui-tooltip{position:absolute;background:#333!important;border-width:1px!important;border-radius:3px!important;box-shadow:1px 1px 2px 1px hsla(0,0%,83.9%,.5)!important;color:#dedede!important;max-width:300px!important;padding:7px!important;text-rendering:optimizeLegibility;text-shadow:none!important;z-index:9999!important}.download_page_edd-settings .edd-settings-payment-icon-wrapper{margin-top:5px}.download_page_edd-settings .edd-settings-payment-icon-wrapper input{margin-top:1px}.download_page_edd-settings .form-table .edd-settings-payment-icon-wrapper input[type=checkbox]+label{margin:0;display:inline-block}.download_page_edd-settings .edd-settings-payment-icon-wrapper .payment-icon-image{margin-right:5px;width:32px;display:inline-block;vertical-align:middle}.download_page_edd-settings .edd-settings-payment-icon-wrapper .payment-option-name{vertical-align:middle}.download_page_edd-settings .taxrates td,.download_page_edd-settings .taxrates th{padding:8px 10px}.download_page_edd-settings .taxrates td{line-height:1.5em;vertical-align:top;margin:0}.download_page_edd-settings .taxrates .regular-text{width:100%}#TB_window{overflow:hidden}#TB_title{padding:5px}#TB_ajaxContent{width:calc(100% - 30px)!important;padding:15px;margin:0;height:calc(100% - 118px)!important}#TB_ajaxWindowTitle{font-size:18px;font-weight:600;line-height:30px}#TB_closeWindowButton{right:6px;top:6px}#choose-download-wrapper{width:100%}#choose-download-wrapper .wrap{overflow-y:scroll;margin:0;padding:0;height:calc(100% - 50px)}#choose-download-wrapper .submit-wrapper{position:absolute;width:100%;bottom:0;padding:0;margin:0 0 0 -15px;text-align:right}#choose-download-wrapper .submit-wrapper div{background-color:#fafafa;padding:15px;border-top:1px solid #ddd}.wp-media-buttons .button.edd-thickbox{padding-left:0}.wp-media-buttons .button.edd-email-tags-inserter .dashicons{margin-top:-2px}.download_page_edd-payment-history .edit-post-editor-regions__header{flex-shrink:0;height:auto;border-bottom:1px solid #e2e4e7;z-index:30;position:sticky;top:32px;margin-left:-20px}@media screen and (max-width:782px){.download_page_edd-payment-history .edit-post-editor-regions__header{position:static;top:46px}}.download_page_edd-payment-history .edit-post-header{height:56px;background:#fff;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;max-width:100%;box-sizing:border-box;padding:4px 20px}@media screen and (max-width:782px){.download_page_edd-payment-history .edit-post-header{padding-left:10px;padding-right:10px}}@media(min-width:280px){.download_page_edd-payment-history .edit-post-header{flex-wrap:nowrap}}.download_page_edd-payment-history .edit-post-header .edit-post-header__toolbar{order:0}.download_page_edd-payment-history .edit-post-header .edit-post-header__settings{order:1}.download_page_edd-payment-history .edit-post-header #publishing-action,.download_page_edd-payment-history .edit-post-header .edit-post-header__settings,.download_page_edd-payment-history .edit-post-header .edit-post-header__toolbar{display:flex;align-items:center}.download_page_edd-payment-history .edit-post-header #publishing-action .spinner{margin:0 5px 0 0}.download_page_edd-payment-history .edit-post-header .button-primary{margin:2px;height:34px;line-height:32px;font-size:13px}#edd-order-items .hndle{display:flex;align-items:center;justify-content:space-between}#edd-order-items .hndle .edd-toggle{font-weight:400}.edd-add-order-item td{vertical-align:middle}.edd-add-order-item input{width:80%}.edd-add-order-item input[readonly]{color:#555;background:none;border:1px solid transparent;box-shadow:none}.order-customer-info .customer-details-wrap{margin:15px 0;align-items:center}.order-customer-info .customer-details-wrap .spinner{margin:0}.order-customer-info .customer-details{display:flex;flex-direction:column}.order-customer-info .customer-details .customer-since{color:#666;display:block;margin:4px 0 6px}.order-customer-info .customer-details>span{margin-bottom:5px}.edd-order-add-download-select .spinner{display:none}table.edd-order-overview-summary{border-width:0;table-layout:fixed}table.edd-order-overview-summary--refund{border-width:0}@media screen and (min-width:782px){.edd-order-overview .column-right{text-align:right}}.edd-ml-auto{margin-left:auto!important}@media screen and (min-width:782px){.edd-ml-lg-auto{margin-left:auto!important}}.edd-ml-auto+.edd-ml-auto{margin-left:10px!important}.edd-order-overview-summary__items-name{align-self:flex-start}.edd-order-overview-summary__items>:nth-child(odd){background-color:#f9f9f9}@media screen and (min-width:782px){.edd-order-overview-summary__items tr:last-child td,.edd-order-overview-summary__items tr:last-child th{border-bottom:1px solid #e5e5e5}}@media screen and (max-width:782px){.edd-order-overview-summary .row-actions>*,.edd-order-overview-summary__items-name .row-actions{display:block!important}.edd-order-overview-summary .row-actions>:not(:first-child):before{display:none}}.edd-order-overview-summary th:not(.column-primary){width:100px}.edd-order-overview-summary .row-actions>:not(:first-child):before{color:#999;content:" | "}.edd-order-overview-summary .row-actions .text{color:#555}.edd-order-overview-summary .removable{display:flex;align-items:center;position:relative}.edd-order-overview-summary .removable .delete{display:inline-block;margin-right:10px;margin-left:-8px;padding:10px;border-right:1px solid #e5e5e5;color:#a00}.edd-order-overview-summary .removable .delete:hover{color:#dc3232}.edd-order-overview-summary__adjustments .column-primary{font-weight:600}.edd-order-overview-summary__adjustments td small{font-weight:400}.edd-order-overview-summary__subtotal .column-primary,.edd-order-overview-summary__tax tr:first-of-type .column-primary,.edd-order-overview-summary__total .column-primary{font-weight:600}.edd-order-overview-summary__adjustments td,.edd-order-overview-summary__subtotal td,.edd-order-overview-summary__tax td,.edd-order-overview-summary__total td{vertical-align:middle}.edd-order-overview-summary__tax td small,.edd-order-overview-summary__total td small{font-weight:400}.edd-order-overview-summary__total .total{color:#017d5c;display:inline-block}.edd-order-overview-summary__total .total.is-negative{color:#a00}@media screen and (min-width:783px){.edd-order-overview-summary__adjustments .removable .delete{margin-left:-50px}.edd-order-overview-summary__total .total{font-size:150%;padding-top:5px;padding-bottom:5px}}.edd-order-overview-summary__total tr:last-child td:not(:first-of-type),.edd-order-overview-summary__total tr:last-child th{border-top:1px solid #e5e5e5}.edd-order-overview-summary__total .notice{margin:-1px}.edd-order-overview-summary__total .notice p{font-weight:400;margin:.5em 0}.edd-order-overview-summary__refunds .column-primary{font-weight:600}.edd-order-overview-summary__refunds td small{font-weight:400}.edd-order-overview-summary__refunds tr:first-child td{border-top:1px solid #e5e5e5}#edd-order-overview-actions.inside{border-top:1px solid #ccd0d4;margin-top:0;display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between}#edd-order-overview-actions.inside:empty{padding:0;border-top:0}#edd-order-overview-actions.inside>div{display:flex;align-items:center}#edd-order-overview-actions .edd-order-overview-actions__notice{flex-basis:100%;margin-top:15px}.edd-order-overview-actions .button{width:100%;margin-bottom:12px}.edd-order-overview-actions .button:last-of-type{margin-bottom:0}@media screen and (min-width:782px){.edd-order-overview-actions .button{width:auto;margin-left:12px;margin-bottom:0}.edd-order-overview-actions .button:first-of-type{margin-left:auto}}.edd-order-overview-actions__locked{font-style:italic;opacity:.8}@media screen and (max-width:782px){.edd-order-overview-actions__locked{margin-bottom:12px}}.edd-order-overview-actions__refund .dashicons{margin-right:8px}.edd-dialog .ui-button-icon-only{font-size:0}.download_page_edd-payment-history .ui-dialog,.download_page_edd-payment-history .ui-dialog-content{overflow:visible}.edd-order-overview-modal form>p{margin-top:0}.edd-order-overview-modal fieldset legend,.edd-order-overview-modal form label{display:block;margin-bottom:4px}.edd-order-overview-modal fieldset{margin-bottom:calc(1em - 3px)}.edd-order-overview-modal fieldset>p{margin:2px 0 3px}.edd-order-overview-modal form .submit{margin:0 -16px -16px;padding:16px;background:#fcfcfc;border-top:1px solid #dfdfdf;display:flex;align-items:center}.edd-order-overview-modal form .submit .spinner{margin:0}.edd-order-overview-add-item [for=auto-calculate]{display:flex;align-items:center}.edd-order-overview-add-item [for=auto-calculate] input[type=checkbox]{margin-top:0}.edd-order-overview-add-item [for=auto-calculate] .label{line-height:1.15;margin-left:8px}.edd-order-overview-add-item [for=auto-calculate] .label small{margin-top:4px;display:block;opacity:.75}.edd-order-overview-add-adjustment .notice,.edd-order-overview-add-item .notice{margin:0 0 1rem}.edd-order-overview-add-adjustment #description,.edd-order-overview-add-discount select{width:100%}.edd-order-overview-error{font-style:italic;color:#a00;display:block;margin:4px 0}.edd-order-copy-download-link textarea{width:100%}.edd-admin-order-status-badge{padding:2px 7px;border-radius:4px;background:#ececec;display:inline-flex;align-items:center}.edd-admin-order-status-badge__icon{opacity:.8;margin:0 -2px 0 2px}.edd-admin-order-status-badge--refunded .edd-admin-order-status-badge__icon{font-size:16px;width:16px;height:16px}.edd-admin-order-status-badge--failed{color:#ac3d3d;background:#ffd6d6}.edd-admin-order-status-badge--failed .edd-admin-order-status-badge__icon{margin-left:0;margin-top:-1px}.edd-admin-order-status-badge--complete{color:#017d5c;background:#e5f5f0}.edd-admin-order-status-badge--complete .edd-admin-order-status-badge__icon{margin-left:0}.edd-admin-order-status-badge--pending{color:#7d6e01;background:#f5f2e5}.edd-admin-order-status-badge--processing{color:#015a7d;background:#e5f1f5}.wp-list-table.orderitems .refunded .edd-admin-order-status-badge{margin-left:10px}.edd-order-resend-email-chooser legend{font-weight:700;margin-bottom:4px}.edd-order-resend-email-chooser p{margin:4px 0}.edd-notes .edd-note{padding:10px;background-color:#ffe;border:1px solid #cc0;width:100%;position:relative;margin-bottom:10px;box-sizing:border-box;overflow:hidden}.edd-notes .edd-note.deleting{opacity:.5}.edd-notes .edd-note__header{display:flex;align-items:center}.edd-add-note .spinner{float:none;display:inline-block;margin:0}.edd-notes .edd-note time{font-size:11px;color:#aaa}.edd-notes .edd-note .edd-note-author{margin-right:5px}.edd-notes .edd-note .edd-delete-note{color:#a00;font-weight:700;text-decoration:none;margin-left:auto}.edd-notes .edd-note .edd-delete-note:hover{color:#888}.edd-notes .edd-note p:last-child{margin-bottom:0}.edd-notes .edd-no-notes{margin:4px 0 10px}textarea[name=edd-note]{width:100%;min-height:70px;margin-top:0}.edd-notes-wrapper{width:80%}.edd-note-pagination{float:right;margin:-35px 5px 15px}.edd-note-pagination a,.edd-note-pagination span.page-numbers{padding:5px 8px;margin:2px;text-decoration:none}.edd-note-pagination a{border:1px solid #e5e5e5;background:#fcfcfc}.edd-note-pagination a:last-child,.edd-note-pagination span.page-numbers:last-child{margin-right:0}#edd-products{height:100px;min-width:200px}#edd-add-discount input[type=text],#edd-edit-discount input[type=text]{width:300px}#edd-add-discount .edd-discount-datetime input,#edd-edit-discount .edd-discount-datetime input{vertical-align:middle}#edd-add-discount input[type=text].edd_datepicker,#edd-edit-discount input[type=text].edd_datepicker{display:inline-block;width:183px}#edd-edit-discount textarea{height:100px}.edd-amount-type-wrapper{position:relative;display:flex}.edd-amount-type-wrapper select{border-top-left-radius:0;border-bottom-left-radius:0;width:auto!important}.edd-amount-type-wrapper #edd-amount{border-top-right-radius:0;border-bottom-right-radius:0;margin-right:-2px;padding:0 8px;width:unset;max-width:125px}.edd-amount-type-wrapper input:focus{z-index:2}.post-type-download .tablenav.top .edd-select{margin-right:6px}.wp-list-table.addresses .column-primary strong,.wp-list-table.customers .column-primary strong,.wp-list-table.discounts .column-primary strong,.wp-list-table.emails .column-primary strong,.wp-list-table.orderadjustments .column-primary strong,.wp-list-table.orderitems .column-primary strong,.wp-list-table.orders .column-primary strong{font-size:14px}.wp-list-table.customers .column-primary .avatar,.wp-list-table.emails .column-customer .avatar{float:left;margin-right:10px;margin-top:1px;border-radius:5px}.wp-list-table.orders div.order-list-email{font-size:.85em;color:#888}.wp-list-table.orders th.column-amount{width:100px}.wp-list-table .row-actions span.activate a{color:green}.wp-list-table .row-actions span.refund a{color:#836fff}.wp-list-table .row-actions span.cancel a{color:#cc8c00}.wp-list-table .row-actions span.cancel a:hover,.wp-list-table .row-actions span.refund a:hover{opacity:.8}.wp-list-table .type-download .row-actions{color:#999}.no-js.edit-tags-php.post-type-download .wp-heading-inline{position:absolute;top:0}.no-js.edit-tags-php.post-type-download .nav-tab-wrapper{margin-top:50px}.download_page_edd-customers .wrap .nav-tab-wrapper .page-title-action,.download_page_edd-discounts .wrap .nav-tab-wrapper .page-title-action,.download_page_edd-payment-history .wrap .nav-tab-wrapper .page-title-action,.edit-tags-php.post-type-download .wrap .nav-tab-wrapper .page-title-action{top:3px;margin-left:10px;line-height:24px}#edd-payments-filter ul.subsubsub{margin-bottom:8px}tr.status-refunded td{background:#cecece;border-top-color:#ccc}marquee{padding:0;margin:0}@media handheld,only screen and (max-width:640px){.wp-list-table.downloads th{width:auto!important}}#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_product_files .inside,#edd_product_prices .inside{margin-bottom:0}textarea#edd-payment-note{width:100%;height:4em;margin:0}#edd-order-items .row .edd-purchased-files-list-wrapper .download{line-height:1.4}#edd-order-items .edd-purchased-files-list-wrapper .edd-purchased-option{color:#666}input[class*=edd-price-field]{max-width:125px}#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:80%;max-width:125px}#edd_product_notes_field{display:block;margin:12px 0 0;height:4em;width:100%}.edd-metabox-title-action{margin:0;float:right;padding:4px 8px;position:relative;top:-1px;text-decoration:none;border:1px solid #ccc;border-radius:2px;background:#f7f7f7;text-shadow:none;font-weight:600;font-size:10px;line-height:normal;color:#0073aa;cursor:pointer;outline:0}.edd-metabox-title-action:hover{border-color:#008ec2;background:#00a0d2;color:#fff}.edd-edit-purchase-element .tablenav{padding:2px 10px 8px}.edd-edit-purchase-element .edd-order-children-wrapper{margin:0 -1px}.edd-edit-purchase-element .edd-order-children-wrapper.child-count-0 table{border-top:none;border-bottom:none}.edd-edit-purchase-element .edd-order-children-wrapper.child-count-0 .tablenav{display:none}.edd-edit-purchase-element[class*=columns-] ul li{padding-right:1%}#edd-edit-order-form .column:nth-child(odd),#edd-edit-order-form .columns-4 .column:nth-child(odd),#edd-edit-order-form .columns-5 .column:nth-child(3n+1){margin-right:0}#edd-edit-order-form input.large-text{width:90%}.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 #f1f1f1;clear:both;padding:12px;margin:0;word-wrap:break-word}.edd-admin-box-inside--row{display:flex;flex-wrap:wrap;word-break:break-all;justify-content:space-between;align-items:center}.edd-admin-box-inside>p{margin:8px 3px}.edd-admin-box-inside .strong{font-weight:600}.edd-admin-box div:not(.edd-admin-box-inside--row) .label{display:block;margin-bottom:4px;margin-right:0}.edd-admin-box .label--has-tip{display:flex;align-items:center}.edd-admin-box .label--has-tip .edd-help-tip{margin-top:0;font-size:20px}.edd-admin-box div:not(.edd-admin-box-inside--row) .label--has-checkbox{margin-bottom:0}.edd-payment-fees .fee-label{color:#666;font-weight:400}.edd-admin-box .right{float:right}#edd-order-refunds-list{padding-left:25px}#poststuff .edd-order-data .inside{margin:0;padding:0}.edd-order-data .edd-select-chosen{width:130px!important}.edd-order-data input.edd_datepicker{width:180px}.edd-order-data input[type=number].edd-payment-time-hour,.edd-order-data input[type=number].edd-payment-time-min{width:50px}.edd-order-data .edd-tax-rate{color:#9c9c9c;font-style:italic;padding:5px}#edd_general_logs p{margin:0;padding:0}.edd-admin-box-inside span.label{margin-right:10px}#edd-order-resend-receipt .inside{margin-top:11px}#edd-order-resend-receipt .edd-order-resend-receipt-addresses{margin-top:10px}.edd-order-resend-receipt-header{font-size:14px;line-height:1.4}.edd-order-resend-receipt-addresses label{display:block;line-height:1.75em}.edd-order-resend-receipt-addresses label:last-child{margin-bottom: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-order-update-box .button-primary{margin-right:0}.edd-edit-purchase-element .edd-select-chosen{width:196px}.edd-edit-purchase-element ul{clear:both;display:block}#edd-customer-details .actions{float:right}.order-data-address h3{margin:0 0 10px}.order-data-address #edd-order-address-country-wrap,.order-data-address #edd-order-address-state-wrap{display:inline-block;width:50%;max-width:300px}.edd-order-data input.small-text{margin:0}.edd-order-data input.med-text{margin:0;width:100px}.edd-edit-purchase-element ul li{display:block;line-height:1.4;position:relative;margin:0;vertical-align:middle;font-size:13px}.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{margin:0 0 15px}.edd-edit-purchase-element ul:last-of-type{margin-bottom:0}#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-title .deleted{color:#777}.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-add-adjustment-to-purchase,.edd-add-download-to-purchase{padding:15px;border-top:1px solid #e5e5e5;background-color:#f5f5f5}.edd-add-adjustment-to-purchase .chosen-container,.edd-add-download-to-purchase .chosen-container{width:90%!important;max-width:220px!important}.edd-add-adjustment-to-purchase .spinner,.edd-add-download-to-purchase .spinner{margin:0;float:none}.edd-add-download-to-purchase .edd-add-order-quantity{width:40px;height:29px;vertical-align:middle}.edd-add-adjustment-to-purchase .edd-add-adjustment-button,.edd-add-adjustment-to-purchase input[type=text],.edd-add-download-to-purchase .edd-add-order-item-button{height:29px}@media screen and (max-width:1284px){.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}}@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-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-download-amount,.edd-price-currency{font-size:16px}.order-data-column input[type=email]{padding:6px 10px}.edd-refund-submit-line-total td:last-of-type{flex:0 0 120px}#edd-item-tables-wrapper .addresses tbody tr{display:-ms-grid;display:grid}#edd-item-tables-wrapper .addresses tbody td:not(.no-items){padding-left:35%}}@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_product_stats .label{display:inline-block}#edd_product_stats .product-earnings-stats:before,#edd_product_stats .product-sales-stats:before{color:#82878c;font:normal 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_product_stats .product-sales-stats:before{content:""}#edd_product_stats .product-earnings-stats:before{content:""}body.dashboard_page_edd-upgrades.js .postbox .hndle{cursor:default}.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{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}}body.download_page_edd-reports{overflow-y:scroll}.edd-chip{font-size:10px;font-weight:700;text-transform:uppercase;line-height:1;padding:3px;border-radius:3px;color:#fff;background-color:#444}.edd-reports-wrapper .postbox h2,.edd-reports-wrapper .postbox h3{font-size:1.3em}#edd-dashboard-widgets-wrap .metabox-holder{padding-top:0}.edd-reports-wrapper .postbox .edd-select{max-width:200px;vertical-align:baseline;margin-right:4px;margin-bottom:16px}.download_page_edd-reports #edd-item-wrapper{margin:0}#edd-dashboard-widgets-wrap .postbox h2,#edd-dashboard-widgets-wrap .postbox h3{cursor:default}.edd-date-range-options .edd_datepicker{width:105px}.edd-report-wrap{clear:both}.edd-report-wrap h3{clear:both;margin:0 0 20px}.edd-reports-chart,.edd-reports-table{margin-bottom:20px}.edd-admin--has-grid{display:grid;display:-ms-grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));grid-gap:20px}.edd-admin--has-grid .postbox{margin-bottom:0}.edd-admin--has-grid .edd-from-to-wrapper{display:flex;margin-bottom:16px;width:100%}.edd-admin--has-grid .edd-from-to-wrapper input{width:100%}.edd-admin--has-grid .edd-from-to-wrapper span{flex-grow:1}.edd-admin--has-grid form{display:flex;flex-direction:column;flex-wrap:wrap;position:relative}fieldset.edd-to-and-from-container{display:flex;gap:8px}fieldset.edd-to-and-from-container select{flex:0 0 calc(50% - 6px)}span.edd-to-and-from--separator{line-height:normal;-ms-grid-row-align:center;align-self:center;margin-bottom:16px}.edd-admin--has-grid .postbox .edd-select{max-width:100%;margin-right:0}.edd-admin--has-grid .button.updated-message:before,.edd-admin--has-grid .button.updating-message:before{vertical-align:text-bottom;margin:0 5px 0 0}.edd-import-export-form .edd-progress{background:#ddd;border-radius:15px;height:15px;flex-basis:100%}.edd-import-export-form .edd-progress div{background:#ccc;border-radius:15px;height:100%;width:0}.edd-import-export-form .notice-wrap{background-color:#f4f4f4;border-color:#eae9e9;border-style:solid;border-width:1px 0;padding:12px;overflow:auto;margin:20px -12px -23px;position:relative;width:100%;display:flex;justify-content:space-between;align-items:center}.notice-wrap div.notice{margin:0}.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}.graph-option-section{float:left}.edd-report-filters-title span{display:block;padding:20px}#edd-graphs-filter form{padding:20px}#edd-graphs-filter label{vertical-align:inherit}#edd-graphs-filter .graph-option-section{display:inline-block;line-height:2em;margin:0 5px 0 0;padding:0}.download_page_edd-reports .section-content #post-body-content{float:none}.download_page_edd-reports .section-content select[name=range]{display:none}.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-reports-tiles-wrap .metabox-holder{padding:0}#edd-reports-tiles-wrap #dashboard-widgets{overflow:auto}#edd-reports-tiles-wrap #dashboard-widgets .postbox-container{width:33.3%}.download_page_edd-reports .section-content .tablenav.top{display:none}#edd_tax_rates{margin:1em 0 0}[id*=edd-recapture-].button{font-size:16px;height:auto;padding:8px 14px;margin:6px 0 0}[id*=edd-recapture-].button .dashicons{line-height:29px;margin-right:8px}[id*=edd-recapture-].button .edd-loading,[id*=edd-recapture-].button .edd-loading:after{border-radius:50%;display:inline-block;width:14px;height:14px}[id*=edd-recapture-].button .edd-loading{position:relative;top:3px;margin-left:4px;box-shadow:0 0 2px rgba(0,0,0,.2);animation:edd-spinning 1.1s linear infinite;border:2px solid hsla(0,0%,100%,.5);border-left-color:#fff;font-size:14px;filter:alpha(opacity=0);transform:translateZ(0)}#edd-recapture-disconnect.button .edd-loading.dark{border-color:rgba(0,0,0,.2) rgba(0,0,0,.2) rgba(0,0,0,.2) #666;box-shadow:none}.recapture-notice{position:relative}@keyframes edd-spinning{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}#edd-chartjs-tooltip{position:absolute;background-color:#fff;border-radius:7px;transition:all .1s ease;pointer-events:none;transform:translate(-50%);font-size:12px;box-shadow:0 0 0 1px rgba(89,94,100,.1),0 15px 35px 0 rgba(89,94,100,.1),0 5px 15px 0 rgba(0,0,0,.12);min-width:120px;opacity:0}.edd-chartjs-tooltip-key{display:inline-block;width:10px;height:10px;margin-right:5px}#edd-send-test-summary-save-changes-notice .notice p{font-size:13px}#edd-send-test-summary-notice,#edd-send-test-summary-save-changes-notice{display:flex;margin-top:5px}.edd-graph .y1Axis{color:#edc240!important}.edd-graph .y2Axis{color:#afd8f8!important}.wp-list-table.apikeys input.code{width:100%;font-size:10px;cursor:text;background:#fff;border:1px solid #ddd;box-shadow:none;color:#555}.edd-toggle{position:relative;display:inline-block;overflow:visible}.edd-toggle input[type=checkbox]{display:inline-block;vertical-align:middle;position:relative;margin:0;padding:0;width:42px;min-width:42px;height:24px;background-color:#ccc;transition:background .2s ease;border-radius:34px;box-shadow:none;border:none}.edd-toggle .label{display:inline-block;vertical-align:middle;white-space:nowrap}.edd-toggle input[type=checkbox]:before{position:absolute;content:"";height:18px;width:18px;left:3px;bottom:3px;background-color:#fff;transition:transform .1s ease;border-radius:50%}@media only screen and (max-width:782px){.edd-toggle input[type=checkbox]:checked:before{margin:-.1875rem 0 0 -.25rem}}.edd-toggle input[type=checkbox]:checked{background-color:#007cba;background-color:var(--wp-admin-theme-color)}.edd-toggle input[type=checkbox]:active,.edd-toggle input[type=checkbox]:focus{outline:0;box-shadow:0 0 0 1px #fff,0 0 0 3px #7e8993}.edd-toggle input[type=checkbox]:checked:active,.edd-toggle input[type=checkbox]:checked:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px #007cba;box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color)}.edd-toggle input[type=checkbox]:checked:before{transform:translateX(22px)}.edd-toggle .label+input,.edd-toggle input+.label{margin-left:5px}.download_page_edd-tools .tablenav .actions{overflow:visible}.edd_user_search_wrap{position:relative;overflow:visible}.edd_user_search_wrap .spinner{position:absolute;margin:0;padding:0;right:4px;top:-2px}.edd_user_search_wrap.loading .spinner{visibility:visible}.edd_user_search_results{position:absolute;left:0;top:20px}.edd_user_search_results a.edd-ajax-user-cancel{position:absolute;right:6px;top:2px}.edd_user_search_results ul{background:#fafafa;border:1px solid #dfdfdf;overflow-y:scroll;padding:0;margin:0;height:150px;width:185px;box-shadow:0 3px 5px rgba(0,0,0,.1)}.edd_user_search_results li{margin:0}.edd_user_search_results li a{display:block;text-decoration:none;padding:6px 10px}.edd_user_search_results li a:hover{background:#f5f5f5}.edd_user_search_results li.no-users{text-align:center;vertical-align:middle;display:block;line-height:150px;color:#bbb;text-transform:uppercase;font-size:11px}@media screen and (max-width:1100px){.edd-mix-chart{display:block;width:100%}}@media screen and (max-width:782px){.license-expiration-date-notice,.license-lifetime-notice,.license-null{padding-left:0}}@media screen and (max-width:600px){#edd-edit-order-form input.large-text{width:100%}}#edd-item-wrapper{background:#fff;border:1px solid #c3c4c7;box-shadow:0 1px 1px rgba(0,0,0,.04);position:relative;margin-top:15px;display:flex}#edd-item-wrapper.full-width{max-width:100%}#edd-item-wrapper:after{content:"";display:block;clear:both;visibility:hidden;font-size:0;height:0}.edd-sections-wrap{clear:both;width:100%}.edd-sections-wrap .section-wrap{background-color:#fff;display:inline-block;z-index:2}.js .edd-sections-wrap .edd-vertical-sections:not(.meta-box) .section-wrap>div{min-height:500px;height:100%}.edd-sections-wrap .section-wrap .customer-section:not(:last-child){border-bottom:1px solid #eee}.edd-sections-wrap .section-wrap .customer-section table{margin-bottom:20px}.edd-sections-wrap .section-wrap{border-left:1px solid #e5e5e5}.edd-sections-wrap .section-wrap .section-content>*{padding:20px}.edd-sections-wrap .section-wrap .section-content h2{margin:0;padding-bottom:0}.edd-sections-wrap .section-wrap .avatar-wrap{float:left;padding-right:10px;text-align:center}.edd-sections-wrap .section-wrap img.avatar{border-radius:5px}.edd-sections-wrap .section-wrap .customer-id{position:absolute;right:0;top:0;padding:10px;background-color:#fafafa;border-bottom-left-radius:20%;border:1px solid #eee;border-top:none;border-right:none;font-family:monospace;font-size:18px;font-weight:600}.edd-item-info.customer-info input[type=password],.edd-item-info.customer-info input[type=text],.edd-item-info.customer-info select{width:200px;height:auto;box-shadow:none;transition:none;border:1px solid #ddd;margin:-5px 0 4px -2px;font-size:13px;padding:2px 4px}.edd-sections-wrap .section-wrap .customer-main-wrapper{float:left}.edd-sections-wrap .section-wrap .customer-main-wrapper input[name="customerinfo[name]"]{font-size:24px}.edd-sections-wrap .section-wrap .customer-address-wrapper{float:right;margin-top:-3px;margin-right:50px;width:202px}.edd-sections-wrap .section-wrap .info-wrapper{min-height:125px;overflow:visible}.edd-sections-wrap .section-wrap .customer-address span[data-key=address2],.edd-sections-wrap .section-wrap .customer-address span[data-key=address],.edd-sections-wrap .section-wrap .customer-address span[data-key=country]{display:block}.edd-sections-wrap .section-wrap a.delete{color:red;margin-right:5px;text-decoration:none}.customer-info{min-height:185px}.customer-info .customer-name{font-size:24px;font-weight:600}.customer-info .customer-name.editable{margin-bottom:6px}.customer-edit-link a{font-weight:400;text-decoration:none}.disconnect-user a{color:#aaa;font-size:20px}#customer-edit-actions{padding:3px;line-height:28px;text-align:center}#customer-edit-actions .button-secondary{margin-right:5px}#customer-edit-actions .cancel{padding:5px}.edd-sections-wrap .section-wrap .row-title{width:30%}.edd-sections-wrap .section-wrap .editable{display:block;padding:3px}.edd-sections-wrap .section-wrap div.edit-item{margin-left:-4px;margin-top:-20px}.edd-sections-wrap .section-wrap .customer-address.edit-item{margin-top:3px}.edd-sections-wrap .section-wrap span.edit-item{display:none}.edd-sections-wrap .section-wrap .edit-item input{font-size:13px}.edd-sections-wrap .section-wrap .customer-name.edit-item input{margin-top:-5px}.edd-sections-wrap .section-wrap .edd_user_search_results{left:-2px;top:18px}.edd-sections-wrap .section-wrap .edd_user_search_results ul{width:198px}#edd-item-stats-wrapper{margin:0 auto;text-align:center}#edd-item-stats-wrapper ul{display:flex;margin:0}#edd-item-stats-wrapper li{font-size:14px;margin-bottom:0;width:50%}#edd-item-stats-wrapper a{text-decoration:none}#edd-item-stats-wrapper .dashicons{color:#888;margin-top:-2px}#edd-item-tables-wrapper table{width:100%}#edd-item-tables-wrapper .no-items{text-align:left}#edd-item-tables-wrapper .emails .add-customer-email-row{background-color:#f4f4f4;border-top:1px solid #e5e5e5}#edd-item-tables-wrapper .add-customer-email-wrapper{display:flex;flex-wrap:wrap;align-items:center;margin:12px 0}#edd-item-tables-wrapper .edd-form-group{margin-bottom:0}#edd-item-tables-wrapper .edd-make-email-primary{flex-grow:1;margin-left:12px}#edd-item-tables-wrapper .emails .spinner{float:none;margin:0 10px;-ms-grid-row-align:center;align-self:center}#edd-item-tables-wrapper .notice-error{background-color:#fff5f5}#edd-item-notes-wrapper{min-height:50px}.customer-note-input{margin-bottom:5px;width:100%}.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-sections-wrap .section-wrap .notice-container{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-sections-wrap .section-wrap .widefat td,.widefat th{max-width:100%!important;display:table-cell}}@media screen and (max-width:781px){#edd-item-tab-wrapper,.edd-sections-wrap .section-wrap{margin:0;width:100%}#edd-item-tab-wrapper-list .dashicons{font-size:18px}.edd-item-has-tabs .edd-sections-wrap .section-wrap{border-top:1px solid #e5e5e5;border-left:0;margin-top:-1px}}@media screen and (max-width:656px){.edd-item-info.customer-info{position:relative}.edd-sections-wrap .section-wrap .customer-address-wrapper{float:none;position:absolute;top:84px;left:165px;max-width:200px}.edd-sections-wrap .section-wrap .customer-main-wrapper{float:none;position:absolute;left:165px}.customer-info .customer-name{font-size:16px}.edd-sections-wrap .section-wrap #edd-item-stats-wrapper{padding-left:0;padding-right:0}.edd-sections-wrap .section-wrap .customer-section{margin-bottom:0}.edd-sections-wrap .section-wrap .widefat td.column-primary,.edd-sections-wrap .section-wrap .widefat td.no-items,.edd-sections-wrap .section-wrap .widefat th.column-primary{width:100px!important;display:table-cell;overflow:hidden;text-align:left}.edd-sections-wrap .section-wrap .customer-id{display:none}#edd-item-tables-wrapper .emails td.column-primary{padding-right:10px;width:100%!important}#edd-item-tables-wrapper .edd-form-group{margin:0 0 16px}}@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(2n){border-width:0 0 1px}.download_page_edd-reports .button{text-align:center}#edd-payment-date-filters span{display:block}#edd-payment-date-filters span>input{float:right}#edd-add-discount select[multiple] option,#edd-edit-discount select[multiple] option{height:20px}.download_page_edd-reports .inside .button,.download_page_edd-reports .inside input[type=submit],.download_page_edd-reports .inside input[type=text],.download_page_edd-reports .inside select,.download_page_edd-settings .inside input[type=button],.download_page_edd-tools .inside input[type=submit],.download_page_edd-tools .inside input[type=text],.download_page_edd-tools .inside select{width:100%}#edd-add-discount select[multiple],#edd-edit-discount select[multiple],.download_page_edd-tools select[multiple]{height:200px!important}.download_page_edd-settings input[type=checkbox]{margin:2px 0}.post-type-download input[type=checkbox]{margin-left:2px}}.inside .edd-tools-textarea{background:#32373c;color:rgba(240,245,250,.7);font-size:12px;font-family:Menlo,Monaco,monospace;display:block;overflow:auto;white-space:pre;width:100%;height:450px;padding:10px;outline:none}#system-info-textarea::selection{background:#555;color:#fff}#edd-system-info .edd-inline-button{margin-left:5px}.recount-stats-controls form{display:inline}.edd-recount-stats-descriptions span{display:none;line-height:24px}.edd-vertical-sections{overflow:visible;display:block;display:flex}#edd-item-tab-wrapper,.edd-vertical-sections .section-nav{position:relative;width:20%;line-height:1em;margin:0 -1px 0 0;padding:0;background-color:#f5f5f5;border-right:1px solid #e5e5e5;box-sizing:border-box;max-width:200px}#edd-item-tab-wrapper-list{margin:0}#edd-item-tab-wrapper li,.edd-vertical-sections .section-nav li{display:block;position:relative;margin:0;padding:0;background-color:#fcfcfc}.edd-vertical-sections .section-title:last-of-type{margin-bottom:24px}#edd-item-tab-wrapper li>.edd-item-tab-label-wrap,#edd-item-tab-wrapper li a,.edd-vertical-sections .section-nav li a{display:flex;margin:0;padding:9px;text-decoration:none;border-bottom:1px solid #e5e5e5;box-shadow:none;position:relative;align-items:center}#edd-item-tab-wrapper li a:focus,#edd-item-tab-wrapper li a:hover,.edd-vertical-sections .section-nav li a:focus,.edd-vertical-sections .section-nav li a:hover{box-shadow:inset 5px 0;outline:0;transition:all .25s}.edd-vertical-sections .section-nav .section-title--is-active a:after{content:"";width:1px;height:100%;background:#fff;position:absolute;right:0;top:0;bottom:0;z-index:3}#edd-item-tab-wrapper li>.edd-item-tab-label-wrap{background-color:#fff}.edd-vertical-sections .section-nav li a>.dashicons,.edd-vertical-sections .section-nav li a>span{display:inline-block}.edd-vertical-sections .section-nav li a>span{max-width:76%}.edd-vertical-sections .section-nav li a .dashicons{line-height:20px;margin-right:3px;color:#888}.edd-vertical-sections .section-nav .section-title--is-active a{font-weight:700;color:#555;background-color:#fff;border-right:none;margin-right:-1px}.edd-vertical-sections.use-js .section-content,.no-js .edd-vertical-sections.use-js.edd-item-header-small,.no-js .edd-vertical-sections.use-js .section-nav{display:none}.no-js .edd-vertical-sections.use-js .section-content{display:block}.admin-color-fresh .edd-vertical-sections .section-nav .section-title--is-active a,.admin-color-fresh .edd-vertical-sections .section-nav li a:focus,.admin-color-fresh .edd-vertical-sections .section-nav li a:hover{box-shadow:inset 5px 0 #0073aa}.admin-color-blue .edd-vertical-sections .section-nav .section-title--is-active a,.admin-color-blue .edd-vertical-sections .section-nav li a:focus,.admin-color-blue .edd-vertical-sections .section-nav li a:hover{box-shadow:inset 5px 0 #096484}.admin-color-coffee .edd-vertical-sections .section-nav .section-title--is-active a,.admin-color-coffee .edd-vertical-sections .section-nav li a:focus,.admin-color-coffee .edd-vertical-sections .section-nav li a:hover{box-shadow:inset 5px 0 #c7a589}.admin-color-ectoplasm .edd-vertical-sections .section-nav .section-title--is-active a,.admin-color-ectoplasm .edd-vertical-sections .section-nav li a:focus,.admin-color-ectoplasm .edd-vertical-sections .section-nav li a:hover{box-shadow:inset 5px 0 #a3b745}.admin-color-midnight .edd-vertical-sections .section-nav .section-title--is-active a,.admin-color-midnight .edd-vertical-sections .section-nav li a:focus,.admin-color-midnight .edd-vertical-sections .section-nav li a:hover{box-shadow:inset 5px 0 #e14d43}.admin-color-ocean .edd-vertical-sections .section-nav .section-title--is-active a,.admin-color-ocean .edd-vertical-sections .section-nav li a:focus,.admin-color-ocean .edd-vertical-sections .section-nav li a:hover{box-shadow:inset 5px 0 #627c83}.admin-color-sunrise .edd-vertical-sections .section-nav .section-title--is-active a,.admin-color-sunrise .edd-vertical-sections .section-nav li a:focus,.admin-color-sunrise .edd-vertical-sections .section-nav li a:hover{box-shadow:inset 5px 0 #be3631}.admin-color-light .edd-vertical-sections .section-nav .section-title--is-active a,.admin-color-light .edd-vertical-sections .section-nav li a:focus,.admin-color-light .edd-vertical-sections .section-nav li a:hover{box-shadow:inset 5px 0 #888}.admin-color-evergreen .edd-vertical-sections .section-nav .section-title--is-active a,.admin-color-evergreen .edd-vertical-sections .section-nav li a:focus,.admin-color-evergreen .edd-vertical-sections .section-nav li a:hover{box-shadow:inset 5px 0 #36533f}.admin-color-mint .edd-vertical-sections .section-nav .section-title--is-active a,.admin-color-mint .edd-vertical-sections .section-nav li a:focus,.admin-color-mint .edd-vertical-sections .section-nav li a:hover{box-shadow:inset 5px 0 #4f6d59}.edd-vertical-sections .section-nav .section-title--is-active .dashicons{color:#555}@media only screen and (max-width:782px){#edd-item-tab-wrapper,.edd-vertical-sections .section-nav{width:48px}.edd-vertical-sections .section-nav li a{justify-content:center}.edd-vertical-sections .section-nav li a .dashicons{width:24px;height:24px;font-size:24px;line-height:24px;margin:0}.section-nav li .dashicons:before{width:24px;height:24px}#edd-item-tab-wrapper .edd-item-tab-label,.section-nav li .label{overflow:hidden;position:absolute;top:-1000em;left:-1000em;width:1px;height:1px}}#edd-item-card-wrapper,.edd-vertical-sections .section-wrap{width:80%}#edd-item-card-wrapper .item-section{background:#fff;overflow:hidden;box-sizing:border-box}:not(#edd-item-tab-wrapper)+#edd-item-card-wrapper .item-section{margin:25px 0;padding:20px;border:1px solid #e5e5e5;box-shadow:0 1px 1px rgba(0,0,0,.04)}#edd-item-tab-wrapper+#edd-item-card-wrapper{padding:20px;border-left:1px solid #e5e5e5;box-sizing:border-box}@media only screen and (min-width:1200px){#edd-graphs-filter,#edd-item-card-wrapper,.edd-vertical-sections:not(.meta-box) .section-wrap{width:calc(100% - 200px)}}@media only screen and (max-width:782px){#edd-graphs-filter,#edd-item-card-wrapper,.edd-vertical-sections .section-wrap{width:calc(100% - 48px)}}#edd-debug-log .edd-inline-button{margin-left:5px}.edd-settings-sidebar{padding-top:27px}.edd-settings-sidebar-content{background-color:#fff;text-align:center;border:1px solid #ddd;box-sizing:border-box;max-width:300px}.edd-settings-sidebar-content p{font-size:14px;line-height:1.5;margin-top:0}.edd-sidebar-header-section{background-color:#35495c;line-height:1;padding:26px 20px 24px;border-bottom:3px dashed #fafafa}.edd-sidebar-description-section{background-color:#fafafa;padding:16px 20px;border-bottom:1px solid #ddd}.edd-sidebar-description-section .edd-sidebar-description{margin:0}.edd-sidebar-coupon-section{font-size:14px;padding:16px 20px}.edd-sidebar-coupon-section label{display:block;line-height:1.4;margin-bottom:6px}.edd-sidebar-coupon-section label strong{color:#253b51;font-weight:700}.edd-sidebar-coupon-section input{background:#f4f7fa;font-size:22px;font-weight:600;text-align:center;padding:10px;border:2px dashed #2794da;border-radius:4px;margin-bottom:16px;box-shadow:none;width:100%}.edd-sidebar-coupon-section input:focus{border:2px dashed #2794da;box-shadow:none}.edd-settings-sidebar-content .edd-coupon-note{color:#6c7883;font-size:13px;font-style:italic;margin:0}.edd-settings-sidebar-content .edd-coupon-note a{color:#253b51}.edd-settings-sidebar-content .edd-coupon-note a:hover{text-decoration:none}.edd-sidebar-footer-section{background-color:#fafafa;padding:16px 20px;border-top:1px solid #ddd}.edd-sidebar-footer-section .edd-cta-button{display:block;background-color:#2794da;color:#fff;text-decoration:none;font-size:20px;font-weight:700;text-transform:uppercase;padding:17px 10px;border:none;border-radius:4px;width:100%;box-sizing:border-box;box-shadow:none;transition:background-color .2s}.edd-sidebar-footer-section .edd-cta-button:hover{background-color:#2386c5}@media (min-width:1080px){.edd-has-sidebar .edd-settings-content{float:left;width:67%}.edd-has-sidebar .edd-settings-sidebar{float:right;width:31%}}@media (min-width:1240px){.edd-has-sidebar .edd-settings-content{width:74%}.edd-has-sidebar .edd-settings-sidebar{width:23%}}.taxes-tab .edd-has-sidebar .edd-settings-content,.taxes-tab .edd-has-sidebar .edd-settings-sidebar{float:none;width:100%}.bfcm-promo-img-container{background-color:#35495c;width:100%;height:160px}.bfcm-code{color:#2794da;font-weight:700}.sale-ends{position:absolute;bottom:9px;right:14px;display:inline-block;color:#6c7883;font-size:12px;text-align:right;font-style:italic;width:150px} \ No newline at end of file +.edd-custom-price-option-sections-wrap{display:none;border:1px solid #c3c4c7;border-top:0 solid #c3c4c7;box-sizing:border-box;width:100%}.edd-custom-price-option-section{display:block;padding:10px 8px;border-bottom:1px solid hsla(0,0%,87.1%,.3)}.edd-custom-price-option-section-title{display:block;font-weight:600;padding:0 0 10px}.edd-custom-price-option-section-content{display:flex;gap:12px;margin-bottom:6px}.edd-custom-price-option-section:last-child{border-bottom:none}.toggle-custom-price-option-section{color:#787c82}.toggle-custom-price-option-section:hover{color:#537994}#edd_product_settings .edd-product-options__title,#edd_product_settings .inside strong{border-top:1px solid #c3c4c7;border-bottom:1px solid #c3c4c7;background-color:#f9f9f9;display:flex;font-weight:600;margin:0 -12px 16px;padding:8px 12px;justify-content:space-between;align-items:center}#edd_product_settings .edd-product-options-wrapper:first-of-type .edd-product-options__title,#edd_product_settings .inside div:first-child strong{margin-top:-8px}#edd_product_settings .edd-product-options__title .edd-help-tip,#edd_product_settings .inside strong .edd-help-tip{font-size:20px}#edd_product_settings .label--block{display:block;margin:0 0 4px}.edd_repeatable_row.ui-sortable-placeholder{line-height:0;padding:0;margin:0;box-sizing:border-box;border:1px dashed #c3c4c7;visibility:visible!important}.edd-add-repeatable-row{border-top:1px solid #c3c4c7;padding:12px;margin:15px -12px -12px;display:flex;justify-content:flex-end;align-items:center}.edd_repeatable_row input[type=text].large-text{width:100%}.edd_repeatable_upload_wrapper:not(:first-child),.edd_variable_prices_wrapper:not(:first-child){margin-top:12px}.edd_repeatable_row.ui-sortable-helper .edd-repeatable-row-actions .edd-remove-row{display:none}.edd-repeatable-row-actions{color:#787c82}.edd-repeatable-row-actions a{text-decoration:none;width:auto;cursor:pointer}.edd-bundle-products-header,.edd-repeatable-row-header{clear:both;background:#f6f7f7;border:1px solid #c3c4c7;display:flex;justify-content:space-between}.edd-repeatable-row-header{cursor:move}.edd_repeatable_row:hover .edd-repeatable-row-header,.edd_repeatable_row:hover .edd-repeatable-row-standard-fields{border-color:#c3c4c7}.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-bundle-products-header,.edd-repeatable-row-title{font-weight:600}.edd-bundle-products-header,.edd-repeatable-row-actions,.edd-repeatable-row-title{padding:8px;box-sizing:border-box}.edd-repeatable-row-actions{flex-grow:1;text-align:right}.edd-bundled-product-row .edd-remove-row,.edd-repeatable-row-actions .edd-remove-row{width:auto;cursor:pointer}.edd-bundled-product-row,.edd-repeatable-row-standard-fields{padding:8px;border:1px solid #c3c4c7;border-top:0 solid #c3c4c7;display:flex;justify-content:space-between;align-items:center;gap:18px}.edd-bundled-product-row .edd-form-group,.edd-repeatable-row-standard-fields .edd-form-group{margin-bottom:0;display:inline-flex;flex-direction:column;flex-grow:1;justify-content:space-between}.edd-repeatable-row-setting-label .edd-help-tip{display:inline-block;margin-left:4px}.edd-bundled-product-item-reorder{min-width:30px}.edd-bundled-product-item-reorder .edd-product-file-reorder{font-size:20px;cursor:move;color:#dcdcde;font-family:dashicons;content:"";transition:color .2s}.edd-bundled-product-item-reorder .edd-product-file-reorder:hover{color:#a7aaad}.edd-bundled-product-actions{-ms-grid-row-align:center;align-self:center}#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}@media screen and (max-width:480px){.edd-bundle-products-header,.edd-bundled-product-row,.edd-repeatable-row-header,.edd-repeatable-row-standard-fields{flex-wrap:wrap}.edd-bundled-product-row .edd-form-group,.edd-repeatable-row-standard-fields .edd-form-group{margin-left:0!important;margin-bottom:24px}}.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_repeatable_upload_wrapper .edd_repeatable_upload_field_container{position:relative;width:100%}.edd_repeatable_upload_wrapper .edd_repeatable_upload_field_container+span:first-child{width:100%}.edd_repeatable_upload_field{padding-right:32px}.edd_upload_file button{background:#f6f7f7;border:none;border-left:1px solid #c3c4c7;padding:0 4px;position:absolute;height:calc(100% - 4px);overflow:hidden;top:2px;right:2px;display:inline-flex;justify-content:center;align-items:center}.edd-form-group{margin-bottom:16px}.edd-form-group:last-of-type{margin-bottom:0}.edd-form-group>label,.edd-form-group__label{display:block;font-weight:600;margin-bottom:8px;padding:0}.edd-form-group__control{margin-bottom:12px;max-width:100%}.edd-form-group__control.is-check,.edd-form-group__control.is-radio{margin-top:4px}.edd-form-group__control:last-of-type{margin-bottom:0}.edd-form-group__control--is-inline{display:inline-flex;align-items:flex-end}.edd-form-group__input{max-width:100%}.edd-form-group__input[type=checkbox],.edd-form-group__input[type=radio]{margin-top:0}.edd-form-group__input[type=checkbox]+label,.edd-form-group__input[type=radio]+label{display:unset}select.edd-form-group__input{max-width:100%}.edd-form-group__help{color:#646970;font-size:13px;font-style:italic;line-height:normal;margin:8px 0 0}.edd-form-row{display:flex;flex-wrap:wrap;gap:12px}.edd-form-row__column{display:inline-flex;flex-direction:column;justify-content:flex-end}.edd-form-row__column.edd-form-group{margin-bottom:0}.edd-form-row label,.edd-form-row label.edd-form-group__label{margin-bottom:8px}#edd-migration-progress .dashicons-minus{color:#949494}#edd-migration-progress .dashicons-yes{color:green}#edd-migration-progress .dashicons-update:before{animation:rotation 2s linear infinite;display:block}#edd-v3-migration-remove-legacy-data-submit-wrap{display:flex;align-items:center;gap:6px}#edd-v3-migration-remove-legacy-data-submit-wrap .button{margin:0}#edd-filters{padding:10px;margin:0;display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px}#edd-filters .filter-items{flex-wrap:wrap;gap:6px;float:none;flex-grow:1}#edd-filters .filter-items,#edd-filters .filter-items .graph-option-section{display:flex;align-items:center}#edd-filters .filter-items .edd-date-range-picker[data-range=other] .edd-graphs-date-options{border-top-right-radius:4px;border-bottom-right-radius:4px}#edd-filters .filter-items .edd-date-range-picker[data-range=other] .edd-date-range-dates,#edd-filters .filter-items .edd-date-range-picker[data-range=other] .edd-date-range-relative-dates{display:none}#edd-filters .filter-items .edd-date-range-options{display:inline-block;margin:10px 0}#edd-filters .filter-items .edd-graphs-date-options{border-top-right-radius:0;border-bottom-right-radius:0}#edd-filters .filter-items .edd-date-range-dates{display:flex;align-items:center;border:1px solid #8c8f94;border-left:none;color:#2c3338;padding:4px 10px;margin-left:-5px;border-top-right-radius:4px;border-bottom-right-radius:4px;cursor:pointer;gap:4px}#edd-filters .filter-items .edd-date-range-dates.hidden{display:none}#edd-filters .filter-items .edd-date-range-selected-date{display:inline-block}#edd-filters .filter-items .edd-date-range-relative-dates{display:flex;align-items:center;margin-left:10px}#edd-filters .filter-items .edd-date-range-relative-dates.hidden{display:none}#edd-filters .filter-items .edd-date-range-selected-relative-date{position:relative;display:flex;align-items:center;border:1px solid #8c8f94;padding:4px 2px 4px 6px;color:#2c3338;margin-left:10px;margin-right:10px;border-radius:4px;cursor:pointer}#edd-filters .filter-items .edd-date-range-selected-relative-date .arrow-down{width:16px;height:auto;margin-left:6px;margin-top:2px;vertical-align:middle}#edd-filters .filter-items .edd-date-range-selected-relative-date.opened .edd-date-range-relative-dropdown{display:block}#edd-filters .filter-items .edd-date-range-relative-dropdown{position:absolute;z-index:99;width:420px;left:50%;top:100%;margin-top:10px;transform:translateX(-50%);background-color:#fff;border:1px solid #8c8f94;border-radius:4px;box-shadow:0 2px 5px 0 rgba(0,0,0,.25);display:none}#edd-filters .filter-items .edd-date-range-relative-dropdown:after{height:10px;width:10px;position:absolute;content:"";background:#fff;border-color:#8c8f94;border-style:solid;border-width:0 1px 1px 0;transform:rotate(-135deg);top:-6px;left:calc(50% - 4px)}#edd-filters .filter-items .edd-date-range-relative-dropdown .spinner{display:none}#edd-filters .filter-items .edd-date-range-relative-dropdown.loading{padding:10px;text-align:center}#edd-filters .filter-items .edd-date-range-relative-dropdown.loading .spinner{display:inline-block;visibility:visible;margin:0;float:unset}#edd-filters .filter-items .edd-date-range-relative-dropdown.loading :not(.spinner){display:none}#edd-filters .filter-items .edd-date-range-relative-dropdown ul li{display:flex;align-items:center;padding:2px 10px;opacity:.85;gap:20px}#edd-filters .filter-items .edd-date-range-relative-dropdown ul li.active,#edd-filters .filter-items .edd-date-range-relative-dropdown ul li:hover{cursor:pointer;color:var(--wp-admin-theme-color);opacity:1}#edd-filters .filter-items .edd-date-range-relative-dropdown ul li .date-range-name{width:110px}@media screen and (max-width:950px){#edd-filters .filter-items .graph-option-section{margin-top:8px;width:100%}#edd-filters .filter-items .edd-date-range-picker{flex-wrap:wrap}#edd-filters .filter-items .edd-graphs-date-options{width:100%;max-width:100%;min-height:40px;font-size:14px;border-top-right-radius:4px;border-bottom-right-radius:4px}#edd-filters .filter-items .edd-date-range-dates{width:100%;margin-top:10px;border:1px solid #8c8f94;margin-left:unset;border-radius:4px;font-size:14px;padding:8px 6px 8px 8px}#edd-filters .filter-items .edd-date-range-relative-dates{width:100%;flex-wrap:wrap;margin-left:0;margin-top:6px}#edd-filters .filter-items .edd-date-range-selected-relative-date{width:100%;margin-top:8px;margin-left:0;margin-right:0;font-size:14px;padding:8px 6px 8px 8px;flex-wrap:wrap}#edd-filters .filter-items .edd-date-range-selected-relative-date .arrow-down{margin-left:auto}#edd-filters .filter-items .edd-date-range-relative-dropdown{position:relative;width:100%;left:0;top:0;transform:unset;box-shadow:unset;border:unset;margin:0}#edd-filters .filter-items .edd-date-range-relative-dropdown:after{display:none}#edd-filters .filter-items .edd-date-range-relative-dropdown ul{margin-bottom:0}#edd-filters .filter-items .edd-date-range-relative-dropdown ul li{padding-left:0;padding-right:0;justify-content:space-between;flex-wrap:wrap;gap:unset}#edd-filters .filter-items .edd-date-range-relative-dropdown ul li .date-range-dates,#edd-filters .filter-items .edd-date-range-relative-dropdown ul li .date-range-name{width:100%}}#edd-filters>p{color:#757575}#edd-filters input[type=number],#edd-filters input[type=text].edd_datepicker{max-width:105px}#edd-filters .button-secondary,#edd-filters input[type=number]{margin-bottom:0}#edd-filters .search-form{margin:0}@media screen and (max-width:480px){#edd-filters span{margin:2px 0}}#edd-advanced-filters{position:relative}#edd-advanced-filters .inside{z-index:99;position:absolute;top:29px;right:0;border:1px solid #e0e0e0;padding:0;background:#fff;box-shadow:0 3px 5px rgba(0,0,0,.2);min-width:285px;opacity:0;visibility:hidden}#edd-advanced-filters fieldset{display:block;padding:10px 15px 15px;margin:10px 0}#edd-advanced-filters fieldset:not(:last-of-type){border-bottom:1px solid #e0e0e0}#edd-advanced-filters fieldset:last-of-type{padding-bottom:5px}#edd-advanced-filters fieldset.edd-add-on-filters div,#edd-advanced-filters fieldset.edd-add-on-filters label,#edd-advanced-filters fieldset.edd-add-on-filters p,#edd-advanced-filters fieldset.edd-add-on-filters span{display:block;margin-bottom:2px}#edd-advanced-filters div.edd-select-chosen:not(:last-child){margin-bottom:10px}#edd-advanced-filters.open .edd-advanced-filters-button{background:#e0e0e0;border-color:#949494;box-shadow:inset 0 2px 5px -3px rgba(0,0,0,.5);transform:translateY(1px)}#edd-advanced-filters.open .inside{visibility:visible;opacity:1;transition:opacity .2s ease-in}.download_page_edd-reports #edd-filters{margin-bottom:-1px;box-shadow:none}@media screen and (max-width:782px){.download_page_edd-reports #edd-filters{gap:0}}.edd-old-log-filters{margin-top:-30px;margin-left:2px}@media screen and (min-width:600px){#edd-reports-charts-wrap{display:-ms-grid;display:grid;-ms-grid-columns:(minmax(200px,50%))[2];grid-template-columns:repeat(2,minmax(200px,50%));grid-gap:20px}.edd-reports-chart{margin-bottom:0}.edd-reports-chart-bar,.edd-reports-chart-line{-ms-grid-column:1;-ms-grid-column-span:2;grid-column:1/span 2}}.edd-reports-chart{height:500px;max-height:700px}.chart-timezone{font-size:.75rem;color:#ccc}.edd-mobile-link{line-height:32px}.edd-mobile-link a{text-decoration:none}.edd-mobile-link a:after,.edd-mobile-link a:before{display:inline-block;-webkit-font-smoothing:antialiased;font:normal 20px/30px dashicons;vertical-align:top;margin:1px 0 0;padding:0}.edd-mobile-link a:before{content:"";color:#757575;margin-right:-3px}.edd-mobile-link a:after{content:""}#edd-reports-tiles-wrap #dashboard-widgets .sortable-placeholder{padding:0;margin:0 0 20px;line-height:0;box-sizing:border-box;height:110px}#edd-reports-tiles-wrap #dashboard-widgets #primary-sortables{margin-left:0}#edd-reports-tiles-wrap #dashboard-widgets #tertiary-sortables{margin-right:0}#edd-reports-tiles-wrap{display:-ms-grid;display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));grid-gap:20px}.edd-reports-tile{text-align:center;padding:20px 10px 35px;display:flex;flex-direction:column;justify-content:center;border:1px solid #e5e5e5;background:#fafafa;position:relative;box-sizing:border-box;gap:.5em}.edd-reports-tile>span:not(.tile-compare){width:100%}.edd-reports-tile .tile-label{text-align:center;text-transform:uppercase;font-size:12px;font-weight:400;color:#101517}.edd-reports-tile .tile-value{color:#333;font-size:2em;line-height:1;transition:all .2s ease-in-out;display:flex;justify-content:center;flex-direction:column;gap:.25em}.edd-reports-tile:hover{border:1px solid #aaa}.edd-reports-tile:hover .tile-value:not(.tile-no-data){transform:scale(1.05)}.edd-reports-tile .tile-amount{color:#2794da}.edd-reports-tile .tile-number{color:#96f}.edd-reports-tile .tile-amount,.edd-reports-tile .tile-number{color:#fff}.edd-reports-tile .tile-value.tile-no-data{color:#ddd}.edd-reports-tile .tile-value.tile-url{font-size:1.5em}.edd-reports-tile .tile-relative{font-size:12px;font-weight:400;color:#888}.edd-reports-tile span.dashicons{display:inline-block;font-size:30px;line-height:20px;height:20px;width:20px;position:relative;top:4px;left:-5px;margin-left:-5px;color:#999}.edd-reports-tile .tile-relative span.dashicons{top:-5px;left:-3px;margin-left:0}.edd-reports-tile .tile-relative span.dashicons-arrow-down,.edd-reports-tile .tile-relative span.dashicons-arrow-up.reverse{color:#d63638}.edd-reports-tile .tile-relative span.dashicons-arrow-down.reverse,.edd-reports-tile .tile-relative span.dashicons-arrow-up{color:#008a20}.edd-reports-tile .tile-compare{position:absolute;right:0;bottom:0;color:#aaa;font-size:11px;line-height:1em;background-color:#fff;border-color:#e5e5e5 #fff #fff #e5e5e5;border-style:solid;border-width:1px;border-top-left-radius:8px;padding:4px 0 0 9px;margin:0 -1px -1px 0}.edd-reports-tile:hover .tile-compare{border-left:1px solid #bbb;border-top:1px solid #bbb;color:#777}#edd-submit-refund-status{text-align:center;font-size:1.2em}#edd-submit-refund-status .edd-submit-refund-message:before{font-family:dashicons;font-size:1.5em;vertical-align:middle;color:#fff;border-radius:16px;margin:5px}#edd-submit-refund-status .edd-submit-refund-message.success:before{content:"";background-color:#008a20;padding-right:1px}#edd-submit-refund-status .edd-submit-refund-message.fail{display:block;margin-bottom:16px}#edd-submit-refund-status .edd-submit-refund-message.fail:before{content:"";background-color:#d63638}.refund-items td,.refund-items th.check-column{vertical-align:baseline}.refund-items .column-amount,.refund-items .column-discount,.refund-items .column-quantity,.refund-items .column-subtotal,.refund-items .column-tax,.refund-items .column-total{width:80px}.refund-items .edd-form-group__control{display:flex;align-items:center}.refund-items .edd-form-group__control input,.refund-items .edd-form-group__control select{background-color:transparent;border:0;border-bottom:1px solid;border-radius:0;box-shadow:none;text-align:right;width:100%}.refund-items .edd-form-group__control input:disabled,.refund-items .edd-form-group__control select:disabled{border-bottom:none}.refund-items .edd-form-group__control input:focus,.refund-items .edd-form-group__control select:focus{border-bottom:1px solid var(--wp-admin-theme-color-darker-10);box-shadow:0 1px 0 var(--wp-admin-theme-color-darker-10)}.refund-items .edd-form-group__control select[data-original="1"]{background:transparent}.refund-items .edd-form-group__control .is-before+span>input,.refund-items .edd-form-group__control select{text-align:left}.refund-items .edd-refund-submit-line-total{background-color:#fff!important}.refund-items .edd-refund-submit-line-total td{text-align:right}.refund-items .edd-refund-submit-line-total-amount{display:inline-block;margin-left:20px;text-align:left;width:80px}.refund-items #edd-refund-submit-subtotal td{border-top:2px solid #c3c4c7}@media screen and (max-width:782px){.refund-items td.column-total{margin-bottom:16px}.refund-items .edd-refund-submit-line-total-amount{padding-right:16px;width:unset}}.edd-submit-refund-actions{margin:16px 0 0}.did-refund .edd-submit-refund-actions,.did-refund .refund-items{display:none}.edd-admin-notice-top-of-page{font-size:15px;line-height:1.4;color:#fff;margin-left:-20px;padding:12px 32px 12px 20px;background:#2d6ca2}.edd-admin-notice-top-of-page.edd-pro-inactive{background:#d63638}@media screen and (min-width:783px){.edd-admin-notice-top-of-page{padding:10px 46px 10px 22px}}@media screen and (min-width:961px){.edd-admin-notice-top-of-page{text-align:center}}.edd-admin-notice-top-of-page a{color:#fff}.edd-admin-notice-top-of-page a:hover{text-decoration:none}.edd-admin-notice-top-of-page .button-link{position:absolute;top:48px;right:-1px;font-size:20px;color:#fff;font-weight:700;text-decoration:none;margin-left:5px;padding:6px 10px}.edd-admin-notice-top-of-page .button-link:active,.edd-admin-notice-top-of-page .button-link:focus,.edd-admin-notice-top-of-page .button-link:hover{color:#fff;text-decoration:none}@media screen and (min-width:601px){.edd-admin-notice-top-of-page .button-link{top:1px}}@media screen and (min-width:783px){.edd-admin-notice-top-of-page .button-link{right:9px}}#edd-admin-notice-five-star-review{display:-ms-grid;display:grid}#edd_dashboard_sales .edd-promo-notice{border-bottom:1px solid #c3c4c7}.edd-review-actions{display:flex;gap:6px;margin:0 0 16px}.edd-promo-notice .edd-peeking{align-self:flex-end;justify-self:flex-end;margin-right:16px;margin-bottom:-1px}@media screen and (max-width:782px){#edd-admin-notice-five-star-review.notice .edd-peeking{margin-bottom:-6px}}@media screen and (min-width:480px){.edd-promo-notice.notice-info .edd-peeking{justify-self:flex-start;margin-right:0;margin-left:250px}}.edd-promo-notice .edd-peeking,.edd-review-step{-ms-grid-row:1;grid-area:1/-1}.edd-promo-notice__overlay{display:none;position:fixed;background:rgba(16,21,23,.75);top:0;right:0;bottom:0;left:160px;z-index:11;justify-content:center;align-items:center}.folded .edd-promo-notice__overlay{left:36px}@media screen and (max-width:782px){.edd-promo-notice__overlay{left:0}}.edd-admin-notice-overlay{display:none;background-color:#fff;padding:2.5em;text-align:center;max-width:650px;position:relative;flex-direction:column}.edd-promo-notice__overlay .edd-admin-notice-overlay{display:flex}.edd-admin-notice-overlay h2{line-height:1.6em;margin:0 auto;max-width:540px}.edd-admin-notice-overlay .edd-promo-notice__features{text-align:left;display:-ms-grid;display:grid;-ms-grid-columns:(auto)[3];grid-template-columns:repeat(3,auto);margin:2em auto;gap:0 1.5em}.edd-admin-notice-overlay .edd-promo-notice__features li{display:flex;gap:.5em;align-items:center}@media screen and (max-width:600px){.edd-admin-notice-overlay .edd-promo-notice__features{-ms-grid-columns:unset;grid-template-columns:unset}}.edd-admin-notice-overlay .button-primary{padding:4px 36px;margin:0 auto .5em;max-width:360px}.edd-admin-notice-overlay__link{color:#101517}.edd-admin-notice-overlay .edd-promo-notice-dismiss.button-link{position:absolute;color:#537994;text-decoration:none;font-size:2em;top:0;right:.5em}.edd-admin-notice-overlay .edd-promo-notice-dismiss.button-link:active,.edd-admin-notice-overlay .edd-promo-notice-dismiss.button-link:hover{color:#101517}@media screen and (max-width:782px){.edd-admin-notice-overlay{margin:1em}}.edd-paypal-account-status ul{margin-left:25px}.edd-paypal-account-status>li{margin-bottom:1em}.edd-paypal-account-status ul:not(.edd-paypal-webhook-events){list-style:disc;list-style-position:inside}.edd-paypal-account-status ul:not(.edd-paypal-webhook-events) li{margin:.25em 0}.edd-paypal-account-status .dashicons-yes{color:#008a20}.edd-paypal-account-status .dashicons-no{color:#d63638}.edd-overlay{position:fixed;z-index:1052;top:0;right:0;bottom:0;left:160px;background-color:#141b38;opacity:.5;transition:.5s}.edd-slide-in{transform:translateX(100%)!important;-webkit-transform:translateX(100%)!important}#edd-notifications-panel{background-color:#fff;height:100%;width:100%;max-width:570px;position:fixed;z-index:1053;top:0;right:0;bottom:0;overflow-x:hidden;transition:.5s;transform:translateX(0);-webkit-transform:translateX(0)}body.admin-bar #edd-notifications-panel{top:32px}@media screen and (max-width:600px){body.admin-bar #edd-notifications-panel{top:46px}}#edd-notifications-header{display:flex;align-items:center;padding:0 30px;color:#fff;background-color:#0c5d95}#edd-notifications-header h3{color:#fff;flex:1}#edd-notifications-header .edd-close{background:none;border:none;color:#fff;cursor:pointer}#edd-notifications-body{padding:30px}.edd-notification{display:flex;gap:20px;margin-bottom:20px}.edd-notification--icon{color:#00aa63}.edd-notification--icon.edd-notification--icon-info{color:#005ae0}.edd-notification--icon.edd-notification--icon-warning{color:#f18200}.edd-notification--icon.edd-notification--icon-error{color:#df2a4a}.edd-notification--body{flex:1}.edd-notification--header{align-items:center;display:flex;justify-content:space-between;gap:5px;margin-bottom:7px}.edd-notification--title{color:#141b38;flex:1;font-size:16px;font-weight:600;margin:0}.edd-notification--date{color:#71747e;font-size:12px}.edd-notification--actions{flex-wrap:wrap;display:flex;align-items:center;gap:5px;margin-top:10px}.edd-notification--dismiss{background:none!important;border:none!important;box-shadow:none!important;color:#71747e!important;cursor:pointer;padding:0 10px;text-decoration:underline}.edd-notification--dismiss:hover{text-decoration:none}.edd-dialog{display:none}.edd-item-header-small{padding-bottom:20px;border-bottom:1px solid #e5e5e5;display:flex;justify-content:flex-start;align-items:center;gap:6px}.edd-item-header-small span{font-weight:600;font-size:15px}.wrap-licenses .edd-licenses__description{margin:2em 1em}.wrap-licenses .form-table,.wrap-licenses caption,.wrap-licenses tfoot,.wrap-licenses th,.wrap-licenses thead,.wrap-licenses tr{display:block}@media screen and (min-width:600px){.wrap-licenses .form-table,.wrap-licenses caption,.wrap-licenses tfoot,.wrap-licenses th,.wrap-licenses thead,.wrap-licenses tr{display:unset}}.wrap-licenses tbody{display:-ms-grid;display:grid;gap:1em}.wrap-licenses .form-table tr{margin:0;background:#fff;border:1px solid #dcdcde;border-radius:3px;padding:0;box-sizing:border-box;display:flex;flex-direction:column;justify-content:space-between}@media screen and (min-width:600px){.wrap-licenses .form-table tr{display:-ms-grid;display:grid;-ms-grid-columns:200px 1fr;grid-template-columns:200px 1fr}}.wrap-licenses .form-table th{background:#f9f9f9;margin-bottom:2.5em;padding:1em;border-bottom:1px solid #dcdcde;width:unset}@media screen and (min-width:600px){.wrap-licenses .form-table th{border-bottom:none;margin-bottom:0;display:flex;align-items:center}}.wrap-licenses .form-table td{margin:0;padding:0;display:flex;flex-direction:column;gap:2.5em;flex-grow:1}@media screen and (min-width:600px){.wrap-licenses .form-table td{flex-direction:row;gap:unset}}.wrap-licenses .form-table td input.regular-text{margin:0;width:100%;max-width:250px}.wrap-licenses .form-table td button{margin:0}.wrap-licenses .form-table .edd-license__control{flex-grow:1;padding:0 1em;display:flex;gap:4px;align-items:center;justify-content:center}@media screen and (min-width:600px){.wrap-licenses .form-table .edd-license__control{justify-content:flex-end}}.wrap-licenses .form-table .edd-licensing__actions{display:flex;gap:4px}.wrap-licenses .edd-license-data[class*=edd-license-]{background:#f9f9f9;padding:1em;border-top:1px solid #dcdcde;margin:0;width:100%;box-sizing:border-box;display:flex;align-items:flex-end}.wrap-licenses .edd-license-data[class*=edd-license-] a{color:#444}.wrap-licenses .edd-license-data[class*=edd-license-] a:hover{text-decoration:none}@media screen and (min-width:600px){.wrap-licenses .edd-license-data[class*=edd-license-]{border-top:none;width:unset;flex-basis:100%;align-items:center}.wrap-licenses .edd-license-data[class*=edd-license-]:not(:only-child){flex:0 1 300px}}.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 .edd-license-data.edd-license-expired a:hover,.wrap-licenses .edd-license-data.license-expires-soon-notice a:hover{text-decoration:none}.edd-settings-content{max-width:1440px}.edd-settings-color,.edd-settings-colors{display:flex;flex-wrap:wrap;gap:1em}.edd-settings-color{flex-direction:column}.edd-upload-button-wrapper{width:100%;display:flex;gap:5px}.edd-upload-button-wrapper button.edd_settings_upload_button{margin-bottom:0}#edd-payment-gateways a.button.edd-settings__button-settings{position:absolute;right:2em;min-height:unset;height:1.5em;width:1.5em;border:none;background-color:#f9f9f9}#edd-payment-gateways a.button.edd-settings__button-settings,#edd-payment-gateways a.button.edd-settings__button-settings:active,#edd-payment-gateways a.button.edd-settings__button-settings:hover{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNS4yOSA2LjI5M2wtMS41MTUuODc1YTUuODczIDUuODczIDAgMDEwIDEuNjY0bDEuNTE1Ljg3NS0yLjE2NiAzLjc1My0xLjUxNi0uODc1YTUuODI3IDUuODI3IDAgMDEtMS40NDEuODMzdjEuNzQ5SDUuODM0di0xLjc1YTUuODI1IDUuODI1IDAgMDEtMS40NDEtLjgzMmwtMS41MTYuODc1TC43MSA5LjcwN2wxLjUxNi0uODc1YTUuODc4IDUuODc4IDAgMDEwLTEuNjY0TC43MSA2LjI5MyAyLjg3NyAyLjU0bDEuNTE2Ljg3NmE1LjgyNyA1LjgyNyAwIDAxMS40NC0uODMzVi44MzNoNC4zMzR2MS43NWE1LjgzIDUuODMgMCAwMTEuNDQuODMzbDEuNTE3LS44NzYgMi4xNjYgMy43NTN6TTggMTAuMzMzYTIuMzMzIDIuMzMzIDAgMTAwLTQuNjY2IDIuMzMzIDIuMzMzIDAgMDAwIDQuNjY2eiIgZmlsbD0iIzZCNzI4MCIvPjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTUuMjkgNi4yOTNsLTEuNTE1Ljg3NWE1Ljg3MyA1Ljg3MyAwIDAxMCAxLjY2NGwxLjUxNS44NzUtMi4xNjYgMy43NTMtMS41MTYtLjg3NWE1LjgyNyA1LjgyNyAwIDAxLTEuNDQxLjgzM3YxLjc0OUg1LjgzNHYtMS43NWE1LjgyNSA1LjgyNSAwIDAxLTEuNDQxLS44MzJsLTEuNTE2Ljg3NUwuNzEgOS43MDdsMS41MTYtLjg3NWE1Ljg3OCA1Ljg3OCAwIDAxMC0xLjY2NEwuNzEgNi4yOTMgMi44NzcgMi41NGwxLjUxNi44NzZhNS44MjcgNS44MjcgMCAwMTEuNDQtLjgzM1YuODMzaDQuMzM0djEuNzVhNS44MyA1LjgzIDAgMDExLjQ0LjgzM2wxLjUxNy0uODc2IDIuMTY2IDMuNzUzek04IDEwLjMzM2EyLjMzMyAyLjMzMyAwIDEwMC00LjY2NiAyLjMzMyAyLjMzMyAwIDAwMCA0LjY2NnoiIGZpbGw9IiNmZmYiIGZpbGwtb3BhY2l0eT0iLjUiLz48L3N2Zz4=);background-size:1em;background-repeat:no-repeat;background-position:50%}.edd-plugin__active #edd-payment-gateways a.button.edd-settings__button-settings{display:block}.edd-hidden{display:none}.edd-clearfix:after{content:"";display:table;clear:both}.edd-notice .notice-dismiss,.edd-wrap a{text-decoration:none}.wp-core-ui .edd-delete,a.edd-delete{color:#a00}.wp-core-ui .edd-delete:hover,a.edd-delete:hover{color:red}body.post-type-download #contextual-help-link-wrap,body.post-type-download #screen-options-link-wrap{top:5px!important}body.post-type-download #screen-meta{margin:0 0 -1px -20px}#edd-header{border-top:5px solid #0c5d95;border-bottom:1px solid #c3c4c7;padding:20px 0;margin-left:-20px;background:#fff}#edd-header-wrapper{display:flex;justify-content:space-between;padding:0 20px;align-items:center}#edd-header img{display:block;max-width:300px;margin:0}.edd-header-page-title-wrap{font-size:1.75em;margin-top:-5px;margin-right:auto;padding-left:7px}.edd-header-separator{margin-top:-2px;opacity:.25}.edd-header-page-title{font-weight:400;font-size:1em;line-height:1.3em;display:inline}.edd-header-page-title-wrap .button{margin-left:5px}.no-js #edd-header-actions{display:none}#edd-header .edd-round{position:relative;background-color:#f3f4f5;border-radius:50%;width:40px;height:40px;display:flex;align-items:center;justify-content:center;margin-left:10px;cursor:pointer;transition:background-color .2s ease}button.edd-round{border:none}#edd-header button.edd-round:hover{background-color:#e5e5e5}button.edd-round:active,button.edd-round:focus{outline:2px solid #0c5d95}#edd-header .edd-number{position:absolute;background-color:#df2a4a;width:16px;height:16px;font-weight:600;font-size:10px;color:#fff;top:-8px;left:50%;transform:translateX(-50%);margin:0;animation:bounce 2s 5}#edd-header .edd-number.edd-hidden{display:none!important}#edd-header .edd-round svg{width:20px;height:20px}@media screen and (max-width:840px){#edd-header img,.edd-header-separator{display:none}}.edd_datepicker{height:29px}.edd-from-to-wrapper input{width:105px;margin:0;position:relative;z-index:1}.edd-from-to-wrapper input[name*=start],.edd-from-to-wrapper input[name=filter_from]{border-top-right-radius:0;border-bottom-right-radius:0}.edd-from-to-wrapper input[name*=end],.edd-from-to-wrapper input[name=filter_to]{margin-left:-1px;border-top-left-radius:0;border-bottom-left-radius:0}.edd-from-to-wrapper input:focus{z-index:2;position:relative}.edd-settings-sub-nav{margin:0 0 10px;width:100%;border-bottom:1px solid #ccc;box-shadow:0 1px 1px rgba(0,0,0,.04)}.edd-settings-sub-nav a{padding:13px;display:block}.edd-settings-sub-nav a.current{border-bottom:4px solid #000;padding-bottom:9px}.admin-color-fresh .edd-settings-sub-nav a.current{border-bottom-color:#00a0d2}.admin-color-blue .edd-settings-sub-nav a.current{border-bottom-color:#096484}.admin-color-coffee .edd-settings-sub-nav a.current{border-bottom-color:#c7a589}.admin-color-ectoplasm .edd-settings-sub-nav a.current{border-bottom-color:#a3b745}.admin-color-midnight .edd-settings-sub-nav a.current{border-bottom-color:#e14d43}.admin-color-ocean .edd-settings-sub-nav a.current{border-bottom-color:#627c83}.admin-color-sunrise .edd-settings-sub-nav a.current{border-bottom-color:#be3631}.admin-color-light .edd-settings-sub-nav a.current{border-bottom-color:#888}.admin-color-evergreen .edd-settings-sub-nav a.current{border-bottom-color:#36533f}.admin-color-mint .edd-settings-sub-nav a.current{border-bottom-color:#4f6d59}.download_page_edd-settings .edd-check-wrapper{clear:both}.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-sortable-list{margin:0;width:300px;position:relative}.edd-sortable-list li{margin:0;padding:0;position:relative;height:28px;cursor:move}.edd-sortable-list li label *{vertical-align:middle}.edd-sortable-list li label:after{display:block;width:17px;height:17px;position:absolute;right:6px;top:0;color:#aaa;font-family:dashicons;font-size:17px;content:"";cursor:move}.form-table .edd-sortable-list li label{display:block;height:28px;padding:0;margin:0}.edd-sortable-list .payment-icon{width:32px;height:24px;position:relative;top:-2px;margin-right:5px}.edd-help-tip{cursor:help;margin-top:-2px;font-size:24px;color:grey}.edd-ui-tooltip{position:absolute;background:#333!important;border-width:1px!important;border-radius:3px!important;box-shadow:1px 1px 2px 1px hsla(0,0%,83.9%,.5)!important;color:#dedede!important;max-width:300px!important;padding:7px!important;text-rendering:optimizeLegibility;text-shadow:none!important;z-index:9999!important}.download_page_edd-settings .edd-settings-payment-icon-wrapper{margin-top:5px}.download_page_edd-settings .edd-settings-payment-icon-wrapper input{margin-top:1px}.download_page_edd-settings .form-table .edd-settings-payment-icon-wrapper input[type=checkbox]+label{margin:0;display:inline-block}.download_page_edd-settings .edd-settings-payment-icon-wrapper .payment-icon-image{margin-right:5px;width:32px;display:inline-block;vertical-align:middle}.download_page_edd-settings .edd-settings-payment-icon-wrapper .payment-option-name{vertical-align:middle}.download_page_edd-settings .taxrates td,.download_page_edd-settings .taxrates th{padding:8px 10px}.download_page_edd-settings .taxrates td{line-height:1.5em;vertical-align:top;margin:0}.download_page_edd-settings .taxrates .regular-text{width:100%}#TB_window{overflow:hidden}#TB_title{padding:5px}#TB_ajaxContent{width:calc(100% - 30px)!important;padding:15px;margin:0;height:calc(100% - 118px)!important}#TB_ajaxWindowTitle{font-size:18px;font-weight:600;line-height:30px}#TB_closeWindowButton{right:6px;top:6px}#choose-download-wrapper{width:100%}#choose-download-wrapper .wrap{overflow-y:scroll;margin:0;padding:0;height:calc(100% - 50px)}#choose-download-wrapper .submit-wrapper{position:absolute;width:100%;bottom:0;padding:0;margin:0 0 0 -15px;text-align:right}#choose-download-wrapper .submit-wrapper div{background-color:#fafafa;padding:15px;border-top:1px solid #ddd}.wp-media-buttons .button.edd-thickbox{padding-left:0}.wp-media-buttons .button.edd-email-tags-inserter .dashicons{margin-top:-2px}.download_page_edd-payment-history .edit-post-editor-regions__header{flex-shrink:0;height:auto;border-bottom:1px solid #e2e4e7;z-index:30;position:sticky;top:32px;margin-left:-20px}@media screen and (max-width:782px){.download_page_edd-payment-history .edit-post-editor-regions__header{position:static;top:46px}}.download_page_edd-payment-history .edit-post-header{height:56px;background:#fff;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;max-width:100%;box-sizing:border-box;padding:4px 20px}@media screen and (max-width:782px){.download_page_edd-payment-history .edit-post-header{padding-left:10px;padding-right:10px}}@media(min-width:280px){.download_page_edd-payment-history .edit-post-header{flex-wrap:nowrap}}.download_page_edd-payment-history .edit-post-header .edit-post-header__toolbar{order:0}.download_page_edd-payment-history .edit-post-header .edit-post-header__settings{order:1}.download_page_edd-payment-history .edit-post-header #publishing-action,.download_page_edd-payment-history .edit-post-header .edit-post-header__settings,.download_page_edd-payment-history .edit-post-header .edit-post-header__toolbar{display:flex;align-items:center}.download_page_edd-payment-history .edit-post-header #publishing-action .spinner{margin:0 5px 0 0}.download_page_edd-payment-history .edit-post-header .button-primary{margin:2px;height:34px;line-height:32px;font-size:13px}#edd-order-items .hndle{display:flex;align-items:center;justify-content:space-between}#edd-order-items .hndle .edd-toggle{font-weight:400}.edd-add-order-item td{vertical-align:middle}.edd-add-order-item input{width:80%}.edd-add-order-item input[readonly]{color:#555;background:none;border:1px solid transparent;box-shadow:none}.order-customer-info .customer-details-wrap{margin:15px 0;align-items:center}.order-customer-info .customer-details-wrap .spinner{margin:0}.order-customer-info .customer-details{display:flex;flex-direction:column}.order-customer-info .customer-details .customer-since{color:#666;display:block;margin:4px 0 6px}.order-customer-info .customer-details>span{margin-bottom:5px}.edd-order-add-download-select .spinner{display:none}table.edd-order-overview-summary{border-width:0;table-layout:fixed}table.edd-order-overview-summary--refund{border-width:0}@media screen and (min-width:782px){.edd-order-overview .column-right{text-align:right}}.edd-ml-auto{margin-left:auto!important}@media screen and (min-width:782px){.edd-ml-lg-auto{margin-left:auto!important}}.edd-ml-auto+.edd-ml-auto{margin-left:10px!important}.edd-order-overview-summary__items-name{align-self:flex-start}.edd-order-overview-summary__items>:nth-child(odd){background-color:#f9f9f9}@media screen and (min-width:782px){.edd-order-overview-summary__items tr:last-child td,.edd-order-overview-summary__items tr:last-child th{border-bottom:1px solid #e5e5e5}}@media screen and (max-width:782px){.edd-order-overview-summary .row-actions>*,.edd-order-overview-summary__items-name .row-actions{display:block!important}.edd-order-overview-summary .row-actions>:not(:first-child):before{display:none}}.edd-order-overview-summary th:not(.column-primary){width:100px}.edd-order-overview-summary .row-actions>:not(:first-child):before{color:#999;content:" | "}.edd-order-overview-summary .row-actions .text{color:#555}.edd-order-overview-summary .removable{display:flex;align-items:center;position:relative}.edd-order-overview-summary .removable .delete{display:inline-block;margin-right:10px;margin-left:-8px;padding:10px;border-right:1px solid #e5e5e5;color:#a00}.edd-order-overview-summary .removable .delete:hover{color:#dc3232}.edd-order-overview-summary__adjustments .column-primary{font-weight:600}.edd-order-overview-summary__adjustments td small{font-weight:400}.edd-order-overview-summary__subtotal .column-primary,.edd-order-overview-summary__tax tr:first-of-type .column-primary,.edd-order-overview-summary__total .column-primary{font-weight:600}.edd-order-overview-summary__adjustments td,.edd-order-overview-summary__subtotal td,.edd-order-overview-summary__tax td,.edd-order-overview-summary__total td{vertical-align:middle}.edd-order-overview-summary__tax td small,.edd-order-overview-summary__total td small{font-weight:400}.edd-order-overview-summary__total .total{color:#017d5c;display:inline-block}.edd-order-overview-summary__total .total.is-negative{color:#a00}@media screen and (min-width:783px){.edd-order-overview-summary__adjustments .removable .delete{margin-left:-50px}.edd-order-overview-summary__total .total{font-size:150%;padding-top:5px;padding-bottom:5px}}.edd-order-overview-summary__total tr:last-child td:not(:first-of-type),.edd-order-overview-summary__total tr:last-child th{border-top:1px solid #e5e5e5}.edd-order-overview-summary__total .notice{margin:-1px}.edd-order-overview-summary__total .notice p{font-weight:400;margin:.5em 0}.edd-order-overview-summary__refunds .column-primary{font-weight:600}.edd-order-overview-summary__refunds td small{font-weight:400}.edd-order-overview-summary__refunds tr:first-child td{border-top:1px solid #e5e5e5}#edd-order-overview-actions.inside{border-top:1px solid #ccd0d4;margin-top:0;display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between}#edd-order-overview-actions.inside:empty{padding:0;border-top:0}#edd-order-overview-actions.inside>div{display:flex;align-items:center}#edd-order-overview-actions .edd-order-overview-actions__notice{flex-basis:100%;margin-top:15px}.edd-order-overview-actions .button{width:100%;margin-bottom:12px}.edd-order-overview-actions .button:last-of-type{margin-bottom:0}@media screen and (min-width:782px){.edd-order-overview-actions .button{width:auto;margin-left:12px;margin-bottom:0}.edd-order-overview-actions .button:first-of-type{margin-left:auto}}.edd-order-overview-actions__locked{font-style:italic;opacity:.8}@media screen and (max-width:782px){.edd-order-overview-actions__locked{margin-bottom:12px}}.edd-order-overview-actions__refund .dashicons{margin-right:8px}.edd-dialog .ui-button-icon-only{font-size:0}.download_page_edd-payment-history .ui-dialog,.download_page_edd-payment-history .ui-dialog-content{overflow:visible}.edd-order-overview-modal form>p{margin-top:0}.edd-order-overview-modal fieldset legend,.edd-order-overview-modal form label{display:block;margin-bottom:4px}.edd-order-overview-modal fieldset{margin-bottom:calc(1em - 3px)}.edd-order-overview-modal fieldset>p{margin:2px 0 3px}.edd-order-overview-modal form .submit{margin:0 -16px -16px;padding:16px;background:#fcfcfc;border-top:1px solid #dfdfdf;display:flex;align-items:center}.edd-order-overview-modal form .submit .spinner{margin:0}.edd-order-overview-add-item [for=auto-calculate]{display:flex;align-items:center}.edd-order-overview-add-item [for=auto-calculate] input[type=checkbox]{margin-top:0}.edd-order-overview-add-item [for=auto-calculate] .label{line-height:1.15;margin-left:8px}.edd-order-overview-add-item [for=auto-calculate] .label small{margin-top:4px;display:block;opacity:.75}.edd-order-overview-add-adjustment .notice,.edd-order-overview-add-item .notice{margin:0 0 1rem}.edd-order-overview-add-adjustment #description,.edd-order-overview-add-discount select{width:100%}.edd-order-overview-error{font-style:italic;color:#a00;display:block;margin:4px 0}.edd-order-copy-download-link textarea{width:100%}.edd-admin-order-status-badge{padding:2px 7px;border-radius:4px;background:#ececec;display:inline-flex;align-items:center}.edd-admin-order-status-badge__icon{opacity:.8;margin:0 -2px 0 2px}.edd-admin-order-status-badge--refunded .edd-admin-order-status-badge__icon{font-size:16px;width:16px;height:16px}.edd-admin-order-status-badge--failed{color:#ac3d3d;background:#ffd6d6}.edd-admin-order-status-badge--failed .edd-admin-order-status-badge__icon{margin-left:0;margin-top:-1px}.edd-admin-order-status-badge--complete{color:#017d5c;background:#e5f5f0}.edd-admin-order-status-badge--complete .edd-admin-order-status-badge__icon{margin-left:0}.edd-admin-order-status-badge--pending{color:#7d6e01;background:#f5f2e5}.edd-admin-order-status-badge--processing{color:#015a7d;background:#e5f1f5}.wp-list-table.orderitems .refunded .edd-admin-order-status-badge{margin-left:10px}.edd-order-resend-email-chooser legend{font-weight:700;margin-bottom:4px}.edd-order-resend-email-chooser p{margin:4px 0}.edd-notes .edd-note{padding:10px;background-color:#ffe;border:1px solid #cc0;width:100%;position:relative;margin-bottom:10px;box-sizing:border-box;overflow:hidden}.edd-notes .edd-note.deleting{opacity:.5}.edd-notes .edd-note__header{display:flex;align-items:center}.edd-add-note .spinner{float:none;display:inline-block;margin:0}.edd-notes .edd-note time{font-size:11px;color:#aaa}.edd-notes .edd-note .edd-note-author{margin-right:5px}.edd-notes .edd-note .edd-delete-note{color:#a00;font-weight:700;text-decoration:none;margin-left:auto}.edd-notes .edd-note .edd-delete-note:hover{color:#888}.edd-notes .edd-note p:last-child{margin-bottom:0}.edd-notes .edd-no-notes{margin:4px 0 10px}textarea[name=edd-note]{width:100%;min-height:70px;margin-top:0}.edd-notes-wrapper{width:80%}.edd-note-pagination{float:right;margin:-35px 5px 15px}.edd-note-pagination a,.edd-note-pagination span.page-numbers{padding:5px 8px;margin:2px;text-decoration:none}.edd-note-pagination a{border:1px solid #e5e5e5;background:#fcfcfc}.edd-note-pagination a:last-child,.edd-note-pagination span.page-numbers:last-child{margin-right:0}#edd-products{height:100px;min-width:200px}#edd-add-discount input[type=text],#edd-edit-discount input[type=text]{width:300px}#edd-add-discount .edd-discount-datetime input,#edd-edit-discount .edd-discount-datetime input{vertical-align:middle}#edd-add-discount input[type=text].edd_datepicker,#edd-edit-discount input[type=text].edd_datepicker{display:inline-block;width:183px}#edd-edit-discount textarea{height:100px}.edd-amount-type-wrapper{position:relative;display:flex}.edd-amount-type-wrapper select{border-top-left-radius:0;border-bottom-left-radius:0;width:auto!important}.edd-amount-type-wrapper #edd-amount{border-top-right-radius:0;border-bottom-right-radius:0;margin-right:-2px;padding:0 8px;width:unset;max-width:125px}.edd-amount-type-wrapper input:focus{z-index:2}.post-type-download .tablenav.top .edd-select{margin-right:6px}.wp-list-table.addresses .column-primary strong,.wp-list-table.customers .column-primary strong,.wp-list-table.discounts .column-primary strong,.wp-list-table.emails .column-primary strong,.wp-list-table.orderadjustments .column-primary strong,.wp-list-table.orderitems .column-primary strong,.wp-list-table.orders .column-primary strong{font-size:14px}.wp-list-table.customers .column-primary .avatar,.wp-list-table.emails .column-customer .avatar{float:left;margin-right:10px;margin-top:1px;border-radius:5px}.wp-list-table.orders div.order-list-email{font-size:.85em;color:#888}.wp-list-table.orders th.column-amount{width:100px}.wp-list-table .row-actions span.activate a{color:green}.wp-list-table .row-actions span.refund a{color:#836fff}.wp-list-table .row-actions span.cancel a{color:#cc8c00}.wp-list-table .row-actions span.cancel a:hover,.wp-list-table .row-actions span.refund a:hover{opacity:.8}.wp-list-table .type-download .row-actions{color:#999}.no-js.edit-tags-php.post-type-download .wp-heading-inline{position:absolute;top:0}.no-js.edit-tags-php.post-type-download .nav-tab-wrapper{margin-top:50px}.download_page_edd-customers .wrap .nav-tab-wrapper .page-title-action,.download_page_edd-discounts .wrap .nav-tab-wrapper .page-title-action,.download_page_edd-payment-history .wrap .nav-tab-wrapper .page-title-action,.edit-tags-php.post-type-download .wrap .nav-tab-wrapper .page-title-action{top:3px;margin-left:10px;line-height:24px}#edd-payments-filter ul.subsubsub{margin-bottom:8px}tr.status-refunded td{background:#cecece;border-top-color:#ccc}marquee{padding:0;margin:0}@media handheld,only screen and (max-width:640px){.wp-list-table.downloads th{width:auto!important}}#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_product_files .inside,#edd_product_prices .inside{margin-bottom:0}textarea#edd-payment-note{width:100%;height:4em;margin:0}#edd-order-items .row .edd-purchased-files-list-wrapper .download{line-height:1.4}#edd-order-items .edd-purchased-files-list-wrapper .edd-purchased-option{color:#666}input[class*=edd-price-field]{max-width:125px}#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:80%;max-width:125px}#edd_product_notes_field{display:block;margin:12px 0 0;height:4em;width:100%}.edd-metabox-title-action{margin:0;float:right;padding:4px 8px;position:relative;top:-1px;text-decoration:none;border:1px solid #ccc;border-radius:2px;background:#f7f7f7;text-shadow:none;font-weight:600;font-size:10px;line-height:normal;color:#0073aa;cursor:pointer;outline:0}.edd-metabox-title-action:hover{border-color:#008ec2;background:#00a0d2;color:#fff}.edd-edit-purchase-element .tablenav{padding:2px 10px 8px}.edd-edit-purchase-element .edd-order-children-wrapper{margin:0 -1px}.edd-edit-purchase-element .edd-order-children-wrapper.child-count-0 table{border-top:none;border-bottom:none}.edd-edit-purchase-element .edd-order-children-wrapper.child-count-0 .tablenav{display:none}.edd-edit-purchase-element[class*=columns-] ul li{padding-right:1%}#edd-edit-order-form .column:nth-child(odd),#edd-edit-order-form .columns-4 .column:nth-child(odd),#edd-edit-order-form .columns-5 .column:nth-child(3n+1){margin-right:0}#edd-edit-order-form input.large-text{width:90%}.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 #f1f1f1;clear:both;padding:12px;margin:0;word-wrap:break-word}.edd-admin-box-inside--row{display:flex;flex-wrap:wrap;word-break:break-all;justify-content:space-between;align-items:center}.edd-admin-box-inside>p{margin:8px 3px}.edd-admin-box-inside .strong{font-weight:600}.edd-admin-box div:not(.edd-admin-box-inside--row) .label{display:block;margin-bottom:4px;margin-right:0}.edd-admin-box .label--has-tip{display:flex;align-items:center}.edd-admin-box .label--has-tip .edd-help-tip{margin-top:0;font-size:20px}.edd-admin-box div:not(.edd-admin-box-inside--row) .label--has-checkbox{margin-bottom:0}.edd-payment-fees .fee-label{color:#666;font-weight:400}.edd-admin-box .right{float:right}#edd-order-refunds-list{padding-left:25px}#poststuff .edd-order-data .inside{margin:0;padding:0}.edd-order-data .edd-select-chosen{width:130px!important}.edd-order-data input.edd_datepicker{width:180px}.edd-order-data input[type=number].edd-payment-time-hour,.edd-order-data input[type=number].edd-payment-time-min{width:50px}.edd-order-data .edd-tax-rate{color:#9c9c9c;font-style:italic;padding:5px}#edd_general_logs p{margin:0;padding:0}.edd-admin-box-inside span.label{margin-right:10px}#edd-order-resend-receipt .inside{margin-top:11px}#edd-order-resend-receipt .edd-order-resend-receipt-addresses{margin-top:10px}.edd-order-resend-receipt-header{font-size:14px;line-height:1.4}.edd-order-resend-receipt-addresses label{display:block;line-height:1.75em}.edd-order-resend-receipt-addresses label:last-child{margin-bottom: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-order-update-box .button-primary{margin-right:0}.edd-edit-purchase-element .edd-select-chosen{width:196px}.edd-edit-purchase-element ul{clear:both;display:block}#edd-customer-details .actions{float:right}.order-data-address h3{margin:0 0 10px}.order-data-address #edd-order-address-country-wrap,.order-data-address #edd-order-address-state-wrap{display:inline-block;width:50%;max-width:300px}.edd-order-data input.small-text{margin:0}.edd-order-data input.med-text{margin:0;width:100px}.edd-edit-purchase-element ul li{display:block;line-height:1.4;position:relative;margin:0;vertical-align:middle;font-size:13px}.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{margin:0 0 15px}.edd-edit-purchase-element ul:last-of-type{margin-bottom:0}#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-title .deleted{color:#777}.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-add-adjustment-to-purchase,.edd-add-download-to-purchase{padding:15px;border-top:1px solid #e5e5e5;background-color:#f5f5f5}.edd-add-adjustment-to-purchase .chosen-container,.edd-add-download-to-purchase .chosen-container{width:90%!important;max-width:220px!important}.edd-add-adjustment-to-purchase .spinner,.edd-add-download-to-purchase .spinner{margin:0;float:none}.edd-add-download-to-purchase .edd-add-order-quantity{width:40px;height:29px;vertical-align:middle}.edd-add-adjustment-to-purchase .edd-add-adjustment-button,.edd-add-adjustment-to-purchase input[type=text],.edd-add-download-to-purchase .edd-add-order-item-button{height:29px}@media screen and (max-width:1284px){.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}}@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-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-download-amount,.edd-price-currency{font-size:16px}.order-data-column input[type=email]{padding:6px 10px}.edd-refund-submit-line-total td:last-of-type{flex:0 0 120px}#edd-item-tables-wrapper .addresses tbody tr{display:-ms-grid;display:grid}#edd-item-tables-wrapper .addresses tbody td:not(.no-items){padding-left:35%}}@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_product_stats .label{display:inline-block}#edd_product_stats .product-earnings-stats:before,#edd_product_stats .product-sales-stats:before{color:#82878c;font:normal 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_product_stats .product-sales-stats:before{content:""}#edd_product_stats .product-earnings-stats:before{content:""}body.dashboard_page_edd-upgrades.js .postbox .hndle{cursor:default}.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{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}}body.download_page_edd-reports{overflow-y:scroll}.edd-chip{font-size:10px;font-weight:700;text-transform:uppercase;line-height:1;padding:3px;border-radius:3px;color:#fff;background-color:#444}.edd-reports-wrapper .postbox h2,.edd-reports-wrapper .postbox h3{font-size:1.3em}#edd-dashboard-widgets-wrap .metabox-holder{padding-top:0}.edd-reports-wrapper .postbox .edd-select{max-width:200px;vertical-align:baseline;margin-right:4px;margin-bottom:16px}.download_page_edd-reports #edd-item-wrapper{margin:0}#edd-dashboard-widgets-wrap .postbox h2,#edd-dashboard-widgets-wrap .postbox h3{cursor:default}.edd-date-range-options .edd_datepicker{width:105px}.edd-report-wrap{clear:both}.edd-report-wrap h3{clear:both;margin:0 0 20px}.edd-reports-chart,.edd-reports-table{margin-bottom:20px}.edd-admin--has-grid{display:grid;display:-ms-grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));grid-gap:20px}.edd-admin--has-grid .postbox{margin-bottom:0}.edd-admin--has-grid .edd-from-to-wrapper{display:flex;margin-bottom:16px;width:100%}.edd-admin--has-grid .edd-from-to-wrapper input{width:100%}.edd-admin--has-grid .edd-from-to-wrapper span{flex-grow:1}.edd-admin--has-grid form{display:flex;flex-direction:column;flex-wrap:wrap;position:relative}fieldset.edd-to-and-from-container{display:flex;gap:8px}fieldset.edd-to-and-from-container select{flex:0 0 calc(50% - 6px)}span.edd-to-and-from--separator{line-height:normal;-ms-grid-row-align:center;align-self:center;margin-bottom:16px}.edd-admin--has-grid .postbox .edd-select{max-width:100%;margin-right:0}.edd-admin--has-grid .button.updated-message:before,.edd-admin--has-grid .button.updating-message:before{vertical-align:text-bottom;margin:0 5px 0 0}.edd-import-export-form .edd-progress{background:#ddd;border-radius:15px;height:15px;flex-basis:100%}.edd-import-export-form .edd-progress div{background:#ccc;border-radius:15px;height:100%;width:0}.edd-import-export-form .notice-wrap{background-color:#f4f4f4;border-color:#eae9e9;border-style:solid;border-width:1px 0;padding:12px;overflow:auto;margin:20px -12px -23px;position:relative;width:100%;display:flex;justify-content:space-between;align-items:center}.notice-wrap div.notice{margin:0}.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}.graph-option-section{float:left}.edd-report-filters-title span{display:block;padding:20px}#edd-graphs-filter form{padding:20px}#edd-graphs-filter label{vertical-align:inherit}#edd-graphs-filter .graph-option-section{display:inline-block;line-height:2em;margin:0 5px 0 0;padding:0}.download_page_edd-reports .section-content #post-body-content{float:none}.download_page_edd-reports .section-content select[name=range]{display:none}.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-reports-tiles-wrap .metabox-holder{padding:0}#edd-reports-tiles-wrap #dashboard-widgets{overflow:auto}#edd-reports-tiles-wrap #dashboard-widgets .postbox-container{width:33.3%}.download_page_edd-reports .section-content .tablenav.top{display:none}#edd_tax_rates{margin:1em 0 0}[id*=edd-recapture-].button{font-size:16px;height:auto;padding:8px 14px;margin:6px 0 0}[id*=edd-recapture-].button .dashicons{line-height:29px;margin-right:8px}[id*=edd-recapture-].button .edd-loading,[id*=edd-recapture-].button .edd-loading:after{border-radius:50%;display:inline-block;width:14px;height:14px}[id*=edd-recapture-].button .edd-loading{position:relative;top:3px;margin-left:4px;box-shadow:0 0 2px rgba(0,0,0,.2);animation:edd-spinning 1.1s linear infinite;border:2px solid hsla(0,0%,100%,.5);border-left-color:#fff;font-size:14px;filter:alpha(opacity=0);transform:translateZ(0)}#edd-recapture-disconnect.button .edd-loading.dark{border-color:rgba(0,0,0,.2) rgba(0,0,0,.2) rgba(0,0,0,.2) #666;box-shadow:none}.recapture-notice{position:relative}@keyframes edd-spinning{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}#edd-chartjs-tooltip{position:absolute;background-color:#fff;border-radius:7px;transition:all .1s ease;pointer-events:none;transform:translate(-50%);font-size:12px;box-shadow:0 0 0 1px rgba(89,94,100,.1),0 15px 35px 0 rgba(89,94,100,.1),0 5px 15px 0 rgba(0,0,0,.12);min-width:120px;opacity:0}.edd-chartjs-tooltip-key{display:inline-block;width:10px;height:10px;margin-right:5px}#edd-send-test-summary-save-changes-notice .notice p{font-size:13px}#edd-send-test-summary-notice,#edd-send-test-summary-save-changes-notice{display:flex;margin-top:5px}.edd-graph .y1Axis{color:#edc240!important}.edd-graph .y2Axis{color:#afd8f8!important}.wp-list-table.apikeys input.code{width:100%;font-size:10px;cursor:text;background:#fff;border:1px solid #ddd;box-shadow:none;color:#555}.edd-toggle{position:relative;display:inline-block;overflow:visible}.edd-toggle input[type=checkbox]{display:inline-block;vertical-align:middle;position:relative;margin:0;padding:0;width:42px;min-width:42px;height:24px;background-color:#ccc;transition:background .2s ease;border-radius:34px;box-shadow:none;border:none}.edd-toggle .label{display:inline-block;vertical-align:middle;white-space:nowrap}.edd-toggle input[type=checkbox]:before{position:absolute;content:"";height:18px;width:18px;left:3px;bottom:3px;background-color:#fff;transition:transform .1s ease;border-radius:50%}@media only screen and (max-width:782px){.edd-toggle input[type=checkbox]:checked:before{margin:-.1875rem 0 0 -.25rem}}.edd-toggle input[type=checkbox]:checked{background-color:#007cba;background-color:var(--wp-admin-theme-color)}.edd-toggle input[type=checkbox]:active,.edd-toggle input[type=checkbox]:focus{outline:0;box-shadow:0 0 0 1px #fff,0 0 0 3px #7e8993}.edd-toggle input[type=checkbox]:checked:active,.edd-toggle input[type=checkbox]:checked:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px #007cba;box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color)}.edd-toggle input[type=checkbox]:checked:before{transform:translateX(22px)}.edd-toggle .label+input,.edd-toggle input+.label{margin-left:5px}.download_page_edd-tools .tablenav .actions{overflow:visible}.edd_user_search_wrap{position:relative;overflow:visible}.edd_user_search_wrap .spinner{position:absolute;margin:0;padding:0;right:4px;top:-2px}.edd_user_search_wrap.loading .spinner{visibility:visible}.edd_user_search_results{position:absolute;left:0;top:20px}.edd_user_search_results a.edd-ajax-user-cancel{position:absolute;right:6px;top:2px}.edd_user_search_results ul{background:#fafafa;border:1px solid #dfdfdf;overflow-y:scroll;padding:0;margin:0;height:150px;width:185px;box-shadow:0 3px 5px rgba(0,0,0,.1)}.edd_user_search_results li{margin:0}.edd_user_search_results li a{display:block;text-decoration:none;padding:6px 10px}.edd_user_search_results li a:hover{background:#f5f5f5}.edd_user_search_results li.no-users{text-align:center;vertical-align:middle;display:block;line-height:150px;color:#bbb;text-transform:uppercase;font-size:11px}@media screen and (max-width:1100px){.edd-mix-chart{display:block;width:100%}}@media screen and (max-width:782px){.license-expiration-date-notice,.license-lifetime-notice,.license-null{padding-left:0}}@media screen and (max-width:600px){#edd-edit-order-form input.large-text{width:100%}}#edd-item-wrapper{background:#fff;border:1px solid #c3c4c7;box-shadow:0 1px 1px rgba(0,0,0,.04);position:relative;margin-top:15px;display:flex}#edd-item-wrapper.full-width{max-width:100%}#edd-item-wrapper:after{content:"";display:block;clear:both;visibility:hidden;font-size:0;height:0}.edd-sections-wrap{clear:both;width:100%}.edd-sections-wrap .section-wrap{background-color:#fff;display:inline-block;z-index:2}.js .edd-sections-wrap .edd-vertical-sections:not(.meta-box) .section-wrap>div{min-height:500px;height:100%}.edd-sections-wrap .section-wrap .customer-section:not(:last-child){border-bottom:1px solid #eee}.edd-sections-wrap .section-wrap .customer-section table{margin-bottom:20px}.edd-sections-wrap .section-wrap{border-left:1px solid #e5e5e5}.edd-sections-wrap .section-wrap .section-content>*{padding:20px}.edd-sections-wrap .section-wrap .section-content h2{margin:0;padding-bottom:0}.edd-sections-wrap .section-wrap .avatar-wrap{float:left;padding-right:10px;text-align:center}.edd-sections-wrap .section-wrap img.avatar{border-radius:5px}.edd-sections-wrap .section-wrap .customer-id{position:absolute;right:0;top:0;padding:10px;background-color:#fafafa;border-bottom-left-radius:20%;border:1px solid #eee;border-top:none;border-right:none;font-family:monospace;font-size:18px;font-weight:600}.edd-item-info.customer-info input[type=password],.edd-item-info.customer-info input[type=text],.edd-item-info.customer-info select{width:200px;height:auto;box-shadow:none;transition:none;border:1px solid #ddd;margin:-5px 0 4px -2px;font-size:13px;padding:2px 4px}.edd-sections-wrap .section-wrap .customer-main-wrapper{float:left}.edd-sections-wrap .section-wrap .customer-main-wrapper input[name="customerinfo[name]"]{font-size:24px}.edd-sections-wrap .section-wrap .customer-address-wrapper{float:right;margin-top:-3px;margin-right:50px;width:202px}.edd-sections-wrap .section-wrap .info-wrapper{min-height:125px;overflow:visible}.edd-sections-wrap .section-wrap .customer-address span[data-key=address2],.edd-sections-wrap .section-wrap .customer-address span[data-key=address],.edd-sections-wrap .section-wrap .customer-address span[data-key=country]{display:block}.edd-sections-wrap .section-wrap a.delete{color:red;margin-right:5px;text-decoration:none}.customer-info{min-height:185px}.customer-info .customer-name{font-size:24px;font-weight:600}.customer-info .customer-name.editable{margin-bottom:6px}.customer-edit-link a{font-weight:400;text-decoration:none}.disconnect-user a{color:#aaa;font-size:20px}#customer-edit-actions{padding:3px;line-height:28px;text-align:center}#customer-edit-actions .button-secondary{margin-right:5px}#customer-edit-actions .cancel{padding:5px}.edd-sections-wrap .section-wrap .row-title{width:30%}.edd-sections-wrap .section-wrap .editable{display:block;padding:3px}.edd-sections-wrap .section-wrap div.edit-item{margin-left:-4px;margin-top:-20px}.edd-sections-wrap .section-wrap .customer-address.edit-item{margin-top:3px}.edd-sections-wrap .section-wrap span.edit-item{display:none}.edd-sections-wrap .section-wrap .edit-item input{font-size:13px}.edd-sections-wrap .section-wrap .customer-name.edit-item input{margin-top:-5px}.edd-sections-wrap .section-wrap .edd_user_search_results{left:-2px;top:18px}.edd-sections-wrap .section-wrap .edd_user_search_results ul{width:198px}#edd-item-stats-wrapper{margin:0 auto;text-align:center}#edd-item-stats-wrapper ul{display:flex;margin:0}#edd-item-stats-wrapper li{font-size:14px;margin-bottom:0;width:50%}#edd-item-stats-wrapper a{text-decoration:none}#edd-item-stats-wrapper .dashicons{color:#888;margin-top:-2px}#edd-item-tables-wrapper table{width:100%}#edd-item-tables-wrapper .no-items{text-align:left}#edd-item-tables-wrapper .emails .add-customer-email-row{background-color:#f4f4f4;border-top:1px solid #e5e5e5}#edd-item-tables-wrapper .add-customer-email-wrapper{display:flex;flex-wrap:wrap;align-items:center;margin:12px 0}#edd-item-tables-wrapper .edd-form-group{margin-bottom:0}#edd-item-tables-wrapper .edd-make-email-primary{flex-grow:1;margin-left:12px}#edd-item-tables-wrapper .emails .spinner{float:none;margin:0 10px;-ms-grid-row-align:center;align-self:center}#edd-item-tables-wrapper .notice-error{background-color:#fff5f5}#edd-item-notes-wrapper{min-height:50px}.customer-note-input{margin-bottom:5px;width:100%}.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-sections-wrap .section-wrap .notice-container{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-sections-wrap .section-wrap .widefat td,.widefat th{max-width:100%!important;display:table-cell}}@media screen and (max-width:781px){#edd-item-tab-wrapper,.edd-sections-wrap .section-wrap{margin:0;width:100%}#edd-item-tab-wrapper-list .dashicons{font-size:18px}.edd-item-has-tabs .edd-sections-wrap .section-wrap{border-top:1px solid #e5e5e5;border-left:0;margin-top:-1px}}@media screen and (max-width:656px){.edd-item-info.customer-info{position:relative}.edd-sections-wrap .section-wrap .customer-address-wrapper{float:none;position:absolute;top:84px;left:165px;max-width:200px}.edd-sections-wrap .section-wrap .customer-main-wrapper{float:none;position:absolute;left:165px}.customer-info .customer-name{font-size:16px}.edd-sections-wrap .section-wrap #edd-item-stats-wrapper{padding-left:0;padding-right:0}.edd-sections-wrap .section-wrap .customer-section{margin-bottom:0}.edd-sections-wrap .section-wrap .widefat td.column-primary,.edd-sections-wrap .section-wrap .widefat td.no-items,.edd-sections-wrap .section-wrap .widefat th.column-primary{width:100px!important;display:table-cell;overflow:hidden;text-align:left}.edd-sections-wrap .section-wrap .customer-id{display:none}#edd-item-tables-wrapper .emails td.column-primary{padding-right:10px;width:100%!important}#edd-item-tables-wrapper .edd-form-group{margin:0 0 16px}}@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(2n){border-width:0 0 1px}.download_page_edd-reports .button{text-align:center}#edd-payment-date-filters span{display:block}#edd-payment-date-filters span>input{float:right}#edd-add-discount select[multiple] option,#edd-edit-discount select[multiple] option{height:20px}.download_page_edd-reports .inside .button,.download_page_edd-reports .inside input[type=submit],.download_page_edd-reports .inside input[type=text],.download_page_edd-reports .inside select,.download_page_edd-settings .inside input[type=button],.download_page_edd-tools .inside input[type=submit],.download_page_edd-tools .inside input[type=text],.download_page_edd-tools .inside select{width:100%}#edd-add-discount select[multiple],#edd-edit-discount select[multiple],.download_page_edd-tools select[multiple]{height:200px!important}.download_page_edd-settings input[type=checkbox]{margin:2px 0}.post-type-download input[type=checkbox]{margin-left:2px}}.inside .edd-tools-textarea{background:#32373c;color:rgba(240,245,250,.7);font-size:12px;font-family:Menlo,Monaco,monospace;display:block;overflow:auto;white-space:pre;width:100%;height:450px;padding:10px;outline:none}#system-info-textarea::selection{background:#555;color:#fff}#edd-system-info .edd-inline-button{margin-left:5px}.recount-stats-controls form{display:inline}.edd-recount-stats-descriptions span{display:none;line-height:24px}.edd-vertical-sections{overflow:visible;display:block;display:flex}#edd-item-tab-wrapper,.edd-vertical-sections .section-nav{position:relative;width:20%;line-height:1em;margin:0 -1px 0 0;padding:0;background-color:#f5f5f5;border-right:1px solid #e5e5e5;box-sizing:border-box;max-width:200px}#edd-item-tab-wrapper-list{margin:0}#edd-item-tab-wrapper li,.edd-vertical-sections .section-nav li{display:block;position:relative;margin:0;padding:0;background-color:#fcfcfc}.edd-vertical-sections .section-title:last-of-type{margin-bottom:24px}#edd-item-tab-wrapper li>.edd-item-tab-label-wrap,#edd-item-tab-wrapper li a,.edd-vertical-sections .section-nav li a{display:flex;margin:0;padding:9px;text-decoration:none;border-bottom:1px solid #e5e5e5;box-shadow:none;position:relative;align-items:center}#edd-item-tab-wrapper li a:focus,#edd-item-tab-wrapper li a:hover,.edd-vertical-sections .section-nav li a:focus,.edd-vertical-sections .section-nav li a:hover{box-shadow:inset 5px 0;outline:0;transition:all .25s}.edd-vertical-sections .section-nav .section-title--is-active a:after{content:"";width:1px;height:100%;background:#fff;position:absolute;right:0;top:0;bottom:0;z-index:3}#edd-item-tab-wrapper li>.edd-item-tab-label-wrap{background-color:#fff}.edd-vertical-sections .section-nav li a>.dashicons,.edd-vertical-sections .section-nav li a>span{display:inline-block}.edd-vertical-sections .section-nav li a>span{max-width:76%}.edd-vertical-sections .section-nav li a .dashicons{line-height:20px;margin-right:3px;color:#888}.edd-vertical-sections .section-nav .section-title--is-active a{font-weight:700;color:#555;background-color:#fff;border-right:none;margin-right:-1px}.edd-vertical-sections.use-js .section-content,.no-js .edd-vertical-sections.use-js.edd-item-header-small,.no-js .edd-vertical-sections.use-js .section-nav{display:none}.no-js .edd-vertical-sections.use-js .section-content{display:block}.admin-color-fresh .edd-vertical-sections .section-nav .section-title--is-active a,.admin-color-fresh .edd-vertical-sections .section-nav li a:focus,.admin-color-fresh .edd-vertical-sections .section-nav li a:hover{box-shadow:inset 5px 0 #0073aa}.admin-color-blue .edd-vertical-sections .section-nav .section-title--is-active a,.admin-color-blue .edd-vertical-sections .section-nav li a:focus,.admin-color-blue .edd-vertical-sections .section-nav li a:hover{box-shadow:inset 5px 0 #096484}.admin-color-coffee .edd-vertical-sections .section-nav .section-title--is-active a,.admin-color-coffee .edd-vertical-sections .section-nav li a:focus,.admin-color-coffee .edd-vertical-sections .section-nav li a:hover{box-shadow:inset 5px 0 #c7a589}.admin-color-ectoplasm .edd-vertical-sections .section-nav .section-title--is-active a,.admin-color-ectoplasm .edd-vertical-sections .section-nav li a:focus,.admin-color-ectoplasm .edd-vertical-sections .section-nav li a:hover{box-shadow:inset 5px 0 #a3b745}.admin-color-midnight .edd-vertical-sections .section-nav .section-title--is-active a,.admin-color-midnight .edd-vertical-sections .section-nav li a:focus,.admin-color-midnight .edd-vertical-sections .section-nav li a:hover{box-shadow:inset 5px 0 #e14d43}.admin-color-ocean .edd-vertical-sections .section-nav .section-title--is-active a,.admin-color-ocean .edd-vertical-sections .section-nav li a:focus,.admin-color-ocean .edd-vertical-sections .section-nav li a:hover{box-shadow:inset 5px 0 #627c83}.admin-color-sunrise .edd-vertical-sections .section-nav .section-title--is-active a,.admin-color-sunrise .edd-vertical-sections .section-nav li a:focus,.admin-color-sunrise .edd-vertical-sections .section-nav li a:hover{box-shadow:inset 5px 0 #be3631}.admin-color-light .edd-vertical-sections .section-nav .section-title--is-active a,.admin-color-light .edd-vertical-sections .section-nav li a:focus,.admin-color-light .edd-vertical-sections .section-nav li a:hover{box-shadow:inset 5px 0 #888}.admin-color-evergreen .edd-vertical-sections .section-nav .section-title--is-active a,.admin-color-evergreen .edd-vertical-sections .section-nav li a:focus,.admin-color-evergreen .edd-vertical-sections .section-nav li a:hover{box-shadow:inset 5px 0 #36533f}.admin-color-mint .edd-vertical-sections .section-nav .section-title--is-active a,.admin-color-mint .edd-vertical-sections .section-nav li a:focus,.admin-color-mint .edd-vertical-sections .section-nav li a:hover{box-shadow:inset 5px 0 #4f6d59}.edd-vertical-sections .section-nav .section-title--is-active .dashicons{color:#555}@media only screen and (max-width:782px){#edd-item-tab-wrapper,.edd-vertical-sections .section-nav{width:48px}.edd-vertical-sections .section-nav li a{justify-content:center}.edd-vertical-sections .section-nav li a .dashicons{width:24px;height:24px;font-size:24px;line-height:24px;margin:0}.section-nav li .dashicons:before{width:24px;height:24px}#edd-item-tab-wrapper .edd-item-tab-label,.section-nav li .label{overflow:hidden;position:absolute;top:-1000em;left:-1000em;width:1px;height:1px}}#edd-item-card-wrapper,.edd-vertical-sections .section-wrap{width:80%}#edd-item-card-wrapper .item-section{background:#fff;overflow:hidden;box-sizing:border-box}:not(#edd-item-tab-wrapper)+#edd-item-card-wrapper .item-section{margin:25px 0;padding:20px;border:1px solid #e5e5e5;box-shadow:0 1px 1px rgba(0,0,0,.04)}#edd-item-tab-wrapper+#edd-item-card-wrapper{padding:20px;border-left:1px solid #e5e5e5;box-sizing:border-box}@media only screen and (min-width:1200px){#edd-graphs-filter,#edd-item-card-wrapper,.edd-vertical-sections:not(.meta-box) .section-wrap{width:calc(100% - 200px)}}@media only screen and (max-width:782px){#edd-graphs-filter,#edd-item-card-wrapper,.edd-vertical-sections .section-wrap{width:calc(100% - 48px)}}#edd-debug-log .edd-inline-button{margin-left:5px}.edd-settings-sidebar{padding-top:27px}.edd-settings-sidebar-content{background-color:#fff;text-align:center;border:1px solid #ddd;box-sizing:border-box;max-width:300px}.edd-settings-sidebar-content p{font-size:14px;line-height:1.5;margin-top:0}.edd-sidebar-header-section{background-color:#35495c;line-height:1;padding:26px 20px 24px;border-bottom:3px dashed #fafafa}.edd-sidebar-description-section{background-color:#fafafa;padding:16px 20px;border-bottom:1px solid #ddd}.edd-sidebar-description-section .edd-sidebar-description{margin:0}.edd-sidebar-coupon-section{font-size:14px;padding:16px 20px}.edd-sidebar-coupon-section label{display:block;line-height:1.4;margin-bottom:6px}.edd-sidebar-coupon-section label strong{color:#253b51;font-weight:700}.edd-sidebar-coupon-section input{background:#f4f7fa;font-size:22px;font-weight:600;text-align:center;padding:10px;border:2px dashed #2794da;border-radius:4px;margin-bottom:16px;box-shadow:none;width:100%}.edd-sidebar-coupon-section input:focus{border:2px dashed #2794da;box-shadow:none}.edd-settings-sidebar-content .edd-coupon-note{color:#6c7883;font-size:13px;font-style:italic;margin:0}.edd-settings-sidebar-content .edd-coupon-note a{color:#253b51}.edd-settings-sidebar-content .edd-coupon-note a:hover{text-decoration:none}.edd-sidebar-footer-section{background-color:#fafafa;padding:16px 20px;border-top:1px solid #ddd}.edd-sidebar-footer-section .edd-cta-button{display:block;background-color:#2794da;color:#fff;text-decoration:none;font-size:20px;font-weight:700;text-transform:uppercase;padding:17px 10px;border:none;border-radius:4px;width:100%;box-sizing:border-box;box-shadow:none;transition:background-color .2s}.edd-sidebar-footer-section .edd-cta-button:hover{background-color:#2386c5}@media (min-width:1080px){.edd-has-sidebar .edd-settings-content{float:left;width:67%}.edd-has-sidebar .edd-settings-sidebar{float:right;width:31%}}@media (min-width:1240px){.edd-has-sidebar .edd-settings-content{width:74%}.edd-has-sidebar .edd-settings-sidebar{width:23%}}.taxes-tab .edd-has-sidebar .edd-settings-content,.taxes-tab .edd-has-sidebar .edd-settings-sidebar{float:none;width:100%}.bfcm-promo-img-container{background-color:#35495c;width:100%;height:160px}.bfcm-code{color:#2794da;font-weight:700}.sale-ends{position:absolute;bottom:9px;right:14px;display:inline-block;color:#6c7883;font-size:12px;text-align:right;font-style:italic;width:150px} \ No newline at end of file diff --git a/wp-content/plugins/easy-digital-downloads/assets/css/edd-rtl.min.css b/wp-content/plugins/easy-digital-downloads/assets/css/edd-rtl.min.css index e0a5565e..ffe05d39 100644 --- a/wp-content/plugins/easy-digital-downloads/assets/css/edd-rtl.min.css +++ b/wp-content/plugins/easy-digital-downloads/assets/css/edd-rtl.min.css @@ -1 +1 @@ -.edd-icon{display:inline-block;fill:currentColor;position:relative;vertical-align:middle}.edd-icon-spin{display:inline-block;animation:edd-icon-spin 2s linear infinite}@keyframes edd-icon-spin{0%{transform:rotate(0deg)}to{transform:rotate(-359deg)}}.edd_clearfix:after{display:block;visibility:hidden;float:none;clear:both;text-indent:-9999px;content:"."}#edd_checkout_cart{text-align:right;width:100%;border:none;margin:0 0 21px;table-layout:auto}#edd_checkout_cart td,#edd_checkout_cart th{text-align:right;border:1px solid #eee;color:#666;padding:.5em 1.387em}#edd_checkout_cart .edd_cart_header_row th{background:#fafafa;padding:1.387em}#edd_checkout_cart .edd_cart_discount_row th,#edd_checkout_cart .edd_cart_tax_row th{background:none}#edd_checkout_cart th{font-weight:700}#edd_checkout_cart td{line-height:25px;vertical-align:middle;background:#fff}#edd_checkout_cart td.edd_cart_actions,#edd_checkout_cart td:last-child,#edd_checkout_cart th.edd_cart_actions,#edd_checkout_cart th.edd_cart_total,#edd_checkout_cart th:last-child{text-align:left}#edd_checkout_cart td img{float:right;margin:0 0 0 8px;background:none;padding:0;border:none}#edd_checkout_cart input.edd-item-quantity{width:3em;padding:2px}#edd_checkout_cart .edd_discount{display:inline-block;margin-right:5px}.edd_discount_remove{display:inline-block;width:14px;height:14px;background:url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22none%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%221.5%22%20stroke%3D%22currentColor%22%3E%0A%20%20%3Cpath%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20d%3D%22M9.75%209.75l4.5%204.5m0-4.5l-4.5%204.5M21%2012a9%209%200%2011-18%200%209%209%200%200118%200z%22%20%2F%3E%0A%3C%2Fsvg%3E%0A) 100% 0 no-repeat;position:relative;opacity:.6}.edd_discount_remove:hover{opacity:1}#edd_checkout_cart br{display:none}#edd_checkout_cart a.edd-cart-saving-button{font-weight:400;text-decoration:none}#edd_checkout_form_wrap legend{display:block;font-size:120%;line-height:1;font-weight:700;width:100%;margin:0 0 1rem;padding:0}#edd_checkout_form_wrap label{font-weight:700;display:block;position:relative;line-height:100%;font-size:95%;margin:0 0 5px}#edd_checkout_form_wrap span.edd-description{color:#666;font-size:80%;display:block;margin:0 0 5px}#edd_checkout_form_wrap input.edd-input,#edd_checkout_form_wrap textarea.edd-input{display:inline-block;width:70%}#edd_checkout_form_wrap select.edd-select{display:block;width:60%}#edd_checkout_form_wrap select.edd-select.edd-select-small{display:inline;width:auto}#edd_checkout_form_wrap input.edd-input.error,#edd_checkout_form_wrap textarea.edd-input.error{border-color:#c4554e}#edd_checkout_form_wrap>p{margin:0 0 21px}#edd_checkout_form_wrap span.edd-required-indicator{color:#b94a48;display:inline}#edd_checkout_form_wrap input[type=email],#edd_checkout_form_wrap input[type=password],#edd_checkout_form_wrap input[type=tel],#edd_checkout_form_wrap input[type=text],#edd_checkout_form_wrap textarea{padding:4px 6px}#edd_checkout_form_wrap input[type=radio]{border:none;margin-left:5px}#edd_checkout_form_wrap input[type=checkbox]{display:inline-block;margin:0 0 0 5px}#edd_checkout_form_wrap input[type=checkbox]+label,#edd_checkout_form_wrap input[type=checkbox]+label:after{display:inline}#edd_checkout_form_wrap .edd-payment-icons{display:flex;margin:0 0 8px}#edd_checkout_form_wrap .edd-payment-icons img.payment-icon{max-height:32px}#edd_checkout_form_wrap .edd-payment-icons .payment-icon{margin:0 0 0 10px}#edd_checkout_form_wrap #edd-payment-mode-wrap label{display:inline-block;margin:0 0 0 20px}#edd_checkout_form_wrap #edd-payment-mode-wrap .edd-payment-mode-label{font-weight:700;display:inline-block;position:relative;margin-bottom:5px}#edd_checkout_form_wrap fieldset{border:1px solid #eee;padding:1.387em;margin:0 0 21px}#edd_checkout_form_wrap #edd_discount_code,#edd_checkout_form_wrap #edd_purchase_submit,#edd_checkout_form_wrap #edd_register_account_fields{padding:0;border:none}#edd_checkout_form_wrap fieldset fieldset{margin:0;border:none;padding:0}#edd_checkout_form_wrap #edd-login-account-wrap,#edd_checkout_form_wrap #edd-new-account-wrap,#edd_checkout_form_wrap #edd_final_total_wrap,#edd_checkout_form_wrap #edd_show_discount,#edd_checkout_form_wrap .edd-cart-adjustment{background:#fafafa;color:#666;padding:.5em 1.387em}#edd_checkout_form_wrap #edd-discount-code-wrap,#edd_checkout_form_wrap #edd_final_total_wrap,#edd_checkout_form_wrap #edd_show_discount{border:1px solid #eee}#edd_checkout_form_wrap .edd-cart-adjustment{padding:1.387em}#edd_checkout_form_wrap .edd-cart-adjustment input.edd-input,#edd_checkout_form_wrap .edd-cart-adjustment input.edd-submit{display:inline-block}#edd_checkout_form_wrap .edd-cart-adjustment input.edd-submit{padding:3px 12px;margin-bottom:2px}#edd_checkout_form_wrap #edd-discount-error-wrap{width:100%;display:inline-block;margin:1em 0 0}#edd_checkout_form_wrap #edd-login-account-wrap,#edd_checkout_form_wrap #edd-new-account-wrap{margin:-1.387em -1.387em 21px;border-right:none;border-left:none;border-top:none}#edd_checkout_form_wrap #edd_payment_mode_select,#edd_checkout_form_wrap fieldset#edd_register_fields #edd_checkout_user_info{margin-bottom:21px}#edd_checkout_form_wrap fieldset#edd_register_account_fields legend{padding-top:11px}#edd_checkout_form_wrap fieldset#edd_register_account_fields p.edd_login_password,#edd_checkout_form_wrap fieldset#edd_register_account_fields p.edd_register_password{margin:0}#edd_checkout_form_wrap fieldset#edd_cc_fields legend{border:none;padding:0}#edd_checkout_form_wrap fieldset p:last-child{margin-bottom:0}#edd_checkout_form_wrap fieldset#edd_cc_fields #edd-card-number-wrap{margin-top:5px}#edd_checkout_form_wrap #edd_purchase_final_total{margin:21px 0}#edd_checkout_form_wrap #edd_purchase_final_total p{margin:0}#edd_secure_site_wrapper{padding:4px 0 4px 4px;font-weight:700}#edd_secure_site_wrapper span{vertical-align:middle}#edd_checkout_form_wrap input.edd-input.card-number.valid{background-image:url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22none%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%221.5%22%20stroke%3D%22green%22%3E%0A%20%20%3Cpath%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20d%3D%22M4.5%2012.75l6%206%209-13.5%22%20%2F%3E%0A%3C%2Fsvg%3E%0A);background-repeat:no-repeat;background-position:2% 50%}#edd_checkout_form_wrap span.exp-divider{display:inline}#edd_checkout_form_wrap span.card-type{position:absolute;top:0;left:0}#edd_checkout_form_wrap span.card-type.off{display:none}#edd_checkout_form_wrap .edd-cart-ajax{box-shadow:none}.edd-amazon-profile-wrapper{font-size:12px}.edd-amazon-profile-name{font-weight:600}.edd-amazon-logout{font-size:10px;line-height:12px}.edd-amazon-logout a{cursor:pointer}#edd-amazon-address-box,#edd-amazon-wallet-box{height:228px;width:350px}#edd-amazon-address-box{margin-bottom:15px}@media only screen and (min-width:768px){#edd-amazon-address-box,#edd-amazon-wallet-box{width:100%;height:228px}}.edd_purchase_submit_wrapper{position:relative}.edd_purchase_submit_wrapper a.edd-add-to-cart{text-decoration:none;display:none;position:relative;overflow:hidden}.edd_purchase_submit_wrapper .edd-cart-ajax{display:none;position:relative;right:-35px}.edd-submit.button.edd-ajax-loading{padding-left:30px}.edd-add-to-cart .edd-add-to-cart-label{opacity:1;filter:alpha(opacity=100)}.edd-loading,.edd-loading:after{border-radius:50%;display:block;width:1.5em;height:1.5em}.edd-loading{animation:edd-spinning 1.1s linear infinite;border:.2em solid hsla(0,0%,100%,.2);border-right-color:#fff;font-size:.75em;position:absolute;right:calc(50% - .75em);top:calc(50% - .75em);opacity:0;filter:alpha(opacity=0);transform:translateZ(0)}.edd-discount-loader.edd-loading,.edd-loading-ajax.edd-loading,a.edd-add-to-cart.white .edd-loading{border-color:rgba(0,0,0,.2) #000 rgba(0,0,0,.2) rgba(0,0,0,.2)}.edd-loading-ajax.edd-loading{display:inline-block;position:relative;top:0;right:.25em;vertical-align:middle}#edd_checkout_form_wrap .edd-cart-adjustment .edd-apply-discount.edd-submit{display:inline-block}.edd-discount-loader.edd-loading{display:inline-block;position:relative;right:auto;vertical-align:middle;width:1.25em;height:1.25em}.edd-loading-ajax.edd-loading{opacity:1}@keyframes edd-spinning{0%{transform:rotate(0deg)}to{transform:rotate(-1turn)}}.edd-loading,a.edd-add-to-cart .edd-add-to-cart-label{transition:opacity .1s!important}.edd-add-to-cart[data-edd-loading] .edd-add-to-cart-label{opacity:0;filter:alpha(opacity=0)}.edd-add-to-cart[data-edd-loading] .edd-loading,.edd-discount-loader.edd-loading{opacity:1;filter:alpha(opacity=100)}.edd-cart-added-alert{color:#567622;display:block;position:absolute}.edd_form input.edd-input.required,.edd_form select.edd-select.required{color:#000}body.edd_receipt_page{background-color:#fff;color:#141412;margin:0;font-family:Helvetica,sans-serif;font-size:12px}body.edd_receipt_page:before{position:relative}body.edd_receipt_page #edd_receipt_wrapper{width:660px;margin:0 auto;padding:50px 0}body.edd_receipt_page table{display:table;width:100%;border-bottom:1px solid #ededed;border-collapse:collapse;border-spacing:0;font-size:14px;line-height:2;margin:0 0 20px}body.edd_receipt_page td,body.edd_receipt_page th{display:table-cell;text-align:right;border-top:1px solid #ededed;padding:6px 10px;font-weight:400}body.edd_receipt_page th{font-weight:700;text-transform:uppercase}body.edd_receipt_page h3{font-size:22px;margin:40px 0 5px;clear:both;display:block;font-weight:700}body.edd_receipt_page li{list-style:none}table#edd_purchase_receipt,table#edd_purchase_receipt_products{width:100%}table#edd_purchase_receipt_products td,table#edd_purchase_receipt_products th,table#edd_purchase_receipt td,table#edd_purchase_receipt th{text-align:right}table#edd_purchase_receipt .edd_receipt_payment_status.cancelled,table#edd_purchase_receipt .edd_receipt_payment_status.failed,table#edd_purchase_receipt .edd_receipt_payment_status.pending,table#edd_purchase_receipt .edd_receipt_payment_status.revoked{color:#f73f2e}table#edd_purchase_receipt_products li{list-style:none;margin:0 10px 8px 0}table#edd_purchase_receipt_products ul.edd_purchase_receipt_files,table#edd_purchase_receipt ul{margin:0;padding:0}table#edd_purchase_receipt li.edd_download_file{list-style:none;margin:0 0 8px}table#edd_purchase_receipt_products .edd_purchase_receipt_product_notes{font-style:italic}table#edd_purchase_receipt_products .edd_purchase_receipt_product_name{font-weight:700}table#edd_purchase_receipt_products .edd_bundled_product_name{font-style:italic;font-weight:700}#edd_user_history{text-align:right;width:100%;border-top:1px solid #f0f0f0;border-bottom:none}#edd_user_history td,#edd_user_history th{text-align:right;padding:3px 5px;border-bottom:1px solid #f0f0f0;border-top:none}#edd_user_history th{font-weight:700;background:#f5f5f5}#edd_user_history td{line-height:25px;vertical-align:middle}#edd_user_history .edd_purchase_status.cancelled,#edd_user_history .edd_purchase_status.failed,#edd_user_history .edd_purchase_status.pending,#edd_user_history .edd_purchase_status.revoked{color:#f73f2e}#edd_login_form legend,#edd_register_form legend{font-size:120%;margin-bottom:1em}#edd_login_form fieldset,#edd_register_form fieldset{border:none}#edd_login_form .edd-input,#edd_register_form .edd-input{box-sizing:border-box}#edd_login_form label,#edd_register_form label{cursor:pointer}#edd_profile_editor_form p{margin-bottom:8px}#edd_profile_editor_form label{display:inline-block}#edd_profile_editor_form .edd-profile-emails{list-style-type:none;display:inline-table;margin-right:0;margin-bottom:0}#edd_profile_editor_form .edd-profile-email{width:auto}#edd_profile_editor_form .edd-profile-email .actions{display:none}#edd_profile_editor_form .edd-profile-email:hover>span{display:inline-block}.edd_added_to_cart_alert{padding:5px;font-size:14px;border:1px solid #046a9e;background:#9ecce2;color:#333;margin:8px 0}.edd_added_to_cart_alert a.edd_alert_checkout_link{color:#000!important}input.edd_submit_plain{background:none!important;border:none!important;padding:0!important;display:inline;cursor:pointer}.single-download .edd_download_purchase_form{margin-bottom:1.387em}.edd_download_purchase_form .edd_download_quantity_wrapper{margin:0 0 .5em}.edd_download_purchase_form .edd_download_quantity_wrapper .edd-item-quantity{width:75px}.edd_download_purchase_form .edd_price_options{margin:0 0 15px}.edd_download_purchase_form .edd_price_options ul{margin:0;padding:0;list-style:none}.edd_download_purchase_form .edd_price_options li{display:block;padding:0;margin:0}.edd_download_purchase_form .edd_price_options span{display:inline;padding:0;margin:0}.edd_download_purchase_form .edd_price_options .edd_download_quantity_wrapper{padding-right:18px}.edd_download_purchase_form .edd_price_options .edd_download_quantity_wrapper *{font-size:80%}.edd_download_purchase_form .edd_price_options input.edd-item-quantity{display:inline;width:50px;max-width:90%}#edd-purchase-button,.edd-submit,[type=submit].edd-submit{display:inline-block;padding:6px 12px;margin:0;font-size:14px;font-weight:400;line-height:1.428571429;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;border:1px solid #ccc;border-radius:4px;box-shadow:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.edd-submit.button:focus,[type=submit].edd-submit:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.edd-submit.button:active{background-image:none;outline:0;box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.edd-submit.plain{padding:0;border:none;border-radius:0}.edd-submit.button,.edd-submit.button.gray,.edd-submit.button:visited{color:#333;background:#f0f0f0;border-color:#ccc}.edd-submit.button.gray:active,.edd-submit.button.gray:focus,.edd-submit.button.gray:hover,.edd-submit.button:active,.edd-submit.button:focus,.edd-submit.button:hover{color:#333;background:#ebebeb;border-color:#adadad}.edd-submit.button.gray:active{background-image:none}.edd-submit.button.white{color:#333;background:#fff;border-color:#ccc}.edd-submit.button.white:active,.edd-submit.button.white:focus,.edd-submit.button.white:hover{color:#333;background:#ebebeb;border-color:#adadad}.edd-submit.button.white:active{background-image:none}.edd-submit.button.blue{color:#fff;background:#428bca;border-color:#357ebd}.edd-submit.button.blue.active,.edd-submit.button.blue:focus,.edd-submit.button.blue:hover{color:#fff;background:#3276b1;border-color:#285e8e}.edd-submit.button.blue.active{background-image:none}.edd-submit.button.red{color:#fff;background:#d9534f;border-color:#d43f3a}.edd-submit.button.red:active,.edd-submit.button.red:focus,.edd-submit.button.red:hover{color:#fff;background:#d2322d;border-color:#ac2925}.edd-submit.button.red:active{background-image:none}.edd-submit.button.green{color:#fff;background:#5cb85c;border-color:#4cae4c}.edd-submit.button.green:active,.edd-submit.button.green:focus,.edd-submit.button.green:hover{color:#fff;background:#47a447;border-color:#398439}.edd-submit.button.green:active{background-image:none}.edd-submit.button.yellow{color:#fff;background:#f0ad4e;border-color:#eea236}.edd-submit.button.yellow:active,.edd-submit.button.yellow:focus,.edd-submit.button.yellow:hover{color:#fff;background:#ed9c28;border-color:#d58512}.edd-submit.button.yellow:active{background-image:none}.edd-submit.button.orange{color:#fff;background:#ed9c28;border-color:#e3921e}.edd-submit.button.orange:active,.edd-submit.button.orange:focus,.edd-submit.button.orange:hover{color:#fff;background:#e59016;border-color:#d58512}.edd-submit.button.orange:active{background-image:none}.edd-submit.button.dark-gray{color:#fff;background:#363636;border-color:#222}.edd-submit.button.dark-gray:active,.edd-submit.button.dark-gray:focus,.edd-submit.button.dark-gray:hover{color:#fff;background:#333;border-color:#adadad}.edd-submit.button.dark-gray:active{background-image:none}.edd_downloads_list{display:-ms-grid;display:grid;grid-column-gap:20px;grid-row-gap:40px}.edd_downloads_list:after{content:"";display:table;clear:both}.edd_download{float:right}.edd_download_columns_1 .edd_download{width:100%}.edd_download_columns_2 .edd_download{width:50%}.edd_download_columns_0 .edd_download,.edd_download_columns_3 .edd_download{width:33%}.edd_download_columns_4 .edd_download{width:25%}.edd_download_columns_5 .edd_download{width:20%}.edd_download_columns_6 .edd_download{width:16.6%}.edd_download_inner{padding:0 8px 8px;margin:0 0 10px}.edd_download_columns_2 .edd_download:nth-child(odd),.edd_download_columns_3 .edd_download:nth-child(3n+1),.edd_download_columns_4 .edd_download:nth-child(4n+1),.edd_download_columns_5 .edd_download:nth-child(5n+1),.edd_download_columns_6 .edd_download:nth-child(6n+1){clear:right}.edd_download_image{max-width:100%}.edd_download .edd_price{margin-bottom:10px}@media(min-width:768px){.edd_downloads_list:not(.edd_download_columns_1){-ms-grid-columns:(1fr)[2];grid-template-columns:repeat(2,1fr)}}@media(min-width:1200px){.edd_downloads_list.edd_download_columns_2{-ms-grid-columns:(1fr)[2];grid-template-columns:repeat(2,1fr)}.edd_downloads_list.edd_download_columns_3{-ms-grid-columns:(1fr)[3];grid-template-columns:repeat(3,1fr)}.edd_downloads_list.edd_download_columns_4{-ms-grid-columns:(1fr)[4];grid-template-columns:repeat(4,1fr)}.edd_downloads_list.edd_download_columns_5{-ms-grid-columns:(1fr)[5];grid-template-columns:repeat(5,1fr)}.edd_downloads_list.edd_download_columns_6{-ms-grid-columns:(1fr)[6];grid-template-columns:repeat(6,1fr)}}@supports(display:grid){.edd_downloads_list .edd_download{width:auto}.edd_download_inner{padding:0;margin:0}}.edd-hide-on-empty.cart-empty{display:none}.edd-cart-ajax{margin:0 4px 0 8px;position:relative;top:2px;background:none;border:none;padding:0}.edd-cart-number-of-items{font-style:italic;color:grey}.edd-cart-meta.edd_subtotal{font-weight:700;font-style:italic}.edd-cart-meta.edd_cart_tax{font-size:1em;font-style:italic}.edd-cart-meta.edd_cart_tax:before{font-style:normal}.edd-cart-meta.edd_total{font-weight:700}.edd-cart-meta{padding:2px 5px}.edd-cart-meta.edd_subtotal,.edd-cart-meta.edd_total{background-color:#f9f9f9}.edd_errors:not(.edd-alert){border-radius:2px;border:1px solid #e6db55;margin:0 0 21px;background:#ffffe0;color:#333}.edd_error{padding:10px}p.edd_error{margin:0!important}.edd_success:not(.edd-alert){border-radius:2px;border:1px solid #b3ce89;margin:20px 0;background:#d5eab3;color:#567622;padding:6px 8px;box-shadow:inset 0 1px 0 hsla(0,0%,100%,.7)}.edd-alert{border-radius:2px;margin-bottom:20px;padding:10px;border:1px solid transparent;vertical-align:middle}.edd-alert p{padding:0}.edd-alert p:not(:last-child){margin-bottom:5px}.edd-alert p:last-child{margin-bottom:0}.edd-alert-error{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.edd-alert-success{background-color:#dff0d8;border-color:#d6e9c6;color:#3c763d}.edd-alert-info{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.edd-alert-warn{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc} \ No newline at end of file +.edd-icon{display:inline-block;fill:currentColor;position:relative;vertical-align:middle}.edd-icon-spin{display:inline-block;animation:edd-icon-spin 2s linear infinite}@keyframes edd-icon-spin{0%{transform:rotate(0deg)}to{transform:rotate(-359deg)}}.edd_clearfix:after{display:block;visibility:hidden;float:none;clear:both;text-indent:-9999px;content:"."}#edd_checkout_cart{text-align:right;width:100%;border:none;margin:0 0 21px;table-layout:auto}#edd_checkout_cart td,#edd_checkout_cart th{text-align:right;border:1px solid #eee;color:#666;padding:.5em 1.387em}#edd_checkout_cart .edd_cart_header_row th{background:#fafafa;padding:1.387em}#edd_checkout_cart .edd_cart_discount_row th,#edd_checkout_cart .edd_cart_tax_row th{background:none}#edd_checkout_cart th{font-weight:700}#edd_checkout_cart td{line-height:25px;vertical-align:middle;background:#fff}#edd_checkout_cart td.edd_cart_actions,#edd_checkout_cart td:last-child,#edd_checkout_cart th.edd_cart_actions,#edd_checkout_cart th.edd_cart_total,#edd_checkout_cart th:last-child{text-align:left}#edd_checkout_cart td img{float:right;margin:0 0 0 8px;background:none;padding:0;border:none}#edd_checkout_cart input.edd-item-quantity{width:3em;padding:2px}#edd_checkout_cart .edd_discount{display:inline-block;margin-right:5px}.edd_discount_remove{display:inline-block;width:14px;height:14px;background:url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22none%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%221.5%22%20stroke%3D%22currentColor%22%3E%0A%20%20%3Cpath%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20d%3D%22M9.75%209.75l4.5%204.5m0-4.5l-4.5%204.5M21%2012a9%209%200%2011-18%200%209%209%200%200118%200z%22%20%2F%3E%0A%3C%2Fsvg%3E%0A) 100% 0 no-repeat;position:relative;opacity:.6}.edd_discount_remove:hover{opacity:1}#edd_checkout_cart br{display:none}#edd_checkout_cart a.edd-cart-saving-button{font-weight:400;text-decoration:none}#edd_checkout_form_wrap legend{display:block;font-size:120%;line-height:1;font-weight:700;width:100%;margin:0 0 1rem;padding:0}#edd_checkout_form_wrap label{font-weight:700;display:block;position:relative;line-height:100%;font-size:95%;margin:0 0 5px}#edd_checkout_form_wrap span.edd-description{color:#666;font-size:80%;display:block;margin:0 0 5px}#edd_checkout_form_wrap input.edd-input,#edd_checkout_form_wrap textarea.edd-input{display:inline-block;width:70%}#edd_checkout_form_wrap select.edd-select{display:block;width:60%}#edd_checkout_form_wrap select.edd-select.edd-select-small{display:inline;width:auto}#edd_checkout_form_wrap input.edd-input.error,#edd_checkout_form_wrap textarea.edd-input.error{border-color:#c4554e}#edd_checkout_form_wrap>p{margin:0 0 21px}#edd_checkout_form_wrap span.edd-required-indicator{color:#b94a48;display:inline}#edd_checkout_form_wrap input[type=email],#edd_checkout_form_wrap input[type=password],#edd_checkout_form_wrap input[type=tel],#edd_checkout_form_wrap input[type=text],#edd_checkout_form_wrap textarea{padding:4px 6px}#edd_checkout_form_wrap input[type=radio]{border:none;margin-left:5px}#edd_checkout_form_wrap input[type=checkbox]{display:inline-block;margin:0 0 0 5px}#edd_checkout_form_wrap input[type=checkbox]+label,#edd_checkout_form_wrap input[type=checkbox]+label:after{display:inline}#edd_checkout_form_wrap .edd-payment-icons{display:flex;margin:0 0 8px}#edd_checkout_form_wrap .edd-payment-icons img.payment-icon{max-height:32px}#edd_checkout_form_wrap .edd-payment-icons .payment-icon{margin:0 0 0 10px}#edd_checkout_form_wrap #edd-payment-mode-wrap label{display:inline-block;margin:0 0 0 20px}#edd_checkout_form_wrap #edd-payment-mode-wrap .edd-payment-mode-label{font-weight:700;display:inline-block;position:relative;margin-bottom:5px}#edd_checkout_form_wrap fieldset{border:1px solid #eee;padding:1.387em;margin:0 0 21px}#edd_checkout_form_wrap #edd_discount_code,#edd_checkout_form_wrap #edd_purchase_submit,#edd_checkout_form_wrap #edd_register_account_fields{padding:0;border:none}#edd_checkout_form_wrap fieldset fieldset{margin:0;border:none;padding:0}#edd_checkout_form_wrap #edd-login-account-wrap,#edd_checkout_form_wrap #edd-new-account-wrap,#edd_checkout_form_wrap #edd_final_total_wrap,#edd_checkout_form_wrap #edd_show_discount,#edd_checkout_form_wrap .edd-cart-adjustment{background:#fafafa;color:#666;padding:.5em 1.387em}#edd_checkout_form_wrap #edd-discount-code-wrap,#edd_checkout_form_wrap #edd_final_total_wrap,#edd_checkout_form_wrap #edd_show_discount{border:1px solid #eee}#edd_checkout_form_wrap .edd-cart-adjustment{padding:1.387em}#edd_checkout_form_wrap .edd-cart-adjustment input.edd-input,#edd_checkout_form_wrap .edd-cart-adjustment input.edd-submit{display:inline-block}#edd_checkout_form_wrap .edd-cart-adjustment input.edd-submit{padding:3px 12px;margin-bottom:2px}#edd_checkout_form_wrap #edd-discount-error-wrap{width:100%;display:inline-block;margin:1em 0 0}#edd_checkout_form_wrap #edd-login-account-wrap,#edd_checkout_form_wrap #edd-new-account-wrap{margin:-1.387em -1.387em 21px;border-right:none;border-left:none;border-top:none}#edd_checkout_form_wrap #edd_payment_mode_select,#edd_checkout_form_wrap fieldset#edd_register_fields #edd_checkout_user_info{margin-bottom:21px}#edd_checkout_form_wrap fieldset#edd_register_account_fields legend{padding-top:11px}#edd_checkout_form_wrap fieldset#edd_register_account_fields p.edd_login_password,#edd_checkout_form_wrap fieldset#edd_register_account_fields p.edd_register_password{margin:0}#edd_checkout_form_wrap fieldset#edd_cc_fields legend{border:none;padding:0}#edd_checkout_form_wrap fieldset p:last-child{margin-bottom:0}#edd_checkout_form_wrap fieldset#edd_cc_fields #edd-card-number-wrap{margin-top:5px}#edd_checkout_form_wrap #edd_purchase_final_total{margin:21px 0}#edd_checkout_form_wrap #edd_purchase_final_total p{margin:0}#edd_secure_site_wrapper{padding:4px 0 4px 4px;font-weight:700}#edd_secure_site_wrapper span{vertical-align:middle}#edd_checkout_form_wrap input.edd-input.card-number.valid{background-image:url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22none%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%221.5%22%20stroke%3D%22green%22%3E%0A%20%20%3Cpath%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20d%3D%22M4.5%2012.75l6%206%209-13.5%22%20%2F%3E%0A%3C%2Fsvg%3E%0A);background-repeat:no-repeat;background-position:2% 50%}#edd_checkout_form_wrap span.exp-divider{display:inline}#edd_checkout_form_wrap span.card-type{position:absolute;top:0;left:0}#edd_checkout_form_wrap span.card-type.off{display:none}#edd_checkout_form_wrap .edd-cart-ajax{box-shadow:none}.edd-amazon-profile-wrapper{font-size:12px}.edd-amazon-profile-name{font-weight:600}.edd-amazon-logout{font-size:10px;line-height:12px}.edd-amazon-logout a{cursor:pointer}#edd-amazon-address-box,#edd-amazon-wallet-box{height:228px;width:350px}#edd-amazon-address-box{margin-bottom:15px}.edd_cart_tax .edd-loading-ajax.edd-loading{margin:0 auto 0 0;display:inline-block}@media only screen and (min-width:768px){#edd-amazon-address-box,#edd-amazon-wallet-box{width:100%;height:228px}}.edd_purchase_submit_wrapper{position:relative}.edd_purchase_submit_wrapper a.edd-add-to-cart{text-decoration:none;display:none;position:relative;overflow:hidden}.edd_purchase_submit_wrapper .edd-cart-ajax{display:none;position:relative;right:-35px}.edd-submit.button.edd-ajax-loading{padding-left:30px}.edd-add-to-cart .edd-add-to-cart-label{opacity:1;filter:alpha(opacity=100)}.edd-loading,.edd-loading:after{border-radius:50%;display:block;width:1.5em;height:1.5em}.edd-loading{animation:edd-spinning 1.1s linear infinite;border:.2em solid hsla(0,0%,100%,.2);border-right-color:#fff;font-size:.75em;position:absolute;right:calc(50% - .75em);top:calc(50% - .75em);opacity:0;filter:alpha(opacity=0);transform:translateZ(0)}.edd-discount-loader.edd-loading,.edd-loading-ajax.edd-loading,a.edd-add-to-cart.white .edd-loading{border-color:rgba(0,0,0,.2) #000 rgba(0,0,0,.2) rgba(0,0,0,.2)}.edd-loading-ajax.edd-loading{display:inline-block;position:relative;top:0;right:.25em;vertical-align:middle}#edd_checkout_form_wrap .edd-cart-adjustment .edd-apply-discount.edd-submit{display:inline-block}.edd-discount-loader.edd-loading{display:inline-block;position:relative;right:auto;vertical-align:middle;width:1.25em;height:1.25em}.edd-loading-ajax.edd-loading{opacity:1}@keyframes edd-spinning{0%{transform:rotate(0deg)}to{transform:rotate(-1turn)}}.edd-loading,a.edd-add-to-cart .edd-add-to-cart-label{transition:opacity .1s!important}.edd-add-to-cart[data-edd-loading] .edd-add-to-cart-label{opacity:0;filter:alpha(opacity=0)}.edd-add-to-cart[data-edd-loading] .edd-loading,.edd-discount-loader.edd-loading{opacity:1;filter:alpha(opacity=100)}.edd-cart-added-alert{color:#567622;display:block;position:absolute}.edd_form input.edd-input.required,.edd_form select.edd-select.required{color:#000}body.edd_receipt_page{background-color:#fff;color:#141412;margin:0;font-family:Helvetica,sans-serif;font-size:12px}body.edd_receipt_page:before{position:relative}body.edd_receipt_page #edd_receipt_wrapper{width:660px;margin:0 auto;padding:50px 0}body.edd_receipt_page table{display:table;width:100%;border-bottom:1px solid #ededed;border-collapse:collapse;border-spacing:0;font-size:14px;line-height:2;margin:0 0 20px}body.edd_receipt_page td,body.edd_receipt_page th{display:table-cell;text-align:right;border-top:1px solid #ededed;padding:6px 10px;font-weight:400}body.edd_receipt_page th{font-weight:700;text-transform:uppercase}body.edd_receipt_page h3{font-size:22px;margin:40px 0 5px;clear:both;display:block;font-weight:700}body.edd_receipt_page li{list-style:none}table#edd_purchase_receipt,table#edd_purchase_receipt_products{width:100%}table#edd_purchase_receipt_products td,table#edd_purchase_receipt_products th,table#edd_purchase_receipt td,table#edd_purchase_receipt th{text-align:right}table#edd_purchase_receipt .edd_receipt_payment_status.cancelled,table#edd_purchase_receipt .edd_receipt_payment_status.failed,table#edd_purchase_receipt .edd_receipt_payment_status.pending,table#edd_purchase_receipt .edd_receipt_payment_status.revoked{color:#f73f2e}table#edd_purchase_receipt_products li{list-style:none;margin:0 10px 8px 0}table#edd_purchase_receipt_products ul.edd_purchase_receipt_files,table#edd_purchase_receipt ul{margin:0;padding:0}table#edd_purchase_receipt li.edd_download_file{list-style:none;margin:0 0 8px}table#edd_purchase_receipt_products .edd_purchase_receipt_product_notes{font-style:italic}table#edd_purchase_receipt_products .edd_purchase_receipt_product_name{font-weight:700}table#edd_purchase_receipt_products .edd_bundled_product_name{font-style:italic;font-weight:700}#edd_user_history{text-align:right;width:100%;border-top:1px solid #f0f0f0;border-bottom:none}#edd_user_history td,#edd_user_history th{text-align:right;padding:3px 5px;border-bottom:1px solid #f0f0f0;border-top:none}#edd_user_history th{font-weight:700;background:#f5f5f5}#edd_user_history td{line-height:25px;vertical-align:middle}#edd_user_history .edd_purchase_status.cancelled,#edd_user_history .edd_purchase_status.failed,#edd_user_history .edd_purchase_status.pending,#edd_user_history .edd_purchase_status.revoked{color:#f73f2e}#edd_login_form legend,#edd_register_form legend{font-size:120%;margin-bottom:1em}#edd_login_form fieldset,#edd_register_form fieldset{border:none}#edd_login_form .edd-input,#edd_register_form .edd-input{box-sizing:border-box}#edd_login_form label,#edd_register_form label{cursor:pointer}#edd_profile_editor_form p{margin-bottom:8px}#edd_profile_editor_form label{display:inline-block}#edd_profile_editor_form .edd-profile-emails{list-style-type:none;display:inline-table;margin-right:0;margin-bottom:0}#edd_profile_editor_form .edd-profile-email{width:auto}#edd_profile_editor_form .edd-profile-email .actions{display:none}#edd_profile_editor_form .edd-profile-email:hover>span{display:inline-block}.edd_added_to_cart_alert{padding:5px;font-size:14px;border:1px solid #046a9e;background:#9ecce2;color:#333;margin:8px 0}.edd_added_to_cart_alert a.edd_alert_checkout_link{color:#000!important}input.edd_submit_plain{background:none!important;border:none!important;padding:0!important;display:inline;cursor:pointer}.single-download .edd_download_purchase_form{margin-bottom:1.387em}.edd_download_purchase_form .edd_download_quantity_wrapper{margin:0 0 .5em}.edd_download_purchase_form .edd_download_quantity_wrapper .edd-item-quantity{width:75px}.edd_download_purchase_form .edd_price_options{margin:0 0 15px}.edd_download_purchase_form .edd_price_options ul{margin:0;padding:0;list-style:none}.edd_download_purchase_form .edd_price_options li{display:block;padding:0;margin:0}.edd_download_purchase_form .edd_price_options span{display:inline;padding:0;margin:0}.edd_download_purchase_form .edd_price_options .edd_download_quantity_wrapper{padding-right:18px}.edd_download_purchase_form .edd_price_options .edd_download_quantity_wrapper *{font-size:80%}.edd_download_purchase_form .edd_price_options input.edd-item-quantity{display:inline;width:50px;max-width:90%}#edd-purchase-button,.edd-submit,[type=submit].edd-submit{display:inline-block;padding:6px 12px;margin:0;font-size:14px;font-weight:400;line-height:1.428571429;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;border:1px solid #ccc;border-radius:4px;box-shadow:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.edd-submit.button:focus,[type=submit].edd-submit:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.edd-submit.button:active{background-image:none;outline:0;box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.edd-submit.plain{padding:0;border:none;border-radius:0}.edd-submit.button,.edd-submit.button.gray,.edd-submit.button:visited{color:#333;background:#f0f0f0;border-color:#ccc}.edd-submit.button.gray:active,.edd-submit.button.gray:focus,.edd-submit.button.gray:hover,.edd-submit.button:active,.edd-submit.button:focus,.edd-submit.button:hover{color:#333;background:#ebebeb;border-color:#adadad}.edd-submit.button.gray:active{background-image:none}.edd-submit.button.white{color:#333;background:#fff;border-color:#ccc}.edd-submit.button.white:active,.edd-submit.button.white:focus,.edd-submit.button.white:hover{color:#333;background:#ebebeb;border-color:#adadad}.edd-submit.button.white:active{background-image:none}.edd-submit.button.blue{color:#fff;background:#428bca;border-color:#357ebd}.edd-submit.button.blue.active,.edd-submit.button.blue:focus,.edd-submit.button.blue:hover{color:#fff;background:#3276b1;border-color:#285e8e}.edd-submit.button.blue.active{background-image:none}.edd-submit.button.red{color:#fff;background:#d9534f;border-color:#d43f3a}.edd-submit.button.red:active,.edd-submit.button.red:focus,.edd-submit.button.red:hover{color:#fff;background:#d2322d;border-color:#ac2925}.edd-submit.button.red:active{background-image:none}.edd-submit.button.green{color:#fff;background:#5cb85c;border-color:#4cae4c}.edd-submit.button.green:active,.edd-submit.button.green:focus,.edd-submit.button.green:hover{color:#fff;background:#47a447;border-color:#398439}.edd-submit.button.green:active{background-image:none}.edd-submit.button.yellow{color:#fff;background:#f0ad4e;border-color:#eea236}.edd-submit.button.yellow:active,.edd-submit.button.yellow:focus,.edd-submit.button.yellow:hover{color:#fff;background:#ed9c28;border-color:#d58512}.edd-submit.button.yellow:active{background-image:none}.edd-submit.button.orange{color:#fff;background:#ed9c28;border-color:#e3921e}.edd-submit.button.orange:active,.edd-submit.button.orange:focus,.edd-submit.button.orange:hover{color:#fff;background:#e59016;border-color:#d58512}.edd-submit.button.orange:active{background-image:none}.edd-submit.button.dark-gray{color:#fff;background:#363636;border-color:#222}.edd-submit.button.dark-gray:active,.edd-submit.button.dark-gray:focus,.edd-submit.button.dark-gray:hover{color:#fff;background:#333;border-color:#adadad}.edd-submit.button.dark-gray:active{background-image:none}.edd_downloads_list{display:-ms-grid;display:grid;grid-column-gap:20px;grid-row-gap:40px}.edd_downloads_list:after{content:"";display:table;clear:both}.edd_download{float:right}.edd_download_columns_1 .edd_download{width:100%}.edd_download_columns_2 .edd_download{width:50%}.edd_download_columns_0 .edd_download,.edd_download_columns_3 .edd_download{width:33%}.edd_download_columns_4 .edd_download{width:25%}.edd_download_columns_5 .edd_download{width:20%}.edd_download_columns_6 .edd_download{width:16.6%}.edd_download_inner{padding:0 8px 8px;margin:0 0 10px}.edd_download_columns_2 .edd_download:nth-child(odd),.edd_download_columns_3 .edd_download:nth-child(3n+1),.edd_download_columns_4 .edd_download:nth-child(4n+1),.edd_download_columns_5 .edd_download:nth-child(5n+1),.edd_download_columns_6 .edd_download:nth-child(6n+1){clear:right}.edd_download_image{max-width:100%}.edd_download .edd_price{margin-bottom:10px}@media(min-width:768px){.edd_downloads_list:not(.edd_download_columns_1){-ms-grid-columns:(1fr)[2];grid-template-columns:repeat(2,1fr)}}@media(min-width:1200px){.edd_downloads_list.edd_download_columns_2{-ms-grid-columns:(1fr)[2];grid-template-columns:repeat(2,1fr)}.edd_downloads_list.edd_download_columns_3{-ms-grid-columns:(1fr)[3];grid-template-columns:repeat(3,1fr)}.edd_downloads_list.edd_download_columns_4{-ms-grid-columns:(1fr)[4];grid-template-columns:repeat(4,1fr)}.edd_downloads_list.edd_download_columns_5{-ms-grid-columns:(1fr)[5];grid-template-columns:repeat(5,1fr)}.edd_downloads_list.edd_download_columns_6{-ms-grid-columns:(1fr)[6];grid-template-columns:repeat(6,1fr)}}@supports(display:grid){.edd_downloads_list .edd_download{width:auto}.edd_download_inner{padding:0;margin:0}}.edd-hide-on-empty.cart-empty{display:none}.edd-cart-ajax{margin:0 4px 0 8px;position:relative;top:2px;background:none;border:none;padding:0}.edd-cart-number-of-items{font-style:italic;color:grey}.edd-cart-meta.edd_subtotal{font-weight:700;font-style:italic}.edd-cart-meta.edd_cart_tax{font-size:1em;font-style:italic}.edd-cart-meta.edd_cart_tax:before{font-style:normal}.edd-cart-meta.edd_total{font-weight:700}.edd-cart-meta{padding:2px 5px}.edd-cart-meta.edd_subtotal,.edd-cart-meta.edd_total{background-color:#f9f9f9}.edd_errors:not(.edd-alert){border-radius:2px;border:1px solid #e6db55;margin:0 0 21px;background:#ffffe0;color:#333}.edd_error{padding:10px}p.edd_error{margin:0!important}.edd_success:not(.edd-alert){border-radius:2px;border:1px solid #b3ce89;margin:20px 0;background:#d5eab3;color:#567622;padding:6px 8px;box-shadow:inset 0 1px 0 hsla(0,0%,100%,.7)}.edd-alert{border-radius:2px;margin-bottom:20px;padding:10px;border:1px solid transparent;vertical-align:middle}.edd-alert p{padding:0}.edd-alert p:not(:last-child){margin-bottom:5px}.edd-alert p:last-child{margin-bottom:0}.edd-alert-error{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.edd-alert-success{background-color:#dff0d8;border-color:#d6e9c6;color:#3c763d}.edd-alert-info{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.edd-alert-warn{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc} \ No newline at end of file diff --git a/wp-content/plugins/easy-digital-downloads/assets/css/edd.min.css b/wp-content/plugins/easy-digital-downloads/assets/css/edd.min.css index 33f0c4ef..63712594 100644 --- a/wp-content/plugins/easy-digital-downloads/assets/css/edd.min.css +++ b/wp-content/plugins/easy-digital-downloads/assets/css/edd.min.css @@ -1 +1 @@ -.edd-icon{display:inline-block;fill:currentColor;position:relative;vertical-align:middle}.edd-icon-spin{display:inline-block;animation:edd-icon-spin 2s linear infinite}@keyframes edd-icon-spin{0%{transform:rotate(0deg)}to{transform:rotate(359deg)}}.edd_clearfix:after{display:block;visibility:hidden;float:none;clear:both;text-indent:-9999px;content:"."}#edd_checkout_cart{text-align:left;width:100%;border:none;margin:0 0 21px;table-layout:auto}#edd_checkout_cart td,#edd_checkout_cart th{text-align:left;border:1px solid #eee;color:#666;padding:.5em 1.387em}#edd_checkout_cart .edd_cart_header_row th{background:#fafafa;padding:1.387em}#edd_checkout_cart .edd_cart_discount_row th,#edd_checkout_cart .edd_cart_tax_row th{background:none}#edd_checkout_cart th{font-weight:700}#edd_checkout_cart td{line-height:25px;vertical-align:middle;background:#fff}#edd_checkout_cart td.edd_cart_actions,#edd_checkout_cart td:last-child,#edd_checkout_cart th.edd_cart_actions,#edd_checkout_cart th.edd_cart_total,#edd_checkout_cart th:last-child{text-align:right}#edd_checkout_cart td img{float:left;margin:0 8px 0 0;background:none;padding:0;border:none}#edd_checkout_cart input.edd-item-quantity{width:3em;padding:2px}#edd_checkout_cart .edd_discount{display:inline-block;margin-left:5px}.edd_discount_remove{display:inline-block;width:14px;height:14px;background:url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22none%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%221.5%22%20stroke%3D%22currentColor%22%3E%0A%20%20%3Cpath%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20d%3D%22M9.75%209.75l4.5%204.5m0-4.5l-4.5%204.5M21%2012a9%209%200%2011-18%200%209%209%200%200118%200z%22%20%2F%3E%0A%3C%2Fsvg%3E%0A) 0 0 no-repeat;position:relative;opacity:.6}.edd_discount_remove:hover{opacity:1}#edd_checkout_cart br{display:none}#edd_checkout_cart a.edd-cart-saving-button{font-weight:400;text-decoration:none}#edd_checkout_form_wrap legend{display:block;font-size:120%;line-height:1;font-weight:700;width:100%;margin:0 0 1rem;padding:0}#edd_checkout_form_wrap label{font-weight:700;display:block;position:relative;line-height:100%;font-size:95%;margin:0 0 5px}#edd_checkout_form_wrap span.edd-description{color:#666;font-size:80%;display:block;margin:0 0 5px}#edd_checkout_form_wrap input.edd-input,#edd_checkout_form_wrap textarea.edd-input{display:inline-block;width:70%}#edd_checkout_form_wrap select.edd-select{display:block;width:60%}#edd_checkout_form_wrap select.edd-select.edd-select-small{display:inline;width:auto}#edd_checkout_form_wrap input.edd-input.error,#edd_checkout_form_wrap textarea.edd-input.error{border-color:#c4554e}#edd_checkout_form_wrap>p{margin:0 0 21px}#edd_checkout_form_wrap span.edd-required-indicator{color:#b94a48;display:inline}#edd_checkout_form_wrap input[type=email],#edd_checkout_form_wrap input[type=password],#edd_checkout_form_wrap input[type=tel],#edd_checkout_form_wrap input[type=text],#edd_checkout_form_wrap textarea{padding:4px 6px}#edd_checkout_form_wrap input[type=radio]{border:none;margin-right:5px}#edd_checkout_form_wrap input[type=checkbox]{display:inline-block;margin:0 5px 0 0}#edd_checkout_form_wrap input[type=checkbox]+label,#edd_checkout_form_wrap input[type=checkbox]+label:after{display:inline}#edd_checkout_form_wrap .edd-payment-icons{display:flex;margin:0 0 8px}#edd_checkout_form_wrap .edd-payment-icons img.payment-icon{max-height:32px}#edd_checkout_form_wrap .edd-payment-icons .payment-icon{margin:0 10px 0 0}#edd_checkout_form_wrap #edd-payment-mode-wrap label{display:inline-block;margin:0 20px 0 0}#edd_checkout_form_wrap #edd-payment-mode-wrap .edd-payment-mode-label{font-weight:700;display:inline-block;position:relative;margin-bottom:5px}#edd_checkout_form_wrap fieldset{border:1px solid #eee;padding:1.387em;margin:0 0 21px}#edd_checkout_form_wrap #edd_discount_code,#edd_checkout_form_wrap #edd_purchase_submit,#edd_checkout_form_wrap #edd_register_account_fields{padding:0;border:none}#edd_checkout_form_wrap fieldset fieldset{margin:0;border:none;padding:0}#edd_checkout_form_wrap #edd-login-account-wrap,#edd_checkout_form_wrap #edd-new-account-wrap,#edd_checkout_form_wrap #edd_final_total_wrap,#edd_checkout_form_wrap #edd_show_discount,#edd_checkout_form_wrap .edd-cart-adjustment{background:#fafafa;color:#666;padding:.5em 1.387em}#edd_checkout_form_wrap #edd-discount-code-wrap,#edd_checkout_form_wrap #edd_final_total_wrap,#edd_checkout_form_wrap #edd_show_discount{border:1px solid #eee}#edd_checkout_form_wrap .edd-cart-adjustment{padding:1.387em}#edd_checkout_form_wrap .edd-cart-adjustment input.edd-input,#edd_checkout_form_wrap .edd-cart-adjustment input.edd-submit{display:inline-block}#edd_checkout_form_wrap .edd-cart-adjustment input.edd-submit{padding:3px 12px;margin-bottom:2px}#edd_checkout_form_wrap #edd-discount-error-wrap{width:100%;display:inline-block;margin:1em 0 0}#edd_checkout_form_wrap #edd-login-account-wrap,#edd_checkout_form_wrap #edd-new-account-wrap{margin:-1.387em -1.387em 21px;border-left:none;border-right:none;border-top:none}#edd_checkout_form_wrap #edd_payment_mode_select,#edd_checkout_form_wrap fieldset#edd_register_fields #edd_checkout_user_info{margin-bottom:21px}#edd_checkout_form_wrap fieldset#edd_register_account_fields legend{padding-top:11px}#edd_checkout_form_wrap fieldset#edd_register_account_fields p.edd_login_password,#edd_checkout_form_wrap fieldset#edd_register_account_fields p.edd_register_password{margin:0}#edd_checkout_form_wrap fieldset#edd_cc_fields legend{border:none;padding:0}#edd_checkout_form_wrap fieldset p:last-child{margin-bottom:0}#edd_checkout_form_wrap fieldset#edd_cc_fields #edd-card-number-wrap{margin-top:5px}#edd_checkout_form_wrap #edd_purchase_final_total{margin:21px 0}#edd_checkout_form_wrap #edd_purchase_final_total p{margin:0}#edd_secure_site_wrapper{padding:4px 4px 4px 0;font-weight:700}#edd_secure_site_wrapper span{vertical-align:middle}#edd_checkout_form_wrap input.edd-input.card-number.valid{background-image:url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22none%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%221.5%22%20stroke%3D%22green%22%3E%0A%20%20%3Cpath%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20d%3D%22M4.5%2012.75l6%206%209-13.5%22%20%2F%3E%0A%3C%2Fsvg%3E%0A);background-repeat:no-repeat;background-position:98% 50%}#edd_checkout_form_wrap span.exp-divider{display:inline}#edd_checkout_form_wrap span.card-type{position:absolute;top:0;right:0}#edd_checkout_form_wrap span.card-type.off{display:none}#edd_checkout_form_wrap .edd-cart-ajax{box-shadow:none}.edd-amazon-profile-wrapper{font-size:12px}.edd-amazon-profile-name{font-weight:600}.edd-amazon-logout{font-size:10px;line-height:12px}.edd-amazon-logout a{cursor:pointer}#edd-amazon-address-box,#edd-amazon-wallet-box{height:228px;width:350px}#edd-amazon-address-box{margin-bottom:15px}@media only screen and (min-width:768px){#edd-amazon-address-box,#edd-amazon-wallet-box{width:100%;height:228px}}.edd_purchase_submit_wrapper{position:relative}.edd_purchase_submit_wrapper a.edd-add-to-cart{text-decoration:none;display:none;position:relative;overflow:hidden}.edd_purchase_submit_wrapper .edd-cart-ajax{display:none;position:relative;left:-35px}.edd-submit.button.edd-ajax-loading{padding-right:30px}.edd-add-to-cart .edd-add-to-cart-label{opacity:1;filter:alpha(opacity=100)}.edd-loading,.edd-loading:after{border-radius:50%;display:block;width:1.5em;height:1.5em}.edd-loading{animation:edd-spinning 1.1s linear infinite;border:.2em solid hsla(0,0%,100%,.2);border-left-color:#fff;font-size:.75em;position:absolute;left:calc(50% - .75em);top:calc(50% - .75em);opacity:0;filter:alpha(opacity=0);transform:translateZ(0)}.edd-discount-loader.edd-loading,.edd-loading-ajax.edd-loading,a.edd-add-to-cart.white .edd-loading{border-color:rgba(0,0,0,.2) rgba(0,0,0,.2) rgba(0,0,0,.2) #000}.edd-loading-ajax.edd-loading{display:inline-block;position:relative;top:0;left:.25em;vertical-align:middle}#edd_checkout_form_wrap .edd-cart-adjustment .edd-apply-discount.edd-submit{display:inline-block}.edd-discount-loader.edd-loading{display:inline-block;position:relative;left:auto;vertical-align:middle;width:1.25em;height:1.25em}.edd-loading-ajax.edd-loading{opacity:1}@keyframes edd-spinning{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.edd-loading,a.edd-add-to-cart .edd-add-to-cart-label{transition:opacity .1s!important}.edd-add-to-cart[data-edd-loading] .edd-add-to-cart-label{opacity:0;filter:alpha(opacity=0)}.edd-add-to-cart[data-edd-loading] .edd-loading,.edd-discount-loader.edd-loading{opacity:1;filter:alpha(opacity=100)}.edd-cart-added-alert{color:#567622;display:block;position:absolute}.edd_form input.edd-input.required,.edd_form select.edd-select.required{color:#000}body.edd_receipt_page{background-color:#fff;color:#141412;margin:0;font-family:Helvetica,sans-serif;font-size:12px}body.edd_receipt_page:before{position:relative}body.edd_receipt_page #edd_receipt_wrapper{width:660px;margin:0 auto;padding:50px 0}body.edd_receipt_page table{display:table;width:100%;border-bottom:1px solid #ededed;border-collapse:collapse;border-spacing:0;font-size:14px;line-height:2;margin:0 0 20px}body.edd_receipt_page td,body.edd_receipt_page th{display:table-cell;text-align:left;border-top:1px solid #ededed;padding:6px 10px;font-weight:400}body.edd_receipt_page th{font-weight:700;text-transform:uppercase}body.edd_receipt_page h3{font-size:22px;margin:40px 0 5px;clear:both;display:block;font-weight:700}body.edd_receipt_page li{list-style:none}table#edd_purchase_receipt,table#edd_purchase_receipt_products{width:100%}table#edd_purchase_receipt_products td,table#edd_purchase_receipt_products th,table#edd_purchase_receipt td,table#edd_purchase_receipt th{text-align:left}table#edd_purchase_receipt .edd_receipt_payment_status.cancelled,table#edd_purchase_receipt .edd_receipt_payment_status.failed,table#edd_purchase_receipt .edd_receipt_payment_status.pending,table#edd_purchase_receipt .edd_receipt_payment_status.revoked{color:#f73f2e}table#edd_purchase_receipt_products li{list-style:none;margin:0 0 8px 10px}table#edd_purchase_receipt_products ul.edd_purchase_receipt_files,table#edd_purchase_receipt ul{margin:0;padding:0}table#edd_purchase_receipt li.edd_download_file{list-style:none;margin:0 0 8px}table#edd_purchase_receipt_products .edd_purchase_receipt_product_notes{font-style:italic}table#edd_purchase_receipt_products .edd_purchase_receipt_product_name{font-weight:700}table#edd_purchase_receipt_products .edd_bundled_product_name{font-style:italic;font-weight:700}#edd_user_history{text-align:left;width:100%;border-top:1px solid #f0f0f0;border-bottom:none}#edd_user_history td,#edd_user_history th{text-align:left;padding:3px 5px;border-bottom:1px solid #f0f0f0;border-top:none}#edd_user_history th{font-weight:700;background:#f5f5f5}#edd_user_history td{line-height:25px;vertical-align:middle}#edd_user_history .edd_purchase_status.cancelled,#edd_user_history .edd_purchase_status.failed,#edd_user_history .edd_purchase_status.pending,#edd_user_history .edd_purchase_status.revoked{color:#f73f2e}#edd_login_form legend,#edd_register_form legend{font-size:120%;margin-bottom:1em}#edd_login_form fieldset,#edd_register_form fieldset{border:none}#edd_login_form .edd-input,#edd_register_form .edd-input{box-sizing:border-box}#edd_login_form label,#edd_register_form label{cursor:pointer}#edd_profile_editor_form p{margin-bottom:8px}#edd_profile_editor_form label{display:inline-block}#edd_profile_editor_form .edd-profile-emails{list-style-type:none;display:inline-table;margin-left:0;margin-bottom:0}#edd_profile_editor_form .edd-profile-email{width:auto}#edd_profile_editor_form .edd-profile-email .actions{display:none}#edd_profile_editor_form .edd-profile-email:hover>span{display:inline-block}.edd_added_to_cart_alert{padding:5px;font-size:14px;border:1px solid #046a9e;background:#9ecce2;color:#333;margin:8px 0}.edd_added_to_cart_alert a.edd_alert_checkout_link{color:#000!important}input.edd_submit_plain{background:none!important;border:none!important;padding:0!important;display:inline;cursor:pointer}.single-download .edd_download_purchase_form{margin-bottom:1.387em}.edd_download_purchase_form .edd_download_quantity_wrapper{margin:0 0 .5em}.edd_download_purchase_form .edd_download_quantity_wrapper .edd-item-quantity{width:75px}.edd_download_purchase_form .edd_price_options{margin:0 0 15px}.edd_download_purchase_form .edd_price_options ul{margin:0;padding:0;list-style:none}.edd_download_purchase_form .edd_price_options li{display:block;padding:0;margin:0}.edd_download_purchase_form .edd_price_options span{display:inline;padding:0;margin:0}.edd_download_purchase_form .edd_price_options .edd_download_quantity_wrapper{padding-left:18px}.edd_download_purchase_form .edd_price_options .edd_download_quantity_wrapper *{font-size:80%}.edd_download_purchase_form .edd_price_options input.edd-item-quantity{display:inline;width:50px;max-width:90%}#edd-purchase-button,.edd-submit,[type=submit].edd-submit{display:inline-block;padding:6px 12px;margin:0;font-size:14px;font-weight:400;line-height:1.428571429;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;border:1px solid #ccc;border-radius:4px;box-shadow:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.edd-submit.button:focus,[type=submit].edd-submit:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.edd-submit.button:active{background-image:none;outline:0;box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.edd-submit.plain{padding:0;border:none;border-radius:0}.edd-submit.button,.edd-submit.button.gray,.edd-submit.button:visited{color:#333;background:#f0f0f0;border-color:#ccc}.edd-submit.button.gray:active,.edd-submit.button.gray:focus,.edd-submit.button.gray:hover,.edd-submit.button:active,.edd-submit.button:focus,.edd-submit.button:hover{color:#333;background:#ebebeb;border-color:#adadad}.edd-submit.button.gray:active{background-image:none}.edd-submit.button.white{color:#333;background:#fff;border-color:#ccc}.edd-submit.button.white:active,.edd-submit.button.white:focus,.edd-submit.button.white:hover{color:#333;background:#ebebeb;border-color:#adadad}.edd-submit.button.white:active{background-image:none}.edd-submit.button.blue{color:#fff;background:#428bca;border-color:#357ebd}.edd-submit.button.blue.active,.edd-submit.button.blue:focus,.edd-submit.button.blue:hover{color:#fff;background:#3276b1;border-color:#285e8e}.edd-submit.button.blue.active{background-image:none}.edd-submit.button.red{color:#fff;background:#d9534f;border-color:#d43f3a}.edd-submit.button.red:active,.edd-submit.button.red:focus,.edd-submit.button.red:hover{color:#fff;background:#d2322d;border-color:#ac2925}.edd-submit.button.red:active{background-image:none}.edd-submit.button.green{color:#fff;background:#5cb85c;border-color:#4cae4c}.edd-submit.button.green:active,.edd-submit.button.green:focus,.edd-submit.button.green:hover{color:#fff;background:#47a447;border-color:#398439}.edd-submit.button.green:active{background-image:none}.edd-submit.button.yellow{color:#fff;background:#f0ad4e;border-color:#eea236}.edd-submit.button.yellow:active,.edd-submit.button.yellow:focus,.edd-submit.button.yellow:hover{color:#fff;background:#ed9c28;border-color:#d58512}.edd-submit.button.yellow:active{background-image:none}.edd-submit.button.orange{color:#fff;background:#ed9c28;border-color:#e3921e}.edd-submit.button.orange:active,.edd-submit.button.orange:focus,.edd-submit.button.orange:hover{color:#fff;background:#e59016;border-color:#d58512}.edd-submit.button.orange:active{background-image:none}.edd-submit.button.dark-gray{color:#fff;background:#363636;border-color:#222}.edd-submit.button.dark-gray:active,.edd-submit.button.dark-gray:focus,.edd-submit.button.dark-gray:hover{color:#fff;background:#333;border-color:#adadad}.edd-submit.button.dark-gray:active{background-image:none}.edd_downloads_list{display:-ms-grid;display:grid;grid-column-gap:20px;grid-row-gap:40px}.edd_downloads_list:after{content:"";display:table;clear:both}.edd_download{float:left}.edd_download_columns_1 .edd_download{width:100%}.edd_download_columns_2 .edd_download{width:50%}.edd_download_columns_0 .edd_download,.edd_download_columns_3 .edd_download{width:33%}.edd_download_columns_4 .edd_download{width:25%}.edd_download_columns_5 .edd_download{width:20%}.edd_download_columns_6 .edd_download{width:16.6%}.edd_download_inner{padding:0 8px 8px;margin:0 0 10px}.edd_download_columns_2 .edd_download:nth-child(odd),.edd_download_columns_3 .edd_download:nth-child(3n+1),.edd_download_columns_4 .edd_download:nth-child(4n+1),.edd_download_columns_5 .edd_download:nth-child(5n+1),.edd_download_columns_6 .edd_download:nth-child(6n+1){clear:left}.edd_download_image{max-width:100%}.edd_download .edd_price{margin-bottom:10px}@media(min-width:768px){.edd_downloads_list:not(.edd_download_columns_1){-ms-grid-columns:(1fr)[2];grid-template-columns:repeat(2,1fr)}}@media(min-width:1200px){.edd_downloads_list.edd_download_columns_2{-ms-grid-columns:(1fr)[2];grid-template-columns:repeat(2,1fr)}.edd_downloads_list.edd_download_columns_3{-ms-grid-columns:(1fr)[3];grid-template-columns:repeat(3,1fr)}.edd_downloads_list.edd_download_columns_4{-ms-grid-columns:(1fr)[4];grid-template-columns:repeat(4,1fr)}.edd_downloads_list.edd_download_columns_5{-ms-grid-columns:(1fr)[5];grid-template-columns:repeat(5,1fr)}.edd_downloads_list.edd_download_columns_6{-ms-grid-columns:(1fr)[6];grid-template-columns:repeat(6,1fr)}}@supports(display:grid){.edd_downloads_list .edd_download{width:auto}.edd_download_inner{padding:0;margin:0}}.edd-hide-on-empty.cart-empty{display:none}.edd-cart-ajax{margin:0 8px 0 4px;position:relative;top:2px;background:none;border:none;padding:0}.edd-cart-number-of-items{font-style:italic;color:grey}.edd-cart-meta.edd_subtotal{font-weight:700;font-style:italic}.edd-cart-meta.edd_cart_tax{font-size:1em;font-style:italic}.edd-cart-meta.edd_cart_tax:before{font-style:normal}.edd-cart-meta.edd_total{font-weight:700}.edd-cart-meta{padding:2px 5px}.edd-cart-meta.edd_subtotal,.edd-cart-meta.edd_total{background-color:#f9f9f9}.edd_errors:not(.edd-alert){border-radius:2px;border:1px solid #e6db55;margin:0 0 21px;background:#ffffe0;color:#333}.edd_error{padding:10px}p.edd_error{margin:0!important}.edd_success:not(.edd-alert){border-radius:2px;border:1px solid #b3ce89;margin:20px 0;background:#d5eab3;color:#567622;padding:6px 8px;box-shadow:inset 0 1px 0 hsla(0,0%,100%,.7)}.edd-alert{border-radius:2px;margin-bottom:20px;padding:10px;border:1px solid transparent;vertical-align:middle}.edd-alert p{padding:0}.edd-alert p:not(:last-child){margin-bottom:5px}.edd-alert p:last-child{margin-bottom:0}.edd-alert-error{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.edd-alert-success{background-color:#dff0d8;border-color:#d6e9c6;color:#3c763d}.edd-alert-info{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.edd-alert-warn{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc} \ No newline at end of file +.edd-icon{display:inline-block;fill:currentColor;position:relative;vertical-align:middle}.edd-icon-spin{display:inline-block;animation:edd-icon-spin 2s linear infinite}@keyframes edd-icon-spin{0%{transform:rotate(0deg)}to{transform:rotate(359deg)}}.edd_clearfix:after{display:block;visibility:hidden;float:none;clear:both;text-indent:-9999px;content:"."}#edd_checkout_cart{text-align:left;width:100%;border:none;margin:0 0 21px;table-layout:auto}#edd_checkout_cart td,#edd_checkout_cart th{text-align:left;border:1px solid #eee;color:#666;padding:.5em 1.387em}#edd_checkout_cart .edd_cart_header_row th{background:#fafafa;padding:1.387em}#edd_checkout_cart .edd_cart_discount_row th,#edd_checkout_cart .edd_cart_tax_row th{background:none}#edd_checkout_cart th{font-weight:700}#edd_checkout_cart td{line-height:25px;vertical-align:middle;background:#fff}#edd_checkout_cart td.edd_cart_actions,#edd_checkout_cart td:last-child,#edd_checkout_cart th.edd_cart_actions,#edd_checkout_cart th.edd_cart_total,#edd_checkout_cart th:last-child{text-align:right}#edd_checkout_cart td img{float:left;margin:0 8px 0 0;background:none;padding:0;border:none}#edd_checkout_cart input.edd-item-quantity{width:3em;padding:2px}#edd_checkout_cart .edd_discount{display:inline-block;margin-left:5px}.edd_discount_remove{display:inline-block;width:14px;height:14px;background:url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22none%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%221.5%22%20stroke%3D%22currentColor%22%3E%0A%20%20%3Cpath%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20d%3D%22M9.75%209.75l4.5%204.5m0-4.5l-4.5%204.5M21%2012a9%209%200%2011-18%200%209%209%200%200118%200z%22%20%2F%3E%0A%3C%2Fsvg%3E%0A) 0 0 no-repeat;position:relative;opacity:.6}.edd_discount_remove:hover{opacity:1}#edd_checkout_cart br{display:none}#edd_checkout_cart a.edd-cart-saving-button{font-weight:400;text-decoration:none}#edd_checkout_form_wrap legend{display:block;font-size:120%;line-height:1;font-weight:700;width:100%;margin:0 0 1rem;padding:0}#edd_checkout_form_wrap label{font-weight:700;display:block;position:relative;line-height:100%;font-size:95%;margin:0 0 5px}#edd_checkout_form_wrap span.edd-description{color:#666;font-size:80%;display:block;margin:0 0 5px}#edd_checkout_form_wrap input.edd-input,#edd_checkout_form_wrap textarea.edd-input{display:inline-block;width:70%}#edd_checkout_form_wrap select.edd-select{display:block;width:60%}#edd_checkout_form_wrap select.edd-select.edd-select-small{display:inline;width:auto}#edd_checkout_form_wrap input.edd-input.error,#edd_checkout_form_wrap textarea.edd-input.error{border-color:#c4554e}#edd_checkout_form_wrap>p{margin:0 0 21px}#edd_checkout_form_wrap span.edd-required-indicator{color:#b94a48;display:inline}#edd_checkout_form_wrap input[type=email],#edd_checkout_form_wrap input[type=password],#edd_checkout_form_wrap input[type=tel],#edd_checkout_form_wrap input[type=text],#edd_checkout_form_wrap textarea{padding:4px 6px}#edd_checkout_form_wrap input[type=radio]{border:none;margin-right:5px}#edd_checkout_form_wrap input[type=checkbox]{display:inline-block;margin:0 5px 0 0}#edd_checkout_form_wrap input[type=checkbox]+label,#edd_checkout_form_wrap input[type=checkbox]+label:after{display:inline}#edd_checkout_form_wrap .edd-payment-icons{display:flex;margin:0 0 8px}#edd_checkout_form_wrap .edd-payment-icons img.payment-icon{max-height:32px}#edd_checkout_form_wrap .edd-payment-icons .payment-icon{margin:0 10px 0 0}#edd_checkout_form_wrap #edd-payment-mode-wrap label{display:inline-block;margin:0 20px 0 0}#edd_checkout_form_wrap #edd-payment-mode-wrap .edd-payment-mode-label{font-weight:700;display:inline-block;position:relative;margin-bottom:5px}#edd_checkout_form_wrap fieldset{border:1px solid #eee;padding:1.387em;margin:0 0 21px}#edd_checkout_form_wrap #edd_discount_code,#edd_checkout_form_wrap #edd_purchase_submit,#edd_checkout_form_wrap #edd_register_account_fields{padding:0;border:none}#edd_checkout_form_wrap fieldset fieldset{margin:0;border:none;padding:0}#edd_checkout_form_wrap #edd-login-account-wrap,#edd_checkout_form_wrap #edd-new-account-wrap,#edd_checkout_form_wrap #edd_final_total_wrap,#edd_checkout_form_wrap #edd_show_discount,#edd_checkout_form_wrap .edd-cart-adjustment{background:#fafafa;color:#666;padding:.5em 1.387em}#edd_checkout_form_wrap #edd-discount-code-wrap,#edd_checkout_form_wrap #edd_final_total_wrap,#edd_checkout_form_wrap #edd_show_discount{border:1px solid #eee}#edd_checkout_form_wrap .edd-cart-adjustment{padding:1.387em}#edd_checkout_form_wrap .edd-cart-adjustment input.edd-input,#edd_checkout_form_wrap .edd-cart-adjustment input.edd-submit{display:inline-block}#edd_checkout_form_wrap .edd-cart-adjustment input.edd-submit{padding:3px 12px;margin-bottom:2px}#edd_checkout_form_wrap #edd-discount-error-wrap{width:100%;display:inline-block;margin:1em 0 0}#edd_checkout_form_wrap #edd-login-account-wrap,#edd_checkout_form_wrap #edd-new-account-wrap{margin:-1.387em -1.387em 21px;border-left:none;border-right:none;border-top:none}#edd_checkout_form_wrap #edd_payment_mode_select,#edd_checkout_form_wrap fieldset#edd_register_fields #edd_checkout_user_info{margin-bottom:21px}#edd_checkout_form_wrap fieldset#edd_register_account_fields legend{padding-top:11px}#edd_checkout_form_wrap fieldset#edd_register_account_fields p.edd_login_password,#edd_checkout_form_wrap fieldset#edd_register_account_fields p.edd_register_password{margin:0}#edd_checkout_form_wrap fieldset#edd_cc_fields legend{border:none;padding:0}#edd_checkout_form_wrap fieldset p:last-child{margin-bottom:0}#edd_checkout_form_wrap fieldset#edd_cc_fields #edd-card-number-wrap{margin-top:5px}#edd_checkout_form_wrap #edd_purchase_final_total{margin:21px 0}#edd_checkout_form_wrap #edd_purchase_final_total p{margin:0}#edd_secure_site_wrapper{padding:4px 4px 4px 0;font-weight:700}#edd_secure_site_wrapper span{vertical-align:middle}#edd_checkout_form_wrap input.edd-input.card-number.valid{background-image:url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22none%22%20viewBox%3D%220%200%2024%2024%22%20stroke-width%3D%221.5%22%20stroke%3D%22green%22%3E%0A%20%20%3Cpath%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20d%3D%22M4.5%2012.75l6%206%209-13.5%22%20%2F%3E%0A%3C%2Fsvg%3E%0A);background-repeat:no-repeat;background-position:98% 50%}#edd_checkout_form_wrap span.exp-divider{display:inline}#edd_checkout_form_wrap span.card-type{position:absolute;top:0;right:0}#edd_checkout_form_wrap span.card-type.off{display:none}#edd_checkout_form_wrap .edd-cart-ajax{box-shadow:none}.edd-amazon-profile-wrapper{font-size:12px}.edd-amazon-profile-name{font-weight:600}.edd-amazon-logout{font-size:10px;line-height:12px}.edd-amazon-logout a{cursor:pointer}#edd-amazon-address-box,#edd-amazon-wallet-box{height:228px;width:350px}#edd-amazon-address-box{margin-bottom:15px}.edd_cart_tax .edd-loading-ajax.edd-loading{margin:0 0 0 auto;display:inline-block}@media only screen and (min-width:768px){#edd-amazon-address-box,#edd-amazon-wallet-box{width:100%;height:228px}}.edd_purchase_submit_wrapper{position:relative}.edd_purchase_submit_wrapper a.edd-add-to-cart{text-decoration:none;display:none;position:relative;overflow:hidden}.edd_purchase_submit_wrapper .edd-cart-ajax{display:none;position:relative;left:-35px}.edd-submit.button.edd-ajax-loading{padding-right:30px}.edd-add-to-cart .edd-add-to-cart-label{opacity:1;filter:alpha(opacity=100)}.edd-loading,.edd-loading:after{border-radius:50%;display:block;width:1.5em;height:1.5em}.edd-loading{animation:edd-spinning 1.1s linear infinite;border:.2em solid hsla(0,0%,100%,.2);border-left-color:#fff;font-size:.75em;position:absolute;left:calc(50% - .75em);top:calc(50% - .75em);opacity:0;filter:alpha(opacity=0);transform:translateZ(0)}.edd-discount-loader.edd-loading,.edd-loading-ajax.edd-loading,a.edd-add-to-cart.white .edd-loading{border-color:rgba(0,0,0,.2) rgba(0,0,0,.2) rgba(0,0,0,.2) #000}.edd-loading-ajax.edd-loading{display:inline-block;position:relative;top:0;left:.25em;vertical-align:middle}#edd_checkout_form_wrap .edd-cart-adjustment .edd-apply-discount.edd-submit{display:inline-block}.edd-discount-loader.edd-loading{display:inline-block;position:relative;left:auto;vertical-align:middle;width:1.25em;height:1.25em}.edd-loading-ajax.edd-loading{opacity:1}@keyframes edd-spinning{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.edd-loading,a.edd-add-to-cart .edd-add-to-cart-label{transition:opacity .1s!important}.edd-add-to-cart[data-edd-loading] .edd-add-to-cart-label{opacity:0;filter:alpha(opacity=0)}.edd-add-to-cart[data-edd-loading] .edd-loading,.edd-discount-loader.edd-loading{opacity:1;filter:alpha(opacity=100)}.edd-cart-added-alert{color:#567622;display:block;position:absolute}.edd_form input.edd-input.required,.edd_form select.edd-select.required{color:#000}body.edd_receipt_page{background-color:#fff;color:#141412;margin:0;font-family:Helvetica,sans-serif;font-size:12px}body.edd_receipt_page:before{position:relative}body.edd_receipt_page #edd_receipt_wrapper{width:660px;margin:0 auto;padding:50px 0}body.edd_receipt_page table{display:table;width:100%;border-bottom:1px solid #ededed;border-collapse:collapse;border-spacing:0;font-size:14px;line-height:2;margin:0 0 20px}body.edd_receipt_page td,body.edd_receipt_page th{display:table-cell;text-align:left;border-top:1px solid #ededed;padding:6px 10px;font-weight:400}body.edd_receipt_page th{font-weight:700;text-transform:uppercase}body.edd_receipt_page h3{font-size:22px;margin:40px 0 5px;clear:both;display:block;font-weight:700}body.edd_receipt_page li{list-style:none}table#edd_purchase_receipt,table#edd_purchase_receipt_products{width:100%}table#edd_purchase_receipt_products td,table#edd_purchase_receipt_products th,table#edd_purchase_receipt td,table#edd_purchase_receipt th{text-align:left}table#edd_purchase_receipt .edd_receipt_payment_status.cancelled,table#edd_purchase_receipt .edd_receipt_payment_status.failed,table#edd_purchase_receipt .edd_receipt_payment_status.pending,table#edd_purchase_receipt .edd_receipt_payment_status.revoked{color:#f73f2e}table#edd_purchase_receipt_products li{list-style:none;margin:0 0 8px 10px}table#edd_purchase_receipt_products ul.edd_purchase_receipt_files,table#edd_purchase_receipt ul{margin:0;padding:0}table#edd_purchase_receipt li.edd_download_file{list-style:none;margin:0 0 8px}table#edd_purchase_receipt_products .edd_purchase_receipt_product_notes{font-style:italic}table#edd_purchase_receipt_products .edd_purchase_receipt_product_name{font-weight:700}table#edd_purchase_receipt_products .edd_bundled_product_name{font-style:italic;font-weight:700}#edd_user_history{text-align:left;width:100%;border-top:1px solid #f0f0f0;border-bottom:none}#edd_user_history td,#edd_user_history th{text-align:left;padding:3px 5px;border-bottom:1px solid #f0f0f0;border-top:none}#edd_user_history th{font-weight:700;background:#f5f5f5}#edd_user_history td{line-height:25px;vertical-align:middle}#edd_user_history .edd_purchase_status.cancelled,#edd_user_history .edd_purchase_status.failed,#edd_user_history .edd_purchase_status.pending,#edd_user_history .edd_purchase_status.revoked{color:#f73f2e}#edd_login_form legend,#edd_register_form legend{font-size:120%;margin-bottom:1em}#edd_login_form fieldset,#edd_register_form fieldset{border:none}#edd_login_form .edd-input,#edd_register_form .edd-input{box-sizing:border-box}#edd_login_form label,#edd_register_form label{cursor:pointer}#edd_profile_editor_form p{margin-bottom:8px}#edd_profile_editor_form label{display:inline-block}#edd_profile_editor_form .edd-profile-emails{list-style-type:none;display:inline-table;margin-left:0;margin-bottom:0}#edd_profile_editor_form .edd-profile-email{width:auto}#edd_profile_editor_form .edd-profile-email .actions{display:none}#edd_profile_editor_form .edd-profile-email:hover>span{display:inline-block}.edd_added_to_cart_alert{padding:5px;font-size:14px;border:1px solid #046a9e;background:#9ecce2;color:#333;margin:8px 0}.edd_added_to_cart_alert a.edd_alert_checkout_link{color:#000!important}input.edd_submit_plain{background:none!important;border:none!important;padding:0!important;display:inline;cursor:pointer}.single-download .edd_download_purchase_form{margin-bottom:1.387em}.edd_download_purchase_form .edd_download_quantity_wrapper{margin:0 0 .5em}.edd_download_purchase_form .edd_download_quantity_wrapper .edd-item-quantity{width:75px}.edd_download_purchase_form .edd_price_options{margin:0 0 15px}.edd_download_purchase_form .edd_price_options ul{margin:0;padding:0;list-style:none}.edd_download_purchase_form .edd_price_options li{display:block;padding:0;margin:0}.edd_download_purchase_form .edd_price_options span{display:inline;padding:0;margin:0}.edd_download_purchase_form .edd_price_options .edd_download_quantity_wrapper{padding-left:18px}.edd_download_purchase_form .edd_price_options .edd_download_quantity_wrapper *{font-size:80%}.edd_download_purchase_form .edd_price_options input.edd-item-quantity{display:inline;width:50px;max-width:90%}#edd-purchase-button,.edd-submit,[type=submit].edd-submit{display:inline-block;padding:6px 12px;margin:0;font-size:14px;font-weight:400;line-height:1.428571429;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;border:1px solid #ccc;border-radius:4px;box-shadow:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.edd-submit.button:focus,[type=submit].edd-submit:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.edd-submit.button:active{background-image:none;outline:0;box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.edd-submit.plain{padding:0;border:none;border-radius:0}.edd-submit.button,.edd-submit.button.gray,.edd-submit.button:visited{color:#333;background:#f0f0f0;border-color:#ccc}.edd-submit.button.gray:active,.edd-submit.button.gray:focus,.edd-submit.button.gray:hover,.edd-submit.button:active,.edd-submit.button:focus,.edd-submit.button:hover{color:#333;background:#ebebeb;border-color:#adadad}.edd-submit.button.gray:active{background-image:none}.edd-submit.button.white{color:#333;background:#fff;border-color:#ccc}.edd-submit.button.white:active,.edd-submit.button.white:focus,.edd-submit.button.white:hover{color:#333;background:#ebebeb;border-color:#adadad}.edd-submit.button.white:active{background-image:none}.edd-submit.button.blue{color:#fff;background:#428bca;border-color:#357ebd}.edd-submit.button.blue.active,.edd-submit.button.blue:focus,.edd-submit.button.blue:hover{color:#fff;background:#3276b1;border-color:#285e8e}.edd-submit.button.blue.active{background-image:none}.edd-submit.button.red{color:#fff;background:#d9534f;border-color:#d43f3a}.edd-submit.button.red:active,.edd-submit.button.red:focus,.edd-submit.button.red:hover{color:#fff;background:#d2322d;border-color:#ac2925}.edd-submit.button.red:active{background-image:none}.edd-submit.button.green{color:#fff;background:#5cb85c;border-color:#4cae4c}.edd-submit.button.green:active,.edd-submit.button.green:focus,.edd-submit.button.green:hover{color:#fff;background:#47a447;border-color:#398439}.edd-submit.button.green:active{background-image:none}.edd-submit.button.yellow{color:#fff;background:#f0ad4e;border-color:#eea236}.edd-submit.button.yellow:active,.edd-submit.button.yellow:focus,.edd-submit.button.yellow:hover{color:#fff;background:#ed9c28;border-color:#d58512}.edd-submit.button.yellow:active{background-image:none}.edd-submit.button.orange{color:#fff;background:#ed9c28;border-color:#e3921e}.edd-submit.button.orange:active,.edd-submit.button.orange:focus,.edd-submit.button.orange:hover{color:#fff;background:#e59016;border-color:#d58512}.edd-submit.button.orange:active{background-image:none}.edd-submit.button.dark-gray{color:#fff;background:#363636;border-color:#222}.edd-submit.button.dark-gray:active,.edd-submit.button.dark-gray:focus,.edd-submit.button.dark-gray:hover{color:#fff;background:#333;border-color:#adadad}.edd-submit.button.dark-gray:active{background-image:none}.edd_downloads_list{display:-ms-grid;display:grid;grid-column-gap:20px;grid-row-gap:40px}.edd_downloads_list:after{content:"";display:table;clear:both}.edd_download{float:left}.edd_download_columns_1 .edd_download{width:100%}.edd_download_columns_2 .edd_download{width:50%}.edd_download_columns_0 .edd_download,.edd_download_columns_3 .edd_download{width:33%}.edd_download_columns_4 .edd_download{width:25%}.edd_download_columns_5 .edd_download{width:20%}.edd_download_columns_6 .edd_download{width:16.6%}.edd_download_inner{padding:0 8px 8px;margin:0 0 10px}.edd_download_columns_2 .edd_download:nth-child(odd),.edd_download_columns_3 .edd_download:nth-child(3n+1),.edd_download_columns_4 .edd_download:nth-child(4n+1),.edd_download_columns_5 .edd_download:nth-child(5n+1),.edd_download_columns_6 .edd_download:nth-child(6n+1){clear:left}.edd_download_image{max-width:100%}.edd_download .edd_price{margin-bottom:10px}@media(min-width:768px){.edd_downloads_list:not(.edd_download_columns_1){-ms-grid-columns:(1fr)[2];grid-template-columns:repeat(2,1fr)}}@media(min-width:1200px){.edd_downloads_list.edd_download_columns_2{-ms-grid-columns:(1fr)[2];grid-template-columns:repeat(2,1fr)}.edd_downloads_list.edd_download_columns_3{-ms-grid-columns:(1fr)[3];grid-template-columns:repeat(3,1fr)}.edd_downloads_list.edd_download_columns_4{-ms-grid-columns:(1fr)[4];grid-template-columns:repeat(4,1fr)}.edd_downloads_list.edd_download_columns_5{-ms-grid-columns:(1fr)[5];grid-template-columns:repeat(5,1fr)}.edd_downloads_list.edd_download_columns_6{-ms-grid-columns:(1fr)[6];grid-template-columns:repeat(6,1fr)}}@supports(display:grid){.edd_downloads_list .edd_download{width:auto}.edd_download_inner{padding:0;margin:0}}.edd-hide-on-empty.cart-empty{display:none}.edd-cart-ajax{margin:0 8px 0 4px;position:relative;top:2px;background:none;border:none;padding:0}.edd-cart-number-of-items{font-style:italic;color:grey}.edd-cart-meta.edd_subtotal{font-weight:700;font-style:italic}.edd-cart-meta.edd_cart_tax{font-size:1em;font-style:italic}.edd-cart-meta.edd_cart_tax:before{font-style:normal}.edd-cart-meta.edd_total{font-weight:700}.edd-cart-meta{padding:2px 5px}.edd-cart-meta.edd_subtotal,.edd-cart-meta.edd_total{background-color:#f9f9f9}.edd_errors:not(.edd-alert){border-radius:2px;border:1px solid #e6db55;margin:0 0 21px;background:#ffffe0;color:#333}.edd_error{padding:10px}p.edd_error{margin:0!important}.edd_success:not(.edd-alert){border-radius:2px;border:1px solid #b3ce89;margin:20px 0;background:#d5eab3;color:#567622;padding:6px 8px;box-shadow:inset 0 1px 0 hsla(0,0%,100%,.7)}.edd-alert{border-radius:2px;margin-bottom:20px;padding:10px;border:1px solid transparent;vertical-align:middle}.edd-alert p{padding:0}.edd-alert p:not(:last-child){margin-bottom:5px}.edd-alert p:last-child{margin-bottom:0}.edd-alert-error{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.edd-alert-success{background-color:#dff0d8;border-color:#d6e9c6;color:#3c763d}.edd-alert-info{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.edd-alert-warn{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc} \ No newline at end of file diff --git a/wp-content/plugins/easy-digital-downloads/assets/js/edd-admin-orders.js b/wp-content/plugins/easy-digital-downloads/assets/js/edd-admin-orders.js index d03c2f95..54a9e362 100644 --- a/wp-content/plugins/easy-digital-downloads/assets/js/edd-admin-orders.js +++ b/wp-content/plugins/easy-digital-downloads/assets/js/edd-admin-orders.js @@ -1 +1 @@ -!function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=193)}({1:function(t,e){t.exports=jQuery},10:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return r}));var r=n(5).a.extend({initialize:function(){this.$el.dialog({position:{my:"top center",at:"center center-25%"},classes:{"ui-dialog":"edd-dialog"},closeText:eddAdminOrderOverview.i18n.closeText,width:"350px",modal:!0,resizable:!1,draggable:!1,autoOpen:!1,create:function(){t(this).css("maxWidth","90vw")}})},openDialog:function(){return this.$el.dialog("open"),this},closeDialog:function(t){return t&&t.preventDefault&&t.preventDefault(),this.$el.dialog("close"),this.undelegateEvents(),this}})}).call(this,n(1))},11:function(t,e,n){var r=n(3).default;t.exports=function(t,e){if("object"!==r(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports},12:function(t,e,n){"use strict";!function(){var e,r,o,i=0,u=[];for(r=0;r<256;r++)u[r]=(r+256).toString(16).substr(1);function a(){var t=(16,(!e||i+16>c.BUFFER_SIZE)&&(i=0,e=c.randomBytes(c.BUFFER_SIZE)),e.slice(i,i+=16));return t[6]=15&t[6]|64,t[8]=63&t[8]|128,t}function c(){var t=a();return u[t[0]]+u[t[1]]+u[t[2]]+u[t[3]]+"-"+u[t[4]]+u[t[5]]+"-"+u[t[6]]+u[t[7]]+"-"+u[t[8]]+u[t[9]]+"-"+u[t[10]]+u[t[11]]+u[t[12]]+u[t[13]]+u[t[14]]+u[t[15]]}c.BUFFER_SIZE=4096,c.bin=a,c.clearBuffer=function(){e=null,i=0},c.test=function(t){return"string"==typeof t&&/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/.test(t)},"undefined"!=typeof crypto?o=crypto:"undefined"!=typeof window&&void 0!==window.msCrypto&&(o=window.msCrypto),o=o||n(195),t.exports=c,c.randomBytes=function(){if(o){if(o.randomBytes)return o.randomBytes;if(o.getRandomValues)return function(t){var e=new Uint8Array(t);return o.getRandomValues(e),e}}return function(t){var e,n=[];for(e=0;e0},updateAmounts:function(){var e=this.options.state,n=e.get("items"),r=new Backbone.Collection(e.get("adjustments").getByType("discount")),i={country:e.getTaxCountry(),region:e.getTaxRegion(),products:n.map((function(t){return{id:t.get("productId"),quantity:t.get("quantity"),options:{price_id:t.get("priceId")}}})),discountIds:r.pluck("typeId")},u=[];return n.models.forEach((function(t){var e=t.getAmounts(i);e.done((function(e){var n=e.adjustments.map((function(e){return new f.a(p(p({},e),{},{id:c()(),objectId:t.get("id")}))})),r=t.get("adjustments").filter((function(t){return["fee","credit"].includes(t.type)}));t.set("adjustments",new s.a([].concat(o()(n),o()(r))))})).done((function(e){return t.setAmounts(e)})),u.push(e)})),t.when.apply(t,u)}})}).call(this,n(1))},18:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(17),o=n(19),i=Backbone.Collection.extend({comparator:"type",initialize:function(){this.getByType=this.getByType.bind(this)},model:function(t,e){var n;switch(t.type){case"discount":n=new o.a(t,e);break;default:n=new r.a(t,e)}return n},modelId:function(t){return"".concat(t.type,"-").concat(t.typeId,"-").concat(t.description)},has:function(t){return void 0!==this.findWhere({typeId:t.get("typeId")})},getByType:function(t){return this.where({type:t})}})},180:function(t,e,n){"use strict";n.d(e,"a",(function(){return N}));var r=n(2),o=n.n(r),i=n(5),u=n(170);function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e0}},onDismissTaxRateChange:function(){var t=this.options.state;t.set("hasTax",t.get("hasTax")),t.trigger("change:hasTax")},onUpdateAmounts:function(t){var e=this;t.preventDefault();var n=this.options.state;n.get("adjustments").getByType("fee").forEach((function(t){t.updateTax()})),n.get("items").updateAmounts().done((function(){e.onDismissTaxRateChange()}))}}),S=j.extend({getAdjustments:function(){return this.options.state.get("adjustments").getByType("credit")}});function I(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function E(t){for(var e=1;e0&&(i=!0),t("#edd-refund-submit-subtotal-amount").text(e.format(n)),t("#edd-refund-submit-tax-amount").text(e.format(r)),t("#edd-refund-submit-total-amount").text(e.format(o)),t("#edd-submit-refund-submit").attr("disabled",!i),u.prop("readonly",!1),a.prop("readonly",!0)}t(document.body).on("click",".edd-refund-order",(function(e){e.preventDefault(),t(this);var n={action:"edd_generate_refund_form",order_id:t('input[name="edd_payment_id"]').val()};t.ajax({type:"POST",data:n,url:ajaxurl,success:function(e){var n;return n=e.success?e.html:e.message,t("#edd-refund-order-dialog").dialog({position:{my:"top center",at:"center center-25%"},width:"75%",modal:!0,resizable:!1,draggable:!1,classes:{"ui-dialog":"edd-dialog"},closeText:eddAdminOrderOverview.i18n.closeText,open:function(e,r){t(this).html(n)},close:function(e,n){t(this).html(""),t(this).hasClass("did-refund")&&location.reload()}}),!1}}).fail((function(e){return t("#edd-refund-order-dialog").dialog({position:{my:"top center",at:"center center-25%"},width:"75%",modal:!0,resizable:!1,draggable:!1}).html(e.message),!1}))})),t(document.body).on("click",".ui-widget-overlay",(function(e){t("#edd-refund-order-dialog").dialog("close")})),t(document.body).on("change","#edd-refund-order-dialog #cb-select-all-1",(function(){var e=t(".edd-order-item-refund-checkbox"),n=t(this).prop("checked");e.each((function(){t(this).prop("checked",n).trigger("change")}))})),t(document.body).on("change",".edd-order-item-refund-checkbox",(function(){var e=t(this).parent().parent(),n=e.find(".edd-order-item-refund-quantity");n.length&&(t(this).prop("checked")?n.trigger("change"):(e.find(".edd-order-item-refund-input").prop("disabled",!0),r()))})),t(document.body).on("change","#edd-refund-order-dialog .edd-order-item-refund-input",(function(){var n=t(this).closest(".refunditem"),o=n.find(".edd-order-item-refund-quantity"),i=parseInt(o.val());if(i>0?n.addClass("refunded"):n.removeClass("refunded"),t(this).hasClass("edd-order-item-refund-quantity")){n.find(".edd-order-item-refund-input:not(.edd-order-item-refund-quantity)").prop("disabled",0===i),i>0&&o.prop("disabled",!1);var u=n.find(".edd-order-item-refund-subtotal"),a=n.find(".edd-order-item-refund-tax"),c=e.unformat(u.data("original")),s=a.length?e.unformat(a.data("original")):0,f=parseInt(o.data("max")),d=c/f*i,l=a.length?s/f*i:0;d>parseFloat(u.data("max"))&&(d=u.data("max")),a.length&&l>parseFloat(a.data("max"))&&(l=a.data("max")),u.val(e.format(d)),a.length&&a.val(e.format(l))}r()})),t(document.body).on("click","#edd-submit-refund-submit",(function(e){e.preventDefault(),t(".edd-submit-refund-message").removeClass("success").removeClass("fail"),t(this).removeClass("button-primary").attr("disabled",!0).addClass("updating-message"),t("#edd-submit-refund-status").hide();var n={action:"edd_process_refund_form",data:t("#edd-submit-refund-form").serialize(),order_id:t('input[name="edd_payment_id"]').val()};t.ajax({type:"POST",data:n,url:ajaxurl,success:function(e){var n=t(".edd-submit-refund-message"),r=t(".edd-submit-refund-url");e.success?(n.text(e.data.message).addClass("success"),r.attr("href",e.data.refund_url).show(),t("#edd-submit-refund-status").show(),r.focus(),t("#edd-refund-order-dialog").addClass("did-refund")):(n.html(e.data).addClass("fail"),r.hide(),t("#edd-submit-refund-status").show(),t("#edd-submit-refund-submit").attr("disabled",!1).removeClass("updating-message").addClass("button-primary"))}}).fail((function(e){var n=t(".edd-submit-refund-message"),r=t(".edd-submit-refund-url"),o=e.responseJSON;return n.text(o.data).addClass("fail"),r.hide(),t("#edd-submit-refund-status").show(),t("#edd-submit-refund-submit").attr("disabled",!1).removeClass("updating-message").addClass("button-primary"),!1}))})),t(document.body).on("click",".refund-items .toggle-row",(function(){t(this).closest("tr").toggleClass("is-expanded")}))}).call(this,n(1))},197:function(t,e,n){"use strict";n(198),n(199),n(200)},198:function(t,e,n){"use strict";(function(t){var e=n(2),r=n.n(e),o=n(24),i=n(6),u=n(4);function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e'):(n.replaceWith(e),t("#edd_order_address_region").chosen(Object(i.a)(t("#edd_order_address_region"))))}function r(){e(t(this),"edd_order_address[region]","edd_order_address_region").done(n)}!function(){var e=o.a.options.state;if(!1!==e.get("hasTax")&&!1!==e.get("isAdding")){var n=document.getElementById("edd_order_address_country"),r=document.getElementById("edd_order_address_region");n&&r&&(t("#edd_order_address_country").on("change",_.debounce(i,250)),t("#edd-order-address").on("change","#edd_order_address_region",i),t("#edd-order-address").on("keyup","#edd_order_address_region",_.debounce(i,250)))}function i(){var n=t("#edd_order_address_country").val(),r=t("#edd_order_address_region").val(),o=document.getElementById("edd_get_tax_rate_nonce").value;wp.ajax.send("edd_get_tax_rate",{data:{nonce:o,country:n,region:r},success:function(t){var o=t.tax_rate;o*=100,e.set("hasTax",c(c({},e.get("hasTax")),{},{country:n,region:r,rate:o}))},error:function(){e.set("hasTax","none")}})}}(),t(".edd-payment-change-customer-input").on("change",(function(){var e={action:"edd_customer_addresses",customer_id:t(this).val(),nonce:t("#edd_add_order_nonce").val()};return t.post(ajaxurl,e,(function(e){var n=e.success,r=e.data;n?(s=c(c(c({},s),r),{},{addresses:c(c({},s.addresses),r.addresses)}),r.html?(t(".customer-address-select-wrap").show(),t(".customer-address-select-wrap .edd-form-group__control").html(r.html)):t(".customer-address-select-wrap").hide()):t(".customer-address-select-wrap").hide()}),"json"),!1})),t(document.body).on("change",".customer-address-select-wrap .add-order-customer-address-select",(function(){var o=t(this).val(),i=s.addresses[o];return t('#edd-add-order-form input[name="edd_order_address[address]"]').val(i.address),t('#edd-add-order-form input[name="edd_order_address[address2]"]').val(i.address2),t('#edd-add-order-form input[name="edd_order_address[postal_code]"]').val(i.postal_code),t('#edd-add-order-form input[name="edd_order_address[city]"]').val(i.city),t('#edd-add-order-form input[name="edd_order_address[address_id]"]').val(o),t("#edd_order_address_country").off("change",r),t("#edd_order_address_country").val(i.country).trigger("change").trigger("chosen:updated"),e(t("#edd_order_address_country"),"edd_order_address[region]","edd_order_address_region").done(n).done((function(e){t("#edd_order_address_region").val(i.region).trigger("change").trigger("chosen:updated")})),t("#edd_order_address_country").on("change",r),!1})),t("#edd_order_address_country").on("change",r)}))}).call(this,n(1))},199:function(t,e,n){"use strict";(function(t){var e=n(4);Object(e.a)((function(){t(".edd-payment-change-customer-input").on("change",(function(){var e={action:"edd_customer_details",customer_id:t(this).val(),nonce:t("#edd_customer_details_nonce").val()};""!==e.customer_id&&(t(".customer-details").css("display","none"),t("#customer-avatar").html(''),t.post(ajaxurl,e,(function(e){var n=e.success,r=e.data;n?(t(".customer-details").css("display","flex"),t(".customer-details-wrap").css("display","flex"),t("#customer-avatar").html(r.avatar),t(".customer-name").html(r.name),t(".customer-since span").html(r.date_created_i18n),t(".customer-record a").prop("href",r._links.self)):t(".customer-details-wrap").css("display","none")}),"json"))})),t(".edd-payment-change-customer-input").trigger("change"),t("#edd-customer-details").on("click",".edd-payment-new-customer, .edd-payment-new-customer-cancel",(function(e){e.preventDefault();var n=t(this).hasClass("edd-payment-new-customer"),r=t(this).hasClass("edd-payment-new-customer-cancel");n?(t(".order-customer-info").hide(),t(".new-customer").show()):r&&(t(".order-customer-info").show(),t(".new-customer").hide()),n=t("#edd-new-customer"),t(".new-customer").is(":visible")?n.val(1):n.val(0)}))}))}).call(this,n(1))},2:function(t,e,n){var r=n(7);t.exports=function(t,e,n){return(e=r(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},t.exports.__esModule=!0,t.exports.default=t.exports},20:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(8),o=n.n(r),i=n(18),u=Backbone.Model.extend({defaults:{id:0,orderId:0,productId:0,productName:"",priceId:null,cartIndex:0,type:"download",status:"",statusLabel:"",quantity:1,amount:0,subtotal:0,discount:0,tax:0,total:0,dateCreated:"",dateModified:"",uuid:"",amountManual:0,taxManual:0,subtotalManual:0,_isAdjustingManually:!1,adjustments:new i.a},getSubtotal:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.get("state"),n=this.get("subtotal");return!1===e.get("isAdding")?n:!0===e.hasInclusiveTax()&&!1===t?n-this.getTax():n},getDiscountAmount:function(){var t=0,e=this.get("adjustments").getByType("discount");return 0===e.length?this.get("discount"):(e.forEach((function(e){t+=+e.get("subtotal")})),t)},getTax:function(){var t=this.get("state"),e=this.get("tax");if(!1===t.get("isAdding"))return e;var n=t.get("formatters").number;return n.unformat(n.format(e))},getTotal:function(){var t=this.get("state");return!1===t.get("isAdding")?this.get("total"):!0===t.hasInclusiveTax()?this.get("subtotal")-this.getDiscountAmount():this.get("subtotal")-this.getDiscountAmount()+this.getTax()},getAmounts:function(t){var e=t.country,n=void 0===e?"":e,r=t.region,i=void 0===r?"":r,u=t.products,a=void 0===u?[]:u,c=t.discountIds,s=void 0===c?[]:c,f=window.eddAdminOrderOverview.nonces.edd_admin_order_get_item_amounts,d=_.clone(this.attributes),l=d.productId,p=d.priceId,h=d.quantity,v=d.amount,g=d.tax,y=d.subtotal;return wp.ajax.send("edd-admin-order-get-item-amounts",{data:{nonce:f,productId:l,priceId:p,quantity:h,amount:v,tax:g,subtotal:y,country:n,region:i,products:_.uniq([].concat(o()(a),[{id:l,quantity:h,options:{price_id:p}}]),(function(t){var e=t.id,n=t.options.price_id;return"".concat(e,"_").concat(n)})),discounts:_.uniq(s)}})},setAmounts:function(t){var e=t.amount,n=void 0===e?0:e,r=t.discount,o=void 0===r?0:r,i=t.tax,u=void 0===i?0:i,a=t.subtotal,c=void 0===a?0:a,s=t.total,f=void 0===s?0:s;!0===this.get("_isAdjustingManually")?this.set({discount:o}):this.set({amount:n,discount:o,tax:u,subtotal:c,total:f})}})},200:function(t,e,n){"use strict";(function(t){var e=n(4);Object(e.a)((function(){var e=t(".edd-order-resend-receipt-addresses");t(document.body).on("click","#edd-select-receipt-email",(function(t){t.preventDefault(),e.slideDown()})),t(document.body).on("change",".edd-order-resend-receipt-email",(function(){var e=t("input:radio.edd-order-resend-receipt-email:checked").val();t("#edd-select-receipt-email").data("email",e)})),t(document.body).on("click","#edd-select-receipt-email",(function(){if(confirm(edd_vars.resend_receipt)){var e=t(this).prop("href")+"&email="+t(this).data("email");window.location=e}})),t(document.body).on("click","#edd-resend-receipt",(function(){return confirm(edd_vars.resend_receipt)}))}))}).call(this,n(1))},22:function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]&&arguments[0];if(!1===this.get("isAdding"))return this.get("order").subtotal;var e=this.get("items"),n=e.models;return n.reduce((function(e,n){return e+ +n.getSubtotal(t)}),0)},getDiscount:function(){return!1===this.get("isAdding")?this.get("order").discount:this.get("adjustments").getByType("discount").reduce((function(t,e){return t+ +e.getAmount()}),0)},getTax:function(){if(!1===this.get("isAdding"))return this.get("order").tax;var t=this.get("items").models,e=this.getFeesTax();return t.reduce((function(t,e){return t+ +e.getTax()}),e)},getFeesTax:function(){return!1===this.get("isAdding")?this.get("order").tax:this.get("adjustments").getByType("fee").reduce((function(t,e){return t+ +e.getTax()}),0)},getTotal:function(){if(!1===this.get("isAdding"))return this.get("order").total;var t=this.get("adjustments").models.reduce((function(t,e){return["discount","credit"].includes(e.get("type"))?t-+e.getAmount():t+ +e.get("subtotal")}),this.getSubtotal(!0));return!0===this.hasInclusiveTax()?t+this.getFeesTax():t+this.getTax()},hasNewTaxRate:function(){var t=this.get("hasTax");if(!1===t)return!1;var e=this.previous("hasTax");return!_.isEqual(t,e)},hasInclusiveTax:function(){return this.get("hasTax").inclusive}});function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function v(t){for(var e=1;e"']/g,N=RegExp(z.source),F=RegExp(R.source),L=/<%-([\s\S]+?)%>/g,W=/<%([\s\S]+?)%>/g,U=/<%=([\s\S]+?)%>/g,q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$=/^\w*$/,V=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Z=/[\\^$.*+?()[\]{}|]/g,Q=RegExp(Z.source),J=/^\s+/,K=/\s/,H=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,G=/\{\n\/\* \[wrapped with (.+)\] \*/,Y=/,? & /,X=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,tt=/[()=,{}\[\]\/\s]/,et=/\\(\\)?/g,nt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,rt=/\w*$/,ot=/^[-+]0x[0-9a-f]+$/i,it=/^0b[01]+$/i,ut=/^\[object .+?Constructor\]$/,at=/^0o[0-7]+$/i,ct=/^(?:0|[1-9]\d*)$/,st=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ft=/($^)/,dt=/['\n\r\u2028\u2029\\]/g,lt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",pt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ht="["+pt+"]",vt="["+lt+"]",gt="\\d+",yt="[a-z\\xdf-\\xf6\\xf8-\\xff]",mt="[^\\ud800-\\udfff"+pt+gt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",_t="\\ud83c[\\udffb-\\udfff]",bt="[^\\ud800-\\udfff]",wt="(?:\\ud83c[\\udde6-\\uddff]){2}",Ot="[\\ud800-\\udbff][\\udc00-\\udfff]",jt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",xt="(?:"+yt+"|"+mt+")",Pt="(?:"+jt+"|"+mt+")",At="(?:"+vt+"|"+_t+")?",kt="[\\ufe0e\\ufe0f]?"+At+"(?:\\u200d(?:"+[bt,wt,Ot].join("|")+")[\\ufe0e\\ufe0f]?"+At+")*",Tt="(?:"+["[\\u2700-\\u27bf]",wt,Ot].join("|")+")"+kt,Dt="(?:"+[bt+vt+"?",vt,wt,Ot,"[\\ud800-\\udfff]"].join("|")+")",St=RegExp("['’]","g"),It=RegExp(vt,"g"),Et=RegExp(_t+"(?="+_t+")|"+Dt+kt,"g"),Ct=RegExp([jt+"?"+yt+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[ht,jt,"$"].join("|")+")",Pt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[ht,jt+xt,"$"].join("|")+")",jt+"?"+xt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",jt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",gt,Tt].join("|"),"g"),Bt=RegExp("[\\u200d\\ud800-\\udfff"+lt+"\\ufe0e\\ufe0f]"),Mt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,zt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Rt=-1,Nt={};Nt[P]=Nt[A]=Nt[k]=Nt[T]=Nt[D]=Nt[S]=Nt["[object Uint8ClampedArray]"]=Nt[I]=Nt[E]=!0,Nt[c]=Nt[s]=Nt[j]=Nt[f]=Nt[x]=Nt[d]=Nt[l]=Nt[p]=Nt[v]=Nt[g]=Nt[y]=Nt[m]=Nt[_]=Nt[b]=Nt[O]=!1;var Ft={};Ft[c]=Ft[s]=Ft[j]=Ft[x]=Ft[f]=Ft[d]=Ft[P]=Ft[A]=Ft[k]=Ft[T]=Ft[D]=Ft[v]=Ft[g]=Ft[y]=Ft[m]=Ft[_]=Ft[b]=Ft[w]=Ft[S]=Ft["[object Uint8ClampedArray]"]=Ft[I]=Ft[E]=!0,Ft[l]=Ft[p]=Ft[O]=!1;var Lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Wt=parseFloat,Ut=parseInt,qt="object"==typeof t&&t&&t.Object===Object&&t,$t="object"==typeof self&&self&&self.Object===Object&&self,Vt=qt||$t||Function("return this")(),Zt=e&&!e.nodeType&&e,Qt=Zt&&"object"==typeof r&&r&&!r.nodeType&&r,Jt=Qt&&Qt.exports===Zt,Kt=Jt&&qt.process,Ht=function(){try{return Qt&&Qt.require&&Qt.require("util").types||Kt&&Kt.binding&&Kt.binding("util")}catch(t){}}(),Gt=Ht&&Ht.isArrayBuffer,Yt=Ht&&Ht.isDate,Xt=Ht&&Ht.isMap,te=Ht&&Ht.isRegExp,ee=Ht&&Ht.isSet,ne=Ht&&Ht.isTypedArray;function re(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function oe(t,e,n,r){for(var o=-1,i=null==t?0:t.length;++o-1}function fe(t,e,n){for(var r=-1,o=null==t?0:t.length;++r-1;);return n}function Ce(t,e){for(var n=t.length;n--&&_e(e,t[n],0)>-1;);return n}function Be(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}var Me=xe({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),ze=xe({"&":"&","<":"<",">":">",'"':""","'":"'"});function Re(t){return"\\"+Lt[t]}function Ne(t){return Bt.test(t)}function Fe(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function Le(t,e){return function(n){return t(e(n))}}function We(t,e){for(var n=-1,r=t.length,o=0,i=[];++n",""":'"',"'":"'"}),Je=function t(e){var n,r=(e=null==e?Vt:Je.defaults(Vt.Object(),e,Je.pick(Vt,zt))).Array,o=e.Date,K=e.Error,lt=e.Function,pt=e.Math,ht=e.Object,vt=e.RegExp,gt=e.String,yt=e.TypeError,mt=r.prototype,_t=lt.prototype,bt=ht.prototype,wt=e["__core-js_shared__"],Ot=_t.toString,jt=bt.hasOwnProperty,xt=0,Pt=(n=/[^.]+$/.exec(wt&&wt.keys&&wt.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",At=bt.toString,kt=Ot.call(ht),Tt=Vt._,Dt=vt("^"+Ot.call(jt).replace(Z,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Et=Jt?e.Buffer:void 0,Bt=e.Symbol,Lt=e.Uint8Array,qt=Et?Et.allocUnsafe:void 0,$t=Le(ht.getPrototypeOf,ht),Zt=ht.create,Qt=bt.propertyIsEnumerable,Kt=mt.splice,Ht=Bt?Bt.isConcatSpreadable:void 0,ge=Bt?Bt.iterator:void 0,xe=Bt?Bt.toStringTag:void 0,Ke=function(){try{var t=ti(ht,"defineProperty");return t({},"",{}),t}catch(t){}}(),He=e.clearTimeout!==Vt.clearTimeout&&e.clearTimeout,Ge=o&&o.now!==Vt.Date.now&&o.now,Ye=e.setTimeout!==Vt.setTimeout&&e.setTimeout,Xe=pt.ceil,tn=pt.floor,en=ht.getOwnPropertySymbols,nn=Et?Et.isBuffer:void 0,rn=e.isFinite,on=mt.join,un=Le(ht.keys,ht),an=pt.max,cn=pt.min,sn=o.now,fn=e.parseInt,dn=pt.random,ln=mt.reverse,pn=ti(e,"DataView"),hn=ti(e,"Map"),vn=ti(e,"Promise"),gn=ti(e,"Set"),yn=ti(e,"WeakMap"),mn=ti(ht,"create"),_n=yn&&new yn,bn={},wn=Di(pn),On=Di(hn),jn=Di(vn),xn=Di(gn),Pn=Di(yn),An=Bt?Bt.prototype:void 0,kn=An?An.valueOf:void 0,Tn=An?An.toString:void 0;function Dn(t){if(Zu(t)&&!Mu(t)&&!(t instanceof Cn)){if(t instanceof En)return t;if(jt.call(t,"__wrapped__"))return Si(t)}return new En(t)}var Sn=function(){function t(){}return function(e){if(!Vu(e))return{};if(Zt)return Zt(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function In(){}function En(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}function Cn(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Bn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e=e?t:e)),t}function Gn(t,e,n,r,o,i){var u,a=1&e,s=2&e,l=4&e;if(n&&(u=o?n(t,r,o,i):n(t)),void 0!==u)return u;if(!Vu(t))return t;var O=Mu(t);if(O){if(u=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&jt.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!a)return mo(t,u)}else{var C=ri(t),B=C==p||C==h;if(Fu(t))return lo(t,a);if(C==y||C==c||B&&!o){if(u=s||B?{}:ii(t),!a)return s?function(t,e){return _o(t,ni(t),e)}(t,function(t,e){return t&&_o(e,ja(e),t)}(u,t)):function(t,e){return _o(t,ei(t),e)}(t,Qn(u,t))}else{if(!Ft[C])return o?t:{};u=function(t,e,n){var r,o=t.constructor;switch(e){case j:return po(t);case f:case d:return new o(+t);case x:return function(t,e){var n=e?po(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case P:case A:case k:case T:case D:case S:case"[object Uint8ClampedArray]":case I:case E:return ho(t,n);case v:return new o;case g:case b:return new o(t);case m:return function(t){var e=new t.constructor(t.source,rt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case _:return new o;case w:return r=t,kn?ht(kn.call(r)):{}}}(t,C,a)}}i||(i=new Nn);var M=i.get(t);if(M)return M;i.set(t,u),Gu(t)?t.forEach((function(r){u.add(Gn(r,e,n,r,t,i))})):Qu(t)&&t.forEach((function(r,o){u.set(o,Gn(r,e,n,o,t,i))}));var z=O?void 0:(l?s?Qo:Zo:s?ja:Oa)(t);return ie(z||t,(function(r,o){z&&(r=t[o=r]),$n(u,o,Gn(r,e,n,o,t,i))})),u}function Yn(t,e,n){var r=n.length;if(null==t)return!r;for(t=ht(t);r--;){var o=n[r],i=e[o],u=t[o];if(void 0===u&&!(o in t)||!i(u))return!1}return!0}function Xn(t,e,n){if("function"!=typeof t)throw new yt(i);return bi((function(){t.apply(void 0,n)}),e)}function tr(t,e,n,r){var o=-1,i=se,u=!0,a=t.length,c=[],s=e.length;if(!a)return c;n&&(e=de(e,De(n))),r?(i=fe,u=!1):e.length>=200&&(i=Ie,u=!1,e=new Rn(e));t:for(;++o-1},Mn.prototype.set=function(t,e){var n=this.__data__,r=Vn(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},zn.prototype.clear=function(){this.size=0,this.__data__={hash:new Bn,map:new(hn||Mn),string:new Bn}},zn.prototype.delete=function(t){var e=Yo(this,t).delete(t);return this.size-=e?1:0,e},zn.prototype.get=function(t){return Yo(this,t).get(t)},zn.prototype.has=function(t){return Yo(this,t).has(t)},zn.prototype.set=function(t,e){var n=Yo(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},Rn.prototype.add=Rn.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Rn.prototype.has=function(t){return this.__data__.has(t)},Nn.prototype.clear=function(){this.__data__=new Mn,this.size=0},Nn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Nn.prototype.get=function(t){return this.__data__.get(t)},Nn.prototype.has=function(t){return this.__data__.has(t)},Nn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Mn){var r=n.__data__;if(!hn||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new zn(r)}return n.set(t,e),this.size=n.size,this};var er=Oo(sr),nr=Oo(fr,!0);function rr(t,e){var n=!0;return er(t,(function(t,r,o){return n=!!e(t,r,o)})),n}function or(t,e,n){for(var r=-1,o=t.length;++r0&&n(a)?e>1?ur(a,e-1,n,r,o):le(o,a):r||(o[o.length]=a)}return o}var ar=jo(),cr=jo(!0);function sr(t,e){return t&&ar(t,e,Oa)}function fr(t,e){return t&&cr(t,e,Oa)}function dr(t,e){return ce(e,(function(e){return Uu(t[e])}))}function lr(t,e){for(var n=0,r=(e=ao(e,t)).length;null!=t&&ne}function gr(t,e){return null!=t&&jt.call(t,e)}function yr(t,e){return null!=t&&e in ht(t)}function mr(t,e,n){for(var o=n?fe:se,i=t[0].length,u=t.length,a=u,c=r(u),s=1/0,f=[];a--;){var d=t[a];a&&e&&(d=de(d,De(e))),s=cn(d.length,s),c[a]=!n&&(e||i>=120&&d.length>=120)?new Rn(a&&d):void 0}d=t[0];var l=-1,p=c[0];t:for(;++l=a?c:c*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)}));r--;)t[r]=t[r].value;return t}(kr(t,(function(t,n,o){return{criteria:de(e,(function(e){return e(t)})),index:++r,value:t}})))}function Cr(t,e,n){for(var r=-1,o=e.length,i={};++r-1;)a!==t&&Kt.call(a,c,1),Kt.call(t,c,1);return t}function Mr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var o=e[n];if(n==r||o!==i){var i=o;ai(o)?Kt.call(t,o,1):Xr(t,o)}}return t}function zr(t,e){return t+tn(dn()*(e-t+1))}function Rr(t,e){var n="";if(!t||e<1||e>9007199254740991)return n;do{e%2&&(n+=t),(e=tn(e/2))&&(t+=t)}while(e);return n}function Nr(t,e){return wi(vi(t,e,Ja),t+"")}function Fr(t){return Ln(Ia(t))}function Lr(t,e){var n=Ia(t);return xi(n,Hn(e,0,n.length))}function Wr(t,e,n,r){if(!Vu(t))return t;for(var o=-1,i=(e=ao(e,t)).length,u=i-1,a=t;null!=a&&++oi?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var u=r(i);++o>>1,u=t[i];null!==u&&!Xu(u)&&(n?u<=e:u=200){var s=e?null:No(t);if(s)return Ue(s);u=!1,o=Ie,c=new Rn}else c=e?[]:a;t:for(;++r=r?t:Vr(t,e,n)}var fo=He||function(t){return Vt.clearTimeout(t)};function lo(t,e){if(e)return t.slice();var n=t.length,r=qt?qt(n):new t.constructor(n);return t.copy(r),r}function po(t){var e=new t.constructor(t.byteLength);return new Lt(e).set(new Lt(t)),e}function ho(t,e){var n=e?po(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function vo(t,e){if(t!==e){var n=void 0!==t,r=null===t,o=t==t,i=Xu(t),u=void 0!==e,a=null===e,c=e==e,s=Xu(e);if(!a&&!s&&!i&&t>e||i&&u&&c&&!a&&!s||r&&u&&c||!n&&c||!o)return 1;if(!r&&!i&&!s&&t1?n[o-1]:void 0,u=o>2?n[2]:void 0;for(i=t.length>3&&"function"==typeof i?(o--,i):void 0,u&&ci(n[0],n[1],u)&&(i=o<3?void 0:i,o=1),e=ht(e);++r-1?o[i?e[u]:u]:void 0}}function To(t){return Vo((function(e){var n=e.length,r=n,o=En.prototype.thru;for(t&&e.reverse();r--;){var u=e[r];if("function"!=typeof u)throw new yt(i);if(o&&!a&&"wrapper"==Ko(u))var a=new En([],!0)}for(r=a?r:n;++r1&&_.reverse(),d&&sa))return!1;var s=i.get(t),f=i.get(e);if(s&&f)return s==e&&f==t;var d=-1,l=!0,p=2&n?new Rn:void 0;for(i.set(t,e),i.set(e,t);++d-1&&t%1==0&&t1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(H,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return ie(a,(function(n){var r="_."+n[0];e&n[1]&&!se(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(G);return e?e[1].split(Y):[]}(r),n)))}function ji(t){var e=0,n=0;return function(){var r=sn(),o=16-(r-n);if(n=r,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function xi(t,e){var n=-1,r=t.length,o=r-1;for(e=void 0===e?r:e;++n1?t[e-1]:void 0;return n="function"==typeof n?(t.pop(),n):void 0,Hi(t,n)}));function ru(t){var e=Dn(t);return e.__chain__=!0,e}function ou(t,e){return e(t)}var iu=Vo((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,o=function(e){return Kn(e,t)};return!(e>1||this.__actions__.length)&&r instanceof Cn&&ai(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:ou,args:[o],thisArg:void 0}),new En(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(void 0),t}))):this.thru(o)})),uu=bo((function(t,e,n){jt.call(t,n)?++t[n]:Jn(t,n,1)})),au=ko(Bi),cu=ko(Mi);function su(t,e){return(Mu(t)?ie:er)(t,Go(e,3))}function fu(t,e){return(Mu(t)?ue:nr)(t,Go(e,3))}var du=bo((function(t,e,n){jt.call(t,n)?t[n].push(e):Jn(t,n,[e])})),lu=Nr((function(t,e,n){var o=-1,i="function"==typeof e,u=Ru(t)?r(t.length):[];return er(t,(function(t){u[++o]=i?re(e,t,n):_r(t,e,n)})),u})),pu=bo((function(t,e,n){Jn(t,n,e)}));function hu(t,e){return(Mu(t)?de:kr)(t,Go(e,3))}var vu=bo((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]})),gu=Nr((function(t,e){if(null==t)return[];var n=e.length;return n>1&&ci(t,e[0],e[1])?e=[]:n>2&&ci(e[0],e[1],e[2])&&(e=[e[0]]),Er(t,ur(e,1),[])})),yu=Ge||function(){return Vt.Date.now()};function mu(t,e,n){return e=n?void 0:e,Lo(t,128,void 0,void 0,void 0,void 0,e=t&&null==e?t.length:e)}function _u(t,e){var n;if("function"!=typeof e)throw new yt(i);return t=ia(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=void 0),n}}var bu=Nr((function(t,e,n){var r=1;if(n.length){var o=We(n,Ho(bu));r|=32}return Lo(t,r,e,n,o)})),wu=Nr((function(t,e,n){var r=3;if(n.length){var o=We(n,Ho(wu));r|=32}return Lo(e,r,t,n,o)}));function Ou(t,e,n){var r,o,u,a,c,s,f=0,d=!1,l=!1,p=!0;if("function"!=typeof t)throw new yt(i);function h(e){var n=r,i=o;return r=o=void 0,f=e,a=t.apply(i,n)}function v(t){return f=t,c=bi(y,e),d?h(t):a}function g(t){var n=t-s;return void 0===s||n>=e||n<0||l&&t-f>=u}function y(){var t=yu();if(g(t))return m(t);c=bi(y,function(t){var n=e-(t-s);return l?cn(n,u-(t-f)):n}(t))}function m(t){return c=void 0,p&&r?h(t):(r=o=void 0,a)}function _(){var t=yu(),n=g(t);if(r=arguments,o=this,s=t,n){if(void 0===c)return v(s);if(l)return fo(c),c=bi(y,e),h(s)}return void 0===c&&(c=bi(y,e)),a}return e=aa(e)||0,Vu(n)&&(d=!!n.leading,u=(l="maxWait"in n)?an(aa(n.maxWait)||0,e):u,p="trailing"in n?!!n.trailing:p),_.cancel=function(){void 0!==c&&fo(c),f=0,r=s=o=c=void 0},_.flush=function(){return void 0===c?a:m(yu())},_}var ju=Nr((function(t,e){return Xn(t,1,e)})),xu=Nr((function(t,e,n){return Xn(t,aa(e)||0,n)}));function Pu(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new yt(i);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var u=t.apply(this,r);return n.cache=i.set(o,u)||i,u};return n.cache=new(Pu.Cache||zn),n}function Au(t){if("function"!=typeof t)throw new yt(i);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Pu.Cache=zn;var ku=co((function(t,e){var n=(e=1==e.length&&Mu(e[0])?de(e[0],De(Go())):de(ur(e,1),De(Go()))).length;return Nr((function(r){for(var o=-1,i=cn(r.length,n);++o=e})),Bu=br(function(){return arguments}())?br:function(t){return Zu(t)&&jt.call(t,"callee")&&!Qt.call(t,"callee")},Mu=r.isArray,zu=Gt?De(Gt):function(t){return Zu(t)&&hr(t)==j};function Ru(t){return null!=t&&$u(t.length)&&!Uu(t)}function Nu(t){return Zu(t)&&Ru(t)}var Fu=nn||ac,Lu=Yt?De(Yt):function(t){return Zu(t)&&hr(t)==d};function Wu(t){if(!Zu(t))return!1;var e=hr(t);return e==l||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!Ku(t)}function Uu(t){if(!Vu(t))return!1;var e=hr(t);return e==p||e==h||"[object AsyncFunction]"==e||"[object Proxy]"==e}function qu(t){return"number"==typeof t&&t==ia(t)}function $u(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function Vu(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Zu(t){return null!=t&&"object"==typeof t}var Qu=Xt?De(Xt):function(t){return Zu(t)&&ri(t)==v};function Ju(t){return"number"==typeof t||Zu(t)&&hr(t)==g}function Ku(t){if(!Zu(t)||hr(t)!=y)return!1;var e=$t(t);if(null===e)return!0;var n=jt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Ot.call(n)==kt}var Hu=te?De(te):function(t){return Zu(t)&&hr(t)==m},Gu=ee?De(ee):function(t){return Zu(t)&&ri(t)==_};function Yu(t){return"string"==typeof t||!Mu(t)&&Zu(t)&&hr(t)==b}function Xu(t){return"symbol"==typeof t||Zu(t)&&hr(t)==w}var ta=ne?De(ne):function(t){return Zu(t)&&$u(t.length)&&!!Nt[hr(t)]},ea=Mo(Ar),na=Mo((function(t,e){return t<=e}));function ra(t){if(!t)return[];if(Ru(t))return Yu(t)?Ve(t):mo(t);if(ge&&t[ge])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[ge]());var e=ri(t);return(e==v?Fe:e==_?Ue:Ia)(t)}function oa(t){return t?(t=aa(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function ia(t){var e=oa(t),n=e%1;return e==e?n?e-n:e:0}function ua(t){return t?Hn(ia(t),0,4294967295):0}function aa(t){if("number"==typeof t)return t;if(Xu(t))return NaN;if(Vu(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Vu(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Te(t);var n=it.test(t);return n||at.test(t)?Ut(t.slice(2),n?2:8):ot.test(t)?NaN:+t}function ca(t){return _o(t,ja(t))}function sa(t){return null==t?"":Gr(t)}var fa=wo((function(t,e){if(li(e)||Ru(e))_o(e,Oa(e),t);else for(var n in e)jt.call(e,n)&&$n(t,n,e[n])})),da=wo((function(t,e){_o(e,ja(e),t)})),la=wo((function(t,e,n,r){_o(e,ja(e),t,r)})),pa=wo((function(t,e,n,r){_o(e,Oa(e),t,r)})),ha=Vo(Kn),va=Nr((function(t,e){t=ht(t);var n=-1,r=e.length,o=r>2?e[2]:void 0;for(o&&ci(e[0],e[1],o)&&(r=1);++n1),e})),_o(t,Qo(t),n),r&&(n=Gn(n,7,qo));for(var o=e.length;o--;)Xr(n,e[o]);return n})),ka=Vo((function(t,e){return null==t?{}:function(t,e){return Cr(t,e,(function(e,n){return ma(t,n)}))}(t,e)}));function Ta(t,e){if(null==t)return{};var n=de(Qo(t),(function(t){return[t]}));return e=Go(e),Cr(t,n,(function(t,n){return e(t,n[0])}))}var Da=Fo(Oa),Sa=Fo(ja);function Ia(t){return null==t?[]:Se(t,Oa(t))}var Ea=Po((function(t,e,n){return e=e.toLowerCase(),t+(n?Ca(e):e)}));function Ca(t){return Wa(sa(t).toLowerCase())}function Ba(t){return(t=sa(t))&&t.replace(st,Me).replace(It,"")}var Ma=Po((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),za=Po((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Ra=xo("toLowerCase"),Na=Po((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()})),Fa=Po((function(t,e,n){return t+(n?" ":"")+Wa(e)})),La=Po((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),Wa=xo("toUpperCase");function Ua(t,e,n){return t=sa(t),void 0===(e=n?void 0:e)?function(t){return Mt.test(t)}(t)?function(t){return t.match(Ct)||[]}(t):function(t){return t.match(X)||[]}(t):t.match(e)||[]}var qa=Nr((function(t,e){try{return re(t,void 0,e)}catch(t){return Wu(t)?t:new K(t)}})),$a=Vo((function(t,e){return ie(e,(function(e){e=Ti(e),Jn(t,e,bu(t[e],t))})),t}));function Va(t){return function(){return t}}var Za=To(),Qa=To(!0);function Ja(t){return t}function Ka(t){return xr("function"==typeof t?t:Gn(t,1))}var Ha=Nr((function(t,e){return function(n){return _r(n,t,e)}})),Ga=Nr((function(t,e){return function(n){return _r(t,n,e)}}));function Ya(t,e,n){var r=Oa(e),o=dr(e,r);null!=n||Vu(e)&&(o.length||!r.length)||(n=e,e=t,t=this,o=dr(e,Oa(e)));var i=!(Vu(n)&&"chain"in n&&!n.chain),u=Uu(t);return ie(o,(function(n){var r=e[n];t[n]=r,u&&(t.prototype[n]=function(){var e=this.__chain__;if(i||e){var n=t(this.__wrapped__),o=n.__actions__=mo(this.__actions__);return o.push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,le([this.value()],arguments))})})),t}function Xa(){}var tc=Eo(de),ec=Eo(ae),nc=Eo(ve);function rc(t){return si(t)?je(Ti(t)):function(t){return function(e){return lr(e,t)}}(t)}var oc=Bo(),ic=Bo(!0);function uc(){return[]}function ac(){return!1}var cc,sc=Io((function(t,e){return t+e}),0),fc=Ro("ceil"),dc=Io((function(t,e){return t/e}),1),lc=Ro("floor"),pc=Io((function(t,e){return t*e}),1),hc=Ro("round"),vc=Io((function(t,e){return t-e}),0);return Dn.after=function(t,e){if("function"!=typeof e)throw new yt(i);return t=ia(t),function(){if(--t<1)return e.apply(this,arguments)}},Dn.ary=mu,Dn.assign=fa,Dn.assignIn=da,Dn.assignInWith=la,Dn.assignWith=pa,Dn.at=ha,Dn.before=_u,Dn.bind=bu,Dn.bindAll=$a,Dn.bindKey=wu,Dn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Mu(t)?t:[t]},Dn.chain=ru,Dn.chunk=function(t,e,n){e=(n?ci(t,e,n):void 0===e)?1:an(ia(e),0);var o=null==t?0:t.length;if(!o||e<1)return[];for(var i=0,u=0,a=r(Xe(o/e));io?0:o+n),(r=void 0===r||r>o?o:ia(r))<0&&(r+=o),r=n>r?0:ua(r);n>>0)?(t=sa(t))&&("string"==typeof e||null!=e&&!Hu(e))&&!(e=Gr(e))&&Ne(t)?so(Ve(t),0,n):t.split(e,n):[]},Dn.spread=function(t,e){if("function"!=typeof t)throw new yt(i);return e=null==e?0:an(ia(e),0),Nr((function(n){var r=n[e],o=so(n,0,e);return r&&le(o,r),re(t,this,o)}))},Dn.tail=function(t){var e=null==t?0:t.length;return e?Vr(t,1,e):[]},Dn.take=function(t,e,n){return t&&t.length?Vr(t,0,(e=n||void 0===e?1:ia(e))<0?0:e):[]},Dn.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?Vr(t,(e=r-(e=n||void 0===e?1:ia(e)))<0?0:e,r):[]},Dn.takeRightWhile=function(t,e){return t&&t.length?eo(t,Go(e,3),!1,!0):[]},Dn.takeWhile=function(t,e){return t&&t.length?eo(t,Go(e,3)):[]},Dn.tap=function(t,e){return e(t),t},Dn.throttle=function(t,e,n){var r=!0,o=!0;if("function"!=typeof t)throw new yt(i);return Vu(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Ou(t,e,{leading:r,maxWait:e,trailing:o})},Dn.thru=ou,Dn.toArray=ra,Dn.toPairs=Da,Dn.toPairsIn=Sa,Dn.toPath=function(t){return Mu(t)?de(t,Ti):Xu(t)?[t]:mo(ki(sa(t)))},Dn.toPlainObject=ca,Dn.transform=function(t,e,n){var r=Mu(t),o=r||Fu(t)||ta(t);if(e=Go(e,4),null==n){var i=t&&t.constructor;n=o?r?new i:[]:Vu(t)&&Uu(i)?Sn($t(t)):{}}return(o?ie:sr)(t,(function(t,r,o){return e(n,t,r,o)})),n},Dn.unary=function(t){return mu(t,1)},Dn.union=Zi,Dn.unionBy=Qi,Dn.unionWith=Ji,Dn.uniq=function(t){return t&&t.length?Yr(t):[]},Dn.uniqBy=function(t,e){return t&&t.length?Yr(t,Go(e,2)):[]},Dn.uniqWith=function(t,e){return e="function"==typeof e?e:void 0,t&&t.length?Yr(t,void 0,e):[]},Dn.unset=function(t,e){return null==t||Xr(t,e)},Dn.unzip=Ki,Dn.unzipWith=Hi,Dn.update=function(t,e,n){return null==t?t:to(t,e,uo(n))},Dn.updateWith=function(t,e,n,r){return r="function"==typeof r?r:void 0,null==t?t:to(t,e,uo(n),r)},Dn.values=Ia,Dn.valuesIn=function(t){return null==t?[]:Se(t,ja(t))},Dn.without=Gi,Dn.words=Ua,Dn.wrap=function(t,e){return Tu(uo(e),t)},Dn.xor=Yi,Dn.xorBy=Xi,Dn.xorWith=tu,Dn.zip=eu,Dn.zipObject=function(t,e){return oo(t||[],e||[],$n)},Dn.zipObjectDeep=function(t,e){return oo(t||[],e||[],Wr)},Dn.zipWith=nu,Dn.entries=Da,Dn.entriesIn=Sa,Dn.extend=da,Dn.extendWith=la,Ya(Dn,Dn),Dn.add=sc,Dn.attempt=qa,Dn.camelCase=Ea,Dn.capitalize=Ca,Dn.ceil=fc,Dn.clamp=function(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=(n=aa(n))==n?n:0),void 0!==e&&(e=(e=aa(e))==e?e:0),Hn(aa(t),e,n)},Dn.clone=function(t){return Gn(t,4)},Dn.cloneDeep=function(t){return Gn(t,5)},Dn.cloneDeepWith=function(t,e){return Gn(t,5,e="function"==typeof e?e:void 0)},Dn.cloneWith=function(t,e){return Gn(t,4,e="function"==typeof e?e:void 0)},Dn.conformsTo=function(t,e){return null==e||Yn(t,e,Oa(e))},Dn.deburr=Ba,Dn.defaultTo=function(t,e){return null==t||t!=t?e:t},Dn.divide=dc,Dn.endsWith=function(t,e,n){t=sa(t),e=Gr(e);var r=t.length,o=n=void 0===n?r:Hn(ia(n),0,r);return(n-=e.length)>=0&&t.slice(n,o)==e},Dn.eq=Iu,Dn.escape=function(t){return(t=sa(t))&&F.test(t)?t.replace(R,ze):t},Dn.escapeRegExp=function(t){return(t=sa(t))&&Q.test(t)?t.replace(Z,"\\$&"):t},Dn.every=function(t,e,n){var r=Mu(t)?ae:rr;return n&&ci(t,e,n)&&(e=void 0),r(t,Go(e,3))},Dn.find=au,Dn.findIndex=Bi,Dn.findKey=function(t,e){return ye(t,Go(e,3),sr)},Dn.findLast=cu,Dn.findLastIndex=Mi,Dn.findLastKey=function(t,e){return ye(t,Go(e,3),fr)},Dn.floor=lc,Dn.forEach=su,Dn.forEachRight=fu,Dn.forIn=function(t,e){return null==t?t:ar(t,Go(e,3),ja)},Dn.forInRight=function(t,e){return null==t?t:cr(t,Go(e,3),ja)},Dn.forOwn=function(t,e){return t&&sr(t,Go(e,3))},Dn.forOwnRight=function(t,e){return t&&fr(t,Go(e,3))},Dn.get=ya,Dn.gt=Eu,Dn.gte=Cu,Dn.has=function(t,e){return null!=t&&oi(t,e,gr)},Dn.hasIn=ma,Dn.head=Ri,Dn.identity=Ja,Dn.includes=function(t,e,n,r){t=Ru(t)?t:Ia(t),n=n&&!r?ia(n):0;var o=t.length;return n<0&&(n=an(o+n,0)),Yu(t)?n<=o&&t.indexOf(e,n)>-1:!!o&&_e(t,e,n)>-1},Dn.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=null==n?0:ia(n);return o<0&&(o=an(r+o,0)),_e(t,e,o)},Dn.inRange=function(t,e,n){return e=oa(e),void 0===n?(n=e,e=0):n=oa(n),function(t,e,n){return t>=cn(e,n)&&t=-9007199254740991&&t<=9007199254740991},Dn.isSet=Gu,Dn.isString=Yu,Dn.isSymbol=Xu,Dn.isTypedArray=ta,Dn.isUndefined=function(t){return void 0===t},Dn.isWeakMap=function(t){return Zu(t)&&ri(t)==O},Dn.isWeakSet=function(t){return Zu(t)&&"[object WeakSet]"==hr(t)},Dn.join=function(t,e){return null==t?"":on.call(t,e)},Dn.kebabCase=Ma,Dn.last=Wi,Dn.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r;return void 0!==n&&(o=(o=ia(n))<0?an(r+o,0):cn(o,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,o):me(t,we,o,!0)},Dn.lowerCase=za,Dn.lowerFirst=Ra,Dn.lt=ea,Dn.lte=na,Dn.max=function(t){return t&&t.length?or(t,Ja,vr):void 0},Dn.maxBy=function(t,e){return t&&t.length?or(t,Go(e,2),vr):void 0},Dn.mean=function(t){return Oe(t,Ja)},Dn.meanBy=function(t,e){return Oe(t,Go(e,2))},Dn.min=function(t){return t&&t.length?or(t,Ja,Ar):void 0},Dn.minBy=function(t,e){return t&&t.length?or(t,Go(e,2),Ar):void 0},Dn.stubArray=uc,Dn.stubFalse=ac,Dn.stubObject=function(){return{}},Dn.stubString=function(){return""},Dn.stubTrue=function(){return!0},Dn.multiply=pc,Dn.nth=function(t,e){return t&&t.length?Ir(t,ia(e)):void 0},Dn.noConflict=function(){return Vt._===this&&(Vt._=Tt),this},Dn.noop=Xa,Dn.now=yu,Dn.pad=function(t,e,n){t=sa(t);var r=(e=ia(e))?$e(t):0;if(!e||r>=e)return t;var o=(e-r)/2;return Co(tn(o),n)+t+Co(Xe(o),n)},Dn.padEnd=function(t,e,n){t=sa(t);var r=(e=ia(e))?$e(t):0;return e&&re){var r=t;t=e,e=r}if(n||t%1||e%1){var o=dn();return cn(t+o*(e-t+Wt("1e-"+((o+"").length-1))),e)}return zr(t,e)},Dn.reduce=function(t,e,n){var r=Mu(t)?pe:Pe,o=arguments.length<3;return r(t,Go(e,4),n,o,er)},Dn.reduceRight=function(t,e,n){var r=Mu(t)?he:Pe,o=arguments.length<3;return r(t,Go(e,4),n,o,nr)},Dn.repeat=function(t,e,n){return e=(n?ci(t,e,n):void 0===e)?1:ia(e),Rr(sa(t),e)},Dn.replace=function(){var t=arguments,e=sa(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Dn.result=function(t,e,n){var r=-1,o=(e=ao(e,t)).length;for(o||(o=1,t=void 0);++r9007199254740991)return[];var n=4294967295,r=cn(t,4294967295);t-=4294967295;for(var o=ke(r,e=Go(e));++n=i)return t;var a=n-$e(r);if(a<1)return r;var c=u?so(u,0,a).join(""):t.slice(0,a);if(void 0===o)return c+r;if(u&&(a+=c.length-a),Hu(o)){if(t.slice(a).search(o)){var s,f=c;for(o.global||(o=vt(o.source,sa(rt.exec(o))+"g")),o.lastIndex=0;s=o.exec(f);)var d=s.index;c=c.slice(0,void 0===d?a:d)}}else if(t.indexOf(Gr(o),a)!=a){var l=c.lastIndexOf(o);l>-1&&(c=c.slice(0,l))}return c+r},Dn.unescape=function(t){return(t=sa(t))&&N.test(t)?t.replace(z,Qe):t},Dn.uniqueId=function(t){var e=++xt;return sa(t)+e},Dn.upperCase=La,Dn.upperFirst=Wa,Dn.each=su,Dn.eachRight=fu,Dn.first=Ri,Ya(Dn,(cc={},sr(Dn,(function(t,e){jt.call(Dn.prototype,e)||(cc[e]=t)})),cc),{chain:!1}),Dn.VERSION="4.17.21",ie(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Dn[t].placeholder=Dn})),ie(["drop","take"],(function(t,e){Cn.prototype[t]=function(n){n=void 0===n?1:an(ia(n),0);var r=this.__filtered__&&!e?new Cn(this):this.clone();return r.__filtered__?r.__takeCount__=cn(n,r.__takeCount__):r.__views__.push({size:cn(n,4294967295),type:t+(r.__dir__<0?"Right":"")}),r},Cn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),ie(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;Cn.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:Go(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),ie(["head","last"],(function(t,e){var n="take"+(e?"Right":"");Cn.prototype[t]=function(){return this[n](1).value()[0]}})),ie(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");Cn.prototype[t]=function(){return this.__filtered__?new Cn(this):this[n](1)}})),Cn.prototype.compact=function(){return this.filter(Ja)},Cn.prototype.find=function(t){return this.filter(t).head()},Cn.prototype.findLast=function(t){return this.reverse().find(t)},Cn.prototype.invokeMap=Nr((function(t,e){return"function"==typeof t?new Cn(this):this.map((function(n){return _r(n,t,e)}))})),Cn.prototype.reject=function(t){return this.filter(Au(Go(t)))},Cn.prototype.slice=function(t,e){t=ia(t);var n=this;return n.__filtered__&&(t>0||e<0)?new Cn(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),void 0!==e&&(n=(e=ia(e))<0?n.dropRight(-e):n.take(e-t)),n)},Cn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Cn.prototype.toArray=function(){return this.take(4294967295)},sr(Cn.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),o=Dn[r?"take"+("last"==e?"Right":""):e],i=r||/^find/.test(e);o&&(Dn.prototype[e]=function(){var e=this.__wrapped__,u=r?[1]:arguments,a=e instanceof Cn,c=u[0],s=a||Mu(e),f=function(t){var e=o.apply(Dn,le([t],u));return r&&d?e[0]:e};s&&n&&"function"==typeof c&&1!=c.length&&(a=s=!1);var d=this.__chain__,l=!!this.__actions__.length,p=i&&!d,h=a&&!l;if(!i&&s){e=h?e:new Cn(this);var v=t.apply(e,u);return v.__actions__.push({func:ou,args:[f],thisArg:void 0}),new En(v,d)}return p&&h?t.apply(this,u):(v=this.thru(f),p?r?v.value()[0]:v.value():v)})})),ie(["pop","push","shift","sort","splice","unshift"],(function(t){var e=mt[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Dn.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var o=this.value();return e.apply(Mu(o)?o:[],t)}return this[n]((function(n){return e.apply(Mu(n)?n:[],t)}))}})),sr(Cn.prototype,(function(t,e){var n=Dn[e];if(n){var r=n.name+"";jt.call(bn,r)||(bn[r]=[]),bn[r].push({name:e,func:n})}})),bn[Do(void 0,2).name]=[{name:"wrapper",func:void 0}],Cn.prototype.clone=function(){var t=new Cn(this.__wrapped__);return t.__actions__=mo(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=mo(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=mo(this.__views__),t},Cn.prototype.reverse=function(){if(this.__filtered__){var t=new Cn(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Cn.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Mu(t),r=e<0,o=n?t.length:0,i=function(t,e,n){for(var r=-1,o=n.length;++r=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}},Dn.prototype.plant=function(t){for(var e,n=this;n instanceof In;){var r=Si(n);r.__index__=0,r.__values__=void 0,e?o.__wrapped__=r:e=r;var o=r;n=n.__wrapped__}return o.__wrapped__=t,e},Dn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Cn){var e=t;return this.__actions__.length&&(e=new Cn(this)),(e=e.reverse()).__actions__.push({func:ou,args:[Vi],thisArg:void 0}),new En(e,this.__chain__)}return this.thru(Vi)},Dn.prototype.toJSON=Dn.prototype.valueOf=Dn.prototype.value=function(){return no(this.__wrapped__,this.__actions__)},Dn.prototype.first=Dn.prototype.head,ge&&(Dn.prototype[ge]=function(){return this}),Dn}();Vt._=Je,void 0===(o=function(){return Je}.call(e,n,e,r))||(r.exports=o)}).call(this)}).call(this,n(194),n(32)(t))},27:function(t,e,n){"use strict";n.d(e,"a",(function(){return m}));var r={};n.r(r),n.d(r,"find",(function(){return a}));var o={};n.r(o),n.d(o,"isTabbableIndex",(function(){return f})),n.d(o,"find",(function(){return v})),n.d(o,"findPrevious",(function(){return g})),n.d(o,"findNext",(function(){return y}));var i=["[tabindex]","a[href]","button:not([disabled])",'input:not([type="hidden"]):not([disabled])',"select:not([disabled])","textarea:not([disabled])","iframe","object","embed","area[href]","[contenteditable]:not([contenteditable=false])"].join(",");function u(t){return t.offsetWidth>0||t.offsetHeight>0||t.getClientRects().length>0}function a(t){var e=t.querySelectorAll(i);return Array.from(e).filter((function(t){return!(!u(t)||function(t){return"iframe"===t.nodeName.toLowerCase()&&"-1"===t.getAttribute("tabindex")}(t))&&("AREA"!==t.nodeName||function(t){var e=t.closest("map[name]");if(!e)return!1;var n=t.ownerDocument.querySelector('img[usemap="#'+e.name+'"]');return!!n&&u(n)}(t))}))}var c=n(26);function s(t){var e=t.getAttribute("tabindex");return null===e?0:parseInt(e,10)}function f(t){return-1!==s(t)}function d(t,e){return{element:t,index:e}}function l(t){return t.element}function p(t,e){var n=s(t.element),r=s(e.element);return n===r?t.index-e.index:n-r}function h(t){return t.filter(f).map(d).sort(p).map(l).reduce((e={},function(t,n){var r=n.nodeName,o=n.type,i=n.checked,u=n.name;if("INPUT"!==r||"radio"!==o||!u)return t.concat(n);var a=e.hasOwnProperty(u);if(!i&&a)return t;if(a){var s=e[u];t=Object(c.without)(t,s)}return e[u]=n,t.concat(n)}),[]);var e}function v(t){return h(a(t))}function g(t){var e=a(t.ownerDocument.body),n=e.indexOf(t);return e.length=n,Object(c.last)(h(e))}function y(t){var e=a(t.ownerDocument.body),n=e.indexOf(t),r=e.slice(n+1).filter((function(e){return!t.contains(e)}));return Object(c.first)(h(r))}var m={focusable:r,tabbable:o}},28:function(t,e,n){"use strict";t.exports=function(t,e,n,r){t=(t+"").replace(/[^0-9+\-Ee.]/g,"");var o=isFinite(+t)?+t:0,i=isFinite(+e)?Math.abs(e):0,u=void 0===r?",":r,a=void 0===n?".":n,c="";return(c=(i?function(t,e){if(-1===(""+t).indexOf("e"))return+(Math.round(t+"e+"+e)+"e-"+e);var n=(""+t).split("e"),r="";return+n[1]+e>0&&(r="+"),(+(Math.round(+n[0]+"e"+r+(+n[1]+e))+"e-"+e)).toFixed(e)}(o,i).toString():""+Math.round(o)).split("."))[0].length>3&&(c[0]=c[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,u)),(c[1]||"").length0&&(r=".".concat(o()(e.classList).join("."))),null!==r){var i=t.querySelector(r);if(i){i.focus();try{i.setSelectionRange&&i.setSelectionRange(n,n)}catch(t){}}}}}})}).call(this,n(1))},6:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return c}));var r=n(2),o=n.n(r);function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};u()(this,t);var n=edd_vars,r=n.currency_decimals,o=n.decimal_separator,i=n.thousands_separator;this.config=f({precision:r,decimalSeparator:o,thousandSeparator:i},e)}return c()(t,[{key:"format",value:function(t){var e=t;"number"!=typeof t&&(e=parseFloat(t)),isNaN(e)&&(e=0);var n=this.config,r=n.precision,o=n.decimalSeparator,i=n.thousandSeparator;return d(e,r,o,i)}},{key:"unformat",value:function(t){var e=this.config,n=e.decimalSeparator,r=e.thousandSeparator;"string"!=typeof t&&(t=String(t));var o=t.replace(r,"").replace(n,"."),i=parseFloat(o);return isNaN(i)?0:i}},{key:"absint",value:function(t){var e=this.unformat(t);return e>=0?e:-1*e}}]),t}();function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function h(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};u()(this,t);var n=edd_vars,r=n.currency,o=n.currency_sign,i=n.currency_pos,a=n.currency_decimals,c=n.decimal_separator,s=n.thousands_separator;this.config=h({currency:r,currencySymbol:o,currencySymbolPosition:i,precision:a,decimalSeparator:c,thousandSeparator:s},e),this.number=new l(this.config)}return c()(t,[{key:"format",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.config,r=n.currencySymbol,o=n.currencySymbolPosition,i=t<0,u=this.number.format(t),a="";switch(i&&(u=this.number.format(-1*t)),o){case"before":a=r+u;break;case"after":a=u+r}return!0===i&&!1===e&&(a="-".concat(a)),a}},{key:"unformat",value:function(t){var e=this.config.currencySymbol,n=t.replace(e,"");return this.number.unformat(n)}}]),t}()}}); \ No newline at end of file +!function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=193)}({1:function(t,e){t.exports=jQuery},10:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return r}));var r=n(5).a.extend({initialize:function(){this.$el.dialog({position:{my:"top center",at:"center center-25%"},classes:{"ui-dialog":"edd-dialog"},closeText:eddAdminOrderOverview.i18n.closeText,width:"350px",modal:!0,resizable:!1,draggable:!1,autoOpen:!1,create:function(){t(this).css("maxWidth","90vw")}})},openDialog:function(){return this.$el.dialog("open"),this},closeDialog:function(t){return t&&t.preventDefault&&t.preventDefault(),this.$el.dialog("close"),this.undelegateEvents(),this}})}).call(this,n(1))},11:function(t,e,n){var r=n(3).default;t.exports=function(t,e){if("object"!==r(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports},12:function(t,e,n){"use strict";!function(){var e,r,o,i=0,u=[];for(r=0;r<256;r++)u[r]=(r+256).toString(16).substr(1);function a(){var t=(16,(!e||i+16>c.BUFFER_SIZE)&&(i=0,e=c.randomBytes(c.BUFFER_SIZE)),e.slice(i,i+=16));return t[6]=15&t[6]|64,t[8]=63&t[8]|128,t}function c(){var t=a();return u[t[0]]+u[t[1]]+u[t[2]]+u[t[3]]+"-"+u[t[4]]+u[t[5]]+"-"+u[t[6]]+u[t[7]]+"-"+u[t[8]]+u[t[9]]+"-"+u[t[10]]+u[t[11]]+u[t[12]]+u[t[13]]+u[t[14]]+u[t[15]]}c.BUFFER_SIZE=4096,c.bin=a,c.clearBuffer=function(){e=null,i=0},c.test=function(t){return"string"==typeof t&&/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/.test(t)},"undefined"!=typeof crypto?o=crypto:"undefined"!=typeof window&&void 0!==window.msCrypto&&(o=window.msCrypto),o=o||n(195),t.exports=c,c.randomBytes=function(){if(o){if(o.randomBytes)return o.randomBytes;if(o.getRandomValues)return function(t){var e=new Uint8Array(t);return o.getRandomValues(e),e}}return function(t){var e,n=[];for(e=0;e0},updateAmounts:function(){var e=this.options.state,n=e.get("items"),r=new Backbone.Collection(e.get("adjustments").getByType("discount")),i={country:e.getTaxCountry(),region:e.getTaxRegion(),products:n.map((function(t){return{id:t.get("productId"),quantity:t.get("quantity"),options:{price_id:t.get("priceId")}}})),discountIds:r.pluck("typeId")},u=[];return n.models.forEach((function(t){var e=t.getAmounts(i);e.done((function(e){var n=e.adjustments.map((function(e){return new f.a(p(p({},e),{},{id:c()(),objectId:t.get("id")}))})),r=t.get("adjustments").filter((function(t){return["fee","credit"].includes(t.type)}));t.set("adjustments",new s.a([].concat(o()(n),o()(r))))})).done((function(e){return t.setAmounts(e)})),u.push(e)})),t.when.apply(t,u)}})}).call(this,n(1))},18:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(17),o=n(19),i=Backbone.Collection.extend({comparator:"type",initialize:function(){this.getByType=this.getByType.bind(this)},model:function(t,e){var n;switch(t.type){case"discount":n=new o.a(t,e);break;default:n=new r.a(t,e)}return n},modelId:function(t){return"".concat(t.type,"-").concat(t.typeId,"-").concat(t.description)},has:function(t){return void 0!==this.findWhere({typeId:t.get("typeId")})},getByType:function(t){return this.where({type:t})}})},180:function(t,e,n){"use strict";n.d(e,"a",(function(){return N}));var r=n(2),o=n.n(r),i=n(5),u=n(170);function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e0}},onDismissTaxRateChange:function(){var t=this.options.state;t.set("hasTax",t.get("hasTax")),t.trigger("change:hasTax")},onUpdateAmounts:function(t){var e=this;t.preventDefault();var n=this.options.state;n.get("adjustments").getByType("fee").forEach((function(t){t.updateTax()})),n.get("items").updateAmounts().done((function(){e.onDismissTaxRateChange()}))}}),S=j.extend({getAdjustments:function(){return this.options.state.get("adjustments").getByType("credit")}});function I(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function E(t){for(var e=1;e0&&(i=!0),t("#edd-refund-submit-subtotal-amount").text(e.format(n)),t("#edd-refund-submit-tax-amount").text(e.format(r)),t("#edd-refund-submit-total-amount").text(e.format(o)),t("#edd-submit-refund-submit").attr("disabled",!i),u.prop("readonly",!1),a.prop("readonly",!0)}t(document.body).on("click",".edd-refund-order",(function(e){e.preventDefault(),t(this);var n={action:"edd_generate_refund_form",order_id:t('input[name="edd_payment_id"]').val()};t.ajax({type:"POST",data:n,url:ajaxurl,success:function(e){var n;return n=e.success?e.html:e.message,t("#edd-refund-order-dialog").dialog({position:{my:"top center",at:"center center-25%"},width:"75%",modal:!0,resizable:!1,draggable:!1,classes:{"ui-dialog":"edd-dialog"},closeText:eddAdminOrderOverview.i18n.closeText,open:function(e,r){t(this).html(n)},close:function(e,n){t(this).html(""),t(this).hasClass("did-refund")&&location.reload()}}),!1}}).fail((function(e){return t("#edd-refund-order-dialog").dialog({position:{my:"top center",at:"center center-25%"},width:"75%",modal:!0,resizable:!1,draggable:!1}).html(e.message),!1}))})),t(document.body).on("click",".ui-widget-overlay",(function(e){t("#edd-refund-order-dialog").dialog("close")})),t(document.body).on("change","#edd-refund-order-dialog #cb-select-all-1",(function(){var e=t(".edd-order-item-refund-checkbox"),n=t(this).prop("checked");e.each((function(){t(this).prop("checked",n).trigger("change")}))})),t(document.body).on("change",".edd-order-item-refund-checkbox",(function(){var e=t(this).parent().parent(),n=e.find(".edd-order-item-refund-quantity");n.length&&(t(this).prop("checked")?n.trigger("change"):(e.find(".edd-order-item-refund-input").prop("disabled",!0),r()))})),t(document.body).on("change","#edd-refund-order-dialog .edd-order-item-refund-input",(function(){var n=t(this).closest(".refunditem"),o=n.find(".edd-order-item-refund-quantity"),i=parseInt(o.val());if(i>0?n.addClass("refunded"):n.removeClass("refunded"),t(this).hasClass("edd-order-item-refund-quantity")){n.find(".edd-order-item-refund-input:not(.edd-order-item-refund-quantity)").prop("disabled",0===i),i>0&&o.prop("disabled",!1);var u=n.find(".edd-order-item-refund-subtotal"),a=n.find(".edd-order-item-refund-tax"),c=e.unformat(u.data("original")),s=a.length?e.unformat(a.data("original")):0,f=parseInt(o.data("max")),d=c/f*i,l=a.length?s/f*i:0;d>parseFloat(u.data("max"))&&(d=u.data("max")),a.length&&l>parseFloat(a.data("max"))&&(l=a.data("max")),u.val(e.format(d)),a.length&&a.val(e.format(l))}r()})),t(document.body).on("click","#edd-submit-refund-submit",(function(e){e.preventDefault(),t(".edd-submit-refund-message").removeClass("success").removeClass("fail"),t(this).removeClass("button-primary").attr("disabled",!0).addClass("updating-message"),t("#edd-submit-refund-status").hide();var n={action:"edd_process_refund_form",data:t("#edd-submit-refund-form").serialize(),order_id:t('input[name="edd_payment_id"]').val()};t.ajax({type:"POST",data:n,url:ajaxurl,success:function(e){var n=t(".edd-submit-refund-message"),r=t(".edd-submit-refund-url");e.success?(n.text(e.data.message).addClass("success"),r.attr("href",e.data.refund_url).show(),t("#edd-submit-refund-status").show(),r.focus(),t("#edd-refund-order-dialog").addClass("did-refund")):(n.html(e.data).addClass("fail"),r.hide(),t("#edd-submit-refund-status").show(),t("#edd-submit-refund-submit").attr("disabled",!1).removeClass("updating-message").addClass("button-primary"))}}).fail((function(e){var n=t(".edd-submit-refund-message"),r=t(".edd-submit-refund-url"),o=e.responseJSON;return n.text(o.data).addClass("fail"),r.hide(),t("#edd-submit-refund-status").show(),t("#edd-submit-refund-submit").attr("disabled",!1).removeClass("updating-message").addClass("button-primary"),!1}))})),t(document.body).on("click",".refund-items .toggle-row",(function(){t(this).closest("tr").toggleClass("is-expanded")}))}).call(this,n(1))},197:function(t,e,n){"use strict";n(198),n(199),n(200)},198:function(t,e,n){"use strict";(function(t){var e=n(2),r=n.n(e),o=n(24),i=n(6),u=n(4);function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e'):(n.replaceWith(e),t("#edd_order_address_region").chosen(Object(i.a)(t("#edd_order_address_region"))))}function r(){e(t(this),"edd_order_address[region]","edd_order_address_region").done(n)}!function(){var e=o.a.options.state;if(!1!==e.get("hasTax")&&!1!==e.get("isAdding")){var n=document.getElementById("edd_order_address_country"),r=document.getElementById("edd_order_address_region");n&&r&&(t("#edd_order_address_country").on("change",_.debounce(i,250)),t("#edd-order-address").on("change","#edd_order_address_region",i),t("#edd-order-address").on("keyup","#edd_order_address_region",_.debounce(i,250)))}function i(){var n=t("#edd_order_address_country").val(),r=t("#edd_order_address_region").val(),o=document.getElementById("edd_get_tax_rate_nonce").value;wp.ajax.send("edd_get_tax_rate",{data:{nonce:o,country:n,region:r},success:function(t){var o=t.tax_rate;o*=100,e.set("hasTax",c(c({},e.get("hasTax")),{},{country:n,region:r,rate:o}))},error:function(){e.set("hasTax","none")}})}}(),t(".edd-payment-change-customer-input").on("change",(function(){var e={action:"edd_customer_addresses",customer_id:t(this).val(),nonce:t("#edd_add_order_nonce").val()};return t.post(ajaxurl,e,(function(e){var n=e.success,r=e.data;n?(s=c(c(c({},s),r),{},{addresses:c(c({},s.addresses),r.addresses)}),r.html?(t(".customer-address-select-wrap").show(),t(".customer-address-select-wrap .edd-form-group__control").html(r.html)):t(".customer-address-select-wrap").hide()):t(".customer-address-select-wrap").hide()}),"json"),!1})),t(document.body).on("change",".customer-address-select-wrap .add-order-customer-address-select",(function(){var o=t(this).val(),i=s.addresses[o];return t('#edd-add-order-form input[name="edd_order_address[address]"]').val(i.address),t('#edd-add-order-form input[name="edd_order_address[address2]"]').val(i.address2),t('#edd-add-order-form input[name="edd_order_address[postal_code]"]').val(i.postal_code),t('#edd-add-order-form input[name="edd_order_address[city]"]').val(i.city),t('#edd-add-order-form input[name="edd_order_address[address_id]"]').val(o),t("#edd_order_address_country").off("change",r),t("#edd_order_address_country").val(i.country).trigger("change").trigger("chosen:updated"),e(t("#edd_order_address_country"),"edd_order_address[region]","edd_order_address_region").done(n).done((function(e){t("#edd_order_address_region").val(i.region).trigger("change").trigger("chosen:updated")})),t("#edd_order_address_country").on("change",r),!1})),t("#edd_order_address_country").on("change",r)}))}).call(this,n(1))},199:function(t,e,n){"use strict";(function(t){var e=n(4);Object(e.a)((function(){t(".edd-payment-change-customer-input").on("change",(function(){var e={action:"edd_customer_details",customer_id:t(this).val(),nonce:t("#edd_customer_details_nonce").val()};""!==e.customer_id&&(t(".customer-details").css("display","none"),t("#customer-avatar").html(''),t.post(ajaxurl,e,(function(e){var n=e.success,r=e.data;n?(t(".customer-details").css("display","flex"),t(".customer-details-wrap").css("display","flex"),t("#customer-avatar").html(r.avatar),t(".customer-name").html(r.name),t(".customer-since span").html(r.date_created_i18n),t(".customer-record a").prop("href",r._links.self)):t(".customer-details-wrap").css("display","none")}),"json"))})),t(".edd-payment-change-customer-input").trigger("change"),t("#edd-customer-details").on("click",".edd-payment-new-customer, .edd-payment-new-customer-cancel",(function(e){e.preventDefault();var n=t(this).hasClass("edd-payment-new-customer"),r=t(this).hasClass("edd-payment-new-customer-cancel");n?(t(".order-customer-info").hide(),t(".new-customer").show()):r&&(t(".order-customer-info").show(),t(".new-customer").hide()),n=t("#edd-new-customer"),t(".new-customer").is(":visible")?n.val(1):n.val(0)}))}))}).call(this,n(1))},2:function(t,e,n){var r=n(7);t.exports=function(t,e,n){return(e=r(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},t.exports.__esModule=!0,t.exports.default=t.exports},20:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(8),o=n.n(r),i=n(18),u=Backbone.Model.extend({defaults:{id:0,orderId:0,productId:0,productName:"",priceId:null,cartIndex:0,type:"download",status:"",statusLabel:"",quantity:1,amount:0,subtotal:0,discount:0,tax:0,total:0,dateCreated:"",dateModified:"",uuid:"",amountManual:0,taxManual:0,subtotalManual:0,_isAdjustingManually:!1,adjustments:new i.a},getSubtotal:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.get("state"),n=this.get("subtotal");return!1===e.get("isAdding")?n:!0===e.hasInclusiveTax()&&!1===t?n-this.getTax():n},getDiscountAmount:function(){var t=0,e=this.get("adjustments").getByType("discount");return 0===e.length?this.get("discount"):(e.forEach((function(e){t+=+e.get("subtotal")})),t)},getTax:function(){var t=this.get("state"),e=this.get("tax");if(!1===t.get("isAdding"))return e;var n=t.get("formatters").number;return n.unformat(n.format(e))},getTotal:function(){var t=this.get("state");return!1===t.get("isAdding")?this.get("total"):!0===t.hasInclusiveTax()?this.get("subtotal")-this.getDiscountAmount():this.get("subtotal")-this.getDiscountAmount()+this.getTax()},getAmounts:function(t){var e=t.country,n=void 0===e?"":e,r=t.region,i=void 0===r?"":r,u=t.products,a=void 0===u?[]:u,c=t.discountIds,s=void 0===c?[]:c,f=window.eddAdminOrderOverview.nonces.edd_admin_order_get_item_amounts,d=_.clone(this.attributes),l=d.productId,p=d.priceId,h=d.quantity,v=d.amount,g=d.tax,y=d.subtotal;return wp.ajax.send("edd-admin-order-get-item-amounts",{data:{nonce:f,productId:l,priceId:p,quantity:h,amount:v,tax:g,subtotal:y,country:n,region:i,products:_.uniq([].concat(o()(a),[{id:l,quantity:h,options:{price_id:p}}]),(function(t){var e=t.id,n=t.options.price_id;return"".concat(e,"_").concat(n)})),discounts:_.uniq(s)}})},setAmounts:function(t){var e=t.amount,n=void 0===e?0:e,r=t.discount,o=void 0===r?0:r,i=t.tax,u=void 0===i?0:i,a=t.subtotal,c=void 0===a?0:a,s=t.total,f=void 0===s?0:s;!0===this.get("_isAdjustingManually")?this.set({discount:o}):this.set({amount:n,discount:o,tax:u,subtotal:c,total:f})}})},200:function(t,e,n){"use strict";(function(t){var e=n(4);Object(e.a)((function(){var e=t(".edd-order-resend-receipt-addresses");t(document.body).on("click","#edd-select-receipt-email",(function(t){t.preventDefault(),e.slideDown()})),t(document.body).on("change",".edd-order-resend-receipt-email",(function(){var e=t("input:radio.edd-order-resend-receipt-email:checked").val();t("#edd-select-receipt-email").data("email",e)})),t(document.body).on("click","#edd-select-receipt-email",(function(){if(confirm(edd_vars.resend_receipt)){var e=t(this).prop("href")+"&email="+t(this).data("email");window.location=e}})),t(document.body).on("click","#edd-resend-receipt",(function(){return confirm(edd_vars.resend_receipt)}))}))}).call(this,n(1))},22:function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]&&arguments[0];if(!1===this.get("isAdding"))return this.get("order").subtotal;var e=this.get("items"),n=e.models;return n.reduce((function(e,n){return e+ +n.getSubtotal(t)}),0)},getDiscount:function(){return!1===this.get("isAdding")?this.get("order").discount:this.get("adjustments").getByType("discount").reduce((function(t,e){return t+ +e.getAmount()}),0)},getTax:function(){if(!1===this.get("isAdding"))return this.get("order").tax;var t=this.get("items").models,e=this.getFeesTax();return t.reduce((function(t,e){return t+ +e.getTax()}),e)},getFeesTax:function(){return!1===this.get("isAdding")?this.get("order").tax:this.get("adjustments").getByType("fee").reduce((function(t,e){return t+ +e.getTax()}),0)},getTotal:function(){if(!1===this.get("isAdding"))return this.get("order").total;var t=this.get("adjustments").models.reduce((function(t,e){return["discount","credit"].includes(e.get("type"))?t-+e.getAmount():t+ +e.get("subtotal")}),this.getSubtotal(!0));return!0===this.hasInclusiveTax()?t+this.getFeesTax():t+this.getTax()},hasNewTaxRate:function(){var t=this.get("hasTax");if(!1===t)return!1;var e=this.previous("hasTax");return!_.isEqual(t,e)},hasInclusiveTax:function(){return this.get("hasTax").inclusive}});function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function v(t){for(var e=1;e"']/g,N=RegExp(z.source),F=RegExp(R.source),L=/<%-([\s\S]+?)%>/g,W=/<%([\s\S]+?)%>/g,U=/<%=([\s\S]+?)%>/g,q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$=/^\w*$/,V=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Z=/[\\^$.*+?()[\]{}|]/g,Q=RegExp(Z.source),J=/^\s+/,K=/\s/,H=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,G=/\{\n\/\* \[wrapped with (.+)\] \*/,Y=/,? & /,X=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,tt=/[()=,{}\[\]\/\s]/,et=/\\(\\)?/g,nt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,rt=/\w*$/,ot=/^[-+]0x[0-9a-f]+$/i,it=/^0b[01]+$/i,ut=/^\[object .+?Constructor\]$/,at=/^0o[0-7]+$/i,ct=/^(?:0|[1-9]\d*)$/,st=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ft=/($^)/,dt=/['\n\r\u2028\u2029\\]/g,lt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",pt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ht="["+pt+"]",vt="["+lt+"]",gt="\\d+",yt="[a-z\\xdf-\\xf6\\xf8-\\xff]",mt="[^\\ud800-\\udfff"+pt+gt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",_t="\\ud83c[\\udffb-\\udfff]",bt="[^\\ud800-\\udfff]",wt="(?:\\ud83c[\\udde6-\\uddff]){2}",Ot="[\\ud800-\\udbff][\\udc00-\\udfff]",jt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",xt="(?:"+yt+"|"+mt+")",Pt="(?:"+jt+"|"+mt+")",At="(?:"+vt+"|"+_t+")?",kt="[\\ufe0e\\ufe0f]?"+At+"(?:\\u200d(?:"+[bt,wt,Ot].join("|")+")[\\ufe0e\\ufe0f]?"+At+")*",Tt="(?:"+["[\\u2700-\\u27bf]",wt,Ot].join("|")+")"+kt,Dt="(?:"+[bt+vt+"?",vt,wt,Ot,"[\\ud800-\\udfff]"].join("|")+")",St=RegExp("['’]","g"),It=RegExp(vt,"g"),Et=RegExp(_t+"(?="+_t+")|"+Dt+kt,"g"),Ct=RegExp([jt+"?"+yt+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[ht,jt,"$"].join("|")+")",Pt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[ht,jt+xt,"$"].join("|")+")",jt+"?"+xt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",jt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",gt,Tt].join("|"),"g"),Bt=RegExp("[\\u200d\\ud800-\\udfff"+lt+"\\ufe0e\\ufe0f]"),Mt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,zt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Rt=-1,Nt={};Nt[P]=Nt[A]=Nt[k]=Nt[T]=Nt[D]=Nt[S]=Nt["[object Uint8ClampedArray]"]=Nt[I]=Nt[E]=!0,Nt[c]=Nt[s]=Nt[j]=Nt[f]=Nt[x]=Nt[d]=Nt[l]=Nt[p]=Nt[v]=Nt[g]=Nt[y]=Nt[m]=Nt[_]=Nt[b]=Nt[O]=!1;var Ft={};Ft[c]=Ft[s]=Ft[j]=Ft[x]=Ft[f]=Ft[d]=Ft[P]=Ft[A]=Ft[k]=Ft[T]=Ft[D]=Ft[v]=Ft[g]=Ft[y]=Ft[m]=Ft[_]=Ft[b]=Ft[w]=Ft[S]=Ft["[object Uint8ClampedArray]"]=Ft[I]=Ft[E]=!0,Ft[l]=Ft[p]=Ft[O]=!1;var Lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Wt=parseFloat,Ut=parseInt,qt="object"==typeof t&&t&&t.Object===Object&&t,$t="object"==typeof self&&self&&self.Object===Object&&self,Vt=qt||$t||Function("return this")(),Zt=e&&!e.nodeType&&e,Qt=Zt&&"object"==typeof r&&r&&!r.nodeType&&r,Jt=Qt&&Qt.exports===Zt,Kt=Jt&&qt.process,Ht=function(){try{return Qt&&Qt.require&&Qt.require("util").types||Kt&&Kt.binding&&Kt.binding("util")}catch(t){}}(),Gt=Ht&&Ht.isArrayBuffer,Yt=Ht&&Ht.isDate,Xt=Ht&&Ht.isMap,te=Ht&&Ht.isRegExp,ee=Ht&&Ht.isSet,ne=Ht&&Ht.isTypedArray;function re(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function oe(t,e,n,r){for(var o=-1,i=null==t?0:t.length;++o-1}function fe(t,e,n){for(var r=-1,o=null==t?0:t.length;++r-1;);return n}function Ce(t,e){for(var n=t.length;n--&&_e(e,t[n],0)>-1;);return n}function Be(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}var Me=xe({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),ze=xe({"&":"&","<":"<",">":">",'"':""","'":"'"});function Re(t){return"\\"+Lt[t]}function Ne(t){return Bt.test(t)}function Fe(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function Le(t,e){return function(n){return t(e(n))}}function We(t,e){for(var n=-1,r=t.length,o=0,i=[];++n",""":'"',"'":"'"}),Je=function t(e){var n,r=(e=null==e?Vt:Je.defaults(Vt.Object(),e,Je.pick(Vt,zt))).Array,o=e.Date,K=e.Error,lt=e.Function,pt=e.Math,ht=e.Object,vt=e.RegExp,gt=e.String,yt=e.TypeError,mt=r.prototype,_t=lt.prototype,bt=ht.prototype,wt=e["__core-js_shared__"],Ot=_t.toString,jt=bt.hasOwnProperty,xt=0,Pt=(n=/[^.]+$/.exec(wt&&wt.keys&&wt.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",At=bt.toString,kt=Ot.call(ht),Tt=Vt._,Dt=vt("^"+Ot.call(jt).replace(Z,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Et=Jt?e.Buffer:void 0,Bt=e.Symbol,Lt=e.Uint8Array,qt=Et?Et.allocUnsafe:void 0,$t=Le(ht.getPrototypeOf,ht),Zt=ht.create,Qt=bt.propertyIsEnumerable,Kt=mt.splice,Ht=Bt?Bt.isConcatSpreadable:void 0,ge=Bt?Bt.iterator:void 0,xe=Bt?Bt.toStringTag:void 0,Ke=function(){try{var t=ti(ht,"defineProperty");return t({},"",{}),t}catch(t){}}(),He=e.clearTimeout!==Vt.clearTimeout&&e.clearTimeout,Ge=o&&o.now!==Vt.Date.now&&o.now,Ye=e.setTimeout!==Vt.setTimeout&&e.setTimeout,Xe=pt.ceil,tn=pt.floor,en=ht.getOwnPropertySymbols,nn=Et?Et.isBuffer:void 0,rn=e.isFinite,on=mt.join,un=Le(ht.keys,ht),an=pt.max,cn=pt.min,sn=o.now,fn=e.parseInt,dn=pt.random,ln=mt.reverse,pn=ti(e,"DataView"),hn=ti(e,"Map"),vn=ti(e,"Promise"),gn=ti(e,"Set"),yn=ti(e,"WeakMap"),mn=ti(ht,"create"),_n=yn&&new yn,bn={},wn=Di(pn),On=Di(hn),jn=Di(vn),xn=Di(gn),Pn=Di(yn),An=Bt?Bt.prototype:void 0,kn=An?An.valueOf:void 0,Tn=An?An.toString:void 0;function Dn(t){if(Zu(t)&&!Mu(t)&&!(t instanceof Cn)){if(t instanceof En)return t;if(jt.call(t,"__wrapped__"))return Si(t)}return new En(t)}var Sn=function(){function t(){}return function(e){if(!Vu(e))return{};if(Zt)return Zt(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function In(){}function En(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}function Cn(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Bn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e=e?t:e)),t}function Gn(t,e,n,r,o,i){var u,a=1&e,s=2&e,l=4&e;if(n&&(u=o?n(t,r,o,i):n(t)),void 0!==u)return u;if(!Vu(t))return t;var O=Mu(t);if(O){if(u=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&jt.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!a)return mo(t,u)}else{var C=ri(t),B=C==p||C==h;if(Fu(t))return lo(t,a);if(C==y||C==c||B&&!o){if(u=s||B?{}:ii(t),!a)return s?function(t,e){return _o(t,ni(t),e)}(t,function(t,e){return t&&_o(e,ja(e),t)}(u,t)):function(t,e){return _o(t,ei(t),e)}(t,Qn(u,t))}else{if(!Ft[C])return o?t:{};u=function(t,e,n){var r,o=t.constructor;switch(e){case j:return po(t);case f:case d:return new o(+t);case x:return function(t,e){var n=e?po(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case P:case A:case k:case T:case D:case S:case"[object Uint8ClampedArray]":case I:case E:return ho(t,n);case v:return new o;case g:case b:return new o(t);case m:return function(t){var e=new t.constructor(t.source,rt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case _:return new o;case w:return r=t,kn?ht(kn.call(r)):{}}}(t,C,a)}}i||(i=new Nn);var M=i.get(t);if(M)return M;i.set(t,u),Gu(t)?t.forEach((function(r){u.add(Gn(r,e,n,r,t,i))})):Qu(t)&&t.forEach((function(r,o){u.set(o,Gn(r,e,n,o,t,i))}));var z=O?void 0:(l?s?Qo:Zo:s?ja:Oa)(t);return ie(z||t,(function(r,o){z&&(r=t[o=r]),$n(u,o,Gn(r,e,n,o,t,i))})),u}function Yn(t,e,n){var r=n.length;if(null==t)return!r;for(t=ht(t);r--;){var o=n[r],i=e[o],u=t[o];if(void 0===u&&!(o in t)||!i(u))return!1}return!0}function Xn(t,e,n){if("function"!=typeof t)throw new yt(i);return bi((function(){t.apply(void 0,n)}),e)}function tr(t,e,n,r){var o=-1,i=se,u=!0,a=t.length,c=[],s=e.length;if(!a)return c;n&&(e=de(e,De(n))),r?(i=fe,u=!1):e.length>=200&&(i=Ie,u=!1,e=new Rn(e));t:for(;++o-1},Mn.prototype.set=function(t,e){var n=this.__data__,r=Vn(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},zn.prototype.clear=function(){this.size=0,this.__data__={hash:new Bn,map:new(hn||Mn),string:new Bn}},zn.prototype.delete=function(t){var e=Yo(this,t).delete(t);return this.size-=e?1:0,e},zn.prototype.get=function(t){return Yo(this,t).get(t)},zn.prototype.has=function(t){return Yo(this,t).has(t)},zn.prototype.set=function(t,e){var n=Yo(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},Rn.prototype.add=Rn.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Rn.prototype.has=function(t){return this.__data__.has(t)},Nn.prototype.clear=function(){this.__data__=new Mn,this.size=0},Nn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Nn.prototype.get=function(t){return this.__data__.get(t)},Nn.prototype.has=function(t){return this.__data__.has(t)},Nn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Mn){var r=n.__data__;if(!hn||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new zn(r)}return n.set(t,e),this.size=n.size,this};var er=Oo(sr),nr=Oo(fr,!0);function rr(t,e){var n=!0;return er(t,(function(t,r,o){return n=!!e(t,r,o)})),n}function or(t,e,n){for(var r=-1,o=t.length;++r0&&n(a)?e>1?ur(a,e-1,n,r,o):le(o,a):r||(o[o.length]=a)}return o}var ar=jo(),cr=jo(!0);function sr(t,e){return t&&ar(t,e,Oa)}function fr(t,e){return t&&cr(t,e,Oa)}function dr(t,e){return ce(e,(function(e){return Uu(t[e])}))}function lr(t,e){for(var n=0,r=(e=ao(e,t)).length;null!=t&&ne}function gr(t,e){return null!=t&&jt.call(t,e)}function yr(t,e){return null!=t&&e in ht(t)}function mr(t,e,n){for(var o=n?fe:se,i=t[0].length,u=t.length,a=u,c=r(u),s=1/0,f=[];a--;){var d=t[a];a&&e&&(d=de(d,De(e))),s=cn(d.length,s),c[a]=!n&&(e||i>=120&&d.length>=120)?new Rn(a&&d):void 0}d=t[0];var l=-1,p=c[0];t:for(;++l=a?c:c*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)}));r--;)t[r]=t[r].value;return t}(kr(t,(function(t,n,o){return{criteria:de(e,(function(e){return e(t)})),index:++r,value:t}})))}function Cr(t,e,n){for(var r=-1,o=e.length,i={};++r-1;)a!==t&&Kt.call(a,c,1),Kt.call(t,c,1);return t}function Mr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var o=e[n];if(n==r||o!==i){var i=o;ai(o)?Kt.call(t,o,1):Xr(t,o)}}return t}function zr(t,e){return t+tn(dn()*(e-t+1))}function Rr(t,e){var n="";if(!t||e<1||e>9007199254740991)return n;do{e%2&&(n+=t),(e=tn(e/2))&&(t+=t)}while(e);return n}function Nr(t,e){return wi(vi(t,e,Ja),t+"")}function Fr(t){return Ln(Ia(t))}function Lr(t,e){var n=Ia(t);return xi(n,Hn(e,0,n.length))}function Wr(t,e,n,r){if(!Vu(t))return t;for(var o=-1,i=(e=ao(e,t)).length,u=i-1,a=t;null!=a&&++oi?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var u=r(i);++o>>1,u=t[i];null!==u&&!Xu(u)&&(n?u<=e:u=200){var s=e?null:No(t);if(s)return Ue(s);u=!1,o=Ie,c=new Rn}else c=e?[]:a;t:for(;++r=r?t:Vr(t,e,n)}var fo=He||function(t){return Vt.clearTimeout(t)};function lo(t,e){if(e)return t.slice();var n=t.length,r=qt?qt(n):new t.constructor(n);return t.copy(r),r}function po(t){var e=new t.constructor(t.byteLength);return new Lt(e).set(new Lt(t)),e}function ho(t,e){var n=e?po(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function vo(t,e){if(t!==e){var n=void 0!==t,r=null===t,o=t==t,i=Xu(t),u=void 0!==e,a=null===e,c=e==e,s=Xu(e);if(!a&&!s&&!i&&t>e||i&&u&&c&&!a&&!s||r&&u&&c||!n&&c||!o)return 1;if(!r&&!i&&!s&&t1?n[o-1]:void 0,u=o>2?n[2]:void 0;for(i=t.length>3&&"function"==typeof i?(o--,i):void 0,u&&ci(n[0],n[1],u)&&(i=o<3?void 0:i,o=1),e=ht(e);++r-1?o[i?e[u]:u]:void 0}}function To(t){return Vo((function(e){var n=e.length,r=n,o=En.prototype.thru;for(t&&e.reverse();r--;){var u=e[r];if("function"!=typeof u)throw new yt(i);if(o&&!a&&"wrapper"==Ko(u))var a=new En([],!0)}for(r=a?r:n;++r1&&_.reverse(),d&&sa))return!1;var s=i.get(t),f=i.get(e);if(s&&f)return s==e&&f==t;var d=-1,l=!0,p=2&n?new Rn:void 0;for(i.set(t,e),i.set(e,t);++d-1&&t%1==0&&t1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(H,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return ie(a,(function(n){var r="_."+n[0];e&n[1]&&!se(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(G);return e?e[1].split(Y):[]}(r),n)))}function ji(t){var e=0,n=0;return function(){var r=sn(),o=16-(r-n);if(n=r,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function xi(t,e){var n=-1,r=t.length,o=r-1;for(e=void 0===e?r:e;++n1?t[e-1]:void 0;return n="function"==typeof n?(t.pop(),n):void 0,Hi(t,n)}));function ru(t){var e=Dn(t);return e.__chain__=!0,e}function ou(t,e){return e(t)}var iu=Vo((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,o=function(e){return Kn(e,t)};return!(e>1||this.__actions__.length)&&r instanceof Cn&&ai(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:ou,args:[o],thisArg:void 0}),new En(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(void 0),t}))):this.thru(o)})),uu=bo((function(t,e,n){jt.call(t,n)?++t[n]:Jn(t,n,1)})),au=ko(Bi),cu=ko(Mi);function su(t,e){return(Mu(t)?ie:er)(t,Go(e,3))}function fu(t,e){return(Mu(t)?ue:nr)(t,Go(e,3))}var du=bo((function(t,e,n){jt.call(t,n)?t[n].push(e):Jn(t,n,[e])})),lu=Nr((function(t,e,n){var o=-1,i="function"==typeof e,u=Ru(t)?r(t.length):[];return er(t,(function(t){u[++o]=i?re(e,t,n):_r(t,e,n)})),u})),pu=bo((function(t,e,n){Jn(t,n,e)}));function hu(t,e){return(Mu(t)?de:kr)(t,Go(e,3))}var vu=bo((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]})),gu=Nr((function(t,e){if(null==t)return[];var n=e.length;return n>1&&ci(t,e[0],e[1])?e=[]:n>2&&ci(e[0],e[1],e[2])&&(e=[e[0]]),Er(t,ur(e,1),[])})),yu=Ge||function(){return Vt.Date.now()};function mu(t,e,n){return e=n?void 0:e,Lo(t,128,void 0,void 0,void 0,void 0,e=t&&null==e?t.length:e)}function _u(t,e){var n;if("function"!=typeof e)throw new yt(i);return t=ia(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=void 0),n}}var bu=Nr((function(t,e,n){var r=1;if(n.length){var o=We(n,Ho(bu));r|=32}return Lo(t,r,e,n,o)})),wu=Nr((function(t,e,n){var r=3;if(n.length){var o=We(n,Ho(wu));r|=32}return Lo(e,r,t,n,o)}));function Ou(t,e,n){var r,o,u,a,c,s,f=0,d=!1,l=!1,p=!0;if("function"!=typeof t)throw new yt(i);function h(e){var n=r,i=o;return r=o=void 0,f=e,a=t.apply(i,n)}function v(t){return f=t,c=bi(y,e),d?h(t):a}function g(t){var n=t-s;return void 0===s||n>=e||n<0||l&&t-f>=u}function y(){var t=yu();if(g(t))return m(t);c=bi(y,function(t){var n=e-(t-s);return l?cn(n,u-(t-f)):n}(t))}function m(t){return c=void 0,p&&r?h(t):(r=o=void 0,a)}function _(){var t=yu(),n=g(t);if(r=arguments,o=this,s=t,n){if(void 0===c)return v(s);if(l)return fo(c),c=bi(y,e),h(s)}return void 0===c&&(c=bi(y,e)),a}return e=aa(e)||0,Vu(n)&&(d=!!n.leading,u=(l="maxWait"in n)?an(aa(n.maxWait)||0,e):u,p="trailing"in n?!!n.trailing:p),_.cancel=function(){void 0!==c&&fo(c),f=0,r=s=o=c=void 0},_.flush=function(){return void 0===c?a:m(yu())},_}var ju=Nr((function(t,e){return Xn(t,1,e)})),xu=Nr((function(t,e,n){return Xn(t,aa(e)||0,n)}));function Pu(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new yt(i);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var u=t.apply(this,r);return n.cache=i.set(o,u)||i,u};return n.cache=new(Pu.Cache||zn),n}function Au(t){if("function"!=typeof t)throw new yt(i);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Pu.Cache=zn;var ku=co((function(t,e){var n=(e=1==e.length&&Mu(e[0])?de(e[0],De(Go())):de(ur(e,1),De(Go()))).length;return Nr((function(r){for(var o=-1,i=cn(r.length,n);++o=e})),Bu=br(function(){return arguments}())?br:function(t){return Zu(t)&&jt.call(t,"callee")&&!Qt.call(t,"callee")},Mu=r.isArray,zu=Gt?De(Gt):function(t){return Zu(t)&&hr(t)==j};function Ru(t){return null!=t&&$u(t.length)&&!Uu(t)}function Nu(t){return Zu(t)&&Ru(t)}var Fu=nn||ac,Lu=Yt?De(Yt):function(t){return Zu(t)&&hr(t)==d};function Wu(t){if(!Zu(t))return!1;var e=hr(t);return e==l||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!Ku(t)}function Uu(t){if(!Vu(t))return!1;var e=hr(t);return e==p||e==h||"[object AsyncFunction]"==e||"[object Proxy]"==e}function qu(t){return"number"==typeof t&&t==ia(t)}function $u(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function Vu(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Zu(t){return null!=t&&"object"==typeof t}var Qu=Xt?De(Xt):function(t){return Zu(t)&&ri(t)==v};function Ju(t){return"number"==typeof t||Zu(t)&&hr(t)==g}function Ku(t){if(!Zu(t)||hr(t)!=y)return!1;var e=$t(t);if(null===e)return!0;var n=jt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Ot.call(n)==kt}var Hu=te?De(te):function(t){return Zu(t)&&hr(t)==m},Gu=ee?De(ee):function(t){return Zu(t)&&ri(t)==_};function Yu(t){return"string"==typeof t||!Mu(t)&&Zu(t)&&hr(t)==b}function Xu(t){return"symbol"==typeof t||Zu(t)&&hr(t)==w}var ta=ne?De(ne):function(t){return Zu(t)&&$u(t.length)&&!!Nt[hr(t)]},ea=Mo(Ar),na=Mo((function(t,e){return t<=e}));function ra(t){if(!t)return[];if(Ru(t))return Yu(t)?Ve(t):mo(t);if(ge&&t[ge])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[ge]());var e=ri(t);return(e==v?Fe:e==_?Ue:Ia)(t)}function oa(t){return t?(t=aa(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function ia(t){var e=oa(t),n=e%1;return e==e?n?e-n:e:0}function ua(t){return t?Hn(ia(t),0,4294967295):0}function aa(t){if("number"==typeof t)return t;if(Xu(t))return NaN;if(Vu(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Vu(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Te(t);var n=it.test(t);return n||at.test(t)?Ut(t.slice(2),n?2:8):ot.test(t)?NaN:+t}function ca(t){return _o(t,ja(t))}function sa(t){return null==t?"":Gr(t)}var fa=wo((function(t,e){if(li(e)||Ru(e))_o(e,Oa(e),t);else for(var n in e)jt.call(e,n)&&$n(t,n,e[n])})),da=wo((function(t,e){_o(e,ja(e),t)})),la=wo((function(t,e,n,r){_o(e,ja(e),t,r)})),pa=wo((function(t,e,n,r){_o(e,Oa(e),t,r)})),ha=Vo(Kn),va=Nr((function(t,e){t=ht(t);var n=-1,r=e.length,o=r>2?e[2]:void 0;for(o&&ci(e[0],e[1],o)&&(r=1);++n1),e})),_o(t,Qo(t),n),r&&(n=Gn(n,7,qo));for(var o=e.length;o--;)Xr(n,e[o]);return n})),ka=Vo((function(t,e){return null==t?{}:function(t,e){return Cr(t,e,(function(e,n){return ma(t,n)}))}(t,e)}));function Ta(t,e){if(null==t)return{};var n=de(Qo(t),(function(t){return[t]}));return e=Go(e),Cr(t,n,(function(t,n){return e(t,n[0])}))}var Da=Fo(Oa),Sa=Fo(ja);function Ia(t){return null==t?[]:Se(t,Oa(t))}var Ea=Po((function(t,e,n){return e=e.toLowerCase(),t+(n?Ca(e):e)}));function Ca(t){return Wa(sa(t).toLowerCase())}function Ba(t){return(t=sa(t))&&t.replace(st,Me).replace(It,"")}var Ma=Po((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),za=Po((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Ra=xo("toLowerCase"),Na=Po((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()})),Fa=Po((function(t,e,n){return t+(n?" ":"")+Wa(e)})),La=Po((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),Wa=xo("toUpperCase");function Ua(t,e,n){return t=sa(t),void 0===(e=n?void 0:e)?function(t){return Mt.test(t)}(t)?function(t){return t.match(Ct)||[]}(t):function(t){return t.match(X)||[]}(t):t.match(e)||[]}var qa=Nr((function(t,e){try{return re(t,void 0,e)}catch(t){return Wu(t)?t:new K(t)}})),$a=Vo((function(t,e){return ie(e,(function(e){e=Ti(e),Jn(t,e,bu(t[e],t))})),t}));function Va(t){return function(){return t}}var Za=To(),Qa=To(!0);function Ja(t){return t}function Ka(t){return xr("function"==typeof t?t:Gn(t,1))}var Ha=Nr((function(t,e){return function(n){return _r(n,t,e)}})),Ga=Nr((function(t,e){return function(n){return _r(t,n,e)}}));function Ya(t,e,n){var r=Oa(e),o=dr(e,r);null!=n||Vu(e)&&(o.length||!r.length)||(n=e,e=t,t=this,o=dr(e,Oa(e)));var i=!(Vu(n)&&"chain"in n&&!n.chain),u=Uu(t);return ie(o,(function(n){var r=e[n];t[n]=r,u&&(t.prototype[n]=function(){var e=this.__chain__;if(i||e){var n=t(this.__wrapped__),o=n.__actions__=mo(this.__actions__);return o.push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,le([this.value()],arguments))})})),t}function Xa(){}var tc=Eo(de),ec=Eo(ae),nc=Eo(ve);function rc(t){return si(t)?je(Ti(t)):function(t){return function(e){return lr(e,t)}}(t)}var oc=Bo(),ic=Bo(!0);function uc(){return[]}function ac(){return!1}var cc,sc=Io((function(t,e){return t+e}),0),fc=Ro("ceil"),dc=Io((function(t,e){return t/e}),1),lc=Ro("floor"),pc=Io((function(t,e){return t*e}),1),hc=Ro("round"),vc=Io((function(t,e){return t-e}),0);return Dn.after=function(t,e){if("function"!=typeof e)throw new yt(i);return t=ia(t),function(){if(--t<1)return e.apply(this,arguments)}},Dn.ary=mu,Dn.assign=fa,Dn.assignIn=da,Dn.assignInWith=la,Dn.assignWith=pa,Dn.at=ha,Dn.before=_u,Dn.bind=bu,Dn.bindAll=$a,Dn.bindKey=wu,Dn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Mu(t)?t:[t]},Dn.chain=ru,Dn.chunk=function(t,e,n){e=(n?ci(t,e,n):void 0===e)?1:an(ia(e),0);var o=null==t?0:t.length;if(!o||e<1)return[];for(var i=0,u=0,a=r(Xe(o/e));io?0:o+n),(r=void 0===r||r>o?o:ia(r))<0&&(r+=o),r=n>r?0:ua(r);n>>0)?(t=sa(t))&&("string"==typeof e||null!=e&&!Hu(e))&&!(e=Gr(e))&&Ne(t)?so(Ve(t),0,n):t.split(e,n):[]},Dn.spread=function(t,e){if("function"!=typeof t)throw new yt(i);return e=null==e?0:an(ia(e),0),Nr((function(n){var r=n[e],o=so(n,0,e);return r&&le(o,r),re(t,this,o)}))},Dn.tail=function(t){var e=null==t?0:t.length;return e?Vr(t,1,e):[]},Dn.take=function(t,e,n){return t&&t.length?Vr(t,0,(e=n||void 0===e?1:ia(e))<0?0:e):[]},Dn.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?Vr(t,(e=r-(e=n||void 0===e?1:ia(e)))<0?0:e,r):[]},Dn.takeRightWhile=function(t,e){return t&&t.length?eo(t,Go(e,3),!1,!0):[]},Dn.takeWhile=function(t,e){return t&&t.length?eo(t,Go(e,3)):[]},Dn.tap=function(t,e){return e(t),t},Dn.throttle=function(t,e,n){var r=!0,o=!0;if("function"!=typeof t)throw new yt(i);return Vu(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Ou(t,e,{leading:r,maxWait:e,trailing:o})},Dn.thru=ou,Dn.toArray=ra,Dn.toPairs=Da,Dn.toPairsIn=Sa,Dn.toPath=function(t){return Mu(t)?de(t,Ti):Xu(t)?[t]:mo(ki(sa(t)))},Dn.toPlainObject=ca,Dn.transform=function(t,e,n){var r=Mu(t),o=r||Fu(t)||ta(t);if(e=Go(e,4),null==n){var i=t&&t.constructor;n=o?r?new i:[]:Vu(t)&&Uu(i)?Sn($t(t)):{}}return(o?ie:sr)(t,(function(t,r,o){return e(n,t,r,o)})),n},Dn.unary=function(t){return mu(t,1)},Dn.union=Zi,Dn.unionBy=Qi,Dn.unionWith=Ji,Dn.uniq=function(t){return t&&t.length?Yr(t):[]},Dn.uniqBy=function(t,e){return t&&t.length?Yr(t,Go(e,2)):[]},Dn.uniqWith=function(t,e){return e="function"==typeof e?e:void 0,t&&t.length?Yr(t,void 0,e):[]},Dn.unset=function(t,e){return null==t||Xr(t,e)},Dn.unzip=Ki,Dn.unzipWith=Hi,Dn.update=function(t,e,n){return null==t?t:to(t,e,uo(n))},Dn.updateWith=function(t,e,n,r){return r="function"==typeof r?r:void 0,null==t?t:to(t,e,uo(n),r)},Dn.values=Ia,Dn.valuesIn=function(t){return null==t?[]:Se(t,ja(t))},Dn.without=Gi,Dn.words=Ua,Dn.wrap=function(t,e){return Tu(uo(e),t)},Dn.xor=Yi,Dn.xorBy=Xi,Dn.xorWith=tu,Dn.zip=eu,Dn.zipObject=function(t,e){return oo(t||[],e||[],$n)},Dn.zipObjectDeep=function(t,e){return oo(t||[],e||[],Wr)},Dn.zipWith=nu,Dn.entries=Da,Dn.entriesIn=Sa,Dn.extend=da,Dn.extendWith=la,Ya(Dn,Dn),Dn.add=sc,Dn.attempt=qa,Dn.camelCase=Ea,Dn.capitalize=Ca,Dn.ceil=fc,Dn.clamp=function(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=(n=aa(n))==n?n:0),void 0!==e&&(e=(e=aa(e))==e?e:0),Hn(aa(t),e,n)},Dn.clone=function(t){return Gn(t,4)},Dn.cloneDeep=function(t){return Gn(t,5)},Dn.cloneDeepWith=function(t,e){return Gn(t,5,e="function"==typeof e?e:void 0)},Dn.cloneWith=function(t,e){return Gn(t,4,e="function"==typeof e?e:void 0)},Dn.conformsTo=function(t,e){return null==e||Yn(t,e,Oa(e))},Dn.deburr=Ba,Dn.defaultTo=function(t,e){return null==t||t!=t?e:t},Dn.divide=dc,Dn.endsWith=function(t,e,n){t=sa(t),e=Gr(e);var r=t.length,o=n=void 0===n?r:Hn(ia(n),0,r);return(n-=e.length)>=0&&t.slice(n,o)==e},Dn.eq=Iu,Dn.escape=function(t){return(t=sa(t))&&F.test(t)?t.replace(R,ze):t},Dn.escapeRegExp=function(t){return(t=sa(t))&&Q.test(t)?t.replace(Z,"\\$&"):t},Dn.every=function(t,e,n){var r=Mu(t)?ae:rr;return n&&ci(t,e,n)&&(e=void 0),r(t,Go(e,3))},Dn.find=au,Dn.findIndex=Bi,Dn.findKey=function(t,e){return ye(t,Go(e,3),sr)},Dn.findLast=cu,Dn.findLastIndex=Mi,Dn.findLastKey=function(t,e){return ye(t,Go(e,3),fr)},Dn.floor=lc,Dn.forEach=su,Dn.forEachRight=fu,Dn.forIn=function(t,e){return null==t?t:ar(t,Go(e,3),ja)},Dn.forInRight=function(t,e){return null==t?t:cr(t,Go(e,3),ja)},Dn.forOwn=function(t,e){return t&&sr(t,Go(e,3))},Dn.forOwnRight=function(t,e){return t&&fr(t,Go(e,3))},Dn.get=ya,Dn.gt=Eu,Dn.gte=Cu,Dn.has=function(t,e){return null!=t&&oi(t,e,gr)},Dn.hasIn=ma,Dn.head=Ri,Dn.identity=Ja,Dn.includes=function(t,e,n,r){t=Ru(t)?t:Ia(t),n=n&&!r?ia(n):0;var o=t.length;return n<0&&(n=an(o+n,0)),Yu(t)?n<=o&&t.indexOf(e,n)>-1:!!o&&_e(t,e,n)>-1},Dn.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=null==n?0:ia(n);return o<0&&(o=an(r+o,0)),_e(t,e,o)},Dn.inRange=function(t,e,n){return e=oa(e),void 0===n?(n=e,e=0):n=oa(n),function(t,e,n){return t>=cn(e,n)&&t=-9007199254740991&&t<=9007199254740991},Dn.isSet=Gu,Dn.isString=Yu,Dn.isSymbol=Xu,Dn.isTypedArray=ta,Dn.isUndefined=function(t){return void 0===t},Dn.isWeakMap=function(t){return Zu(t)&&ri(t)==O},Dn.isWeakSet=function(t){return Zu(t)&&"[object WeakSet]"==hr(t)},Dn.join=function(t,e){return null==t?"":on.call(t,e)},Dn.kebabCase=Ma,Dn.last=Wi,Dn.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r;return void 0!==n&&(o=(o=ia(n))<0?an(r+o,0):cn(o,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,o):me(t,we,o,!0)},Dn.lowerCase=za,Dn.lowerFirst=Ra,Dn.lt=ea,Dn.lte=na,Dn.max=function(t){return t&&t.length?or(t,Ja,vr):void 0},Dn.maxBy=function(t,e){return t&&t.length?or(t,Go(e,2),vr):void 0},Dn.mean=function(t){return Oe(t,Ja)},Dn.meanBy=function(t,e){return Oe(t,Go(e,2))},Dn.min=function(t){return t&&t.length?or(t,Ja,Ar):void 0},Dn.minBy=function(t,e){return t&&t.length?or(t,Go(e,2),Ar):void 0},Dn.stubArray=uc,Dn.stubFalse=ac,Dn.stubObject=function(){return{}},Dn.stubString=function(){return""},Dn.stubTrue=function(){return!0},Dn.multiply=pc,Dn.nth=function(t,e){return t&&t.length?Ir(t,ia(e)):void 0},Dn.noConflict=function(){return Vt._===this&&(Vt._=Tt),this},Dn.noop=Xa,Dn.now=yu,Dn.pad=function(t,e,n){t=sa(t);var r=(e=ia(e))?$e(t):0;if(!e||r>=e)return t;var o=(e-r)/2;return Co(tn(o),n)+t+Co(Xe(o),n)},Dn.padEnd=function(t,e,n){t=sa(t);var r=(e=ia(e))?$e(t):0;return e&&re){var r=t;t=e,e=r}if(n||t%1||e%1){var o=dn();return cn(t+o*(e-t+Wt("1e-"+((o+"").length-1))),e)}return zr(t,e)},Dn.reduce=function(t,e,n){var r=Mu(t)?pe:Pe,o=arguments.length<3;return r(t,Go(e,4),n,o,er)},Dn.reduceRight=function(t,e,n){var r=Mu(t)?he:Pe,o=arguments.length<3;return r(t,Go(e,4),n,o,nr)},Dn.repeat=function(t,e,n){return e=(n?ci(t,e,n):void 0===e)?1:ia(e),Rr(sa(t),e)},Dn.replace=function(){var t=arguments,e=sa(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Dn.result=function(t,e,n){var r=-1,o=(e=ao(e,t)).length;for(o||(o=1,t=void 0);++r9007199254740991)return[];var n=4294967295,r=cn(t,4294967295);t-=4294967295;for(var o=ke(r,e=Go(e));++n=i)return t;var a=n-$e(r);if(a<1)return r;var c=u?so(u,0,a).join(""):t.slice(0,a);if(void 0===o)return c+r;if(u&&(a+=c.length-a),Hu(o)){if(t.slice(a).search(o)){var s,f=c;for(o.global||(o=vt(o.source,sa(rt.exec(o))+"g")),o.lastIndex=0;s=o.exec(f);)var d=s.index;c=c.slice(0,void 0===d?a:d)}}else if(t.indexOf(Gr(o),a)!=a){var l=c.lastIndexOf(o);l>-1&&(c=c.slice(0,l))}return c+r},Dn.unescape=function(t){return(t=sa(t))&&N.test(t)?t.replace(z,Qe):t},Dn.uniqueId=function(t){var e=++xt;return sa(t)+e},Dn.upperCase=La,Dn.upperFirst=Wa,Dn.each=su,Dn.eachRight=fu,Dn.first=Ri,Ya(Dn,(cc={},sr(Dn,(function(t,e){jt.call(Dn.prototype,e)||(cc[e]=t)})),cc),{chain:!1}),Dn.VERSION="4.17.21",ie(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Dn[t].placeholder=Dn})),ie(["drop","take"],(function(t,e){Cn.prototype[t]=function(n){n=void 0===n?1:an(ia(n),0);var r=this.__filtered__&&!e?new Cn(this):this.clone();return r.__filtered__?r.__takeCount__=cn(n,r.__takeCount__):r.__views__.push({size:cn(n,4294967295),type:t+(r.__dir__<0?"Right":"")}),r},Cn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),ie(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;Cn.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:Go(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),ie(["head","last"],(function(t,e){var n="take"+(e?"Right":"");Cn.prototype[t]=function(){return this[n](1).value()[0]}})),ie(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");Cn.prototype[t]=function(){return this.__filtered__?new Cn(this):this[n](1)}})),Cn.prototype.compact=function(){return this.filter(Ja)},Cn.prototype.find=function(t){return this.filter(t).head()},Cn.prototype.findLast=function(t){return this.reverse().find(t)},Cn.prototype.invokeMap=Nr((function(t,e){return"function"==typeof t?new Cn(this):this.map((function(n){return _r(n,t,e)}))})),Cn.prototype.reject=function(t){return this.filter(Au(Go(t)))},Cn.prototype.slice=function(t,e){t=ia(t);var n=this;return n.__filtered__&&(t>0||e<0)?new Cn(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),void 0!==e&&(n=(e=ia(e))<0?n.dropRight(-e):n.take(e-t)),n)},Cn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Cn.prototype.toArray=function(){return this.take(4294967295)},sr(Cn.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),o=Dn[r?"take"+("last"==e?"Right":""):e],i=r||/^find/.test(e);o&&(Dn.prototype[e]=function(){var e=this.__wrapped__,u=r?[1]:arguments,a=e instanceof Cn,c=u[0],s=a||Mu(e),f=function(t){var e=o.apply(Dn,le([t],u));return r&&d?e[0]:e};s&&n&&"function"==typeof c&&1!=c.length&&(a=s=!1);var d=this.__chain__,l=!!this.__actions__.length,p=i&&!d,h=a&&!l;if(!i&&s){e=h?e:new Cn(this);var v=t.apply(e,u);return v.__actions__.push({func:ou,args:[f],thisArg:void 0}),new En(v,d)}return p&&h?t.apply(this,u):(v=this.thru(f),p?r?v.value()[0]:v.value():v)})})),ie(["pop","push","shift","sort","splice","unshift"],(function(t){var e=mt[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Dn.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var o=this.value();return e.apply(Mu(o)?o:[],t)}return this[n]((function(n){return e.apply(Mu(n)?n:[],t)}))}})),sr(Cn.prototype,(function(t,e){var n=Dn[e];if(n){var r=n.name+"";jt.call(bn,r)||(bn[r]=[]),bn[r].push({name:e,func:n})}})),bn[Do(void 0,2).name]=[{name:"wrapper",func:void 0}],Cn.prototype.clone=function(){var t=new Cn(this.__wrapped__);return t.__actions__=mo(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=mo(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=mo(this.__views__),t},Cn.prototype.reverse=function(){if(this.__filtered__){var t=new Cn(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Cn.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Mu(t),r=e<0,o=n?t.length:0,i=function(t,e,n){for(var r=-1,o=n.length;++r=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}},Dn.prototype.plant=function(t){for(var e,n=this;n instanceof In;){var r=Si(n);r.__index__=0,r.__values__=void 0,e?o.__wrapped__=r:e=r;var o=r;n=n.__wrapped__}return o.__wrapped__=t,e},Dn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Cn){var e=t;return this.__actions__.length&&(e=new Cn(this)),(e=e.reverse()).__actions__.push({func:ou,args:[Vi],thisArg:void 0}),new En(e,this.__chain__)}return this.thru(Vi)},Dn.prototype.toJSON=Dn.prototype.valueOf=Dn.prototype.value=function(){return no(this.__wrapped__,this.__actions__)},Dn.prototype.first=Dn.prototype.head,ge&&(Dn.prototype[ge]=function(){return this}),Dn}();Vt._=Je,void 0===(o=function(){return Je}.call(e,n,e,r))||(r.exports=o)}).call(this)}).call(this,n(194),n(32)(t))},27:function(t,e,n){"use strict";n.d(e,"a",(function(){return m}));var r={};n.r(r),n.d(r,"find",(function(){return a}));var o={};n.r(o),n.d(o,"isTabbableIndex",(function(){return f})),n.d(o,"find",(function(){return v})),n.d(o,"findPrevious",(function(){return g})),n.d(o,"findNext",(function(){return y}));var i=["[tabindex]","a[href]","button:not([disabled])",'input:not([type="hidden"]):not([disabled])',"select:not([disabled])","textarea:not([disabled])","iframe","object","embed","area[href]","[contenteditable]:not([contenteditable=false])"].join(",");function u(t){return t.offsetWidth>0||t.offsetHeight>0||t.getClientRects().length>0}function a(t){var e=t.querySelectorAll(i);return Array.from(e).filter((function(t){return!(!u(t)||function(t){return"iframe"===t.nodeName.toLowerCase()&&"-1"===t.getAttribute("tabindex")}(t))&&("AREA"!==t.nodeName||function(t){var e=t.closest("map[name]");if(!e)return!1;var n=t.ownerDocument.querySelector('img[usemap="#'+e.name+'"]');return!!n&&u(n)}(t))}))}var c=n(26);function s(t){var e=t.getAttribute("tabindex");return null===e?0:parseInt(e,10)}function f(t){return-1!==s(t)}function d(t,e){return{element:t,index:e}}function l(t){return t.element}function p(t,e){var n=s(t.element),r=s(e.element);return n===r?t.index-e.index:n-r}function h(t){return t.filter(f).map(d).sort(p).map(l).reduce((e={},function(t,n){var r=n.nodeName,o=n.type,i=n.checked,u=n.name;if("INPUT"!==r||"radio"!==o||!u)return t.concat(n);var a=e.hasOwnProperty(u);if(!i&&a)return t;if(a){var s=e[u];t=Object(c.without)(t,s)}return e[u]=n,t.concat(n)}),[]);var e}function v(t){return h(a(t))}function g(t){var e=a(t.ownerDocument.body),n=e.indexOf(t);return e.length=n,Object(c.last)(h(e))}function y(t){var e=a(t.ownerDocument.body),n=e.indexOf(t),r=e.slice(n+1).filter((function(e){return!t.contains(e)}));return Object(c.first)(h(r))}var m={focusable:r,tabbable:o}},28:function(t,e,n){"use strict";t.exports=function(t,e,n,r){t=(t+"").replace(/[^0-9+\-Ee.]/g,"");var o=isFinite(+t)?+t:0,i=isFinite(+e)?Math.abs(e):0,u=void 0===r?",":r,a=void 0===n?".":n,c="";return(c=(i?function(t,e){if(-1===(""+t).indexOf("e"))return+(Math.round(t+"e+"+e)+"e-"+e);var n=(""+t).split("e"),r="";return+n[1]+e>0&&(r="+"),(+(Math.round(+n[0]+"e"+r+(+n[1]+e))+"e-"+e)).toFixed(e)}(o,i).toString():""+Math.round(o)).split("."))[0].length>3&&(c[0]=c[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,u)),(c[1]||"").length0&&(r=".".concat(o()(e.classList).join("."))),null!==r){var i=t.querySelector(r);if(i){i.focus();try{i.setSelectionRange&&i.setSelectionRange(n,n)}catch(t){}}}}}})}).call(this,n(1))},6:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return c}));var r=n(2),o=n.n(r);function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};u()(this,t);var n=edd_vars,r=n.currency_decimals,o=n.decimal_separator,i=n.thousands_separator;this.config=f({precision:r,decimalSeparator:o,thousandSeparator:i},e)}return c()(t,[{key:"format",value:function(t){var e=t;"number"!=typeof t&&(e=parseFloat(t)),isNaN(e)&&(e=0);var n=this.config,r=n.precision,o=n.decimalSeparator,i=n.thousandSeparator;return d(e,r,o,i)}},{key:"unformat",value:function(t){var e=this.config,n=e.decimalSeparator,r=e.thousandSeparator;"string"!=typeof t&&(t=String(t));var o=t.replace(r,"").replace(n,"."),i=parseFloat(o);return isNaN(i)?0:i}},{key:"absint",value:function(t){var e=this.unformat(t);return e>=0?e:-1*e}}]),t}();function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function h(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};u()(this,t);var n=edd_vars,r=n.currency,o=n.currency_sign,i=n.currency_pos,a=n.currency_decimals,c=n.decimal_separator,s=n.thousands_separator;this.config=h({currency:r,currencySymbol:o,currencySymbolPosition:i,precision:a,decimalSeparator:c,thousandSeparator:s},e),this.number=new l(this.config)}return c()(t,[{key:"format",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.config,r=n.currencySymbol,o=n.currencySymbolPosition,i=t<0,u=this.number.format(t),a="";switch(i&&(u=this.number.format(-1*t)),o){case"before":a=r+u;break;case"after":a=u+r}return!0===i&&!1===e&&(a="-".concat(a)),a}},{key:"unformat",value:function(t){var e=this.config.currencySymbol,n=t.replace(e,"");return this.number.unformat(n)}}]),t}()}}); \ No newline at end of file diff --git a/wp-content/plugins/easy-digital-downloads/assets/js/edd-admin-settings.js b/wp-content/plugins/easy-digital-downloads/assets/js/edd-admin-settings.js index 740c40b7..b0882168 100644 --- a/wp-content/plugins/easy-digital-downloads/assets/js/edd-admin-settings.js +++ b/wp-content/plugins/easy-digital-downloads/assets/js/edd-admin-settings.js @@ -1 +1 @@ -!function(e){var t={};function a(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,a),o.l=!0,o.exports}a.m=e,a.c=t,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)a.d(n,o,function(t){return e[t]}.bind(null,o));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=208)}({1:function(e,t){e.exports=jQuery},177:function(e,t,a){"use strict";(function(e){a.d(t,"a",(function(){return n}));var n=function(){e.post(ajaxurl,{action:"edd_recapture_remote_install"},(function(e){e.success||!confirm(e.data.error)?window.location.href="https://recapture.io/register":location.reload()}))}}).call(this,a(1))},208:function(e,t,a){"use strict";a.r(t),function(e,t){var n=a(177),o=(a(209),{init:function(){this.general(),this.misc(),this.gateways(),this.emails()},general:function(){var t,a=e(".edd-color-picker");a.length&&a.wpColorPicker(),window.formfield="",e(document.body).on("click",".edd_settings_upload_button",(function(a){a.preventDefault();var n=e(this);window.formfield=e(n.data("input")),t||((t=wp.media.frames.file_frame=wp.media({title:n.data("uploader_title"),library:{type:"image"},button:{text:n.data("uploader_button_text")},multiple:!1})).on("menu:render:default",(function(e){e.unset("library-separator"),e.unset("gallery"),e.unset("featured-image"),e.unset("embed"),e.unset("playlist"),e.unset("video-playlist"),e.set({})})),t.on("select",(function(){t.state().get("selection").each((function(e,t){e=e.toJSON(),window.formfield.val(e.url)}))}))),t.open()})),window.formfield=""},misc:function(){var t=e('select[name="edd_settings[download_method]"]'),a=t.parent().parent().next(),n=e('input[name="edd_settings[allow_tracking]"]');"direct"===t.val()&&(a.css("opacity","0.4"),a.find("input").prop("checked",!1).prop("disabled",!0)),t.on("change",(function(){"direct"===e(this).val()?(a.css("opacity","0.4"),a.find("input").prop("checked",!1).prop("disabled",!0)):(a.find("input").prop("disabled",!1),a.css("opacity","1"))})),n.on("change",(function(){e(".allow_tracking.edd-heart").toggleClass("edd-hidden")}))},gateways:function(){e('#edd-payment-gateways input[type="checkbox"]').on("change",(function(){var t=e(this).data("gateway-key"),a=e("#edd_settings\\[default_gateway\\]"),n=a.find('option[value="'+t+'"]');n.prop("disabled",(function(e,t){return!t})),n.prop("selected")&&n.prop("selected",!1),a.trigger("chosen:updated")}))},emails:function(){e("#edd-recapture-connect").on("click",(function(t){t.preventDefault(),e(this).html(edd_vars.wait+' '),document.body.style.cursor="wait",Object(n.a)()}));var t=e('select[name="edd_settings[email_summary_recipient]"]'),a=t.val(),o=e('textarea[name="edd_settings[email_summary_custom_recipients]"]').parents("tr"),d=e("#edd-send-test-summary-save-changes-notice"),c=e("#edd-send-test-summary"),s=e("#edd-send-test-summary-notice");t.on("change",(function(){o.toggleClass("hidden"),c.removeClass("hidden updated-message"),s.empty(),d.empty(),a!==t.val()&&(c.addClass("hidden"),d.html('

'+edd_vars.test_email_save_changes+"

"))})),c.on("click",(function(t){t.preventDefault(),e.ajax({type:"GET",dataType:"json",url:ajaxurl,data:{action:"edd_send_test_email_summary"},beforeSend:function(){s.empty(),c.addClass("updating-message").prop("disabled",!0)},success:function(e){"error"==e.status?s.html('

'+e.message+"

"):(c.addClass("updated-message"),setTimeout((function(){c.removeClass("updated-message")}),3e3))}}).fail((function(e){window.console&&window.console.log&&console.log(e)})).done((function(e){c.removeClass("updating-message").prop("disabled",!1)}))}))}});t(document).ready((function(e){o.init()}))}.call(this,a(1),a(1))},209:function(e,t,a){(function(e){e(document).ready((function(e){function t(){var t=document.getElementById("edd-paypal-commerce-connect-wrap");t&&e.post(ajaxurl,{action:"edd_paypal_commerce_get_account_info",_ajax_nonce:t.getAttribute("data-nonce")},(function(e){var a="

"+eddPayPalConnectVars.defaultError+"

";e.success?(a=e.data.account_status,e.data.actions&&e.data.actions.length&&(a+='

'+e.data.actions.join(" ")+"

"),e.data.disconnect_links&&e.data.disconnect_links.length&&(document.getElementById("edd-paypal-disconnect").innerHTML=e.data.disconnect_links.join(" "))):e.data&&e.data.message&&(a=e.data.message),t.innerHTML=a,t.classList.remove("notice-success","notice-warning","notice-error");var n=e.success&&e.data.status?"notice-"+e.data.status:"notice-error";t.classList.add(n)}))}e("#edd-paypal-commerce-connect").on("click",(function(t){t.preventDefault();var a=e("#edd-paypal-commerce-errors");a.empty().removeClass("notice notice-error");var n=document.getElementById("edd-paypal-commerce-connect");n.classList.add("updating-message"),n.disabled=!0,e.post(ajaxurl,{action:"edd_paypal_commerce_connect",_ajax_nonce:e(this).data("nonce")},(function(e){if(!e.success)return console.log("Connection failure",e.data),n.classList.remove("updating-message"),n.disabled=!1,void a.html("

"+e.data+"

").addClass("notice notice-error");var t=document.getElementById("edd-paypal-commerce-link");t.href=e.data.signupLink+"&displayMode=minibrowser",t.click()}))})),e("#edd-paypal-commerce-reconnect").on("click",(function(t){t.preventDefault();var a=e("#edd-paypal-commerce-errors");a.empty().removeClass("notice notice-error");var n=document.getElementById("edd-paypal-commerce-reconnect");n.classList.add("updating-message"),n.disabled=!0,e.post(ajaxurl,{action:"edd_paypal_commerce_reconnect",_ajax_nonce:e(this).data("nonce")},(function(e){if(!e.success)return console.log("Reconnect failure",e.data),n.classList.remove("updating-message"),n.disabled=!1,void a.html("

"+e.data+"

").addClass("notice notice-error")}))})),t(),e(document).on("click",".edd-paypal-connect-action",(function(a){a.preventDefault();var n=e(this);n.prop("disabled",!0),n.addClass("updating-message");var o=e("#edd-paypal-commerce-connect-wrap").find(".edd-paypal-actions-error-wrap");o.length&&o.remove(),e.post(ajaxurl,{action:n.data("action"),_ajax_nonce:n.data("nonce")},(function(e){n.prop("disabled",!1),n.removeClass("updating-message"),e.success?(n.addClass("updated-message"),t()):n.parent().after('

'+e.data+"

")}))}))})),window.eddPayPalOnboardingCallback=function(t,a){var n=document.getElementById("edd-paypal-commerce-connect"),o=document.getElementById("edd-paypal-commerce-errors");e.post(ajaxurl,{action:"edd_paypal_commerce_get_access_token",auth_code:t,share_id:a,_ajax_nonce:n.getAttribute("data-nonce")},(function(e){if(n.classList.remove("updating-message"),!e.success)return n.disabled=!1,o.innerHTML="

"+e.data+"

",void o.classList.add("notice notice-error");n.classList.add("updated-message"),window.location.reload()}))}}).call(this,a(1))}}); \ No newline at end of file +!function(e){var t={};function n(a){if(t[a])return t[a].exports;var d=t[a]={i:a,l:!1,exports:{}};return e[a].call(d.exports,d,d.exports,n),d.l=!0,d.exports}n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var d in e)n.d(a,d,function(t){return e[t]}.bind(null,d));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=208)}({1:function(e,t){e.exports=jQuery},177:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a}));var a=function(){e.post(ajaxurl,{action:"edd_recapture_remote_install"},(function(e){e.success||!confirm(e.data.error)?window.location.href="https://recapture.io/register":location.reload()}))}}).call(this,n(1))},208:function(e,t,n){"use strict";n.r(t),function(e,t){var a=n(177),d=(n(209),{init:function(){this.general(),this.misc(),this.gateways(),this.emails()},general:function(){var t,n=e(".edd-color-picker");n.length&&n.wpColorPicker(),window.formfield="",e(document.body).on("click",".edd_settings_upload_button",(function(n){n.preventDefault();var a=e(this);window.formfield=e(a.data("input")),t||((t=wp.media.frames.file_frame=wp.media({title:a.data("uploader_title"),library:{type:"image"},button:{text:a.data("uploader_button_text")},multiple:!1})).on("menu:render:default",(function(e){e.unset("library-separator"),e.unset("gallery"),e.unset("featured-image"),e.unset("embed"),e.unset("playlist"),e.unset("video-playlist"),e.set({})})),t.on("select",(function(){t.state().get("selection").each((function(e,t){e=e.toJSON(),window.formfield.val(e.url)}))}))),t.open()})),window.formfield=""},misc:function(){var t=e('select[name="edd_settings[download_method]"]'),n=t.parent().parent().next(),a=e('input[name="edd_settings[allow_tracking]"]');"direct"===t.val()&&(n.css("opacity","0.4"),n.find("input").prop("checked",!1).prop("disabled",!0)),t.on("change",(function(){"direct"===e(this).val()?(n.css("opacity","0.4"),n.find("input").prop("checked",!1).prop("disabled",!0)):(n.find("input").prop("disabled",!1),n.css("opacity","1"))})),a.on("change",(function(){e(".allow_tracking.edd-heart").toggleClass("edd-hidden")}))},gateways:function(){e('#edd-payment-gateways input[type="checkbox"]').on("change",(function(){var t=e(this).data("gateway-key"),n=e("#edd_settings\\[default_gateway\\]"),a=n.find('option[value="'+t+'"]');a.prop("disabled",(function(e,t){return!t})),a.prop("selected")&&a.prop("selected",!1),n.trigger("chosen:updated")}))},emails:function(){e("#edd-recapture-connect").on("click",(function(t){t.preventDefault(),e(this).html(edd_vars.wait+' '),document.body.style.cursor="wait",Object(a.a)()}));var t=e('select[name="edd_settings[email_summary_recipient]"]'),n=t.val(),d=e('textarea[name="edd_settings[email_summary_custom_recipients]"]').parents("tr"),o=e("#edd-send-test-summary-save-changes-notice"),s=e("#edd-send-test-summary"),i=e("#edd-send-test-summary-notice");t.on("change",(function(){d.toggleClass("hidden"),s.removeClass("hidden updated-message"),i.empty(),o.empty(),n!==t.val()&&(s.addClass("hidden"),o.html('

'+edd_vars.test_email_save_changes+"

"))})),s.on("click",(function(t){t.preventDefault(),e.ajax({type:"GET",dataType:"json",url:ajaxurl,data:{action:"edd_send_test_email_summary"},beforeSend:function(){i.empty(),s.addClass("updating-message").prop("disabled",!0)},success:function(e){"error"==e.status?i.html('

'+e.message+"

"):(s.addClass("updated-message"),setTimeout((function(){s.removeClass("updated-message")}),3e3))}}).fail((function(e){window.console&&window.console.log&&console.log(e)})).done((function(e){s.removeClass("updating-message").prop("disabled",!1)}))}))}});t(document).ready((function(e){d.init()}))}.call(this,n(1),n(1))},209:function(e,t,n){(function(e){e(document).ready((function(t){if("undefined"!=typeof eddPayPalConnectVars){var n=document.getElementById("edd-paypal-commerce-errors");if(n&&n.length){for(;n.firstChild;)n.removeChild(n.firstChild);n.classList.remove("notice notice-error")}if(eddPayPalConnectVars.isConnected){var a=document.getElementById("edd-paypal-commerce-reconnect");a&&a.addEventListener("click",(function(e){e.preventDefault();var n=t("#edd-paypal-commerce-errors");n.empty().removeClass("notice notice-error"),a.classList.add("updating-message"),a.disabled=!0,t.post(ajaxurl,{action:"edd_paypal_commerce_reconnect",_ajax_nonce:a.dataset.nonce}).done((function(){})).fail((function(e){console.log("Reconnect failure",e.data),a.classList.remove("updating-message"),a.disabled=!1,n.html("

"+e.data+"

").addClass("notice notice-error")}))})),function e(){var n=document.getElementById("edd-paypal-commerce-connect-wrap");n&&t.post(ajaxurl,{action:"edd_paypal_commerce_get_account_info",_ajax_nonce:n.getAttribute("data-nonce")},(function(a){var d="

"+eddPayPalConnectVars.defaultError+"

";a.success?(d=a.data.account_status,a.data.actions&&a.data.actions.length&&(d+='

'+a.data.actions.join(" ")+"

"),a.data.disconnect_links&&a.data.disconnect_links.length&&(document.getElementById("edd-paypal-disconnect").innerHTML=a.data.disconnect_links.join(" "))):a.data&&a.data.message&&(d=a.data.message),n.innerHTML=d,n.classList.remove("notice-success","notice-warning","notice-error");var o=a.success&&a.data.status?"notice-"+a.data.status:"notice-error";n.classList.add(o);var s,i=document.getElementById("edd-paypal-commerce-get-help");"success"===a.data.status?(i.classList.add("edd-hidden"),i.classList.remove("button","button-secondary")):(i.classList.remove("edd-hidden"),i.classList.add("button","button-secondary")),(s=document.querySelectorAll(".edd-paypal-connect-action"))&&s.length&&s.forEach((function(n){n.addEventListener("click",(function(n){n.preventDefault();var a=n.target;a.disabled=!0,a.classList.add("updating-message");var d=document.getElementById("edd-paypal-commerce-connect-wrap");d&&d.length&&d.remove(),t.post(ajaxurl,{action:a.dataset.action,_ajax_nonce:a.dataset.nonce}).done((function(){e()})).fail((function(e){console.log("Failure",e.data),a.disabled=!1,a.classList.remove("updating-message"),d.html("

"+e.data+"

").addClass("edd-paypal-actions-error-wrap")}))}))}))}))}()}else{if(document.getElementById("edd-paypal-commerce-link")){var d=document.createElement("script");d.id="edd-paypal-commerce-onboarding",d.src="https://www.paypal.com/webapps/merchantboarding/js/lib/lightbox/partner.js",document.body.appendChild(d),setTimeout((function(){"undefined"!==window.PAYPAL.apps.Signup&&window.PAYPAL.apps.Signup.render()}),1e3)}window.eddPayPalOnboardingCallback=function(t,n){var a=document.getElementById("edd-paypal-commerce-link"),d=document.getElementById("edd-paypal-commerce-errors");e.post(ajaxurl,{action:"edd_paypal_commerce_get_access_token",auth_code:t,share_id:n,_ajax_nonce:a.dataset.nonce}).done((function(){a.classList.add("disabled","updating-message"),a.disabled=!0})).fail((function(e){d.innerHTML="

"+e.data+"

",d.classList.add("notice","notice-error");var t=document.getElementById("edd-paypal-commerce-get-help");t.classList.remove("edd-hidden"),t.classList.add("button","button-secondary")}))}}}}))}).call(this,n(1))}}); \ No newline at end of file diff --git a/wp-content/plugins/easy-digital-downloads/assets/js/edd-ajax.js b/wp-content/plugins/easy-digital-downloads/assets/js/edd-ajax.js index cd94e5dd..d9866e20 100644 --- a/wp-content/plugins/easy-digital-downloads/assets/js/edd-ajax.js +++ b/wp-content/plugins/easy-digital-downloads/assets/js/edd-ajax.js @@ -1 +1 @@ -!function(e){var t={};function d(a){if(t[a])return t[a].exports;var n=t[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,d),n.l=!0,n.exports}d.m=e,d.c=t,d.d=function(e,t,a){d.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},d.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},d.t=function(e,t){if(1&t&&(e=d(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(d.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)d.d(a,n,function(t){return e[t]}.bind(null,n));return a},d.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(t,"a",t),t},d.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},d.p="",d(d.s=230)}({1:function(e,t){e.exports=jQuery},13:function(e,t,d){"use strict";(function(e){d.d(t,"a",(function(){return a})),d.d(t,"b",(function(){return r}));var a=function(e){var t,d=e;switch(e){case"amex":d="americanexpress",t=32;break;default:t=50}return"\n \n \n \n ')},n=0;function r(t){if("1"==edd_global_vars.taxes_enabled){var d=e("#edd_cc_address"),a=d.find("#billing_country").val(),r=d.find("#card_address").val(),o=d.find("#card_address_2").val(),i=d.find("#card_city").val(),c=d.find("#card_state").val();t||(t=c);var s={action:"edd_recalculate_taxes",card_address:r,card_address_2:o,card_city:i,card_zip:d.find("#card_zip").val(),state:t,billing_country:a,nonce:e("#edd-checkout-address-fields-nonce").val(),current_page:edd_global_vars.current_page},_=e("#edd_purchase_submit [type=submit]");_.siblings(".edd-loading-ajax.edd-recalculate-taxes-loading").length||_.after('');var l=++n;return e.ajax({type:"POST",data:s,dataType:"json",url:edd_global_vars.ajaxurl,xhrFields:{withCredentials:!0},success:function(t){if(l===n){t.html&&e("#edd_checkout_cart_form").replaceWith(t.html),e(".edd_cart_amount").html(t.total);var d=new Object;d.postdata=s,d.response=t,e("body").trigger("edd_taxes_recalculated",[d])}e(".edd-recalculate-taxes-loading").remove()}}).fail((function(t){window.console&&window.console.log&&(console.log(t),l===n&&e("body").trigger("edd_taxes_recalculated",[tax_data]))}))}}}).call(this,d(1))},230:function(e,t,d){"use strict";d.r(t),function(e){var t=d(13);function a(t){e(".edd-cart-ajax").show(),e("#edd_purchase_form_wrap").html('');var d=document.getElementById("edd-gateway-"+t).getAttribute("data-"+t+"-nonce"),a=edd_scripts.ajaxurl;a.indexOf("?")>0?a+="&":a+="?",a=a+"payment-mode="+t,e.post(a,{action:"edd_load_gateway",edd_payment_mode:t,nonce:d,current_page:edd_scripts.current_page},(function(d){e("#edd_purchase_form_wrap").html(d),e("body").trigger("edd_gateway_loaded",[t])}))}e(document).ready((function(e){if(e(".edd-add-to-cart:not(.edd-no-js)").addClass("edd-has-js"),e(document.body).on("click.eddRemoveFromCart",".edd-remove-from-cart",(function(t){var d=e(this),a=d.data("cart-item"),n=d.data("action"),r=d.data("download-id"),o=d.data("nonce"),i={action:n,cart_item:a,nonce:o,timestamp:d.data("timestamp"),token:d.data("token"),current_page:edd_scripts.current_page};return e.ajax({type:"POST",data:i,dataType:"json",url:edd_scripts.ajaxurl,xhrFields:{withCredentials:!0},success:function(t){if(t.removed){if(parseInt(edd_scripts.position_in_cart,10)===parseInt(a,10)||edd_scripts.has_purchase_links)return window.location=window.location,!1;e(".edd-cart").each((function(){e(this).find("[data-cart-item='"+a+"']").parent().remove()})),e(".edd-cart").each((function(){var t=0;e(this).find("[data-cart-item]").each((function(){e(this).attr("data-cart-item",t),t+=1}))})),e("[id^=edd_purchase_"+r+"]").length&&(e("[id^=edd_purchase_"+r+"] .edd_go_to_checkout").hide(),e("[id^=edd_purchase_"+r+"] .edd-add-to-cart.edd-has-js").show().removeAttr("data-edd-loading"),"1"===edd_scripts.quantities_enabled&&e("[id^=edd_purchase_"+r+"] .edd_download_quantity_wrapper").show()),e("span.edd-cart-quantity").text(t.cart_quantity),e(document.body).trigger("edd_quantity_updated",[t.cart_quantity]),edd_scripts.taxes_enabled&&(e(".cart_item.edd_subtotal span").html(t.subtotal),e(".cart_item.edd_cart_tax span").html(t.tax)),e(".cart_item.edd_total span").html(t.total),0===t.cart_quantity&&(e(".cart_item.edd_subtotal,.edd-cart-number-of-items,.cart_item.edd_checkout,.cart_item.edd_cart_tax,.cart_item.edd_total").hide(),e(".edd-cart").each((function(){var t=e(this).parent();t.length&&(t.addClass("cart-empty"),t.removeClass("cart-not-empty")),e(this).append('
  • '+edd_scripts.empty_cart_message+"
  • ")}))),e(document.body).trigger("edd_cart_item_removed",[t])}}}).fail((function(e){window.console&&window.console.log&&console.log(e)})).done((function(e){})),!1})),e(document.body).on("click.eddAddToCart",".edd-add-to-cart",(function(t){t.preventDefault();var d=e(this),a=d.closest("form");d.prop("disabled",!0),d.find(".edd-loading");var n=d.closest("div");d.attr("data-edd-loading",""),a=d.parents("form").last();var r=d.data("download-id"),o=d.data("variable-price"),i=d.data("price-mode"),c=d.data("nonce"),s=[],_=!0;if("yes"===o)if(a.find(".edd_price_option_"+r+'[type="hidden"]').length>0)s[0]=e(".edd_price_option_"+r,a).val(),a.find(".edd-submit").data("price")&&a.find(".edd-submit").data("price")>0&&(_=!1);else{if(!a.find(".edd_price_option_"+r+":checked",a).length)return d.removeAttr("data-edd-loading"),alert(edd_scripts.select_option),t.stopPropagation(),d.prop("disabled",!1),!1;a.find(".edd_price_option_"+r+":checked",a).each((function(t){if(s[t]=e(this).val(),!0===_){var d=e(this).data("price");d&&d>0&&(_=!1)}}))}else s[0]=r,d.data("price")&&d.data("price")>0&&(_=!1);if(_&&a.find(".edd_action_input").val("add_to_cart"),"straight_to_gateway"===a.find(".edd_action_input").val())return a.submit(),!0;var l={action:d.data("action"),download_id:r,price_ids:s,post_data:e(a).serialize(),nonce:c,current_page:edd_scripts.current_page,timestamp:d.data("timestamp"),token:d.data("token")};return e.ajax({type:"POST",data:l,dataType:"json",url:edd_scripts.ajaxurl,xhrFields:{withCredentials:!0},success:function(t){var c="1"===edd_scripts.redirect_to_checkout,s="1"===a.find("input[name=edd_redirect_to_checkout]").val();if(c&&s||!c&&s)window.location=edd_scripts.checkout_page;else{if("1"===edd_scripts.taxes_enabled&&(e(".cart_item.edd_subtotal").show(),e(".cart_item.edd_cart_tax").show()),e(".cart_item.edd_total").show(),e(".cart_item.edd_checkout").show(),e(".cart_item.empty").length&&e(".cart_item.empty").hide(),e(".widget_edd_cart_widget .edd-cart").each((function(d){var a=e(this).find(".edd-cart-meta:first");e(t.cart_item).insertBefore(a);var n=e(this).parent();n.length&&(n.addClass("cart-not-empty"),n.removeClass("cart-empty"))})),"1"===edd_scripts.taxes_enabled&&(e(".edd-cart-meta.edd_subtotal span").html(t.subtotal),e(".edd-cart-meta.edd_cart_tax span").html(t.tax)),e(".edd-cart-meta.edd_total span").html(t.total),e(".edd-cart-item-title",t.cart_item).length,e("span.edd-cart-quantity").each((function(){e(this).text(t.cart_quantity),e(document.body).trigger("edd_quantity_updated",[t.cart_quantity])})),"none"===e(".edd-cart-number-of-items").css("display")&&e(".edd-cart-number-of-items").show("slow"),"no"!==o&&"multi"===i||(e(".edd-add-to-cart.edd-has-js",n).toggle(),e(".edd_go_to_checkout",n).show()),"multi"===i&&d.removeAttr("data-edd-loading"),e(".edd_download_purchase_form").length&&("no"===o||!a.find(".edd_price_option_"+r).is("input:hidden"))){var _=e('.edd_download_purchase_form *[data-download-id="'+r+'"]').parents("form");e(".edd-add-to-cart",_).hide(),"multi"!==i&&_.find(".edd_download_quantity_wrapper").slideUp(),e(".edd_go_to_checkout",_).show().removeAttr("data-edd-loading")}"incart"!==t&&(e(".edd-cart-added-alert",n).fadeIn(),setTimeout((function(){e(".edd-cart-added-alert",n).fadeOut()}),3e3)),d.prop("disabled",!1),e(document.body).trigger("edd_cart_item_added",[t])}}}).fail((function(e){window.console&&window.console.log&&console.log(e)})).done((function(e){})),!1})),e("#edd_checkout_form_wrap").on("click",".edd_checkout_register_login",(function(){var t=e(this),d={action:t.data("action"),nonce:t.data("nonce")};return e(".edd-cart-ajax").show(),e.post(edd_scripts.ajaxurl,d,(function(t){e("#edd_checkout_login_register").html(edd_scripts.loading),e("#edd_checkout_login_register").html(t),e(".edd-cart-ajax").hide()})),!1})),e(document).on("click","#edd_purchase_form #edd_login_fields input[type=submit]",(function(t){t.preventDefault();var d=e(this).val();e(this).attr("data-original-value",d),e(this).val(edd_global_vars.purchase_loading),e(this).after('');var a={action:"edd_process_checkout_login",edd_ajax:1,edd_user_login:e("#edd_login_fields #edd_user_login").val(),edd_user_pass:e("#edd_login_fields #edd_user_pass").val(),edd_login_nonce:e("#edd_login_nonce").val()};e.post(edd_global_vars.ajaxurl,a,(function(t){"success"===e.trim(t)?(e(".edd_errors").remove(),window.location=edd_scripts.checkout_page):(e("#edd_login_fields input[type=submit]").val(d),e(".edd-loading-ajax").remove(),e(".edd_errors").remove(),e("#edd-user-login-submit").before(t))}))})),e(document).on("change","select#edd-gateway, input.edd-gateway",(function(t){var d=e("#edd-gateway option:selected, input.edd-gateway:checked").val();return"0"===d||a(d),!1})),"1"===edd_scripts.is_checkout){var d=!1,n=!1;e("select#edd-gateway, input.edd-gateway").length&&(d=e("meta[name='edd-chosen-gateway']").attr("content"),n=!0),d||(d=edd_scripts.default_gateway),n?setTimeout((function(){a(d)}),200):setTimeout((function(){e("body").trigger("edd_gateway_loaded",[d])}),300)}function r(){var d,a=e(this),n="undefined"!=typeof edd_global_vars,r="card_state";"edd_address_country"===e(this).attr("id")&&(r="edd_address_state");var o=document.getElementById(r);if("card_state"!==a.attr("id")&&null!=o){var i=e(this).data("nonce"),c={action:"edd_get_shop_states",country:a.val(),field_name:r,nonce:i};e.ajax({type:"POST",data:c,url:edd_scripts.ajaxurl,xhrFields:{withCredentials:!0},success:function(t){d=n?e("#edd_purchase_form"):a.closest("form");var o='input[name="card_state"], select[name="card_state"], input[name="edd_address_state"], select[name="edd_address_state"]';if("nostates"===e.trim(t)){var i='';d.find(o).replaceWith(i)}else d.find(o).replaceWith(t);n&&e(document.body).trigger("edd_cart_billing_address_updated",[t])}}).fail((function(e){window.console&&window.console.log&&console.log(e)})).done((function(e){n&&Object(t.b)()}))}else n&&Object(t.b)();return!1}e(document).on("click","#edd_purchase_form #edd_purchase_submit [type=submit]",(function(t){var d=document.getElementById("edd_purchase_form");if("function"!=typeof d.checkValidity||!1!==d.checkValidity()){t.preventDefault();var a=e(this).val();e(this).val(edd_global_vars.purchase_loading),e(this).prop("disabled",!0),e(this).after(''),e.post(edd_global_vars.ajaxurl,e("#edd_purchase_form").serialize()+"&action=edd_process_checkout&edd_ajax=true",(function(t){"success"===e.trim(t)?(e(".edd_errors").remove(),e(".edd-error").hide(),e(d).submit()):(e("#edd-purchase-button").val(a),e(".edd-loading-ajax").remove(),e(".edd_errors").remove(),e(".edd-error").hide(),e(edd_global_vars.checkout_error_anchor).before(t),e("#edd-purchase-button").prop("disabled",!1),e(document.body).trigger("edd_checkout_error",[t]))}))}})),e(document.body).on("change","#edd_cc_address input.card_state, #edd_cc_address select, #edd_address_country",r),window.update_state_field=r,e(document.body).on("change","#edd_cc_address input[name=card_zip]",(function(){"undefined"!=typeof edd_global_vars&&Object(t.b)()}))})),window.edd_load_gateway=a}.call(this,d(1))}}); \ No newline at end of file +!function(e){var t={};function d(a){if(t[a])return t[a].exports;var n=t[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,d),n.l=!0,n.exports}d.m=e,d.c=t,d.d=function(e,t,a){d.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},d.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},d.t=function(e,t){if(1&t&&(e=d(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(d.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)d.d(a,n,function(t){return e[t]}.bind(null,n));return a},d.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(t,"a",t),t},d.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},d.p="",d(d.s=230)}({1:function(e,t){e.exports=jQuery},13:function(e,t,d){"use strict";(function(e){d.d(t,"a",(function(){return a})),d.d(t,"b",(function(){return r}));var a=function(e){var t,d=e;switch(e){case"amex":d="americanexpress",t=32;break;default:t=50}return"\n \n \n \n ')},n=0;function r(t){if("1"==edd_global_vars.taxes_enabled){var d=document.getElementsByClassName("edd_cart_tax");if(d.length>0&&!d[0].querySelector(".edd-recalculate-taxes-loading")){d=d[0];var a=document.createElement("span"),r=document.getElementsByClassName("edd_cart_tax_amount");r.length>0&&d.removeChild(r[0]),a.classList.add("edd-loading-ajax","edd-recalculate-taxes-loading","edd-loading"),d.appendChild(a)}var o=e("#edd_cc_address"),i=o.find("#billing_country").val(),c=o.find("#card_address").val(),s=o.find("#card_address_2").val(),_=o.find("#card_city").val(),l=o.find("#card_state").val();t||(t=l);var u={action:"edd_recalculate_taxes",card_address:c,card_address_2:s,card_city:_,card_zip:o.find("#card_zip").val(),state:t,billing_country:i,nonce:e("#edd-checkout-address-fields-nonce").val(),current_page:edd_global_vars.current_page},p=++n;return e.ajax({type:"POST",data:u,dataType:"json",url:edd_global_vars.ajaxurl,xhrFields:{withCredentials:!0},success:function(t){if(p===n){t.html&&e("#edd_checkout_cart_form").replaceWith(t.html),e(".edd_cart_amount").html(t.total);var d=new Object;d.postdata=u,d.response=t,e("body").trigger("edd_taxes_recalculated",[d])}e(".edd-recalculate-taxes-loading").remove()}}).fail((function(t){window.console&&window.console.log&&(console.log(t),p===n&&e("body").trigger("edd_taxes_recalculated",[tax_data]))}))}}}).call(this,d(1))},230:function(e,t,d){"use strict";d.r(t),function(e){var t=d(13);function a(t){e(".edd-cart-ajax").show(),e("#edd_purchase_form_wrap").html('');var d=document.getElementById("edd-gateway-"+t).getAttribute("data-"+t+"-nonce"),a=edd_scripts.ajaxurl;a.indexOf("?")>0?a+="&":a+="?",a=a+"payment-mode="+t,e.post(a,{action:"edd_load_gateway",edd_payment_mode:t,nonce:d,current_page:edd_scripts.current_page},(function(d){e("#edd_purchase_form_wrap").html(d),e("body").trigger("edd_gateway_loaded",[t])}))}e(document).ready((function(e){if(e(".edd-add-to-cart:not(.edd-no-js)").addClass("edd-has-js"),e(document.body).on("click.eddRemoveFromCart",".edd-remove-from-cart",(function(t){var d=e(this),a=d.data("cart-item"),n=d.data("action"),r=d.data("download-id"),o=d.data("nonce"),i={action:n,cart_item:a,nonce:o,timestamp:d.data("timestamp"),token:d.data("token"),current_page:edd_scripts.current_page};return e.ajax({type:"POST",data:i,dataType:"json",url:edd_scripts.ajaxurl,xhrFields:{withCredentials:!0},success:function(t){if(t.removed){if(parseInt(edd_scripts.position_in_cart,10)===parseInt(a,10)||edd_scripts.has_purchase_links)return window.location=window.location,!1;e(".edd-cart").each((function(){e(this).find("[data-cart-item='"+a+"']").parent().remove()})),e(".edd-cart").each((function(){var t=0;e(this).find("[data-cart-item]").each((function(){e(this).attr("data-cart-item",t),t+=1}))})),e("[id^=edd_purchase_"+r+"]").length&&(e("[id^=edd_purchase_"+r+"] .edd_go_to_checkout").hide(),e("[id^=edd_purchase_"+r+"] .edd-add-to-cart.edd-has-js").show().removeAttr("data-edd-loading"),"1"===edd_scripts.quantities_enabled&&e("[id^=edd_purchase_"+r+"] .edd_download_quantity_wrapper").show()),e("span.edd-cart-quantity").text(t.cart_quantity),e(document.body).trigger("edd_quantity_updated",[t.cart_quantity]),edd_scripts.taxes_enabled&&(e(".cart_item.edd_subtotal span").html(t.subtotal),e(".cart_item.edd_cart_tax span").html(t.tax)),e(".cart_item.edd_total span").html(t.total),0===t.cart_quantity&&(e(".cart_item.edd_subtotal,.edd-cart-number-of-items,.cart_item.edd_checkout,.cart_item.edd_cart_tax,.cart_item.edd_total").hide(),e(".edd-cart").each((function(){var t=e(this).parent();t.length&&(t.addClass("cart-empty"),t.removeClass("cart-not-empty")),e(this).append('
  • '+edd_scripts.empty_cart_message+"
  • ")}))),e(document.body).trigger("edd_cart_item_removed",[t])}}}).fail((function(e){window.console&&window.console.log&&console.log(e)})).done((function(e){})),!1})),e(document.body).on("click.eddAddToCart",".edd-add-to-cart",(function(t){t.preventDefault();var d=e(this),a=d.closest("form");d.prop("disabled",!0),d.find(".edd-loading");var n=d.closest("div");d.attr("data-edd-loading",""),a=d.parents("form").last();var r=d.data("download-id"),o=d.data("variable-price"),i=d.data("price-mode"),c=d.data("nonce"),s=[],_=!0;if("yes"===o)if(a.find(".edd_price_option_"+r+'[type="hidden"]').length>0)s[0]=e(".edd_price_option_"+r,a).val(),a.find(".edd-submit").data("price")&&a.find(".edd-submit").data("price")>0&&(_=!1);else{if(!a.find(".edd_price_option_"+r+":checked",a).length)return d.removeAttr("data-edd-loading"),alert(edd_scripts.select_option),t.stopPropagation(),d.prop("disabled",!1),!1;a.find(".edd_price_option_"+r+":checked",a).each((function(t){if(s[t]=e(this).val(),!0===_){var d=e(this).data("price");d&&d>0&&(_=!1)}}))}else s[0]=r,d.data("price")&&d.data("price")>0&&(_=!1);if(_&&a.find(".edd_action_input").val("add_to_cart"),"straight_to_gateway"===a.find(".edd_action_input").val())return a.submit(),!0;var l={action:d.data("action"),download_id:r,price_ids:s,post_data:e(a).serialize(),nonce:c,current_page:edd_scripts.current_page,timestamp:d.data("timestamp"),token:d.data("token")};return e.ajax({type:"POST",data:l,dataType:"json",url:edd_scripts.ajaxurl,xhrFields:{withCredentials:!0},success:function(t){var c="1"===edd_scripts.redirect_to_checkout,s="1"===a.find("input[name=edd_redirect_to_checkout]").val();if(c&&s||!c&&s)window.location=edd_scripts.checkout_page;else{if("1"===edd_scripts.taxes_enabled&&(e(".cart_item.edd_subtotal").show(),e(".cart_item.edd_cart_tax").show()),e(".cart_item.edd_total").show(),e(".cart_item.edd_checkout").show(),e(".cart_item.empty").length&&e(".cart_item.empty").hide(),e(".widget_edd_cart_widget .edd-cart").each((function(d){var a=e(this).find(".edd-cart-meta:first");e(t.cart_item).insertBefore(a);var n=e(this).parent();n.length&&(n.addClass("cart-not-empty"),n.removeClass("cart-empty"))})),"1"===edd_scripts.taxes_enabled&&(e(".edd-cart-meta.edd_subtotal span").html(t.subtotal),e(".edd-cart-meta.edd_cart_tax span").html(t.tax)),e(".edd-cart-meta.edd_total span").html(t.total),e(".edd-cart-item-title",t.cart_item).length,e("span.edd-cart-quantity").each((function(){e(this).text(t.cart_quantity),e(document.body).trigger("edd_quantity_updated",[t.cart_quantity])})),"none"===e(".edd-cart-number-of-items").css("display")&&e(".edd-cart-number-of-items").show("slow"),"no"!==o&&"multi"===i||(e(".edd-add-to-cart.edd-has-js",n).toggle(),e(".edd_go_to_checkout",n).show()),"multi"===i&&d.removeAttr("data-edd-loading"),e(".edd_download_purchase_form").length&&("no"===o||!a.find(".edd_price_option_"+r).is("input:hidden"))){var _=e('.edd_download_purchase_form *[data-download-id="'+r+'"]').parents("form");e(".edd-add-to-cart",_).hide(),"multi"!==i&&_.find(".edd_download_quantity_wrapper").slideUp(),e(".edd_go_to_checkout",_).show().removeAttr("data-edd-loading")}"incart"!==t&&(e(".edd-cart-added-alert",n).fadeIn(),setTimeout((function(){e(".edd-cart-added-alert",n).fadeOut()}),3e3)),d.prop("disabled",!1),e(document.body).trigger("edd_cart_item_added",[t])}}}).fail((function(e){window.console&&window.console.log&&console.log(e)})).done((function(e){})),!1})),e("#edd_checkout_form_wrap").on("click",".edd_checkout_register_login",(function(){var t=e(this),d={action:t.data("action"),nonce:t.data("nonce")};return e(".edd-cart-ajax").show(),e.post(edd_scripts.ajaxurl,d,(function(t){e("#edd_checkout_login_register").html(edd_scripts.loading),e("#edd_checkout_login_register").html(t),e(".edd-cart-ajax").hide()})),!1})),e(document).on("click","#edd_purchase_form #edd_login_fields input[type=submit]",(function(t){t.preventDefault();var d=e(this).val();e(this).attr("data-original-value",d),e(this).val(edd_global_vars.purchase_loading),e(this).after('');var a={action:"edd_process_checkout_login",edd_ajax:1,edd_user_login:e("#edd_login_fields #edd_user_login").val(),edd_user_pass:e("#edd_login_fields #edd_user_pass").val(),edd_login_nonce:e("#edd_login_nonce").val()};e.post(edd_global_vars.ajaxurl,a,(function(t){"success"===e.trim(t)?(e(".edd_errors").remove(),window.location=edd_scripts.checkout_page):(e("#edd_login_fields input[type=submit]").val(d),e(".edd-loading-ajax").remove(),e(".edd_errors").remove(),e("#edd-user-login-submit").before(t))}))})),e(document).on("change","select#edd-gateway, input.edd-gateway",(function(t){var d=e("#edd-gateway option:selected, input.edd-gateway:checked").val();return"0"===d||a(d),!1})),"1"===edd_scripts.is_checkout){var d=!1,n=!1;e("select#edd-gateway, input.edd-gateway").length&&(d=e("meta[name='edd-chosen-gateway']").attr("content"),n=!0),d||(d=edd_scripts.default_gateway),n?setTimeout((function(){a(d)}),200):setTimeout((function(){e("body").trigger("edd_gateway_loaded",[d])}),300)}function r(){var d,a=e(this),n="undefined"!=typeof edd_global_vars,r="card_state";"edd_address_country"===e(this).attr("id")&&(r="edd_address_state");var o=document.getElementById(r);if("card_state"!==a.attr("id")&&null!=o){var i=e(this).data("nonce"),c={action:"edd_get_shop_states",country:a.val(),field_name:r,nonce:i};e.ajax({type:"POST",data:c,url:edd_scripts.ajaxurl,xhrFields:{withCredentials:!0},success:function(t){d=n?e("#edd_purchase_form"):a.closest("form");var o='input[name="card_state"], select[name="card_state"], input[name="edd_address_state"], select[name="edd_address_state"]';if("nostates"===e.trim(t)){var i='';d.find(o).replaceWith(i)}else d.find(o).replaceWith(t);n&&e(document.body).trigger("edd_cart_billing_address_updated",[t])}}).fail((function(e){window.console&&window.console.log&&console.log(e)})).done((function(e){n&&Object(t.b)()}))}else n&&Object(t.b)();return!1}e(document).on("click","#edd_purchase_form #edd_purchase_submit [type=submit]",(function(t){var d=document.getElementById("edd_purchase_form");if("function"!=typeof d.checkValidity||!1!==d.checkValidity()){t.preventDefault();var a=e(this).val();e(this).val(edd_global_vars.purchase_loading),e(this).prop("disabled",!0),e(this).after(''),e.post(edd_global_vars.ajaxurl,e("#edd_purchase_form").serialize()+"&action=edd_process_checkout&edd_ajax=true",(function(t){"success"===e.trim(t)?(e(".edd_errors").remove(),e(".edd-error").hide(),e(d).submit()):(e("#edd-purchase-button").val(a),e(".edd-loading-ajax").remove(),e(".edd_errors").remove(),e(".edd-error").hide(),e(edd_global_vars.checkout_error_anchor).before(t),e("#edd-purchase-button").prop("disabled",!1),e(document.body).trigger("edd_checkout_error",[t]))}))}})),e(document.body).on("change","#edd_cc_address input.card_state, #edd_cc_address select, #edd_address_country",r),window.update_state_field=r,e(document.body).on("change","#edd_cc_address input[name=card_zip]",(function(){"undefined"!=typeof edd_global_vars&&Object(t.b)()}))})),window.edd_load_gateway=a}.call(this,d(1))}}); \ No newline at end of file diff --git a/wp-content/plugins/easy-digital-downloads/assets/js/edd-checkout-global.js b/wp-content/plugins/easy-digital-downloads/assets/js/edd-checkout-global.js index c3af6014..42d0a4ae 100644 --- a/wp-content/plugins/easy-digital-downloads/assets/js/edd-checkout-global.js +++ b/wp-content/plugins/easy-digital-downloads/assets/js/edd-checkout-global.js @@ -1 +1 @@ -!function(e){var t={};function d(a){if(t[a])return t[a].exports;var n=t[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,d),n.l=!0,n.exports}d.m=e,d.c=t,d.d=function(e,t,a){d.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},d.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},d.t=function(e,t){if(1&t&&(e=d(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(d.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)d.d(a,n,function(t){return e[t]}.bind(null,n));return a},d.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(t,"a",t),t},d.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},d.p="",d(d.s=231)}({1:function(e,t){e.exports=jQuery},13:function(e,t,d){"use strict";(function(e){d.d(t,"a",(function(){return a})),d.d(t,"b",(function(){return o}));var a=function(e){var t,d=e;switch(e){case"amex":d="americanexpress",t=32;break;default:t=50}return"\n \n \n \n ')},n=0;function o(t){if("1"==edd_global_vars.taxes_enabled){var d=e("#edd_cc_address"),a=d.find("#billing_country").val(),o=d.find("#card_address").val(),r=d.find("#card_address_2").val(),c=d.find("#card_city").val(),i=d.find("#card_state").val();t||(t=i);var l={action:"edd_recalculate_taxes",card_address:o,card_address_2:r,card_city:c,card_zip:d.find("#card_zip").val(),state:t,billing_country:a,nonce:e("#edd-checkout-address-fields-nonce").val(),current_page:edd_global_vars.current_page},s=e("#edd_purchase_submit [type=submit]");s.siblings(".edd-loading-ajax.edd-recalculate-taxes-loading").length||s.after('');var u=++n;return e.ajax({type:"POST",data:l,dataType:"json",url:edd_global_vars.ajaxurl,xhrFields:{withCredentials:!0},success:function(t){if(u===n){t.html&&e("#edd_checkout_cart_form").replaceWith(t.html),e(".edd_cart_amount").html(t.total);var d=new Object;d.postdata=l,d.response=t,e("body").trigger("edd_taxes_recalculated",[d])}e(".edd-recalculate-taxes-loading").remove()}}).fail((function(t){window.console&&window.console.log&&(console.log(t),u===n&&e("body").trigger("edd_taxes_recalculated",[tax_data]))}))}}}).call(this,d(1))},231:function(e,t,d){"use strict";d.r(t),d(232);var a=d(13);window.recalculate_taxes=a.b,window.EDD_Checkout=function(e){var t,d,n;function o(d){d.preventDefault();var o=e("#edd-discount").val(),r=e("#edd-discount-loader"),c=e("#edd_cc_address .edd-input, #edd_cc_address .edd-select").filter("[required]");if(""==o||o==edd_global_vars.enter_discount)return!1;var i={action:"edd_apply_discount",code:o,form:e("#edd_purchase_form").serialize(),current_page:edd_global_vars.current_page};return e("#edd-discount-error-wrap").html("").hide(),r.show(),e.ajax({type:"POST",data:i,dataType:"json",url:edd_global_vars.ajaxurl,xhrFields:{withCredentials:!0},success:function(d){d?"valid"==d.msg?(e(".edd_cart_discount").html(d.html),e(".edd_cart_discount_row").show(),e(".edd_cart_amount").each((function(){e(this).text(d.total),e(this).data("total",d.total_plain)})),e("#edd-discount",n).val(""),Object(a.b)(),"0.00"==d.total_plain?(e("#edd_cc_fields,#edd_cc_address,#edd_payment_mode_select").slideUp(),c.prop("required",!1),e('input[name="edd-gateway"]').val("manual")):(c.prop("required",!0),e("#edd_cc_fields,#edd_cc_address").slideDown()),t.trigger("edd_discount_applied",[d])):(e("#edd-discount-error-wrap").html(''+d.msg+""),e("#edd-discount-error-wrap").show(),t.trigger("edd_discount_invalid",[d])):(window.console&&window.console.log&&console.log(d),t.trigger("edd_discount_failed",[d])),r.hide()}}).fail((function(e){window.console&&window.console.log&&console.log(e)})),!1}function r(d){var n={action:"edd_remove_discount",code:e(this).data("code"),current_page:edd_global_vars.current_page};return e.ajax({type:"POST",data:n,dataType:"json",url:edd_global_vars.ajaxurl,xhrFields:{withCredentials:!0},success:function(d){var n="0"+edd_global_vars.decimal_separator+"00";e(".edd_cart_amount").each((function(){edd_global_vars.currency_sign+n!=e(this).text()&&n+edd_global_vars.currency_sign!=e(this).text()||window.location.reload(),e(this).text(d.total),e(this).data("total",d.total_plain)})),e(".edd_cart_discount").html(d.html),d.discounts&&0===d.discounts.length&&e(".edd_cart_discount_row").hide(),Object(a.b)(),e("#edd_cc_fields,#edd_cc_address").slideDown(),t.trigger("edd_discount_removed",[d])}}).fail((function(e){window.console&&window.console.log&&console.log(e)})),!1}function c(d){var a=e(this),n=a.val(),o=a.data("key"),r=a.closest(".edd_cart_item").data("download-id"),c=a.parent().find('input[name="edd-cart-download-'+o+'-options"]').val(),i=e("#edd_cc_address"),l={action:"edd_update_quantity",quantity:n,download_id:r,options:c,billing_country:i.find("#billing_country").val(),card_state:i.find("#card_state").val(),current_page:edd_global_vars.current_page};return e.ajax({type:"POST",data:l,dataType:"json",url:edd_global_vars.ajaxurl,xhrFields:{withCredentials:!0},success:function(d){e(".edd_cart_subtotal_amount").each((function(){e(this).text(d.subtotal)})),e(".edd_cart_tax_amount").each((function(){e(this).text(d.taxes).data("tax",d.taxes_raw).attr("data-tax",d.taxes_raw)})),e(".edd_cart_discount").html(d.discounts),e(".edd_cart_amount").each((function(){e(this).text(d.total).data("subtotal",d.subtotal_raw).attr("data-subtotal",d.subtotal_raw).data("total",d.total_raw).attr("data-total",d.total_raw),t.trigger("edd_quantity_updated",[d])}))}}).fail((function(e){window.console&&window.console.log&&console.log(e)})),!1}return{init:function(){t=e(document.body),d=e("#edd_purchase_form"),e(".edd_cart_amount").text(),n=e("#edd_checkout_form_wrap"),t.on("edd_gateway_loaded",(function(e){var t,a,n,o;a=(t=d).find(".card-number"),n=t.find(".card-cvc"),o=t.find(".card-expiry"),a.length&&"function"==typeof a.payment&&(a.payment("formatCardNumber"),n.payment("formatCardCVC"),o.payment("formatCardExpiry"))})),t.on("keyup change",".edd-do-validate .card-number",(function(){var t,d;t=e(this),(d=t).validateCreditCard((function(t){var n=e(".card-type");null==t.card_type?(n.removeClass().addClass("off card-type"),d.removeClass("valid"),d.addClass("error")):(n.removeClass("off"),n.html(Object(a.a)(t.card_type.name)),n.addClass(t.card_type.name),t.length_valid&&t.luhn_valid?(d.addClass("valid"),d.removeClass("error")):(d.removeClass("valid"),d.addClass("error")))}))})),t.on("blur change",".card-name",(function(){var t=e(this);t.validateCreditCard((function(d){null!=d.card_type?(t.removeClass("valid").addClass("error"),e("#edd-purchase-button").attr("disabled","disabled")):(t.removeClass("error").addClass("valid"),e("#edd-purchase-button").removeAttr("disabled"))}))})),t.on("submit","#edd_payment_mode",(function(){if(0==e("#edd-gateway option:selected").val())return alert(edd_global_vars.no_gateway),!1})),t.on("click","#edd_payment_mode_select input",(function(){e("#edd_payment_mode_select label.edd-gateway-option-selected").removeClass("edd-gateway-option-selected"),e("#edd_payment_mode_select input:checked").parent().addClass("edd-gateway-option-selected")})),n.on("click",".edd-apply-discount",o),n.on("keypress","#edd-discount",(function(e){if("13"==e.keyCode)return!1})),n.on("keyup","#edd-discount",(function(e){"13"==e.keyCode&&n.find(".edd-apply-discount").trigger("click")})),t.on("click",".edd_discount_remove",r),t.on("click",".edd_discount_link",(function(t){t.preventDefault(),e(".edd_discount_link").parent().hide(),e("#edd-discount-code-wrap").show().find("#edd-discount").focus()})),t.find("#edd-discount-code-wrap").hide(),t.find("#edd_show_discount").show(),t.on("change",".edd-item-quantity",c),t.on("click",".edd-amazon-logout #Logout",(function(e){e.preventDefault(),amazon.Login.logout(),window.location=edd_amazon.checkoutUri}))},recalculate_taxes:a.b}}(window.jQuery),window.jQuery(document).ready(EDD_Checkout.init)},232:function(e,t,d){"use strict";(function(e){var t=d(4);Object(t.a)((function(){e(document.body).on("click",".edd_terms_links",(function(t){t.preventDefault();var d=e(this).parent();d.prev(".edd-terms").slideToggle(),d.find(".edd_terms_links").toggle()}))}))}).call(this,d(1))},4:function(e,t,d){"use strict";(function(e){d.d(t,"a",(function(){return a}));var a=function(t){e(t)}}).call(this,d(1))}}); \ No newline at end of file +!function(e){var t={};function d(a){if(t[a])return t[a].exports;var n=t[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,d),n.l=!0,n.exports}d.m=e,d.c=t,d.d=function(e,t,a){d.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},d.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},d.t=function(e,t){if(1&t&&(e=d(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(d.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)d.d(a,n,function(t){return e[t]}.bind(null,n));return a},d.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(t,"a",t),t},d.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},d.p="",d(d.s=231)}({1:function(e,t){e.exports=jQuery},13:function(e,t,d){"use strict";(function(e){d.d(t,"a",(function(){return a})),d.d(t,"b",(function(){return o}));var a=function(e){var t,d=e;switch(e){case"amex":d="americanexpress",t=32;break;default:t=50}return"\n \n \n \n ')},n=0;function o(t){if("1"==edd_global_vars.taxes_enabled){var d=document.getElementsByClassName("edd_cart_tax");if(d.length>0&&!d[0].querySelector(".edd-recalculate-taxes-loading")){d=d[0];var a=document.createElement("span"),o=document.getElementsByClassName("edd_cart_tax_amount");o.length>0&&d.removeChild(o[0]),a.classList.add("edd-loading-ajax","edd-recalculate-taxes-loading","edd-loading"),d.appendChild(a)}var r=e("#edd_cc_address"),c=r.find("#billing_country").val(),i=r.find("#card_address").val(),l=r.find("#card_address_2").val(),s=r.find("#card_city").val(),u=r.find("#card_state").val();t||(t=u);var _={action:"edd_recalculate_taxes",card_address:i,card_address_2:l,card_city:s,card_zip:r.find("#card_zip").val(),state:t,billing_country:c,nonce:e("#edd-checkout-address-fields-nonce").val(),current_page:edd_global_vars.current_page},f=++n;return e.ajax({type:"POST",data:_,dataType:"json",url:edd_global_vars.ajaxurl,xhrFields:{withCredentials:!0},success:function(t){if(f===n){t.html&&e("#edd_checkout_cart_form").replaceWith(t.html),e(".edd_cart_amount").html(t.total);var d=new Object;d.postdata=_,d.response=t,e("body").trigger("edd_taxes_recalculated",[d])}e(".edd-recalculate-taxes-loading").remove()}}).fail((function(t){window.console&&window.console.log&&(console.log(t),f===n&&e("body").trigger("edd_taxes_recalculated",[tax_data]))}))}}}).call(this,d(1))},231:function(e,t,d){"use strict";d.r(t),d(232);var a=d(13);window.recalculate_taxes=a.b,window.EDD_Checkout=function(e){var t,d,n;function o(d){d.preventDefault();var o=e("#edd-discount").val(),r=e("#edd-discount-loader"),c=e("#edd_cc_address .edd-input, #edd_cc_address .edd-select").filter("[required]");if(""==o||o==edd_global_vars.enter_discount)return!1;var i={action:"edd_apply_discount",code:o,form:e("#edd_purchase_form").serialize(),current_page:edd_global_vars.current_page};return e("#edd-discount-error-wrap").html("").hide(),r.show(),e.ajax({type:"POST",data:i,dataType:"json",url:edd_global_vars.ajaxurl,xhrFields:{withCredentials:!0},success:function(d){d?"valid"==d.msg?(e(".edd_cart_discount").html(d.html),e(".edd_cart_discount_row").show(),e(".edd_cart_amount").each((function(){e(this).text(d.total),e(this).data("total",d.total_plain)})),e("#edd-discount",n).val(""),Object(a.b)(),"0.00"==d.total_plain?(e("#edd_cc_fields,#edd_cc_address,#edd_payment_mode_select").slideUp(),c.prop("required",!1),e('input[name="edd-gateway"]').val("manual")):(c.prop("required",!0),e("#edd_cc_fields,#edd_cc_address").slideDown()),t.trigger("edd_discount_applied",[d])):(e("#edd-discount-error-wrap").html(''+d.msg+""),e("#edd-discount-error-wrap").show(),t.trigger("edd_discount_invalid",[d])):(window.console&&window.console.log&&console.log(d),t.trigger("edd_discount_failed",[d])),r.hide()}}).fail((function(e){window.console&&window.console.log&&console.log(e)})),!1}function r(d){var n={action:"edd_remove_discount",code:e(this).data("code"),current_page:edd_global_vars.current_page};return e.ajax({type:"POST",data:n,dataType:"json",url:edd_global_vars.ajaxurl,xhrFields:{withCredentials:!0},success:function(d){var n="0"+edd_global_vars.decimal_separator+"00";e(".edd_cart_amount").each((function(){edd_global_vars.currency_sign+n!=e(this).text()&&n+edd_global_vars.currency_sign!=e(this).text()||window.location.reload(),e(this).text(d.total),e(this).data("total",d.total_plain)})),e(".edd_cart_discount").html(d.html),d.discounts&&0===d.discounts.length&&e(".edd_cart_discount_row").hide(),Object(a.b)(),e("#edd_cc_fields,#edd_cc_address").slideDown(),t.trigger("edd_discount_removed",[d])}}).fail((function(e){window.console&&window.console.log&&console.log(e)})),!1}function c(d){var a=e(this),n=a.val(),o=a.data("key"),r=a.closest(".edd_cart_item").data("download-id"),c=a.parent().find('input[name="edd-cart-download-'+o+'-options"]').val(),i=e("#edd_cc_address"),l={action:"edd_update_quantity",quantity:n,download_id:r,options:c,billing_country:i.find("#billing_country").val(),card_state:i.find("#card_state").val(),current_page:edd_global_vars.current_page};return e.ajax({type:"POST",data:l,dataType:"json",url:edd_global_vars.ajaxurl,xhrFields:{withCredentials:!0},success:function(d){e(".edd_cart_subtotal_amount").each((function(){e(this).text(d.subtotal)})),e(".edd_cart_tax_amount").each((function(){e(this).text(d.taxes).data("tax",d.taxes_raw).attr("data-tax",d.taxes_raw)})),e(".edd_cart_discount").html(d.discounts),e(".edd_cart_amount").each((function(){e(this).text(d.total).data("subtotal",d.subtotal_raw).attr("data-subtotal",d.subtotal_raw).data("total",d.total_raw).attr("data-total",d.total_raw),t.trigger("edd_quantity_updated",[d])}))}}).fail((function(e){window.console&&window.console.log&&console.log(e)})),!1}return{init:function(){t=e(document.body),d=e("#edd_purchase_form"),e(".edd_cart_amount").text(),n=e("#edd_checkout_form_wrap"),t.on("edd_gateway_loaded",(function(e){var t,a,n,o;a=(t=d).find(".card-number"),n=t.find(".card-cvc"),o=t.find(".card-expiry"),a.length&&"function"==typeof a.payment&&(a.payment("formatCardNumber"),n.payment("formatCardCVC"),o.payment("formatCardExpiry"))})),t.on("keyup change",".edd-do-validate .card-number",(function(){var t,d;t=e(this),(d=t).validateCreditCard((function(t){var n=e(".card-type");null==t.card_type?(n.removeClass().addClass("off card-type"),d.removeClass("valid"),d.addClass("error")):(n.removeClass("off"),n.html(Object(a.a)(t.card_type.name)),n.addClass(t.card_type.name),t.length_valid&&t.luhn_valid?(d.addClass("valid"),d.removeClass("error")):(d.removeClass("valid"),d.addClass("error")))}))})),t.on("blur change",".card-name",(function(){var t=e(this);t.validateCreditCard((function(d){null!=d.card_type?(t.removeClass("valid").addClass("error"),e("#edd-purchase-button").attr("disabled","disabled")):(t.removeClass("error").addClass("valid"),e("#edd-purchase-button").removeAttr("disabled"))}))})),t.on("submit","#edd_payment_mode",(function(){if(0==e("#edd-gateway option:selected").val())return alert(edd_global_vars.no_gateway),!1})),t.on("click","#edd_payment_mode_select input",(function(){e("#edd_payment_mode_select label.edd-gateway-option-selected").removeClass("edd-gateway-option-selected"),e("#edd_payment_mode_select input:checked").parent().addClass("edd-gateway-option-selected")})),n.on("click",".edd-apply-discount",o),n.on("keypress","#edd-discount",(function(e){if("13"==e.keyCode)return!1})),n.on("keyup","#edd-discount",(function(e){"13"==e.keyCode&&n.find(".edd-apply-discount").trigger("click")})),t.on("click",".edd_discount_remove",r),t.on("click",".edd_discount_link",(function(t){t.preventDefault(),e(".edd_discount_link").parent().hide(),e("#edd-discount-code-wrap").show().find("#edd-discount").focus()})),t.find("#edd-discount-code-wrap").hide(),t.find("#edd_show_discount").show(),t.on("change",".edd-item-quantity",c),t.on("click",".edd-amazon-logout #Logout",(function(e){e.preventDefault(),amazon.Login.logout(),window.location=edd_amazon.checkoutUri}))},recalculate_taxes:a.b}}(window.jQuery),window.jQuery(document).ready(EDD_Checkout.init)},232:function(e,t,d){"use strict";(function(e){var t=d(4);Object(t.a)((function(){e(document.body).on("click",".edd_terms_links",(function(t){t.preventDefault();var d=e(this).parent();d.prev(".edd-terms").slideToggle(),d.find(".edd_terms_links").toggle()}))}))}).call(this,d(1))},4:function(e,t,d){"use strict";(function(e){d.d(t,"a",(function(){return a}));var a=function(t){e(t)}}).call(this,d(1))}}); \ No newline at end of file diff --git a/wp-content/plugins/easy-digital-downloads/easy-digital-downloads.php b/wp-content/plugins/easy-digital-downloads/easy-digital-downloads.php index 70fd092b..ef719be5 100644 --- a/wp-content/plugins/easy-digital-downloads/easy-digital-downloads.php +++ b/wp-content/plugins/easy-digital-downloads/easy-digital-downloads.php @@ -5,7 +5,7 @@ * Description: The easiest way to sell digital products with WordPress. * Author: Easy Digital Downloads * Author URI: https://easydigitaldownloads.com - * Version: 3.1.1.4.2 + * Version: 3.1.2 * Text Domain: easy-digital-downloads * Domain Path: /languages * Requires at least: 5.4 @@ -27,7 +27,7 @@ * @package EDD * @category Core * @author Easy Digital Downloads - * @version 3.1.1.4.2 + * @version 3.1.2 */ // Exit if accessed directly. diff --git a/wp-content/plugins/easy-digital-downloads/includes/admin/admin-deprecated-functions.php b/wp-content/plugins/easy-digital-downloads/includes/admin/admin-deprecated-functions.php index 2f3cd730..20ff6cb7 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/admin/admin-deprecated-functions.php +++ b/wp-content/plugins/easy-digital-downloads/includes/admin/admin-deprecated-functions.php @@ -59,6 +59,7 @@ function edd_tools_banned_emails_display() { * @return void */ function edd_trigger_purchase_delete( $data ) { + _edd_deprecated_function( __FUNCTION__, '3.0' ); if ( wp_verify_nonce( $data['_wpnonce'], 'edd_payment_nonce' ) ) { $payment_id = absint( $data['purchase_id'] ); @@ -72,7 +73,6 @@ function edd_trigger_purchase_delete( $data ) { edd_redirect( admin_url( 'edit.php?post_type=download&page=edd-payment-history&edd-message=payment_deleted' ) ); } } -add_action( 'edd_delete_payment', 'edd_trigger_purchase_delete' ); /** * Add-ons Page @@ -283,6 +283,491 @@ function edd_add_extentions_link() { } } +/** + * Display the system info tab + * + * @deprecated 3.1.2 + * @since 2.0 + */ +function edd_tools_sysinfo_display() { + if ( ! current_user_can( 'manage_shop_settings' ) ) { + return; + } + _edd_deprecated_function( __FUNCTION__, '3.1.2' ); + + ?> + +
    +

    +
    +

    + +

    + +
    + + +

    + + "this.form['edd-sysinfo'].focus();this.form['edd-sysinfo'].select();document.execCommand('copy');return false;" ) ); + ?> +

    +
    +
    +
    + + Name . ' ' . $theme_data->Version; + $parent_theme = $theme_data->Template; + if ( ! empty( $parent_theme ) ) { + $parent_theme_data = wp_get_theme( $parent_theme ); + $parent_theme = $parent_theme_data->Name . ' ' . $parent_theme_data->Version; + } + + // Try to identify the hosting provider + $host = edd_get_host(); + + $return = '### Begin System Info (Generated ' . date( 'Y-m-d H:i:s' ) . ') ###' . "\n\n"; + + // Start with the basics... + $return .= '-- Site Info' . "\n\n"; + $return .= 'Site URL: ' . site_url() . "\n"; + $return .= 'Home URL: ' . home_url() . "\n"; + $return .= 'Multisite: ' . ( is_multisite() ? 'Yes' : 'No' ) . "\n"; + + $return = apply_filters( 'edd_sysinfo_after_site_info', $return ); + + // Can we determine the site's host? + if ( $host ) { + $return .= "\n" . '-- Hosting Provider' . "\n\n"; + $return .= 'Host: ' . $host . "\n"; + + $return = apply_filters( 'edd_sysinfo_after_host_info', $return ); + } + + // The local users' browser information, handled by the Browser class + $return .= "\n" . '-- User Browser' . "\n\n"; + $return .= $browser; + + $return = apply_filters( 'edd_sysinfo_after_user_browser', $return ); + + $locale = get_locale(); + + // WordPress configuration + $return .= "\n" . '-- WordPress Configuration' . "\n\n"; + $return .= 'Version: ' . get_bloginfo( 'version' ) . "\n"; + $return .= 'Language: ' . ( ! empty( $locale ) ? $locale : 'en_US' ) . "\n"; + $return .= 'Permalink Structure: ' . ( get_option( 'permalink_structure' ) ? get_option( 'permalink_structure' ) : 'Default' ) . "\n"; + $return .= 'Active Theme: ' . $theme . "\n"; + $return .= 'WP Timezone: ' . wp_timezone_string() . "\n"; + $return .= 'EDD Timezone: ' . edd_get_timezone_abbr() . "\n"; + if ( $parent_theme !== $theme ) { + $return .= 'Parent Theme: ' . $parent_theme . "\n"; + } + + $customized_template_files = edd_get_theme_edd_templates(); + $return .= "\n" . '-- Customized Templates' . "\n\n"; + if ( empty( $customized_template_files ) ) { + $return .= 'No custom templates found.' . "\n\n"; + } else { + foreach ( $customized_template_files as $customized_template_file ) { + $return .= $customized_template_file . "\n"; + } + } + + $return .= "\n"; + + $return = apply_filters( 'edd_sysinfo_after_customized_templates', $return ); + + $return .= 'Show On Front: ' . get_option( 'show_on_front' ) . "\n"; + + // Only show page specs if frontpage is set to 'page' + if ( get_option( 'show_on_front' ) == 'page' ) { + $front_page_id = get_option( 'page_on_front' ); + $blog_page_id = get_option( 'page_for_posts' ); + + $return .= 'Page On Front: ' . ( $front_page_id != 0 ? '#' . $front_page_id : 'Unset' ) . "\n"; + $return .= 'Page For Posts: ' . ( $blog_page_id != 0 ? '#' . $blog_page_id : 'Unset' ) . "\n"; + } + + $return .= 'ABSPATH: ' . ABSPATH . "\n"; + + // Make sure wp_remote_post() is working + $request['cmd'] = '_notify-validate'; + + $params = array( + 'sslverify' => false, + 'timeout' => 60, + 'user-agent' => 'EDD/' . EDD_VERSION, + 'body' => $request, + ); + + $response = wp_remote_post( 'https://www.paypal.com/cgi-bin/webscr', $params ); + + if ( ! is_wp_error( $response ) && $response['response']['code'] >= 200 && $response['response']['code'] < 300 ) { + $WP_REMOTE_POST = 'wp_remote_post() works'; + } else { + $WP_REMOTE_POST = 'wp_remote_post() does not work'; + } + + $return .= 'Remote Post: ' . $WP_REMOTE_POST . "\n"; + $return .= 'Table Prefix: ' . 'Length: ' . strlen( $wpdb->prefix ) . ' Status: ' . ( strlen( $wpdb->prefix ) > 16 ? 'ERROR: Too long' : 'Acceptable' ) . "\n"; + // Commented out per https://github.com/easydigitaldownloads/Easy-Digital-Downloads/issues/3475 + //$return .= 'Admin AJAX: ' . ( edd_test_ajax_works() ? 'Accessible' : 'Inaccessible' ) . "\n"; + $return .= 'WP_DEBUG: ' . ( defined( 'WP_DEBUG' ) ? WP_DEBUG ? 'Enabled' : 'Disabled' : 'Not set' ) . "\n"; + $return .= 'Memory Limit: ' . WP_MEMORY_LIMIT . "\n"; + $return .= 'Registered Post Stati: ' . implode( ', ', get_post_stati() ) . "\n"; + + $return = apply_filters( 'edd_sysinfo_after_wordpress_config', $return ); + + // EDD configuration + $return .= "\n" . '-- EDD Configuration' . "\n\n"; + $return .= 'Version: ' . EDD_VERSION . "\n"; + $return .= 'Upgraded From: ' . get_option( 'edd_version_upgraded_from', 'None' ) . "\n"; + $return .= 'EDD (Pro) Status: ' . ( edd_is_pro() ? "Enabled\n" : "Disabled\n" ); + $return .= 'EDD (Pro) Activated On: ' . ( get_option( 'edd_pro_activation_date' ) ? edd_date_i18n( get_option( 'edd_pro_activation_date' ), 'Y-m-d' ) . "\n" : "N/A\n" ); + $return .= 'EDD Pass Status: ' . ( EDD\Admin\Pass_Manager::isPro() ? "Valid Pass\n" : "Missing\n" ); + $return .= 'Test Mode: ' . ( edd_is_test_mode() ? "Enabled\n" : "Disabled\n" ); + $return .= 'AJAX: ' . ( ! edd_is_ajax_disabled() ? "Enabled\n" : "Disabled\n" ); + $return .= 'Guest Checkout: ' . ( edd_no_guest_checkout() ? "Disabled\n" : "Enabled\n" ); + $return .= 'Symlinks: ' . ( apply_filters( 'edd_symlink_file_downloads', edd_get_option( 'symlink_file_downloads', false ) ) && function_exists( 'symlink' ) ? "Enabled\n" : "Disabled\n" ); + $return .= 'Download Method: ' . ucfirst( edd_get_file_download_method() ) . "\n"; + $return .= 'Currency Code: ' . edd_get_currency() . "\n"; + $return .= 'Currency Position: ' . edd_get_option( 'currency_position', 'before' ) . "\n"; + $return .= 'Decimal Separator: ' . edd_get_option( 'decimal_separator', '.' ) . "\n"; + $return .= 'Thousands Separator: ' . edd_get_option( 'thousands_separator', ',' ) . "\n"; + $return .= 'Upgrades Completed: ' . implode( ',', edd_get_completed_upgrades() ) . "\n"; + $return .= 'Download Link Expiration: ' . edd_get_option( 'download_link_expiration' ) . " hour(s)\n"; + + $return = apply_filters( 'edd_sysinfo_after_edd_config', $return ); + + // EDD Database tables + $return .= "\n" . '-- EDD Database Tables' . "\n\n"; + + foreach ( EDD()->components as $component ) { + + // Object + $thing = $component->get_interface( 'table' ); + if ( ! empty( $thing ) ) { + $return .= str_pad( $thing->name . ': ', 32, ' ' ) . $thing->get_version() . "\n"; + } + + // Meta + $thing = $component->get_interface( 'meta' ); + if ( ! empty( $thing ) ) { + $return .= str_pad( $thing->name . ': ', 32, ' ' ) . $thing->get_version() . "\n"; + } + } + + $return = apply_filters( 'edd_sysinfo_after_edd_database_tables', $return ); + + // EDD Database tables + $return .= "\n" . '-- EDD Database Row Counts' . "\n\n"; + + foreach ( EDD()->components as $component ) { + + // Object + $thing = $component->get_interface( 'table' ); + if ( ! empty( $thing ) ) { + $return .= str_pad( $thing->name . ': ', 32, ' ' ) . $thing->count() . "\n"; + } + + // Meta + $thing = $component->get_interface( 'meta' ); + if ( ! empty( $thing ) ) { + $return .= str_pad( $thing->name . ': ', 32, ' ' ) . $thing->count() . "\n"; + } + } + + $return = apply_filters( 'edd_sysinfo_after_edd_database_row_counts', $return ); + + // EDD pages + $purchase_page = edd_get_option( 'purchase_page', '' ); + $success_page = edd_get_option( 'success_page', '' ); + $failure_page = edd_get_option( 'failure_page', '' ); + + $return .= "\n" . '-- EDD Page Configuration' . "\n\n"; + $return .= 'Checkout: ' . ( ! empty( $purchase_page ) ? "Valid\n" : "Invalid\n" ); + $return .= 'Checkout Page: ' . ( ! empty( $purchase_page ) ? get_permalink( $purchase_page ) . "\n" : "Unset\n" ); + $return .= 'Success Page: ' . ( ! empty( $success_page ) ? get_permalink( $success_page ) . "\n" : "Unset\n" ); + $return .= 'Failure Page: ' . ( ! empty( $failure_page ) ? get_permalink( $failure_page ) . "\n" : "Unset\n" ); + $return .= 'Downloads Slug: ' . ( defined( 'EDD_SLUG' ) ? '/' . EDD_SLUG . "\n" : "/downloads\n" ); + + $return = apply_filters( 'edd_sysinfo_after_edd_pages', $return ); + + // EDD gateways + $return .= "\n" . '-- EDD Gateway Configuration' . "\n\n"; + + $active_gateways = edd_get_enabled_payment_gateways(); + if ( $active_gateways ) { + $default_gateway_is_active = edd_is_gateway_active( edd_get_default_gateway() ); + if ( $default_gateway_is_active ) { + $default_gateway = edd_get_default_gateway(); + $default_gateway = $active_gateways[ $default_gateway ]['admin_label']; + } else { + $default_gateway = 'Test Payment'; + } + + $gateways = array(); + foreach ( $active_gateways as $gateway ) { + $gateways[] = $gateway['admin_label']; + } + + $return .= 'Enabled Gateways: ' . implode( ', ', $gateways ) . "\n"; + $return .= 'Default Gateway: ' . $default_gateway . "\n"; + } else { + $return .= 'Enabled Gateways: None' . "\n"; + } + + $return = apply_filters( 'edd_sysinfo_after_edd_gateways', $return ); + + + // EDD Taxes + $return .= "\n" . '-- EDD Tax Configuration' . "\n\n"; + $return .= 'Taxes: ' . ( edd_use_taxes() ? "Enabled\n" : "Disabled\n" ); + $return .= 'Default Rate: ' . edd_get_formatted_tax_rate() . "\n"; + $return .= 'Display On Checkout: ' . ( edd_get_option( 'checkout_include_tax', false ) ? "Displayed\n" : "Not Displayed\n" ); + $return .= 'Prices Include Tax: ' . ( edd_prices_include_tax() ? "Yes\n" : "No\n" ); + + $rates = edd_get_tax_rates(); + if ( ! empty( $rates ) ) { + $return .= 'Country / State Rates: ' . "\n"; + foreach ( $rates as $rate ) { + $return .= ' Country: ' . $rate['country'] . ', State: ' . $rate['state'] . ', Rate: ' . $rate['rate'] . "\n"; + } + } + + $return = apply_filters( 'edd_sysinfo_after_edd_taxes', $return ); + + // EDD Templates + $dir = get_stylesheet_directory() . '/edd_templates/*'; + if ( is_dir( $dir ) && ( count( glob( "$dir/*" ) ) !== 0 ) ) { + $return .= "\n" . '-- EDD Template Overrides' . "\n\n"; + + foreach ( glob( $dir ) as $file ) { + $return .= 'Filename: ' . basename( $file ) . "\n"; + } + + $return = apply_filters( 'edd_sysinfo_after_edd_templates', $return ); + } + + // Drop Ins + $dropins = get_dropins(); + if ( count( $dropins ) > 0 ) { + $return .= "\n" . '-- Drop Ins' . "\n\n"; + + foreach ( $dropins as $plugin => $plugin_data ) { + $return .= str_pad( $plugin_data['Name'] . ': ', 26, ' ' ) . $plugin_data['Version'] . "\n"; + } + + $return = apply_filters( 'edd_sysinfo_after_wordpress_dropin_plugins', $return ); + } + + // Get plugins that have an update + $updates = get_plugin_updates(); + + // Must-use plugins + // NOTE: MU plugins can't show updates! + $muplugins = get_mu_plugins(); + if ( count( $muplugins ) > 0 ) { + $return .= "\n" . '-- Must-Use Plugins' . "\n\n"; + + foreach ( $muplugins as $plugin => $plugin_data ) { + $return .= str_pad( $plugin_data['Name'] . ': ', 26, ' ' ) . $plugin_data['Version'] . "\n"; + } + + $return = apply_filters( 'edd_sysinfo_after_wordpress_mu_plugins', $return ); + } + + // WordPress active plugins + $return .= "\n" . '-- WordPress Active Plugins' . "\n\n"; + + $plugins = get_plugins(); + $active_plugins = get_option( 'active_plugins', array() ); + + foreach ( $plugins as $plugin_path => $plugin ) { + if ( ! in_array( $plugin_path, $active_plugins ) ) { + continue; + } + + $update = ( array_key_exists( $plugin_path, $updates ) ) ? ' (needs update - ' . $updates[ $plugin_path ]->update->new_version . ')' : ''; + $plugin_url = ''; + if ( ! empty( $plugin['PluginURI'] ) ) { + $plugin_url = $plugin['PluginURI']; + } elseif ( ! empty( $plugin['AuthorURI'] ) ) { + $plugin_url = $plugin['AuthorURI']; + } elseif ( ! empty( $plugin['Author'] ) ) { + $plugin_url = $plugin['Author']; + } + if ( $plugin_url ) { + $plugin_url = "\n" . $plugin_url; + } + $return .= str_pad( $plugin['Name'] . ': ', 26, ' ' ) . $plugin['Version'] . $update . $plugin_url . "\n\n"; + } + + $return = apply_filters( 'edd_sysinfo_after_wordpress_plugins', $return ); + + // WordPress inactive plugins + $return .= "\n" . '-- WordPress Inactive Plugins' . "\n\n"; + + foreach ( $plugins as $plugin_path => $plugin ) { + if ( in_array( $plugin_path, $active_plugins ) ) { + continue; + } + + $update = ( array_key_exists( $plugin_path, $updates ) ) ? ' (needs update - ' . $updates[ $plugin_path ]->update->new_version . ')' : ''; + $plugin_url = ''; + if ( ! empty( $plugin['PluginURI'] ) ) { + $plugin_url = $plugin['PluginURI']; + } elseif ( ! empty( $plugin['AuthorURI'] ) ) { + $plugin_url = $plugin['AuthorURI']; + } elseif ( ! empty( $plugin['Author'] ) ) { + $plugin_url = $plugin['Author']; + } + if ( $plugin_url ) { + $plugin_url = "\n" . $plugin_url; + } + $return .= str_pad( $plugin['Name'] . ': ', 26, ' ' ) . $plugin['Version'] . $update . $plugin_url . "\n\n"; + } + + $return = apply_filters( 'edd_sysinfo_after_wordpress_plugins_inactive', $return ); + + if ( is_multisite() ) { + // WordPress Multisite active plugins + $return .= "\n" . '-- Network Active Plugins' . "\n\n"; + + $plugins = wp_get_active_network_plugins(); + $active_plugins = get_site_option( 'active_sitewide_plugins', array() ); + + foreach ( $plugins as $plugin_path ) { + $plugin_base = plugin_basename( $plugin_path ); + + if ( ! array_key_exists( $plugin_base, $active_plugins ) ) { + continue; + } + + $update = ( array_key_exists( $plugin_path, $updates ) ) ? ' (needs update - ' . $updates[ $plugin_path ]->update->new_version . ')' : ''; + $plugin = get_plugin_data( $plugin_path ); + $plugin_url = ''; + if ( ! empty( $plugin['PluginURI'] ) ) { + $plugin_url = $plugin['PluginURI']; + } elseif ( ! empty( $plugin['AuthorURI'] ) ) { + $plugin_url = $plugin['AuthorURI']; + } elseif ( ! empty( $plugin['Author'] ) ) { + $plugin_url = $plugin['Author']; + } + if ( $plugin_url ) { + $plugin_url = "\n" . $plugin_url; + } + $return .= str_pad( $plugin['Name'] . ': ', 26, ' ' ) . $plugin['Version'] . $update . $plugin_url . "\n\n"; + } + + $return = apply_filters( 'edd_sysinfo_after_wordpress_ms_plugins', $return ); + } + + // Server configuration (really just versioning) + $return .= "\n" . '-- Webserver Configuration' . "\n\n"; + $return .= 'PHP Version: ' . PHP_VERSION . "\n"; + $return .= 'MySQL Version: ' . $wpdb->db_version() . "\n"; + $return .= 'Webserver Info: ' . $_SERVER['SERVER_SOFTWARE'] . "\n"; + + $return = apply_filters( 'edd_sysinfo_after_webserver_config', $return ); + + // PHP configs... now we're getting to the important stuff + $return .= "\n" . '-- PHP Configuration' . "\n\n"; + $return .= 'Memory Limit: ' . ini_get( 'memory_limit' ) . "\n"; + $return .= 'Upload Max Size: ' . ini_get( 'upload_max_filesize' ) . "\n"; + $return .= 'Post Max Size: ' . ini_get( 'post_max_size' ) . "\n"; + $return .= 'Upload Max Filesize: ' . ini_get( 'upload_max_filesize' ) . "\n"; + $return .= 'Time Limit: ' . ini_get( 'max_execution_time' ) . "\n"; + $return .= 'Max Input Vars: ' . ini_get( 'max_input_vars' ) . "\n"; + $return .= 'Display Errors: ' . ( ini_get( 'display_errors' ) ? 'On (' . ini_get( 'display_errors' ) . ')' : 'N/A' ) . "\n"; + $return .= 'PHP Arg Separator: ' . edd_get_php_arg_separator_output() . "\n"; + + $return = apply_filters( 'edd_sysinfo_after_php_config', $return ); + + // PHP extensions and such + $return .= "\n" . '-- PHP Extensions' . "\n\n"; + $return .= 'cURL: ' . ( function_exists( 'curl_init' ) ? 'Supported' : 'Not Supported' ) . "\n"; + $return .= 'fsockopen: ' . ( function_exists( 'fsockopen' ) ? 'Supported' : 'Not Supported' ) . "\n"; + $return .= 'SOAP Client: ' . ( class_exists( 'SoapClient' ) ? 'Installed' : 'Not Installed' ) . "\n"; + $return .= 'Suhosin: ' . ( extension_loaded( 'suhosin' ) ? 'Installed' : 'Not Installed' ) . "\n"; + + $return = apply_filters( 'edd_sysinfo_after_php_ext', $return ); + + // Session stuff + $return .= "\n" . '-- Session Configuration' . "\n\n"; + $return .= 'EDD Use Sessions: ' . ( defined( 'EDD_USE_PHP_SESSIONS' ) && EDD_USE_PHP_SESSIONS ? 'Enforced' : ( EDD()->session->use_php_sessions() ? 'Enabled' : 'Disabled' ) ) . "\n"; + $return .= 'Session: ' . ( isset( $_SESSION ) ? 'Enabled' : 'Disabled' ) . "\n"; + + // The rest of this is only relevant is session is enabled + if ( isset( $_SESSION ) ) { + $return .= 'Session Name: ' . esc_html( ini_get( 'session.name' ) ) . "\n"; + $return .= 'Cookie Path: ' . esc_html( ini_get( 'session.cookie_path' ) ) . "\n"; + $return .= 'Save Path: ' . esc_html( ini_get( 'session.save_path' ) ) . "\n"; + $return .= 'Use Cookies: ' . ( ini_get( 'session.use_cookies' ) ? 'On' : 'Off' ) . "\n"; + $return .= 'Use Only Cookies: ' . ( ini_get( 'session.use_only_cookies' ) ? 'On' : 'Off' ) . "\n"; + } + + $return = apply_filters( 'edd_sysinfo_after_session_config', $return ); + + $return .= "\n" . '### End System Info ###'; + + return $return; +} + +/** + * Generates a System Info download file + * + * @deprecated 3.1.2 + * @since 2.0 + */ +function edd_tools_sysinfo_download() { + _edd_deprecated_function( __FUNCTION__, '3.1.2' ); + + if ( ! current_user_can( 'manage_shop_settings' ) ) { + return; + } + + check_admin_referer( 'edd_download_system_info', 'edd_system_info' ); + + nocache_headers(); + + header( 'Content-Type: text/plain' ); + header( 'Content-Disposition: attachment; filename="edd-system-info.txt"' ); + + echo wp_strip_all_tags( $_POST['edd-sysinfo'] ); + edd_die(); +} + /** * Process bulk edit actions via AJAX * @@ -292,6 +777,7 @@ function edd_add_extentions_link() { */ function edd_save_bulk_edit() { + _edd_deprecated_function( __FUNCTION__, '3.1.1.4' ); $post_ids = ! empty( $_POST['post_ids'] ) ? wp_parse_id_list( $_POST['post_ids'] ) : array(); @@ -314,3 +800,89 @@ function edd_save_bulk_edit() { die(); } + +/** + * Remove sale logs from refunded orders + * + * @deprecated 3.1.2 + * @since 2.4.3 + * @return void + */ +function edd_remove_refunded_sale_logs() { + _edd_deprecated_function( __FUNCTION__, '3.1.2' ); + + check_admin_referer( 'edd-upgrade' ); + if ( ! current_user_can( 'manage_shop_settings' ) ) { + wp_die( __( 'You do not have permission to do shop upgrades', 'easy-digital-downloads' ), __( 'Error', 'easy-digital-downloads' ), array( 'response' => 403 ) ); + } + + edd_set_time_limit(); + + $step = isset( $_GET['step'] ) ? absint( $_GET['step'] ) : 1; + $total = isset( $_GET['total'] ) ? absint( $_GET['total'] ) : edd_count_payments()->refunded; + + $refunds = edd_get_payments( array( + 'status' => 'refunded', + 'number' => 20, + 'page' => $step + ) ); + + if ( ! empty( $refunds ) ) { + $edd_logs = EDD()->debug_log; + // Refunded Payments found so process them + foreach ( $refunds as $refund ) { + + // Remove related sale log entries + $edd_logs->delete_logs( + null, + 'sale', + array( + array( + 'key' => '_edd_log_payment_id', + 'value' => $refund->ID + ) + ) + ); + } + + $step++; + $redirect = add_query_arg( array( + 'page' => 'edd-upgrades', + 'edd-upgrade' => 'remove_refunded_sale_logs', + 'step' => urlencode( $step ), + 'total' => urlencode( $total ), + '_wpnonce' => wp_create_nonce( 'edd-upgrade' ), + ), admin_url( 'index.php' ) ); + + edd_redirect( $redirect ); + + // No more refunded payments found, finish up + } else { + edd_set_upgrade_complete( 'remove_refunded_sale_logs' ); + delete_option( 'edd_doing_upgrade' ); + edd_redirect( admin_url() ); + } +} + +/** + * Sales Log View + * + * @deprecated 3.0 + * + * @since 1.4 + * @uses EDD_Sales_Log_Table::prepare_items() + * @uses EDD_Sales_Log_Table::display() + * @return void + */ +function edd_logs_view_sales() { + _edd_deprecated_function( __FUNCTION__, '3.0' ); + + // Setup or bail + if ( ! edd_logs_view_setup( 'sales' ) ) { + return; + } + + $logs_table = new EDD_Sales_Log_Table(); + + edd_logs_view_page( $logs_table, 'sales' ); +} diff --git a/wp-content/plugins/easy-digital-downloads/includes/admin/admin-pages.php b/wp-content/plugins/easy-digital-downloads/includes/admin/admin-pages.php index 14aa7570..6b45977b 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/admin/admin-pages.php +++ b/wp-content/plugins/easy-digital-downloads/includes/admin/admin-pages.php @@ -208,17 +208,17 @@ function edd_is_admin_page( $passed_page = '', $passed_view = '', $include_non_e switch ( $passed_view ) { case 'list-table': case 'new': - if ( ( 'download' === $typenow || 'download' === $post_type ) && $pagenow === 'edit-tags.php' && 'edit' !== $action && 'download_tax' === $taxonomy ) { + if ( ( 'download' === $typenow || 'download' === $post_type ) && $pagenow === 'edit-tags.php' && 'edit' !== $action && 'download_tag' === $taxonomy ) { $found = true; } break; case 'edit': - if ( ( 'download' === $typenow || 'download' === $post_type ) && $pagenow === 'edit-tags.php' && 'edit' === $action && 'download_tax' === $taxonomy ) { + if ( ( 'download' === $typenow || 'download' === $post_type ) && $pagenow === 'edit-tags.php' && 'edit' === $action && 'download_tag' === $taxonomy ) { $found = true; } break; default: - if ( ( 'download' === $typenow || 'download' === $post_type ) && $pagenow === 'edit-tags.php' && 'download_tax' === $taxonomy ) { + if ( ( 'download' === $typenow || 'download' === $post_type ) && $pagenow === 'edit-tags.php' && 'download_tag' === $taxonomy ) { $found = true; } break; diff --git a/wp-content/plugins/easy-digital-downloads/includes/admin/class-edd-notices.php b/wp-content/plugins/easy-digital-downloads/includes/admin/class-edd-notices.php index a0d2f5c4..7d83b987 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/admin/class-edd-notices.php +++ b/wp-content/plugins/easy-digital-downloads/includes/admin/class-edd-notices.php @@ -128,11 +128,6 @@ class EDD_Notices { */ public function add_notices() { - // User can edit pages - if ( current_user_can( 'edit_pages' ) ) { - $this->add_page_notices(); - } - // User can view shop reports if ( current_user_can( 'view_shop_reports' ) ) { $this->add_reports_notices(); @@ -140,9 +135,9 @@ class EDD_Notices { // User can manage the entire shop if ( current_user_can( 'manage_shop_settings' ) ) { - $this->add_system_notices(); $this->add_data_notices(); $this->add_settings_notices(); + $this->add_order_upgrade_notice(); } // Generic notices @@ -189,6 +184,10 @@ class EDD_Notices { * @since 2.6.0 bbPress (r6771) */ public function display_notices() { + $screen = get_current_screen(); + if ( 'site-health' === $screen->id ) { + return; + } $this->show_debugging_notice(); @@ -261,6 +260,7 @@ class EDD_Notices { * Notices about missing pages * * @since 3.0 + * @deprecated 3.1.2 */ private function add_page_notices() { @@ -289,6 +289,7 @@ class EDD_Notices { * Notices for the entire shop * * @since 3.0 + * @deprecated 3.1.2 */ private function add_system_notices() { @@ -419,41 +420,48 @@ class EDD_Notices { private function add_settings_notices() { // Settings area - if ( ! empty( $_GET['page'] ) && ( 'edd-settings' === $_GET['page'] ) ) { + if ( empty( $_GET['page'] ) || ( 'edd-settings' !== $_GET['page'] ) ) { + return; + } - // Settings updated - if ( ! empty( $_GET['settings-updated'] ) ) { - $this->add_notice( array( + // Settings updated + if ( ! empty( $_GET['settings-updated'] ) ) { + $this->add_notice( + array( 'id' => 'edd-notices', 'message' => __( 'Settings updated.', 'easy-digital-downloads' ) - ) ); - } - - // No payment gateways are enabled - if ( ! edd_get_option( 'gateways' ) && edd_is_test_mode() ) { - - // URL to fix this - $url = edd_get_admin_url( - array( - 'page' => 'edd-settings', - 'tab' => 'gateways', - ) - ); - - // Link - $link = '' . __( 'Fix this', 'easy-digital-downloads' ) . ''; - - // Add the notice - $this->add_notice( array( - 'id' => 'edd-gateways', - 'class' => 'error', - 'message' => sprintf( __( 'No payment gateways are enabled. %s.', 'easy-digital-downloads' ), $link ), - 'is_dismissible' => false - ) ); - } + ) + ); } } + /** + * Adds a notice if an order migration is running. + * This is only shown if the migration is running via UI by a different user or on another screen. + * + * @since 3.1.2 + * @return void + */ + private function add_order_upgrade_notice() { + if ( edd_has_upgrade_completed( 'migrate_orders' ) ) { + return; + } + if ( ! get_option( '_edd_v30_doing_order_migration', false ) ) { + return; + } + if ( get_option( 'edd_v30_cli_migration_running', false ) ) { + return; + } + $this->add_notice( + array( + 'id' => 'edd-v30-order-migration-running', + 'class' => 'updated', + 'message' => __( 'Easy Digital Downloads is migrating orders. Sales and earnings data for your store will be updated when all orders have been migrated.', 'easy-digital-downloads' ), + 'is_dismissible' => false, + ) + ); + } + /** * Notices about actions that the user has taken * diff --git a/wp-content/plugins/easy-digital-downloads/includes/admin/emails/email-summary/class-edd-email-summary-admin.php b/wp-content/plugins/easy-digital-downloads/includes/admin/emails/email-summary/class-edd-email-summary-admin.php index 153c3614..1381a8ba 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/admin/emails/email-summary/class-edd-email-summary-admin.php +++ b/wp-content/plugins/easy-digital-downloads/includes/admin/emails/email-summary/class-edd-email-summary-admin.php @@ -47,6 +47,16 @@ class EDD_Email_Summary_Admin { * @param array $data GET Request array. */ public function send_test_email_summary() { + + if ( ! current_user_can( 'manage_shop_settings' ) ) { + echo wp_json_encode( + array( + 'status' => 'error', + 'message' => __( 'You do not have permission to perform this action.', 'easy-digital-downloads' ), + ) + ); + } + add_action( 'wp_mail_failed', array( $this, 'mail_failed' ) ); $output = array( diff --git a/wp-content/plugins/easy-digital-downloads/includes/admin/import/class-batch-import-downloads.php b/wp-content/plugins/easy-digital-downloads/includes/admin/import/class-batch-import-downloads.php index 9ada6e25..c6281a41 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/admin/import/class-batch-import-downloads.php +++ b/wp-content/plugins/easy-digital-downloads/includes/admin/import/class-batch-import-downloads.php @@ -259,11 +259,12 @@ class EDD_Batch_Downloads_Import extends EDD_Batch_Import { */ public function get_percentage_complete() { - if( $this->total > 0 ) { + $percentage = 0; + if ( $this->total > 0 ) { $percentage = ( $this->step * $this->per_step / $this->total ) * 100; } - if( $percentage > 100 ) { + if ( $percentage > 100 ) { $percentage = 100; } @@ -368,7 +369,7 @@ class EDD_Batch_Downloads_Import extends EDD_Batch_Import { private function set_image( $download_id = 0, $image = '', $post_author = 0 ) { $is_url = false !== filter_var( $image, FILTER_VALIDATE_URL ); - $is_local = $is_url && false !== strpos( site_url(), $image ); + $is_local = $is_url && false !== strpos( $image, site_url() ); $ext = edd_get_file_extension( $image ); if( $is_url && $is_local ) { diff --git a/wp-content/plugins/easy-digital-downloads/includes/admin/import/class-batch-import-payments.php b/wp-content/plugins/easy-digital-downloads/includes/admin/import/class-batch-import-payments.php index 010d4afd..0ce839bf 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/admin/import/class-batch-import-payments.php +++ b/wp-content/plugins/easy-digital-downloads/includes/admin/import/class-batch-import-payments.php @@ -608,13 +608,14 @@ class EDD_Batch_Payments_Import extends EDD_Batch_Import { */ public function get_percentage_complete() { - $total = count( $this->csv ); + $percentage = 0; + $total = count( $this->csv ); - if( $total > 0 ) { + if ( $total > 0 ) { $percentage = ( $this->step * $this->per_step / $total ) * 100; } - if( $percentage > 100 ) { + if ( $percentage > 100 ) { $percentage = 100; } diff --git a/wp-content/plugins/easy-digital-downloads/includes/admin/import/class-batch-import.php b/wp-content/plugins/easy-digital-downloads/includes/admin/import/class-batch-import.php index 8e072926..2f61acbc 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/admin/import/class-batch-import.php +++ b/wp-content/plugins/easy-digital-downloads/includes/admin/import/class-batch-import.php @@ -85,13 +85,23 @@ class EDD_Batch_Import { */ public function __construct( $_file = '', $_step = 1 ) { - $this->step = $_step; - $this->file = $_file; - $this->done = false; - $this->csv = $this->get_csv_file( $this->file ); + $this->step = $_step; + $this->done = false; + if ( ! empty( $_file ) ) { + $this->set_up_csv( $_file ); + } + } + + /** + * Sets up the CSV file for importing. + * + * @param [type] $file + * @return void + */ + public function set_up_csv( $file ) { + $this->csv = $this->get_csv_file( $file ); $this->total = count( $this->csv ); $this->init(); - } /** @@ -121,7 +131,8 @@ class EDD_Batch_Import { * @return array */ public function get_csv_file( $file ) { - $csv = array_map( 'str_getcsv', file( $this->file ) ); + $this->file = $file; + $csv = array_map( 'str_getcsv', file( $file ) ); array_walk( $csv, function ( &$a ) use ( $csv ) { diff --git a/wp-content/plugins/easy-digital-downloads/includes/admin/import/import-functions.php b/wp-content/plugins/easy-digital-downloads/includes/admin/import/import-functions.php index 94d7cd4a..0cd78a22 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/admin/import/import-functions.php +++ b/wp-content/plugins/easy-digital-downloads/includes/admin/import/import-functions.php @@ -21,21 +21,36 @@ defined( 'ABSPATH' ) || exit; */ function edd_do_ajax_import_file_upload() { + if ( ! wp_verify_nonce( $_REQUEST['edd_ajax_import'], 'edd_ajax_import' ) ) { + wp_send_json_error( array( 'error' => __( 'Nonce verification failed', 'easy-digital-downloads' ) ) ); + } + + if ( empty( $_POST['edd-import-class'] ) ) { + wp_send_json_error( array( 'error' => __( 'Missing import parameters. Import class must be specified.', 'easy-digital-downloads' ), 'request' => $_REQUEST ) ); + } + if ( ! function_exists( 'wp_handle_upload' ) ) { - require_once( ABSPATH . 'wp-admin/includes/file.php' ); + require_once ABSPATH . 'wp-admin/includes/file.php'; } require_once EDD_PLUGIN_DIR . 'includes/admin/import/class-batch-import.php'; - if( ! wp_verify_nonce( $_REQUEST['edd_ajax_import'], 'edd_ajax_import' ) ) { - wp_send_json_error( array( 'error' => __( 'Nonce verification failed', 'easy-digital-downloads' ) ) ); + $importer_class = sanitize_text_field( $_POST['edd-import-class'] ); + $is_class_allowed = edd_importer_is_class_allowed( $importer_class ); + if ( false === $is_class_allowed ) { + wp_send_json_error( array( 'error' => __( 'Invalid importer class supplied', 'easy-digital-downloads' ) ) ); } - if( empty( $_POST['edd-import-class'] ) ) { - wp_send_json_error( array( 'error' => __( 'Missing import parameters. Import class must be specified.', 'easy-digital-downloads' ), 'request' => $_REQUEST ) ); + do_action( 'edd_batch_import_class_include', $importer_class ); + + $import = new $importer_class(); + + // The import class checks for the user's capability. + if ( ! $import->can_import() ) { + wp_send_json_error( array( 'error' => __( 'You do not have permission to import data', 'easy-digital-downloads' ) ) ); } - if( empty( $_FILES['edd-import-file'] ) ) { + if ( empty( $_FILES['edd-import-file'] ) ) { wp_send_json_error( array( 'error' => __( 'Missing import file. Please provide an import file.', 'easy-digital-downloads' ), 'request' => $_REQUEST ) ); } @@ -43,7 +58,7 @@ function edd_do_ajax_import_file_upload() { wp_send_json_error( array( 'error' => __( 'The file you uploaded does not appear to be a CSV file.', 'easy-digital-downloads' ), 'request' => $_REQUEST ) ); } - if( ! file_exists( $_FILES['edd-import-file']['tmp_name'] ) ) { + if ( ! file_exists( $_FILES['edd-import-file']['tmp_name'] ) ) { wp_send_json_error( array( 'error' => __( 'Something went wrong during the upload process, please try again.', 'easy-digital-downloads' ), 'request' => $_REQUEST ) ); } @@ -52,20 +67,7 @@ function edd_do_ajax_import_file_upload() { if ( $import_file && empty( $import_file['error'] ) ) { - $importer_class = sanitize_text_field( $_POST['edd-import-class'] ); - $is_class_allowed = edd_importer_is_class_allowed( $importer_class ); - if ( false === $is_class_allowed ) { - wp_send_json_error( array( 'error' => __( 'Invalid importer class supplied', 'easy-digital-downloads' ) ) ); - } - - do_action( 'edd_batch_import_class_include', $importer_class ); - - $import = new $importer_class( $import_file['file'] ); - - if( ! $import->can_import() ) { - wp_send_json_error( array( 'error' => __( 'You do not have permission to import data', 'easy-digital-downloads' ) ) ); - } - + $import->set_up_csv( $import_file['file'] ); wp_send_json_success( array( 'form' => $_POST, 'class' => $importer_class, @@ -104,11 +106,11 @@ function edd_do_ajax_import() { wp_send_json_error( array( 'error' => __( 'Nonce verification failed', 'easy-digital-downloads' ), 'request' => $_REQUEST ) ); } - if( empty( $_REQUEST['class'] ) ) { + if ( empty( $_REQUEST['class'] ) ) { wp_send_json_error( array( 'error' => __( 'Missing import parameters. Import class must be specified.', 'easy-digital-downloads' ), 'request' => $_REQUEST ) ); } - if( ! file_exists( $_REQUEST['upload']['file'] ) ) { + if ( ! file_exists( $_REQUEST['upload']['file'] ) ) { wp_send_json_error( array( 'error' => __( 'Something went wrong during the upload process, please try again.', 'easy-digital-downloads' ), 'request' => $_REQUEST ) ); } @@ -140,13 +142,12 @@ function edd_do_ajax_import() { $step = absint( $_REQUEST['step'] ); $class = $importer_class; - $import = new $class( $file, $step ); - - if( ! $import->can_import() ) { + $import = new $class( '', $step ); + if ( ! $import->can_import() ) { wp_send_json_error( array( 'error' => __( 'You do not have permission to import data', 'easy-digital-downloads' ) ) ); - } + $import->set_up_csv( $file ); parse_str( $_REQUEST['mapping'], $map ); diff --git a/wp-content/plugins/easy-digital-downloads/includes/admin/settings/register-settings.php b/wp-content/plugins/easy-digital-downloads/includes/admin/settings/register-settings.php index ed76fdad..38b3edb7 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/admin/settings/register-settings.php +++ b/wp-content/plugins/easy-digital-downloads/includes/admin/settings/register-settings.php @@ -563,7 +563,7 @@ function edd_get_registered_settings() { 'default_gateway' => array( 'id' => 'default_gateway', 'name' => __( 'Default Gateway', 'easy-digital-downloads' ), - 'desc' => __( 'Automatically select this gateway on checkout pages.
    If empty, the first active gateway is selected instead.', 'easy-digital-downloads' ), + 'desc' => __( 'Choose the gateway your checkout will use by default.
    If you choose Automatic, the first enabled gateway from the Active Gateways will be used.', 'easy-digital-downloads' ), 'type' => 'gateway_select', 'options' => $gateways, ), @@ -2151,11 +2151,37 @@ function edd_gateways_callback( $args ) { $html .= '
  • '; $html .= ''; $html .= '
  • '; } @@ -2170,7 +2196,7 @@ function edd_gateways_callback( $args ) { ) ); - $html .= '

    ' . esc_html__( 'These gateways will be offered at checkout.', 'easy-digital-downloads' ) . '
    ' . sprintf( __( 'More Payment Gateways are available.', 'easy-digital-downloads' ), $url ) . '

    '; + $html .= '

    ' . esc_html__( 'Choose how you want to allow your customers to pay you.', 'easy-digital-downloads' ) . '
    ' . sprintf( __( 'More Payment Gateways are available.', 'easy-digital-downloads' ), $url ) . '

    '; } echo apply_filters( 'edd_after_setting_output', $html, $args ); @@ -2199,7 +2225,7 @@ function edd_gateway_select_callback( $args ) { } $html = '

    - +

    - +

    - +

    @@ -1252,484 +1263,6 @@ function edd_handle_submit_debug_log() { } add_action( 'edd_submit_debug_log', 'edd_handle_submit_debug_log' ); -/** - * Display the system info tab - * - * @since 2.0 - */ -function edd_tools_sysinfo_display() { - if ( ! current_user_can( 'manage_shop_settings' ) ) { - return; - } - - ?> - -

    -

    -
    -

    - -

    - -
    - - -

    - - "this.form['edd-sysinfo'].focus();this.form['edd-sysinfo'].select();document.execCommand('copy');return false;" ) ); - ?> -

    -
    -
    -
    - - Name . ' ' . $theme_data->Version; - $parent_theme = $theme_data->Template; - if ( ! empty( $parent_theme ) ) { - $parent_theme_data = wp_get_theme( $parent_theme ); - $parent_theme = $parent_theme_data->Name . ' ' . $parent_theme_data->Version; - } - - // Try to identify the hosting provider - $host = edd_get_host(); - - $return = '### Begin System Info (Generated ' . date( 'Y-m-d H:i:s' ) . ') ###' . "\n\n"; - - // Start with the basics... - $return .= '-- Site Info' . "\n\n"; - $return .= 'Site URL: ' . site_url() . "\n"; - $return .= 'Home URL: ' . home_url() . "\n"; - $return .= 'Multisite: ' . ( is_multisite() ? 'Yes' : 'No' ) . "\n"; - - $return = apply_filters( 'edd_sysinfo_after_site_info', $return ); - - // Can we determine the site's host? - if ( $host ) { - $return .= "\n" . '-- Hosting Provider' . "\n\n"; - $return .= 'Host: ' . $host . "\n"; - - $return = apply_filters( 'edd_sysinfo_after_host_info', $return ); - } - - // The local users' browser information, handled by the Browser class - $return .= "\n" . '-- User Browser' . "\n\n"; - $return .= $browser; - - $return = apply_filters( 'edd_sysinfo_after_user_browser', $return ); - - $locale = get_locale(); - - // WordPress configuration - $return .= "\n" . '-- WordPress Configuration' . "\n\n"; - $return .= 'Version: ' . get_bloginfo( 'version' ) . "\n"; - $return .= 'Language: ' . ( ! empty( $locale ) ? $locale : 'en_US' ) . "\n"; - $return .= 'Permalink Structure: ' . ( get_option( 'permalink_structure' ) ? get_option( 'permalink_structure' ) : 'Default' ) . "\n"; - $return .= 'Active Theme: ' . $theme . "\n"; - $return .= 'WP Timezone: ' . wp_timezone_string() . "\n"; - $return .= 'EDD Timezone: ' . edd_get_timezone_abbr() . "\n"; - if ( $parent_theme !== $theme ) { - $return .= 'Parent Theme: ' . $parent_theme . "\n"; - } - - $customized_template_files = edd_get_theme_edd_templates(); - $return .= "\n" . '-- Customized Templates' . "\n\n"; - if ( empty( $customized_template_files ) ) { - $return .= 'No custom templates found.' . "\n\n"; - } else { - foreach ( $customized_template_files as $customized_template_file ) { - $return .= $customized_template_file . "\n"; - } - } - - $return .= "\n"; - - $return = apply_filters( 'edd_sysinfo_after_customized_templates', $return ); - - $return .= 'Show On Front: ' . get_option( 'show_on_front' ) . "\n"; - - // Only show page specs if frontpage is set to 'page' - if ( get_option( 'show_on_front' ) == 'page' ) { - $front_page_id = get_option( 'page_on_front' ); - $blog_page_id = get_option( 'page_for_posts' ); - - $return .= 'Page On Front: ' . ( $front_page_id != 0 ? '#' . $front_page_id : 'Unset' ) . "\n"; - $return .= 'Page For Posts: ' . ( $blog_page_id != 0 ? '#' . $blog_page_id : 'Unset' ) . "\n"; - } - - $return .= 'ABSPATH: ' . ABSPATH . "\n"; - - // Make sure wp_remote_post() is working - $request['cmd'] = '_notify-validate'; - - $params = array( - 'sslverify' => false, - 'timeout' => 60, - 'user-agent' => 'EDD/' . EDD_VERSION, - 'body' => $request, - ); - - $response = wp_remote_post( 'https://www.paypal.com/cgi-bin/webscr', $params ); - - if ( ! is_wp_error( $response ) && $response['response']['code'] >= 200 && $response['response']['code'] < 300 ) { - $WP_REMOTE_POST = 'wp_remote_post() works'; - } else { - $WP_REMOTE_POST = 'wp_remote_post() does not work'; - } - - $return .= 'Remote Post: ' . $WP_REMOTE_POST . "\n"; - $return .= 'Table Prefix: ' . 'Length: ' . strlen( $wpdb->prefix ) . ' Status: ' . ( strlen( $wpdb->prefix ) > 16 ? 'ERROR: Too long' : 'Acceptable' ) . "\n"; - // Commented out per https://github.com/easydigitaldownloads/Easy-Digital-Downloads/issues/3475 - //$return .= 'Admin AJAX: ' . ( edd_test_ajax_works() ? 'Accessible' : 'Inaccessible' ) . "\n"; - $return .= 'WP_DEBUG: ' . ( defined( 'WP_DEBUG' ) ? WP_DEBUG ? 'Enabled' : 'Disabled' : 'Not set' ) . "\n"; - $return .= 'Memory Limit: ' . WP_MEMORY_LIMIT . "\n"; - $return .= 'Registered Post Stati: ' . implode( ', ', get_post_stati() ) . "\n"; - - $return = apply_filters( 'edd_sysinfo_after_wordpress_config', $return ); - - // EDD configuration - $return .= "\n" . '-- EDD Configuration' . "\n\n"; - $return .= 'Version: ' . EDD_VERSION . "\n"; - $return .= 'Activated On: ' . edd_date_i18n( edd_get_activation_date(), 'Y-m-d' ) . "\n"; - $return .= 'Upgraded From: ' . get_option( 'edd_version_upgraded_from', 'None' ) . "\n"; - $return .= 'EDD (Pro) Status: ' . ( edd_is_pro() ? "Enabled\n" : "Disabled\n" ); - $return .= 'EDD (Pro) Activated On: ' . ( get_option( 'edd_pro_activation_date' ) ? edd_date_i18n( get_option( 'edd_pro_activation_date' ), 'Y-m-d' ) . "\n" : "N/A\n" ); - $return .= 'EDD Pass Status: ' . ( EDD\Admin\Pass_Manager::isPro() ? "Valid Pass\n" : "Missing\n" ); - $return .= 'Test Mode: ' . ( edd_is_test_mode() ? "Enabled\n" : "Disabled\n" ); - $return .= 'AJAX: ' . ( ! edd_is_ajax_disabled() ? "Enabled\n" : "Disabled\n" ); - $return .= 'Guest Checkout: ' . ( edd_no_guest_checkout() ? "Disabled\n" : "Enabled\n" ); - $return .= 'Symlinks: ' . ( apply_filters( 'edd_symlink_file_downloads', edd_get_option( 'symlink_file_downloads', false ) ) && function_exists( 'symlink' ) ? "Enabled\n" : "Disabled\n" ); - $return .= 'Download Method: ' . ucfirst( edd_get_file_download_method() ) . "\n"; - $return .= 'Currency Code: ' . edd_get_currency() . "\n"; - $return .= 'Currency Position: ' . edd_get_option( 'currency_position', 'before' ) . "\n"; - $return .= 'Decimal Separator: ' . edd_get_option( 'decimal_separator', '.' ) . "\n"; - $return .= 'Thousands Separator: ' . edd_get_option( 'thousands_separator', ',' ) . "\n"; - $return .= 'Upgrades Completed: ' . implode( ',', edd_get_completed_upgrades() ) . "\n"; - $return .= 'Download Link Expiration: ' . edd_get_option( 'download_link_expiration' ) . " hour(s)\n"; - - $return = apply_filters( 'edd_sysinfo_after_edd_config', $return ); - - // EDD Database tables - $return .= "\n" . '-- EDD Database Tables' . "\n\n"; - - foreach ( EDD()->components as $component ) { - - // Object - $thing = $component->get_interface( 'table' ); - if ( ! empty( $thing ) ) { - $return .= str_pad( $thing->name . ': ', 32, ' ' ) . $thing->get_version() . "\n"; - } - - // Meta - $thing = $component->get_interface( 'meta' ); - if ( ! empty( $thing ) ) { - $return .= str_pad( $thing->name . ': ', 32, ' ' ) . $thing->get_version() . "\n"; - } - } - - $return = apply_filters( 'edd_sysinfo_after_edd_database_tables', $return ); - - // EDD Database tables - $return .= "\n" . '-- EDD Database Row Counts' . "\n\n"; - - foreach ( EDD()->components as $component ) { - - // Object - $thing = $component->get_interface( 'table' ); - if ( ! empty( $thing ) ) { - $return .= str_pad( $thing->name . ': ', 32, ' ' ) . $thing->count() . "\n"; - } - - // Meta - $thing = $component->get_interface( 'meta' ); - if ( ! empty( $thing ) ) { - $return .= str_pad( $thing->name . ': ', 32, ' ' ) . $thing->count() . "\n"; - } - } - - $return = apply_filters( 'edd_sysinfo_after_edd_database_row_counts', $return ); - - // EDD pages - $purchase_page = edd_get_option( 'purchase_page', '' ); - $success_page = edd_get_option( 'success_page', '' ); - $failure_page = edd_get_option( 'failure_page', '' ); - - $return .= "\n" . '-- EDD Page Configuration' . "\n\n"; - $return .= 'Checkout: ' . ( ! empty( $purchase_page ) ? "Valid\n" : "Invalid\n" ); - $return .= 'Checkout Page: ' . ( ! empty( $purchase_page ) ? get_permalink( $purchase_page ) . "\n" : "Unset\n" ); - $return .= 'Success Page: ' . ( ! empty( $success_page ) ? get_permalink( $success_page ) . "\n" : "Unset\n" ); - $return .= 'Failure Page: ' . ( ! empty( $failure_page ) ? get_permalink( $failure_page ) . "\n" : "Unset\n" ); - $return .= 'Downloads Slug: ' . ( defined( 'EDD_SLUG' ) ? '/' . EDD_SLUG . "\n" : "/downloads\n" ); - - $return = apply_filters( 'edd_sysinfo_after_edd_pages', $return ); - - // EDD gateways - $return .= "\n" . '-- EDD Gateway Configuration' . "\n\n"; - - $active_gateways = edd_get_enabled_payment_gateways(); - if ( $active_gateways ) { - $default_gateway_is_active = edd_is_gateway_active( edd_get_default_gateway() ); - if ( $default_gateway_is_active ) { - $default_gateway = edd_get_default_gateway(); - $default_gateway = $active_gateways[ $default_gateway ]['admin_label']; - } else { - $default_gateway = 'Test Payment'; - } - - $gateways = array(); - foreach ( $active_gateways as $gateway ) { - $gateways[] = $gateway['admin_label']; - } - - $return .= 'Enabled Gateways: ' . implode( ', ', $gateways ) . "\n"; - $return .= 'Default Gateway: ' . $default_gateway . "\n"; - } else { - $return .= 'Enabled Gateways: None' . "\n"; - } - - $return = apply_filters( 'edd_sysinfo_after_edd_gateways', $return ); - - - // EDD Taxes - $return .= "\n" . '-- EDD Tax Configuration' . "\n\n"; - $return .= 'Taxes: ' . ( edd_use_taxes() ? "Enabled\n" : "Disabled\n" ); - $return .= 'Default Rate: ' . edd_get_formatted_tax_rate() . "\n"; - $return .= 'Display On Checkout: ' . ( edd_get_option( 'checkout_include_tax', false ) ? "Displayed\n" : "Not Displayed\n" ); - $return .= 'Prices Include Tax: ' . ( edd_prices_include_tax() ? "Yes\n" : "No\n" ); - - $rates = edd_get_tax_rates(); - if ( ! empty( $rates ) ) { - $return .= 'Country / State Rates: ' . "\n"; - foreach ( $rates as $rate ) { - $return .= ' Country: ' . $rate['country'] . ', State: ' . $rate['state'] . ', Rate: ' . $rate['rate'] . "\n"; - } - } - - $return = apply_filters( 'edd_sysinfo_after_edd_taxes', $return ); - - // EDD Templates - $dir = get_stylesheet_directory() . '/edd_templates/*'; - if ( is_dir( $dir ) && ( count( glob( "$dir/*" ) ) !== 0 ) ) { - $return .= "\n" . '-- EDD Template Overrides' . "\n\n"; - - foreach ( glob( $dir ) as $file ) { - $return .= 'Filename: ' . basename( $file ) . "\n"; - } - - $return = apply_filters( 'edd_sysinfo_after_edd_templates', $return ); - } - - // Drop Ins - $dropins = get_dropins(); - if ( count( $dropins ) > 0 ) { - $return .= "\n" . '-- Drop Ins' . "\n\n"; - - foreach ( $dropins as $plugin => $plugin_data ) { - $return .= str_pad( $plugin_data['Name'] . ': ', 26, ' ' ) . $plugin_data['Version'] . "\n"; - } - - $return = apply_filters( 'edd_sysinfo_after_wordpress_dropin_plugins', $return ); - } - - // Get plugins that have an update - $updates = get_plugin_updates(); - - // Must-use plugins - // NOTE: MU plugins can't show updates! - $muplugins = get_mu_plugins(); - if ( count( $muplugins ) > 0 ) { - $return .= "\n" . '-- Must-Use Plugins' . "\n\n"; - - foreach ( $muplugins as $plugin => $plugin_data ) { - $return .= str_pad( $plugin_data['Name'] . ': ', 26, ' ' ) . $plugin_data['Version'] . "\n"; - } - - $return = apply_filters( 'edd_sysinfo_after_wordpress_mu_plugins', $return ); - } - - // WordPress active plugins - $return .= "\n" . '-- WordPress Active Plugins' . "\n\n"; - - $plugins = get_plugins(); - $active_plugins = get_option( 'active_plugins', array() ); - - foreach ( $plugins as $plugin_path => $plugin ) { - if ( ! in_array( $plugin_path, $active_plugins ) ) { - continue; - } - - $update = ( array_key_exists( $plugin_path, $updates ) ) ? ' (needs update - ' . $updates[ $plugin_path ]->update->new_version . ')' : ''; - $plugin_url = ''; - if ( ! empty( $plugin['PluginURI'] ) ) { - $plugin_url = $plugin['PluginURI']; - } elseif ( ! empty( $plugin['AuthorURI'] ) ) { - $plugin_url = $plugin['AuthorURI']; - } elseif ( ! empty( $plugin['Author'] ) ) { - $plugin_url = $plugin['Author']; - } - if ( $plugin_url ) { - $plugin_url = "\n" . $plugin_url; - } - $return .= str_pad( $plugin['Name'] . ': ', 26, ' ' ) . $plugin['Version'] . $update . $plugin_url . "\n\n"; - } - - $return = apply_filters( 'edd_sysinfo_after_wordpress_plugins', $return ); - - // WordPress inactive plugins - $return .= "\n" . '-- WordPress Inactive Plugins' . "\n\n"; - - foreach ( $plugins as $plugin_path => $plugin ) { - if ( in_array( $plugin_path, $active_plugins ) ) { - continue; - } - - $update = ( array_key_exists( $plugin_path, $updates ) ) ? ' (needs update - ' . $updates[ $plugin_path ]->update->new_version . ')' : ''; - $plugin_url = ''; - if ( ! empty( $plugin['PluginURI'] ) ) { - $plugin_url = $plugin['PluginURI']; - } elseif ( ! empty( $plugin['AuthorURI'] ) ) { - $plugin_url = $plugin['AuthorURI']; - } elseif ( ! empty( $plugin['Author'] ) ) { - $plugin_url = $plugin['Author']; - } - if ( $plugin_url ) { - $plugin_url = "\n" . $plugin_url; - } - $return .= str_pad( $plugin['Name'] . ': ', 26, ' ' ) . $plugin['Version'] . $update . $plugin_url . "\n\n"; - } - - $return = apply_filters( 'edd_sysinfo_after_wordpress_plugins_inactive', $return ); - - if ( is_multisite() ) { - // WordPress Multisite active plugins - $return .= "\n" . '-- Network Active Plugins' . "\n\n"; - - $plugins = wp_get_active_network_plugins(); - $active_plugins = get_site_option( 'active_sitewide_plugins', array() ); - - foreach ( $plugins as $plugin_path ) { - $plugin_base = plugin_basename( $plugin_path ); - - if ( ! array_key_exists( $plugin_base, $active_plugins ) ) { - continue; - } - - $update = ( array_key_exists( $plugin_path, $updates ) ) ? ' (needs update - ' . $updates[ $plugin_path ]->update->new_version . ')' : ''; - $plugin = get_plugin_data( $plugin_path ); - $plugin_url = ''; - if ( ! empty( $plugin['PluginURI'] ) ) { - $plugin_url = $plugin['PluginURI']; - } elseif ( ! empty( $plugin['AuthorURI'] ) ) { - $plugin_url = $plugin['AuthorURI']; - } elseif ( ! empty( $plugin['Author'] ) ) { - $plugin_url = $plugin['Author']; - } - if ( $plugin_url ) { - $plugin_url = "\n" . $plugin_url; - } - $return .= str_pad( $plugin['Name'] . ': ', 26, ' ' ) . $plugin['Version'] . $update . $plugin_url . "\n\n"; - } - - $return = apply_filters( 'edd_sysinfo_after_wordpress_ms_plugins', $return ); - } - - // Server configuration (really just versioning) - $return .= "\n" . '-- Webserver Configuration' . "\n\n"; - $return .= 'PHP Version: ' . PHP_VERSION . "\n"; - $return .= 'MySQL Version: ' . $wpdb->db_version() . "\n"; - $return .= 'Webserver Info: ' . $_SERVER['SERVER_SOFTWARE'] . "\n"; - - $return = apply_filters( 'edd_sysinfo_after_webserver_config', $return ); - - // PHP configs... now we're getting to the important stuff - $return .= "\n" . '-- PHP Configuration' . "\n\n"; - $return .= 'Memory Limit: ' . ini_get( 'memory_limit' ) . "\n"; - $return .= 'Upload Max Size: ' . ini_get( 'upload_max_filesize' ) . "\n"; - $return .= 'Post Max Size: ' . ini_get( 'post_max_size' ) . "\n"; - $return .= 'Upload Max Filesize: ' . ini_get( 'upload_max_filesize' ) . "\n"; - $return .= 'Time Limit: ' . ini_get( 'max_execution_time' ) . "\n"; - $return .= 'Max Input Vars: ' . ini_get( 'max_input_vars' ) . "\n"; - $return .= 'Display Errors: ' . ( ini_get( 'display_errors' ) ? 'On (' . ini_get( 'display_errors' ) . ')' : 'N/A' ) . "\n"; - $return .= 'PHP Arg Separator: ' . edd_get_php_arg_separator_output() . "\n"; - - $return = apply_filters( 'edd_sysinfo_after_php_config', $return ); - - // PHP extensions and such - $return .= "\n" . '-- PHP Extensions' . "\n\n"; - $return .= 'cURL: ' . ( function_exists( 'curl_init' ) ? 'Supported' : 'Not Supported' ) . "\n"; - $return .= 'fsockopen: ' . ( function_exists( 'fsockopen' ) ? 'Supported' : 'Not Supported' ) . "\n"; - $return .= 'SOAP Client: ' . ( class_exists( 'SoapClient' ) ? 'Installed' : 'Not Installed' ) . "\n"; - $return .= 'Suhosin: ' . ( extension_loaded( 'suhosin' ) ? 'Installed' : 'Not Installed' ) . "\n"; - - $return = apply_filters( 'edd_sysinfo_after_php_ext', $return ); - - // Session stuff - $return .= "\n" . '-- Session Configuration' . "\n\n"; - $return .= 'EDD Use Sessions: ' . ( defined( 'EDD_USE_PHP_SESSIONS' ) && EDD_USE_PHP_SESSIONS ? 'Enforced' : ( EDD()->session->use_php_sessions() ? 'Enabled' : 'Disabled' ) ) . "\n"; - $return .= 'Session: ' . ( isset( $_SESSION ) ? 'Enabled' : 'Disabled' ) . "\n"; - - // The rest of this is only relevant is session is enabled - if ( isset( $_SESSION ) ) { - $return .= 'Session Name: ' . esc_html( ini_get( 'session.name' ) ) . "\n"; - $return .= 'Cookie Path: ' . esc_html( ini_get( 'session.cookie_path' ) ) . "\n"; - $return .= 'Save Path: ' . esc_html( ini_get( 'session.save_path' ) ) . "\n"; - $return .= 'Use Cookies: ' . ( ini_get( 'session.use_cookies' ) ? 'On' : 'Off' ) . "\n"; - $return .= 'Use Only Cookies: ' . ( ini_get( 'session.use_only_cookies' ) ? 'On' : 'Off' ) . "\n"; - } - - $return = apply_filters( 'edd_sysinfo_after_session_config', $return ); - - $return .= "\n" . '### End System Info ###'; - - return $return; -} - -/** - * Generates a System Info download file - * - * @since 2.0 - */ -function edd_tools_sysinfo_download() { - if ( ! current_user_can( 'manage_shop_settings' ) ) { - return; - } - check_admin_referer( 'edd_download_system_info', 'edd_system_info' ); - - nocache_headers(); - - header( 'Content-Type: text/plain' ); - header( 'Content-Disposition: attachment; filename="edd-system-info.txt"' ); - - echo wp_strip_all_tags( $_POST['edd-sysinfo'] ); - edd_die(); -} -add_action( 'edd_download_sysinfo', 'edd_tools_sysinfo_download' ); - /** * Redirects requests to the old sales log to the orders page. * diff --git a/wp-content/plugins/easy-digital-downloads/includes/admin/tools/class-edd-tools-reset-stats.php b/wp-content/plugins/easy-digital-downloads/includes/admin/tools/class-edd-tools-reset-stats.php index 81512ef1..93e94316 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/admin/tools/class-edd-tools-reset-stats.php +++ b/wp-content/plugins/easy-digital-downloads/includes/admin/tools/class-edd-tools-reset-stats.php @@ -138,6 +138,7 @@ class EDD_Tools_Reset_Stats extends EDD_Batch_Export { // Reset the sequential order numbers if ( edd_get_option( 'enable_sequential' ) ) { delete_option( 'edd_last_payment_number' ); + delete_option( 'edd_next_order_number' ); } $this->done = true; diff --git a/wp-content/plugins/easy-digital-downloads/includes/admin/tools/logs.php b/wp-content/plugins/easy-digital-downloads/includes/admin/tools/logs.php index 4beb35f2..e32c2a40 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/admin/tools/logs.php +++ b/wp-content/plugins/easy-digital-downloads/includes/admin/tools/logs.php @@ -85,29 +85,6 @@ function edd_logs_view_page( $logs_table, $tag = '' ) { /** Views *********************************************************************/ -/** - * Sales Log View - * - * @deprecated 3.0 - * - * @since 1.4 - * @uses EDD_Sales_Log_Table::prepare_items() - * @uses EDD_Sales_Log_Table::display() - * @return void - */ -function edd_logs_view_sales() { - - // Setup or bail - if ( ! edd_logs_view_setup( 'sales' ) ) { - return; - } - - $logs_table = new EDD_Sales_Log_Table(); - - edd_logs_view_page( $logs_table, 'sales' ); -} -add_action( 'edd_logs_view_sales', 'edd_logs_view_sales' ); - /** * File Download Logs * diff --git a/wp-content/plugins/easy-digital-downloads/includes/admin/upgrades/deprecated-upgrade-functions.php b/wp-content/plugins/easy-digital-downloads/includes/admin/upgrades/deprecated-upgrade-functions.php new file mode 100644 index 00000000..2b846620 --- /dev/null +++ b/wp-content/plugins/easy-digital-downloads/includes/admin/upgrades/deprecated-upgrade-functions.php @@ -0,0 +1,911 @@ +=' ) ) { + return; + } + + edd_set_time_limit(); + + $query = new WP_Query( array( + 'post_type' => 'download', + 'posts_per_page' => -1, + 'post_status' => 'publish' + ) ); + $downloads = $query->get_posts(); + + if ( $downloads ) { + $edd_log = new EDD_Logging(); + foreach ( $downloads as $download ) { + // Convert sale logs + $sale_logs = edd_get_download_sales_log( $download->ID, false ); + + if ( $sale_logs ) { + foreach ( $sale_logs['sales'] as $sale ) { + $log_data = array( + 'post_parent' => $download->ID, + 'post_date' => $sale['date'], + 'log_type' => 'sale' + ); + + $log_meta = array( + 'payment_id'=> $sale['payment_id'] + ); + + $log = $edd_log->insert_log( $log_data, $log_meta ); + } + } + + // Convert file download logs + $file_logs = edd_get_file_download_log( $download->ID, false ); + + if ( $file_logs ) { + foreach ( $file_logs['downloads'] as $log ) { + $log_data = array( + 'post_parent' => $download->ID, + 'post_date' => $log['date'], + 'log_type' => 'file_download' + + ); + + $log_meta = array( + 'user_info' => $log['user_info'], + 'file_id' => $log['file_id'], + 'ip' => $log['ip'] + ); + + $log = $edd_log->insert_log( $log_data, $log_meta ); + } + } + } + } + add_option( 'edd_logs_upgraded', '1' ); +} + +/** + * Upgrade routine for v1.3.0 + * + * @since 1.3.0 + * @deprecated 3.1.2 + * @return void + */ +function edd_v134_upgrades() { + $general_options = get_option( 'edd_settings_general' ); + + // Settings already updated + if ( isset( $general_options['failure_page'] ) ) { + return; + } + + // Failed Purchase Page + $failed = wp_insert_post( + array( + 'post_title' => __( 'Transaction Failed', 'easy-digital-downloads' ), + 'post_content' => __( 'Your transaction failed, please try again or contact site support.', 'easy-digital-downloads' ), + 'post_status' => 'publish', + 'post_author' => 1, + 'post_type' => 'page', + 'post_parent' => $general_options['purchase_page'], + 'comment_status' => 'closed' + ) + ); + + $general_options['failure_page'] = $failed; + + update_option( 'edd_settings_general', $general_options ); +} + +/** + * Upgrade routine for v1.4 + * + * @since 1.4 + * @deprecated 3.1.2 + * @global $edd_options Array of all the EDD Options + * @return void + */ +function edd_v14_upgrades() { + + /** Add [edd_receipt] to success page **/ + $success_page = get_post( edd_get_option( 'success_page' ) ); + + // Check for the [edd_receipt] shortcode and add it if not present + if ( strpos( $success_page->post_content, '[edd_receipt' ) === false ) { + $page_content = $success_page->post_content .= "\n[edd_receipt]"; + wp_update_post( array( 'ID' => edd_get_option( 'success_page' ), 'post_content' => $page_content ) ); + } + + /** Convert Discounts to new Custom Post Type **/ + $discounts = get_option( 'edd_discounts' ); + + if ( $discounts ) { + foreach ( $discounts as $discount ) { + + $discount_id = wp_insert_post( array( + 'post_type' => 'edd_discount', + 'post_title' => isset( $discount['name'] ) ? $discount['name'] : '', + 'post_status' => 'active' + ) ); + + $meta = array( + 'code' => isset( $discount['code'] ) ? $discount['code'] : '', + 'uses' => isset( $discount['uses'] ) ? $discount['uses'] : '', + 'max_uses' => isset( $discount['max'] ) ? $discount['max'] : '', + 'amount' => isset( $discount['amount'] ) ? $discount['amount'] : '', + 'start' => isset( $discount['start'] ) ? $discount['start'] : '', + 'expiration' => isset( $discount['expiration'] ) ? $discount['expiration'] : '', + 'type' => isset( $discount['type'] ) ? $discount['type'] : '', + 'min_price' => isset( $discount['min_price'] ) ? $discount['min_price'] : '' + ); + + foreach ( $meta as $meta_key => $value ) { + update_post_meta( $discount_id, '_edd_discount_' . $meta_key, $value ); + } + } + + // Remove old discounts from database + delete_option( 'edd_discounts' ); + } +} + +/** + * Upgrade routine for v1.5 + * + * @since 1.5 + * @deprecated 3.1.2 + * @return void + */ +function edd_v15_upgrades() { + // Update options for missing tax settings + $tax_options = get_option( 'edd_settings_taxes' ); + + // Set include tax on checkout to off + $tax_options['checkout_include_tax'] = 'no'; + + // Check if prices are displayed with taxes + $tax_options['prices_include_tax'] = isset( $tax_options['taxes_on_prices'] ) + ? 'yes' + : 'no'; + + update_option( 'edd_settings_taxes', $tax_options ); + + // Flush the rewrite rules for the new /edd-api/ end point + flush_rewrite_rules( false ); +} + +/** + * Upgrades for EDD v2.0 + * + * @since 2.0 + * @deprecated 3.1.2 + * @return void + */ +function edd_v20_upgrades() { + global $edd_options, $wpdb; + + edd_set_time_limit(); + + // Upgrade for the anti-behavior fix - #2188 + if ( ! empty( $edd_options['disable_ajax_cart'] ) ) { + unset( $edd_options['enable_ajax_cart'] ); + } else { + $edd_options['enable_ajax_cart'] = '1'; + } + + // Upgrade for the anti-behavior fix - #2188 + if ( ! empty( $edd_options['disable_cart_saving'] ) ) { + unset( $edd_options['enable_cart_saving'] ); + } else { + $edd_options['enable_cart_saving'] = '1'; + } + + // Properly set the register / login form options based on whether they were enabled previously - #2076 + if ( ! empty( $edd_options['show_register_form'] ) ) { + $edd_options['show_register_form'] = 'both'; + } else { + $edd_options['show_register_form'] = 'none'; + } + + // Remove all old, improperly expired sessions. See https://github.com/easydigitaldownloads/Easy-Digital-Downloads/issues/2031 + $wpdb->query( "DELETE FROM $wpdb->options WHERE option_name LIKE '_wp_session_expires_%' AND option_value+0 < 2789308218" ); + + update_option( 'edd_settings', $edd_options ); +} + +/** + * Upgrades for EDD v2.0 and sequential payment numbers + * + * @deprecated 3.1.1.2 EDD no longer implies that past orders will be updated. + * @since 2.0 + * @return void + */ +function edd_v20_upgrade_sequential_payment_numbers() { + + if ( ! current_user_can( 'manage_shop_settings' ) ) { + wp_die( __( 'You do not have permission to do shop upgrades', 'easy-digital-downloads' ), __( 'Error', 'easy-digital-downloads' ), array( 'response' => 403 ) ); + } + + edd_set_time_limit(); + + $step = isset( $_GET['step'] ) ? absint( $_GET['step'] ) : 1; + $total = isset( $_GET['total'] ) ? absint( $_GET['total'] ) : false; + + if ( empty( $total ) || $total <= 1 ) { + $payments = edd_count_payments(); + foreach ( $payments as $status ) { + $total += $status; + } + } + + $orders = edd_get_orders( array( + 'number' => 100, + 'offset' => $step == 1 ? 0 : ( $step - 1 ) * 100, + 'order' => 'asc', + ) ); + + if ( $orders ) { + $prefix = edd_get_option( 'sequential_prefix' ); + $postfix = edd_get_option( 'sequential_postfix' ); + $number = ! empty( $_GET['custom'] ) ? absint( $_GET['custom'] ) : intval( edd_get_option( 'sequential_start', 1 ) ); + + foreach ( $orders as $order ) { + + // Re-add the prefix and postfix + $payment_number = $prefix . $number . $postfix; + + edd_update_order( $order->id, array( + 'order_number' => $payment_number + ) ); + + // Increment the payment number + $number++; + } + + // Payments found so upgrade them + $step++; + $redirect = add_query_arg( array( + 'page' => 'edd-upgrades', + 'edd-upgrade' => 'upgrade_sequential_payment_numbers', + 'step' => urlencode( $step ), + 'custom' => urlencode( $number ), + 'total' => urlencode( $total ), + ), admin_url( 'index.php' ) ); + + edd_redirect( $redirect ); + + // No more payments found, finish up + } else { + delete_option( 'edd_upgrade_sequential' ); + delete_option( 'edd_doing_upgrade' ); + + edd_redirect( admin_url() ); + } +} + +/** + * Upgrades for EDD v2.1 and the new customers database + * + * @since 2.1 + * @deprecated 3.1.2 EDD no longer implies that past orders will be updated. + * @return void + */ +function edd_v21_upgrade_customers_db() { + global $wpdb; + + if ( ! current_user_can( 'manage_shop_settings' ) ) { + wp_die( __( 'You do not have permission to do shop upgrades', 'easy-digital-downloads' ), __( 'Error', 'easy-digital-downloads' ), array( 'response' => 403 ) ); + } + + edd_set_time_limit(); + + $number = 20; + $step = isset( $_GET['step'] ) + ? absint( $_GET['step'] ) + : 1; + $offset = $step == 1 + ? 0 + : ( $step - 1 ) * $number; + + $emails = $wpdb->get_col( $wpdb->prepare( "SELECT DISTINCT meta_value FROM {$wpdb->postmeta} WHERE meta_key = '_edd_payment_user_email' LIMIT %d,%d;", $offset, $number ) ); + + if ( $emails ) { + + foreach ( $emails as $email ) { + + if ( EDD()->customers->exists( $email ) ) { + continue; // Allow the upgrade routine to be safely re-run in the case of failure + } + + $payments = new EDD_Payments_Query( array( + 'user' => $email, + 'order' => 'ASC', + 'orderby' => 'ID', + 'number' => 9999999, + 'page' => $step + ) ); + + $payments = $payments->get_payments(); + + if ( $payments ) { + + $total_value = 0.00; + $total_count = 0; + + foreach ( $payments as $payment ) { + + if ( 'revoked' == $payment->status || 'complete' == $payment->status ) { + $total_value += $payment->total; + $total_count += 1; + } + } + + $ids = wp_list_pluck( $payments, 'ID' ); + + $user = get_user_by( 'email', $email ); + + $args = array( + 'email' => $email, + 'user_id' => $user ? $user->ID : 0, + 'name' => $user ? $user->display_name : '', + 'purchase_count' => $total_count, + 'purchase_value' => round( $total_value, 2 ), + 'payment_ids' => implode( ',', array_map( 'absint', $ids ) ), + 'date_created' => $payments[0]->date + ); + + $customer_id = EDD()->customers->add( $args ); + + foreach ( $ids as $id ) { + update_post_meta( $id, '_edd_payment_customer_id', $customer_id ); + } + } + } + + // Customers found so upgrade them + $step++; + $redirect = add_query_arg( array( + 'page' => 'edd-upgrades', + 'edd-upgrade' => 'upgrade_customers_db', + 'step' => urlencode( $step ), + ), admin_url( 'index.php' ) ); + + edd_redirect( $redirect ); + + // No more customers found, finish up + } else { + delete_option( 'edd_doing_upgrade' ); + + edd_redirect( admin_url() ); + } +} + +/** + * Fixes the edd_log meta for 2.2.6 + * + * @since 2.2.6 + * @deprecated 3.1.2 EDD no longer implies that past orders will be updated. + * @return void + */ +function edd_v226_upgrade_payments_price_logs_db() { + global $wpdb; + + if ( ! current_user_can( 'manage_shop_settings' ) ) { + wp_die( __( 'You do not have permission to do shop upgrades', 'easy-digital-downloads' ), __( 'Error', 'easy-digital-downloads' ), array( 'response' => 403 ) ); + } + + edd_set_time_limit(); + + $number = 25; + $step = isset( $_GET['step'] ) + ? absint( $_GET['step'] ) + : 1; + $offset = $step == 1 + ? 0 + : ( $step - 1 ) * $number; + + if ( 1 === $step ) { + // Check if we have any variable price products on the first step + $sql = "SELECT ID FROM {$wpdb->posts} p LEFT JOIN {$wpdb->postmeta} m ON p.ID = m.post_id WHERE m.meta_key = '_variable_pricing' AND m.meta_value = 1 LIMIT 1"; + $has_variable = $wpdb->get_col( $sql ); + if ( empty( $has_variable ) ) { + // We had no variable priced products, so go ahead and just complete + delete_option( 'edd_doing_upgrade' ); + edd_redirect( admin_url() ); + } + } + + $payment_ids = $wpdb->get_col( $wpdb->prepare( "SELECT ID FROM {$wpdb->posts} WHERE post_type = 'edd_payment' ORDER BY post_date DESC LIMIT %d,%d;", $offset, $number ) ); + if ( ! empty( $payment_ids ) ) { + foreach ( $payment_ids as $payment_id ) { + $payment_downloads = edd_get_payment_meta_downloads( $payment_id ); + $variable_downloads = array(); + + // May not be an array due to some very old payments, move along + if ( ! is_array( $payment_downloads ) ) { + continue; + } + + foreach ( $payment_downloads as $download ) { + // Don't care if the download is a single price id + if ( ! isset( $download['options']['price_id'] ) ) { + continue; + } + $variable_downloads[] = array( 'id' => $download['id'], 'price_id' => $download['options']['price_id'] ); + } + $variable_download_ids = array_unique( wp_list_pluck( $variable_downloads, 'id' ) ); + $unique_download_ids = implode( ',', $variable_download_ids ); + + // If there were no downloads, just fees, move along + if ( empty( $unique_download_ids ) ) { + continue; + } + + // Get all Log Ids where the post parent is in the set of download IDs we found in the cart meta + $logs = $wpdb->get_results( "SELECT m.post_id AS log_id, p.post_parent AS download_id FROM {$wpdb->postmeta} m LEFT JOIN {$wpdb->posts} p ON m.post_id = p.ID WHERE meta_key = '_edd_log_payment_id' AND meta_value = $payment_id AND p.post_parent IN ($unique_download_ids)", ARRAY_A ); + $mapped_logs = array(); + + // Go through each cart item + foreach ( $variable_downloads as $cart_item ) { + // Itterate through the logs we found attached to this payment + foreach ( $logs as $key => $log ) { + // If this Log ID is associated with this download ID give it the price_id + if ( (int) $log['download_id'] === (int) $cart_item['id'] ) { + $mapped_logs[$log['log_id']] = $cart_item['price_id']; + // Remove this Download/Log ID from the list, for multipurchase compatibility + unset( $logs[$key] ); + // These aren't the logs we're looking for. Move Along, Move Along. + break; + } + } + } + + if ( ! empty( $mapped_logs ) ) { + $update = "UPDATE {$wpdb->postmeta} SET meta_value = "; + $case = "CASE post_id "; + foreach ( $mapped_logs as $post_id => $value ) { + $case .= "WHEN {$post_id} THEN {$value} "; + } + $case .= "END "; + $log_ids = implode( ',', array_keys( $mapped_logs ) ); + $where = "WHERE post_id IN ({$log_ids}) AND meta_key = '_edd_log_price_id'"; + $sql = $update . $case . $where; + + // Execute our query to update this payment + $wpdb->query( $sql ); + } + } + + // More Payments found so upgrade them + $step++; + $redirect = add_query_arg( array( + 'page' => 'edd-upgrades', + 'edd-upgrade' => 'upgrade_payments_price_logs_db', + 'step' => urlencode( $step ), + ), admin_url( 'index.php' ) ); + + edd_redirect( $redirect ); + } else { + delete_option( 'edd_doing_upgrade' ); + edd_redirect( admin_url() ); + } +} + +/** + * Upgrades payment taxes for 2.3 + * + * @since 2.3 + * @deprecated 3.1.2 EDD no longer implies that past orders will be updated. + * @return void + */ +function edd_v23_upgrade_payment_taxes() { + global $wpdb; + + if ( ! current_user_can( 'manage_shop_settings' ) ) { + wp_die( __( 'You do not have permission to do shop upgrades', 'easy-digital-downloads' ), __( 'Error', 'easy-digital-downloads' ), array( 'response' => 403 ) ); + } + + edd_set_time_limit(); + + $number = 50; + $step = isset( $_GET['step'] ) + ? absint( $_GET['step'] ) + : 1; + $offset = $step == 1 + ? 0 + : ( $step - 1 ) * $number; + + if ( $step < 2 ) { + // Check if we have any payments before moving on + $sql = "SELECT ID FROM {$wpdb->posts} WHERE post_type = 'edd_payment' LIMIT 1"; + $has_payments = $wpdb->get_col( $sql ); + + if ( empty( $has_payments ) ) { + // We had no payments, just complete + edd_set_upgrade_complete( 'upgrade_payment_taxes' ); + delete_option( 'edd_doing_upgrade' ); + edd_redirect( admin_url() ); + } + } + + $total = isset( $_GET['total'] ) ? absint( $_GET['total'] ) : false; + if ( empty( $total ) || $total <= 1 ) { + $total_sql = "SELECT COUNT(ID) as total_payments FROM {$wpdb->posts} WHERE post_type = 'edd_payment'"; + $results = $wpdb->get_row( $total_sql, 0 ); + + $total = $results->total_payments; + } + + $payment_ids = $wpdb->get_col( $wpdb->prepare( "SELECT ID FROM {$wpdb->posts} WHERE post_type = 'edd_payment' ORDER BY post_date DESC LIMIT %d,%d;", $offset, $number ) ); + + if ( $payment_ids ) { + + // Add the new _edd_payment_meta item + foreach ( $payment_ids as $payment_id ) { + $payment_tax = edd_get_payment_tax( $payment_id ); + edd_update_payment_meta( $payment_id, '_edd_payment_tax', $payment_tax ); + } + + // Payments found so upgrade them + $step++; + $redirect = add_query_arg( array( + 'page' => 'edd-upgrades', + 'edd-upgrade' => 'upgrade_payment_taxes', + 'step' => urlencode( $step ), + 'number' => urlencode( $number ), + 'total' => urlencode( $total ), + ), admin_url( 'index.php' ) ); + + edd_redirect( $redirect ); + + // No more payments found, finish up + } else { + edd_set_upgrade_complete( 'upgrade_payment_taxes' ); + delete_option( 'edd_doing_upgrade' ); + edd_redirect( admin_url() ); + } +} + +/** + * Run the upgrade for the customers to find all payment attachments + * + * @since 2.3 + * @deprecated 3.1.2 EDD no longer implies that past orders will be updated. + * @return void + */ +function edd_v23_upgrade_customer_purchases() { + global $wpdb; + + if ( ! current_user_can( 'manage_shop_settings' ) ) { + wp_die( __( 'You do not have permission to do shop upgrades', 'easy-digital-downloads' ), __( 'Error', 'easy-digital-downloads' ), array( 'response' => 403 ) ); + } + + edd_set_time_limit(); + + $number = 50; + $step = isset( $_GET['step'] ) + ? absint( $_GET['step'] ) + : 1; + $offset = $step == 1 + ? 0 + : ( $step - 1 ) * $number; + + if ( $step < 2 ) { + // Check if we have any payments before moving on + $sql = "SELECT ID FROM {$wpdb->posts} WHERE post_type = 'edd_payment' LIMIT 1"; + $has_payments = $wpdb->get_col( $sql ); + + if ( empty( $has_payments ) ) { + // We had no payments, just complete + edd_set_upgrade_complete( 'upgrade_customer_payments_association' ); + delete_option( 'edd_doing_upgrade' ); + edd_redirect( admin_url() ); + } + } + + $total = isset( $_GET['total'] ) ? absint( $_GET['total'] ) : false; + + if ( empty( $total ) || $total <= 1 ) { + $total = EDD()->customers->count(); + } + + $customers = edd_get_customers( array( 'number' => $number, 'offset' => $offset ) ); + + if ( ! empty( $customers ) ) { + + foreach ( $customers as $customer ) { + + // Get payments by email and user ID + $select = "SELECT ID FROM {$wpdb->posts} p "; + $join = "LEFT JOIN {$wpdb->postmeta} m ON p.ID = m.post_id "; + $where = "WHERE p.post_type = 'edd_payment' "; + + if ( ! empty( $customer->user_id ) && intval( $customer->user_id ) > 0 ) { + $where .= "AND ( ( m.meta_key = '_edd_payment_user_email' AND m.meta_value = '{$customer->email}' ) OR ( m.meta_key = '_edd_payment_customer_id' AND m.meta_value = '{$customer->id}' ) OR ( m.meta_key = '_edd_payment_user_id' AND m.meta_value = '{$customer->user_id}' ) )"; + } else { + $where .= "AND ( ( m.meta_key = '_edd_payment_user_email' AND m.meta_value = '{$customer->email}' ) OR ( m.meta_key = '_edd_payment_customer_id' AND m.meta_value = '{$customer->id}' ) ) "; + } + + $sql = $select . $join . $where; + $found_payments = $wpdb->get_col( $sql ); + + $unique_payment_ids = array_unique( array_filter( $found_payments ) ); + + if ( ! empty( $unique_payment_ids ) ) { + + $unique_ids_string = implode( ',', $unique_payment_ids ); + $customer_data = array( 'payment_ids' => $unique_ids_string ); + + $purchase_value_sql = "SELECT SUM( m.meta_value ) FROM {$wpdb->postmeta} m LEFT JOIN {$wpdb->posts} p ON m.post_id = p.ID WHERE m.post_id IN ( {$unique_ids_string} ) AND p.post_status IN ( 'publish', 'revoked' ) AND m.meta_key = '_edd_payment_total'"; + $purchase_value = $wpdb->get_col( $purchase_value_sql ); + + $purchase_count_sql = "SELECT COUNT( m.post_id ) FROM {$wpdb->postmeta} m LEFT JOIN {$wpdb->posts} p ON m.post_id = p.ID WHERE m.post_id IN ( {$unique_ids_string} ) AND p.post_status IN ( 'publish', 'revoked' ) AND m.meta_key = '_edd_payment_total'"; + $purchase_count = $wpdb->get_col( $purchase_count_sql ); + + if ( ! empty( $purchase_value ) && ! empty( $purchase_count ) ) { + + $purchase_value = $purchase_value[0]; + $purchase_count = $purchase_count[0]; + + $customer_data['purchase_count'] = $purchase_count; + $customer_data['purchase_value'] = $purchase_value; + } + + } else { + $customer_data['purchase_count'] = 0; + $customer_data['purchase_value'] = 0; + $customer_data['payment_ids'] = ''; + } + + if ( ! empty( $customer_data ) ) { + $customer = new EDD_Customer( $customer->id ); + $customer->update( $customer_data ); + } + } + + // More Payments found so upgrade them + $step++; + $redirect = add_query_arg( array( + 'page' => 'edd-upgrades', + 'edd-upgrade' => 'upgrade_customer_payments_association', + 'step' => urlencode( $step ), + 'number' => urlencode( $number ), + 'total' => urlencode( $total ), + ), admin_url( 'index.php' ) ); + + edd_redirect( $redirect ); + + // No more customers found, finish up + } else { + edd_set_upgrade_complete( 'upgrade_customer_payments_association' ); + delete_option( 'edd_doing_upgrade' ); + + edd_redirect( admin_url() ); + } +} + +/** + * Upgrade the User meta API Key storage to swap keys/values for performance + * + * @since 2.4 + * @deprecated 3.1.2 + * @return void + */ +function edd_upgrade_user_api_keys() { + global $wpdb; + + if ( ! current_user_can( 'manage_shop_settings' ) ) { + wp_die( __( 'You do not have permission to do shop upgrades', 'easy-digital-downloads' ), __( 'Error', 'easy-digital-downloads' ), array( 'response' => 403 ) ); + } + + edd_set_time_limit(); + + $number = 10; + $step = isset( $_GET['step'] ) + ? absint( $_GET['step'] ) + : 1; + $offset = $step == 1 + ? 0 + : ( $step - 1 ) * $number; + + if ( $step < 2 ) { + // Check if we have any users with API Keys before moving on + $sql = "SELECT user_id FROM $wpdb->usermeta WHERE meta_key = 'edd_user_public_key' LIMIT 1"; + $has_key = $wpdb->get_col( $sql ); + + // We had no key, just complete + if ( empty( $has_key ) ) { + edd_set_upgrade_complete( 'upgrade_user_api_keys' ); + delete_option( 'edd_doing_upgrade' ); + edd_redirect( admin_url() ); + } + } + + $total = isset( $_GET['total'] ) + ? absint( $_GET['total'] ) + : false; + + if ( empty( $total ) || $total <= 1 ) { + $total = $wpdb->get_var( "SELECT count(user_id) FROM $wpdb->usermeta WHERE meta_key = 'edd_user_public_key'" ); + } + + $keys_sql = $wpdb->prepare( "SELECT user_id, meta_key, meta_value FROM $wpdb->usermeta WHERE meta_key = 'edd_user_public_key' OR meta_key = 'edd_user_secret_key' ORDER BY user_id ASC LIMIT %d,%d;", $offset, $number ); + $found_keys = $wpdb->get_results( $keys_sql ); + + if ( ! empty( $found_keys ) ) { + foreach ( $found_keys as $key ) { + $user_id = $key->user_id; + $meta_key = $key->meta_key; + $meta_value = $key->meta_value; + + // Generate a new entry + update_user_meta( $user_id, $meta_value, $meta_key ); + + // Delete the old one + delete_user_meta( $user_id, $meta_key ); + } + + // More Payments found so upgrade them + $step++; + $redirect = add_query_arg( array( + 'page' => 'edd-upgrades', + 'edd-upgrade' => 'upgrade_user_api_keys', + 'step' => urlencode( $step ), + 'number' => urlencode( $number ), + 'total' => urlencode( $total ) ) ); + + edd_redirect( $redirect ); + + // No more customers found, finish up + } else { + edd_set_upgrade_complete( 'upgrade_user_api_keys' ); + delete_option( 'edd_doing_upgrade' ); + edd_redirect( admin_url() ); + } +} + +/** 2.9.2 Upgrades ***********************************************************/ + +/** + * Output the results of the file-download log data update + * + * @since 2.9.2 + * @deprecated 3.1.2 + */ +function edd_upgrade_render_update_file_download_log_data() { + $migration_complete = edd_has_upgrade_completed( 'update_file_download_log_data' ); + + if ( $migration_complete ) : ?> +
    +

    + Migration complete: You have already completed the update to the file download logs.', 'easy-digital-downloads' ); ?> +

    +
    + + + + +
    +

    Important: Do not navigate away from this page until all upgrades complete.', 'easy-digital-downloads' ); ?>

    +
    + + + + + +
    +
    +

    + + +

    +
    +

    + PII and make file download counts more accurate.', 'easy-digital-downloads' ); ?> +

    +
    + + + + + + + + + + + — + + + + + + +
    +
    +
    +
    + + publish < 1 ) { - return; // No payment exist yet - } - - // The payment history needs updated for version 1.2 - $url = add_query_arg( 'edd-action', 'upgrade_payments' ); - $upgrade_notice = sprintf( __( 'The Payment History needs to be updated. %s', 'easy-digital-downloads' ), '' . __( 'Click to Upgrade', 'easy-digital-downloads' ) . '' ); - - EDD()->notices->add_notice( array( - 'id' => 'edd-payments-upgrade', - 'class' => 'error', - 'message' => $upgrade_notice - ) ); - } - - if ( version_compare( $edd_version, '1.3.2', '<' ) && ! get_option( 'edd_logs_upgraded' ) ) { - printf( - '

    ' . esc_html__( 'The Purchase and File Download History in Easy Digital Downloads needs to be upgraded, click %shere%s to start the upgrade.', 'easy-digital-downloads' ) . '

    ', - '', - '' - ); - } - - if ( version_compare( $edd_version, '1.3.0', '<' ) || version_compare( $edd_version, '1.4', '<' ) ) { - printf( - '

    ' . esc_html__( 'Easy Digital Downloads needs to upgrade the plugin pages, click %shere%s to start the upgrade.', 'easy-digital-downloads' ) . '

    ', - '', - '' - ); - } - - if ( version_compare( $edd_version, '1.5', '<' ) ) { - printf( - '

    ' . esc_html__( 'Easy Digital Downloads needs to upgrade the database, click %shere%s to start the upgrade.', 'easy-digital-downloads' ) . '

    ', - '', - '' - ); - } - - if ( version_compare( $edd_version, '2.0', '<' ) ) { - printf( - '

    ' . esc_html__( 'Easy Digital Downloads needs to upgrade the database, click %shere%s to start the upgrade.', 'easy-digital-downloads' ) . '

    ', - '', - '' - ); + $screen = get_current_screen(); + if ( 'site-health' === $screen->id ) { + return; } // Sequential Orders was the first stepped upgrade, so check if we have a stalled upgrade $resume_upgrade = edd_maybe_resume_upgrade(); if ( ! empty( $resume_upgrade ) ) { - - $resume_url = add_query_arg( $resume_upgrade, admin_url( 'index.php' ) ); - printf( - '

    ' . __( 'Easy Digital Downloads needs to complete a database upgrade that was previously started, click here to resume the upgrade.', 'easy-digital-downloads' ) . '

    ', - esc_url( $resume_url ) + EDD()->notices->add_notice( + array( + 'id' => 'edd-resume-upgrade', + 'class' => 'error', + 'message' => sprintf( + /* translators: %s: Resume upgrade link */ + __( 'Easy Digital Downloads needs to complete a database upgrade that was previously started, click here to resume the upgrade.', 'easy-digital-downloads' ), + esc_url( add_query_arg( $resume_upgrade, admin_url( 'index.php' ) ) ) + ), + 'is_dismissible' => false, + ) ); - } else { // Include all 'Stepped' upgrade process notices in this else statement, @@ -119,66 +77,6 @@ function edd_show_upgrade_notices() { delete_option( 'edd_upgrade_sequential' ); } - if ( version_compare( $edd_version, '2.1', '<' ) ) { - printf( - '

    ' . esc_html__( 'Easy Digital Downloads needs to upgrade the customer database, click %shere%s to start the upgrade.', 'easy-digital-downloads' ) . '

    ', - '', - '' - ); - } - - if ( version_compare( $edd_version, '2.2.6', '<' ) ) { - printf( - '

    ' . __( 'Easy Digital Downloads needs to upgrade the payment database, click here to start the upgrade.', 'easy-digital-downloads' ) . '

    ', - esc_url( admin_url( 'index.php?page=edd-upgrades&edd-upgrade=upgrade_payments_price_logs_db' ) ) - ); - } - - if ( version_compare( $edd_version, '2.3', '<' ) ) { - if ( ! edd_has_upgrade_completed( 'upgrade_customer_payments_association' ) ) { - printf( - '

    ' . __( 'Easy Digital Downloads needs to upgrade the customer database, click here to start the upgrade.', 'easy-digital-downloads' ) . '

    ', - esc_url( admin_url( 'index.php?page=edd-upgrades&edd-upgrade=upgrade_customer_payments_association' ) ) - ); - } - } - - if ( version_compare( $edd_version, '2.3', '<' ) ) { - if ( ! edd_has_upgrade_completed( 'upgrade_payment_taxes' ) ) { - printf( - '

    ' . __( 'Easy Digital Downloads needs to upgrade the payment database, click here to start the upgrade.', 'easy-digital-downloads' ) . '

    ', - esc_url( admin_url( 'index.php?page=edd-upgrades&edd-upgrade=upgrade_payment_taxes' ) ) - ); - } - } - - if ( version_compare( $edd_version, '2.4', '<' ) ) { - if ( ! edd_has_upgrade_completed( 'upgrade_user_api_keys' ) ) { - printf( - '

    ' . __( 'Easy Digital Downloads needs to upgrade the API Key database, click here to start the upgrade.', 'easy-digital-downloads' ) . '

    ', - esc_url( admin_url( 'index.php?page=edd-upgrades&edd-upgrade=upgrade_user_api_keys' ) ) - ); - } - } - - if ( version_compare( $edd_version, '2.4.3', '<' ) ) { - if ( ! edd_has_upgrade_completed( 'remove_refunded_sale_logs' ) ) { - printf( - '

    ' . __( 'Easy Digital Downloads needs to upgrade the payments database, click here to start the upgrade.', 'easy-digital-downloads' ) . '

    ', - esc_url( admin_url( 'index.php?page=edd-upgrades&edd-upgrade=remove_refunded_sale_logs' ) ) - ); - } - } - - if ( version_compare( $edd_version, '2.9.2', '<' ) ) { - if ( ! edd_has_upgrade_completed( 'update_file_download_log_data' ) ) { - printf( - '

    ' . __( 'Easy Digital Downloads needs to upgrade the file download logs database, click here to start the upgrade.', 'easy-digital-downloads' ) . '

    ', - esc_url( admin_url( 'index.php?page=edd-upgrades&edd-upgrade=update_file_download_log_data' ) ) - ); - } - } - /** 3.0 Upgrades ******************************************************/ // Check if we need to do any upgrades. @@ -207,16 +105,19 @@ function edd_show_upgrade_notices() { ?>
    -

    +

    ', - '' + wp_kses_post( + /* translators: 1. Opening strong tag; do not translate. 2. Closing strong tag; do not translate. */ + __( 'Easy Digital Downloads needs to upgrade the database. %1$sLearn more about this upgrade%2$s.', 'easy-digital-downloads' ) + ), + '' ); ?>

    @@ -237,7 +138,7 @@ function edd_show_upgrade_notices() {

    ', '' @@ -279,6 +180,7 @@ function edd_show_upgrade_notices() { db_version(); @@ -330,48 +232,24 @@ add_action( 'admin_notices', 'edd_show_upgrade_notices' ); */ function edd_trigger_upgrades() { + if ( ! edd_doing_ajax() ) { + return; + } + // Bail if user is not capable if ( ! current_user_can( 'manage_shop_settings' ) ) { - wp_die( __( 'You do not have permission to do shop upgrades', 'easy-digital-downloads' ), __( 'Error', 'easy-digital-downloads' ), array( 'response' => 403 ) ); - } - - // Get the current version from the database - $edd_version = edd_get_db_version(); - - // 1.3 is the first version to use this option so we must add it here, but - // only if settings exist and this is not a new install - if ( empty( $edd_version ) && ! get_option( 'edd_settings' ) ) { - $edd_version = '1.3'; - add_option( 'edd_version', $edd_version ); - } - - // Get the current version - $current_version = edd_format_db_version( EDD_VERSION ); - - if ( version_compare( $current_version, $edd_version, '>' ) ) { - edd_v131_upgrades(); - } - - if ( version_compare( $edd_version, '1.3.0', '<' ) ) { - edd_v134_upgrades(); - } - - if ( version_compare( $edd_version, '1.4', '<' ) ) { - edd_v14_upgrades(); - } - - if ( version_compare( $edd_version, '1.5', '<' ) ) { - edd_v15_upgrades(); - } - - if ( version_compare( $edd_version, '2.0', '<' ) ) { - edd_v20_upgrades(); - } - - // Let AJAX know that the upgrade is complete - if ( edd_doing_ajax() ) { + delete_option( 'edd_doing_upgrade' ); die( 'complete' ); } + + // Bail if nonce is not set + if ( ! isset( $_POST['nonce'] ) || ! wp_verify_nonce( $_POST['nonce'], 'edd-upgrade' ) ) { + delete_option( 'edd_doing_upgrade' ); + die( 'complete' ); + } + + delete_option( 'edd_doing_upgrade' ); + die( 'complete' ); } add_action( 'wp_ajax_edd_trigger_upgrades', 'edd_trigger_upgrades' ); @@ -413,971 +291,6 @@ function edd_set_upgrade_complete( $upgrade_action = '' ) { return update_option( 'edd_completed_upgrades', $completed_upgrades ); } -/** - * Converts old sale and file download logs to new logging system - * - * @since 1.3.1 - * @uses WP_Query - * @uses EDD_Logging - * @return void - */ -function edd_v131_upgrades() { - if ( get_option( 'edd_logs_upgraded' ) ) { - return; - } - - $edd_version = edd_get_db_version(); - - if ( version_compare( $edd_version, '1.3', '>=' ) ) { - return; - } - - edd_set_time_limit(); - - $query = new WP_Query( array( - 'post_type' => 'download', - 'posts_per_page' => -1, - 'post_status' => 'publish' - ) ); - $downloads = $query->get_posts(); - - if ( $downloads ) { - $edd_log = new EDD_Logging(); - foreach ( $downloads as $download ) { - // Convert sale logs - $sale_logs = edd_get_download_sales_log( $download->ID, false ); - - if ( $sale_logs ) { - foreach ( $sale_logs['sales'] as $sale ) { - $log_data = array( - 'post_parent' => $download->ID, - 'post_date' => $sale['date'], - 'log_type' => 'sale' - ); - - $log_meta = array( - 'payment_id'=> $sale['payment_id'] - ); - - $log = $edd_log->insert_log( $log_data, $log_meta ); - } - } - - // Convert file download logs - $file_logs = edd_get_file_download_log( $download->ID, false ); - - if ( $file_logs ) { - foreach ( $file_logs['downloads'] as $log ) { - $log_data = array( - 'post_parent' => $download->ID, - 'post_date' => $log['date'], - 'log_type' => 'file_download' - - ); - - $log_meta = array( - 'user_info' => $log['user_info'], - 'file_id' => $log['file_id'], - 'ip' => $log['ip'] - ); - - $log = $edd_log->insert_log( $log_data, $log_meta ); - } - } - } - } - add_option( 'edd_logs_upgraded', '1' ); -} - -/** - * Upgrade routine for v1.3.0 - * - * @since 1.3.0 - * @return void - */ -function edd_v134_upgrades() { - $general_options = get_option( 'edd_settings_general' ); - - // Settings already updated - if ( isset( $general_options['failure_page'] ) ) { - return; - } - - // Failed Purchase Page - $failed = wp_insert_post( - array( - 'post_title' => __( 'Transaction Failed', 'easy-digital-downloads' ), - 'post_content' => __( 'Your transaction failed, please try again or contact site support.', 'easy-digital-downloads' ), - 'post_status' => 'publish', - 'post_author' => 1, - 'post_type' => 'page', - 'post_parent' => $general_options['purchase_page'], - 'comment_status' => 'closed' - ) - ); - - $general_options['failure_page'] = $failed; - - update_option( 'edd_settings_general', $general_options ); -} - -/** - * Upgrade routine for v1.4 - * - * @since 1.4 - * @global $edd_options Array of all the EDD Options - * @return void - */ -function edd_v14_upgrades() { - - /** Add [edd_receipt] to success page **/ - $success_page = get_post( edd_get_option( 'success_page' ) ); - - // Check for the [edd_receipt] shortcode and add it if not present - if ( strpos( $success_page->post_content, '[edd_receipt' ) === false ) { - $page_content = $success_page->post_content .= "\n[edd_receipt]"; - wp_update_post( array( 'ID' => edd_get_option( 'success_page' ), 'post_content' => $page_content ) ); - } - - /** Convert Discounts to new Custom Post Type **/ - $discounts = get_option( 'edd_discounts' ); - - if ( $discounts ) { - foreach ( $discounts as $discount ) { - - $discount_id = wp_insert_post( array( - 'post_type' => 'edd_discount', - 'post_title' => isset( $discount['name'] ) ? $discount['name'] : '', - 'post_status' => 'active' - ) ); - - $meta = array( - 'code' => isset( $discount['code'] ) ? $discount['code'] : '', - 'uses' => isset( $discount['uses'] ) ? $discount['uses'] : '', - 'max_uses' => isset( $discount['max'] ) ? $discount['max'] : '', - 'amount' => isset( $discount['amount'] ) ? $discount['amount'] : '', - 'start' => isset( $discount['start'] ) ? $discount['start'] : '', - 'expiration' => isset( $discount['expiration'] ) ? $discount['expiration'] : '', - 'type' => isset( $discount['type'] ) ? $discount['type'] : '', - 'min_price' => isset( $discount['min_price'] ) ? $discount['min_price'] : '' - ); - - foreach ( $meta as $meta_key => $value ) { - update_post_meta( $discount_id, '_edd_discount_' . $meta_key, $value ); - } - } - - // Remove old discounts from database - delete_option( 'edd_discounts' ); - } -} - - -/** - * Upgrade routine for v1.5 - * - * @since 1.5 - * @return void - */ -function edd_v15_upgrades() { - // Update options for missing tax settings - $tax_options = get_option( 'edd_settings_taxes' ); - - // Set include tax on checkout to off - $tax_options['checkout_include_tax'] = 'no'; - - // Check if prices are displayed with taxes - $tax_options['prices_include_tax'] = isset( $tax_options['taxes_on_prices'] ) - ? 'yes' - : 'no'; - - update_option( 'edd_settings_taxes', $tax_options ); - - // Flush the rewrite rules for the new /edd-api/ end point - flush_rewrite_rules( false ); -} - -/** - * Upgrades for EDD v2.0 - * - * @since 2.0 - * @return void - */ -function edd_v20_upgrades() { - global $edd_options, $wpdb; - - edd_set_time_limit(); - - // Upgrade for the anti-behavior fix - #2188 - if ( ! empty( $edd_options['disable_ajax_cart'] ) ) { - unset( $edd_options['enable_ajax_cart'] ); - } else { - $edd_options['enable_ajax_cart'] = '1'; - } - - // Upgrade for the anti-behavior fix - #2188 - if ( ! empty( $edd_options['disable_cart_saving'] ) ) { - unset( $edd_options['enable_cart_saving'] ); - } else { - $edd_options['enable_cart_saving'] = '1'; - } - - // Properly set the register / login form options based on whether they were enabled previously - #2076 - if ( ! empty( $edd_options['show_register_form'] ) ) { - $edd_options['show_register_form'] = 'both'; - } else { - $edd_options['show_register_form'] = 'none'; - } - - // Remove all old, improperly expired sessions. See https://github.com/easydigitaldownloads/Easy-Digital-Downloads/issues/2031 - $wpdb->query( "DELETE FROM $wpdb->options WHERE option_name LIKE '_wp_session_expires_%' AND option_value+0 < 2789308218" ); - - update_option( 'edd_settings', $edd_options ); -} - -/** - * Upgrades for EDD v2.0 and sequential payment numbers - * - * @deprecated 3.1.1.2 EDD no longer implies that past orders will be updated. - * @since 2.0 - * @return void - */ -function edd_v20_upgrade_sequential_payment_numbers() { - - if ( ! current_user_can( 'manage_shop_settings' ) ) { - wp_die( __( 'You do not have permission to do shop upgrades', 'easy-digital-downloads' ), __( 'Error', 'easy-digital-downloads' ), array( 'response' => 403 ) ); - } - - edd_set_time_limit(); - - $step = isset( $_GET['step'] ) ? absint( $_GET['step'] ) : 1; - $total = isset( $_GET['total'] ) ? absint( $_GET['total'] ) : false; - - if ( empty( $total ) || $total <= 1 ) { - $payments = edd_count_payments(); - foreach ( $payments as $status ) { - $total += $status; - } - } - - $orders = edd_get_orders( array( - 'number' => 100, - 'offset' => $step == 1 ? 0 : ( $step - 1 ) * 100, - 'order' => 'asc', - ) ); - - if ( $orders ) { - $prefix = edd_get_option( 'sequential_prefix' ); - $postfix = edd_get_option( 'sequential_postfix' ); - $number = ! empty( $_GET['custom'] ) ? absint( $_GET['custom'] ) : intval( edd_get_option( 'sequential_start', 1 ) ); - - foreach ( $orders as $order ) { - - // Re-add the prefix and postfix - $payment_number = $prefix . $number . $postfix; - - edd_update_order( $order->id, array( - 'order_number' => $payment_number - ) ); - - // Increment the payment number - $number++; - } - - // Payments found so upgrade them - $step++; - $redirect = add_query_arg( array( - 'page' => 'edd-upgrades', - 'edd-upgrade' => 'upgrade_sequential_payment_numbers', - 'step' => urlencode( $step ), - 'custom' => urlencode( $number ), - 'total' => urlencode( $total ), - ), admin_url( 'index.php' ) ); - - edd_redirect( $redirect ); - - // No more payments found, finish up - } else { - delete_option( 'edd_upgrade_sequential' ); - delete_option( 'edd_doing_upgrade' ); - - edd_redirect( admin_url() ); - } -} - -/** - * Upgrades for EDD v2.1 and the new customers database - * - * @since 2.1 - * @return void - */ -function edd_v21_upgrade_customers_db() { - global $wpdb; - - if ( ! current_user_can( 'manage_shop_settings' ) ) { - wp_die( __( 'You do not have permission to do shop upgrades', 'easy-digital-downloads' ), __( 'Error', 'easy-digital-downloads' ), array( 'response' => 403 ) ); - } - - edd_set_time_limit(); - - $number = 20; - $step = isset( $_GET['step'] ) - ? absint( $_GET['step'] ) - : 1; - $offset = $step == 1 - ? 0 - : ( $step - 1 ) * $number; - - $emails = $wpdb->get_col( $wpdb->prepare( "SELECT DISTINCT meta_value FROM {$wpdb->postmeta} WHERE meta_key = '_edd_payment_user_email' LIMIT %d,%d;", $offset, $number ) ); - - if ( $emails ) { - - foreach ( $emails as $email ) { - - if ( EDD()->customers->exists( $email ) ) { - continue; // Allow the upgrade routine to be safely re-run in the case of failure - } - - $payments = new EDD_Payments_Query( array( - 'user' => $email, - 'order' => 'ASC', - 'orderby' => 'ID', - 'number' => 9999999, - 'page' => $step - ) ); - - $payments = $payments->get_payments(); - - if ( $payments ) { - - $total_value = 0.00; - $total_count = 0; - - foreach ( $payments as $payment ) { - - if ( 'revoked' == $payment->status || 'complete' == $payment->status ) { - $total_value += $payment->total; - $total_count += 1; - } - } - - $ids = wp_list_pluck( $payments, 'ID' ); - - $user = get_user_by( 'email', $email ); - - $args = array( - 'email' => $email, - 'user_id' => $user ? $user->ID : 0, - 'name' => $user ? $user->display_name : '', - 'purchase_count' => $total_count, - 'purchase_value' => round( $total_value, 2 ), - 'payment_ids' => implode( ',', array_map( 'absint', $ids ) ), - 'date_created' => $payments[0]->date - ); - - $customer_id = EDD()->customers->add( $args ); - - foreach ( $ids as $id ) { - update_post_meta( $id, '_edd_payment_customer_id', $customer_id ); - } - } - } - - // Customers found so upgrade them - $step++; - $redirect = add_query_arg( array( - 'page' => 'edd-upgrades', - 'edd-upgrade' => 'upgrade_customers_db', - 'step' => urlencode( $step ), - ), admin_url( 'index.php' ) ); - - edd_redirect( $redirect ); - - // No more customers found, finish up - } else { - delete_option( 'edd_doing_upgrade' ); - - edd_redirect( admin_url() ); - } -} -add_action( 'edd_upgrade_customers_db', 'edd_v21_upgrade_customers_db' ); - -/** - * Fixes the edd_log meta for 2.2.6 - * - * @since 2.2.6 - * @return void - */ -function edd_v226_upgrade_payments_price_logs_db() { - global $wpdb; - - if ( ! current_user_can( 'manage_shop_settings' ) ) { - wp_die( __( 'You do not have permission to do shop upgrades', 'easy-digital-downloads' ), __( 'Error', 'easy-digital-downloads' ), array( 'response' => 403 ) ); - } - - edd_set_time_limit(); - - $number = 25; - $step = isset( $_GET['step'] ) - ? absint( $_GET['step'] ) - : 1; - $offset = $step == 1 - ? 0 - : ( $step - 1 ) * $number; - - if ( 1 === $step ) { - // Check if we have any variable price products on the first step - $sql = "SELECT ID FROM {$wpdb->posts} p LEFT JOIN {$wpdb->postmeta} m ON p.ID = m.post_id WHERE m.meta_key = '_variable_pricing' AND m.meta_value = 1 LIMIT 1"; - $has_variable = $wpdb->get_col( $sql ); - if ( empty( $has_variable ) ) { - // We had no variable priced products, so go ahead and just complete - delete_option( 'edd_doing_upgrade' ); - edd_redirect( admin_url() ); - } - } - - $payment_ids = $wpdb->get_col( $wpdb->prepare( "SELECT ID FROM {$wpdb->posts} WHERE post_type = 'edd_payment' ORDER BY post_date DESC LIMIT %d,%d;", $offset, $number ) ); - if ( ! empty( $payment_ids ) ) { - foreach ( $payment_ids as $payment_id ) { - $payment_downloads = edd_get_payment_meta_downloads( $payment_id ); - $variable_downloads = array(); - - // May not be an array due to some very old payments, move along - if ( ! is_array( $payment_downloads ) ) { - continue; - } - - foreach ( $payment_downloads as $download ) { - // Don't care if the download is a single price id - if ( ! isset( $download['options']['price_id'] ) ) { - continue; - } - $variable_downloads[] = array( 'id' => $download['id'], 'price_id' => $download['options']['price_id'] ); - } - $variable_download_ids = array_unique( wp_list_pluck( $variable_downloads, 'id' ) ); - $unique_download_ids = implode( ',', $variable_download_ids ); - - // If there were no downloads, just fees, move along - if ( empty( $unique_download_ids ) ) { - continue; - } - - // Get all Log Ids where the post parent is in the set of download IDs we found in the cart meta - $logs = $wpdb->get_results( "SELECT m.post_id AS log_id, p.post_parent AS download_id FROM {$wpdb->postmeta} m LEFT JOIN {$wpdb->posts} p ON m.post_id = p.ID WHERE meta_key = '_edd_log_payment_id' AND meta_value = $payment_id AND p.post_parent IN ($unique_download_ids)", ARRAY_A ); - $mapped_logs = array(); - - // Go through each cart item - foreach ( $variable_downloads as $cart_item ) { - // Itterate through the logs we found attached to this payment - foreach ( $logs as $key => $log ) { - // If this Log ID is associated with this download ID give it the price_id - if ( (int) $log['download_id'] === (int) $cart_item['id'] ) { - $mapped_logs[$log['log_id']] = $cart_item['price_id']; - // Remove this Download/Log ID from the list, for multipurchase compatibility - unset( $logs[$key] ); - // These aren't the logs we're looking for. Move Along, Move Along. - break; - } - } - } - - if ( ! empty( $mapped_logs ) ) { - $update = "UPDATE {$wpdb->postmeta} SET meta_value = "; - $case = "CASE post_id "; - foreach ( $mapped_logs as $post_id => $value ) { - $case .= "WHEN {$post_id} THEN {$value} "; - } - $case .= "END "; - $log_ids = implode( ',', array_keys( $mapped_logs ) ); - $where = "WHERE post_id IN ({$log_ids}) AND meta_key = '_edd_log_price_id'"; - $sql = $update . $case . $where; - - // Execute our query to update this payment - $wpdb->query( $sql ); - } - } - - // More Payments found so upgrade them - $step++; - $redirect = add_query_arg( array( - 'page' => 'edd-upgrades', - 'edd-upgrade' => 'upgrade_payments_price_logs_db', - 'step' => urlencode( $step ), - ), admin_url( 'index.php' ) ); - - edd_redirect( $redirect ); - } else { - delete_option( 'edd_doing_upgrade' ); - edd_redirect( admin_url() ); - } -} -add_action( 'edd_upgrade_payments_price_logs_db', 'edd_v226_upgrade_payments_price_logs_db' ); - -/** - * Upgrades payment taxes for 2.3 - * - * @since 2.3 - * @return void - */ -function edd_v23_upgrade_payment_taxes() { - global $wpdb; - - if ( ! current_user_can( 'manage_shop_settings' ) ) { - wp_die( __( 'You do not have permission to do shop upgrades', 'easy-digital-downloads' ), __( 'Error', 'easy-digital-downloads' ), array( 'response' => 403 ) ); - } - - edd_set_time_limit(); - - $number = 50; - $step = isset( $_GET['step'] ) - ? absint( $_GET['step'] ) - : 1; - $offset = $step == 1 - ? 0 - : ( $step - 1 ) * $number; - - if ( $step < 2 ) { - // Check if we have any payments before moving on - $sql = "SELECT ID FROM {$wpdb->posts} WHERE post_type = 'edd_payment' LIMIT 1"; - $has_payments = $wpdb->get_col( $sql ); - - if ( empty( $has_payments ) ) { - // We had no payments, just complete - edd_set_upgrade_complete( 'upgrade_payment_taxes' ); - delete_option( 'edd_doing_upgrade' ); - edd_redirect( admin_url() ); - } - } - - $total = isset( $_GET['total'] ) ? absint( $_GET['total'] ) : false; - if ( empty( $total ) || $total <= 1 ) { - $total_sql = "SELECT COUNT(ID) as total_payments FROM {$wpdb->posts} WHERE post_type = 'edd_payment'"; - $results = $wpdb->get_row( $total_sql, 0 ); - - $total = $results->total_payments; - } - - $payment_ids = $wpdb->get_col( $wpdb->prepare( "SELECT ID FROM {$wpdb->posts} WHERE post_type = 'edd_payment' ORDER BY post_date DESC LIMIT %d,%d;", $offset, $number ) ); - - if ( $payment_ids ) { - - // Add the new _edd_payment_meta item - foreach ( $payment_ids as $payment_id ) { - $payment_tax = edd_get_payment_tax( $payment_id ); - edd_update_payment_meta( $payment_id, '_edd_payment_tax', $payment_tax ); - } - - // Payments found so upgrade them - $step++; - $redirect = add_query_arg( array( - 'page' => 'edd-upgrades', - 'edd-upgrade' => 'upgrade_payment_taxes', - 'step' => urlencode( $step ), - 'number' => urlencode( $number ), - 'total' => urlencode( $total ), - ), admin_url( 'index.php' ) ); - - edd_redirect( $redirect ); - - // No more payments found, finish up - } else { - edd_set_upgrade_complete( 'upgrade_payment_taxes' ); - delete_option( 'edd_doing_upgrade' ); - edd_redirect( admin_url() ); - } -} -add_action( 'edd_upgrade_payment_taxes', 'edd_v23_upgrade_payment_taxes' ); - -/** - * Run the upgrade for the customers to find all payment attachments - * - * @since 2.3 - * @return void - */ -function edd_v23_upgrade_customer_purchases() { - global $wpdb; - - if ( ! current_user_can( 'manage_shop_settings' ) ) { - wp_die( __( 'You do not have permission to do shop upgrades', 'easy-digital-downloads' ), __( 'Error', 'easy-digital-downloads' ), array( 'response' => 403 ) ); - } - - edd_set_time_limit(); - - $number = 50; - $step = isset( $_GET['step'] ) - ? absint( $_GET['step'] ) - : 1; - $offset = $step == 1 - ? 0 - : ( $step - 1 ) * $number; - - if ( $step < 2 ) { - // Check if we have any payments before moving on - $sql = "SELECT ID FROM {$wpdb->posts} WHERE post_type = 'edd_payment' LIMIT 1"; - $has_payments = $wpdb->get_col( $sql ); - - if ( empty( $has_payments ) ) { - // We had no payments, just complete - edd_set_upgrade_complete( 'upgrade_customer_payments_association' ); - delete_option( 'edd_doing_upgrade' ); - edd_redirect( admin_url() ); - } - } - - $total = isset( $_GET['total'] ) ? absint( $_GET['total'] ) : false; - - if ( empty( $total ) || $total <= 1 ) { - $total = EDD()->customers->count(); - } - - $customers = edd_get_customers( array( 'number' => $number, 'offset' => $offset ) ); - - if ( ! empty( $customers ) ) { - - foreach ( $customers as $customer ) { - - // Get payments by email and user ID - $select = "SELECT ID FROM {$wpdb->posts} p "; - $join = "LEFT JOIN {$wpdb->postmeta} m ON p.ID = m.post_id "; - $where = "WHERE p.post_type = 'edd_payment' "; - - if ( ! empty( $customer->user_id ) && intval( $customer->user_id ) > 0 ) { - $where .= "AND ( ( m.meta_key = '_edd_payment_user_email' AND m.meta_value = '{$customer->email}' ) OR ( m.meta_key = '_edd_payment_customer_id' AND m.meta_value = '{$customer->id}' ) OR ( m.meta_key = '_edd_payment_user_id' AND m.meta_value = '{$customer->user_id}' ) )"; - } else { - $where .= "AND ( ( m.meta_key = '_edd_payment_user_email' AND m.meta_value = '{$customer->email}' ) OR ( m.meta_key = '_edd_payment_customer_id' AND m.meta_value = '{$customer->id}' ) ) "; - } - - $sql = $select . $join . $where; - $found_payments = $wpdb->get_col( $sql ); - - $unique_payment_ids = array_unique( array_filter( $found_payments ) ); - - if ( ! empty( $unique_payment_ids ) ) { - - $unique_ids_string = implode( ',', $unique_payment_ids ); - $customer_data = array( 'payment_ids' => $unique_ids_string ); - - $purchase_value_sql = "SELECT SUM( m.meta_value ) FROM {$wpdb->postmeta} m LEFT JOIN {$wpdb->posts} p ON m.post_id = p.ID WHERE m.post_id IN ( {$unique_ids_string} ) AND p.post_status IN ( 'publish', 'revoked' ) AND m.meta_key = '_edd_payment_total'"; - $purchase_value = $wpdb->get_col( $purchase_value_sql ); - - $purchase_count_sql = "SELECT COUNT( m.post_id ) FROM {$wpdb->postmeta} m LEFT JOIN {$wpdb->posts} p ON m.post_id = p.ID WHERE m.post_id IN ( {$unique_ids_string} ) AND p.post_status IN ( 'publish', 'revoked' ) AND m.meta_key = '_edd_payment_total'"; - $purchase_count = $wpdb->get_col( $purchase_count_sql ); - - if ( ! empty( $purchase_value ) && ! empty( $purchase_count ) ) { - - $purchase_value = $purchase_value[0]; - $purchase_count = $purchase_count[0]; - - $customer_data['purchase_count'] = $purchase_count; - $customer_data['purchase_value'] = $purchase_value; - } - - } else { - $customer_data['purchase_count'] = 0; - $customer_data['purchase_value'] = 0; - $customer_data['payment_ids'] = ''; - } - - if ( ! empty( $customer_data ) ) { - $customer = new EDD_Customer( $customer->id ); - $customer->update( $customer_data ); - } - } - - // More Payments found so upgrade them - $step++; - $redirect = add_query_arg( array( - 'page' => 'edd-upgrades', - 'edd-upgrade' => 'upgrade_customer_payments_association', - 'step' => urlencode( $step ), - 'number' => urlencode( $number ), - 'total' => urlencode( $total ), - ), admin_url( 'index.php' ) ); - - edd_redirect( $redirect ); - - // No more customers found, finish up - } else { - edd_set_upgrade_complete( 'upgrade_customer_payments_association' ); - delete_option( 'edd_doing_upgrade' ); - - edd_redirect( admin_url() ); - } -} -add_action( 'edd_upgrade_customer_payments_association', 'edd_v23_upgrade_customer_purchases' ); - -/** - * Upgrade the User meta API Key storage to swap keys/values for performance - * - * @since 2.4 - * @return void - */ -function edd_upgrade_user_api_keys() { - global $wpdb; - - if ( ! current_user_can( 'manage_shop_settings' ) ) { - wp_die( __( 'You do not have permission to do shop upgrades', 'easy-digital-downloads' ), __( 'Error', 'easy-digital-downloads' ), array( 'response' => 403 ) ); - } - - edd_set_time_limit(); - - $number = 10; - $step = isset( $_GET['step'] ) - ? absint( $_GET['step'] ) - : 1; - $offset = $step == 1 - ? 0 - : ( $step - 1 ) * $number; - - if ( $step < 2 ) { - // Check if we have any users with API Keys before moving on - $sql = "SELECT user_id FROM $wpdb->usermeta WHERE meta_key = 'edd_user_public_key' LIMIT 1"; - $has_key = $wpdb->get_col( $sql ); - - // We had no key, just complete - if ( empty( $has_key ) ) { - edd_set_upgrade_complete( 'upgrade_user_api_keys' ); - delete_option( 'edd_doing_upgrade' ); - edd_redirect( admin_url() ); - } - } - - $total = isset( $_GET['total'] ) - ? absint( $_GET['total'] ) - : false; - - if ( empty( $total ) || $total <= 1 ) { - $total = $wpdb->get_var( "SELECT count(user_id) FROM $wpdb->usermeta WHERE meta_key = 'edd_user_public_key'" ); - } - - $keys_sql = $wpdb->prepare( "SELECT user_id, meta_key, meta_value FROM $wpdb->usermeta WHERE meta_key = 'edd_user_public_key' OR meta_key = 'edd_user_secret_key' ORDER BY user_id ASC LIMIT %d,%d;", $offset, $number ); - $found_keys = $wpdb->get_results( $keys_sql ); - - if ( ! empty( $found_keys ) ) { - foreach ( $found_keys as $key ) { - $user_id = $key->user_id; - $meta_key = $key->meta_key; - $meta_value = $key->meta_value; - - // Generate a new entry - update_user_meta( $user_id, $meta_value, $meta_key ); - - // Delete the old one - delete_user_meta( $user_id, $meta_key ); - } - - // More Payments found so upgrade them - $step++; - $redirect = add_query_arg( array( - 'page' => 'edd-upgrades', - 'edd-upgrade' => 'upgrade_user_api_keys', - 'step' => urlencode( $step ), - 'number' => urlencode( $number ), - 'total' => urlencode( $total ) ) ); - - edd_redirect( $redirect ); - - // No more customers found, finish up - } else { - edd_set_upgrade_complete( 'upgrade_user_api_keys' ); - delete_option( 'edd_doing_upgrade' ); - edd_redirect( admin_url() ); - } -} -add_action( 'edd_upgrade_user_api_keys', 'edd_upgrade_user_api_keys' ); - -/** - * Remove sale logs from refunded orders - * - * @since 2.4.3 - * @return void - */ -function edd_remove_refunded_sale_logs() { - $edd_logs = EDD()->debug_log; - - if ( ! current_user_can( 'manage_shop_settings' ) ) { - wp_die( __( 'You do not have permission to do shop upgrades', 'easy-digital-downloads' ), __( 'Error', 'easy-digital-downloads' ), array( 'response' => 403 ) ); - } - - edd_set_time_limit(); - - $step = isset( $_GET['step'] ) ? absint( $_GET['step'] ) : 1; - $total = isset( $_GET['total'] ) ? absint( $_GET['total'] ) : edd_count_payments()->refunded; - - $refunds = edd_get_payments( array( - 'status' => 'refunded', - 'number' => 20, - 'page' => $step - ) ); - - if ( ! empty( $refunds ) ) { - - // Refunded Payments found so process them - foreach ( $refunds as $refund ) { - - // Remove related sale log entries - $edd_logs->delete_logs( - null, - 'sale', - array( - array( - 'key' => '_edd_log_payment_id', - 'value' => $refund->ID - ) - ) - ); - } - - $step++; - $redirect = add_query_arg( array( - 'page' => 'edd-upgrades', - 'edd-upgrade' => 'remove_refunded_sale_logs', - 'step' => urlencode( $step ), - 'total' => urlencode( $total ), - ), admin_url( 'index.php' ) ); - - edd_redirect( $redirect ); - - // No more refunded payments found, finish up - } else { - edd_set_upgrade_complete( 'remove_refunded_sale_logs' ); - delete_option( 'edd_doing_upgrade' ); - edd_redirect( admin_url() ); - } -} -add_action( 'edd_remove_refunded_sale_logs', 'edd_remove_refunded_sale_logs' ); - -/** 2.9.2 Upgrades ***********************************************************/ - -/** - * Output the results of the file-download log data update - * - * @since 2.9.2 - */ -function edd_upgrade_render_update_file_download_log_data() { - $migration_complete = edd_has_upgrade_completed( 'update_file_download_log_data' ); - - if ( $migration_complete ) : ?> -

    -

    - Migration complete: You have already completed the update to the file download logs.', 'easy-digital-downloads' ); ?> -

    -
    - - - - -
    -

    Important: Do not navigate away from this page until all upgrades complete.', 'easy-digital-downloads' ); ?>

    -
    - - - - - -
    -
    -

    - - -

    -
    -

    - PII and make file download counts more accurate.', 'easy-digital-downloads' ); ?> -

    -
    - - - - - - - - - - - — - - - - - - -
    -
    -
    -
    - - +

    - wp edd v30_migration' ); ?> + wp edd v30_migration' ); + ?>

    sanitize_key( $action ), - 'step' => absint( $step ), - 'total' => absint( $total ), - 'custom' => absint( $custom ), - ), admin_url( 'index.php' ) ); ?> + $redirect = add_query_arg( + array( + 'edd_action' => sanitize_key( $action ), + 'step' => absint( $step ), + 'total' => absint( $total ), + 'custom' => absint( $custom ), + '_wpnonce' => wp_create_nonce( 'edd-upgrade' ), + ), + admin_url( 'index.php' ) + ); + ?>

    @@ -113,7 +118,8 @@ function edd_upgrades_screen() { // Trigger upgrades on page load var data = { - action: 'edd_trigger_upgrades' + action: 'edd_trigger_upgrades', + nonce: '' }; jQuery.post( ajaxurl, data, function (response) { diff --git a/wp-content/plugins/easy-digital-downloads/includes/admin/upgrades/v3/class-data-migrator.php b/wp-content/plugins/easy-digital-downloads/includes/admin/upgrades/v3/class-data-migrator.php index 65bb27d2..d691cdd7 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/admin/upgrades/v3/class-data-migrator.php +++ b/wp-content/plugins/easy-digital-downloads/includes/admin/upgrades/v3/class-data-migrator.php @@ -753,14 +753,11 @@ class Data_Migrator { */ $order_data = apply_filters( 'edd_30_migration_order_creation_data', $order_data, $payment_meta, $cart_details, $meta ); + update_option( '_edd_v30_doing_order_migration', true, false ); + // Remove all order status transition actions. remove_all_actions( 'edd_transition_order_status' ); remove_all_actions( 'edd_transition_order_item_status' ); - remove_action( 'edd_order_item_added', 'edd_recalculate_order_item_download' ); - remove_action( 'edd_order_item_updated', 'edd_recalculate_order_item_download' ); - remove_action( 'edd_order_item_deleted', 'edd_recalculate_order_item_download' ); - remove_action( 'edd_order_adjustment_added', 'edd_recalculate_order_adjustment_download' ); - remove_action( 'edd_order_adjustment_updated', 'edd_recalculate_order_adjustment_download' ); $order_id = edd_add_order( $order_data ); @@ -1351,6 +1348,8 @@ class Data_Migrator { */ do_action( 'edd_30_migrate_order', $order_id, $payment_meta, $meta ); + delete_option( '_edd_v30_doing_order_migration' ); + return $order_id; } diff --git a/wp-content/plugins/easy-digital-downloads/includes/admin/upgrades/v3/class-orders.php b/wp-content/plugins/easy-digital-downloads/includes/admin/upgrades/v3/class-orders.php index 0f1f43eb..3f9cf288 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/admin/upgrades/v3/class-orders.php +++ b/wp-content/plugins/easy-digital-downloads/includes/admin/upgrades/v3/class-orders.php @@ -92,6 +92,26 @@ class Orders extends Base { } } + /** + * Recalculates all customer values. + * + * @since 3.1.2 + * @return void + */ + private function recalculate_customer_values() { + $customers = edd_get_customers( + array( + 'number' => 9999999, + ) + ); + + if ( ! empty( $customers ) ) { + foreach ( $customers as $customer ) { + $customer->recalculate_stats(); + } + } + } + /** * Calculate the percentage completed. * diff --git a/wp-content/plugins/easy-digital-downloads/includes/admin/views/tmpl-order-adjustment.php b/wp-content/plugins/easy-digital-downloads/includes/admin/views/tmpl-order-adjustment.php index 731b6cf1..2b6b930f 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/admin/views/tmpl-order-adjustment.php +++ b/wp-content/plugins/easy-digital-downloads/includes/admin/views/tmpl-order-adjustment.php @@ -29,9 +29,6 @@ $view_url = edd_get_admin_url( <# } #>
    - <# if ( false !== data.orderItem ) { #> - {{ data.orderItem.productName }}:  - <# } #> <# if ( '' !== data.description ) { #> {{ data.description }} <# } #> @@ -40,7 +37,9 @@ $view_url = edd_get_admin_url(
    <# } #> - <# if ( 'credit' === data.type ) { #> + <# if ( false !== data.orderItem ) { #> + : {{ data.orderItem.productName }} + <# } else if ( 'credit' === data.type ) { #> <# } else { #> diff --git a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/buy-button/index.asset.php b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/buy-button/index.asset.php index 7324e77e..ce59d139 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/buy-button/index.asset.php +++ b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/buy-button/index.asset.php @@ -1 +1 @@ - array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-server-side-render'), 'version' => '75153cfac5e884f38a28'); + array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-server-side-render'), 'version' => '9575575720727823baf2'); diff --git a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/buy-button/index.css b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/buy-button/index.css index aed03088..9a08e34a 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/buy-button/index.css +++ b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/buy-button/index.css @@ -1 +1 @@ -.edd-no-js{display:none!important}svg.edd-blocks__icon{fill:none!important}.editor-styles-wrapper .components-placeholder a.components-button.edd-new-download{background-color:var(--wp-admin-theme-color)!important;color:#fff!important;line-height:1.5;margin:0 auto!important;padding:.5em 1em;text-decoration:none}.editor-styles-wrapper .wp-block.wp-block-edd-buy-button .components-placeholder{align-items:center;background-color:#fefefe;border-radius:5px}.editor-styles-wrapper .wp-block.wp-block-edd-buy-button .components-placeholder__fieldset{justify-content:center} +.edd-no-js{display:none!important}svg.edd-blocks__icon{fill:none!important}.editor-styles-wrapper .components-placeholder{align-items:center;background-color:#fefefe;border-radius:5px}.editor-styles-wrapper .components-placeholder__fieldset{justify-content:center}.editor-styles-wrapper .components-placeholder div.edd-downloads--actions{display:flex;gap:2em;justify-content:space-around}.editor-styles-wrapper .components-placeholder div.edd-downloads--actions a.components-button{line-height:1.5;margin-right:0;padding:.5em 1em;text-decoration:none}.editor-styles-wrapper .components-placeholder div.edd-downloads--actions a.components-button.edd-downloads--primary{background-color:var(--wp-admin-theme-color);color:#fff}.editor-styles-wrapper .components-placeholder div.edd-downloads--actions a.components-button.edd-downloads--secondary{background-color:#fff;border:1px solid var(--wp-admin-theme-color);color:var(--wp-admin-theme-color)}.editor-styles-wrapper .wp-block.wp-block-edd-buy-button .components-placeholder{align-items:center;background-color:#fefefe;border-radius:5px}.editor-styles-wrapper .wp-block.wp-block-edd-buy-button .components-placeholder__fieldset{justify-content:center} diff --git a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/buy-button/index.js b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/buy-button/index.js index 2681fc96..8fc8ee37 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/buy-button/index.js +++ b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/buy-button/index.js @@ -1 +1 @@ -(()=>{"use strict";var e,o={590:(e,o,t)=>{const n=window.wp.blocks,l=window.wp.element,a=window.wp.i18n,r=window.wp.components,s=window.wp.serverSideRender;var d=t.n(s);const c=window.wp.blockEditor,i=window.wp.data,w=(e,o)=>{const t=[];if(e&&t.push({value:"",label:(0,a.__)("Select a Download","easy-digital-downloads")}),o||"template"===o){let e=(0,a.__)("Current Download","easy-digital-downloads");"template"!==o&&(e=wp.data.select("core/editor").getCurrentPostAttribute("title")),t.push({value:o,label:e})}const n=(0,i.useSelect)((e=>{let t={per_page:-1};return o&&(t.exclude=o),e("core").getEntityRecords("postType","download",t)}));return(0,i.useSelect)((e=>e("core/data").isResolving("core","getEntityRecords",["postType","download"])))||n&&n.map((e=>{let{id:o,title:n}=e;t.push({value:o,label:n.raw})})),t},u=JSON.parse('{"u2":"edd/buy-button","qv":"button"}'),h={button:(0,l.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"edd-blocks__icon"},(0,l.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 8.25h19.5M2.25 9h19.5m-16.5 5.25h6m-6 2.25h3m-3.75 3h15a2.25 2.25 0 002.25-2.25V6.75A2.25 2.25 0 0019.5 4.5h-15a2.25 2.25 0 00-2.25 2.25v10.5A2.25 2.25 0 004.5 19.5z"})),cart:(0,l.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"edd-blocks__icon"},(0,l.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 3h1.386c.51 0 .955.343 1.087.835l.383 1.437M7.5 14.25a3 3 0 00-3 3h15.75m-12.75-3h11.218c1.121-2.3 2.1-4.684 2.924-7.138a60.114 60.114 0 00-16.536-1.84M7.5 14.25L5.106 5.272M6 20.25a.75.75 0 11-1.5 0 .75.75 0 011.5 0zm12.75 0a.75.75 0 11-1.5 0 .75.75 0 011.5 0z"})),products:(0,l.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"edd-blocks__icon"},(0,l.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 10.5V6a3.75 3.75 0 10-7.5 0v4.5m11.356-1.993l1.263 12c.07.665-.45 1.243-1.119 1.243H4.25a1.125 1.125 0 01-1.12-1.243l1.264-12A1.125 1.125 0 015.513 7.5h12.974c.576 0 1.059.435 1.119 1.007zM8.625 10.5a.375.375 0 11-.75 0 .375.375 0 01.75 0zm7.5 0a.375.375 0 11-.75 0 .375.375 0 01.75 0z"})),"yes-alt":(0,l.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"edd-blocks__icon"},(0,l.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75L11.25 15 15 9.75M21 12c0 1.268-.63 2.39-1.593 3.068a3.745 3.745 0 01-1.043 3.296 3.745 3.745 0 01-3.296 1.043A3.745 3.745 0 0112 21c-1.268 0-2.39-.63-3.068-1.593a3.746 3.746 0 01-3.296-1.043 3.745 3.745 0 01-1.043-3.296A3.745 3.745 0 013 12c0-1.268.63-2.39 1.593-3.068a3.745 3.745 0 011.043-3.296 3.746 3.746 0 013.296-1.043A3.746 3.746 0 0112 3c1.268 0 2.39.63 3.068 1.593a3.746 3.746 0 013.296 1.043 3.746 3.746 0 011.043 3.296A3.745 3.745 0 0121 12z"})),download:(0,l.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"edd-blocks__icon-downloads"},(0,l.createElement)("path",{fillRule:"evenodd",d:"M12 2.25a.75.75 0 01.75.75v11.69l3.22-3.22a.75.75 0 111.06 1.06l-4.5 4.5a.75.75 0 01-1.06 0l-4.5-4.5a.75.75 0 111.06-1.06l3.22 3.22V3a.75.75 0 01.75-.75zm-9 13.5a.75.75 0 01.75.75v2.25a1.5 1.5 0 001.5 1.5h13.5a1.5 1.5 0 001.5-1.5V16.5a.75.75 0 011.5 0v2.25a3 3 0 01-3 3H5.25a3 3 0 01-3-3V16.5a.75.75 0 01.75-.75z",clipRule:"evenodd"})),unlock:(0,l.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"edd-blocks__icon"},(0,l.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 10.5V6.75a4.5 4.5 0 119 0v3.75M3.75 21.75h10.5a2.25 2.25 0 002.25-2.25v-6.75a2.25 2.25 0 00-2.25-2.25H3.75a2.25 2.25 0 00-2.25 2.25v6.75a2.25 2.25 0 002.25 2.25z"})),"editor-table":(0,l.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"edd-blocks__icon"},(0,l.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 12h16.5m-16.5 3.75h16.5M3.75 19.5h16.5M5.625 4.5h12.75a1.875 1.875 0 010 3.75H5.625a1.875 1.875 0 010-3.75z"})),money:(0,l.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"edd-blocks__icon"},(0,l.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 18.75a60.07 60.07 0 0115.797 2.101c.727.198 1.453-.342 1.453-1.096V18.75M3.75 4.5v.75A.75.75 0 013 6h-.75m0 0v-.375c0-.621.504-1.125 1.125-1.125H20.25M2.25 6v9m18-10.5v.75c0 .414.336.75.75.75h.75m-1.5-1.5h.375c.621 0 1.125.504 1.125 1.125v9.75c0 .621-.504 1.125-1.125 1.125h-.375m1.5-1.5H21a.75.75 0 00-.75.75v.75m0 0H3.75m0 0h-.375a1.125 1.125 0 01-1.125-1.125V15m1.5 1.5v-.75A.75.75 0 003 15h-.75M15 10.5a3 3 0 11-6 0 3 3 0 016 0zm3 0h.008v.008H18V10.5zm-12 0h.008v.008H6V10.5z"})),id:(0,l.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"edd-blocks__icon"},(0,l.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 9h3.75M15 12h3.75M15 15h3.75M4.5 19.5h15a2.25 2.25 0 002.25-2.25V6.75A2.25 2.25 0 0019.5 4.5h-15a2.25 2.25 0 00-2.25 2.25v10.5A2.25 2.25 0 004.5 19.5zm6-10.125a1.875 1.875 0 11-3.75 0 1.875 1.875 0 013.75 0zm1.294 6.336a6.721 6.721 0 01-3.17.789 6.721 6.721 0 01-3.168-.789 3.376 3.376 0 016.338 0z"})),category:(0,l.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"edd-blocks__icon"},(0,l.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.75V12A2.25 2.25 0 014.5 9.75h15A2.25 2.25 0 0121.75 12v.75m-8.69-6.44l-2.12-2.12a1.5 1.5 0 00-1.061-.44H4.5A2.25 2.25 0 002.25 6v12a2.25 2.25 0 002.25 2.25h15A2.25 2.25 0 0021.75 18V9a2.25 2.25 0 00-2.25-2.25h-5.379a1.5 1.5 0 01-1.06-.44z"})),"admin-links":(0,l.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"edd-blocks__icon"},(0,l.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.19 8.688a4.5 4.5 0 011.242 7.244l-4.5 4.5a4.5 4.5 0 01-6.364-6.364l1.757-1.757m13.35-.622l1.757-1.757a4.5 4.5 0 00-6.364-6.364l-4.5 4.5a4.5 4.5 0 001.242 7.244"})),money:(0,l.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"edd-blocks__icon"},(0,l.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.25 7.756a4.5 4.5 0 100 8.488M7.5 10.5h5.25m-5.25 3h5.25M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}))};var m;(0,n.registerBlockType)(u.u2,{icon:(m=u.qv,h[m]),edit:function(e){let{attributes:o,setAttributes:t}=e;if(!EDDBlocks.has_downloads)return(0,l.createElement)("div",(0,c.useBlockProps)(),(0,l.createElement)(r.Placeholder,{icon:"download",label:(0,a.__)("No Downloads Found","easy-digital-downloads")},(0,l.createElement)("a",{href:EDDBlocks.new_download,className:"components-button edd-new-download",target:"_blank"},(0,a.__)("Create Your First Download","easy-digital-downloads"))));const n=e=>o=>t({[e]:o}),s=wp.data.select("core/editor").getCurrentPostType();if(!o.download_id&&s&&"download"!==s)return(0,l.createElement)("div",(0,c.useBlockProps)(),(0,l.createElement)(r.Placeholder,{icon:"download",label:(0,a.__)("Select a Download:","easy-digital-downloads")},(0,l.createElement)(r.SelectControl,{label:(0,a.__)("Download ID","easy-digital-downloads"),options:w(!0),onChange:n("download_id")})));let i=!1;return o.download_id||"download"!==s?s||(i="template"):(i=wp.data.select("core/editor").getCurrentPostId(),o.download_id=i),(0,l.createElement)("div",(0,c.useBlockProps)(),(0,l.createElement)(c.InspectorControls,null,(0,l.createElement)(r.PanelBody,{title:(0,a.__)("Settings","easy-digital-downloads")},(0,l.createElement)(r.SelectControl,{label:(0,a.__)("Download ID","easy-digital-downloads"),value:o.download_id,options:w(!1,i),onChange:n("download_id")}),(0,l.createElement)(r.ToggleControl,{label:(0,a.__)("Show Price","easy-digital-downloads"),checked:!!o.show_price,onChange:n("show_price")}),!!EDDBlocks.supports_buy_now&&(0,l.createElement)(r.ToggleControl,{label:(0,a.__)("Buy Now","easy-digital-downloads"),checked:!!o.direct,onChange:n("direct"),help:(0,a.__)("Enable Buy Now to process a download order without going through the full checkout.","easy-digital-downloads")}))),(0,l.createElement)(r.Disabled,null,(0,l.createElement)(d(),{block:"edd/buy-button",attributes:{...o}})))}})}},t={};function n(e){var l=t[e];if(void 0!==l)return l.exports;var a=t[e]={exports:{}};return o[e](a,a.exports,n),a.exports}n.m=o,e=[],n.O=(o,t,l,a)=>{if(!t){var r=1/0;for(i=0;i=a)&&Object.keys(n.O).every((e=>n.O[e](t[d])))?t.splice(d--,1):(s=!1,a0&&e[i-1][2]>a;i--)e[i]=e[i-1];e[i]=[t,l,a]},n.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return n.d(o,{a:o}),o},n.d=(e,o)=>{for(var t in o)n.o(o,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},n.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={167:0,200:0};n.O.j=o=>0===e[o];var o=(o,t)=>{var l,a,r=t[0],s=t[1],d=t[2],c=0;if(r.some((o=>0!==e[o]))){for(l in s)n.o(s,l)&&(n.m[l]=s[l]);if(d)var i=d(n)}for(o&&o(t);cn(590)));l=n.O(l)})(); \ No newline at end of file +(()=>{"use strict";var e,o={557:(e,o,t)=>{const l=window.wp.blocks,a=window.wp.element,n=window.wp.i18n,r=window.wp.components,s=window.wp.serverSideRender;var d=t.n(s);const i=window.wp.blockEditor,c=window.wp.data,w=(e,o)=>{const t=[];if(e&&t.push({value:"",label:(0,n.sprintf)((0,n.__)("Select a %s","easy-digital-downloads"),EDDBlocks.download_label_singular)}),o||"template"===o){let e=(0,n.sprintf)((0,n.__)("Current %s","easy-digital-downloads"),EDDBlocks.download_label_singular);"template"!==o&&(e=wp.data.select("core/editor").getCurrentPostAttribute("title")),t.push({value:o,label:e})}const l=(0,c.useSelect)((e=>{let t={per_page:-1};return o&&(t.exclude=o),e("core").getEntityRecords("postType","download",t)}));return(0,c.useSelect)((e=>e("core/data").isResolving("core","getEntityRecords",["postType","download"])))||l&&l.map((e=>{let{id:o,title:l}=e;t.push({value:o,label:l.raw})})),t};function u(){return u=Object.assign?Object.assign.bind():function(e){for(var o=1;oo=>t({[e]:o}),s=wp.data.select("core/editor").getCurrentPostType();if(!o.download_id&&s&&"download"!==s)return(0,a.createElement)("div",(0,i.useBlockProps)(),(0,a.createElement)(r.Placeholder,{icon:"download",label:(0,n.sprintf)((0,n.__)("Select a %s:","easy-digital-downloads"),EDDBlocks.download_label_singular)},(0,a.createElement)(r.SelectControl,{label:(0,n.sprintf)((0,n.__)("Published %s","easy-digital-downloads"),EDDBlocks.download_label_plural),options:w(!0),onChange:l("download_id")})));let c=!1;return o.download_id||"download"!==s?s||(c="template"):(c=wp.data.select("core/editor").getCurrentPostId(),o.download_id=c),(0,a.createElement)("div",(0,i.useBlockProps)(),(0,a.createElement)(i.InspectorControls,null,(0,a.createElement)(r.PanelBody,{title:(0,n.__)("Settings","easy-digital-downloads")},(0,a.createElement)(r.SelectControl,{label:(0,n.sprintf)((0,n.__)("Select a %s","easy-digital-downloads"),EDDBlocks.download_label_singular),value:o.download_id,options:w(!1,c),onChange:l("download_id")}),(0,a.createElement)(r.ToggleControl,{label:(0,n.__)("Show Price","easy-digital-downloads"),checked:!!o.show_price,onChange:l("show_price")}),!!EDDBlocks.supports_buy_now&&(0,a.createElement)(r.ToggleControl,{label:(0,n.__)("Buy Now","easy-digital-downloads"),checked:!!o.direct,onChange:l("direct"),help:(0,n.__)("Enable Buy Now to process a download order without going through the full checkout.","easy-digital-downloads")}))),(0,a.createElement)(r.Disabled,null,(0,a.createElement)(d(),{block:"edd/buy-button",attributes:{...o}})))}})}},t={};function l(e){var a=t[e];if(void 0!==a)return a.exports;var n=t[e]={exports:{}};return o[e](n,n.exports,l),n.exports}l.m=o,e=[],l.O=(o,t,a,n)=>{if(!t){var r=1/0;for(c=0;c=n)&&Object.keys(l.O).every((e=>l.O[e](t[d])))?t.splice(d--,1):(s=!1,n0&&e[c-1][2]>n;c--)e[c]=e[c-1];e[c]=[t,a,n]},l.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return l.d(o,{a:o}),o},l.d=(e,o)=>{for(var t in o)l.o(o,t)&&!l.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},l.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={167:0,200:0};l.O.j=o=>0===e[o];var o=(o,t)=>{var a,n,r=t[0],s=t[1],d=t[2],i=0;if(r.some((o=>0!==e[o]))){for(a in s)l.o(s,a)&&(l.m[a]=s[a]);if(d)var c=d(l)}for(o&&o(t);il(557)));a=l.O(a)})(); \ No newline at end of file diff --git a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/cart/style-index.css b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/cart/style-index.css index 5f1e273f..c067f0f0 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/cart/style-index.css +++ b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/cart/style-index.css @@ -1 +1 @@ -.edd-blocks-form__cart .edd_cart_remove_item_btn{border:none;margin-left:.5rem;padding:0;text-decoration:none}.edd-blocks-form__cart .edd_cart_remove_item_btn svg{opacity:.6}.edd-blocks-form__cart .edd_cart_remove_item_btn svg:hover{opacity:.9}.edd-blocks-form__cart #edd_checkout_cart{border:1px solid #eee;display:grid}.edd-blocks-form__cart .edd_cart_item_name{display:grid;gap:1rem}.edd-blocks-form__cart .edd_cart_item_name .edd_cart_actions{align-items:center;display:inline-flex;flex-basis:100%;gap:.5rem}.edd-blocks-form__cart .edd_cart_item_name .edd_cart_actions label{margin:0!important}.edd-blocks-form__cart .edd_cart_item_name .edd_cart_actions input.edd-item-quantity{width:3rem!important}.edd-blocks-form__cart .edd_checkout_cart_item_title{align-items:center;display:flex;gap:1rem}.edd-blocks-form__cart .edd_cart_fee_amount,.edd-blocks-form__cart .edd_cart_item_price{align-items:center;display:flex;gap:.5rem}@media(min-width:480px){.edd-blocks-form__cart .edd_cart_fee_amount,.edd-blocks-form__cart .edd_cart_item_price{justify-content:flex-end}}.edd-blocks-form__cart .edd-blocks-cart__row{align-items:center;display:flex;flex-wrap:wrap;gap:1rem;padding:1.5rem}.edd-blocks-form__cart .edd-blocks-cart__row>div:last-of-type:not(:first-of-type){flex:1 1 110px}@media(min-width:480px){.edd-blocks-form__cart .edd-blocks-cart__row>div:last-of-type:not(:first-of-type){text-align:right}}.edd-blocks-form__cart .edd-blocks-cart__items,.edd-blocks-form__cart .edd-blocks-cart__row-header{border-bottom:1px solid #eee}.edd-blocks-form__cart .edd-blocks-cart__row-header,.edd-blocks-form__cart .edd_cart_total{font-weight:700}.edd-blocks-form__cart .edd-blocks-cart__row-footer{text-align:right}.edd-blocks-form__cart .edd-blocks-cart__row-footer>div:only-child{flex-grow:1}.edd-blocks-form__cart .edd-blocks-cart__action-remove,.edd-blocks-form__cart .edd_discount_remove{background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMWVtIiBoZWlnaHQ9IjFlbSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBmaWxsPSJub25lIiB2aWV3Qm94PSIwIDAgMjQgMjQiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2U9ImN1cnJlbnRDb2xvciIgY2xhc3M9InctNiBoLTYiPgogIDxwYXRoIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgZD0iTTE0Ljc0IDlsLS4zNDYgOW0tNC43ODggMEw5LjI2IDltOS45NjgtMy4yMWMuMzQyLjA1Mi42ODIuMTA3IDEuMDIyLjE2Nm0tMS4wMjItLjE2NUwxOC4xNiAxOS42NzNhMi4yNSAyLjI1IDAgMDEtMi4yNDQgMi4wNzdIOC4wODRhMi4yNSAyLjI1IDAgMDEtMi4yNDQtMi4wNzdMNC43NzIgNS43OW0xNC40NTYgMGE0OC4xMDggNDguMTA4IDAgMDAtMy40NzgtLjM5N20tMTIgLjU2MmMuMzQtLjA1OS42OC0uMTE0IDEuMDIyLS4xNjVtMCAwYTQ4LjExIDQ4LjExIDAgMDEzLjQ3OC0uMzk3bTcuNSAwdi0uOTE2YzAtMS4xOC0uOTEtMi4xNjQtMi4wOS0yLjIwMWE1MS45NjQgNTEuOTY0IDAgMDAtMy4zMiAwYy0xLjE4LjAzNy0yLjA5IDEuMDIyLTIuMDkgMi4yMDF2LjkxNm03LjUgMGE0OC42NjcgNDguNjY3IDAgMDAtNy41IDAiIC8+Cjwvc3ZnPgo=) 50% no-repeat;background-size:1em;box-shadow:none!important;display:block;height:1em;opacity:.6;top:0;width:1em}.edd-blocks-form__cart .edd-blocks-cart__action-remove:hover,.edd-blocks-form__cart .edd_discount_remove:hover{background-position:50%;opacity:1}.edd-blocks-form__cart .edd_cart_item_image img{display:block}.edd-blocks__cart-mini,.edd-blocks__cart-mini a{align-items:center;color:unset;display:flex;gap:.25rem;justify-content:flex-end;text-decoration:none}.edd-blocks__cart-mini a svg,.edd-blocks__cart-mini svg{fill:none;height:1.5rem;width:1.5rem}.wp-block-edd-cart .edd-blocks-cart__row-footer{padding:.5rem 1.5rem} +.edd-blocks-form__cart .edd_cart_remove_item_btn{border:none;margin-left:.5rem;padding:0;text-decoration:none}.edd-blocks-form__cart .edd_cart_remove_item_btn svg{opacity:.6}.edd-blocks-form__cart .edd_cart_remove_item_btn svg:hover{opacity:.9}.edd-blocks-form__cart #edd_checkout_cart{border:1px solid #eee;display:grid}.edd-blocks-form__cart .edd_cart_item_name{display:grid;gap:1rem}.edd-blocks-form__cart .edd_cart_item_name .edd_cart_actions{align-items:center;display:inline-flex;flex-basis:100%;gap:.5rem}.edd-blocks-form__cart .edd_cart_item_name .edd_cart_actions label{margin:0!important}.edd-blocks-form__cart .edd_cart_item_name .edd_cart_actions input.edd-item-quantity{width:3rem!important}.edd-blocks-form__cart .edd_checkout_cart_item_title{align-items:center;display:flex;gap:1rem}.edd-blocks-form__cart .edd_cart_fee_amount,.edd-blocks-form__cart .edd_cart_item_price{align-items:center;display:flex;gap:.5rem}@media(min-width:480px){.edd-blocks-form__cart .edd_cart_fee_amount,.edd-blocks-form__cart .edd_cart_item_price{justify-content:flex-end}}.edd-blocks-form__cart .edd-blocks-cart__row,.edd-blocks-form__cart .edd_cart_footer_row{align-items:center;display:flex;flex-wrap:wrap;gap:1rem;padding:1.5rem}.edd-blocks-form__cart .edd-blocks-cart__row>div:last-of-type:not(:first-of-type),.edd-blocks-form__cart .edd_cart_footer_row>div:last-of-type:not(:first-of-type){flex:1 1 110px}@media(min-width:480px){.edd-blocks-form__cart .edd-blocks-cart__row>div:last-of-type:not(:first-of-type),.edd-blocks-form__cart .edd_cart_footer_row>div:last-of-type:not(:first-of-type){text-align:right}}.edd-blocks-form__cart .edd-blocks-cart__items,.edd-blocks-form__cart .edd-blocks-cart__row-header{border-bottom:1px solid #eee}.edd-blocks-form__cart .edd-blocks-cart__row-header,.edd-blocks-form__cart .edd_cart_total{font-weight:700}.edd-blocks-form__cart .edd-blocks-cart__row-footer{text-align:right}.edd-blocks-form__cart .edd-blocks-cart__row-footer>div:only-child{flex-grow:1}.edd-blocks-form__cart .edd-blocks-cart__action-remove,.edd-blocks-form__cart .edd_discount_remove{background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMWVtIiBoZWlnaHQ9IjFlbSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBmaWxsPSJub25lIiB2aWV3Qm94PSIwIDAgMjQgMjQiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2U9ImN1cnJlbnRDb2xvciIgY2xhc3M9InctNiBoLTYiPgogIDxwYXRoIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgZD0iTTE0Ljc0IDlsLS4zNDYgOW0tNC43ODggMEw5LjI2IDltOS45NjgtMy4yMWMuMzQyLjA1Mi42ODIuMTA3IDEuMDIyLjE2Nm0tMS4wMjItLjE2NUwxOC4xNiAxOS42NzNhMi4yNSAyLjI1IDAgMDEtMi4yNDQgMi4wNzdIOC4wODRhMi4yNSAyLjI1IDAgMDEtMi4yNDQtMi4wNzdMNC43NzIgNS43OW0xNC40NTYgMGE0OC4xMDggNDguMTA4IDAgMDAtMy40NzgtLjM5N20tMTIgLjU2MmMuMzQtLjA1OS42OC0uMTE0IDEuMDIyLS4xNjVtMCAwYTQ4LjExIDQ4LjExIDAgMDEzLjQ3OC0uMzk3bTcuNSAwdi0uOTE2YzAtMS4xOC0uOTEtMi4xNjQtMi4wOS0yLjIwMWE1MS45NjQgNTEuOTY0IDAgMDAtMy4zMiAwYy0xLjE4LjAzNy0yLjA5IDEuMDIyLTIuMDkgMi4yMDF2LjkxNm03LjUgMGE0OC42NjcgNDguNjY3IDAgMDAtNy41IDAiIC8+Cjwvc3ZnPgo=) 50% no-repeat;background-size:1em;box-shadow:none!important;display:block;height:1em;opacity:.6;top:0;width:1em}.edd-blocks-form__cart .edd-blocks-cart__action-remove:hover,.edd-blocks-form__cart .edd_discount_remove:hover{background-position:50%;opacity:1}.edd-blocks-form__cart .edd_cart_item_image img{display:block}.edd-blocks__cart-mini,.edd-blocks__cart-mini a{align-items:center;color:unset;display:flex;gap:.25rem;justify-content:flex-end;text-decoration:none}.edd-blocks__cart-mini a svg,.edd-blocks__cart-mini svg{fill:none;height:1.5rem;width:1.5rem}.wp-block-edd-cart .edd-blocks-cart__row-footer{padding:.5rem 1.5rem} diff --git a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/checkout/style-index.css b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/checkout/style-index.css index 8b8072f2..227a7063 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/checkout/style-index.css +++ b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/checkout/style-index.css @@ -1 +1 @@ -.edd-blocks-form__cart .edd_cart_remove_item_btn{border:none;margin-left:.5rem;padding:0;text-decoration:none}.edd-blocks-form__cart .edd_cart_remove_item_btn svg{opacity:.6}.edd-blocks-form__cart .edd_cart_remove_item_btn svg:hover{opacity:.9}.edd-blocks-form__cart #edd_checkout_cart{border:1px solid #eee;display:grid}.edd-blocks-form__cart .edd_cart_item_name{display:grid;gap:1rem}.edd-blocks-form__cart .edd_cart_item_name .edd_cart_actions{align-items:center;display:inline-flex;flex-basis:100%;gap:.5rem}.edd-blocks-form__cart .edd_cart_item_name .edd_cart_actions label{margin:0!important}.edd-blocks-form__cart .edd_cart_item_name .edd_cart_actions input.edd-item-quantity{width:3rem!important}.edd-blocks-form__cart .edd_checkout_cart_item_title{align-items:center;display:flex;gap:1rem}.edd-blocks-form__cart .edd_cart_fee_amount,.edd-blocks-form__cart .edd_cart_item_price{align-items:center;display:flex;gap:.5rem}@media(min-width:480px){.edd-blocks-form__cart .edd_cart_fee_amount,.edd-blocks-form__cart .edd_cart_item_price{justify-content:flex-end}}.edd-blocks-form__cart .edd-blocks-cart__row{align-items:center;display:flex;flex-wrap:wrap;gap:1rem;padding:1.5rem}.edd-blocks-form__cart .edd-blocks-cart__row>div:last-of-type:not(:first-of-type){flex:1 1 110px}@media(min-width:480px){.edd-blocks-form__cart .edd-blocks-cart__row>div:last-of-type:not(:first-of-type){text-align:right}}.edd-blocks-form__cart .edd-blocks-cart__items,.edd-blocks-form__cart .edd-blocks-cart__row-header{border-bottom:1px solid #eee}.edd-blocks-form__cart .edd-blocks-cart__row-header,.edd-blocks-form__cart .edd_cart_total{font-weight:700}.edd-blocks-form__cart .edd-blocks-cart__row-footer{text-align:right}.edd-blocks-form__cart .edd-blocks-cart__row-footer>div:only-child{flex-grow:1}.edd-blocks-form__cart .edd-blocks-cart__action-remove,.edd-blocks-form__cart .edd_discount_remove{background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMWVtIiBoZWlnaHQ9IjFlbSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBmaWxsPSJub25lIiB2aWV3Qm94PSIwIDAgMjQgMjQiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2U9ImN1cnJlbnRDb2xvciIgY2xhc3M9InctNiBoLTYiPgogIDxwYXRoIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgZD0iTTE0Ljc0IDlsLS4zNDYgOW0tNC43ODggMEw5LjI2IDltOS45NjgtMy4yMWMuMzQyLjA1Mi42ODIuMTA3IDEuMDIyLjE2Nm0tMS4wMjItLjE2NUwxOC4xNiAxOS42NzNhMi4yNSAyLjI1IDAgMDEtMi4yNDQgMi4wNzdIOC4wODRhMi4yNSAyLjI1IDAgMDEtMi4yNDQtMi4wNzdMNC43NzIgNS43OW0xNC40NTYgMGE0OC4xMDggNDguMTA4IDAgMDAtMy40NzgtLjM5N20tMTIgLjU2MmMuMzQtLjA1OS42OC0uMTE0IDEuMDIyLS4xNjVtMCAwYTQ4LjExIDQ4LjExIDAgMDEzLjQ3OC0uMzk3bTcuNSAwdi0uOTE2YzAtMS4xOC0uOTEtMi4xNjQtMi4wOS0yLjIwMWE1MS45NjQgNTEuOTY0IDAgMDAtMy4zMiAwYy0xLjE4LjAzNy0yLjA5IDEuMDIyLTIuMDkgMi4yMDF2LjkxNm03LjUgMGE0OC42NjcgNDguNjY3IDAgMDAtNy41IDAiIC8+Cjwvc3ZnPgo=) 50% no-repeat;background-size:1em;box-shadow:none!important;display:block;height:1em;opacity:.6;top:0;width:1em}.edd-blocks-form__cart .edd-blocks-cart__action-remove:hover,.edd-blocks-form__cart .edd_discount_remove:hover{background-position:50%;opacity:1}.edd-blocks-form__cart .edd_cart_item_image img{display:block}.screen-reader-text{clip:rect(1px,1px,1px,1px);word-wrap:normal!important;border:0;-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.edd-button-secondary,.edd-submit{transition:all .2s ease-in-out}.edd-button-secondary:active,.edd-button-secondary:hover,.edd-submit:active,.edd-submit:hover{transform:translateY(-1px)}.edd-button-secondary{background-color:var(--edd-blocks-light-grey);border:1px solid #ddd;border-radius:4px;color:unset;margin:0;padding:.5rem 1rem}.edd-button-secondary:disabled{opacity:.6}.wp-block-edd-checkout{display:grid;gap:1rem}.wp-block-edd-checkout #edd_purchase_form .edd-blocks-form{border:1px solid var(--edd-blocks-light-grey);display:grid;gap:1.25rem;padding:2rem}.widget .wp-block-edd-checkout #edd_purchase_form .edd-blocks-form{border:none;padding:0}.wp-block-edd-checkout #edd_purchase_form .edd-blocks-form .edd-blocks-form__group,.wp-block-edd-checkout #edd_purchase_form .edd-blocks-form legend{display:block;margin:0}.wp-block-edd-checkout #edd_purchase_form .edd-blocks-form .edd-blocks-form__group>label{display:block;margin-bottom:.5rem!important}.wp-block-edd-checkout #edd_purchase_form .edd-blocks-form input[type=email],.wp-block-edd-checkout #edd_purchase_form .edd-blocks-form input[type=password],.wp-block-edd-checkout #edd_purchase_form .edd-blocks-form input[type=text],.wp-block-edd-checkout #edd_purchase_form .edd-blocks-form select{box-sizing:border-box;display:block;padding:4px 6px;width:100%}.wp-block-edd-checkout #edd_purchase_form .edd-blocks-form .edd-blocks-form__halves{display:flex!important;gap:1rem;justify-content:space-between}@media(min-width:600px){.wp-block-edd-checkout #edd_purchase_form .edd-blocks-form .edd-blocks-form__halves>*{flex-basis:50%}}.wp-block-edd-checkout #edd_purchase_form p+.edd-blocks-form{margin-top:2rem}.wp-block-edd-checkout #edd_purchase_form .edd-button-secondary,.wp-block-edd-checkout #edd_purchase_form .edd-submit{transition:all .2s ease-in-out}.wp-block-edd-checkout #edd_purchase_form .edd-button-secondary:active,.wp-block-edd-checkout #edd_purchase_form .edd-button-secondary:hover,.wp-block-edd-checkout #edd_purchase_form .edd-submit:active,.wp-block-edd-checkout #edd_purchase_form .edd-submit:hover{transform:translateY(-1px)}.wp-block-edd-checkout #edd_purchase_form .edd-button-secondary{background-color:var(--edd-blocks-light-grey);border:1px solid #ddd;border-radius:4px;color:unset;margin:0;padding:.5rem 1rem}.wp-block-edd-checkout #edd_purchase_form .edd-button-secondary:disabled{opacity:.6}.wp-block-edd-checkout #edd_purchase_form select{padding:4px 6px}.wp-block-edd-checkout .edd-blocks-form__cart,.wp-block-edd-checkout .edd-blocks-form__purchase{border:none;padding:0}.wp-block-edd-checkout #edd_discount_code{background:none;margin:0}.wp-block-edd-checkout #edd_checkout_cart_form #edd-discount-code-wrap,.wp-block-edd-checkout #edd_checkout_cart_form #edd_show_discount{background:transparent;border:none;margin:0;padding:0}.wp-block-edd-checkout #edd-payment-mode-wrap{clear:both;display:flex;flex-wrap:wrap;gap:.5rem}.wp-block-edd-checkout #edd-payment-mode-wrap label.edd-gateway-option{align-items:center;border:1px solid;border-radius:3px;display:flex!important;flex-grow:1;font-size:1rem;gap:.5rem;justify-content:center;margin:0!important;padding:.5rem 1rem;position:relative;text-align:center}.wp-block-edd-checkout #edd-payment-mode-wrap label.edd-gateway-option.edd-gateway-option-selected,.wp-block-edd-checkout #edd-payment-mode-wrap label.edd-gateway-option:hover{background-color:#eee}.wp-block-edd-checkout #edd-payment-mode-wrap label.edd-gateway-option:hover{cursor:pointer;transform:translateY(-1px)}.wp-block-edd-checkout #edd-payment-mode-wrap input{height:1em;margin:0;opacity:0;position:absolute;width:1em}.wp-block-edd-checkout #edd-payment-mode-wrap .edd-payment-icons{align-items:center;display:flex;gap:.25rem;margin:0}.wp-block-edd-checkout #edd-payment-mode-wrap .edd-payment-icons .payment-icon{margin:0;max-height:1rem;width:auto}.wp-block-edd-checkout #edd-payment-mode-wrap .edd-payment-icons .payment-icon.icon-paypal{max-height:1.5rem}.wp-block-edd-checkout .edd-discount-code-field-wrap{align-items:center;display:flex;gap:.5rem}.wp-block-edd-checkout .edd-loading-ajax.edd-loading{display:block;margin:0 auto}#edd_checkout_form_wrap.wp-block-edd-checkout>p{margin-bottom:0}.edd-blocks-form__cart .edd-blocks-cart__discount{text-align:left}.edd-blocks-form__cart #edd_checkout_cart .edd_discount{align-items:center;display:inline-flex;gap:.25rem;margin-left:.5rem}.edd-blocks__checkout-user{margin-bottom:2rem;position:relative}.edd-blocks__checkout-user fieldset.edd-blocks-form{margin-bottom:0!important}.edd-blocks__checkout-forms{display:flex;gap:.5rem;margin-bottom:1rem}.edd-blocks__checkout-forms button{padding:.5rem 1rem}@media(min-width:600px){.edd-blocks__checkout-forms{margin-bottom:0;position:absolute;right:2rem;z-index:99}}.edd-blocks-cart__row-buttons{justify-content:flex-end} +.edd-blocks-form__cart .edd_cart_remove_item_btn{border:none;margin-left:.5rem;padding:0;text-decoration:none}.edd-blocks-form__cart .edd_cart_remove_item_btn svg{opacity:.6}.edd-blocks-form__cart .edd_cart_remove_item_btn svg:hover{opacity:.9}.edd-blocks-form__cart #edd_checkout_cart{border:1px solid #eee;display:grid}.edd-blocks-form__cart .edd_cart_item_name{display:grid;gap:1rem}.edd-blocks-form__cart .edd_cart_item_name .edd_cart_actions{align-items:center;display:inline-flex;flex-basis:100%;gap:.5rem}.edd-blocks-form__cart .edd_cart_item_name .edd_cart_actions label{margin:0!important}.edd-blocks-form__cart .edd_cart_item_name .edd_cart_actions input.edd-item-quantity{width:3rem!important}.edd-blocks-form__cart .edd_checkout_cart_item_title{align-items:center;display:flex;gap:1rem}.edd-blocks-form__cart .edd_cart_fee_amount,.edd-blocks-form__cart .edd_cart_item_price{align-items:center;display:flex;gap:.5rem}@media(min-width:480px){.edd-blocks-form__cart .edd_cart_fee_amount,.edd-blocks-form__cart .edd_cart_item_price{justify-content:flex-end}}.edd-blocks-form__cart .edd-blocks-cart__row,.edd-blocks-form__cart .edd_cart_footer_row{align-items:center;display:flex;flex-wrap:wrap;gap:1rem;padding:1.5rem}.edd-blocks-form__cart .edd-blocks-cart__row>div:last-of-type:not(:first-of-type),.edd-blocks-form__cart .edd_cart_footer_row>div:last-of-type:not(:first-of-type){flex:1 1 110px}@media(min-width:480px){.edd-blocks-form__cart .edd-blocks-cart__row>div:last-of-type:not(:first-of-type),.edd-blocks-form__cart .edd_cart_footer_row>div:last-of-type:not(:first-of-type){text-align:right}}.edd-blocks-form__cart .edd-blocks-cart__items,.edd-blocks-form__cart .edd-blocks-cart__row-header{border-bottom:1px solid #eee}.edd-blocks-form__cart .edd-blocks-cart__row-header,.edd-blocks-form__cart .edd_cart_total{font-weight:700}.edd-blocks-form__cart .edd-blocks-cart__row-footer{text-align:right}.edd-blocks-form__cart .edd-blocks-cart__row-footer>div:only-child{flex-grow:1}.edd-blocks-form__cart .edd-blocks-cart__action-remove,.edd-blocks-form__cart .edd_discount_remove{background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMWVtIiBoZWlnaHQ9IjFlbSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBmaWxsPSJub25lIiB2aWV3Qm94PSIwIDAgMjQgMjQiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2U9ImN1cnJlbnRDb2xvciIgY2xhc3M9InctNiBoLTYiPgogIDxwYXRoIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgZD0iTTE0Ljc0IDlsLS4zNDYgOW0tNC43ODggMEw5LjI2IDltOS45NjgtMy4yMWMuMzQyLjA1Mi42ODIuMTA3IDEuMDIyLjE2Nm0tMS4wMjItLjE2NUwxOC4xNiAxOS42NzNhMi4yNSAyLjI1IDAgMDEtMi4yNDQgMi4wNzdIOC4wODRhMi4yNSAyLjI1IDAgMDEtMi4yNDQtMi4wNzdMNC43NzIgNS43OW0xNC40NTYgMGE0OC4xMDggNDguMTA4IDAgMDAtMy40NzgtLjM5N20tMTIgLjU2MmMuMzQtLjA1OS42OC0uMTE0IDEuMDIyLS4xNjVtMCAwYTQ4LjExIDQ4LjExIDAgMDEzLjQ3OC0uMzk3bTcuNSAwdi0uOTE2YzAtMS4xOC0uOTEtMi4xNjQtMi4wOS0yLjIwMWE1MS45NjQgNTEuOTY0IDAgMDAtMy4zMiAwYy0xLjE4LjAzNy0yLjA5IDEuMDIyLTIuMDkgMi4yMDF2LjkxNm03LjUgMGE0OC42NjcgNDguNjY3IDAgMDAtNy41IDAiIC8+Cjwvc3ZnPgo=) 50% no-repeat;background-size:1em;box-shadow:none!important;display:block;height:1em;opacity:.6;top:0;width:1em}.edd-blocks-form__cart .edd-blocks-cart__action-remove:hover,.edd-blocks-form__cart .edd_discount_remove:hover{background-position:50%;opacity:1}.edd-blocks-form__cart .edd_cart_item_image img{display:block}.screen-reader-text{clip:rect(1px,1px,1px,1px);word-wrap:normal!important;border:0;-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.edd-button-secondary,.edd-submit{transition:all .2s ease-in-out}.edd-button-secondary:active,.edd-button-secondary:hover,.edd-submit:active,.edd-submit:hover{transform:translateY(-1px)}.edd-button-secondary{background-color:var(--edd-blocks-light-grey);border:1px solid #ddd;border-radius:4px;color:unset;margin:0;padding:.5rem 1rem}.edd-button-secondary:disabled{opacity:.6}.wp-block-edd-checkout{display:grid;gap:1rem}.wp-block-edd-checkout #edd_purchase_form .edd-blocks-form{border:1px solid var(--edd-blocks-light-grey);display:grid;gap:1.25rem;padding:2rem}.widget .wp-block-edd-checkout #edd_purchase_form .edd-blocks-form{border:none;padding:0}.wp-block-edd-checkout #edd_purchase_form .edd-blocks-form .edd-blocks-form__group,.wp-block-edd-checkout #edd_purchase_form .edd-blocks-form legend{display:block;margin:0}.wp-block-edd-checkout #edd_purchase_form .edd-blocks-form .edd-blocks-form__group>label{display:block;margin-bottom:.5rem!important}.wp-block-edd-checkout #edd_purchase_form .edd-blocks-form input[type=email],.wp-block-edd-checkout #edd_purchase_form .edd-blocks-form input[type=password],.wp-block-edd-checkout #edd_purchase_form .edd-blocks-form input[type=text],.wp-block-edd-checkout #edd_purchase_form .edd-blocks-form select{box-sizing:border-box;display:block;padding:4px 6px;width:100%}.wp-block-edd-checkout #edd_purchase_form .edd-blocks-form .edd-blocks-form__halves{display:flex!important;gap:1rem;justify-content:space-between}@media(min-width:600px){.wp-block-edd-checkout #edd_purchase_form .edd-blocks-form .edd-blocks-form__halves>*{flex-basis:50%}}.wp-block-edd-checkout #edd_purchase_form p+.edd-blocks-form{margin-top:2rem}.wp-block-edd-checkout #edd_purchase_form .edd-button-secondary,.wp-block-edd-checkout #edd_purchase_form .edd-submit{transition:all .2s ease-in-out}.wp-block-edd-checkout #edd_purchase_form .edd-button-secondary:active,.wp-block-edd-checkout #edd_purchase_form .edd-button-secondary:hover,.wp-block-edd-checkout #edd_purchase_form .edd-submit:active,.wp-block-edd-checkout #edd_purchase_form .edd-submit:hover{transform:translateY(-1px)}.wp-block-edd-checkout #edd_purchase_form .edd-button-secondary{background-color:var(--edd-blocks-light-grey);border:1px solid #ddd;border-radius:4px;color:unset;margin:0;padding:.5rem 1rem}.wp-block-edd-checkout #edd_purchase_form .edd-button-secondary:disabled{opacity:.6}.wp-block-edd-checkout #edd_purchase_form select{padding:4px 6px}.wp-block-edd-checkout .edd-blocks-form__cart,.wp-block-edd-checkout .edd-blocks-form__purchase{border:none;padding:0}.wp-block-edd-checkout #edd_discount_code{background:none;margin:0}.wp-block-edd-checkout #edd_checkout_cart_form #edd-discount-code-wrap,.wp-block-edd-checkout #edd_checkout_cart_form #edd_show_discount{background:transparent;border:none;margin:0;padding:0}.wp-block-edd-checkout #edd-payment-mode-wrap{clear:both;display:flex;flex-wrap:wrap;gap:.5rem}.wp-block-edd-checkout #edd-payment-mode-wrap label.edd-gateway-option{align-items:center;border:1px solid;border-radius:3px;display:flex!important;flex-grow:1;font-size:1rem;gap:.5rem;justify-content:center;margin:0!important;padding:.5rem 1rem;position:relative;text-align:center}.wp-block-edd-checkout #edd-payment-mode-wrap label.edd-gateway-option.edd-gateway-option-selected,.wp-block-edd-checkout #edd-payment-mode-wrap label.edd-gateway-option:hover{background-color:#eee}.wp-block-edd-checkout #edd-payment-mode-wrap label.edd-gateway-option:hover{cursor:pointer;transform:translateY(-1px)}.wp-block-edd-checkout #edd-payment-mode-wrap input{height:1em;margin:0;opacity:0;position:absolute;width:1em}.wp-block-edd-checkout #edd-payment-mode-wrap .edd-payment-icons{align-items:center;display:flex;gap:.25rem;margin:0}.wp-block-edd-checkout #edd-payment-mode-wrap .edd-payment-icons .payment-icon{margin:0;max-height:1rem;width:auto}.wp-block-edd-checkout #edd-payment-mode-wrap .edd-payment-icons .payment-icon.icon-paypal{max-height:1.5rem}.wp-block-edd-checkout .edd-discount-code-field-wrap{align-items:center;display:flex;gap:.5rem}.wp-block-edd-checkout .edd-loading-ajax.edd-loading{display:block;margin:0 auto}#edd_checkout_form_wrap.wp-block-edd-checkout>p{margin-bottom:0}.edd-blocks-form__cart .edd-blocks-cart__discount{text-align:left}.edd-blocks-form__cart #edd_checkout_cart .edd_discount{align-items:center;display:inline-flex;gap:.25rem;margin-left:.5rem}.edd-blocks__checkout-user{margin-bottom:2rem;position:relative}.edd-blocks__checkout-user fieldset.edd-blocks-form{margin-bottom:0!important}.edd-blocks__checkout-forms{display:flex;gap:.5rem;margin-bottom:1rem}.edd-blocks__checkout-forms button{padding:.5rem 1rem}@media(min-width:600px){.edd-blocks__checkout-forms{margin-bottom:0;position:absolute;right:2rem;z-index:99}}.edd-blocks-cart__row-buttons{justify-content:flex-end} diff --git a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/downloads/index.asset.php b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/downloads/index.asset.php index 104af37e..ef8da175 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/downloads/index.asset.php +++ b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/downloads/index.asset.php @@ -1 +1 @@ - array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-server-side-render'), 'version' => '2066313c4795ca117892'); + array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-server-side-render'), 'version' => '21903bcd30e08c89eb77'); diff --git a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/downloads/index.css b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/downloads/index.css index d28bad17..e3d595e8 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/downloads/index.css +++ b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/downloads/index.css @@ -1 +1 @@ -.edd-no-js{display:none!important}svg.edd-blocks__icon{fill:none!important}.editor-styles-wrapper .components-placeholder a.components-button.edd-new-download{background-color:var(--wp-admin-theme-color)!important;color:#fff!important;line-height:1.5;margin:0 auto!important;padding:.5em 1em;text-decoration:none}.edd-blocks-term-selector select{min-height:60px!important}.edd-blocks-term-selector svg{display:none!important} +.edd-no-js{display:none!important}svg.edd-blocks__icon{fill:none!important}.editor-styles-wrapper .components-placeholder{align-items:center;background-color:#fefefe;border-radius:5px}.editor-styles-wrapper .components-placeholder__fieldset{justify-content:center}.editor-styles-wrapper .components-placeholder div.edd-downloads--actions{display:flex;gap:2em;justify-content:space-around}.editor-styles-wrapper .components-placeholder div.edd-downloads--actions a.components-button{line-height:1.5;margin-right:0;padding:.5em 1em;text-decoration:none}.editor-styles-wrapper .components-placeholder div.edd-downloads--actions a.components-button.edd-downloads--primary{background-color:var(--wp-admin-theme-color);color:#fff}.editor-styles-wrapper .components-placeholder div.edd-downloads--actions a.components-button.edd-downloads--secondary{background-color:#fff;border:1px solid var(--wp-admin-theme-color);color:var(--wp-admin-theme-color)}.edd-blocks-term-selector select{min-height:60px!important}.edd-blocks-term-selector svg{display:none!important} diff --git a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/downloads/index.js b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/downloads/index.js index 49a6658b..990e1706 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/downloads/index.js +++ b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/downloads/index.js @@ -1 +1 @@ -(()=>{"use strict";var e,a={53:(e,a,l)=>{const o=window.wp.blocks,t=window.wp.element,n=window.wp.i18n,d=window.wp.components,s=window.wp.serverSideRender;var i=l.n(s);const r=[{value:"none",label:(0,n.__)("None","easy-digital-downloads")},{value:"center",label:(0,n.__)("Center","easy-digital-downloads")},{value:"left",label:(0,n.__)("Left","easy-digital-downloads")},{value:"right",label:(0,n.__)("Right","easy-digital-downloads")}],c=[{value:"ASC",label:(0,n.__)("Ascending","easy-digital-downloads")},{value:"DESC",label:(0,n.__)("Descending","easy-digital-downloads")}],g=[{value:"thumbnail",label:(0,n.__)("Thumbnail","easy-digital-downloads")},{value:"medium",label:(0,n.__)("Medium","easy-digital-downloads")},{value:"large",label:(0,n.__)("Large","easy-digital-downloads")}],_=window.wp.blockEditor,w=[{value:"",label:(0,n.__)("Default","easy-digital-downloads")},{value:"center",label:(0,n.__)("Center","easy-digital-downloads")},{value:"left",label:(0,n.__)("Left","easy-digital-downloads")},{value:"right",label:(0,n.__)("Right","easy-digital-downloads")},{value:"wide",label:(0,n.__)("Wide","easy-digital-downloads")}],m=[{value:"date",label:(0,n.__)("Date Published","easy-digital-downloads")},{value:"price",label:(0,n.__)("Price","easy-digital-downloads")},{value:"ID",label:(0,n.__)("ID","easy-digital-downloads")},{value:"title",label:(0,n.__)("Title","easy-digital-downloads")},{value:"sales",label:(0,n.__)("Sales","easy-digital-downloads")},{value:"earnings",label:(0,n.__)("Earnings","easy-digital-downloads")},{value:"modified",label:(0,n.__)("Date Modified","easy-digital-downloads")},{value:"rand",label:(0,n.__)("Random","easy-digital-downloads")}],u=window.wp.data,h=(e,a)=>{const l=[{value:"",label:a}],o=(0,u.useSelect)((a=>a("core").getEntityRecords("taxonomy",e,{per_page:-1})));return(0,u.useSelect)((a=>a("core/data").isResolving("core","getEntityRecords",["taxonomy",e])))||o&&o.map((e=>{let{id:a,name:o}=e;l.push({value:a,label:o})})),l},v=[{value:"",label:(0,n.__)("No Content","easy-digital-downloads")},{value:"content",label:(0,n.__)("Full Content","easy-digital-downloads")},{value:"excerpt",label:(0,n.__)("Excerpt","easy-digital-downloads")}],p=[{value:"",label:(0,n.__)("No Image","easy-digital-downloads")},{value:"before_entry_title",label:(0,n.__)("Before Title","easy-digital-downloads")},{value:"after_entry_title",label:(0,n.__)("After Title","easy-digital-downloads")}],b={edd_blocks_is_block_editor:EDDBlocks.current_user},k=JSON.parse('{"u2":"edd/downloads","qv":"download"}'),y={button:(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"edd-blocks__icon"},(0,t.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 8.25h19.5M2.25 9h19.5m-16.5 5.25h6m-6 2.25h3m-3.75 3h15a2.25 2.25 0 002.25-2.25V6.75A2.25 2.25 0 0019.5 4.5h-15a2.25 2.25 0 00-2.25 2.25v10.5A2.25 2.25 0 004.5 19.5z"})),cart:(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"edd-blocks__icon"},(0,t.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 3h1.386c.51 0 .955.343 1.087.835l.383 1.437M7.5 14.25a3 3 0 00-3 3h15.75m-12.75-3h11.218c1.121-2.3 2.1-4.684 2.924-7.138a60.114 60.114 0 00-16.536-1.84M7.5 14.25L5.106 5.272M6 20.25a.75.75 0 11-1.5 0 .75.75 0 011.5 0zm12.75 0a.75.75 0 11-1.5 0 .75.75 0 011.5 0z"})),products:(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"edd-blocks__icon"},(0,t.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 10.5V6a3.75 3.75 0 10-7.5 0v4.5m11.356-1.993l1.263 12c.07.665-.45 1.243-1.119 1.243H4.25a1.125 1.125 0 01-1.12-1.243l1.264-12A1.125 1.125 0 015.513 7.5h12.974c.576 0 1.059.435 1.119 1.007zM8.625 10.5a.375.375 0 11-.75 0 .375.375 0 01.75 0zm7.5 0a.375.375 0 11-.75 0 .375.375 0 01.75 0z"})),"yes-alt":(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"edd-blocks__icon"},(0,t.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75L11.25 15 15 9.75M21 12c0 1.268-.63 2.39-1.593 3.068a3.745 3.745 0 01-1.043 3.296 3.745 3.745 0 01-3.296 1.043A3.745 3.745 0 0112 21c-1.268 0-2.39-.63-3.068-1.593a3.746 3.746 0 01-3.296-1.043 3.745 3.745 0 01-1.043-3.296A3.745 3.745 0 013 12c0-1.268.63-2.39 1.593-3.068a3.745 3.745 0 011.043-3.296 3.746 3.746 0 013.296-1.043A3.746 3.746 0 0112 3c1.268 0 2.39.63 3.068 1.593a3.746 3.746 0 013.296 1.043 3.746 3.746 0 011.043 3.296A3.745 3.745 0 0121 12z"})),download:(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"edd-blocks__icon-downloads"},(0,t.createElement)("path",{fillRule:"evenodd",d:"M12 2.25a.75.75 0 01.75.75v11.69l3.22-3.22a.75.75 0 111.06 1.06l-4.5 4.5a.75.75 0 01-1.06 0l-4.5-4.5a.75.75 0 111.06-1.06l3.22 3.22V3a.75.75 0 01.75-.75zm-9 13.5a.75.75 0 01.75.75v2.25a1.5 1.5 0 001.5 1.5h13.5a1.5 1.5 0 001.5-1.5V16.5a.75.75 0 011.5 0v2.25a3 3 0 01-3 3H5.25a3 3 0 01-3-3V16.5a.75.75 0 01.75-.75z",clipRule:"evenodd"})),unlock:(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"edd-blocks__icon"},(0,t.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 10.5V6.75a4.5 4.5 0 119 0v3.75M3.75 21.75h10.5a2.25 2.25 0 002.25-2.25v-6.75a2.25 2.25 0 00-2.25-2.25H3.75a2.25 2.25 0 00-2.25 2.25v6.75a2.25 2.25 0 002.25 2.25z"})),"editor-table":(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"edd-blocks__icon"},(0,t.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 12h16.5m-16.5 3.75h16.5M3.75 19.5h16.5M5.625 4.5h12.75a1.875 1.875 0 010 3.75H5.625a1.875 1.875 0 010-3.75z"})),money:(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"edd-blocks__icon"},(0,t.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 18.75a60.07 60.07 0 0115.797 2.101c.727.198 1.453-.342 1.453-1.096V18.75M3.75 4.5v.75A.75.75 0 013 6h-.75m0 0v-.375c0-.621.504-1.125 1.125-1.125H20.25M2.25 6v9m18-10.5v.75c0 .414.336.75.75.75h.75m-1.5-1.5h.375c.621 0 1.125.504 1.125 1.125v9.75c0 .621-.504 1.125-1.125 1.125h-.375m1.5-1.5H21a.75.75 0 00-.75.75v.75m0 0H3.75m0 0h-.375a1.125 1.125 0 01-1.125-1.125V15m1.5 1.5v-.75A.75.75 0 003 15h-.75M15 10.5a3 3 0 11-6 0 3 3 0 016 0zm3 0h.008v.008H18V10.5zm-12 0h.008v.008H6V10.5z"})),id:(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"edd-blocks__icon"},(0,t.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 9h3.75M15 12h3.75M15 15h3.75M4.5 19.5h15a2.25 2.25 0 002.25-2.25V6.75A2.25 2.25 0 0019.5 4.5h-15a2.25 2.25 0 00-2.25 2.25v10.5A2.25 2.25 0 004.5 19.5zm6-10.125a1.875 1.875 0 11-3.75 0 1.875 1.875 0 013.75 0zm1.294 6.336a6.721 6.721 0 01-3.17.789 6.721 6.721 0 01-3.168-.789 3.376 3.376 0 016.338 0z"})),category:(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"edd-blocks__icon"},(0,t.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.75V12A2.25 2.25 0 014.5 9.75h15A2.25 2.25 0 0121.75 12v.75m-8.69-6.44l-2.12-2.12a1.5 1.5 0 00-1.061-.44H4.5A2.25 2.25 0 002.25 6v12a2.25 2.25 0 002.25 2.25h15A2.25 2.25 0 0021.75 18V9a2.25 2.25 0 00-2.25-2.25h-5.379a1.5 1.5 0 01-1.06-.44z"})),"admin-links":(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"edd-blocks__icon"},(0,t.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.19 8.688a4.5 4.5 0 011.242 7.244l-4.5 4.5a4.5 4.5 0 01-6.364-6.364l1.757-1.757m13.35-.622l1.757-1.757a4.5 4.5 0 00-6.364-6.364l-4.5 4.5a4.5 4.5 0 001.242 7.244"})),money:(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"edd-blocks__icon"},(0,t.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.25 7.756a4.5 4.5 0 100 8.488M7.5 10.5h5.25m-5.25 3h5.25M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}))};var E;(0,o.registerBlockType)(k.u2,{icon:(E=k.qv,y[E]),edit:function(e){let{attributes:a,setAttributes:l}=e;if(!EDDBlocks.has_downloads)return(0,t.createElement)("div",(0,_.useBlockProps)(),(0,t.createElement)(d.Placeholder,{icon:"download",label:(0,n.__)("No Downloads Found","easy-digital-downloads")},(0,t.createElement)("a",{href:EDDBlocks.new_download,className:"components-button edd-new-download",target:"_blank"},(0,n.__)("Create Your First Download","easy-digital-downloads"))));const o=e=>a=>l({[e]:a}),s=h("download_category",(0,n.__)("All Categories","easy-digital-downloads")),u=h("download_tag",(0,n.__)("All Categories","easy-digital-downloads"));return(0,t.createElement)("div",(0,_.useBlockProps)(),(0,t.createElement)(_.InspectorControls,null,(0,t.createElement)(d.PanelBody,{title:(0,n.__)("Product Block Settings","easy-digital-downloads")},(0,t.createElement)("p",{className:"description"},(0,n.__)("Decide how to display your products.","easy-digital-downloads")),(0,t.createElement)(d.RangeControl,{label:(0,n.__)("Downloads per Page","easy-digital-downloads"),value:a.number,onChange:o("number"),min:1,max:100}),!!EDDBlocks.all_access&&(0,t.createElement)(d.ToggleControl,{label:(0,n.__)("Show All Access Downloads","easy-digital-downloads"),checked:!!a.all_access,onChange:o("all_access")}),(0,t.createElement)(d.RangeControl,{label:(0,n.__)("Number of Columns","easy-digital-downloads"),value:a.columns,onChange:o("columns"),min:1,max:6}),(0,t.createElement)(d.SelectControl,{label:(0,n.__)("Order By","easy-digital-downloads"),value:a.orderby,options:m,onChange:o("orderby")}),(0,t.createElement)(d.SelectControl,{label:(0,n.__)("Order","easy-digital-downloads"),value:a.order,options:c,onChange:o("order")}),"rand"!==a.orderby&&(0,t.createElement)(d.ToggleControl,{label:(0,n.__)("Show Pagination","easy-digital-downloads"),checked:!!a.pagination,onChange:o("pagination")})),!a.all_access&&(0,t.createElement)(d.PanelBody,{title:(0,n.__)("Download Term Settings","easy-digital-downloads"),initialOpen:!1},(0,t.createElement)(d.SelectControl,{multiple:!0,className:"edd-blocks-term-selector",label:(0,n.__)("Show Downloads From Categories","easy-digital-downloads"),value:a.category,options:s,onChange:o("category")}),(0,t.createElement)(d.SelectControl,{multiple:!0,className:"edd-blocks-term-selector",label:(0,n.__)("Show Downloads From Tags","easy-digital-downloads"),value:a.tag,options:u,onChange:o("tag")})),(0,t.createElement)(d.PanelBody,{title:(0,n.__)("Individual Product Settings","easy-digital-downloads"),initialOpen:!1},(0,t.createElement)(d.ToggleControl,{label:(0,n.__)("Show Title","easy-digital-downloads"),checked:!!a.title,onChange:o("title")}),(0,t.createElement)(d.SelectControl,{label:(0,n.__)("Featured Image Location","easy-digital-downloads"),value:a.image_location,options:p,onChange:o("image_location")}),!!a.image_location&&(0,t.createElement)(d.ToggleControl,{label:(0,n.__)("Should the featured image link to the product?","easy-digital-downloads"),checked:!!a.image_link,onChange:o("image_link")}),!!a.image_location&&(0,t.createElement)(d.SelectControl,{label:(0,n.__)("Featured Image Size","easy-digital-downloads"),value:a.image_size,options:g,onChange:o("image_size")}),!!a.image_location&&(0,t.createElement)(d.SelectControl,{label:(0,n.__)("Featured Image Alignment","easy-digital-downloads"),value:a.image_alignment,options:r,onChange:o("image_alignment")}),(0,t.createElement)(d.SelectControl,{label:(0,n.__)("Content","easy-digital-downloads"),value:a.content,options:v,onChange:o("content")}),(0,t.createElement)(d.ToggleControl,{label:(0,n.__)("Show Price","easy-digital-downloads"),checked:!!a.price,onChange:o("price")}),(0,t.createElement)(d.ToggleControl,{label:(0,n.__)("Show Purchase Button","easy-digital-downloads"),checked:!!a.purchase_link,onChange:o("purchase_link")}),!!a.purchase_link&&(0,t.createElement)(t.Fragment,null,(0,t.createElement)(d.SelectControl,{label:(0,n.__)("Purchase Button Alignment","easy-digital-downloads"),value:a.purchase_link_align,options:w,onChange:o("purchase_link_align")}),(0,t.createElement)(d.ToggleControl,{label:(0,n.__)("Show Price on Button","easy-digital-downloads"),checked:!!a.show_price,onChange:o("show_price")})))),(0,t.createElement)(d.Disabled,null,(0,t.createElement)(i(),{block:"edd/downloads",attributes:{...a},urlQueryArgs:b})))}})}},l={};function o(e){var t=l[e];if(void 0!==t)return t.exports;var n=l[e]={exports:{}};return a[e](n,n.exports,o),n.exports}o.m=a,e=[],o.O=(a,l,t,n)=>{if(!l){var d=1/0;for(c=0;c=n)&&Object.keys(o.O).every((e=>o.O[e](l[i])))?l.splice(i--,1):(s=!1,n0&&e[c-1][2]>n;c--)e[c]=e[c-1];e[c]=[l,t,n]},o.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return o.d(a,{a}),a},o.d=(e,a)=>{for(var l in a)o.o(a,l)&&!o.o(e,l)&&Object.defineProperty(e,l,{enumerable:!0,get:a[l]})},o.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),(()=>{var e={411:0,342:0};o.O.j=a=>0===e[a];var a=(a,l)=>{var t,n,d=l[0],s=l[1],i=l[2],r=0;if(d.some((a=>0!==e[a]))){for(t in s)o.o(s,t)&&(o.m[t]=s[t]);if(i)var c=i(o)}for(a&&a(l);ro(53)));t=o.O(t)})(); \ No newline at end of file +(()=>{"use strict";var e,a={349:(e,a,l)=>{const o=window.wp.blocks,t=window.wp.element,n=window.wp.i18n,s=window.wp.components,d=window.wp.serverSideRender;var r=l.n(d);const i=[{value:"none",label:(0,n.__)("None","easy-digital-downloads")},{value:"center",label:(0,n.__)("Center","easy-digital-downloads")},{value:"left",label:(0,n.__)("Left","easy-digital-downloads")},{value:"right",label:(0,n.__)("Right","easy-digital-downloads")}],c=[{value:"ASC",label:(0,n.__)("Ascending","easy-digital-downloads")},{value:"DESC",label:(0,n.__)("Descending","easy-digital-downloads")}],_=[{value:"thumbnail",label:(0,n.__)("Thumbnail","easy-digital-downloads")},{value:"medium",label:(0,n.__)("Medium","easy-digital-downloads")},{value:"large",label:(0,n.__)("Large","easy-digital-downloads")}],g=window.wp.blockEditor,w=[{value:"",label:(0,n.__)("Default","easy-digital-downloads")},{value:"center",label:(0,n.__)("Center","easy-digital-downloads")},{value:"left",label:(0,n.__)("Left","easy-digital-downloads")},{value:"right",label:(0,n.__)("Right","easy-digital-downloads")},{value:"wide",label:(0,n.__)("Wide","easy-digital-downloads")}],m=[{value:"date",label:(0,n.__)("Date Published","easy-digital-downloads")},{value:"price",label:(0,n.__)("Price","easy-digital-downloads")},{value:"ID",label:(0,n.__)("ID","easy-digital-downloads")},{value:"title",label:(0,n.__)("Title","easy-digital-downloads")},{value:"sales",label:(0,n.__)("Sales","easy-digital-downloads")},{value:"earnings",label:(0,n.__)("Earnings","easy-digital-downloads")},{value:"modified",label:(0,n.__)("Date Modified","easy-digital-downloads")},{value:"rand",label:(0,n.__)("Random","easy-digital-downloads")}],u=window.wp.data,h=(e,a)=>{const l=[{value:"",label:a}],o=(0,u.useSelect)((a=>a("core").getEntityRecords("taxonomy",e,{per_page:-1})));return(0,u.useSelect)((a=>a("core/data").isResolving("core","getEntityRecords",["taxonomy",e])))||o&&o.map((e=>{let{id:a,name:o}=e;l.push({value:a,label:o})})),l},v=[{value:"",label:(0,n.__)("No Content","easy-digital-downloads")},{value:"content",label:(0,n.__)("Full Content","easy-digital-downloads")},{value:"excerpt",label:(0,n.__)("Excerpt","easy-digital-downloads")}],p=[{value:"",label:(0,n.__)("No Image","easy-digital-downloads")},{value:"before_entry_title",label:(0,n.__)("Before Title","easy-digital-downloads")},{value:"after_entry_title",label:(0,n.__)("After Title","easy-digital-downloads")}],b={edd_blocks_is_block_editor:EDDBlocks.current_user};function k(){return k=Object.assign?Object.assign.bind():function(e){for(var a=1;aa=>l({[e]:a}),d=h("download_category",(0,n.__)("All Categories","easy-digital-downloads")),u=h("download_tag",(0,n.__)("All Categories","easy-digital-downloads"));return(0,t.createElement)("div",(0,g.useBlockProps)(),(0,t.createElement)(g.InspectorControls,null,(0,t.createElement)(s.PanelBody,{title:(0,n.__)("Product Block Settings","easy-digital-downloads")},(0,t.createElement)("p",{className:"description"},(0,n.__)("Decide how to display your products.","easy-digital-downloads")),(0,t.createElement)(s.RangeControl,{label:(0,n.__)("Downloads per Page","easy-digital-downloads"),value:a.number,onChange:o("number"),min:1,max:100}),!!EDDBlocks.all_access&&(0,t.createElement)(s.ToggleControl,{label:(0,n.__)("Show All Access Downloads","easy-digital-downloads"),checked:!!a.all_access,onChange:o("all_access")}),(0,t.createElement)(s.RangeControl,{label:(0,n.__)("Number of Columns","easy-digital-downloads"),value:a.columns,onChange:o("columns"),min:1,max:6}),(0,t.createElement)(s.SelectControl,{label:(0,n.__)("Order By","easy-digital-downloads"),value:a.orderby,options:m,onChange:o("orderby")}),(0,t.createElement)(s.SelectControl,{label:(0,n.__)("Order","easy-digital-downloads"),value:a.order,options:c,onChange:o("order")}),"rand"!==a.orderby&&(0,t.createElement)(s.ToggleControl,{label:(0,n.__)("Show Pagination","easy-digital-downloads"),checked:!!a.pagination,onChange:o("pagination")})),!a.all_access&&(0,t.createElement)(s.PanelBody,{title:(0,n.__)("Download Term Settings","easy-digital-downloads"),initialOpen:!1},(0,t.createElement)(s.SelectControl,{multiple:!0,className:"edd-blocks-term-selector",label:(0,n.__)("Show Downloads From Categories","easy-digital-downloads"),value:a.category,options:d,onChange:o("category")}),(0,t.createElement)(s.SelectControl,{multiple:!0,className:"edd-blocks-term-selector",label:(0,n.__)("Show Downloads From Tags","easy-digital-downloads"),value:a.tag,options:u,onChange:o("tag")})),(0,t.createElement)(s.PanelBody,{title:(0,n.__)("Individual Product Settings","easy-digital-downloads"),initialOpen:!1},(0,t.createElement)(s.ToggleControl,{label:(0,n.__)("Show Title","easy-digital-downloads"),checked:!!a.title,onChange:o("title")}),(0,t.createElement)(s.SelectControl,{label:(0,n.__)("Featured Image Location","easy-digital-downloads"),value:a.image_location,options:p,onChange:o("image_location")}),!!a.image_location&&(0,t.createElement)(s.ToggleControl,{label:(0,n.__)("Should the featured image link to the product?","easy-digital-downloads"),checked:!!a.image_link,onChange:o("image_link")}),!!a.image_location&&(0,t.createElement)(s.SelectControl,{label:(0,n.__)("Featured Image Size","easy-digital-downloads"),value:a.image_size,options:_,onChange:o("image_size")}),!!a.image_location&&(0,t.createElement)(s.SelectControl,{label:(0,n.__)("Featured Image Alignment","easy-digital-downloads"),value:a.image_alignment,options:i,onChange:o("image_alignment")}),(0,t.createElement)(s.SelectControl,{label:(0,n.__)("Content","easy-digital-downloads"),value:a.content,options:v,onChange:o("content")}),(0,t.createElement)(s.ToggleControl,{label:(0,n.__)("Show Price","easy-digital-downloads"),checked:!!a.price,onChange:o("price")}),(0,t.createElement)(s.ToggleControl,{label:(0,n.__)("Show Purchase Button","easy-digital-downloads"),checked:!!a.purchase_link,onChange:o("purchase_link")}),!!a.purchase_link&&(0,t.createElement)(t.Fragment,null,(0,t.createElement)(s.SelectControl,{label:(0,n.__)("Purchase Button Alignment","easy-digital-downloads"),value:a.purchase_link_align,options:w,onChange:o("purchase_link_align")}),(0,t.createElement)(s.ToggleControl,{label:(0,n.__)("Show Price on Button","easy-digital-downloads"),checked:!!a.show_price,onChange:o("show_price")})))),(0,t.createElement)(s.Disabled,null,(0,t.createElement)(r(),{block:"edd/downloads",attributes:{...a},urlQueryArgs:b})))}})}},l={};function o(e){var t=l[e];if(void 0!==t)return t.exports;var n=l[e]={exports:{}};return a[e](n,n.exports,o),n.exports}o.m=a,e=[],o.O=(a,l,t,n)=>{if(!l){var s=1/0;for(c=0;c=n)&&Object.keys(o.O).every((e=>o.O[e](l[r])))?l.splice(r--,1):(d=!1,n0&&e[c-1][2]>n;c--)e[c]=e[c-1];e[c]=[l,t,n]},o.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return o.d(a,{a}),a},o.d=(e,a)=>{for(var l in a)o.o(a,l)&&!o.o(e,l)&&Object.defineProperty(e,l,{enumerable:!0,get:a[l]})},o.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),(()=>{var e={411:0,342:0};o.O.j=a=>0===e[a];var a=(a,l)=>{var t,n,s=l[0],d=l[1],r=l[2],i=0;if(s.some((a=>0!==e[a]))){for(t in d)o.o(d,t)&&(o.m[t]=d[t]);if(r)var c=r(o)}for(a&&a(l);io(349)));t=o.O(t)})(); \ No newline at end of file diff --git a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/terms/index.asset.php b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/terms/index.asset.php index 96bda980..88f244c4 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/terms/index.asset.php +++ b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/terms/index.asset.php @@ -1 +1 @@ - array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-server-side-render'), 'version' => 'b5c8776e3d561d9f287e'); + array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-server-side-render'), 'version' => 'db173b2cb95eaab8c3ff'); diff --git a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/terms/index.js b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/terms/index.js index 92f5975f..b2997dbf 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/terms/index.js +++ b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/terms/index.js @@ -1 +1 @@ -(()=>{"use strict";var e,o={874:(e,o,a)=>{const l=window.wp.blocks,t=window.wp.element,n=window.wp.i18n,r=window.wp.components,s=window.wp.serverSideRender;var i=a.n(s);const d=window.wp.blockEditor,c=[{value:"none",label:(0,n.__)("None","easy-digital-downloads")},{value:"center",label:(0,n.__)("Center","easy-digital-downloads")},{value:"left",label:(0,n.__)("Left","easy-digital-downloads")},{value:"right",label:(0,n.__)("Right","easy-digital-downloads")}],m=[{value:"ASC",label:(0,n.__)("Ascending","easy-digital-downloads")},{value:"DESC",label:(0,n.__)("Descending","easy-digital-downloads")}],w=[{value:"thumbnail",label:(0,n.__)("Thumbnail","easy-digital-downloads")},{value:"medium",label:(0,n.__)("Medium","easy-digital-downloads")},{value:"large",label:(0,n.__)("Large","easy-digital-downloads")}],g=[{value:"download_category",label:(0,n.__)("Download Categories","easy-digital-downloads")},{value:"download_tag",label:(0,n.__)("Download Tags","easy-digital-downloads")}],h=JSON.parse('{"u2":"edd/terms","qv":"category"}'),u={button:(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"edd-blocks__icon"},(0,t.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 8.25h19.5M2.25 9h19.5m-16.5 5.25h6m-6 2.25h3m-3.75 3h15a2.25 2.25 0 002.25-2.25V6.75A2.25 2.25 0 0019.5 4.5h-15a2.25 2.25 0 00-2.25 2.25v10.5A2.25 2.25 0 004.5 19.5z"})),cart:(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"edd-blocks__icon"},(0,t.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 3h1.386c.51 0 .955.343 1.087.835l.383 1.437M7.5 14.25a3 3 0 00-3 3h15.75m-12.75-3h11.218c1.121-2.3 2.1-4.684 2.924-7.138a60.114 60.114 0 00-16.536-1.84M7.5 14.25L5.106 5.272M6 20.25a.75.75 0 11-1.5 0 .75.75 0 011.5 0zm12.75 0a.75.75 0 11-1.5 0 .75.75 0 011.5 0z"})),products:(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"edd-blocks__icon"},(0,t.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 10.5V6a3.75 3.75 0 10-7.5 0v4.5m11.356-1.993l1.263 12c.07.665-.45 1.243-1.119 1.243H4.25a1.125 1.125 0 01-1.12-1.243l1.264-12A1.125 1.125 0 015.513 7.5h12.974c.576 0 1.059.435 1.119 1.007zM8.625 10.5a.375.375 0 11-.75 0 .375.375 0 01.75 0zm7.5 0a.375.375 0 11-.75 0 .375.375 0 01.75 0z"})),"yes-alt":(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"edd-blocks__icon"},(0,t.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75L11.25 15 15 9.75M21 12c0 1.268-.63 2.39-1.593 3.068a3.745 3.745 0 01-1.043 3.296 3.745 3.745 0 01-3.296 1.043A3.745 3.745 0 0112 21c-1.268 0-2.39-.63-3.068-1.593a3.746 3.746 0 01-3.296-1.043 3.745 3.745 0 01-1.043-3.296A3.745 3.745 0 013 12c0-1.268.63-2.39 1.593-3.068a3.745 3.745 0 011.043-3.296 3.746 3.746 0 013.296-1.043A3.746 3.746 0 0112 3c1.268 0 2.39.63 3.068 1.593a3.746 3.746 0 013.296 1.043 3.746 3.746 0 011.043 3.296A3.745 3.745 0 0121 12z"})),download:(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"edd-blocks__icon-downloads"},(0,t.createElement)("path",{fillRule:"evenodd",d:"M12 2.25a.75.75 0 01.75.75v11.69l3.22-3.22a.75.75 0 111.06 1.06l-4.5 4.5a.75.75 0 01-1.06 0l-4.5-4.5a.75.75 0 111.06-1.06l3.22 3.22V3a.75.75 0 01.75-.75zm-9 13.5a.75.75 0 01.75.75v2.25a1.5 1.5 0 001.5 1.5h13.5a1.5 1.5 0 001.5-1.5V16.5a.75.75 0 011.5 0v2.25a3 3 0 01-3 3H5.25a3 3 0 01-3-3V16.5a.75.75 0 01.75-.75z",clipRule:"evenodd"})),unlock:(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"edd-blocks__icon"},(0,t.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 10.5V6.75a4.5 4.5 0 119 0v3.75M3.75 21.75h10.5a2.25 2.25 0 002.25-2.25v-6.75a2.25 2.25 0 00-2.25-2.25H3.75a2.25 2.25 0 00-2.25 2.25v6.75a2.25 2.25 0 002.25 2.25z"})),"editor-table":(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"edd-blocks__icon"},(0,t.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 12h16.5m-16.5 3.75h16.5M3.75 19.5h16.5M5.625 4.5h12.75a1.875 1.875 0 010 3.75H5.625a1.875 1.875 0 010-3.75z"})),money:(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"edd-blocks__icon"},(0,t.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 18.75a60.07 60.07 0 0115.797 2.101c.727.198 1.453-.342 1.453-1.096V18.75M3.75 4.5v.75A.75.75 0 013 6h-.75m0 0v-.375c0-.621.504-1.125 1.125-1.125H20.25M2.25 6v9m18-10.5v.75c0 .414.336.75.75.75h.75m-1.5-1.5h.375c.621 0 1.125.504 1.125 1.125v9.75c0 .621-.504 1.125-1.125 1.125h-.375m1.5-1.5H21a.75.75 0 00-.75.75v.75m0 0H3.75m0 0h-.375a1.125 1.125 0 01-1.125-1.125V15m1.5 1.5v-.75A.75.75 0 003 15h-.75M15 10.5a3 3 0 11-6 0 3 3 0 016 0zm3 0h.008v.008H18V10.5zm-12 0h.008v.008H6V10.5z"})),id:(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"edd-blocks__icon"},(0,t.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 9h3.75M15 12h3.75M15 15h3.75M4.5 19.5h15a2.25 2.25 0 002.25-2.25V6.75A2.25 2.25 0 0019.5 4.5h-15a2.25 2.25 0 00-2.25 2.25v10.5A2.25 2.25 0 004.5 19.5zm6-10.125a1.875 1.875 0 11-3.75 0 1.875 1.875 0 013.75 0zm1.294 6.336a6.721 6.721 0 01-3.17.789 6.721 6.721 0 01-3.168-.789 3.376 3.376 0 016.338 0z"})),category:(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"edd-blocks__icon"},(0,t.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.75V12A2.25 2.25 0 014.5 9.75h15A2.25 2.25 0 0121.75 12v.75m-8.69-6.44l-2.12-2.12a1.5 1.5 0 00-1.061-.44H4.5A2.25 2.25 0 002.25 6v12a2.25 2.25 0 002.25 2.25h15A2.25 2.25 0 0021.75 18V9a2.25 2.25 0 00-2.25-2.25h-5.379a1.5 1.5 0 01-1.06-.44z"})),"admin-links":(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"edd-blocks__icon"},(0,t.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.19 8.688a4.5 4.5 0 011.242 7.244l-4.5 4.5a4.5 4.5 0 01-6.364-6.364l1.757-1.757m13.35-.622l1.757-1.757a4.5 4.5 0 00-6.364-6.364l-4.5 4.5a4.5 4.5 0 001.242 7.244"})),money:(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"edd-blocks__icon"},(0,t.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.25 7.756a4.5 4.5 0 100 8.488M7.5 10.5h5.25m-5.25 3h5.25M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}))};var v;(0,l.registerBlockType)(h.u2,{icon:(v=h.qv,u[v]),edit:function(e){let{attributes:o,setAttributes:a}=e;const l=e=>o=>a({[e]:o}),s=[{value:"count",label:(0,n.__)("Count","easy-digital-downloads")},{value:"id",label:(0,n.__)("ID","easy-digital-downloads")},{value:"name",label:(0,n.__)("Name","easy-digital-downloads")},{value:"slug",label:(0,n.__)("Slug","easy-digital-downloads")}];return(0,t.createElement)("div",(0,d.useBlockProps)(),(0,t.createElement)(d.InspectorControls,null,(0,t.createElement)(r.PanelBody,{title:(0,n.__)("Term Block Settings","easy-digital-downloads")},(0,t.createElement)(r.SelectControl,{label:(0,n.__)("Select Taxonomy","easy-digital-downloads"),value:o.taxonomy,options:g,onChange:l("taxonomy")}),(0,t.createElement)(r.SelectControl,{label:(0,n.__)("Order By","easy-digital-downloads"),value:o.orderby,options:s,onChange:l("orderby")}),(0,t.createElement)(r.SelectControl,{label:(0,n.__)("Order","easy-digital-downloads"),value:o.order,options:m,onChange:l("order")}),(0,t.createElement)(r.RangeControl,{label:(0,n.__)("Number of Columns","easy-digital-downloads"),value:o.columns,onChange:l("columns"),min:1,max:6}),(0,t.createElement)(r.ToggleControl,{label:(0,n.__)("Show Empty Categories","easy-digital-downloads"),checked:!!o.show_empty,onChange:l("show_empty")})),(0,t.createElement)(r.PanelBody,{title:(0,n.__)("Individual Term Settings","easy-digital-downloads"),initialOpen:!1},(0,t.createElement)(r.ToggleControl,{label:(0,n.__)("Show Title","easy-digital-downloads"),checked:!!o.title,onChange:l("title")}),(0,t.createElement)(r.ToggleControl,{label:(0,n.__)("Show Thumbnails","easy-digital-downloads"),checked:!!o.thumbnails,onChange:l("thumbnails")}),!!o.thumbnails&&(0,t.createElement)(r.SelectControl,{label:(0,n.__)("Image Size","easy-digital-downloads"),value:o.image_size,options:w,onChange:l("image_size")}),!!o.thumbnails&&(0,t.createElement)(r.SelectControl,{label:(0,n.__)("Image Alignment","easy-digital-downloads"),value:o.image_alignment,options:c,onChange:l("image_alignment")}),(0,t.createElement)(r.ToggleControl,{label:(0,n.__)("Show Description","easy-digital-downloads"),checked:!!o.description,onChange:l("description")}),(0,t.createElement)(r.ToggleControl,{label:(0,n.__)("Show Count","easy-digital-downloads"),checked:!!o.count,onChange:l("count")}))),(0,t.createElement)(r.Disabled,null,(0,t.createElement)(i(),{block:"edd/terms",attributes:{...o}})))}})}},a={};function l(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={exports:{}};return o[e](n,n.exports,l),n.exports}l.m=o,e=[],l.O=(o,a,t,n)=>{if(!a){var r=1/0;for(c=0;c=n)&&Object.keys(l.O).every((e=>l.O[e](a[i])))?a.splice(i--,1):(s=!1,n0&&e[c-1][2]>n;c--)e[c]=e[c-1];e[c]=[a,t,n]},l.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return l.d(o,{a:o}),o},l.d=(e,o)=>{for(var a in o)l.o(o,a)&&!l.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:o[a]})},l.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={996:0,699:0};l.O.j=o=>0===e[o];var o=(o,a)=>{var t,n,r=a[0],s=a[1],i=a[2],d=0;if(r.some((o=>0!==e[o]))){for(t in s)l.o(s,t)&&(l.m[t]=s[t]);if(i)var c=i(l)}for(o&&o(a);dl(874)));t=l.O(t)})(); \ No newline at end of file +(()=>{"use strict";var e,o={874:(e,o,a)=>{const l=window.wp.blocks,t=window.wp.element,n=window.wp.i18n,r=window.wp.components,s=window.wp.serverSideRender;var i=a.n(s);const d=window.wp.blockEditor,c=[{value:"none",label:(0,n.__)("None","easy-digital-downloads")},{value:"center",label:(0,n.__)("Center","easy-digital-downloads")},{value:"left",label:(0,n.__)("Left","easy-digital-downloads")},{value:"right",label:(0,n.__)("Right","easy-digital-downloads")}],m=[{value:"ASC",label:(0,n.__)("Ascending","easy-digital-downloads")},{value:"DESC",label:(0,n.__)("Descending","easy-digital-downloads")}],w=[{value:"thumbnail",label:(0,n.__)("Thumbnail","easy-digital-downloads")},{value:"medium",label:(0,n.__)("Medium","easy-digital-downloads")},{value:"large",label:(0,n.__)("Large","easy-digital-downloads")}],g=[{value:"download_category",label:(0,n.sprintf)((0,n.__)("%s Categories","easy-digital-downloads"),EDDBlocks.download_label_singular)},{value:"download_tag",label:(0,n.sprintf)((0,n.__)("%s Tags","easy-digital-downloads"),EDDBlocks.download_label_singular)}],h=JSON.parse('{"u2":"edd/terms","qv":"category"}'),u={button:(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"edd-blocks__icon"},(0,t.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 8.25h19.5M2.25 9h19.5m-16.5 5.25h6m-6 2.25h3m-3.75 3h15a2.25 2.25 0 002.25-2.25V6.75A2.25 2.25 0 0019.5 4.5h-15a2.25 2.25 0 00-2.25 2.25v10.5A2.25 2.25 0 004.5 19.5z"})),cart:(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"edd-blocks__icon"},(0,t.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 3h1.386c.51 0 .955.343 1.087.835l.383 1.437M7.5 14.25a3 3 0 00-3 3h15.75m-12.75-3h11.218c1.121-2.3 2.1-4.684 2.924-7.138a60.114 60.114 0 00-16.536-1.84M7.5 14.25L5.106 5.272M6 20.25a.75.75 0 11-1.5 0 .75.75 0 011.5 0zm12.75 0a.75.75 0 11-1.5 0 .75.75 0 011.5 0z"})),products:(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"edd-blocks__icon"},(0,t.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 10.5V6a3.75 3.75 0 10-7.5 0v4.5m11.356-1.993l1.263 12c.07.665-.45 1.243-1.119 1.243H4.25a1.125 1.125 0 01-1.12-1.243l1.264-12A1.125 1.125 0 015.513 7.5h12.974c.576 0 1.059.435 1.119 1.007zM8.625 10.5a.375.375 0 11-.75 0 .375.375 0 01.75 0zm7.5 0a.375.375 0 11-.75 0 .375.375 0 01.75 0z"})),"yes-alt":(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"edd-blocks__icon"},(0,t.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75L11.25 15 15 9.75M21 12c0 1.268-.63 2.39-1.593 3.068a3.745 3.745 0 01-1.043 3.296 3.745 3.745 0 01-3.296 1.043A3.745 3.745 0 0112 21c-1.268 0-2.39-.63-3.068-1.593a3.746 3.746 0 01-3.296-1.043 3.745 3.745 0 01-1.043-3.296A3.745 3.745 0 013 12c0-1.268.63-2.39 1.593-3.068a3.745 3.745 0 011.043-3.296 3.746 3.746 0 013.296-1.043A3.746 3.746 0 0112 3c1.268 0 2.39.63 3.068 1.593a3.746 3.746 0 013.296 1.043 3.746 3.746 0 011.043 3.296A3.745 3.745 0 0121 12z"})),download:(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"edd-blocks__icon-downloads"},(0,t.createElement)("path",{fillRule:"evenodd",d:"M12 2.25a.75.75 0 01.75.75v11.69l3.22-3.22a.75.75 0 111.06 1.06l-4.5 4.5a.75.75 0 01-1.06 0l-4.5-4.5a.75.75 0 111.06-1.06l3.22 3.22V3a.75.75 0 01.75-.75zm-9 13.5a.75.75 0 01.75.75v2.25a1.5 1.5 0 001.5 1.5h13.5a1.5 1.5 0 001.5-1.5V16.5a.75.75 0 011.5 0v2.25a3 3 0 01-3 3H5.25a3 3 0 01-3-3V16.5a.75.75 0 01.75-.75z",clipRule:"evenodd"})),unlock:(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"edd-blocks__icon"},(0,t.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 10.5V6.75a4.5 4.5 0 119 0v3.75M3.75 21.75h10.5a2.25 2.25 0 002.25-2.25v-6.75a2.25 2.25 0 00-2.25-2.25H3.75a2.25 2.25 0 00-2.25 2.25v6.75a2.25 2.25 0 002.25 2.25z"})),"editor-table":(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"edd-blocks__icon"},(0,t.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 12h16.5m-16.5 3.75h16.5M3.75 19.5h16.5M5.625 4.5h12.75a1.875 1.875 0 010 3.75H5.625a1.875 1.875 0 010-3.75z"})),money:(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"edd-blocks__icon"},(0,t.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 18.75a60.07 60.07 0 0115.797 2.101c.727.198 1.453-.342 1.453-1.096V18.75M3.75 4.5v.75A.75.75 0 013 6h-.75m0 0v-.375c0-.621.504-1.125 1.125-1.125H20.25M2.25 6v9m18-10.5v.75c0 .414.336.75.75.75h.75m-1.5-1.5h.375c.621 0 1.125.504 1.125 1.125v9.75c0 .621-.504 1.125-1.125 1.125h-.375m1.5-1.5H21a.75.75 0 00-.75.75v.75m0 0H3.75m0 0h-.375a1.125 1.125 0 01-1.125-1.125V15m1.5 1.5v-.75A.75.75 0 003 15h-.75M15 10.5a3 3 0 11-6 0 3 3 0 016 0zm3 0h.008v.008H18V10.5zm-12 0h.008v.008H6V10.5z"})),id:(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"edd-blocks__icon"},(0,t.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 9h3.75M15 12h3.75M15 15h3.75M4.5 19.5h15a2.25 2.25 0 002.25-2.25V6.75A2.25 2.25 0 0019.5 4.5h-15a2.25 2.25 0 00-2.25 2.25v10.5A2.25 2.25 0 004.5 19.5zm6-10.125a1.875 1.875 0 11-3.75 0 1.875 1.875 0 013.75 0zm1.294 6.336a6.721 6.721 0 01-3.17.789 6.721 6.721 0 01-3.168-.789 3.376 3.376 0 016.338 0z"})),category:(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"edd-blocks__icon"},(0,t.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.75V12A2.25 2.25 0 014.5 9.75h15A2.25 2.25 0 0121.75 12v.75m-8.69-6.44l-2.12-2.12a1.5 1.5 0 00-1.061-.44H4.5A2.25 2.25 0 002.25 6v12a2.25 2.25 0 002.25 2.25h15A2.25 2.25 0 0021.75 18V9a2.25 2.25 0 00-2.25-2.25h-5.379a1.5 1.5 0 01-1.06-.44z"})),"admin-links":(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"edd-blocks__icon"},(0,t.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.19 8.688a4.5 4.5 0 011.242 7.244l-4.5 4.5a4.5 4.5 0 01-6.364-6.364l1.757-1.757m13.35-.622l1.757-1.757a4.5 4.5 0 00-6.364-6.364l-4.5 4.5a4.5 4.5 0 001.242 7.244"})),money:(0,t.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"edd-blocks__icon"},(0,t.createElement)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.25 7.756a4.5 4.5 0 100 8.488M7.5 10.5h5.25m-5.25 3h5.25M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}))};var v;(0,l.registerBlockType)(h.u2,{icon:(v=h.qv,u[v]),edit:function(e){let{attributes:o,setAttributes:a}=e;const l=e=>o=>a({[e]:o}),s=[{value:"count",label:(0,n.__)("Count","easy-digital-downloads")},{value:"id",label:(0,n.__)("ID","easy-digital-downloads")},{value:"name",label:(0,n.__)("Name","easy-digital-downloads")},{value:"slug",label:(0,n.__)("Slug","easy-digital-downloads")}];return(0,t.createElement)("div",(0,d.useBlockProps)(),(0,t.createElement)(d.InspectorControls,null,(0,t.createElement)(r.PanelBody,{title:(0,n.__)("Term Block Settings","easy-digital-downloads")},(0,t.createElement)(r.SelectControl,{label:(0,n.__)("Select Taxonomy","easy-digital-downloads"),value:o.taxonomy,options:g,onChange:l("taxonomy")}),(0,t.createElement)(r.SelectControl,{label:(0,n.__)("Order By","easy-digital-downloads"),value:o.orderby,options:s,onChange:l("orderby")}),(0,t.createElement)(r.SelectControl,{label:(0,n.__)("Order","easy-digital-downloads"),value:o.order,options:m,onChange:l("order")}),(0,t.createElement)(r.RangeControl,{label:(0,n.__)("Number of Columns","easy-digital-downloads"),value:o.columns,onChange:l("columns"),min:1,max:6}),(0,t.createElement)(r.ToggleControl,{label:(0,n.__)("Show Empty Categories","easy-digital-downloads"),checked:!!o.show_empty,onChange:l("show_empty")})),(0,t.createElement)(r.PanelBody,{title:(0,n.__)("Individual Term Settings","easy-digital-downloads"),initialOpen:!1},(0,t.createElement)(r.ToggleControl,{label:(0,n.__)("Show Title","easy-digital-downloads"),checked:!!o.title,onChange:l("title")}),(0,t.createElement)(r.ToggleControl,{label:(0,n.__)("Show Thumbnails","easy-digital-downloads"),checked:!!o.thumbnails,onChange:l("thumbnails")}),!!o.thumbnails&&(0,t.createElement)(r.SelectControl,{label:(0,n.__)("Image Size","easy-digital-downloads"),value:o.image_size,options:w,onChange:l("image_size")}),!!o.thumbnails&&(0,t.createElement)(r.SelectControl,{label:(0,n.__)("Image Alignment","easy-digital-downloads"),value:o.image_alignment,options:c,onChange:l("image_alignment")}),(0,t.createElement)(r.ToggleControl,{label:(0,n.__)("Show Description","easy-digital-downloads"),checked:!!o.description,onChange:l("description")}),(0,t.createElement)(r.ToggleControl,{label:(0,n.__)("Show Count","easy-digital-downloads"),checked:!!o.count,onChange:l("count")}))),(0,t.createElement)(r.Disabled,null,(0,t.createElement)(i(),{block:"edd/terms",attributes:{...o}})))}})}},a={};function l(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={exports:{}};return o[e](n,n.exports,l),n.exports}l.m=o,e=[],l.O=(o,a,t,n)=>{if(!a){var r=1/0;for(c=0;c=n)&&Object.keys(l.O).every((e=>l.O[e](a[i])))?a.splice(i--,1):(s=!1,n0&&e[c-1][2]>n;c--)e[c]=e[c-1];e[c]=[a,t,n]},l.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return l.d(o,{a:o}),o},l.d=(e,o)=>{for(var a in o)l.o(o,a)&&!l.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:o[a]})},l.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={996:0,699:0};l.O.j=o=>0===e[o];var o=(o,a)=>{var t,n,r=a[0],s=a[1],i=a[2],d=0;if(r.some((o=>0!==e[o]))){for(t in s)l.o(s,t)&&(l.m[t]=s[t]);if(i)var c=i(l)}for(o&&o(a);dl(874)));t=l.O(t)})(); \ No newline at end of file diff --git a/wp-content/plugins/easy-digital-downloads/includes/blocks/edd-blocks.php b/wp-content/plugins/easy-digital-downloads/includes/blocks/edd-blocks.php index 1e0479ff..f2f4634c 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/blocks/edd-blocks.php +++ b/wp-content/plugins/easy-digital-downloads/includes/blocks/edd-blocks.php @@ -4,7 +4,7 @@ * Description: Core blocks for Easy Digital Downloads. * Requires at least: 5.8 * Requires PHP: 7.0 - * Version: 2.0.6 + * Version: 2.0.7 * Author: Easy Digital Downloads * License: GPL-2.0-or-later * License URI: https://www.gnu.org/licenses/gpl-2.0.html diff --git a/wp-content/plugins/easy-digital-downloads/includes/blocks/includes/admin/recaptcha.php b/wp-content/plugins/easy-digital-downloads/includes/blocks/includes/admin/recaptcha.php index ec3b041d..031e867c 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/blocks/includes/admin/recaptcha.php +++ b/wp-content/plugins/easy-digital-downloads/includes/blocks/includes/admin/recaptcha.php @@ -44,7 +44,7 @@ function register_keys( $settings ) { $settings['main']['recaptcha_secret_key'] = array( 'id' => 'recaptcha_secret_key', 'name' => __( 'reCAPTCHA Secret Key', 'easy-digital-downloads' ), - 'type' => 'text', + 'type' => 'password', 'std' => '', ); diff --git a/wp-content/plugins/easy-digital-downloads/includes/blocks/includes/admin/scripts.php b/wp-content/plugins/easy-digital-downloads/includes/blocks/includes/admin/scripts.php index fdb7a0f3..4766f94c 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/blocks/includes/admin/scripts.php +++ b/wp-content/plugins/easy-digital-downloads/includes/blocks/includes/admin/scripts.php @@ -12,13 +12,29 @@ add_action( 'enqueue_block_editor_assets', __NAMESPACE__ . '\localize' ); */ function localize() { - $user = wp_get_current_user(); - $downloads = new \WP_Query( - array( - 'post_type' => 'download', - 'posts_per_page' => 1, - 'post_status' => 'any', - 'no_found_rows' => true, + $user = wp_get_current_user(); + + $download_query_args = array( + 'post_type' => 'download', + 'posts_per_page' => 1, + 'no_found_rows' => true, + ); + + $published_downloads = new \WP_Query( + array_merge( + $download_query_args, + array( + 'post_status' => array( 'publish' ), + ) + ) + ); + + $draft_downloads = new \WP_Query( + array_merge( + $download_query_args, + array( + 'post_status' => array( 'draft' ), + ) ) ); @@ -26,14 +42,18 @@ function localize() { 'wp-block-editor', 'EDDBlocks', array( - 'current_user' => md5( $user->user_email ), - 'all_access' => function_exists( 'edd_all_access' ), - 'recurring' => function_exists( 'EDD_Recurring' ), - 'is_pro' => edd_is_pro(), - 'no_redownload' => edd_no_redownload(), - 'supports_buy_now' => edd_shop_supports_buy_now(), - 'has_downloads' => $downloads->have_posts(), - 'new_download' => add_query_arg( 'post_type', 'download', admin_url( 'post-new.php' ) ), + 'current_user' => md5( $user->user_email ), + 'all_access' => function_exists( 'edd_all_access' ), + 'recurring' => function_exists( 'EDD_Recurring' ), + 'is_pro' => edd_is_pro(), + 'no_redownload' => edd_no_redownload(), + 'supports_buy_now' => edd_shop_supports_buy_now(), + 'has_published_downloads' => $published_downloads->have_posts(), + 'has_draft_downloads' => $draft_downloads->have_posts(), + 'new_download_link' => add_query_arg( 'post_type', 'download', admin_url( 'post-new.php' ) ), + 'view_downloads_link' => add_query_arg( 'post_type', 'download', admin_url( 'edit.php' ) ), + 'download_label_singular' => edd_get_label_singular(), + 'download_label_plural' => edd_get_label_plural(), ) ); } diff --git a/wp-content/plugins/easy-digital-downloads/includes/blocks/includes/checkout/functions.php b/wp-content/plugins/easy-digital-downloads/includes/blocks/includes/checkout/functions.php index 0180680c..087cbeca 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/blocks/includes/checkout/functions.php +++ b/wp-content/plugins/easy-digital-downloads/includes/blocks/includes/checkout/functions.php @@ -42,3 +42,27 @@ function get_quantity_string() { _n( 'item', 'items', $quantity, 'easy-digital-downloads' ) ); } + +/** + * Outputs the additional cart data. Table markup is replaced. + * + * @since 2.0 + * @param string $action The action being called. + * @param mixed $args + * @return string + */ +function do_cart_action( $action = 'edd_cart_items_after', ...$args ) { + ob_start(); + do_action( $action, $args ); + + $details = ob_get_clean(); + if ( empty( $details ) ) { + return; + } + $details = str_replace( 'product_id ) ) { - $key = ! empty( $block_attributes['variations'] ) ? $item->product_name : edd_get_download_name( $item->product_id ); - if ( array_key_exists( $key, $downloads ) ) { + $key = ! empty( $block_attributes['variations'] ) ? $item->product_name : edd_get_download_name( $item->product_id ); + $valid_key = $item->product_id; + if ( in_array( $valid_key, $valid_items, true ) ) { continue; } $bundled_products = edd_get_bundled_products( $item->product_id, $item->price_id ); @@ -425,6 +427,7 @@ function get_purchased_products( $block_attributes ) { $product_id = edd_get_bundle_item_id( $bundle_item ); $price_id = edd_get_bundle_item_price_id( $bundle_item ); $key = edd_get_download_name( $product_id ); + $valid_key = $product_id; $order_item_args = array( 'order_id' => $item->order_id, 'status' => $item->status, @@ -444,15 +447,18 @@ function get_purchased_products( $block_attributes ) { } } $order_item_args['price_id'] = $price_id; + $valid_key .= "_{$price_id}"; } - if ( array_key_exists( $key, $downloads ) ) { + if ( in_array( $valid_key, $valid_items, true ) ) { continue; } + $valid_items[] = $valid_key; $downloads[ $key ] = new \EDD\Orders\Order_Item( $order_item_args ); } continue; } - $key = $item->product_name; + $key = $item->product_name; + $valid_key = $item->product_id; if ( is_numeric( $item->price_id ) && edd_has_variable_prices( $item->product_id ) ) { if ( empty( $block_attributes['variations'] ) ) { $download_files = edd_get_download_files( $item->product_id, $item->price_id ); @@ -460,11 +466,14 @@ function get_purchased_products( $block_attributes ) { if ( empty( $conditions ) || in_array( 'all', $conditions, true ) ) { $key = edd_get_download_name( $item->product_id ); } + } else { + $valid_key .= "_{$item->price_id}"; } } - if ( array_key_exists( $key, $downloads ) ) { + if ( in_array( $valid_key, $valid_items, true ) ) { continue; } + $valid_items[] = $valid_key; $downloads[ $key ] = $item; } diff --git a/wp-content/plugins/easy-digital-downloads/includes/blocks/views/checkout/cart/cart.php b/wp-content/plugins/easy-digital-downloads/includes/blocks/views/checkout/cart/cart.php index f4f81f2d..c42f8e78 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/blocks/views/checkout/cart/cart.php +++ b/wp-content/plugins/easy-digital-downloads/includes/blocks/views/checkout/cart/cart.php @@ -1,3 +1,6 @@ +
    has_variable_prices() && ! isset( $options['price_id'] ) ) { // Forces to the default price ID if none is specified and download has variable prices - $options['price_id'] = get_post_meta( $download->ID, '_edd_default_price_id', true ); + $options['price_id'] = $download->get_default_price_id(); } if ( isset( $options['quantity'] ) ) { @@ -1222,21 +1222,22 @@ class EDD_Cart { * Get the name of an item in the cart. * * @since 2.7 + * @since 3.1.2 Updated to use edd_get_download_name() for consistency * * @param array $item Item details * @return string $name Item name */ public function get_item_name( $item = array() ) { - $item_title = get_the_title( $item['id'] ); + $download_id = $item['id']; + $price_id = $this->get_item_price_id( $item ); + $item_title = edd_get_download_name( $download_id, $price_id ); + + // In the event that we dont' get a name back, use the ID. if ( empty( $item_title ) ) { $item_title = $item['id']; } - if ( edd_has_variable_prices( $item['id'] ) && false !== edd_get_cart_item_price_id( $item ) ) { - $item_title .= ' - ' . edd_get_cart_item_price_name( $item ); - } - return apply_filters( 'edd_get_cart_item_name', $item_title, $item['id'], $item ); } diff --git a/wp-content/plugins/easy-digital-downloads/includes/class-easy-digital-downloads.php b/wp-content/plugins/easy-digital-downloads/includes/class-easy-digital-downloads.php index 5519ac4d..d92ef6d3 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/class-easy-digital-downloads.php +++ b/wp-content/plugins/easy-digital-downloads/includes/class-easy-digital-downloads.php @@ -355,7 +355,7 @@ final class Easy_Digital_Downloads { // Plugin version. if ( ! defined( 'EDD_VERSION' ) ) { - define( 'EDD_VERSION', '3.1.1.4.2' ); + define( 'EDD_VERSION', '3.1.2' ); } // Make sure CAL_GREGORIAN is defined. @@ -833,6 +833,7 @@ final class Easy_Digital_Downloads { require_once EDD_PLUGIN_DIR . 'includes/admin/settings/display-settings.php'; require_once EDD_PLUGIN_DIR . 'includes/admin/tools.php'; require_once EDD_PLUGIN_DIR . 'includes/admin/plugins.php'; + require_once EDD_PLUGIN_DIR . 'includes/admin/upgrades/deprecated-upgrade-functions.php'; require_once EDD_PLUGIN_DIR . 'includes/admin/upgrades/downgrades.php'; require_once EDD_PLUGIN_DIR . 'includes/admin/upgrades/upgrade-functions.php'; require_once EDD_PLUGIN_DIR . 'includes/admin/upgrades/upgrades.php'; diff --git a/wp-content/plugins/easy-digital-downloads/includes/class-edd-cli.php b/wp-content/plugins/easy-digital-downloads/includes/class-edd-cli.php index 9a7d4eeb..1ea5d3c6 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/class-edd-cli.php +++ b/wp-content/plugins/easy-digital-downloads/includes/class-edd-cli.php @@ -1765,7 +1765,8 @@ class EDD_CLI extends WP_CLI_Command { } else { if ( ! $full_migration ) { WP_CLI::line( __( 'Partial order migration complete. Orders Processed: ', 'easy-digital-downloads' ) . $total ); - WP_CLI::line( __( 'To recalculate all download sales and earnings, run wp edd `recalculate_download_sales_earnings`.', 'easy-digital-downloads' ) ); + WP_CLI::line( __( 'To recalculate all download sales and earnings, run `wp edd recalculate_download_sales_earnings`.', 'easy-digital-downloads' ) ); + WP_CLI::line( __( 'To recalculate all customer sales and earnings, run `wp edd recalculate_customer_values`.', 'easy-digital-downloads' ) ); } else { WP_CLI::line( __( 'Migration complete: Orders', 'easy-digital-downloads' ) ); $new_count = edd_count_orders( array( 'type' => 'sale' ) ); @@ -1780,6 +1781,7 @@ class EDD_CLI extends WP_CLI_Command { $progress->tick(); $this->recalculate_download_sales_earnings(); + $this->recalculate_customer_values(); } } @@ -1857,6 +1859,33 @@ class EDD_CLI extends WP_CLI_Command { WP_CLI::line( __( 'Downloads Updated: ', 'easy-digital-downloads' ) . $total ); } + /** + * Recalculates all customer values. + * + * @since 3.1.2 + * @return void + */ + public function recalculate_customer_values() { + $customers = edd_get_customers( + array( + 'number' => 9999999, + ) + ); + $total = count( $customers ); + + if ( ! empty( $total ) ) { + $progress = new \cli\progress\Bar( 'Recalculating Customer Values', $total ); + foreach ( $customers as $customer ) { + $customer->recalculate_stats(); + $progress->tick(); + } + $progress->finish(); + } + + WP_CLI::line( __( 'Sales and Earnings successfully recalculated for all customers.', 'easy-digital-downloads' ) ); + WP_CLI::line( __( 'Customers Updated: ', 'easy-digital-downloads' ) . $total ); + } + /** * Removes legacy data from 2.9 and earlier that has been migrated to 3.0. * diff --git a/wp-content/plugins/easy-digital-downloads/includes/class-edd-download.php b/wp-content/plugins/easy-digital-downloads/includes/class-edd-download.php index 4d583356..868d2d94 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/class-edd-download.php +++ b/wp-content/plugins/easy-digital-downloads/includes/class-edd-download.php @@ -306,7 +306,38 @@ class EDD_Download { * @param array $prices The array of variables prices. * @param int|string The ID of the download. */ - return apply_filters( 'edd_get_variable_prices', $this->prices, $this->ID ); + return (array) apply_filters( 'edd_get_variable_prices', $this->prices, $this->ID ); + } + + /** + * Get the default Price ID for variable priced products. + * + * Since it is possible for the value to not be set on older products, we'll set it to the first price in the array + * if one is not set, as that has been the default behavior since default prices were introduced. + * + * Storing it as the first if found, is just more consistent and intentional. + * + * @since 3.1.2 + * + * @return int|null The default price ID, or null if the product does not have variable prices. + */ + public function get_default_price_id() { + if ( ! $this->has_variable_prices() ) { + return null; + } + + $default_price_id = get_post_meta( $this->ID, '_edd_default_price_id', true ); + + // If no default price ID is set, or the default price ID is not in the prices array, set the first price as the default. + $prices = $this->get_prices(); + if ( is_array( $prices ) && ( ! is_numeric( $default_price_id ) || ! array_key_exists( (int) $default_price_id, $prices ) ) ) { + $default_price_id = key( $prices ); + + // Set the default price ID + update_post_meta( $this->ID, '_edd_default_price_id', $default_price_id ); + } + + return absint( apply_filters( 'edd_variable_default_price_id', $default_price_id, $this->ID ) ); } /** diff --git a/wp-content/plugins/easy-digital-downloads/includes/class-edd-fees.php b/wp-content/plugins/easy-digital-downloads/includes/class-edd-fees.php index 73442ce4..b89479f1 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/class-edd-fees.php +++ b/wp-content/plugins/easy-digital-downloads/includes/class-edd-fees.php @@ -179,11 +179,11 @@ class EDD_Fees { * @since 1.5 * @param string $type Fee type, "fee" or "item" * @param int $download_id The download ID whose fees to retrieve - * @param int $price_id The variable price ID whose fees to retrieve + * @param null|int $price_id The variable price ID whose fees to retrieve * @uses EDD_Session::get() * @return array|bool List of fees when available, false when there are no fees */ - public function get_fees( $type = 'fee', $download_id = 0, $price_id = NULL ) { + public function get_fees( $type = 'fee', $download_id = 0, $price_id = null ) { $fees = EDD()->session->get( 'edd_cart_fees' ); if ( EDD()->cart->is_empty() ) { @@ -208,14 +208,17 @@ class EDD_Fees { unset( $fees[ $key ] ); } - $fee_hash = md5( $fee['amount'] . $fee['label'] . $fee['type'] ); + $string_to_hash = "{$key}_{$download_id}"; + if ( ! is_null( $price_id ) && isset( $fee['price_id'] ) ) { + $string_to_hash .= "_{$fee['price_id']}"; + } + $fee_hash = md5( $string_to_hash ); - if ( in_array( $fee_hash, $applied_fees ) ) { + if ( in_array( $fee_hash, $applied_fees, true ) ) { unset( $fees[ $key ] ); } $applied_fees[] = $fee_hash; - } } diff --git a/wp-content/plugins/easy-digital-downloads/includes/class-edd-license-handler.php b/wp-content/plugins/easy-digital-downloads/includes/class-edd-license-handler.php index fdec334b..e14045ef 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/class-edd-license-handler.php +++ b/wp-content/plugins/easy-digital-downloads/includes/class-edd-license-handler.php @@ -100,12 +100,12 @@ class EDD_License { * * @see \EDD\Admin\Promos\Notices\License_Upgrade_Notice::__construct() */ - if ( ! empty( $this->license ) && is_null( $this->api_url ) ) { + if ( is_null( $this->api_url ) ) { global $edd_licensed_products; if ( ! is_array( $edd_licensed_products ) ) { $edd_licensed_products = array(); } - $edd_licensed_products[] = $this->item_shortname; + $edd_licensed_products[ $this->item_shortname ] = (int) (bool) ( $this->license && empty( $this->edd_license->error ) ); } } diff --git a/wp-content/plugins/easy-digital-downloads/includes/database/engine/class-table.php b/wp-content/plugins/easy-digital-downloads/includes/database/engine/class-table.php index ff9428b0..0fc88c20 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/database/engine/class-table.php +++ b/wp-content/plugins/easy-digital-downloads/includes/database/engine/class-table.php @@ -883,15 +883,7 @@ abstract class Table extends Base { * @return bool */ private function is_testing() { - return (bool) - - // Tests constant is being used - ( defined( 'WP_TESTS_DIR' ) && WP_TESTS_DIR ) - - || - - // Scaffolded (https://make.wordpress.org/cli/handbook/plugin-unit-tests/) - function_exists( '_manually_load_plugin' ); + return edd_is_doing_unit_tests(); } /** diff --git a/wp-content/plugins/easy-digital-downloads/includes/deprecated-functions.php b/wp-content/plugins/easy-digital-downloads/includes/deprecated-functions.php index 86e69ace..01b82a60 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/deprecated-functions.php +++ b/wp-content/plugins/easy-digital-downloads/includes/deprecated-functions.php @@ -2135,3 +2135,20 @@ function edd_ajax_filter_download_where( $where, $wp_query ) { return $search->filter_where( $where, $wp_query ); } + +/** + * Gets the next available order number. + * + * This is used when inserting a new order. + * + * @deprecated 3.1.2 + * @since 2.0 + * @return false|int $number The next available order number, unformatted. + */ +function edd_get_next_payment_number() { + + _edd_deprecated_function( __FUNCTION__, '3.1.2', 'EDD\Orders\Number\get_next_payment_number' ); + $order_number = new EDD\Orders\Number(); + + return $order_number->get_next_payment_number(); +} diff --git a/wp-content/plugins/easy-digital-downloads/includes/download-functions.php b/wp-content/plugins/easy-digital-downloads/includes/download-functions.php index 37d7b2b9..fab28610 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/download-functions.php +++ b/wp-content/plugins/easy-digital-downloads/includes/download-functions.php @@ -356,31 +356,21 @@ function edd_has_variable_prices( $download_id = 0 ) { * none set. * * @since 2.2 + * @since 3.1.2 Moved this behavior into the EDD_Download class as it really does belong there. * * @param int $download_id Download ID. - * @return int Price ID. + * @return int|null The default price ID, or false if the product does not have variable prices. */ function edd_get_default_variable_price( $download_id = 0 ) { // Bail if no download ID was passed. - if ( empty( $download_id ) ) { - return false; + if ( ! is_numeric( $download_id ) || empty( $download_id ) ) { + return null; } - // Bail if download has no variable prices. - if ( ! edd_has_variable_prices( $download_id ) ) { - return false; - } + $download = new EDD_Download( $download_id ); - $prices = edd_get_variable_prices( $download_id ); - $default_price_id = get_post_meta( $download_id, '_edd_default_price_id', true ); - - if ( '' === $default_price_id || ! isset( $prices[ $default_price_id ] ) ) { - $default_price_id = current( array_keys( $prices ) ); - } - - // Filter & return. - return apply_filters( 'edd_variable_default_price_id', absint( $default_price_id ), $download_id ); + return $download->get_default_price_id(); } /** @@ -474,33 +464,13 @@ function edd_get_lowest_price_option( $download_id = 0 ) { return edd_get_download_price( $download_id ); } - // Fetch variables prices. - $prices = edd_get_variable_prices( $download_id ); - // Set lowest to 0. - $lowest = 0.00; - - // Loop through all the prices. - if ( ! empty( $prices ) ) { - foreach ( $prices as $key => $price ) { - - // Skip if amount doesn't exist. - if ( empty( $price['amount'] ) ) { - continue; - } - - if ( ! isset( $min ) ) { - $min = $price['amount']; - } else { - $min = min( $min, $price['amount'] ); - } - - if ( $price['amount'] == $min ) { - $min_id = $key; - } - } - - $lowest = $prices[ $min_id ]['amount']; + $lowest = 0.00; + $prices = edd_get_variable_prices( $download_id ); + $list_handler = new EDD\Utils\ListHandler( $prices ); + $min_key = $list_handler->search( 'amount', 'min' ); + if ( false !== $min_key ) { + $lowest = $prices[ $min_key ]['amount']; } return edd_sanitize_amount( $lowest ); @@ -531,31 +501,10 @@ function edd_get_lowest_price_id( $download_id = 0 ) { return edd_get_download_price( $download_id ); } - // Fetch variable prices. - $prices = edd_get_variable_prices( $download_id ); + $list_handler = new EDD\Utils\ListHandler( edd_get_variable_prices( $download_id ) ); + $min_key = $list_handler->search( 'amount', 'min' ); - // Loop through all the prices. - if ( ! empty( $prices ) ) { - foreach ( $prices as $key => $price ) { - - // Skip if amount doesn't exist. - if ( empty( $price['amount'] ) ) { - continue; - } - - if ( ! isset( $min ) ) { - $min = $price['amount']; - } else { - $min = min( $min, $price['amount'] ); - } - - if ( $price['amount'] == $min ) { - $min_id = $key; - } - } - } - - return absint( $min_id ); + return false !== $min_key ? absint( $min_key ) : false; } /** @@ -582,31 +531,13 @@ function edd_get_highest_price_option( $download_id = 0 ) { return edd_get_download_price( $download_id ); } - // Fetch variables prices. - $prices = edd_get_variable_prices( $download_id ); - // Set highest to 0. - $highest = 0.00; - - // Loop through all the prices. - if ( ! empty( $prices ) ) { - $max = 0; - - foreach ( $prices as $key => $price ) { - - // Skip if amount doesn't exist. - if ( empty( $price['amount'] ) ) { - continue; - } - - $max = max( $max, $price['amount'] ); - - if ( $price['amount'] == $max ) { - $max_id = $key; - } - } - - $highest = $prices[ $max_id ]['amount']; + $highest = 0.00; + $prices = edd_get_variable_prices( $download_id ); + $list_handler = new EDD\Utils\ListHandler( $prices ); + $max_key = $list_handler->search( 'amount', 'max' ); + if ( false !== $max_key ) { + $highest = $prices[ $max_key ]['amount']; } return edd_sanitize_amount( $highest ); @@ -671,7 +602,7 @@ function edd_single_price_option_mode( $download_id = 0 ) { */ function edd_get_download_types() { $types = array( - '0' => __( 'Default', 'easy-digital-downloads' ), + '0' => __( 'Single Product', 'easy-digital-downloads' ), 'bundle' => __( 'Bundle', 'easy-digital-downloads' ), ); diff --git a/wp-content/plugins/easy-digital-downloads/includes/downloads/recalculations.php b/wp-content/plugins/easy-digital-downloads/includes/downloads/recalculations.php index 8505154b..23b017de 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/downloads/recalculations.php +++ b/wp-content/plugins/easy-digital-downloads/includes/downloads/recalculations.php @@ -65,6 +65,10 @@ add_action( 'edd_order_item_deleted', 'edd_recalculate_order_item_download' ); */ function edd_recalculate_order_item_download( $order_item_id, $data = array(), $previous_order_item = false ) { + if ( get_option( '_edd_v30_doing_order_migration', false ) ) { + return; + } + // Recalculations do not need to run when the order item is first being added to the database if it's pending. if ( 'edd_order_item_added' === current_action() && ( empty( $data['status'] ) || 'pending' === $data['status'] ) ) { return; @@ -119,6 +123,10 @@ add_action( 'edd_order_adjustment_updated', 'edd_recalculate_order_adjustment_do * @return void */ function edd_recalculate_order_adjustment_download( $order_adjustment_id, $data = array(), $previous_order_adjustment = false ) { + if ( get_option( '_edd_v30_doing_order_migration', false ) ) { + return; + } + if ( $previous_order_adjustment instanceof EDD\Orders\Order_Adjustment ) { $columns_affecting_stats = array( 'total', 'subtotal', 'object_id', 'object_type' ); diff --git a/wp-content/plugins/easy-digital-downloads/includes/extensions/licensing-functions.php b/wp-content/plugins/easy-digital-downloads/includes/extensions/licensing-functions.php index 63f5765f..db7eb54f 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/extensions/licensing-functions.php +++ b/wp-content/plugins/easy-digital-downloads/includes/extensions/licensing-functions.php @@ -38,11 +38,10 @@ add_action( 'admin_init', function () { * even if there are no licensed products. */ if ( empty( $saved_products['timeout'] ) || $saved_products['timeout'] < time() ) { - global $edd_licensed_products; update_option( 'edd_licensed_extensions', json_encode( array( 'timeout' => strtotime( '+1 day' ), - 'products' => $edd_licensed_products, + 'products' => get_licensed_products(), ) ), false ); } }, 200 ); @@ -65,11 +64,7 @@ function get_licensed_extension_slugs() { * the global is not, but worth a shot. */ if ( empty( $products ) ) { - global $edd_licensed_products; - - return ! empty( $edd_licensed_products ) && is_array( $edd_licensed_products ) - ? $edd_licensed_products - : array(); + return get_licensed_products(); } $products = json_decode( $products, true ); @@ -95,3 +90,25 @@ add_action( 'plugins_loaded', function() { */ do_action( 'edd_extension_license_init', EDD()->extensionRegistry ); }, PHP_INT_MAX ); + +/** + * Helper function to get the actually licensed products from the global. + * In 3.1.1.2, all products using the licensing class add their slug to the global, + * but we are now tracking unlicensed products as well as licensed ones. + * + * @return void + */ +function get_licensed_products() { + $products = array(); + global $edd_licensed_products; + if ( empty( $edd_licensed_products ) || ! is_array( $edd_licensed_products ) ) { + return $products; + } + foreach ( $edd_licensed_products as $slug => $is_licensed ) { + if ( $is_licensed ) { + $products[] = $slug; + } + } + + return $products; +} diff --git a/wp-content/plugins/easy-digital-downloads/includes/gateways/actions.php b/wp-content/plugins/easy-digital-downloads/includes/gateways/actions.php index 4a49e351..20663cf1 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/gateways/actions.php +++ b/wp-content/plugins/easy-digital-downloads/includes/gateways/actions.php @@ -57,6 +57,8 @@ add_action( 'wp_ajax_nopriv_edd_load_gateway', 'edd_load_ajax_gateway' ); * Sets an error on checkout if no gateways are enabled * * @since 1.3.4 + * @since 3.1.2 Updated to include a different message for users who do not have the manage_shop_settings capability. + * * @return void */ function edd_no_gateway_error() { @@ -65,7 +67,12 @@ function edd_no_gateway_error() { if ( empty( $gateways ) && edd_get_cart_total() > 0 ) { remove_action( 'edd_after_cc_fields', 'edd_default_cc_address_fields' ); remove_action( 'edd_cc_form', 'edd_get_cc_form' ); - edd_set_error( 'no_gateways', __( 'You must enable a payment gateway to use Easy Digital Downloads', 'easy-digital-downloads' ) ); + if ( current_user_can( 'manage_shop_settings' ) ) { + $error_message = __( 'You must enable a payment gateway to use Easy Digital Downloads', 'easy-digital-downloads' ); + } else { + $error_message = __( 'Your order cannot be completed at this time. Please try again or contact site support.', 'easy-digital-downloads' ); + } + edd_set_error( 'no_gateways', $error_message ); } else { edd_unset_error( 'no_gateways' ); } diff --git a/wp-content/plugins/easy-digital-downloads/includes/gateways/functions.php b/wp-content/plugins/easy-digital-downloads/includes/gateways/functions.php index 2c81925e..b48649c8 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/gateways/functions.php +++ b/wp-content/plugins/easy-digital-downloads/includes/gateways/functions.php @@ -501,3 +501,119 @@ function edd_count_sales_by_gateway( $gateway_label = 'paypal', $status = 'compl 'status' => $status, ) ); } + +/** + * Determines if a gateway is setup. + * + * @since 3.1.2 + * + * @param string $gateway The gateway to check. + * + * @return bool True if the gateway is setup, false otherwise. + */ +function edd_is_gateway_setup( $gateway = '' ) { + // Return false if no gateway is passed. + if ( empty( $gateway ) ) { + return false; + } + + $gateways = edd_get_payment_gateways(); + + // If the gateway is not registered, return false. + if ( ! array_key_exists( $gateway, $gateways ) ) { + return false; + } + + // Some core gateways, we can just determine here, otherwise we'll use the default case to run the filter. + switch ( $gateway ) { + case 'stripe': + $api_key = edd_is_test_mode() + ? edd_get_option( 'test_publishable_key' ) + : edd_get_option( 'live_publishable_key' ); + + $is_setup = ! empty( $api_key ); + break; + + case 'paypal_commerce': + $is_setup = EDD\Gateways\PayPal\ready_to_accept_payments(); + break; + + default: + /** + * Run a filter to determine if a gateway is setup. + * + * This defaults to 'true' so that gateways that do not have a setup check to + * continue to work. + * + * This hook would fire on the gateway slug, prefixed with `edd_is_gateway_setup_`. + * Example: edd_is_gateway_setup_paypal_express + * + * @since 3.1.2 + * + * @param bool $is_setup Whether or not the gateway is setup. + */ + $is_setup = apply_filters( 'edd_is_gateway_setup_' . $gateway, true ); + break; + } + + return $is_setup; +} + +/** + * Gets the URL to the gateway settings page. + * + * @since 3.1.2 + * + * @param string $gateway The gateway to get the settings URL for. + * + * @return string The URL to the gateway settings page. + */ +function edd_get_gateway_settings_url( $gateway = '' ) { + // Return false if no gateway is passed. + if ( empty( $gateway ) ) { + return ''; + } + + $gateways = edd_get_payment_gateways(); + + // If the gateway is not registered, return false. + if ( ! array_key_exists( $gateway, $gateways ) ) { + return ''; + } + + // Some core gateways, we can just determine here, otherwise we'll use the default case to run the filter. + switch ( $gateway ) { + case 'stripe': + $gateway_settings_url = edd_get_admin_url( + array( + 'page' => 'edd-settings', + 'tab' => 'gateways', + 'section' => 'edd-stripe', + ) + ); + break; + + case 'paypal_commerce': + $gateway_settings_url = EDD\Gateways\PayPal\Admin\get_settings_url(); + break; + + default: + /** + * Run a filter to assign a settings URL for the gateway. + * + * This defaults to an empty string so that gateways that do not have + * a setup check to continue to work. + * + * This hook would fire on the gateway slug, prefixed with `edd_gateway_settings_url_`. + * Example: edd_gateway_settings_url_paypal_express + * + * @since 3.1.2 + * + * @param string $gateway_settings_url The URL to the gateway settings. + */ + $gateway_settings_url = apply_filters( 'edd_gateway_settings_url_' . $gateway, '' ); + break; + } + + return $gateway_settings_url; +} diff --git a/wp-content/plugins/easy-digital-downloads/includes/gateways/paypal/admin/connect.php b/wp-content/plugins/easy-digital-downloads/includes/gateways/paypal/admin/connect.php index 4ec51665..33a38d7e 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/gateways/paypal/admin/connect.php +++ b/wp-content/plugins/easy-digital-downloads/includes/gateways/paypal/admin/connect.php @@ -25,30 +25,22 @@ if ( ! defined( 'EDD_PAYPAL_PARTNER_CONNECT_URL' ) ) { * If they are connected, their account details are shown instead. * * @since 2.11 - * @return string + * @return void */ function connect_settings_field() { $is_connected = PayPal\has_rest_api_connection(); $mode = edd_is_test_mode() ? __( 'sandbox', 'easy-digital-downloads' ) : __( 'live', 'easy-digital-downloads' ); - ob_start(); if ( ! $is_connected ) { - /** - * Show Connect - */ - - /* - * If we have Partner details but no REST credentials then that most likely means - * PayPal wasn't opened in the modal. We'll show an error message about popups. - */ - if ( get_partner_details() ) { + $onboarding_data = get_onboarding_data(); + if ( 200 !== $onboarding_data['code'] || empty( $onboarding_data['body']->signupLink ) ) { ?>

    tag; %2$s closing tag */ - __( '%1$sConnection failure:%2$s This is most likely due to your browser blocking the connection. Most store owners have the best success with Chrome, but for some reason, a few select browsers/devices prevent the connection from EDD and PayPal from working. You might have to enable popups, then restart your browser. If that doesn\'t work, please try a different browser or device and see if that works. If you continue to experience this error, please contact support.', 'easy-digital-downloads' ), + __( '%1$sPayPal Communication Error:%2$s We are having trouble communicating with PayPal at the moment. Please try again later, and if the issue persists, reach out to our support team.', 'easy-digital-downloads' ), '', '' ), array( 'strong' => array() ) ); @@ -56,17 +48,17 @@ function connect_settings_field() {

    + + + + - - - -
    403, + 'body' => array( + 'message' => __( 'You do not have permission to perform this action.', 'easy-digital-downloads' ), + ), + ); + } + + $mode = edd_is_test_mode() ? API::MODE_SANDBOX : API::MODE_LIVE; + + $existing_connect_details = get_partner_details( $mode ); + + if ( ! empty( $existing_connect_details ) ) { + // Ensure the data we have contains all necessary details. + if ( + ( ! empty( $existing_connect_details->expires ) && $existing_connect_details->expires > time() ) && + ! empty( $existing_connect_details->nonce ) && + ! empty( $existing_connect_details->signupLink ) && // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase + ! empty( $existing_connect_details->product ) + ) { + return array( + 'code' => 200, + 'body' => $existing_connect_details, + ); + } + } + + $response = wp_remote_post( + EDD_PAYPAL_PARTNER_CONNECT_URL . 'signup-link', + array( + 'headers' => array( + 'Content-Type' => 'application/json', + ), + 'user-agent' => 'Easy Digital Downloads/' . EDD_VERSION . '; ' . get_bloginfo( 'name' ), + 'body' => wp_json_encode( + array( + 'mode' => $mode, + 'country_code' => edd_get_shop_country(), + 'currency_code' => edd_get_currency(), + 'return_url' => get_settings_url(), + ) + ), + ) + ); + + $code = wp_remote_retrieve_response_code( $response ); + + if ( is_wp_error( $response ) ) { + + return array( + 'code' => $code, + 'body' => $response->get_error_message(), + ); + } + + $body = wp_remote_retrieve_body( $response ); + $body = json_decode( $body ); + + // We're storing an expiration so we can get a new one if it's been a day. + $body->expires = time() + DAY_IN_SECONDS; + + // We need to store this temporarily so we can use the nonce again in the next request. + update_option( 'edd_paypal_commerce_connect_details_' . $mode, wp_json_encode( $body ), false ); + + return array( + 'code' => $code, + 'body' => $body, + ); } /** * AJAX handler for processing the PayPal Connection. * * @since 2.11 + * @deprecated 3.1.2 Instead of doing this via an AJAX request, we now do this on page load. + * * @return void */ function process_connect() { + _edd_deprecated_function( __FUNCTION__, '3.1.2', 'EDD_PayPal_Commerce::get_onboarding_data()' ); + // This validates the nonce. check_ajax_referer( 'edd_process_paypal_connect' ); - if ( ! current_user_can( 'manage_options' ) ) { - wp_send_json_error( __( 'You do not have permission to perform this action.', 'easy-digital-downloads' ) ); - } + $onboarding_data = get_onboarding_data(); - $mode = edd_is_test_mode() ? API::MODE_SANDBOX : API::MODE_LIVE; - - $response = wp_remote_post( EDD_PAYPAL_PARTNER_CONNECT_URL . 'signup-link', array( - 'headers' => array( - 'Content-Type' => 'application/json', - ), - 'body' => json_encode( array( - 'mode' => $mode, - 'country_code' => edd_get_shop_country(), - 'currency_code' => edd_get_currency(), - 'return_url' => get_settings_url() - ) ), - 'user-agent' => 'Easy Digital Downloads/' . EDD_VERSION . '; ' . get_bloginfo( 'name' ), - ) ); - - if ( is_wp_error( $response ) ) { - wp_send_json_error( $response->get_error_message() ); - } - - $code = wp_remote_retrieve_response_code( $response ); - $body = json_decode( wp_remote_retrieve_body( $response ) ); - - if ( 200 !== intval( $code ) ) { + if ( 200 !== intval( $onboarding_data['code'] ) ) { wp_send_json_error( sprintf( /* Translators: %d - HTTP response code; %s - Response from the API */ __( 'Unexpected response code: %d. Error: %s', 'easy-digital-downloads' ), - $code, - json_encode( $body ) + $onboarding_data['code'], + wp_json_encode( $onboarding_data['body'] ) ) ); } - if ( empty( $body->signupLink ) || empty( $body->nonce ) ) { + if ( empty( $onboarding_data['body']->signupLink ) || empty( $onboarding_data['body']->nonce ) ) { wp_send_json_error( __( 'An unexpected error occurred.', 'easy-digital-downloads' ) ); } - /** - * We need to store this temporarily so we can use the nonce again in the next request. - * - * @see get_access_token() - */ - update_option( 'edd_paypal_commerce_connect_details_' . $mode, json_encode( $body ) ); - - wp_send_json_success( $body ); + wp_send_json_success( $onboarding_data['body'] ); } -add_action( 'wp_ajax_edd_paypal_commerce_connect', __NAMESPACE__ . '\process_connect' ); - /** * AJAX handler for processing the PayPal Reconnect. * @@ -187,7 +230,6 @@ function process_reconnect() { wp_safe_redirect( esc_url_raw( get_settings_url() ) ); } - add_action( 'wp_ajax_edd_paypal_commerce_reconnect', __NAMESPACE__ . '\process_reconnect' ); /** @@ -195,7 +237,7 @@ add_action( 'wp_ajax_edd_paypal_commerce_reconnect', __NAMESPACE__ . '\process_r * * @param string $mode Store mode. If omitted, current mode is used. * - * @return array|null + * @return stdObj|null */ function get_partner_details( $mode = '' ) { if ( ! $mode ) { @@ -232,23 +274,27 @@ function get_and_save_credentials() { $paypal_subdomain = edd_is_test_mode() ? '.sandbox' : ''; $api_url = 'https://api-m' . $paypal_subdomain . '.paypal.com/'; - - /* - * First get a temporary access token from PayPal. - */ - $response = wp_remote_post( $api_url . 'v1/oauth2/token', array( + $api_args = array( 'headers' => array( 'Content-Type' => 'application/x-www-form-urlencoded', 'Authorization' => sprintf( 'Basic %s', base64_encode( $_POST['share_id'] ) ), - 'timeout' => 15 + 'timeout' => 15, ), 'body' => array( 'grant_type' => 'authorization_code', 'code' => $_POST['auth_code'], - 'code_verifier' => $partner_details->nonce + 'code_verifier' => $partner_details->nonce, ), 'user-agent' => 'Easy Digital Downloads/' . EDD_VERSION . '; ' . get_bloginfo( 'name' ), - ) ); + ); + + /* + * First get a temporary access token from PayPal. + */ + $response = wp_remote_post( + $api_url . 'v1/oauth2/token', + $api_args + ); if ( is_wp_error( $response ) ) { wp_send_json_error( $response->get_error_message() ); @@ -258,11 +304,13 @@ function get_and_save_credentials() { $body = json_decode( wp_remote_retrieve_body( $response ) ); if ( empty( $body->access_token ) ) { - wp_send_json_error( sprintf( - /* Translators: %d - HTTP response code */ - __( 'Unexpected response from PayPal while generating token. Response code: %d. Please try again.', 'easy-digital-downloads' ), - $code - ) ); + wp_send_json_error( + sprintf( + /* Translators: %d - HTTP response code */ + __( 'Unexpected response from PayPal while generating token. Response code: %d. Please try again.', 'easy-digital-downloads' ), + $code + ) + ); } /* @@ -599,10 +647,16 @@ function process_delete() { 'paypal_' . $mode . '_client_id', 'paypal_' . $mode . '_client_secret', ); + foreach ( $edd_settings_to_delete as $option_name ) { edd_delete_option( $option_name ); } + // Unset the PayPal Commerce gateway as an enabled gateway. + $enabled_gateways = edd_get_option( 'gateways', array() ); + unset( $enabled_gateways['paypal_commerce'] ); + edd_update_option( 'gateways', $enabled_gateways ); + wp_safe_redirect( esc_url_raw( get_settings_url() ) ); exit; } diff --git a/wp-content/plugins/easy-digital-downloads/includes/gateways/paypal/admin/scripts.php b/wp-content/plugins/easy-digital-downloads/includes/gateways/paypal/admin/scripts.php index efdaa916..57156f51 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/gateways/paypal/admin/scripts.php +++ b/wp-content/plugins/easy-digital-downloads/includes/gateways/paypal/admin/scripts.php @@ -10,29 +10,51 @@ namespace EDD\Gateways\PayPal\Admin; +use EDD\Gateways\PayPal; + /** * Enqueue PayPal connect admin JS. * * @since 2.11 */ function enqueue_connect_scripts() { - if ( edd_is_admin_page( 'settings' ) && isset( $_GET['section'] ) && 'paypal_commerce' === $_GET['section'] ) { - \EDD\Gateways\PayPal\maybe_enqueue_polyfills(); + if ( edd_is_admin_page( 'settings' ) && isset( $_GET['section'] ) && 'paypal_commerce' === $_GET['section'] ) { /* phpcs:ignore WordPress.Security.NonceVerification.Recommended */ + PayPal\maybe_enqueue_polyfills(); - $subdomain = edd_is_test_mode() ? 'sandbox.' : ''; - - wp_enqueue_script( - 'sandhills-paypal-partner-js', - 'https://www.' . $subdomain . 'paypal.com/webapps/merchantboarding/js/lib/lightbox/partner.js', - array(), - null, - true + wp_localize_script( + 'edd-admin-settings', + 'eddPayPalConnectVars', + array( + 'defaultError' => esc_html__( 'An unexpected error occurred. Please refresh the page and try again.', 'easy-digital-downloads' ), + 'isConnected' => PayPal\has_rest_api_connection(), + ) ); - - wp_localize_script( 'edd-admin-settings', 'eddPayPalConnectVars', array( - 'defaultError' => esc_html__( 'An unexpected error occurred. Please refresh the page and try again.', 'easy-digital-downloads' ) - ) ); } } - add_action( 'admin_enqueue_scripts', __NAMESPACE__ . '\enqueue_connect_scripts' ); + +/** + * Forces the Cache-Control header on the PayPal Commerce settings page to send the no-store header + * which prevents the back-forward cache (bfcache) from storing a copy of this page in local + * cache. This helps make sure that page elements modified via AJAX and DOM manipulations aren't + * incorrectly shown as if they never changed. + * + * See: https://github.com/easydigitaldownloads/EDD-Software-Licensing/issues/1346#issuecomment-382159918 + * + * @since 3.6 + * @param array $headers An array of nocache headers. + * + * @return array + */ +function _bfcache_buster( $headers ) { + if ( ! is_admin() ) { + return $headers; + } + + if ( edd_is_admin_page( 'settings' ) && isset( $_GET['section'] ) && 'paypal_commerce' === $_GET['section'] ) { /* phpcs:ignore WordPress.Security.NonceVerification.Recommended */ + $headers['Cache-Control'] = 'no-cache, must-revalidate, max-age=0, no-store'; + } + + return $headers; +} +add_filter( 'nocache_headers', __NAMESPACE__ . '\_bfcache_buster', 10, 1 ); diff --git a/wp-content/plugins/easy-digital-downloads/includes/gateways/paypal/admin/settings.php b/wp-content/plugins/easy-digital-downloads/includes/gateways/paypal/admin/settings.php index ecd66c34..c927d30d 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/gateways/paypal/admin/settings.php +++ b/wp-content/plugins/easy-digital-downloads/includes/gateways/paypal/admin/settings.php @@ -23,6 +23,7 @@ function get_settings_url() { return admin_url( 'edit.php?post_type=download&page=edd-settings&tab=gateways§ion=paypal_commerce' ); } + /** * Register the PayPal Standard gateway subsection * @@ -36,7 +37,6 @@ function register_paypal_gateway_section( $gateway_sections ) { return $gateway_sections; } - add_filter( 'edd_settings_sections_gateways', __NAMESPACE__ . '\register_paypal_gateway_section', 1, 1 ); /** @@ -55,58 +55,55 @@ function register_gateway_settings( $gateway_settings ) { 'name' => '

    ' . __( 'PayPal Settings', 'easy-digital-downloads' ) . '

    ', 'type' => 'header', ), - 'paypal_documentation' => array( - 'id' => 'paypal_documentation', - 'name' => __( 'Documentation', 'easy-digital-downloads' ), - 'desc' => documentation_settings_field(), - 'type' => 'descriptive_text' - ), 'paypal_connect_button' => array( 'id' => 'paypal_connect_button', 'name' => __( 'Connection Status', 'easy-digital-downloads' ), - 'desc' => connect_settings_field(), - 'type' => 'descriptive_text', 'class' => 'edd-paypal-connect-row', + 'type' => 'hook', ), 'paypal_sandbox_client_id' => array( 'id' => 'paypal_sandbox_client_id', 'name' => __( 'Test Client ID', 'easy-digital-downloads' ), - 'desc' => __( 'Enter your test client ID.', 'easy-digital-downloads' ), - 'type' => 'text', - 'size' => 'regular', - 'class' => 'edd-hidden' + 'desc' => __( 'Enter your test client ID.', 'easy-digital-downloads' ), + 'type' => 'text', + 'size' => 'regular', + 'class' => 'edd-hidden', ), 'paypal_sandbox_client_secret' => array( - 'id' => 'paypal_sandbox_client_secret', - 'name' => __( 'Test Client Secret', 'easy-digital-downloads' ), - 'desc' => __( 'Enter your test client secret.', 'easy-digital-downloads' ), - 'type' => 'password', - 'size' => 'regular', - 'class' => 'edd-hidden' + 'id' => 'paypal_sandbox_client_secret', + 'name' => __( 'Test Client Secret', 'easy-digital-downloads' ), + 'desc' => __( 'Enter your test client secret.', 'easy-digital-downloads' ), + 'type' => 'password', + 'size' => 'regular', + 'class' => 'edd-hidden', ), 'paypal_live_client_id' => array( - 'id' => 'paypal_live_client_id', - 'name' => __( 'Live Client ID', 'easy-digital-downloads' ), - 'desc' => __( 'Enter your live client ID.', 'easy-digital-downloads' ), - 'type' => 'text', - 'size' => 'regular', - 'class' => 'edd-hidden' + 'id' => 'paypal_live_client_id', + 'name' => __( 'Live Client ID', 'easy-digital-downloads' ), + 'desc' => __( 'Enter your live client ID.', 'easy-digital-downloads' ), + 'type' => 'text', + 'size' => 'regular', + 'class' => 'edd-hidden', ), 'paypal_live_client_secret' => array( - 'id' => 'paypal_live_client_secret', - 'name' => __( 'Live Client Secret', 'easy-digital-downloads' ), - 'desc' => __( 'Enter your live client secret.', 'easy-digital-downloads' ), - 'type' => 'password', - 'size' => 'regular', - 'class' => 'edd-hidden' + 'id' => 'paypal_live_client_secret', + 'name' => __( 'Live Client Secret', 'easy-digital-downloads' ), + 'desc' => __( 'Enter your live client secret.', 'easy-digital-downloads' ), + 'type' => 'password', + 'size' => 'regular', + 'class' => 'edd-hidden', + ), + 'paypal_documentation' => array( + 'id' => 'paypal_documentation', + 'name' => '', + 'type' => 'hook', ), ); $is_connected = PayPal\has_rest_api_connection(); if ( ! $is_connected ) { $paypal_settings['paypal_settings']['tooltip_title'] = __( 'Connect with PayPal', 'easy-digital-downloads' ); - $paypal_settings['paypal_settings']['tooltip_desc'] = __( 'Connecting your store with PayPal allows Easy Digital Downloads to automatically configure your store to securely communicate PayPal.

    You may see "Sandhills Development, LLC", mentioned during the process—that is the company behind Easy Digital Downloads.', 'easy-digital-downloads' ); - + $paypal_settings['paypal_settings']['tooltip_desc'] = __( 'Connecting your store with PayPal allows Easy Digital Downloads to automatically configure your store to securely communicate with PayPal.

    You may see "Sandhills Development, LLC", mentioned during the process—that is the company behind Easy Digital Downloads.', 'easy-digital-downloads' ); } /** @@ -129,15 +126,15 @@ add_filter( 'edd_settings_gateways', __NAMESPACE__ . '\register_gateway_settings * @return string */ function documentation_settings_field() { - ob_start(); ?>

    - our documentation.', 'easy-digital-downloads' ), - 'https://easydigitaldownloads.com/docs/paypal-setup/' - ), array( 'a' => array( 'href' => true, 'target' => true ) ) ) - ?> + + + + + + +

    =' ) ) { - wp_enqueue_script( 'wp-polyfill' ); - } else { - wp_enqueue_script( - 'wp-polyfill', - EDD_PLUGIN_URL . 'assets/js/wp-polyfill.min.js', - array(), - false, - false - ); - } + wp_enqueue_script( 'wp-polyfill' ); + } /** diff --git a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/assets/css/build/admin.min.css b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/assets/css/build/admin.min.css index 72492400..c2786806 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/assets/css/build/admin.min.css +++ b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/assets/css/build/admin.min.css @@ -1,3 +1,3 @@ -.edds-stripe-connect-acount-info .spinner{float:none;display:inline-block;margin:-2px 5px 0 0}#edds-payment-gateways-stripe-unmet-requirements{margin:-10px 0 0 -16px;padding-top:10px}#edds-payment-gateways-stripe-unmet-requirements input[type=checkbox]{margin:0 6px 0 0}.edds-requirements-not-met th{display:none}.edds-requirements-not-met td{padding:0}.edd-stripe-connect{display:inline-block;margin-bottom:1px;background-image:linear-gradient(#28A0E5, #015E94);-webkit-font-smoothing:antialiased;border:0;padding:1px;height:30px;text-decoration:none;border-radius:4px;box-shadow:0 1px 0 rgba(0,0,0,.2);cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none}.edd-stripe-connect span{display:block;position:relative;padding:0 12px 0 44px;height:30px;background:#1275ff;background-image:linear-gradient(#7DC5EE, #008CDD 85%, #30A2E4);font-size:14px;line-height:30px;color:#fff;font-weight:bold;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;text-shadow:0 -1px 0 rgba(0,0,0,.2);box-shadow:inset 0 1px 0 rgba(255,255,255,.25);border-radius:3px}.edd-stripe-connect span:before{content:"";display:block;position:absolute;left:11px;top:50%;width:23px;height:24px;margin-top:-12px;background-repeat:no-repeat;background-size:23px 24px}.edd-stripe-connect:active{background:#005d93}.edd-stripe-connect:active span{color:#eee;background:#008cdd;background-image:linear-gradient(#008CDD, #008CDD 85%, #239ADF);box-shadow:inset 0 1px 0 rgba(0,0,0,.1)}.edd-stripe-connect span:before,.edd-stripe-connect.blue span:before{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABcAAAAYCAYAAAARfGZ1AAAKRGlDQ1BJQ0MgUHJvZmlsZQAASA2dlndUFNcXx9/MbC+0XZYiZem9twWkLr1IlSYKy+4CS1nWZRewN0QFIoqICFYkKGLAaCgSK6JYCAgW7AEJIkoMRhEVlczGHPX3Oyf5/U7eH3c+8333nnfn3vvOGQAoASECYQ6sAEC2UCKO9PdmxsUnMPG9AAZEgAM2AHC4uaLQKL9ogK5AXzYzF3WS8V8LAuD1LYBaAK5bBIQzmX/p/+9DkSsSSwCAwtEAOx4/l4tyIcpZ+RKRTJ9EmZ6SKWMYI2MxmiDKqjJO+8Tmf/p8Yk8Z87KFPNRHlrOIl82TcRfKG/OkfJSREJSL8gT8fJRvoKyfJc0WoPwGZXo2n5MLAIYi0yV8bjrK1ihTxNGRbJTnAkCgpH3FKV+xhF+A5gkAO0e0RCxIS5cwjbkmTBtnZxYzgJ+fxZdILMI53EyOmMdk52SLOMIlAHz6ZlkUUJLVlokW2dHG2dHRwtYSLf/n9Y+bn73+GWS9/eTxMuLPnkGMni/al9gvWk4tAKwptDZbvmgpOwFoWw+A6t0vmv4+AOQLAWjt++p7GLJ5SZdIRC5WVvn5+ZYCPtdSVtDP6386fPb8e/jqPEvZeZ9rx/Thp3KkWRKmrKjcnKwcqZiZK+Jw+UyL/x7ifx34VVpf5WEeyU/li/lC9KgYdMoEwjS03UKeQCLIETIFwr/r8L8M+yoHGX6aaxRodR8BPckSKPTRAfJrD8DQyABJ3IPuQJ/7FkKMAbKbF6s99mnuUUb3/7T/YeAy9BXOFaQxZTI7MprJlYrzZIzeCZnBAhKQB3SgBrSAHjAGFsAWOAFX4Al8QRAIA9EgHiwCXJAOsoEY5IPlYA0oAiVgC9gOqsFeUAcaQBM4BtrASXAOXARXwTVwE9wDQ2AUPAOT4DWYgSAID1EhGqQGaUMGkBlkC7Egd8gXCoEioXgoGUqDhJAUWg6tg0qgcqga2g81QN9DJ6Bz0GWoH7oDDUPj0O/QOxiBKTAd1oQNYSuYBXvBwXA0vBBOgxfDS+FCeDNcBdfCR+BW+Bx8Fb4JD8HP4CkEIGSEgeggFggLYSNhSAKSioiRlUgxUonUIk1IB9KNXEeGkAnkLQaHoWGYGAuMKyYAMx/DxSzGrMSUYqoxhzCtmC7MdcwwZhLzEUvFamDNsC7YQGwcNg2bjy3CVmLrsS3YC9ib2FHsaxwOx8AZ4ZxwAbh4XAZuGa4UtxvXjDuL68eN4KbweLwa3gzvhg/Dc/ASfBF+J/4I/gx+AD+Kf0MgE7QJtgQ/QgJBSFhLqCQcJpwmDBDGCDNEBaIB0YUYRuQRlxDLiHXEDmIfcZQ4Q1IkGZHcSNGkDNIaUhWpiXSBdJ/0kkwm65KdyRFkAXk1uYp8lHyJPEx+S1GimFLYlESKlLKZcpBylnKH8pJKpRpSPakJVAl1M7WBep76kPpGjiZnKRcox5NbJVcj1yo3IPdcnihvIO8lv0h+qXyl/HH5PvkJBaKCoQJbgaOwUqFG4YTCoMKUIk3RRjFMMVuxVPGw4mXFJ0p4JUMlXyWeUqHSAaXzSiM0hKZHY9O4tHW0OtoF2igdRzeiB9Iz6CX07+i99EllJWV75RjlAuUa5VPKQwyEYcgIZGQxyhjHGLcY71Q0VbxU+CqbVJpUBlSmVeeoeqryVYtVm1Vvqr5TY6r5qmWqbVVrU3ugjlE3VY9Qz1ffo35BfWIOfY7rHO6c4jnH5tzVgDVMNSI1lmkc0OjRmNLU0vTXFGnu1DyvOaHF0PLUytCq0DqtNa5N03bXFmhXaJ/RfspUZnoxs5hVzC7mpI6GToCOVGe/Tq/OjK6R7nzdtbrNug/0SHosvVS9Cr1OvUl9bf1Q/eX6jfp3DYgGLIN0gx0G3QbThkaGsYYbDNsMnxipGgUaLTVqNLpvTDX2MF5sXGt8wwRnwjLJNNltcs0UNnUwTTetMe0zg80czQRmu836zbHmzuZC81rzQQuKhZdFnkWjxbAlwzLEcq1lm+VzK32rBKutVt1WH60drLOs66zv2SjZBNmstemw+d3W1JZrW2N7w45q52e3yq7d7oW9mT3ffo/9bQeaQ6jDBodOhw+OTo5ixybHcSd9p2SnXU6DLDornFXKuuSMdfZ2XuV80vmti6OLxOWYy2+uFq6Zroddn8w1msufWzd3xE3XjeO2323Ineme7L7PfchDx4PjUevxyFPPk+dZ7znmZeKV4XXE67m3tbfYu8V7mu3CXsE+64P4+PsU+/T6KvnO9632fein65fm1+g36e/gv8z/bAA2IDhga8BgoGYgN7AhcDLIKWhFUFcwJTgquDr4UYhpiDikIxQODQrdFnp/nsE84by2MBAWGLYt7EG4Ufji8B8jcBHhETURjyNtIpdHdkfRopKiDke9jvaOLou+N994vnR+Z4x8TGJMQ8x0rE9seexQnFXcirir8erxgvj2BHxCTEJ9wtQC3wXbF4wmOiQWJd5aaLSwYOHlReqLshadSpJP4iQdT8YmxyYfTn7PCePUcqZSAlN2pUxy2dwd3Gc8T14Fb5zvxi/nj6W6pZanPklzS9uWNp7ukV6ZPiFgC6oFLzICMvZmTGeGZR7MnM2KzWrOJmQnZ58QKgkzhV05WjkFOf0iM1GRaGixy+LtiyfFweL6XCh3YW67hI7+TPVIjaXrpcN57nk1eW/yY/KPFygWCAt6lpgu2bRkbKnf0m+XYZZxl3Uu11m+ZvnwCq8V+1dCK1NWdq7SW1W4anS1/+pDa0hrMtf8tNZ6bfnaV+ti13UUahauLhxZ77++sUiuSFw0uMF1w96NmI2Cjb2b7Dbt3PSxmFd8pcS6pLLkfSm39Mo3Nt9UfTO7OXVzb5lj2Z4tuC3CLbe2emw9VK5YvrR8ZFvottYKZkVxxavtSdsvV9pX7t1B2iHdMVQVUtW+U3/nlp3vq9Orb9Z41zTv0ti1adf0bt7ugT2ee5r2au4t2ftun2Df7f3++1trDWsrD+AO5B14XBdT1/0t69uGevX6kvoPB4UHhw5FHupqcGpoOKxxuKwRbpQ2jh9JPHLtO5/v2pssmvY3M5pLjoKj0qNPv0/+/tax4GOdx1nHm34w+GFXC62luBVqXdI62ZbeNtQe395/IuhEZ4drR8uPlj8ePKlzsuaU8qmy06TThadnzyw9M3VWdHbiXNq5kc6kznvn487f6Iro6r0QfOHSRb+L57u9us9ccrt08rLL5RNXWFfarjpebe1x6Gn5yeGnll7H3tY+p772a87XOvrn9p8e8Bg4d93n+sUbgTeu3px3s//W/Fu3BxMHh27zbj+5k3Xnxd28uzP3Vt/H3i9+oPCg8qHGw9qfTX5uHnIcOjXsM9zzKOrRvRHuyLNfcn95P1r4mPq4ckx7rOGJ7ZOT437j154ueDr6TPRsZqLoV8Vfdz03fv7Db56/9UzGTY6+EL+Y/b30pdrLg6/sX3VOhU89fJ39ema6+I3am0NvWW+738W+G5vJf49/X/XB5EPHx+CP92ezZ2f/AAOY8/wRDtFgAAADQklEQVRIDbWVaUiUQRjHZ96dXY/d1fYQj1U03dJSw9YkFgy6DIkILRArQSSC7PjQjQQqVH7oQ0GHQUWgpQhKHzoNSqiUwpXcsrwIjzVtPVrzbPV9Z6bZhYV3N3WXYAeGmWeeZ37z8J95GEgpBf5oeXn1Es4fYAdzPDlM6je4RBYhR+LMU89UxiCBGiCgkUwsBYSA+SlPKLQBQAYEAZm+3j42K96z3NyOF7VOeMrp62opRcacjPW5+43rDTpNSKQ8QKZAEg7xmPCTs/O27uGJgXuNbW0pxyvLfTmAEBzthEsFZLxRvPdi5rpYo2cmUiQJDA4IVeo0obGdlvGfXUPj0Sym2zPuHxvzcWjDyVupJ/YYizKTGNjLw/HiduNTAqIRIUJ6Vpp+ky8bCSFgwQ2xgkGxFi1ioNWEBGuJB31gbLIv/2pd7SpFoGxtpCYkLSEq4ptlzIYFO7tc7w0TKkeEYg5ADnrWkkYhD8s26GPq3nW0WKxTptftPYBI4Mj3O2fHvKNZBMVSDmMwarXNjDkSF3d5kExZeiCr8M2VI+VFu9IvsPcYtzAvkfoEZkEEE45jMppq3ppbCNPFIY1nD1cpo07lbMmvOXeoDCF8BLKy9uUAAjDkBh+c6bz78mNtVVP7MwET7JBnqb4xXpdWVpC1OVzWn+ELHLCsneX/s7rkRWl1463cy1U3WroG21jhCGKJXPOtKQnpAuENvsAppgDB3TcDVIrpDHbK5Kd+y7W8iodNybHh22rOHyxUK+UaMYjZaoyp25rYL54TSihSKmwZ14v3lc3ZFxdbeywjn/tGJnkmzrydX1ApxOEACKymmXLYfXVpi1JMEOGxPi1ep18doY4r2J7uFumQQ9yGf01bMcZW8dpyc0oIjxxpuC5wuUDX+ovWrnYeg3aXvdLIqnmOvXPsfH6uA5YbTb1DX8ofvTLzTy6ZV4K6fAw+gXiATfdffmjeaUgc1UdpdWplsCooQBrEnqUw82dhdnjit/Vxc4f59tP3DRjzJvYteqrl4rmNlJIfrOwpgNklesDRNQBCHYtQAQqD2CgACNjHAJnG1EyfV/S67fZiJB5t2OGEe4n7L3fS4fpEv/2hUEATfoPbuam5v8N7nps70YTbAAAAAElFTkSuQmCC")}.edds-stripe-connect-acount-info span.edd-pro-upgrade a{color:#1da867;font-weight:600;text-decoration:none}@media only screen and (-webkit-min-device-pixel-ratio: 1.5),only screen and (min--moz-device-pixel-ratio: 1.5),only screen and (min-device-pixel-ratio: 1.5){.edd-stripe-connect span:before,.edd-stripe-connect.blue span:before{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAwCAYAAABuZUjcAAAKRGlDQ1BJQ0MgUHJvZmlsZQAASA2dlndUFNcXx9/MbC+0XZYiZem9twWkLr1IlSYKy+4CS1nWZRewN0QFIoqICFYkKGLAaCgSK6JYCAgW7AEJIkoMRhEVlczGHPX3Oyf5/U7eH3c+8333nnfn3vvOGQAoASECYQ6sAEC2UCKO9PdmxsUnMPG9AAZEgAM2AHC4uaLQKL9ogK5AXzYzF3WS8V8LAuD1LYBaAK5bBIQzmX/p/+9DkSsSSwCAwtEAOx4/l4tyIcpZ+RKRTJ9EmZ6SKWMYI2MxmiDKqjJO+8Tmf/p8Yk8Z87KFPNRHlrOIl82TcRfKG/OkfJSREJSL8gT8fJRvoKyfJc0WoPwGZXo2n5MLAIYi0yV8bjrK1ihTxNGRbJTnAkCgpH3FKV+xhF+A5gkAO0e0RCxIS5cwjbkmTBtnZxYzgJ+fxZdILMI53EyOmMdk52SLOMIlAHz6ZlkUUJLVlokW2dHG2dHRwtYSLf/n9Y+bn73+GWS9/eTxMuLPnkGMni/al9gvWk4tAKwptDZbvmgpOwFoWw+A6t0vmv4+AOQLAWjt++p7GLJ5SZdIRC5WVvn5+ZYCPtdSVtDP6386fPb8e/jqPEvZeZ9rx/Thp3KkWRKmrKjcnKwcqZiZK+Jw+UyL/x7ifx34VVpf5WEeyU/li/lC9KgYdMoEwjS03UKeQCLIETIFwr/r8L8M+yoHGX6aaxRodR8BPckSKPTRAfJrD8DQyABJ3IPuQJ/7FkKMAbKbF6s99mnuUUb3/7T/YeAy9BXOFaQxZTI7MprJlYrzZIzeCZnBAhKQB3SgBrSAHjAGFsAWOAFX4Al8QRAIA9EgHiwCXJAOsoEY5IPlYA0oAiVgC9gOqsFeUAcaQBM4BtrASXAOXARXwTVwE9wDQ2AUPAOT4DWYgSAID1EhGqQGaUMGkBlkC7Egd8gXCoEioXgoGUqDhJAUWg6tg0qgcqga2g81QN9DJ6Bz0GWoH7oDDUPj0O/QOxiBKTAd1oQNYSuYBXvBwXA0vBBOgxfDS+FCeDNcBdfCR+BW+Bx8Fb4JD8HP4CkEIGSEgeggFggLYSNhSAKSioiRlUgxUonUIk1IB9KNXEeGkAnkLQaHoWGYGAuMKyYAMx/DxSzGrMSUYqoxhzCtmC7MdcwwZhLzEUvFamDNsC7YQGwcNg2bjy3CVmLrsS3YC9ib2FHsaxwOx8AZ4ZxwAbh4XAZuGa4UtxvXjDuL68eN4KbweLwa3gzvhg/Dc/ASfBF+J/4I/gx+AD+Kf0MgE7QJtgQ/QgJBSFhLqCQcJpwmDBDGCDNEBaIB0YUYRuQRlxDLiHXEDmIfcZQ4Q1IkGZHcSNGkDNIaUhWpiXSBdJ/0kkwm65KdyRFkAXk1uYp8lHyJPEx+S1GimFLYlESKlLKZcpBylnKH8pJKpRpSPakJVAl1M7WBep76kPpGjiZnKRcox5NbJVcj1yo3IPdcnihvIO8lv0h+qXyl/HH5PvkJBaKCoQJbgaOwUqFG4YTCoMKUIk3RRjFMMVuxVPGw4mXFJ0p4JUMlXyWeUqHSAaXzSiM0hKZHY9O4tHW0OtoF2igdRzeiB9Iz6CX07+i99EllJWV75RjlAuUa5VPKQwyEYcgIZGQxyhjHGLcY71Q0VbxU+CqbVJpUBlSmVeeoeqryVYtVm1Vvqr5TY6r5qmWqbVVrU3ugjlE3VY9Qz1ffo35BfWIOfY7rHO6c4jnH5tzVgDVMNSI1lmkc0OjRmNLU0vTXFGnu1DyvOaHF0PLUytCq0DqtNa5N03bXFmhXaJ/RfspUZnoxs5hVzC7mpI6GToCOVGe/Tq/OjK6R7nzdtbrNug/0SHosvVS9Cr1OvUl9bf1Q/eX6jfp3DYgGLIN0gx0G3QbThkaGsYYbDNsMnxipGgUaLTVqNLpvTDX2MF5sXGt8wwRnwjLJNNltcs0UNnUwTTetMe0zg80czQRmu836zbHmzuZC81rzQQuKhZdFnkWjxbAlwzLEcq1lm+VzK32rBKutVt1WH60drLOs66zv2SjZBNmstemw+d3W1JZrW2N7w45q52e3yq7d7oW9mT3ffo/9bQeaQ6jDBodOhw+OTo5ixybHcSd9p2SnXU6DLDornFXKuuSMdfZ2XuV80vmti6OLxOWYy2+uFq6Zroddn8w1msufWzd3xE3XjeO2323Ineme7L7PfchDx4PjUevxyFPPk+dZ7znmZeKV4XXE67m3tbfYu8V7mu3CXsE+64P4+PsU+/T6KvnO9632fein65fm1+g36e/gv8z/bAA2IDhga8BgoGYgN7AhcDLIKWhFUFcwJTgquDr4UYhpiDikIxQODQrdFnp/nsE84by2MBAWGLYt7EG4Ufji8B8jcBHhETURjyNtIpdHdkfRopKiDke9jvaOLou+N994vnR+Z4x8TGJMQ8x0rE9seexQnFXcirir8erxgvj2BHxCTEJ9wtQC3wXbF4wmOiQWJd5aaLSwYOHlReqLshadSpJP4iQdT8YmxyYfTn7PCePUcqZSAlN2pUxy2dwd3Gc8T14Fb5zvxi/nj6W6pZanPklzS9uWNp7ukV6ZPiFgC6oFLzICMvZmTGeGZR7MnM2KzWrOJmQnZ58QKgkzhV05WjkFOf0iM1GRaGixy+LtiyfFweL6XCh3YW67hI7+TPVIjaXrpcN57nk1eW/yY/KPFygWCAt6lpgu2bRkbKnf0m+XYZZxl3Uu11m+ZvnwCq8V+1dCK1NWdq7SW1W4anS1/+pDa0hrMtf8tNZ6bfnaV+ti13UUahauLhxZ77++sUiuSFw0uMF1w96NmI2Cjb2b7Dbt3PSxmFd8pcS6pLLkfSm39Mo3Nt9UfTO7OXVzb5lj2Z4tuC3CLbe2emw9VK5YvrR8ZFvottYKZkVxxavtSdsvV9pX7t1B2iHdMVQVUtW+U3/nlp3vq9Orb9Z41zTv0ti1adf0bt7ugT2ee5r2au4t2ftun2Df7f3++1trDWsrD+AO5B14XBdT1/0t69uGevX6kvoPB4UHhw5FHupqcGpoOKxxuKwRbpQ2jh9JPHLtO5/v2pssmvY3M5pLjoKj0qNPv0/+/tax4GOdx1nHm34w+GFXC62luBVqXdI62ZbeNtQe395/IuhEZ4drR8uPlj8ePKlzsuaU8qmy06TThadnzyw9M3VWdHbiXNq5kc6kznvn487f6Iro6r0QfOHSRb+L57u9us9ccrt08rLL5RNXWFfarjpebe1x6Gn5yeGnll7H3tY+p772a87XOvrn9p8e8Bg4d93n+sUbgTeu3px3s//W/Fu3BxMHh27zbj+5k3Xnxd28uzP3Vt/H3i9+oPCg8qHGw9qfTX5uHnIcOjXsM9zzKOrRvRHuyLNfcn95P1r4mPq4ckx7rOGJ7ZOT437j154ueDr6TPRsZqLoV8Vfdz03fv7Db56/9UzGTY6+EL+Y/b30pdrLg6/sX3VOhU89fJ39ema6+I3am0NvWW+738W+G5vJf49/X/XB5EPHx+CP92ezZ2f/AAOY8/wRDtFgAAAIbklEQVRoBdVZa5BURxU+fZ9z57mzs7PvF4i7srAQSCifMVDERC0jYlzUlJalKeGPlCnL/NEfywpWacoiVZRVJIYfGjGUu5bxj5qHFSAYyQOBEsJzYSHDvnd2dp535j66PX1vNgsULDPs1cr2Vs+9e7v79NfnnnP663MJYwwWYxEWI2iOedEClxabxgkBwjEvOuA9PQOOlSw64JMr4vK8GidYYMcOES4tVSEAAZ8FAUqon1GiAJEEEG0CjFB8cTaxZUMAo1gEqQA0UABprAjPbrUwXnkesgqKP8CBk5vDIenrE+BKmwI+MawA1MbCkdV10cBDflXuVmSxQRbFkCAQZ9U2ZTaONyxKcyXDHjMs83ImV3rz6njmDRPMUZB80zAJOuvvsflkXpTP7DrWyeXcYCqk75AEieawrEoty1vrvlcV0ja3VQdb1rVUQVd9EFqqNIj5ZfDJooPBsCnohq2ldDMynC42XZnW7z09lu25lMxDMl34y0gyvTsBwyewc84Z4MEPpWIzF/MBcLLtNzJISmxZU+PmWETbtqGzfvVja5uguyF02+kCIEJUk6Ex4oMV9XP9ZnQT/nZ24it7XrtoJ5LZ7SjAM+Bg2+0ckAOcbBkQIaZFVzY1bGurjezYfn87PNQZ5+13ZaQRXMzH26Lg8ymfUokQdAR59INOc53GQ6q/Jiiua6oJ7+h9uAPua47cHeLrwHEmQRmTGLHV6x4v+JYwWsOFCGRDn6RKem1rPPrkN9Y0uqAXLN4VwCgjYGEE8rBgMAjwKsF9S9WgLa9qjYcf+Po9jXdlGrfC5Wj8Vg0Lf+ZENAFmpGB9TWTLhmUxUD1UDg/gtudRnK+a4RtkgqQyO+RT5LVrmiLgJcN19gcGNojUWriS5yRQm7pcBTc/vyCKdW1RrWwzOTiYhGf+dRUmcgZosgDVfgWaMCS2V2tO+OzG0MiVjdUwiFiYm9a7O4kJAoZEooV9H4T0O0ofODkKr5+6+nY6V3heVZQpv6ZWaz55qSJJnXjtUBW5pT7k8xeK5u+B0PQdBVbQgTLq9HbQYthyNVSmTT6A/nB0aGpF0K99+trY1F7TNI9PZGXkKUVRtYjGZCIOV1dHR4Ynz8FSLV8BrjK6uiAlpLcmco1ipmgpAaU8rfesboCuumBg31uJbx6+qH0uX9D/em0i85xFhaslKZKA8/82RtYDhd/1MkCuBnjxrLgKB0EQSb5oWO+9O1bZrsy3+Kc3dcH+b99b07NuyXe6P9r8z/am+C9lkuqCjo4qGGkQES76qJcuz/2GOlUoFuVsQS+98frlaSeq8Gkqqctrg7Dz853wwrfugUfXtj3W3tJ8oCletRUEXy1SCSSYHhdu41gFqILcZCrzwkvnJmE0U3JtHefiL7eS2l7th11f7IQ9j65aVh+r+nlzbd2TELJrHPLmIXZX3wyBX8MTQMm8PJ0u9Pe9chGQYy9omvXouHu/thJqI+Ef1sZDm0AMBmfPiQsSPDuY2zhWwSH5ISU5Pjm98x9nRo7+7JVBB3wl5nJz35Vo/z/esBQUVf2+QlkD9Aw42/Ts3Au7ushdAhQ5UzJoOjE+OrV9/1tDR7cNnIax7N2bDX9nm1bUQXdz9Rp/MLwRoqAtDOzcaO7rvDrAWW8vhcatWVNjF6cmJre9embkz1947h3YfXgIUgVzblQldxgFH0ZOr/qULwM15k4Zlci4Vd9ZU5ltY71oObHBnBFQBidmUk8kEsOP7Hntwqsb974NfS8PAh7LKoo23Hw+2R4FQcSzKlDPgFOEyf8kx3HW94kQ7xJgRRdAJG7CyIWxgiXNUN0+k5nJLN83k3n8D8eHN3+1ux5+8uBHIKiWt1G1Rn3IJkiUCcQzU3G0h9qWHMeJdoSrwtr9dl6I6DNjFwRRyxiKnStSqkPJPsGSmZ+mp1P9z2dzOy3Klj31yMdmX9S8V75APEsomMZwT9fz9i6vkW9AvEgQyqrBQM2Dq9rrD0gCgXfHA0jpjIRm2Zcw+3CR2tZl27SnMZFSZ1lWcRwZITeDckresAEXaoKwwBh7/WQubgTOQj5BVjdv7KiBJz7bztMNcHIk03JiONNyfiK/ntv2VMHAMx6BjpoA/Gj9Emdjul7W7e6TeQNDK9WJLRm361P5c1drEmAaymaYoXpfjZoiOk7FHWuh5dxEHmzLHiXM9oyTz9FawRZw65f5yyzXBMpd0JGhFKB5nSwRMVvumDv2cxm4m1f5X4AuWhRePDUOtqEPQJVVGfWcBz1ahmPlTlxzqaJLquYZU1HTvjcTMD6dOULM0n+g5nKposHzdWbo7FgEkDBviWlYx++53XtQ33kvDU8dHAJm6L8usdwEZn09S3qiPed5lcCSLUpI0eEA8620zLbDl6bh8T+egkI+/7Rl6kegcTSPst1QUKaM+brhrjnF2yUQJNxnrGMnR7KbTw5nYFVjyAl98w2+VdvVlA67Dw3BgROjAKa+yyrpz0BKTbJnez1NT6AKrrnA1bEi1av2v3xaiL90dnxL2Kc0rsXc4WpcQEc8AEtiGrRiejmK6WWeMDIxtVwwKExijB5KFuBYIg1cy8dx0dTQ/yQVc78yBXMIqJ5i/VvvkqHdSjXuM/THKy7w2LQJ6fpJms38QiHGvlzBt+RwJv2JQ2elbjyRtjIi1AIRMAsKPuQduHVzr2YW+kIBE5BTwOzzxLKOiMX8QVuWh00IpqD+S0WHtLlzefpLBOZo/IYvEqQPnTX5dxmy4xookqaCjRuT4mMi8g3bxs2KCkj3GFj4+QSzA0RkeskU8iCJeUiBDv09Jt8OPEV6k7DlP3gxxh/dAPymPh/Kf5d897dIOd9P7H8oEd4G1JV8wPGbRadx52sgLmrRAZ99EZ5+LZgV+v+4Llrg/wX6HRCxgvzAAwAAAABJRU5ErkJggg==")}} +.edds-stripe-connect-acount-info .spinner{float:none;display:inline-block;margin:-2px 5px 0 0}#edds-payment-gateways-stripe-unmet-requirements{margin:-10px 0 0 -16px;padding-top:10px}#edds-payment-gateways-stripe-unmet-requirements input[type=checkbox]{margin:0 6px 0 0}.edds-requirements-not-met th{display:none}.edds-requirements-not-met td{padding:0}.edd-stripe-connect{display:inline-block;margin-bottom:1px;background-image:linear-gradient(#28A0E5, #015E94);-webkit-font-smoothing:antialiased;border:0;padding:1px;height:30px;text-decoration:none;border-radius:4px;box-shadow:0 1px 0 rgba(0,0,0,.2);cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none}.edd-stripe-connect span{display:block;position:relative;padding:0 12px 0 44px;height:30px;background:#1275ff;background-image:linear-gradient(#7DC5EE, #008CDD 85%, #30A2E4);font-size:14px;line-height:30px;color:#fff;font-weight:bold;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;text-shadow:0 -1px 0 rgba(0,0,0,.2);box-shadow:inset 0 1px 0 rgba(255,255,255,.25);border-radius:3px}.edd-stripe-connect span:before{content:"";display:block;position:absolute;left:11px;top:50%;width:23px;height:24px;margin-top:-12px;background-repeat:no-repeat;background-size:23px 24px}.edd-stripe-connect:active{background:#005d93}.edd-stripe-connect:active span{color:#eee;background:#008cdd;background-image:linear-gradient(#008CDD, #008CDD 85%, #239ADF);box-shadow:inset 0 1px 0 rgba(0,0,0,.1)}.edd-stripe-connect span:before,.edd-stripe-connect.blue span:before{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABcAAAAYCAYAAAARfGZ1AAAKRGlDQ1BJQ0MgUHJvZmlsZQAASA2dlndUFNcXx9/MbC+0XZYiZem9twWkLr1IlSYKy+4CS1nWZRewN0QFIoqICFYkKGLAaCgSK6JYCAgW7AEJIkoMRhEVlczGHPX3Oyf5/U7eH3c+8333nnfn3vvOGQAoASECYQ6sAEC2UCKO9PdmxsUnMPG9AAZEgAM2AHC4uaLQKL9ogK5AXzYzF3WS8V8LAuD1LYBaAK5bBIQzmX/p/+9DkSsSSwCAwtEAOx4/l4tyIcpZ+RKRTJ9EmZ6SKWMYI2MxmiDKqjJO+8Tmf/p8Yk8Z87KFPNRHlrOIl82TcRfKG/OkfJSREJSL8gT8fJRvoKyfJc0WoPwGZXo2n5MLAIYi0yV8bjrK1ihTxNGRbJTnAkCgpH3FKV+xhF+A5gkAO0e0RCxIS5cwjbkmTBtnZxYzgJ+fxZdILMI53EyOmMdk52SLOMIlAHz6ZlkUUJLVlokW2dHG2dHRwtYSLf/n9Y+bn73+GWS9/eTxMuLPnkGMni/al9gvWk4tAKwptDZbvmgpOwFoWw+A6t0vmv4+AOQLAWjt++p7GLJ5SZdIRC5WVvn5+ZYCPtdSVtDP6386fPb8e/jqPEvZeZ9rx/Thp3KkWRKmrKjcnKwcqZiZK+Jw+UyL/x7ifx34VVpf5WEeyU/li/lC9KgYdMoEwjS03UKeQCLIETIFwr/r8L8M+yoHGX6aaxRodR8BPckSKPTRAfJrD8DQyABJ3IPuQJ/7FkKMAbKbF6s99mnuUUb3/7T/YeAy9BXOFaQxZTI7MprJlYrzZIzeCZnBAhKQB3SgBrSAHjAGFsAWOAFX4Al8QRAIA9EgHiwCXJAOsoEY5IPlYA0oAiVgC9gOqsFeUAcaQBM4BtrASXAOXARXwTVwE9wDQ2AUPAOT4DWYgSAID1EhGqQGaUMGkBlkC7Egd8gXCoEioXgoGUqDhJAUWg6tg0qgcqga2g81QN9DJ6Bz0GWoH7oDDUPj0O/QOxiBKTAd1oQNYSuYBXvBwXA0vBBOgxfDS+FCeDNcBdfCR+BW+Bx8Fb4JD8HP4CkEIGSEgeggFggLYSNhSAKSioiRlUgxUonUIk1IB9KNXEeGkAnkLQaHoWGYGAuMKyYAMx/DxSzGrMSUYqoxhzCtmC7MdcwwZhLzEUvFamDNsC7YQGwcNg2bjy3CVmLrsS3YC9ib2FHsaxwOx8AZ4ZxwAbh4XAZuGa4UtxvXjDuL68eN4KbweLwa3gzvhg/Dc/ASfBF+J/4I/gx+AD+Kf0MgE7QJtgQ/QgJBSFhLqCQcJpwmDBDGCDNEBaIB0YUYRuQRlxDLiHXEDmIfcZQ4Q1IkGZHcSNGkDNIaUhWpiXSBdJ/0kkwm65KdyRFkAXk1uYp8lHyJPEx+S1GimFLYlESKlLKZcpBylnKH8pJKpRpSPakJVAl1M7WBep76kPpGjiZnKRcox5NbJVcj1yo3IPdcnihvIO8lv0h+qXyl/HH5PvkJBaKCoQJbgaOwUqFG4YTCoMKUIk3RRjFMMVuxVPGw4mXFJ0p4JUMlXyWeUqHSAaXzSiM0hKZHY9O4tHW0OtoF2igdRzeiB9Iz6CX07+i99EllJWV75RjlAuUa5VPKQwyEYcgIZGQxyhjHGLcY71Q0VbxU+CqbVJpUBlSmVeeoeqryVYtVm1Vvqr5TY6r5qmWqbVVrU3ugjlE3VY9Qz1ffo35BfWIOfY7rHO6c4jnH5tzVgDVMNSI1lmkc0OjRmNLU0vTXFGnu1DyvOaHF0PLUytCq0DqtNa5N03bXFmhXaJ/RfspUZnoxs5hVzC7mpI6GToCOVGe/Tq/OjK6R7nzdtbrNug/0SHosvVS9Cr1OvUl9bf1Q/eX6jfp3DYgGLIN0gx0G3QbThkaGsYYbDNsMnxipGgUaLTVqNLpvTDX2MF5sXGt8wwRnwjLJNNltcs0UNnUwTTetMe0zg80czQRmu836zbHmzuZC81rzQQuKhZdFnkWjxbAlwzLEcq1lm+VzK32rBKutVt1WH60drLOs66zv2SjZBNmstemw+d3W1JZrW2N7w45q52e3yq7d7oW9mT3ffo/9bQeaQ6jDBodOhw+OTo5ixybHcSd9p2SnXU6DLDornFXKuuSMdfZ2XuV80vmti6OLxOWYy2+uFq6Zroddn8w1msufWzd3xE3XjeO2323Ineme7L7PfchDx4PjUevxyFPPk+dZ7znmZeKV4XXE67m3tbfYu8V7mu3CXsE+64P4+PsU+/T6KvnO9632fein65fm1+g36e/gv8z/bAA2IDhga8BgoGYgN7AhcDLIKWhFUFcwJTgquDr4UYhpiDikIxQODQrdFnp/nsE84by2MBAWGLYt7EG4Ufji8B8jcBHhETURjyNtIpdHdkfRopKiDke9jvaOLou+N994vnR+Z4x8TGJMQ8x0rE9seexQnFXcirir8erxgvj2BHxCTEJ9wtQC3wXbF4wmOiQWJd5aaLSwYOHlReqLshadSpJP4iQdT8YmxyYfTn7PCePUcqZSAlN2pUxy2dwd3Gc8T14Fb5zvxi/nj6W6pZanPklzS9uWNp7ukV6ZPiFgC6oFLzICMvZmTGeGZR7MnM2KzWrOJmQnZ58QKgkzhV05WjkFOf0iM1GRaGixy+LtiyfFweL6XCh3YW67hI7+TPVIjaXrpcN57nk1eW/yY/KPFygWCAt6lpgu2bRkbKnf0m+XYZZxl3Uu11m+ZvnwCq8V+1dCK1NWdq7SW1W4anS1/+pDa0hrMtf8tNZ6bfnaV+ti13UUahauLhxZ77++sUiuSFw0uMF1w96NmI2Cjb2b7Dbt3PSxmFd8pcS6pLLkfSm39Mo3Nt9UfTO7OXVzb5lj2Z4tuC3CLbe2emw9VK5YvrR8ZFvottYKZkVxxavtSdsvV9pX7t1B2iHdMVQVUtW+U3/nlp3vq9Orb9Z41zTv0ti1adf0bt7ugT2ee5r2au4t2ftun2Df7f3++1trDWsrD+AO5B14XBdT1/0t69uGevX6kvoPB4UHhw5FHupqcGpoOKxxuKwRbpQ2jh9JPHLtO5/v2pssmvY3M5pLjoKj0qNPv0/+/tax4GOdx1nHm34w+GFXC62luBVqXdI62ZbeNtQe395/IuhEZ4drR8uPlj8ePKlzsuaU8qmy06TThadnzyw9M3VWdHbiXNq5kc6kznvn487f6Iro6r0QfOHSRb+L57u9us9ccrt08rLL5RNXWFfarjpebe1x6Gn5yeGnll7H3tY+p772a87XOvrn9p8e8Bg4d93n+sUbgTeu3px3s//W/Fu3BxMHh27zbj+5k3Xnxd28uzP3Vt/H3i9+oPCg8qHGw9qfTX5uHnIcOjXsM9zzKOrRvRHuyLNfcn95P1r4mPq4ckx7rOGJ7ZOT437j154ueDr6TPRsZqLoV8Vfdz03fv7Db56/9UzGTY6+EL+Y/b30pdrLg6/sX3VOhU89fJ39ema6+I3am0NvWW+738W+G5vJf49/X/XB5EPHx+CP92ezZ2f/AAOY8/wRDtFgAAADQklEQVRIDbWVaUiUQRjHZ96dXY/d1fYQj1U03dJSw9YkFgy6DIkILRArQSSC7PjQjQQqVH7oQ0GHQUWgpQhKHzoNSqiUwpXcsrwIjzVtPVrzbPV9Z6bZhYV3N3WXYAeGmWeeZ37z8J95GEgpBf5oeXn1Es4fYAdzPDlM6je4RBYhR+LMU89UxiCBGiCgkUwsBYSA+SlPKLQBQAYEAZm+3j42K96z3NyOF7VOeMrp62opRcacjPW5+43rDTpNSKQ8QKZAEg7xmPCTs/O27uGJgXuNbW0pxyvLfTmAEBzthEsFZLxRvPdi5rpYo2cmUiQJDA4IVeo0obGdlvGfXUPj0Sym2zPuHxvzcWjDyVupJ/YYizKTGNjLw/HiduNTAqIRIUJ6Vpp+ky8bCSFgwQ2xgkGxFi1ioNWEBGuJB31gbLIv/2pd7SpFoGxtpCYkLSEq4ptlzIYFO7tc7w0TKkeEYg5ADnrWkkYhD8s26GPq3nW0WKxTptftPYBI4Mj3O2fHvKNZBMVSDmMwarXNjDkSF3d5kExZeiCr8M2VI+VFu9IvsPcYtzAvkfoEZkEEE45jMppq3ppbCNPFIY1nD1cpo07lbMmvOXeoDCF8BLKy9uUAAjDkBh+c6bz78mNtVVP7MwET7JBnqb4xXpdWVpC1OVzWn+ELHLCsneX/s7rkRWl1463cy1U3WroG21jhCGKJXPOtKQnpAuENvsAppgDB3TcDVIrpDHbK5Kd+y7W8iodNybHh22rOHyxUK+UaMYjZaoyp25rYL54TSihSKmwZ14v3lc3ZFxdbeywjn/tGJnkmzrydX1ApxOEACKymmXLYfXVpi1JMEOGxPi1ep18doY4r2J7uFumQQ9yGf01bMcZW8dpyc0oIjxxpuC5wuUDX+ovWrnYeg3aXvdLIqnmOvXPsfH6uA5YbTb1DX8ofvTLzTy6ZV4K6fAw+gXiATfdffmjeaUgc1UdpdWplsCooQBrEnqUw82dhdnjit/Vxc4f59tP3DRjzJvYteqrl4rmNlJIfrOwpgNklesDRNQBCHYtQAQqD2CgACNjHAJnG1EyfV/S67fZiJB5t2OGEe4n7L3fS4fpEv/2hUEATfoPbuam5v8N7nps70YTbAAAAAElFTkSuQmCC")}.edds-stripe-connect-acount-info span.edd-pro-upgrade a{color:#1da867;font-weight:600;text-decoration:none}@media only screen and (-webkit-min-device-pixel-ratio: 1.5),only screen and (min--moz-device-pixel-ratio: 1.5),only screen and (min-device-pixel-ratio: 1.5){.edd-stripe-connect span:before,.edd-stripe-connect.blue span:before{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAwCAYAAABuZUjcAAAKRGlDQ1BJQ0MgUHJvZmlsZQAASA2dlndUFNcXx9/MbC+0XZYiZem9twWkLr1IlSYKy+4CS1nWZRewN0QFIoqICFYkKGLAaCgSK6JYCAgW7AEJIkoMRhEVlczGHPX3Oyf5/U7eH3c+8333nnfn3vvOGQAoASECYQ6sAEC2UCKO9PdmxsUnMPG9AAZEgAM2AHC4uaLQKL9ogK5AXzYzF3WS8V8LAuD1LYBaAK5bBIQzmX/p/+9DkSsSSwCAwtEAOx4/l4tyIcpZ+RKRTJ9EmZ6SKWMYI2MxmiDKqjJO+8Tmf/p8Yk8Z87KFPNRHlrOIl82TcRfKG/OkfJSREJSL8gT8fJRvoKyfJc0WoPwGZXo2n5MLAIYi0yV8bjrK1ihTxNGRbJTnAkCgpH3FKV+xhF+A5gkAO0e0RCxIS5cwjbkmTBtnZxYzgJ+fxZdILMI53EyOmMdk52SLOMIlAHz6ZlkUUJLVlokW2dHG2dHRwtYSLf/n9Y+bn73+GWS9/eTxMuLPnkGMni/al9gvWk4tAKwptDZbvmgpOwFoWw+A6t0vmv4+AOQLAWjt++p7GLJ5SZdIRC5WVvn5+ZYCPtdSVtDP6386fPb8e/jqPEvZeZ9rx/Thp3KkWRKmrKjcnKwcqZiZK+Jw+UyL/x7ifx34VVpf5WEeyU/li/lC9KgYdMoEwjS03UKeQCLIETIFwr/r8L8M+yoHGX6aaxRodR8BPckSKPTRAfJrD8DQyABJ3IPuQJ/7FkKMAbKbF6s99mnuUUb3/7T/YeAy9BXOFaQxZTI7MprJlYrzZIzeCZnBAhKQB3SgBrSAHjAGFsAWOAFX4Al8QRAIA9EgHiwCXJAOsoEY5IPlYA0oAiVgC9gOqsFeUAcaQBM4BtrASXAOXARXwTVwE9wDQ2AUPAOT4DWYgSAID1EhGqQGaUMGkBlkC7Egd8gXCoEioXgoGUqDhJAUWg6tg0qgcqga2g81QN9DJ6Bz0GWoH7oDDUPj0O/QOxiBKTAd1oQNYSuYBXvBwXA0vBBOgxfDS+FCeDNcBdfCR+BW+Bx8Fb4JD8HP4CkEIGSEgeggFggLYSNhSAKSioiRlUgxUonUIk1IB9KNXEeGkAnkLQaHoWGYGAuMKyYAMx/DxSzGrMSUYqoxhzCtmC7MdcwwZhLzEUvFamDNsC7YQGwcNg2bjy3CVmLrsS3YC9ib2FHsaxwOx8AZ4ZxwAbh4XAZuGa4UtxvXjDuL68eN4KbweLwa3gzvhg/Dc/ASfBF+J/4I/gx+AD+Kf0MgE7QJtgQ/QgJBSFhLqCQcJpwmDBDGCDNEBaIB0YUYRuQRlxDLiHXEDmIfcZQ4Q1IkGZHcSNGkDNIaUhWpiXSBdJ/0kkwm65KdyRFkAXk1uYp8lHyJPEx+S1GimFLYlESKlLKZcpBylnKH8pJKpRpSPakJVAl1M7WBep76kPpGjiZnKRcox5NbJVcj1yo3IPdcnihvIO8lv0h+qXyl/HH5PvkJBaKCoQJbgaOwUqFG4YTCoMKUIk3RRjFMMVuxVPGw4mXFJ0p4JUMlXyWeUqHSAaXzSiM0hKZHY9O4tHW0OtoF2igdRzeiB9Iz6CX07+i99EllJWV75RjlAuUa5VPKQwyEYcgIZGQxyhjHGLcY71Q0VbxU+CqbVJpUBlSmVeeoeqryVYtVm1Vvqr5TY6r5qmWqbVVrU3ugjlE3VY9Qz1ffo35BfWIOfY7rHO6c4jnH5tzVgDVMNSI1lmkc0OjRmNLU0vTXFGnu1DyvOaHF0PLUytCq0DqtNa5N03bXFmhXaJ/RfspUZnoxs5hVzC7mpI6GToCOVGe/Tq/OjK6R7nzdtbrNug/0SHosvVS9Cr1OvUl9bf1Q/eX6jfp3DYgGLIN0gx0G3QbThkaGsYYbDNsMnxipGgUaLTVqNLpvTDX2MF5sXGt8wwRnwjLJNNltcs0UNnUwTTetMe0zg80czQRmu836zbHmzuZC81rzQQuKhZdFnkWjxbAlwzLEcq1lm+VzK32rBKutVt1WH60drLOs66zv2SjZBNmstemw+d3W1JZrW2N7w45q52e3yq7d7oW9mT3ffo/9bQeaQ6jDBodOhw+OTo5ixybHcSd9p2SnXU6DLDornFXKuuSMdfZ2XuV80vmti6OLxOWYy2+uFq6Zroddn8w1msufWzd3xE3XjeO2323Ineme7L7PfchDx4PjUevxyFPPk+dZ7znmZeKV4XXE67m3tbfYu8V7mu3CXsE+64P4+PsU+/T6KvnO9632fein65fm1+g36e/gv8z/bAA2IDhga8BgoGYgN7AhcDLIKWhFUFcwJTgquDr4UYhpiDikIxQODQrdFnp/nsE84by2MBAWGLYt7EG4Ufji8B8jcBHhETURjyNtIpdHdkfRopKiDke9jvaOLou+N994vnR+Z4x8TGJMQ8x0rE9seexQnFXcirir8erxgvj2BHxCTEJ9wtQC3wXbF4wmOiQWJd5aaLSwYOHlReqLshadSpJP4iQdT8YmxyYfTn7PCePUcqZSAlN2pUxy2dwd3Gc8T14Fb5zvxi/nj6W6pZanPklzS9uWNp7ukV6ZPiFgC6oFLzICMvZmTGeGZR7MnM2KzWrOJmQnZ58QKgkzhV05WjkFOf0iM1GRaGixy+LtiyfFweL6XCh3YW67hI7+TPVIjaXrpcN57nk1eW/yY/KPFygWCAt6lpgu2bRkbKnf0m+XYZZxl3Uu11m+ZvnwCq8V+1dCK1NWdq7SW1W4anS1/+pDa0hrMtf8tNZ6bfnaV+ti13UUahauLhxZ77++sUiuSFw0uMF1w96NmI2Cjb2b7Dbt3PSxmFd8pcS6pLLkfSm39Mo3Nt9UfTO7OXVzb5lj2Z4tuC3CLbe2emw9VK5YvrR8ZFvottYKZkVxxavtSdsvV9pX7t1B2iHdMVQVUtW+U3/nlp3vq9Orb9Z41zTv0ti1adf0bt7ugT2ee5r2au4t2ftun2Df7f3++1trDWsrD+AO5B14XBdT1/0t69uGevX6kvoPB4UHhw5FHupqcGpoOKxxuKwRbpQ2jh9JPHLtO5/v2pssmvY3M5pLjoKj0qNPv0/+/tax4GOdx1nHm34w+GFXC62luBVqXdI62ZbeNtQe395/IuhEZ4drR8uPlj8ePKlzsuaU8qmy06TThadnzyw9M3VWdHbiXNq5kc6kznvn487f6Iro6r0QfOHSRb+L57u9us9ccrt08rLL5RNXWFfarjpebe1x6Gn5yeGnll7H3tY+p772a87XOvrn9p8e8Bg4d93n+sUbgTeu3px3s//W/Fu3BxMHh27zbj+5k3Xnxd28uzP3Vt/H3i9+oPCg8qHGw9qfTX5uHnIcOjXsM9zzKOrRvRHuyLNfcn95P1r4mPq4ckx7rOGJ7ZOT437j154ueDr6TPRsZqLoV8Vfdz03fv7Db56/9UzGTY6+EL+Y/b30pdrLg6/sX3VOhU89fJ39ema6+I3am0NvWW+738W+G5vJf49/X/XB5EPHx+CP92ezZ2f/AAOY8/wRDtFgAAAIbklEQVRoBdVZa5BURxU+fZ9z57mzs7PvF4i7srAQSCifMVDERC0jYlzUlJalKeGPlCnL/NEfywpWacoiVZRVJIYfGjGUu5bxj5qHFSAYyQOBEsJzYSHDvnd2dp535j66PX1vNgsULDPs1cr2Vs+9e7v79NfnnnP663MJYwwWYxEWI2iOedEClxabxgkBwjEvOuA9PQOOlSw64JMr4vK8GidYYMcOES4tVSEAAZ8FAUqon1GiAJEEEG0CjFB8cTaxZUMAo1gEqQA0UABprAjPbrUwXnkesgqKP8CBk5vDIenrE+BKmwI+MawA1MbCkdV10cBDflXuVmSxQRbFkCAQZ9U2ZTaONyxKcyXDHjMs83ImV3rz6njmDRPMUZB80zAJOuvvsflkXpTP7DrWyeXcYCqk75AEieawrEoty1vrvlcV0ja3VQdb1rVUQVd9EFqqNIj5ZfDJooPBsCnohq2ldDMynC42XZnW7z09lu25lMxDMl34y0gyvTsBwyewc84Z4MEPpWIzF/MBcLLtNzJISmxZU+PmWETbtqGzfvVja5uguyF02+kCIEJUk6Ex4oMV9XP9ZnQT/nZ24it7XrtoJ5LZ7SjAM+Bg2+0ckAOcbBkQIaZFVzY1bGurjezYfn87PNQZ5+13ZaQRXMzH26Lg8ymfUokQdAR59INOc53GQ6q/Jiiua6oJ7+h9uAPua47cHeLrwHEmQRmTGLHV6x4v+JYwWsOFCGRDn6RKem1rPPrkN9Y0uqAXLN4VwCgjYGEE8rBgMAjwKsF9S9WgLa9qjYcf+Po9jXdlGrfC5Wj8Vg0Lf+ZENAFmpGB9TWTLhmUxUD1UDg/gtudRnK+a4RtkgqQyO+RT5LVrmiLgJcN19gcGNojUWriS5yRQm7pcBTc/vyCKdW1RrWwzOTiYhGf+dRUmcgZosgDVfgWaMCS2V2tO+OzG0MiVjdUwiFiYm9a7O4kJAoZEooV9H4T0O0ofODkKr5+6+nY6V3heVZQpv6ZWaz55qSJJnXjtUBW5pT7k8xeK5u+B0PQdBVbQgTLq9HbQYthyNVSmTT6A/nB0aGpF0K99+trY1F7TNI9PZGXkKUVRtYjGZCIOV1dHR4Ynz8FSLV8BrjK6uiAlpLcmco1ipmgpAaU8rfesboCuumBg31uJbx6+qH0uX9D/em0i85xFhaslKZKA8/82RtYDhd/1MkCuBnjxrLgKB0EQSb5oWO+9O1bZrsy3+Kc3dcH+b99b07NuyXe6P9r8z/am+C9lkuqCjo4qGGkQES76qJcuz/2GOlUoFuVsQS+98frlaSeq8Gkqqctrg7Dz853wwrfugUfXtj3W3tJ8oCletRUEXy1SCSSYHhdu41gFqILcZCrzwkvnJmE0U3JtHefiL7eS2l7th11f7IQ9j65aVh+r+nlzbd2TELJrHPLmIXZX3wyBX8MTQMm8PJ0u9Pe9chGQYy9omvXouHu/thJqI+Ef1sZDm0AMBmfPiQsSPDuY2zhWwSH5ISU5Pjm98x9nRo7+7JVBB3wl5nJz35Vo/z/esBQUVf2+QlkD9Aw42/Ts3Au7ushdAhQ5UzJoOjE+OrV9/1tDR7cNnIax7N2bDX9nm1bUQXdz9Rp/MLwRoqAtDOzcaO7rvDrAWW8vhcatWVNjF6cmJre9embkz1947h3YfXgIUgVzblQldxgFH0ZOr/qULwM15k4Zlci4Vd9ZU5ltY71oObHBnBFQBidmUk8kEsOP7Hntwqsb974NfS8PAh7LKoo23Hw+2R4FQcSzKlDPgFOEyf8kx3HW94kQ7xJgRRdAJG7CyIWxgiXNUN0+k5nJLN83k3n8D8eHN3+1ux5+8uBHIKiWt1G1Rn3IJkiUCcQzU3G0h9qWHMeJdoSrwtr9dl6I6DNjFwRRyxiKnStSqkPJPsGSmZ+mp1P9z2dzOy3Klj31yMdmX9S8V75APEsomMZwT9fz9i6vkW9AvEgQyqrBQM2Dq9rrD0gCgXfHA0jpjIRm2Zcw+3CR2tZl27SnMZFSZ1lWcRwZITeDckresAEXaoKwwBh7/WQubgTOQj5BVjdv7KiBJz7bztMNcHIk03JiONNyfiK/ntv2VMHAMx6BjpoA/Gj9Emdjul7W7e6TeQNDK9WJLRm361P5c1drEmAaymaYoXpfjZoiOk7FHWuh5dxEHmzLHiXM9oyTz9FawRZw65f5yyzXBMpd0JGhFKB5nSwRMVvumDv2cxm4m1f5X4AuWhRePDUOtqEPQJVVGfWcBz1ahmPlTlxzqaJLquYZU1HTvjcTMD6dOULM0n+g5nKposHzdWbo7FgEkDBviWlYx++53XtQ33kvDU8dHAJm6L8usdwEZn09S3qiPed5lcCSLUpI0eEA8620zLbDl6bh8T+egkI+/7Rl6kegcTSPst1QUKaM+brhrjnF2yUQJNxnrGMnR7KbTw5nYFVjyAl98w2+VdvVlA67Dw3BgROjAKa+yyrpz0BKTbJnez1NT6AKrrnA1bEi1av2v3xaiL90dnxL2Kc0rsXc4WpcQEc8AEtiGrRiejmK6WWeMDIxtVwwKExijB5KFuBYIg1cy8dx0dTQ/yQVc78yBXMIqJ5i/VvvkqHdSjXuM/THKy7w2LQJ6fpJms38QiHGvlzBt+RwJv2JQ2elbjyRtjIi1AIRMAsKPuQduHVzr2YW+kIBE5BTwOzzxLKOiMX8QVuWh00IpqD+S0WHtLlzefpLBOZo/IYvEqQPnTX5dxmy4xookqaCjRuT4mMi8g3bxs2KCkj3GFj4+QSzA0RkeskU8iCJeUiBDv09Jt8OPEV6k7DlP3gxxh/dAPymPh/Kf5d897dIOd9P7H8oEd4G1JV8wPGbRadx52sgLmrRAZ99EZ5+LZgV+v+4Llrg/wX6HRCxgvzAAwAAAABJRU5ErkJggg==")}}.edd-button__toggle{position:relative;margin:0;padding:0;width:36px;height:20px;min-height:unset;transition:background .2s ease;border-radius:30px;box-shadow:none;border:none;display:flex;justify-content:center;align-items:center;background:#c3c4c7;margin-right:12px}.edd-button__toggle--enabled{background:var(--wp-admin-theme-color)}.edd-button__toggle--enabled::after{transform:translateX(16px)}.edd-button__toggle:after{position:absolute;content:"";height:14px;width:14px;left:3px;bottom:3px;background-color:#fff;transition:.1s transform ease;border-radius:50%;background:#fff} /*# sourceMappingURL=admin.min.css.map*/ \ No newline at end of file diff --git a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/assets/css/build/admin.min.css.map b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/assets/css/build/admin.min.css.map index a24054b9..dd3b9847 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/assets/css/build/admin.min.css.map +++ b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/assets/css/build/admin.min.css.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///./assets/css/src/admin.scss"],"names":[],"mappings":"AAAA,0CAA0C,WAAW,qBAAqB,oBAAoB,iDAAiD,uBAAuB,iBAAiB,sEAAsE,iBAAiB,8BAA8B,aAAa,8BAA8B,UAAU,oBAAoB,qBAAqB,kBAAkB,mDAAmD,mCAAmC,SAAS,YAAY,YAAY,qBAAqB,kBAAkB,kCAAkC,eAAe,yBAAyB,qBAAqB,iBAAiB,yBAAyB,cAAc,kBAAkB,sBAAsB,YAAY,mBAAmB,gEAAgE,eAAe,iBAAiB,WAAW,iBAAiB,wDAAwD,oCAAoC,+CAA+C,kBAAkB,gCAAgC,WAAW,cAAc,kBAAkB,UAAU,QAAQ,WAAW,YAAY,iBAAiB,4BAA4B,0BAA0B,2BAA2B,mBAAmB,gCAAgC,WAAW,mBAAmB,gEAAgE,wCAAwC,qEAAqE,qCAAqC,8mJAA8mJ,wDAAwD,cAAc,gBAAgB,qBAAqB,8JAA8J,qEAAqE,qCAAqC,u1M","file":"assets/css/build/admin.min.css","sourcesContent":[".edds-stripe-connect-acount-info .spinner{float:none;display:inline-block;margin:-2px 5px 0 0}#edds-payment-gateways-stripe-unmet-requirements{margin:-10px 0 0 -16px;padding-top:10px}#edds-payment-gateways-stripe-unmet-requirements input[type=checkbox]{margin:0 6px 0 0}.edds-requirements-not-met th{display:none}.edds-requirements-not-met td{padding:0}.edd-stripe-connect{display:inline-block;margin-bottom:1px;background-image:linear-gradient(#28A0E5, #015E94);-webkit-font-smoothing:antialiased;border:0;padding:1px;height:30px;text-decoration:none;border-radius:4px;box-shadow:0 1px 0 rgba(0,0,0,.2);cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none}.edd-stripe-connect span{display:block;position:relative;padding:0 12px 0 44px;height:30px;background:#1275ff;background-image:linear-gradient(#7DC5EE, #008CDD 85%, #30A2E4);font-size:14px;line-height:30px;color:#fff;font-weight:bold;font-family:\"Helvetica Neue\",Helvetica,Arial,sans-serif;text-shadow:0 -1px 0 rgba(0,0,0,.2);box-shadow:inset 0 1px 0 rgba(255,255,255,.25);border-radius:3px}.edd-stripe-connect span:before{content:\"\";display:block;position:absolute;left:11px;top:50%;width:23px;height:24px;margin-top:-12px;background-repeat:no-repeat;background-size:23px 24px}.edd-stripe-connect:active{background:#005d93}.edd-stripe-connect:active span{color:#eee;background:#008cdd;background-image:linear-gradient(#008CDD, #008CDD 85%, #239ADF);box-shadow:inset 0 1px 0 rgba(0,0,0,.1)}.edd-stripe-connect span:before,.edd-stripe-connect.blue span:before{background-image:url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABcAAAAYCAYAAAARfGZ1AAAKRGlDQ1BJQ0MgUHJvZmlsZQAASA2dlndUFNcXx9/MbC+0XZYiZem9twWkLr1IlSYKy+4CS1nWZRewN0QFIoqICFYkKGLAaCgSK6JYCAgW7AEJIkoMRhEVlczGHPX3Oyf5/U7eH3c+8333nnfn3vvOGQAoASECYQ6sAEC2UCKO9PdmxsUnMPG9AAZEgAM2AHC4uaLQKL9ogK5AXzYzF3WS8V8LAuD1LYBaAK5bBIQzmX/p/+9DkSsSSwCAwtEAOx4/l4tyIcpZ+RKRTJ9EmZ6SKWMYI2MxmiDKqjJO+8Tmf/p8Yk8Z87KFPNRHlrOIl82TcRfKG/OkfJSREJSL8gT8fJRvoKyfJc0WoPwGZXo2n5MLAIYi0yV8bjrK1ihTxNGRbJTnAkCgpH3FKV+xhF+A5gkAO0e0RCxIS5cwjbkmTBtnZxYzgJ+fxZdILMI53EyOmMdk52SLOMIlAHz6ZlkUUJLVlokW2dHG2dHRwtYSLf/n9Y+bn73+GWS9/eTxMuLPnkGMni/al9gvWk4tAKwptDZbvmgpOwFoWw+A6t0vmv4+AOQLAWjt++p7GLJ5SZdIRC5WVvn5+ZYCPtdSVtDP6386fPb8e/jqPEvZeZ9rx/Thp3KkWRKmrKjcnKwcqZiZK+Jw+UyL/x7ifx34VVpf5WEeyU/li/lC9KgYdMoEwjS03UKeQCLIETIFwr/r8L8M+yoHGX6aaxRodR8BPckSKPTRAfJrD8DQyABJ3IPuQJ/7FkKMAbKbF6s99mnuUUb3/7T/YeAy9BXOFaQxZTI7MprJlYrzZIzeCZnBAhKQB3SgBrSAHjAGFsAWOAFX4Al8QRAIA9EgHiwCXJAOsoEY5IPlYA0oAiVgC9gOqsFeUAcaQBM4BtrASXAOXARXwTVwE9wDQ2AUPAOT4DWYgSAID1EhGqQGaUMGkBlkC7Egd8gXCoEioXgoGUqDhJAUWg6tg0qgcqga2g81QN9DJ6Bz0GWoH7oDDUPj0O/QOxiBKTAd1oQNYSuYBXvBwXA0vBBOgxfDS+FCeDNcBdfCR+BW+Bx8Fb4JD8HP4CkEIGSEgeggFggLYSNhSAKSioiRlUgxUonUIk1IB9KNXEeGkAnkLQaHoWGYGAuMKyYAMx/DxSzGrMSUYqoxhzCtmC7MdcwwZhLzEUvFamDNsC7YQGwcNg2bjy3CVmLrsS3YC9ib2FHsaxwOx8AZ4ZxwAbh4XAZuGa4UtxvXjDuL68eN4KbweLwa3gzvhg/Dc/ASfBF+J/4I/gx+AD+Kf0MgE7QJtgQ/QgJBSFhLqCQcJpwmDBDGCDNEBaIB0YUYRuQRlxDLiHXEDmIfcZQ4Q1IkGZHcSNGkDNIaUhWpiXSBdJ/0kkwm65KdyRFkAXk1uYp8lHyJPEx+S1GimFLYlESKlLKZcpBylnKH8pJKpRpSPakJVAl1M7WBep76kPpGjiZnKRcox5NbJVcj1yo3IPdcnihvIO8lv0h+qXyl/HH5PvkJBaKCoQJbgaOwUqFG4YTCoMKUIk3RRjFMMVuxVPGw4mXFJ0p4JUMlXyWeUqHSAaXzSiM0hKZHY9O4tHW0OtoF2igdRzeiB9Iz6CX07+i99EllJWV75RjlAuUa5VPKQwyEYcgIZGQxyhjHGLcY71Q0VbxU+CqbVJpUBlSmVeeoeqryVYtVm1Vvqr5TY6r5qmWqbVVrU3ugjlE3VY9Qz1ffo35BfWIOfY7rHO6c4jnH5tzVgDVMNSI1lmkc0OjRmNLU0vTXFGnu1DyvOaHF0PLUytCq0DqtNa5N03bXFmhXaJ/RfspUZnoxs5hVzC7mpI6GToCOVGe/Tq/OjK6R7nzdtbrNug/0SHosvVS9Cr1OvUl9bf1Q/eX6jfp3DYgGLIN0gx0G3QbThkaGsYYbDNsMnxipGgUaLTVqNLpvTDX2MF5sXGt8wwRnwjLJNNltcs0UNnUwTTetMe0zg80czQRmu836zbHmzuZC81rzQQuKhZdFnkWjxbAlwzLEcq1lm+VzK32rBKutVt1WH60drLOs66zv2SjZBNmstemw+d3W1JZrW2N7w45q52e3yq7d7oW9mT3ffo/9bQeaQ6jDBodOhw+OTo5ixybHcSd9p2SnXU6DLDornFXKuuSMdfZ2XuV80vmti6OLxOWYy2+uFq6Zroddn8w1msufWzd3xE3XjeO2323Ineme7L7PfchDx4PjUevxyFPPk+dZ7znmZeKV4XXE67m3tbfYu8V7mu3CXsE+64P4+PsU+/T6KvnO9632fein65fm1+g36e/gv8z/bAA2IDhga8BgoGYgN7AhcDLIKWhFUFcwJTgquDr4UYhpiDikIxQODQrdFnp/nsE84by2MBAWGLYt7EG4Ufji8B8jcBHhETURjyNtIpdHdkfRopKiDke9jvaOLou+N994vnR+Z4x8TGJMQ8x0rE9seexQnFXcirir8erxgvj2BHxCTEJ9wtQC3wXbF4wmOiQWJd5aaLSwYOHlReqLshadSpJP4iQdT8YmxyYfTn7PCePUcqZSAlN2pUxy2dwd3Gc8T14Fb5zvxi/nj6W6pZanPklzS9uWNp7ukV6ZPiFgC6oFLzICMvZmTGeGZR7MnM2KzWrOJmQnZ58QKgkzhV05WjkFOf0iM1GRaGixy+LtiyfFweL6XCh3YW67hI7+TPVIjaXrpcN57nk1eW/yY/KPFygWCAt6lpgu2bRkbKnf0m+XYZZxl3Uu11m+ZvnwCq8V+1dCK1NWdq7SW1W4anS1/+pDa0hrMtf8tNZ6bfnaV+ti13UUahauLhxZ77++sUiuSFw0uMF1w96NmI2Cjb2b7Dbt3PSxmFd8pcS6pLLkfSm39Mo3Nt9UfTO7OXVzb5lj2Z4tuC3CLbe2emw9VK5YvrR8ZFvottYKZkVxxavtSdsvV9pX7t1B2iHdMVQVUtW+U3/nlp3vq9Orb9Z41zTv0ti1adf0bt7ugT2ee5r2au4t2ftun2Df7f3++1trDWsrD+AO5B14XBdT1/0t69uGevX6kvoPB4UHhw5FHupqcGpoOKxxuKwRbpQ2jh9JPHLtO5/v2pssmvY3M5pLjoKj0qNPv0/+/tax4GOdx1nHm34w+GFXC62luBVqXdI62ZbeNtQe395/IuhEZ4drR8uPlj8ePKlzsuaU8qmy06TThadnzyw9M3VWdHbiXNq5kc6kznvn487f6Iro6r0QfOHSRb+L57u9us9ccrt08rLL5RNXWFfarjpebe1x6Gn5yeGnll7H3tY+p772a87XOvrn9p8e8Bg4d93n+sUbgTeu3px3s//W/Fu3BxMHh27zbj+5k3Xnxd28uzP3Vt/H3i9+oPCg8qHGw9qfTX5uHnIcOjXsM9zzKOrRvRHuyLNfcn95P1r4mPq4ckx7rOGJ7ZOT437j154ueDr6TPRsZqLoV8Vfdz03fv7Db56/9UzGTY6+EL+Y/b30pdrLg6/sX3VOhU89fJ39ema6+I3am0NvWW+738W+G5vJf49/X/XB5EPHx+CP92ezZ2f/AAOY8/wRDtFgAAADQklEQVRIDbWVaUiUQRjHZ96dXY/d1fYQj1U03dJSw9YkFgy6DIkILRArQSSC7PjQjQQqVH7oQ0GHQUWgpQhKHzoNSqiUwpXcsrwIjzVtPVrzbPV9Z6bZhYV3N3WXYAeGmWeeZ37z8J95GEgpBf5oeXn1Es4fYAdzPDlM6je4RBYhR+LMU89UxiCBGiCgkUwsBYSA+SlPKLQBQAYEAZm+3j42K96z3NyOF7VOeMrp62opRcacjPW5+43rDTpNSKQ8QKZAEg7xmPCTs/O27uGJgXuNbW0pxyvLfTmAEBzthEsFZLxRvPdi5rpYo2cmUiQJDA4IVeo0obGdlvGfXUPj0Sym2zPuHxvzcWjDyVupJ/YYizKTGNjLw/HiduNTAqIRIUJ6Vpp+ky8bCSFgwQ2xgkGxFi1ioNWEBGuJB31gbLIv/2pd7SpFoGxtpCYkLSEq4ptlzIYFO7tc7w0TKkeEYg5ADnrWkkYhD8s26GPq3nW0WKxTptftPYBI4Mj3O2fHvKNZBMVSDmMwarXNjDkSF3d5kExZeiCr8M2VI+VFu9IvsPcYtzAvkfoEZkEEE45jMppq3ppbCNPFIY1nD1cpo07lbMmvOXeoDCF8BLKy9uUAAjDkBh+c6bz78mNtVVP7MwET7JBnqb4xXpdWVpC1OVzWn+ELHLCsneX/s7rkRWl1463cy1U3WroG21jhCGKJXPOtKQnpAuENvsAppgDB3TcDVIrpDHbK5Kd+y7W8iodNybHh22rOHyxUK+UaMYjZaoyp25rYL54TSihSKmwZ14v3lc3ZFxdbeywjn/tGJnkmzrydX1ApxOEACKymmXLYfXVpi1JMEOGxPi1ep18doY4r2J7uFumQQ9yGf01bMcZW8dpyc0oIjxxpuC5wuUDX+ovWrnYeg3aXvdLIqnmOvXPsfH6uA5YbTb1DX8ofvTLzTy6ZV4K6fAw+gXiATfdffmjeaUgc1UdpdWplsCooQBrEnqUw82dhdnjit/Vxc4f59tP3DRjzJvYteqrl4rmNlJIfrOwpgNklesDRNQBCHYtQAQqD2CgACNjHAJnG1EyfV/S67fZiJB5t2OGEe4n7L3fS4fpEv/2hUEATfoPbuam5v8N7nps70YTbAAAAAElFTkSuQmCC\")}.edds-stripe-connect-acount-info span.edd-pro-upgrade a{color:#1da867;font-weight:600;text-decoration:none}@media only screen and (-webkit-min-device-pixel-ratio: 1.5),only screen and (min--moz-device-pixel-ratio: 1.5),only screen and (min-device-pixel-ratio: 1.5){.edd-stripe-connect span:before,.edd-stripe-connect.blue span:before{background-image:url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAwCAYAAABuZUjcAAAKRGlDQ1BJQ0MgUHJvZmlsZQAASA2dlndUFNcXx9/MbC+0XZYiZem9twWkLr1IlSYKy+4CS1nWZRewN0QFIoqICFYkKGLAaCgSK6JYCAgW7AEJIkoMRhEVlczGHPX3Oyf5/U7eH3c+8333nnfn3vvOGQAoASECYQ6sAEC2UCKO9PdmxsUnMPG9AAZEgAM2AHC4uaLQKL9ogK5AXzYzF3WS8V8LAuD1LYBaAK5bBIQzmX/p/+9DkSsSSwCAwtEAOx4/l4tyIcpZ+RKRTJ9EmZ6SKWMYI2MxmiDKqjJO+8Tmf/p8Yk8Z87KFPNRHlrOIl82TcRfKG/OkfJSREJSL8gT8fJRvoKyfJc0WoPwGZXo2n5MLAIYi0yV8bjrK1ihTxNGRbJTnAkCgpH3FKV+xhF+A5gkAO0e0RCxIS5cwjbkmTBtnZxYzgJ+fxZdILMI53EyOmMdk52SLOMIlAHz6ZlkUUJLVlokW2dHG2dHRwtYSLf/n9Y+bn73+GWS9/eTxMuLPnkGMni/al9gvWk4tAKwptDZbvmgpOwFoWw+A6t0vmv4+AOQLAWjt++p7GLJ5SZdIRC5WVvn5+ZYCPtdSVtDP6386fPb8e/jqPEvZeZ9rx/Thp3KkWRKmrKjcnKwcqZiZK+Jw+UyL/x7ifx34VVpf5WEeyU/li/lC9KgYdMoEwjS03UKeQCLIETIFwr/r8L8M+yoHGX6aaxRodR8BPckSKPTRAfJrD8DQyABJ3IPuQJ/7FkKMAbKbF6s99mnuUUb3/7T/YeAy9BXOFaQxZTI7MprJlYrzZIzeCZnBAhKQB3SgBrSAHjAGFsAWOAFX4Al8QRAIA9EgHiwCXJAOsoEY5IPlYA0oAiVgC9gOqsFeUAcaQBM4BtrASXAOXARXwTVwE9wDQ2AUPAOT4DWYgSAID1EhGqQGaUMGkBlkC7Egd8gXCoEioXgoGUqDhJAUWg6tg0qgcqga2g81QN9DJ6Bz0GWoH7oDDUPj0O/QOxiBKTAd1oQNYSuYBXvBwXA0vBBOgxfDS+FCeDNcBdfCR+BW+Bx8Fb4JD8HP4CkEIGSEgeggFggLYSNhSAKSioiRlUgxUonUIk1IB9KNXEeGkAnkLQaHoWGYGAuMKyYAMx/DxSzGrMSUYqoxhzCtmC7MdcwwZhLzEUvFamDNsC7YQGwcNg2bjy3CVmLrsS3YC9ib2FHsaxwOx8AZ4ZxwAbh4XAZuGa4UtxvXjDuL68eN4KbweLwa3gzvhg/Dc/ASfBF+J/4I/gx+AD+Kf0MgE7QJtgQ/QgJBSFhLqCQcJpwmDBDGCDNEBaIB0YUYRuQRlxDLiHXEDmIfcZQ4Q1IkGZHcSNGkDNIaUhWpiXSBdJ/0kkwm65KdyRFkAXk1uYp8lHyJPEx+S1GimFLYlESKlLKZcpBylnKH8pJKpRpSPakJVAl1M7WBep76kPpGjiZnKRcox5NbJVcj1yo3IPdcnihvIO8lv0h+qXyl/HH5PvkJBaKCoQJbgaOwUqFG4YTCoMKUIk3RRjFMMVuxVPGw4mXFJ0p4JUMlXyWeUqHSAaXzSiM0hKZHY9O4tHW0OtoF2igdRzeiB9Iz6CX07+i99EllJWV75RjlAuUa5VPKQwyEYcgIZGQxyhjHGLcY71Q0VbxU+CqbVJpUBlSmVeeoeqryVYtVm1Vvqr5TY6r5qmWqbVVrU3ugjlE3VY9Qz1ffo35BfWIOfY7rHO6c4jnH5tzVgDVMNSI1lmkc0OjRmNLU0vTXFGnu1DyvOaHF0PLUytCq0DqtNa5N03bXFmhXaJ/RfspUZnoxs5hVzC7mpI6GToCOVGe/Tq/OjK6R7nzdtbrNug/0SHosvVS9Cr1OvUl9bf1Q/eX6jfp3DYgGLIN0gx0G3QbThkaGsYYbDNsMnxipGgUaLTVqNLpvTDX2MF5sXGt8wwRnwjLJNNltcs0UNnUwTTetMe0zg80czQRmu836zbHmzuZC81rzQQuKhZdFnkWjxbAlwzLEcq1lm+VzK32rBKutVt1WH60drLOs66zv2SjZBNmstemw+d3W1JZrW2N7w45q52e3yq7d7oW9mT3ffo/9bQeaQ6jDBodOhw+OTo5ixybHcSd9p2SnXU6DLDornFXKuuSMdfZ2XuV80vmti6OLxOWYy2+uFq6Zroddn8w1msufWzd3xE3XjeO2323Ineme7L7PfchDx4PjUevxyFPPk+dZ7znmZeKV4XXE67m3tbfYu8V7mu3CXsE+64P4+PsU+/T6KvnO9632fein65fm1+g36e/gv8z/bAA2IDhga8BgoGYgN7AhcDLIKWhFUFcwJTgquDr4UYhpiDikIxQODQrdFnp/nsE84by2MBAWGLYt7EG4Ufji8B8jcBHhETURjyNtIpdHdkfRopKiDke9jvaOLou+N994vnR+Z4x8TGJMQ8x0rE9seexQnFXcirir8erxgvj2BHxCTEJ9wtQC3wXbF4wmOiQWJd5aaLSwYOHlReqLshadSpJP4iQdT8YmxyYfTn7PCePUcqZSAlN2pUxy2dwd3Gc8T14Fb5zvxi/nj6W6pZanPklzS9uWNp7ukV6ZPiFgC6oFLzICMvZmTGeGZR7MnM2KzWrOJmQnZ58QKgkzhV05WjkFOf0iM1GRaGixy+LtiyfFweL6XCh3YW67hI7+TPVIjaXrpcN57nk1eW/yY/KPFygWCAt6lpgu2bRkbKnf0m+XYZZxl3Uu11m+ZvnwCq8V+1dCK1NWdq7SW1W4anS1/+pDa0hrMtf8tNZ6bfnaV+ti13UUahauLhxZ77++sUiuSFw0uMF1w96NmI2Cjb2b7Dbt3PSxmFd8pcS6pLLkfSm39Mo3Nt9UfTO7OXVzb5lj2Z4tuC3CLbe2emw9VK5YvrR8ZFvottYKZkVxxavtSdsvV9pX7t1B2iHdMVQVUtW+U3/nlp3vq9Orb9Z41zTv0ti1adf0bt7ugT2ee5r2au4t2ftun2Df7f3++1trDWsrD+AO5B14XBdT1/0t69uGevX6kvoPB4UHhw5FHupqcGpoOKxxuKwRbpQ2jh9JPHLtO5/v2pssmvY3M5pLjoKj0qNPv0/+/tax4GOdx1nHm34w+GFXC62luBVqXdI62ZbeNtQe395/IuhEZ4drR8uPlj8ePKlzsuaU8qmy06TThadnzyw9M3VWdHbiXNq5kc6kznvn487f6Iro6r0QfOHSRb+L57u9us9ccrt08rLL5RNXWFfarjpebe1x6Gn5yeGnll7H3tY+p772a87XOvrn9p8e8Bg4d93n+sUbgTeu3px3s//W/Fu3BxMHh27zbj+5k3Xnxd28uzP3Vt/H3i9+oPCg8qHGw9qfTX5uHnIcOjXsM9zzKOrRvRHuyLNfcn95P1r4mPq4ckx7rOGJ7ZOT437j154ueDr6TPRsZqLoV8Vfdz03fv7Db56/9UzGTY6+EL+Y/b30pdrLg6/sX3VOhU89fJ39ema6+I3am0NvWW+738W+G5vJf49/X/XB5EPHx+CP92ezZ2f/AAOY8/wRDtFgAAAIbklEQVRoBdVZa5BURxU+fZ9z57mzs7PvF4i7srAQSCifMVDERC0jYlzUlJalKeGPlCnL/NEfywpWacoiVZRVJIYfGjGUu5bxj5qHFSAYyQOBEsJzYSHDvnd2dp535j66PX1vNgsULDPs1cr2Vs+9e7v79NfnnnP663MJYwwWYxEWI2iOedEClxabxgkBwjEvOuA9PQOOlSw64JMr4vK8GidYYMcOES4tVSEAAZ8FAUqon1GiAJEEEG0CjFB8cTaxZUMAo1gEqQA0UABprAjPbrUwXnkesgqKP8CBk5vDIenrE+BKmwI+MawA1MbCkdV10cBDflXuVmSxQRbFkCAQZ9U2ZTaONyxKcyXDHjMs83ImV3rz6njmDRPMUZB80zAJOuvvsflkXpTP7DrWyeXcYCqk75AEieawrEoty1vrvlcV0ja3VQdb1rVUQVd9EFqqNIj5ZfDJooPBsCnohq2ldDMynC42XZnW7z09lu25lMxDMl34y0gyvTsBwyewc84Z4MEPpWIzF/MBcLLtNzJISmxZU+PmWETbtqGzfvVja5uguyF02+kCIEJUk6Ex4oMV9XP9ZnQT/nZ24it7XrtoJ5LZ7SjAM+Bg2+0ckAOcbBkQIaZFVzY1bGurjezYfn87PNQZ5+13ZaQRXMzH26Lg8ymfUokQdAR59INOc53GQ6q/Jiiua6oJ7+h9uAPua47cHeLrwHEmQRmTGLHV6x4v+JYwWsOFCGRDn6RKem1rPPrkN9Y0uqAXLN4VwCgjYGEE8rBgMAjwKsF9S9WgLa9qjYcf+Po9jXdlGrfC5Wj8Vg0Lf+ZENAFmpGB9TWTLhmUxUD1UDg/gtudRnK+a4RtkgqQyO+RT5LVrmiLgJcN19gcGNojUWriS5yRQm7pcBTc/vyCKdW1RrWwzOTiYhGf+dRUmcgZosgDVfgWaMCS2V2tO+OzG0MiVjdUwiFiYm9a7O4kJAoZEooV9H4T0O0ofODkKr5+6+nY6V3heVZQpv6ZWaz55qSJJnXjtUBW5pT7k8xeK5u+B0PQdBVbQgTLq9HbQYthyNVSmTT6A/nB0aGpF0K99+trY1F7TNI9PZGXkKUVRtYjGZCIOV1dHR4Ynz8FSLV8BrjK6uiAlpLcmco1ipmgpAaU8rfesboCuumBg31uJbx6+qH0uX9D/em0i85xFhaslKZKA8/82RtYDhd/1MkCuBnjxrLgKB0EQSb5oWO+9O1bZrsy3+Kc3dcH+b99b07NuyXe6P9r8z/am+C9lkuqCjo4qGGkQES76qJcuz/2GOlUoFuVsQS+98frlaSeq8Gkqqctrg7Dz853wwrfugUfXtj3W3tJ8oCletRUEXy1SCSSYHhdu41gFqILcZCrzwkvnJmE0U3JtHefiL7eS2l7th11f7IQ9j65aVh+r+nlzbd2TELJrHPLmIXZX3wyBX8MTQMm8PJ0u9Pe9chGQYy9omvXouHu/thJqI+Ef1sZDm0AMBmfPiQsSPDuY2zhWwSH5ISU5Pjm98x9nRo7+7JVBB3wl5nJz35Vo/z/esBQUVf2+QlkD9Aw42/Ts3Au7ushdAhQ5UzJoOjE+OrV9/1tDR7cNnIax7N2bDX9nm1bUQXdz9Rp/MLwRoqAtDOzcaO7rvDrAWW8vhcatWVNjF6cmJre9embkz1947h3YfXgIUgVzblQldxgFH0ZOr/qULwM15k4Zlci4Vd9ZU5ltY71oObHBnBFQBidmUk8kEsOP7Hntwqsb974NfS8PAh7LKoo23Hw+2R4FQcSzKlDPgFOEyf8kx3HW94kQ7xJgRRdAJG7CyIWxgiXNUN0+k5nJLN83k3n8D8eHN3+1ux5+8uBHIKiWt1G1Rn3IJkiUCcQzU3G0h9qWHMeJdoSrwtr9dl6I6DNjFwRRyxiKnStSqkPJPsGSmZ+mp1P9z2dzOy3Klj31yMdmX9S8V75APEsomMZwT9fz9i6vkW9AvEgQyqrBQM2Dq9rrD0gCgXfHA0jpjIRm2Zcw+3CR2tZl27SnMZFSZ1lWcRwZITeDckresAEXaoKwwBh7/WQubgTOQj5BVjdv7KiBJz7bztMNcHIk03JiONNyfiK/ntv2VMHAMx6BjpoA/Gj9Emdjul7W7e6TeQNDK9WJLRm361P5c1drEmAaymaYoXpfjZoiOk7FHWuh5dxEHmzLHiXM9oyTz9FawRZw65f5yyzXBMpd0JGhFKB5nSwRMVvumDv2cxm4m1f5X4AuWhRePDUOtqEPQJVVGfWcBz1ahmPlTlxzqaJLquYZU1HTvjcTMD6dOULM0n+g5nKposHzdWbo7FgEkDBviWlYx++53XtQ33kvDU8dHAJm6L8usdwEZn09S3qiPed5lcCSLUpI0eEA8620zLbDl6bh8T+egkI+/7Rl6kegcTSPst1QUKaM+brhrjnF2yUQJNxnrGMnR7KbTw5nYFVjyAl98w2+VdvVlA67Dw3BgROjAKa+yyrpz0BKTbJnez1NT6AKrrnA1bEi1av2v3xaiL90dnxL2Kc0rsXc4WpcQEc8AEtiGrRiejmK6WWeMDIxtVwwKExijB5KFuBYIg1cy8dx0dTQ/yQVc78yBXMIqJ5i/VvvkqHdSjXuM/THKy7w2LQJ6fpJms38QiHGvlzBt+RwJv2JQ2elbjyRtjIi1AIRMAsKPuQduHVzr2YW+kIBE5BTwOzzxLKOiMX8QVuWh00IpqD+S0WHtLlzefpLBOZo/IYvEqQPnTX5dxmy4xookqaCjRuT4mMi8g3bxs2KCkj3GFj4+QSzA0RkeskU8iCJeUiBDv09Jt8OPEV6k7DlP3gxxh/dAPymPh/Kf5d897dIOd9P7H8oEd4G1JV8wPGbRadx52sgLmrRAZ99EZ5+LZgV+v+4Llrg/wX6HRCxgvzAAwAAAABJRU5ErkJggg==\")}}"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack:///./assets/css/src/admin.scss"],"names":[],"mappings":"AAAA,0CAA0C,WAAW,qBAAqB,oBAAoB,iDAAiD,uBAAuB,iBAAiB,sEAAsE,iBAAiB,8BAA8B,aAAa,8BAA8B,UAAU,oBAAoB,qBAAqB,kBAAkB,mDAAmD,mCAAmC,SAAS,YAAY,YAAY,qBAAqB,kBAAkB,kCAAkC,eAAe,yBAAyB,qBAAqB,iBAAiB,yBAAyB,cAAc,kBAAkB,sBAAsB,YAAY,mBAAmB,gEAAgE,eAAe,iBAAiB,WAAW,iBAAiB,wDAAwD,oCAAoC,+CAA+C,kBAAkB,gCAAgC,WAAW,cAAc,kBAAkB,UAAU,QAAQ,WAAW,YAAY,iBAAiB,4BAA4B,0BAA0B,2BAA2B,mBAAmB,gCAAgC,WAAW,mBAAmB,gEAAgE,wCAAwC,qEAAqE,qCAAqC,8mJAA8mJ,wDAAwD,cAAc,gBAAgB,qBAAqB,8JAA8J,qEAAqE,qCAAqC,u1MAAu1M,oBAAoB,kBAAkB,SAAS,UAAU,WAAW,YAAY,iBAAiB,+BAA+B,mBAAmB,gBAAgB,YAAY,aAAa,uBAAuB,mBAAmB,mBAAmB,kBAAkB,6BAA6B,uCAAuC,oCAAoC,2BAA2B,0BAA0B,kBAAkB,WAAW,YAAY,WAAW,SAAS,WAAW,sBAAsB,8BAA8B,kBAAkB,gB","file":"assets/css/build/admin.min.css","sourcesContent":[".edds-stripe-connect-acount-info .spinner{float:none;display:inline-block;margin:-2px 5px 0 0}#edds-payment-gateways-stripe-unmet-requirements{margin:-10px 0 0 -16px;padding-top:10px}#edds-payment-gateways-stripe-unmet-requirements input[type=checkbox]{margin:0 6px 0 0}.edds-requirements-not-met th{display:none}.edds-requirements-not-met td{padding:0}.edd-stripe-connect{display:inline-block;margin-bottom:1px;background-image:linear-gradient(#28A0E5, #015E94);-webkit-font-smoothing:antialiased;border:0;padding:1px;height:30px;text-decoration:none;border-radius:4px;box-shadow:0 1px 0 rgba(0,0,0,.2);cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none}.edd-stripe-connect span{display:block;position:relative;padding:0 12px 0 44px;height:30px;background:#1275ff;background-image:linear-gradient(#7DC5EE, #008CDD 85%, #30A2E4);font-size:14px;line-height:30px;color:#fff;font-weight:bold;font-family:\"Helvetica Neue\",Helvetica,Arial,sans-serif;text-shadow:0 -1px 0 rgba(0,0,0,.2);box-shadow:inset 0 1px 0 rgba(255,255,255,.25);border-radius:3px}.edd-stripe-connect span:before{content:\"\";display:block;position:absolute;left:11px;top:50%;width:23px;height:24px;margin-top:-12px;background-repeat:no-repeat;background-size:23px 24px}.edd-stripe-connect:active{background:#005d93}.edd-stripe-connect:active span{color:#eee;background:#008cdd;background-image:linear-gradient(#008CDD, #008CDD 85%, #239ADF);box-shadow:inset 0 1px 0 rgba(0,0,0,.1)}.edd-stripe-connect span:before,.edd-stripe-connect.blue span:before{background-image:url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABcAAAAYCAYAAAARfGZ1AAAKRGlDQ1BJQ0MgUHJvZmlsZQAASA2dlndUFNcXx9/MbC+0XZYiZem9twWkLr1IlSYKy+4CS1nWZRewN0QFIoqICFYkKGLAaCgSK6JYCAgW7AEJIkoMRhEVlczGHPX3Oyf5/U7eH3c+8333nnfn3vvOGQAoASECYQ6sAEC2UCKO9PdmxsUnMPG9AAZEgAM2AHC4uaLQKL9ogK5AXzYzF3WS8V8LAuD1LYBaAK5bBIQzmX/p/+9DkSsSSwCAwtEAOx4/l4tyIcpZ+RKRTJ9EmZ6SKWMYI2MxmiDKqjJO+8Tmf/p8Yk8Z87KFPNRHlrOIl82TcRfKG/OkfJSREJSL8gT8fJRvoKyfJc0WoPwGZXo2n5MLAIYi0yV8bjrK1ihTxNGRbJTnAkCgpH3FKV+xhF+A5gkAO0e0RCxIS5cwjbkmTBtnZxYzgJ+fxZdILMI53EyOmMdk52SLOMIlAHz6ZlkUUJLVlokW2dHG2dHRwtYSLf/n9Y+bn73+GWS9/eTxMuLPnkGMni/al9gvWk4tAKwptDZbvmgpOwFoWw+A6t0vmv4+AOQLAWjt++p7GLJ5SZdIRC5WVvn5+ZYCPtdSVtDP6386fPb8e/jqPEvZeZ9rx/Thp3KkWRKmrKjcnKwcqZiZK+Jw+UyL/x7ifx34VVpf5WEeyU/li/lC9KgYdMoEwjS03UKeQCLIETIFwr/r8L8M+yoHGX6aaxRodR8BPckSKPTRAfJrD8DQyABJ3IPuQJ/7FkKMAbKbF6s99mnuUUb3/7T/YeAy9BXOFaQxZTI7MprJlYrzZIzeCZnBAhKQB3SgBrSAHjAGFsAWOAFX4Al8QRAIA9EgHiwCXJAOsoEY5IPlYA0oAiVgC9gOqsFeUAcaQBM4BtrASXAOXARXwTVwE9wDQ2AUPAOT4DWYgSAID1EhGqQGaUMGkBlkC7Egd8gXCoEioXgoGUqDhJAUWg6tg0qgcqga2g81QN9DJ6Bz0GWoH7oDDUPj0O/QOxiBKTAd1oQNYSuYBXvBwXA0vBBOgxfDS+FCeDNcBdfCR+BW+Bx8Fb4JD8HP4CkEIGSEgeggFggLYSNhSAKSioiRlUgxUonUIk1IB9KNXEeGkAnkLQaHoWGYGAuMKyYAMx/DxSzGrMSUYqoxhzCtmC7MdcwwZhLzEUvFamDNsC7YQGwcNg2bjy3CVmLrsS3YC9ib2FHsaxwOx8AZ4ZxwAbh4XAZuGa4UtxvXjDuL68eN4KbweLwa3gzvhg/Dc/ASfBF+J/4I/gx+AD+Kf0MgE7QJtgQ/QgJBSFhLqCQcJpwmDBDGCDNEBaIB0YUYRuQRlxDLiHXEDmIfcZQ4Q1IkGZHcSNGkDNIaUhWpiXSBdJ/0kkwm65KdyRFkAXk1uYp8lHyJPEx+S1GimFLYlESKlLKZcpBylnKH8pJKpRpSPakJVAl1M7WBep76kPpGjiZnKRcox5NbJVcj1yo3IPdcnihvIO8lv0h+qXyl/HH5PvkJBaKCoQJbgaOwUqFG4YTCoMKUIk3RRjFMMVuxVPGw4mXFJ0p4JUMlXyWeUqHSAaXzSiM0hKZHY9O4tHW0OtoF2igdRzeiB9Iz6CX07+i99EllJWV75RjlAuUa5VPKQwyEYcgIZGQxyhjHGLcY71Q0VbxU+CqbVJpUBlSmVeeoeqryVYtVm1Vvqr5TY6r5qmWqbVVrU3ugjlE3VY9Qz1ffo35BfWIOfY7rHO6c4jnH5tzVgDVMNSI1lmkc0OjRmNLU0vTXFGnu1DyvOaHF0PLUytCq0DqtNa5N03bXFmhXaJ/RfspUZnoxs5hVzC7mpI6GToCOVGe/Tq/OjK6R7nzdtbrNug/0SHosvVS9Cr1OvUl9bf1Q/eX6jfp3DYgGLIN0gx0G3QbThkaGsYYbDNsMnxipGgUaLTVqNLpvTDX2MF5sXGt8wwRnwjLJNNltcs0UNnUwTTetMe0zg80czQRmu836zbHmzuZC81rzQQuKhZdFnkWjxbAlwzLEcq1lm+VzK32rBKutVt1WH60drLOs66zv2SjZBNmstemw+d3W1JZrW2N7w45q52e3yq7d7oW9mT3ffo/9bQeaQ6jDBodOhw+OTo5ixybHcSd9p2SnXU6DLDornFXKuuSMdfZ2XuV80vmti6OLxOWYy2+uFq6Zroddn8w1msufWzd3xE3XjeO2323Ineme7L7PfchDx4PjUevxyFPPk+dZ7znmZeKV4XXE67m3tbfYu8V7mu3CXsE+64P4+PsU+/T6KvnO9632fein65fm1+g36e/gv8z/bAA2IDhga8BgoGYgN7AhcDLIKWhFUFcwJTgquDr4UYhpiDikIxQODQrdFnp/nsE84by2MBAWGLYt7EG4Ufji8B8jcBHhETURjyNtIpdHdkfRopKiDke9jvaOLou+N994vnR+Z4x8TGJMQ8x0rE9seexQnFXcirir8erxgvj2BHxCTEJ9wtQC3wXbF4wmOiQWJd5aaLSwYOHlReqLshadSpJP4iQdT8YmxyYfTn7PCePUcqZSAlN2pUxy2dwd3Gc8T14Fb5zvxi/nj6W6pZanPklzS9uWNp7ukV6ZPiFgC6oFLzICMvZmTGeGZR7MnM2KzWrOJmQnZ58QKgkzhV05WjkFOf0iM1GRaGixy+LtiyfFweL6XCh3YW67hI7+TPVIjaXrpcN57nk1eW/yY/KPFygWCAt6lpgu2bRkbKnf0m+XYZZxl3Uu11m+ZvnwCq8V+1dCK1NWdq7SW1W4anS1/+pDa0hrMtf8tNZ6bfnaV+ti13UUahauLhxZ77++sUiuSFw0uMF1w96NmI2Cjb2b7Dbt3PSxmFd8pcS6pLLkfSm39Mo3Nt9UfTO7OXVzb5lj2Z4tuC3CLbe2emw9VK5YvrR8ZFvottYKZkVxxavtSdsvV9pX7t1B2iHdMVQVUtW+U3/nlp3vq9Orb9Z41zTv0ti1adf0bt7ugT2ee5r2au4t2ftun2Df7f3++1trDWsrD+AO5B14XBdT1/0t69uGevX6kvoPB4UHhw5FHupqcGpoOKxxuKwRbpQ2jh9JPHLtO5/v2pssmvY3M5pLjoKj0qNPv0/+/tax4GOdx1nHm34w+GFXC62luBVqXdI62ZbeNtQe395/IuhEZ4drR8uPlj8ePKlzsuaU8qmy06TThadnzyw9M3VWdHbiXNq5kc6kznvn487f6Iro6r0QfOHSRb+L57u9us9ccrt08rLL5RNXWFfarjpebe1x6Gn5yeGnll7H3tY+p772a87XOvrn9p8e8Bg4d93n+sUbgTeu3px3s//W/Fu3BxMHh27zbj+5k3Xnxd28uzP3Vt/H3i9+oPCg8qHGw9qfTX5uHnIcOjXsM9zzKOrRvRHuyLNfcn95P1r4mPq4ckx7rOGJ7ZOT437j154ueDr6TPRsZqLoV8Vfdz03fv7Db56/9UzGTY6+EL+Y/b30pdrLg6/sX3VOhU89fJ39ema6+I3am0NvWW+738W+G5vJf49/X/XB5EPHx+CP92ezZ2f/AAOY8/wRDtFgAAADQklEQVRIDbWVaUiUQRjHZ96dXY/d1fYQj1U03dJSw9YkFgy6DIkILRArQSSC7PjQjQQqVH7oQ0GHQUWgpQhKHzoNSqiUwpXcsrwIjzVtPVrzbPV9Z6bZhYV3N3WXYAeGmWeeZ37z8J95GEgpBf5oeXn1Es4fYAdzPDlM6je4RBYhR+LMU89UxiCBGiCgkUwsBYSA+SlPKLQBQAYEAZm+3j42K96z3NyOF7VOeMrp62opRcacjPW5+43rDTpNSKQ8QKZAEg7xmPCTs/O27uGJgXuNbW0pxyvLfTmAEBzthEsFZLxRvPdi5rpYo2cmUiQJDA4IVeo0obGdlvGfXUPj0Sym2zPuHxvzcWjDyVupJ/YYizKTGNjLw/HiduNTAqIRIUJ6Vpp+ky8bCSFgwQ2xgkGxFi1ioNWEBGuJB31gbLIv/2pd7SpFoGxtpCYkLSEq4ptlzIYFO7tc7w0TKkeEYg5ADnrWkkYhD8s26GPq3nW0WKxTptftPYBI4Mj3O2fHvKNZBMVSDmMwarXNjDkSF3d5kExZeiCr8M2VI+VFu9IvsPcYtzAvkfoEZkEEE45jMppq3ppbCNPFIY1nD1cpo07lbMmvOXeoDCF8BLKy9uUAAjDkBh+c6bz78mNtVVP7MwET7JBnqb4xXpdWVpC1OVzWn+ELHLCsneX/s7rkRWl1463cy1U3WroG21jhCGKJXPOtKQnpAuENvsAppgDB3TcDVIrpDHbK5Kd+y7W8iodNybHh22rOHyxUK+UaMYjZaoyp25rYL54TSihSKmwZ14v3lc3ZFxdbeywjn/tGJnkmzrydX1ApxOEACKymmXLYfXVpi1JMEOGxPi1ep18doY4r2J7uFumQQ9yGf01bMcZW8dpyc0oIjxxpuC5wuUDX+ovWrnYeg3aXvdLIqnmOvXPsfH6uA5YbTb1DX8ofvTLzTy6ZV4K6fAw+gXiATfdffmjeaUgc1UdpdWplsCooQBrEnqUw82dhdnjit/Vxc4f59tP3DRjzJvYteqrl4rmNlJIfrOwpgNklesDRNQBCHYtQAQqD2CgACNjHAJnG1EyfV/S67fZiJB5t2OGEe4n7L3fS4fpEv/2hUEATfoPbuam5v8N7nps70YTbAAAAAElFTkSuQmCC\")}.edds-stripe-connect-acount-info span.edd-pro-upgrade a{color:#1da867;font-weight:600;text-decoration:none}@media only screen and (-webkit-min-device-pixel-ratio: 1.5),only screen and (min--moz-device-pixel-ratio: 1.5),only screen and (min-device-pixel-ratio: 1.5){.edd-stripe-connect span:before,.edd-stripe-connect.blue span:before{background-image:url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAwCAYAAABuZUjcAAAKRGlDQ1BJQ0MgUHJvZmlsZQAASA2dlndUFNcXx9/MbC+0XZYiZem9twWkLr1IlSYKy+4CS1nWZRewN0QFIoqICFYkKGLAaCgSK6JYCAgW7AEJIkoMRhEVlczGHPX3Oyf5/U7eH3c+8333nnfn3vvOGQAoASECYQ6sAEC2UCKO9PdmxsUnMPG9AAZEgAM2AHC4uaLQKL9ogK5AXzYzF3WS8V8LAuD1LYBaAK5bBIQzmX/p/+9DkSsSSwCAwtEAOx4/l4tyIcpZ+RKRTJ9EmZ6SKWMYI2MxmiDKqjJO+8Tmf/p8Yk8Z87KFPNRHlrOIl82TcRfKG/OkfJSREJSL8gT8fJRvoKyfJc0WoPwGZXo2n5MLAIYi0yV8bjrK1ihTxNGRbJTnAkCgpH3FKV+xhF+A5gkAO0e0RCxIS5cwjbkmTBtnZxYzgJ+fxZdILMI53EyOmMdk52SLOMIlAHz6ZlkUUJLVlokW2dHG2dHRwtYSLf/n9Y+bn73+GWS9/eTxMuLPnkGMni/al9gvWk4tAKwptDZbvmgpOwFoWw+A6t0vmv4+AOQLAWjt++p7GLJ5SZdIRC5WVvn5+ZYCPtdSVtDP6386fPb8e/jqPEvZeZ9rx/Thp3KkWRKmrKjcnKwcqZiZK+Jw+UyL/x7ifx34VVpf5WEeyU/li/lC9KgYdMoEwjS03UKeQCLIETIFwr/r8L8M+yoHGX6aaxRodR8BPckSKPTRAfJrD8DQyABJ3IPuQJ/7FkKMAbKbF6s99mnuUUb3/7T/YeAy9BXOFaQxZTI7MprJlYrzZIzeCZnBAhKQB3SgBrSAHjAGFsAWOAFX4Al8QRAIA9EgHiwCXJAOsoEY5IPlYA0oAiVgC9gOqsFeUAcaQBM4BtrASXAOXARXwTVwE9wDQ2AUPAOT4DWYgSAID1EhGqQGaUMGkBlkC7Egd8gXCoEioXgoGUqDhJAUWg6tg0qgcqga2g81QN9DJ6Bz0GWoH7oDDUPj0O/QOxiBKTAd1oQNYSuYBXvBwXA0vBBOgxfDS+FCeDNcBdfCR+BW+Bx8Fb4JD8HP4CkEIGSEgeggFggLYSNhSAKSioiRlUgxUonUIk1IB9KNXEeGkAnkLQaHoWGYGAuMKyYAMx/DxSzGrMSUYqoxhzCtmC7MdcwwZhLzEUvFamDNsC7YQGwcNg2bjy3CVmLrsS3YC9ib2FHsaxwOx8AZ4ZxwAbh4XAZuGa4UtxvXjDuL68eN4KbweLwa3gzvhg/Dc/ASfBF+J/4I/gx+AD+Kf0MgE7QJtgQ/QgJBSFhLqCQcJpwmDBDGCDNEBaIB0YUYRuQRlxDLiHXEDmIfcZQ4Q1IkGZHcSNGkDNIaUhWpiXSBdJ/0kkwm65KdyRFkAXk1uYp8lHyJPEx+S1GimFLYlESKlLKZcpBylnKH8pJKpRpSPakJVAl1M7WBep76kPpGjiZnKRcox5NbJVcj1yo3IPdcnihvIO8lv0h+qXyl/HH5PvkJBaKCoQJbgaOwUqFG4YTCoMKUIk3RRjFMMVuxVPGw4mXFJ0p4JUMlXyWeUqHSAaXzSiM0hKZHY9O4tHW0OtoF2igdRzeiB9Iz6CX07+i99EllJWV75RjlAuUa5VPKQwyEYcgIZGQxyhjHGLcY71Q0VbxU+CqbVJpUBlSmVeeoeqryVYtVm1Vvqr5TY6r5qmWqbVVrU3ugjlE3VY9Qz1ffo35BfWIOfY7rHO6c4jnH5tzVgDVMNSI1lmkc0OjRmNLU0vTXFGnu1DyvOaHF0PLUytCq0DqtNa5N03bXFmhXaJ/RfspUZnoxs5hVzC7mpI6GToCOVGe/Tq/OjK6R7nzdtbrNug/0SHosvVS9Cr1OvUl9bf1Q/eX6jfp3DYgGLIN0gx0G3QbThkaGsYYbDNsMnxipGgUaLTVqNLpvTDX2MF5sXGt8wwRnwjLJNNltcs0UNnUwTTetMe0zg80czQRmu836zbHmzuZC81rzQQuKhZdFnkWjxbAlwzLEcq1lm+VzK32rBKutVt1WH60drLOs66zv2SjZBNmstemw+d3W1JZrW2N7w45q52e3yq7d7oW9mT3ffo/9bQeaQ6jDBodOhw+OTo5ixybHcSd9p2SnXU6DLDornFXKuuSMdfZ2XuV80vmti6OLxOWYy2+uFq6Zroddn8w1msufWzd3xE3XjeO2323Ineme7L7PfchDx4PjUevxyFPPk+dZ7znmZeKV4XXE67m3tbfYu8V7mu3CXsE+64P4+PsU+/T6KvnO9632fein65fm1+g36e/gv8z/bAA2IDhga8BgoGYgN7AhcDLIKWhFUFcwJTgquDr4UYhpiDikIxQODQrdFnp/nsE84by2MBAWGLYt7EG4Ufji8B8jcBHhETURjyNtIpdHdkfRopKiDke9jvaOLou+N994vnR+Z4x8TGJMQ8x0rE9seexQnFXcirir8erxgvj2BHxCTEJ9wtQC3wXbF4wmOiQWJd5aaLSwYOHlReqLshadSpJP4iQdT8YmxyYfTn7PCePUcqZSAlN2pUxy2dwd3Gc8T14Fb5zvxi/nj6W6pZanPklzS9uWNp7ukV6ZPiFgC6oFLzICMvZmTGeGZR7MnM2KzWrOJmQnZ58QKgkzhV05WjkFOf0iM1GRaGixy+LtiyfFweL6XCh3YW67hI7+TPVIjaXrpcN57nk1eW/yY/KPFygWCAt6lpgu2bRkbKnf0m+XYZZxl3Uu11m+ZvnwCq8V+1dCK1NWdq7SW1W4anS1/+pDa0hrMtf8tNZ6bfnaV+ti13UUahauLhxZ77++sUiuSFw0uMF1w96NmI2Cjb2b7Dbt3PSxmFd8pcS6pLLkfSm39Mo3Nt9UfTO7OXVzb5lj2Z4tuC3CLbe2emw9VK5YvrR8ZFvottYKZkVxxavtSdsvV9pX7t1B2iHdMVQVUtW+U3/nlp3vq9Orb9Z41zTv0ti1adf0bt7ugT2ee5r2au4t2ftun2Df7f3++1trDWsrD+AO5B14XBdT1/0t69uGevX6kvoPB4UHhw5FHupqcGpoOKxxuKwRbpQ2jh9JPHLtO5/v2pssmvY3M5pLjoKj0qNPv0/+/tax4GOdx1nHm34w+GFXC62luBVqXdI62ZbeNtQe395/IuhEZ4drR8uPlj8ePKlzsuaU8qmy06TThadnzyw9M3VWdHbiXNq5kc6kznvn487f6Iro6r0QfOHSRb+L57u9us9ccrt08rLL5RNXWFfarjpebe1x6Gn5yeGnll7H3tY+p772a87XOvrn9p8e8Bg4d93n+sUbgTeu3px3s//W/Fu3BxMHh27zbj+5k3Xnxd28uzP3Vt/H3i9+oPCg8qHGw9qfTX5uHnIcOjXsM9zzKOrRvRHuyLNfcn95P1r4mPq4ckx7rOGJ7ZOT437j154ueDr6TPRsZqLoV8Vfdz03fv7Db56/9UzGTY6+EL+Y/b30pdrLg6/sX3VOhU89fJ39ema6+I3am0NvWW+738W+G5vJf49/X/XB5EPHx+CP92ezZ2f/AAOY8/wRDtFgAAAIbklEQVRoBdVZa5BURxU+fZ9z57mzs7PvF4i7srAQSCifMVDERC0jYlzUlJalKeGPlCnL/NEfywpWacoiVZRVJIYfGjGUu5bxj5qHFSAYyQOBEsJzYSHDvnd2dp535j66PX1vNgsULDPs1cr2Vs+9e7v79NfnnnP663MJYwwWYxEWI2iOedEClxabxgkBwjEvOuA9PQOOlSw64JMr4vK8GidYYMcOES4tVSEAAZ8FAUqon1GiAJEEEG0CjFB8cTaxZUMAo1gEqQA0UABprAjPbrUwXnkesgqKP8CBk5vDIenrE+BKmwI+MawA1MbCkdV10cBDflXuVmSxQRbFkCAQZ9U2ZTaONyxKcyXDHjMs83ImV3rz6njmDRPMUZB80zAJOuvvsflkXpTP7DrWyeXcYCqk75AEieawrEoty1vrvlcV0ja3VQdb1rVUQVd9EFqqNIj5ZfDJooPBsCnohq2ldDMynC42XZnW7z09lu25lMxDMl34y0gyvTsBwyewc84Z4MEPpWIzF/MBcLLtNzJISmxZU+PmWETbtqGzfvVja5uguyF02+kCIEJUk6Ex4oMV9XP9ZnQT/nZ24it7XrtoJ5LZ7SjAM+Bg2+0ckAOcbBkQIaZFVzY1bGurjezYfn87PNQZ5+13ZaQRXMzH26Lg8ymfUokQdAR59INOc53GQ6q/Jiiua6oJ7+h9uAPua47cHeLrwHEmQRmTGLHV6x4v+JYwWsOFCGRDn6RKem1rPPrkN9Y0uqAXLN4VwCgjYGEE8rBgMAjwKsF9S9WgLa9qjYcf+Po9jXdlGrfC5Wj8Vg0Lf+ZENAFmpGB9TWTLhmUxUD1UDg/gtudRnK+a4RtkgqQyO+RT5LVrmiLgJcN19gcGNojUWriS5yRQm7pcBTc/vyCKdW1RrWwzOTiYhGf+dRUmcgZosgDVfgWaMCS2V2tO+OzG0MiVjdUwiFiYm9a7O4kJAoZEooV9H4T0O0ofODkKr5+6+nY6V3heVZQpv6ZWaz55qSJJnXjtUBW5pT7k8xeK5u+B0PQdBVbQgTLq9HbQYthyNVSmTT6A/nB0aGpF0K99+trY1F7TNI9PZGXkKUVRtYjGZCIOV1dHR4Ynz8FSLV8BrjK6uiAlpLcmco1ipmgpAaU8rfesboCuumBg31uJbx6+qH0uX9D/em0i85xFhaslKZKA8/82RtYDhd/1MkCuBnjxrLgKB0EQSb5oWO+9O1bZrsy3+Kc3dcH+b99b07NuyXe6P9r8z/am+C9lkuqCjo4qGGkQES76qJcuz/2GOlUoFuVsQS+98frlaSeq8Gkqqctrg7Dz853wwrfugUfXtj3W3tJ8oCletRUEXy1SCSSYHhdu41gFqILcZCrzwkvnJmE0U3JtHefiL7eS2l7th11f7IQ9j65aVh+r+nlzbd2TELJrHPLmIXZX3wyBX8MTQMm8PJ0u9Pe9chGQYy9omvXouHu/thJqI+Ef1sZDm0AMBmfPiQsSPDuY2zhWwSH5ISU5Pjm98x9nRo7+7JVBB3wl5nJz35Vo/z/esBQUVf2+QlkD9Aw42/Ts3Au7ushdAhQ5UzJoOjE+OrV9/1tDR7cNnIax7N2bDX9nm1bUQXdz9Rp/MLwRoqAtDOzcaO7rvDrAWW8vhcatWVNjF6cmJre9embkz1947h3YfXgIUgVzblQldxgFH0ZOr/qULwM15k4Zlci4Vd9ZU5ltY71oObHBnBFQBidmUk8kEsOP7Hntwqsb974NfS8PAh7LKoo23Hw+2R4FQcSzKlDPgFOEyf8kx3HW94kQ7xJgRRdAJG7CyIWxgiXNUN0+k5nJLN83k3n8D8eHN3+1ux5+8uBHIKiWt1G1Rn3IJkiUCcQzU3G0h9qWHMeJdoSrwtr9dl6I6DNjFwRRyxiKnStSqkPJPsGSmZ+mp1P9z2dzOy3Klj31yMdmX9S8V75APEsomMZwT9fz9i6vkW9AvEgQyqrBQM2Dq9rrD0gCgXfHA0jpjIRm2Zcw+3CR2tZl27SnMZFSZ1lWcRwZITeDckresAEXaoKwwBh7/WQubgTOQj5BVjdv7KiBJz7bztMNcHIk03JiONNyfiK/ntv2VMHAMx6BjpoA/Gj9Emdjul7W7e6TeQNDK9WJLRm361P5c1drEmAaymaYoXpfjZoiOk7FHWuh5dxEHmzLHiXM9oyTz9FawRZw65f5yyzXBMpd0JGhFKB5nSwRMVvumDv2cxm4m1f5X4AuWhRePDUOtqEPQJVVGfWcBz1ahmPlTlxzqaJLquYZU1HTvjcTMD6dOULM0n+g5nKposHzdWbo7FgEkDBviWlYx++53XtQ33kvDU8dHAJm6L8usdwEZn09S3qiPed5lcCSLUpI0eEA8620zLbDl6bh8T+egkI+/7Rl6kegcTSPst1QUKaM+brhrjnF2yUQJNxnrGMnR7KbTw5nYFVjyAl98w2+VdvVlA67Dw3BgROjAKa+yyrpz0BKTbJnez1NT6AKrrnA1bEi1av2v3xaiL90dnxL2Kc0rsXc4WpcQEc8AEtiGrRiejmK6WWeMDIxtVwwKExijB5KFuBYIg1cy8dx0dTQ/yQVc78yBXMIqJ5i/VvvkqHdSjXuM/THKy7w2LQJ6fpJms38QiHGvlzBt+RwJv2JQ2elbjyRtjIi1AIRMAsKPuQduHVzr2YW+kIBE5BTwOzzxLKOiMX8QVuWh00IpqD+S0WHtLlzefpLBOZo/IYvEqQPnTX5dxmy4xookqaCjRuT4mMi8g3bxs2KCkj3GFj4+QSzA0RkeskU8iCJeUiBDv09Jt8OPEV6k7DlP3gxxh/dAPymPh/Kf5d897dIOd9P7H8oEd4G1JV8wPGbRadx52sgLmrRAZ99EZ5+LZgV+v+4Llrg/wX6HRCxgvzAAwAAAABJRU5ErkJggg==\")}}.edd-button__toggle{position:relative;margin:0;padding:0;width:36px;height:20px;min-height:unset;transition:background .2s ease;border-radius:30px;box-shadow:none;border:none;display:flex;justify-content:center;align-items:center;background:#c3c4c7;margin-right:12px}.edd-button__toggle--enabled{background:var(--wp-admin-theme-color)}.edd-button__toggle--enabled::after{transform:translateX(16px)}.edd-button__toggle:after{position:absolute;content:\"\";height:14px;width:14px;left:3px;bottom:3px;background-color:#fff;transition:.1s transform ease;border-radius:50%;background:#fff}"],"sourceRoot":""} \ No newline at end of file diff --git a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/assets/js/build/admin.min.js b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/assets/js/build/admin.min.js index a1f58a6d..19860d83 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/assets/js/build/admin.min.js +++ b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/assets/js/build/admin.min.js @@ -1 +1 @@ -!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=107)}({0:function(e,t,n){"use strict";n.d(t,"a",(function(){return r.a})),n.d(t,"f",(function(){return i.a})),n.d(t,"d",(function(){return c})),n.d(t,"h",(function(){return u})),n.d(t,"g",(function(){return d.b})),n.d(t,"j",(function(){return d.c})),n.d(t,"b",(function(){return d.a})),n.d(t,"i",(function(){return s})),n.d(t,"k",(function(){return a})),n.d(t,"e",(function(){return l})),n.d(t,"c",(function(){return f})),n(32),n(33),n(34),n(35);var r=n(19),o=n(20),i=n.n(o);function c(){i()(arguments,(function(e){document.addEventListener("DOMContentLoaded",e)}))}function u(e){for(var t=[],n=e.nextElementSibling;n;)1===n.nodeType&&t.push(n),n=n.nextElementSibling;return t}var d=n(21);function s(e){var t=!0;return i()(e.querySelectorAll("input"),(function(e){e.checkValidity&&!e.checkValidity()&&(t=!1)})),t}function a(e){var t=document.createElement("input");t.type="submit",t.style.display="none",e.appendChild(t),t.click(),t.remove()}function l(e){return e?""===e.value?null:e.value:null}function f(e,t){"true"===edd_stripe_vars.debuggingEnabled&&console.log("EDD Stripe - Debugging","\n","*".repeat(e.length+5),"\n",e,"\n","*".repeat(e.length+5),"\n",JSON.stringify(t,null,4))}n(7)},107:function(e,t,n){"use strict";n.r(t),function(e){var t,r,o=n(4),i=n.n(o);n(108),n(111),e(document).ready((function(){(t=document.getElementById("edd_settings[test_mode]"))&&(r=document.getElementById("edd_settings[stripe_connect_test_mode_toggle_notice]"),c.init()),e(".edds-api-key-toggle button").on("click",(function(t){t.preventDefault(),e(".edds-api-key-toggle, .edds-api-key-row").toggleClass("edd-hidden")}));var n=e(".stripe-elements-mode select");n&&n.on("change",(function(){e(".card-elements-feature").toggleClass("edd-hidden"),e(".payment-elements-feature").toggleClass("edd-hidden")}))}));var c={init:function(){this.listeners()},listeners:function(){var e=this;t.addEventListener("change",(function(){if(edd_stripe_admin.stripe_enabled){if(this.checked)if("false"===edd_stripe_admin.test_key_exists)e.showNotice(r,"warning"),e.addHiddenMarker();else{e.hideNotice(r);var t=document.getElementById("edd-test-mode-toggled");t&&t.parentNode.removeChild(t)}if(!this.checked)if("false"===edd_stripe_admin.live_key_exists)e.showNotice(r,"warning"),e.addHiddenMarker();else{e.hideNotice(r);var n=document.getElementById("edd-test-mode-toggled");n&&n.parentNode.removeChild(n)}}}))},addHiddenMarker:function(){var e=document.getElementById("submit");e&&e.parentNode.insertAdjacentHTML("beforeend",'')},showNotice:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error";e&&"object"===i()(e)&&(e.className="notice notice-"+t)},hideNotice:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e&&"object"===i()(e)&&(e.className="edd-hidden")}}}.call(this,n(6))},108:function(e,t,n){},111:function(e,t,n){"use strict";var r=n(0);Object(r.d)((function(){document.querySelector(".edds-requirements-not-met")&&(document.querySelector(".edd-settings-wrap .submit").style.display="none")})),Object(r.d)((function(){var e=document.getElementById("edds-payment-gateways-stripe-unmet-requirements");if(e){var t=document.querySelector('label[for="edd_settings[gateways][stripe]"]');t.parentNode.insertBefore(e,t.nextSibling);var n=document.getElementById("edd_settings[gateways][stripe]");n.disabled=!0,n.checked=!1,e.insertBefore(n,e.querySelector("p")),e.insertBefore(t,e.querySelector("p"))}}));var o=n(2),i=n.n(o);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}Object(r.d)((function(){var e=document.getElementById("edds-stripe-connect-account"),t=document.getElementById("edds-stripe-disconnect-reconnect");if(e&&!e.hasAttribute("data-onboarding-wizard"))return Object(r.a)("edds_stripe_connect_account_info",function(e){for(var t=1;t-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?d.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)}function g(e){return m(e)?function(e,t){var n=b(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&m(e)}(e)&&u.call(e,"callee")&&(!s.call(e,"callee")||"[object Arguments]"==d.call(e))}(e)?function(e,t){for(var n=-1,r=Array(e);++n1&&void 0!==arguments[1]?arguments[1]:"error",n=document.createElement("p");return n.classList.add("edd-alert"),n.classList.add("edd-stripe-alert"),n.style.clear="both","error"===t?n.classList.add("edd-alert-error"):n.classList.add("edd-alert-success"),n.innerHTML=e||edd_stripe_vars.generic_error,n}function o(t){var n=t.errorType,o=t.errorMessage,i=t.errorContainer,c=t.errorContainerReplace,u=void 0===c||c,d=e(i),s=r(o,n);!0===u?d.html(s):d.before(s)}function i(t){e(t).html("")}n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return i}))}).call(this,n(6))},32:function(e,t){String.prototype.includes||(String.prototype.includes=function(e,t){"use strict";return"number"!=typeof t&&(t=0),!(t+e.length>this.length)&&-1!==this.indexOf(e,t)})},33:function(e,t){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;do{if(Element.prototype.matches.call(t,e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null})},34:function(e,t){Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),n=t.length,r=new Array(n);n--;)r[n]=[t[n],e[t[n]]];return r})},35:function(e,t){[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach((function(e){e.hasOwnProperty("remove")||Object.defineProperty(e,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){this.parentNode.removeChild(this)}})}))},36:function(e,t,n){var r=n(4).default,o=n(37);e.exports=function(e){var t=o(e,"string");return"symbol"===r(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},37:function(e,t,n){var r=n(4).default;e.exports=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},4:function(e,t){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},6:function(e,t){e.exports=jQuery},7:function(e,t,n){"use strict";function r(e){return null===e?window.eddStripe:!e in window.eddStripe?"":window.eddStripe[e]}function o(e,t,n){if(window.eddStripe[e]=t,n)return window.eddStripe[e]}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}))}}); \ No newline at end of file +!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=111)}({0:function(e,t,n){"use strict";n.d(t,"a",(function(){return r.a})),n.d(t,"f",(function(){return i.a})),n.d(t,"d",(function(){return c})),n.d(t,"h",(function(){return u})),n.d(t,"g",(function(){return d.b})),n.d(t,"j",(function(){return d.c})),n.d(t,"b",(function(){return d.a})),n.d(t,"i",(function(){return s})),n.d(t,"k",(function(){return a})),n.d(t,"e",(function(){return l})),n.d(t,"c",(function(){return f})),n(32),n(33),n(34),n(35);var r=n(19),o=n(20),i=n.n(o);function c(){i()(arguments,(function(e){document.addEventListener("DOMContentLoaded",e)}))}function u(e){for(var t=[],n=e.nextElementSibling;n;)1===n.nodeType&&t.push(n),n=n.nextElementSibling;return t}var d=n(21);function s(e){var t=!0;return i()(e.querySelectorAll("input"),(function(e){e.checkValidity&&!e.checkValidity()&&(t=!1)})),t}function a(e){var t=document.createElement("input");t.type="submit",t.style.display="none",e.appendChild(t),t.click(),t.remove()}function l(e){return e?""===e.value?null:e.value:null}function f(e,t){"true"===edd_stripe_vars.debuggingEnabled&&console.log("EDD Stripe - Debugging","\n","*".repeat(e.length+5),"\n",e,"\n","*".repeat(e.length+5),"\n",JSON.stringify(t,null,4))}n(7)},111:function(e,t,n){"use strict";n.r(t),function(e){var t,r,o=n(4),i=n.n(o);n(112),n(115),e(document).ready((function(){(t=document.getElementById("edd_settings[test_mode]"))&&(r=document.getElementById("edd_settings[stripe_connect_test_mode_toggle_notice]"),c.init()),e(".edds-api-key-toggle button").on("click",(function(t){t.preventDefault(),e(".edds-api-key-toggle, .edds-api-key-row").toggleClass("edd-hidden")}));var n=e(".stripe-elements-mode select");n&&n.on("change",(function(){e(".card-elements-feature").toggleClass("edd-hidden"),e(".payment-elements-feature").toggleClass("edd-hidden")}))}));var c={init:function(){this.listeners()},listeners:function(){var e=this;t.addEventListener("change",(function(){if(edd_stripe_admin.stripe_enabled){if(this.checked)if("false"===edd_stripe_admin.test_key_exists)e.showNotice(r,"warning"),e.addHiddenMarker();else{e.hideNotice(r);var t=document.getElementById("edd-test-mode-toggled");t&&t.parentNode.removeChild(t)}if(!this.checked)if("false"===edd_stripe_admin.live_key_exists)e.showNotice(r,"warning"),e.addHiddenMarker();else{e.hideNotice(r);var n=document.getElementById("edd-test-mode-toggled");n&&n.parentNode.removeChild(n)}}}))},addHiddenMarker:function(){var e=document.getElementById("submit");e&&e.parentNode.insertAdjacentHTML("beforeend",'')},showNotice:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error";e&&"object"===i()(e)&&(e.className="notice notice-"+t)},hideNotice:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e&&"object"===i()(e)&&(e.className="edd-hidden")}}}.call(this,n(6))},112:function(e,t,n){},115:function(e,t,n){"use strict";var r=n(0);Object(r.d)((function(){document.querySelector(".edds-requirements-not-met")&&(document.querySelector(".edd-settings-wrap .submit").style.display="none")})),Object(r.d)((function(){var e=document.getElementById("edds-payment-gateways-stripe-unmet-requirements");if(e){var t=document.querySelector('label[for="edd_settings[gateways][stripe]"]');t.parentNode.insertBefore(e,t.nextSibling);var n=document.getElementById("edd_settings[gateways][stripe]");n.disabled=!0,n.checked=!1,e.insertBefore(n,e.querySelector("p")),e.insertBefore(t,e.querySelector("p"))}}));var o=n(2),i=n.n(o);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}Object(r.d)((function(){var e=document.getElementById("edds-stripe-connect-account"),t=document.getElementById("edds-stripe-disconnect-reconnect");if(e&&!e.hasAttribute("data-onboarding-wizard"))return Object(r.a)("edds_stripe_connect_account_info",function(e){for(var t=1;t-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?d.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)}function g(e){return m(e)?function(e,t){var n=b(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&m(e)}(e)&&u.call(e,"callee")&&(!s.call(e,"callee")||"[object Arguments]"==d.call(e))}(e)?function(e,t){for(var n=-1,r=Array(e);++n1&&void 0!==arguments[1]?arguments[1]:"error",n=document.createElement("p");return n.classList.add("edd-alert"),n.classList.add("edd-stripe-alert"),n.style.clear="both","error"===t?n.classList.add("edd-alert-error"):n.classList.add("edd-alert-success"),n.innerHTML=e||edd_stripe_vars.generic_error,n}function o(t){var n=t.errorType,o=t.errorMessage,i=t.errorContainer,c=t.errorContainerReplace,u=void 0===c||c,d=e(i),s=r(o,n);!0===u?d.html(s):d.before(s)}function i(t){e(t).html("")}n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return i}))}).call(this,n(6))},32:function(e,t){String.prototype.includes||(String.prototype.includes=function(e,t){"use strict";return"number"!=typeof t&&(t=0),!(t+e.length>this.length)&&-1!==this.indexOf(e,t)})},33:function(e,t){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;do{if(Element.prototype.matches.call(t,e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null})},34:function(e,t){Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),n=t.length,r=new Array(n);n--;)r[n]=[t[n],e[t[n]]];return r})},35:function(e,t){[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach((function(e){e.hasOwnProperty("remove")||Object.defineProperty(e,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){this.parentNode.removeChild(this)}})}))},36:function(e,t,n){var r=n(4).default,o=n(37);e.exports=function(e){var t=o(e,"string");return"symbol"===r(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},37:function(e,t,n){var r=n(4).default;e.exports=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},4:function(e,t){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},6:function(e,t){e.exports=jQuery},7:function(e,t,n){"use strict";function r(e){return null===e?window.eddStripe:!e in window.eddStripe?"":window.eddStripe[e]}function o(e,t,n){if(window.eddStripe[e]=t,n)return window.eddStripe[e]}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}))}}); \ No newline at end of file diff --git a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/assets/js/build/cardelements.min.js b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/assets/js/build/cardelements.min.js index e981c43b..363aaf2c 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/assets/js/build/cardelements.min.js +++ b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/assets/js/build/cardelements.min.js @@ -1 +1 @@ -!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=98)}([function(e,t,n){"use strict";n.d(t,"a",(function(){return r.a})),n.d(t,"f",(function(){return i.a})),n.d(t,"d",(function(){return a})),n.d(t,"h",(function(){return c})),n.d(t,"g",(function(){return u.b})),n.d(t,"j",(function(){return u.c})),n.d(t,"b",(function(){return u.a})),n.d(t,"i",(function(){return s})),n.d(t,"k",(function(){return d})),n.d(t,"e",(function(){return l})),n.d(t,"c",(function(){return f})),n(32),n(33),n(34),n(35);var r=n(19),o=n(20),i=n.n(o);function a(){i()(arguments,(function(e){document.addEventListener("DOMContentLoaded",e)}))}function c(e){for(var t=[],n=e.nextElementSibling;n;)1===n.nodeType&&t.push(n),n=n.nextElementSibling;return t}var u=n(21);function s(e){var t=!0;return i()(e.querySelectorAll("input"),(function(e){e.checkValidity&&!e.checkValidity()&&(t=!1)})),t}function d(e){var t=document.createElement("input");t.type="submit",t.style.display="none",e.appendChild(t),t.click(),t.remove()}function l(e){return e?""===e.value?null:e.value:null}function f(e,t){"true"===edd_stripe_vars.debuggingEnabled&&console.log("EDD Stripe - Debugging","\n","*".repeat(e.length+5),"\n",e,"\n","*".repeat(e.length+5),"\n",JSON.stringify(t,null,4))}n(7)},function(e,t,n){var r=n(66)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){var r=n(36);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){(function(t){function n(e,n,r,o,i,a,c){try{var u=e[a](c),s=u.value}catch(e){return void r(e)}u.done?n(s):t.resolve(s).then(o,i)}e.exports=function(e){return function(){var r=this,o=arguments;return new t((function(t,i){var a=e.apply(r,o);function c(e){n(a,t,i,c,u,"next",e)}function u(e){n(a,t,i,c,u,"throw",e)}c(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports}).call(this,n(22))},function(e,t){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||Function("return this")()}).call(this,n(38))},function(e,t){e.exports=jQuery},function(e,t,n){"use strict";function r(e){return null===e?window.eddStripe:!e in window.eddStripe?"":window.eddStripe[e]}function o(e,t,n){if(window.eddStripe[e]=t,n)return window.eddStripe[e]}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}))},function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return l})),n.d(t,"d",(function(){return f})),n.d(t,"c",(function(){return p})),n.d(t,"b",(function(){return h}));var o=n(2),i=n.n(o),a=n(0);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var u={card:"#edd-stripe-card-element"},s={cardNumber:"#edd-stripe-card-element",cardExpiry:"#edd-stripe-card-exp-element",cardCvc:"#edd-stripe-card-cvc-element"},d=function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"#edd-stripe-card-element",n=l(e,{card:t}),r=document.getElementById("edd-card-details-wrap");return r&&(r.style.display="none"),n}function p(t,n){var o=e('input[name="edd_stripe_existing_card"]:checked');return o.length>0&&"new"!==o.val()?r.resolve({id:o.val(),exists:!0}):window.eddStripe.createPaymentMethod("card",n,{billing_details:h(t)}).then((function(e){if(e.error)throw e.error;return{id:e.paymentMethod.id,exists:!1}}))}function h(e){return{name:Object(a.e)(e.querySelector(".card-name")),address:{line1:Object(a.e)(e.querySelector(".card-address")),line2:Object(a.e)(e.querySelector(".card-address-2")),city:Object(a.e)(e.querySelector(".card-city")),state:Object(a.e)(e.querySelector(".card_state")),postal_code:Object(a.e)(e.querySelector(".card-zip")),country:Object(a.e)(e.querySelector("#billing_country"))}}}}).call(this,n(6),n(22))},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},,function(e,t,n){"use strict";n.d(t,"d",(function(){return r.d})),n.d(t,"b",(function(){return r.b})),n.d(t,"a",(function(){return r.a})),n.d(t,"h",(function(){return w})),n.d(t,"g",(function(){return A})),n.d(t,"c",(function(){return D})),n.d(t,"f",(function(){return B.c})),n.d(t,"e",(function(){return B.b}));var r=n(30),o=n(2),i=n.n(o),a=n(0);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{},r=document.getElementById("edd-process-stripe-token-"+t);return n.timestamp=r?r.dataset.timestamp:"",n.token=r?r.dataset.token:"",Object(a.a)(e,u({payment_method:t,nonce:document.getElementById("card_update_nonce_"+t).value},n)).fail((function(e){h(t,e)})).done((function(e){h(t,e,"success"),setTimeout((function(){location.reload()}),1500)}))}function d(e){e.preventDefault();var t=e.target.dataset.source,n=document.getElementById(t+"-update-form"),r=document.getElementById(t+"-card-actions"),o="block"===n.style.display;n.style.display=o?"none":"block",r.style.display=o?"block":"none"}function l(e){e.preventDefault();var t=e.target,n={};["address_city","address_country","address_line1","address_line2","address_zip","address_state","exp_month","exp_year"].forEach((function(e){var r=t.querySelector('[name="'+e+'"]');n[e]=Object(a.e)(r)}));var r=t.querySelector('input[type="submit"]');r.disabled=!0,r.value=r.dataset.loading,s("edds_update_payment_method",e.target.dataset.source,n).fail((function(e){r.disabled=!1,r.value=r.dataset.submit}))}function f(e){e.preventDefault();var t=e.target.innerText;e.target.innerHTML='',s("edds_delete_payment_method",e.target.dataset.source).fail((function(n){e.target.innerText=t}))}function p(e){e.preventDefault();var t=e.target.innerText;e.target.innerHTML='',s("edds_set_payment_method_default",e.target.dataset.source).fail((function(n){e.target.innerText=t}))}function h(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"error",r=Object(a.g)(t&&t.message?t.message:edd_stripe_vars.generic_error,n);Object(a.f)(document.querySelectorAll(".edd-stripe-alert"),(function(e){e.remove()}));var o=document.getElementById(e+"_card_item");o.insertBefore(r,o.querySelector(".card-details"))}var m=n(8);function y(e){e.preventDefault();var t=document.getElementById("edd-stripe-add-new-card"),n=t.querySelector(".edd-stripe-add-new-card"),r="block"===n.style.display,o=t.querySelector("#edd-stripe-add-new-cancel");if(r&&o!==e.target){var i=document.createEvent("Event");i.initEvent("submit",!0,!0),t.dispatchEvent(i)}else n.style.display=r?"none":"block",o.style.display=r?"none":"inline-block"}function v(e){e.preventDefault();var t,n,r=e.target;if(Object(a.i)(r))try{(n=document.querySelector(".edd-stripe-add-new")).value=n.dataset.loading,n.disabled=!0,(t=r,window.eddStripe.createPaymentMethod("card",window.eddStripe.cardElement,{billing_details:Object(m.b)(t)}).then((function(e){if(e.error)throw e.error;return e.paymentMethod}))).then(b).catch((function(e){_(e),g()}))}catch(e){_(e),g()}else Object(a.k)(r)}function b(e){var t=document.getElementById("#edd-process-stripe-token");Object(a.a)("edds_add_payment_method",{payment_method_id:e.id,nonce:document.getElementById("edd-stripe-add-card-nonce").value,timestamp:t?t.dataset.timestamp:"",token:t?t.dataset.token:""}).fail(_).done((function(e){_(e,"success"),setTimeout((function(){location.reload()}),1500)}))}function g(){var e=document.querySelector(".edd-stripe-add-new");e.value=e.dataset.submit,e.disabled=!1}function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error",n=Object(a.g)(e&&e.message?e.message:edd_stripe_vars.generic_error,t);Object(a.f)(document.querySelectorAll(".edd-stripe-alert"),(function(e){e.remove()})),document.querySelector(".edd-stripe-add-card-actions").insertBefore(n,document.querySelector(".edd-stripe-add-new"))}function w(){document.getElementById("edd-stripe-manage-cards")&&(Object(a.f)(document.querySelectorAll(".edd-stripe-update-card"),(function(e){e.addEventListener("click",d)})),Object(a.f)(document.querySelectorAll(".edd-stripe-cancel-update"),(function(e){e.addEventListener("click",d)})),Object(a.f)(document.querySelectorAll(".card-update-form"),(function(e){e.addEventListener("submit",l)})),Object(a.f)(document.querySelectorAll(".edd-stripe-delete-card"),(function(e){e.addEventListener("click",f)})),Object(a.f)(document.querySelectorAll(".edd-stripe-default-card"),(function(e){e.addEventListener("click",p)})),Object(m.a)(window.eddStripe.elements()),document.querySelector(".edd-stripe-add-new").addEventListener("click",y),document.getElementById("edd-stripe-add-new-cancel").addEventListener("click",y),document.getElementById("edd-stripe-add-new-card").addEventListener("submit",v),document.getElementById("card_name").required=!0)}var j=n(18),O=n(3),x=n.n(O),S=n(1),k=n.n(S),E=n(13);function P(_x){return q.apply(this,arguments)}function q(){return(q=x()(k.a.mark((function e(t){var n,r,o,i,a;return k.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),n=document.getElementById("edds-update-payment-method"),T(),e.prev=3,e.next=6,Object(m.c)(n,window.eddStripe.cardElement);case 6:return r=e.sent,e.next=9,Object(E.d)(n.dataset.paymentIntent,"payment_method");case 9:return o=e.sent,e.next=12,Object(E.c)(o,{payment_method:r.id});case 12:return i=e.sent,e.next=15,M(i.id);case 15:if(!(a=e.sent).payment){e.next=20;break}window.location.reload(),e.next=21;break;case 20:throw a;case 21:e.next=27;break;case 23:e.prev=23,e.t0=e.catch(3),I(e.t0),L();case 27:case"end":return e.stop()}}),e,null,[[3,23]])})))).apply(this,arguments)}function M(e){return Object(a.a)("edds_complete_payment_authorization",{intent_id:e,"edds-complete-payment-authorization":document.getElementById("edds-complete-payment-authorization").value})}function T(){var e=document.getElementById("edds-update-payment-method-submit");e.value=e.dataset.loading,e.disabled=!0}function L(){var e=document.getElementById("edds-update-payment-method-submit");e.value=e.dataset.submit,e.disabled=!1}function I(e){var t=Object(a.g)(e&&e.message?e.message:edd_stripe_vars.generic_error,"error"),n=document.getElementById("edds-update-payment-method-errors");n.innerHTML="",n.appendChild(t)}function A(){document.getElementById("edds-update-payment-method")&&(Object(m.a)(window.eddStripe.elements()),document.getElementById("edds-update-payment-method").addEventListener("submit",P),Object(j.a)())}var C=n(62);function D(){Object(a.f)(document.querySelectorAll(".edds-buy-now"),(function(e){e.classList.contains("edd-free-download")||e.addEventListener("click",(function(e){var t,n,o=e.currentTarget.dataset,i=o.downloadId,c=o.nonce;if(i){e.preventDefault(),e.stopImmediatePropagation();var u=null,s=1,d=e.currentTarget.closest(".edd_download_purchase_form"),l=d.querySelector(".edd_price_option_".concat(i,":checked"));l&&(u=l.value);var f=d.querySelector('input[name="edd_download_quantity"]');f&&(s=f.value),t={downloadId:i,priceId:u,quantity:s,nonce:c,addToCartForm:d},n=document.querySelector("#edds-buy-now-modal-content"),C.a.open("edds-buy-now",{onShow:function(){var e,o,i,c,u,s;n.innerHTML='',(e=t.downloadId,o=t.priceId,i=t.quantity,c=t.nonce,u=t.addToCartForm,s={download_id:e,price_id:o,quantity:i,nonce:c,post_data:jQuery(u).serialize()},Object(a.a)("edds_add_to_cart",s)).then((function(e){var t=e.checkout;n.innerHTML=t,window.EDD_Checkout.init();var o=document.querySelector("#edds-buy-now-modal-content .edd_cart_amount");parseFloat(o.dataset.total)>0&&(Object(r.c)(),Object(j.a)())})).fail((function(e){var t=e.message;document.querySelector("#edds-buy-now-modal-content").innerHTML=t}))},onClose:function(){Object(a.a)("edds_empty_cart")}})}}))})),jQuery(document.body).on("edd_checkout_error",(function(){var e=document.querySelector("#edds-buy-now #edd-purchase-button");if(e){var t=edd_stripe_vars.i18n.completePurchase,n=document.querySelector(".edd_cart_amount").dataset,r=n.total,o=n.totalCurrency;"0"!==r&&setTimeout((function(){e.value="".concat(o," - ").concat(t)}),10)}}))}var B=n(60)},function(e,t,n){"use strict";(function(e,r){n.d(t,"d",(function(){return p})),n.d(t,"b",(function(){return h})),n.d(t,"a",(function(){return m})),n.d(t,"c",(function(){return v}));var o=n(3),i=n.n(o),a=n(2),c=n.n(a),u=n(1),s=n.n(u),d=n(0);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"payment_intent",r=e(window.eddStripe.cardElement._parent).closest("form"),o=e("#edd-process-stripe-token");return Object(d.a)("edds_get_intent",{intent_id:t,intent_type:n,timestamp:o.length?o.data("timestamp"):"",token:o.length?o.data("token"):"",form_data:r.serialize()}).then((function(e){return e.intent}))}function h(t){var n=e(window.eddStripe.cardElement._parent).closest("form"),r=e("#edd-process-stripe-token");return Object(d.a)("edds_confirm_intent",{intent_id:t.id,intent_type:t.object,timestamp:r.length?r.data("timestamp"):"",token:r.length?r.data("token"):"",form_data:n.serialize()}).then((function(e){return e.intent}))}function m(t,n,o){var i=e(window.eddStripe.cardElement._parent).closest("form");if("requires_capture"!==t.status)return r.resolve(t);var a=i.serialize(),c=e("#edd-process-stripe-token");return o&&(a+="&edd-process-checkout-nonce=".concat(o)),Object(d.a)("edds_capture_intent",f({intent_id:t.id,intent_type:t.object,form_data:a,timestamp:c.length?c.data("timestamp"):"",token:c.length?c.data("token"):""},n)).then((function(e){return e.intent}))}function y(t,n){var r=e(window.eddStripe.cardElement._parent).closest("form"),o=e("#edd-process-stripe-token");return Object(d.a)("edds_update_intent",f({intent_id:t.id,intent_type:t.object,timestamp:o.length?o.data("timestamp"):"",token:o.length?o.data("token"):"",form_data:r.serialize()},n)).then((function(e){return e.intent}))}function v(_x,e){return b.apply(this,arguments)}function b(){return(b=i()(s.a.mark((function e(t,n){var r,o,a;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("requires_confirmation"!==t.status){e.next=7;break}return e.next=3,h(t);case 3:return r=e.sent,e.next=6,v(r);case 6:return e.abrupt("return",e.sent);case 7:if("requires_payment_method"!==t.status&&"requires_source"!==t.status){e.next=14;break}return e.next=10,y(t,n);case 10:return o=e.sent,e.next=13,v(o,n);case 13:return e.abrupt("return",e.sent);case 14:if(!("requires_action"===t.status&&"use_stripe_sdk"===t.next_action.type||"requires_source_action"===t.status&&"use_stripe_sdk"===t.next_action.type)){e.next=18;break}return a="setup_intent"===t.object?"handleCardSetup":"handleCardAction","automatic"===t.confirmation_method&&(a="handleCardPayment"),e.abrupt("return",window.eddStripe[a](t.client_secret).then(function(){var e=i()(s.a.mark((function e(t){var n,r;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.error){e.next=2;break}throw t.error;case 2:return n=t.setupIntent,r=t.paymentIntent,e.next=5,v(n||r);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 18:return e.abrupt("return",t);case 19:case"end":return e.stop()}}),e)})))).apply(this,arguments)}}).call(this,n(6),n(22))},function(e,t,n){var r=n(9);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,n){var r=n(5),o=n(48),i=n(10),a=n(49),c=n(57),u=n(90),s=o("wks"),d=r.Symbol,l=u?d:d&&d.withoutSetter||a;e.exports=function(e){return i(s,e)||(c&&i(d,e)?s[e]=d[e]:s[e]=l("Symbol."+e)),s[e]}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(14),o=n(26),i=n(23);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o}));var r=n(0);function o(){i()&&(a(!1),i().addEventListener("change",(function(e){return a(e.target.checked)})));var t=document.querySelectorAll(".edd-stripe-existing-card");if(0!==t.length){Object(r.f)(t,(function(t){return t.addEventListener("change",(function(t){return function(t){var n="new"===t.value,r=document.querySelector(".edd-stripe-new-card"),o=document.querySelector(".edd-stripe-update-billing-address-wrapper");r.style.display=n?"block":"none",o&&(o.style.display=n?"none":"block"),e(".edd-stripe-card-radio-item").removeClass("selected"),e(t).closest(".edd-stripe-card-radio-item").addClass("selected");var c={card_address:"address_line1",card_address_2:"address_line2",card_city:"address_city",card_state:"address_state",card_zip:"address_zip",billing_country:"address_country"};if(n){for(var u in c){if(!c.hasOwnProperty(u))return;var s=document.getElementById(u);s&&(s.value="",s.selected="")}window.EDD_Checkout.recalculate_taxes&&window.EDD_Checkout.recalculate_taxes(),a(!0)}else{var d=[],l=document.getElementById(t.id+"-billing-details");if(!l)return;a(!1),i()&&(i().checked=!1);var f=l.dataset;for(var p in c)if(c.hasOwnProperty(p)){var h=document.getElementById(p);if(h){var m=f[c[p]];if(h.value=m,""!==m&&d.push(m),h.required&&""===m&&(a(!0),i()&&(i().checked=!0),o&&(o.style.display="none")),"billing_country"===p){var y=document.createEvent("Event");y.initEvent("change",!0,!0),h.dispatchEvent(y)}}}e(document).ajaxSuccess((function(e,t,n){if(n&&n.data&&t&&n.data.includes("action=edd_get_shop_states")&&n.data.includes("field_name=card_state")&&t.responseText&&t.responseText.includes("card_state")){var r=document.getElementById("card_state");r&&(r.value=f.address_state,window.EDD_Checkout.recalculate_taxes&&window.EDD_Checkout.recalculate_taxes(r.value))}}));var v=document.querySelector(".edd-stripe-update-billing-address-current");if(v){v.innerText=d.join(", ");var b=f.brand,g=f.last4;document.querySelector(".edd-stripe-update-billing-address-brand").innerHTML=b,document.querySelector(".edd-stripe-update-billing-address-last4").innerHTML=g}}}(t.target)}))}));var n=document.querySelector(".edd-stripe-existing-card:checked");n||((n=document.querySelector(".edd-stripe-existing-card:first-of-type")).checked=!0);var o=document.createEvent("Event");o.initEvent("change",!0,!1),n.dispatchEvent(o)}}function i(){return document.getElementById("edd-stripe-update-billing-address")}function a(e){var t=document.querySelector(".edd-stripe-update-billing-address-wrapper");if(t){var n=Object(r.h)(t),o=document.querySelector(".edd-stripe-update-billing-address-current");n.forEach((function(t){t.style.display=e?"block":"none"})),o&&(o.style.display=e?"none":"block")}}}).call(this,n(6))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return s}));var r=n(4),o=n.n(r),i=n(2),a=n.n(i);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?u.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)}function v(e){return y(e)?function(e,t){var n=m(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&y(e)}(e)&&c.call(e,"callee")&&(!s.call(e,"callee")||"[object Arguments]"==u.call(e))}(e)?function(e,t){for(var n=-1,r=Array(e);++n1&&void 0!==arguments[1]?arguments[1]:"error",n=document.createElement("p");return n.classList.add("edd-alert"),n.classList.add("edd-stripe-alert"),n.style.clear="both","error"===t?n.classList.add("edd-alert-error"):n.classList.add("edd-alert-success"),n.innerHTML=e||edd_stripe_vars.generic_error,n}function o(t){var n=t.errorType,o=t.errorMessage,i=t.errorContainer,a=t.errorContainerReplace,c=void 0===a||a,u=e(i),s=r(o,n);!0===c?u.html(s):u.before(s)}function i(t){e(t).html("")}n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return i}))}).call(this,n(6))},function(e,t,n){e.exports=n(63).Promise},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(42),o=n(44);e.exports=function(e){return r(o(e))}},function(e,t,n){var r=n(16);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(14),o=n(45),i=n(27),a=n(25),c=Object.defineProperty;t.f=r?c:function(e,t,n){if(i(e),t=a(t,!0),i(n),o)try{return c(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(16);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,n){var r=n(5),o=n(17);e.exports=function(e,t){try{o(r,e,t)}catch(n){r[e]=t}return t}},function(e,t,n){var r=n(105);e.exports=function(e,t){if(null==e)return{};var n,o,i=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";(function(e){n.d(t,"d",(function(){return i}));var r=n(18),o=n(61);function i(){if("1"===edd_scripts.is_checkout){var t=document.querySelector('input[name="edd-gateway"]');t&&"stripe"===t.value&&(Object(o.c)(),Object(r.a)()),e(document.body).on("edd_gateway_loaded",(function(e,t){"stripe"===t&&(Object(o.c)(),Object(r.a)())}))}}n.d(t,"a",(function(){return o.a})),n.d(t,"b",(function(){return o.b})),n.d(t,"c",(function(){return o.c}))}).call(this,n(6))},,function(e,t){String.prototype.includes||(String.prototype.includes=function(e,t){"use strict";return"number"!=typeof t&&(t=0),!(t+e.length>this.length)&&-1!==this.indexOf(e,t)})},function(e,t){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;do{if(Element.prototype.matches.call(t,e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null})},function(e,t){Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),n=t.length,r=new Array(n);n--;)r[n]=[t[n],e[t[n]]];return r})},function(e,t){[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach((function(e){e.hasOwnProperty("remove")||Object.defineProperty(e,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){this.parentNode.removeChild(this)}})}))},function(e,t,n){var r=n(4).default,o=n(37);e.exports=function(e){var t=o(e,"string");return"symbol"===r(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(4).default;e.exports=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(5),o=n(40).f,i=n(17),a=n(69),c=n(28),u=n(74),s=n(81);e.exports=function(e,t){var n,d,l,f,p,h=e.target,m=e.global,y=e.stat;if(n=m?r:y?r[h]||c(h,{}):(r[h]||{}).prototype)for(d in t){if(f=t[d],l=e.noTargetGet?(p=o(n,d))&&p.value:n[d],!s(m?d:h+(y?".":"#")+d,e.forced)&&void 0!==l){if(typeof f==typeof l)continue;u(f,l)}(e.sham||l&&l.sham)&&i(f,"sham",!0),a(n,d,f,e)}}},function(e,t,n){var r=n(14),o=n(41),i=n(23),a=n(24),c=n(25),u=n(10),s=n(45),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=a(e),t=c(t,!0),s)try{return d(e,t)}catch(e){}if(u(e,t))return i(!o.f.call(e,t),e[t])}},function(e,t,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);t.f=i?function(e){var t=o(this,e);return!!t&&t.enumerable}:r},function(e,t,n){var r=n(9),o=n(43),i="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?i.call(e,""):Object(e)}:Object},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(14),o=n(9),i=n(68);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(47),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return o.call(e)}),e.exports=r.inspectSource},function(e,t,n){var r=n(5),o=n(28),i=r["__core-js_shared__"]||o("__core-js_shared__",{});e.exports=i},function(e,t,n){var r=n(73),o=n(47);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},function(e,t){e.exports={}},function(e,t,n){var r=n(10),o=n(24),i=n(79).indexOf,a=n(50);e.exports=function(e,t){var n,c=o(e),u=0,s=[];for(n in c)!r(a,n)&&r(c,n)&&s.push(n);for(;t.length>u;)r(c,n=t[u++])&&(~i(s,n)||s.push(n));return s}},function(e,t,n){var r=n(53),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(44);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(9);e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},function(e,t){e.exports={}},,function(e,t,n){"use strict";n.d(t,"c",(function(){return E})),n.d(t,"b",(function(){return P.a})),n.d(t,"a",(function(){return q}));var r=n(97),o=n.n(r),i=n(2),a=n.n(i),c=n(29),u=n.n(c),s=n(3),d=n.n(s),l=n(1),f=n.n(l),p=n(0),h=(n(13),n(12)),m=["display-items"],y=["display-items"],v=["display-items"];function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t0&&(t.preventDefault(),e("#edd_purchase_form #edd_purchase_submit [type=submit]").trigger("click"))}function v(){document.querySelector("#edd_purchase_form #edd_purchase_submit [type=submit]").value=edd_global_vars.complete_purchase,e(".edd-loading-ajax").remove(),e(".edd_errors").remove(),e(".edd-error").hide(),e("#edd-purchase-button").attr("disabled",!1)}function b(t){var n=t.code,r=t.message,o=window.edd_stripe_vars.elementsOptions.i18n.errorMessages;r||(r=edd_stripe_vars.generic_error);var i=n&&o[n]?o[n]:r,a=Object(s.g)(i);e(".edd-stripe-alert").remove(),e(edd_global_vars.checkout_error_anchor).before(a),e(document.body).trigger("edd_checkout_error",[t]),window.console&&t.responseText&&window.console.error(t.responseText)}}).call(this,n(6))},function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=n(2),o=n.n(r);function i(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&this.registerTriggers.apply(this,a(o)),this.onClick=this.onClick.bind(this),this.onKeydown=this.onKeydown.bind(this)}var t,n;return t=e,(n=[{key:"registerTriggers",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r0&&void 0!==arguments[0]?arguments[0]:null;if(this.activeElement=document.activeElement,this.modal.setAttribute("aria-hidden","false"),this.modal.classList.add(this.config.openClass),this.scrollBehaviour("disable"),this.addEventListeners(),this.config.awaitOpenAnimation){var n=function t(){e.modal.removeEventListener("animationend",t,!1),e.setFocusToFirstNode()};this.modal.addEventListener("animationend",n,!1)}else this.setFocusToFirstNode();this.config.onShow(this.modal,this.activeElement,t)}},{key:"closeModal",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.modal;if(this.modal.setAttribute("aria-hidden","true"),this.removeEventListeners(),this.scrollBehaviour("enable"),this.activeElement&&this.activeElement.focus&&this.activeElement.focus(),this.config.onClose(this.modal,this.activeElement,e),this.config.awaitCloseAnimation){var n=this.config.openClass;this.modal.addEventListener("animationend",(function e(){t.classList.remove(n),t.removeEventListener("animationend",e,!1)}),!1)}else t.classList.remove(this.config.openClass)}},{key:"closeModalById",value:function(e){this.modal=document.getElementById(e),this.modal&&this.closeModal()}},{key:"scrollBehaviour",value:function(e){if(this.config.disableScroll){var t=document.querySelector("body");switch(e){case"enable":Object.assign(t.style,{overflow:""});break;case"disable":Object.assign(t.style,{overflow:"hidden"})}}}},{key:"addEventListeners",value:function(){this.modal.addEventListener("touchstart",this.onClick),this.modal.addEventListener("click",this.onClick),document.addEventListener("keydown",this.onKeydown)}},{key:"removeEventListeners",value:function(){this.modal.removeEventListener("touchstart",this.onClick),this.modal.removeEventListener("click",this.onClick),document.removeEventListener("keydown",this.onKeydown)}},{key:"onClick",value:function(e){e.target.hasAttribute(this.config.closeTrigger)&&this.closeModal(e)}},{key:"onKeydown",value:function(e){27===e.keyCode&&this.closeModal(e),9===e.keyCode&&this.retainFocus(e)}},{key:"getFocusableNodes",value:function(){var e=this.modal.querySelectorAll(u);return Array.apply(void 0,a(e))}},{key:"setFocusToFirstNode",value:function(){var e=this;if(!this.config.disableFocus){var t=this.getFocusableNodes();if(0!==t.length){var n=t.filter((function(t){return!t.hasAttribute(e.config.closeTrigger)}));n.length>0&&n[0].focus(),0===n.length&&t[0].focus()}}}},{key:"retainFocus",value:function(e){var t=this.getFocusableNodes();if(0!==t.length)if(t=t.filter((function(e){return null!==e.offsetParent})),this.modal.contains(document.activeElement)){var n=t.indexOf(document.activeElement);e.shiftKey&&0===n&&(t[t.length-1].focus(),e.preventDefault()),!e.shiftKey&&t.length>0&&n===t.length-1&&(t[0].focus(),e.preventDefault())}else t[0].focus()}}])&&i(t.prototype,n),e}(),d=null,l=function(e){if(!document.getElementById(e))return console.warn("MicroModal: ❗Seems like you have missed %c'".concat(e,"'"),"background-color: #f8f9fa;color: #50596c;font-weight: bold;","ID somewhere in your code. Refer example below to resolve it."),console.warn("%cExample:","background-color: #f8f9fa;color: #50596c;font-weight: bold;",'')),!1},f=function(e,t){if(function(e){e.length<=0&&(console.warn("MicroModal: ❗Please specify at least one %c'micromodal-trigger'","background-color: #f8f9fa;color: #50596c;font-weight: bold;","data attribute."),console.warn("%cExample:","background-color: #f8f9fa;color: #50596c;font-weight: bold;",''))}(e),!t)return!0;for(var n in t)l(n);return!0},{init:function(e){var t=Object.assign({},{openTrigger:"data-micromodal-trigger"},e),n=a(document.querySelectorAll("[".concat(t.openTrigger,"]"))),r=function(e,t){var n=[];return e.forEach((function(e){var r=e.attributes[t].value;void 0===n[r]&&(n[r]=[]),n[r].push(e)})),n}(n,t.openTrigger);if(!0!==t.debugMode||!1!==f(n,r))for(var o in r){var i=r[o];t.targetModal=o,t.triggers=a(i),d=new s(t)}},show:function(e,t){var n=t||{};n.targetModal=e,!0===n.debugMode&&!1===l(e)||(d&&d.removeEventListeners(),(d=new s(n)).showModal())},close:function(e){e?d.closeModalById(e):d.closeModal()}});window.MicroModal=p;var h=p;function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t1)for(var n=1;n=0;--r){var o=this.tryEntries[r],i=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),u=a.call(o,"finallyLoc");if(c&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:M(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),m}},n}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports}).call(this,n(22))},function(e,t,n){var r=n(39),o=n(82);r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},function(e,t,n){var r=n(5),o=n(16),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},function(e,t,n){var r=n(5),o=n(17),i=n(10),a=n(28),c=n(46),u=n(70),s=u.get,d=u.enforce,l=String(String).split("String");(e.exports=function(e,t,n,c){var u=!!c&&!!c.unsafe,s=!!c&&!!c.enumerable,f=!!c&&!!c.noTargetGet;"function"==typeof n&&("string"!=typeof t||i(n,"name")||o(n,"name",t),d(n).source=l.join("string"==typeof t?t:"")),e!==r?(u?!f&&e[t]&&(s=!0):delete e[t],s?e[t]=n:o(e,t,n)):s?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&s(this).source||c(this)}))},function(e,t,n){var r,o,i,a=n(71),c=n(5),u=n(16),s=n(17),d=n(10),l=n(72),f=n(50),p=c.WeakMap;if(a){var h=new p,m=h.get,y=h.has,v=h.set;r=function(e,t){return v.call(h,e,t),t},o=function(e){return m.call(h,e)||{}},i=function(e){return y.call(h,e)}}else{var b=l("state");f[b]=!0,r=function(e,t){return s(e,b,t),t},o=function(e){return d(e,b)?e[b]:{}},i=function(e){return d(e,b)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){var r=n(5),o=n(46),i=r.WeakMap;e.exports="function"==typeof i&&/native code/.test(o(i))},function(e,t,n){var r=n(48),o=n(49),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},function(e,t){e.exports=!1},function(e,t,n){var r=n(10),o=n(75),i=n(40),a=n(26);e.exports=function(e,t){for(var n=o(t),c=a.f,u=i.f,s=0;sd;)if((c=u[d++])!=c)return!0}else for(;s>d;d++)if((e||d in u)&&u[d]===n)return e||d||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t,n){var r=n(53),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},function(e,t,n){var r=n(9),o=/#|\.prototype\./,i=function(e,t){var n=c[a(e)];return n==s||n!=u&&("function"==typeof t?r(t):!!t)},a=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},c=i.data={},u=i.NATIVE="N",s=i.POLYFILL="P";e.exports=i},function(e,t,n){"use strict";var r=n(14),o=n(9),i=n(83),a=n(55),c=n(41),u=n(56),s=n(42),d=Object.assign,l=Object.defineProperty;e.exports=!d||o((function(){if(r&&1!==d({b:1},d(l({},"a",{enumerable:!0,get:function(){l(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=d({},e)[n]||"abcdefghijklmnopqrst"!=i(d({},t)).join("")}))?function(e,t){for(var n=u(e),o=arguments.length,d=1,l=a.f,f=c.f;o>d;)for(var p,h=s(arguments[d++]),m=l?i(h).concat(l(h)):i(h),y=m.length,v=0;y>v;)p=m[v++],r&&!f.call(h,p)||(n[p]=h[p]);return n}:d},function(e,t,n){var r=n(51),o=n(54);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(39),o=n(85);r({target:"Array",stat:!0,forced:!n(95)((function(e){Array.from(e)}))},{from:o})},function(e,t,n){"use strict";var r=n(86),o=n(56),i=n(88),a=n(89),c=n(52),u=n(91),s=n(92);e.exports=function(e){var t,n,d,l,f,p,h=o(e),m="function"==typeof this?this:Array,y=arguments.length,v=y>1?arguments[1]:void 0,b=void 0!==v,g=s(h),_=0;if(b&&(v=r(v,y>2?arguments[2]:void 0,2)),null==g||m==Array&&a(g))for(n=new m(t=c(h.length));t>_;_++)p=b?v(h[_],_):h[_],u(n,_,p);else for(f=(l=g.call(h)).next,n=new m;!(d=f.call(l)).done;_++)p=b?i(l,v,[d.value,_],!0):d.value,u(n,_,p);return n.length=_,n}},function(e,t,n){var r=n(87);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){var r=n(27);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&r(i.call(e)),t}}},function(e,t,n){var r=n(15),o=n(58),i=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},function(e,t,n){var r=n(57);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){"use strict";var r=n(25),o=n(26),i=n(23);e.exports=function(e,t,n){var a=r(t);a in e?o.f(e,a,i(0,n)):e[a]=n}},function(e,t,n){var r=n(93),o=n(58),i=n(15)("iterator");e.exports=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[r(e)]}},function(e,t,n){var r=n(94),o=n(43),i=n(15)("toStringTag"),a="Arguments"==o(function(){return arguments}());e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?n:a?o(t):"Object"==(r=o(t))&&"function"==typeof t.callee?"Arguments":r}},function(e,t,n){var r={};r[n(15)("toStringTag")]="z",e.exports="[object z]"===String(r)},function(e,t,n){var r=n(15)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return k}));var r,o=n(2),i=n.n(o),a=n(29),c=n.n(a),u=n(3),s=n.n(u),d=n(1),l=n.n(d),f=n(60),p=n(0),h=(n(13),n(12)),m=["display-items"],y=["display-items"];function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o},e.exports.__esModule=!0,e.exports.default=e.exports}]); \ No newline at end of file +!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=101)}([function(e,t,n){"use strict";n.d(t,"a",(function(){return r.a})),n.d(t,"f",(function(){return i.a})),n.d(t,"d",(function(){return a})),n.d(t,"h",(function(){return c})),n.d(t,"g",(function(){return u.b})),n.d(t,"j",(function(){return u.c})),n.d(t,"b",(function(){return u.a})),n.d(t,"i",(function(){return s})),n.d(t,"k",(function(){return d})),n.d(t,"e",(function(){return l})),n.d(t,"c",(function(){return f})),n(32),n(33),n(34),n(35);var r=n(19),o=n(20),i=n.n(o);function a(){i()(arguments,(function(e){document.addEventListener("DOMContentLoaded",e)}))}function c(e){for(var t=[],n=e.nextElementSibling;n;)1===n.nodeType&&t.push(n),n=n.nextElementSibling;return t}var u=n(21);function s(e){var t=!0;return i()(e.querySelectorAll("input"),(function(e){e.checkValidity&&!e.checkValidity()&&(t=!1)})),t}function d(e){var t=document.createElement("input");t.type="submit",t.style.display="none",e.appendChild(t),t.click(),t.remove()}function l(e){return e?""===e.value?null:e.value:null}function f(e,t){"true"===edd_stripe_vars.debuggingEnabled&&console.log("EDD Stripe - Debugging","\n","*".repeat(e.length+5),"\n",e,"\n","*".repeat(e.length+5),"\n",JSON.stringify(t,null,4))}n(7)},function(e,t,n){var r=n(67)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){var r=n(36);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){(function(t){function n(e,n,r,o,i,a,c){try{var u=e[a](c),s=u.value}catch(e){return void r(e)}u.done?n(s):t.resolve(s).then(o,i)}e.exports=function(e){return function(){var r=this,o=arguments;return new t((function(t,i){var a=e.apply(r,o);function c(e){n(a,t,i,c,u,"next",e)}function u(e){n(a,t,i,c,u,"throw",e)}c(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports}).call(this,n(22))},function(e,t){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||Function("return this")()}).call(this,n(38))},function(e,t){e.exports=jQuery},function(e,t,n){"use strict";function r(e){return null===e?window.eddStripe:!e in window.eddStripe?"":window.eddStripe[e]}function o(e,t,n){if(window.eddStripe[e]=t,n)return window.eddStripe[e]}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}))},function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return l})),n.d(t,"d",(function(){return f})),n.d(t,"c",(function(){return p})),n.d(t,"b",(function(){return m}));var o=n(2),i=n.n(o),a=n(0);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var u={card:"#edd-stripe-card-element"},s={cardNumber:"#edd-stripe-card-element",cardExpiry:"#edd-stripe-card-exp-element",cardCvc:"#edd-stripe-card-cvc-element"},d=function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"#edd-stripe-card-element",n=l(e,{card:t}),r=document.getElementById("edd-card-details-wrap");return r&&(r.style.display="none"),n}function p(t,n){var o=e('input[name="edd_stripe_existing_card"]:checked');return o.length>0&&"new"!==o.val()?r.resolve({id:o.val(),exists:!0}):window.eddStripe.createPaymentMethod("card",n,{billing_details:m(t)}).then((function(e){if(e.error)throw e.error;return{id:e.paymentMethod.id,exists:!1}}))}function m(e){return{name:Object(a.e)(e.querySelector(".card-name")),address:{line1:Object(a.e)(e.querySelector(".card-address")),line2:Object(a.e)(e.querySelector(".card-address-2")),city:Object(a.e)(e.querySelector(".card-city")),state:Object(a.e)(e.querySelector(".card_state")),postal_code:Object(a.e)(e.querySelector(".card-zip")),country:Object(a.e)(e.querySelector("#billing_country"))}}}}).call(this,n(6),n(22))},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){"use strict";n.d(t,"d",(function(){return r.d})),n.d(t,"b",(function(){return r.b})),n.d(t,"a",(function(){return r.a})),n.d(t,"h",(function(){return w})),n.d(t,"g",(function(){return A})),n.d(t,"c",(function(){return D})),n.d(t,"f",(function(){return B.c})),n.d(t,"e",(function(){return B.b}));var r=n(30),o=n(2),i=n.n(o),a=n(0);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{},r=document.getElementById("edd-process-stripe-token-"+t);return n.timestamp=r?r.dataset.timestamp:"",n.token=r?r.dataset.token:"",Object(a.a)(e,u({payment_method:t,nonce:document.getElementById("card_update_nonce_"+t).value},n)).fail((function(e){m(t,e)})).done((function(e){m(t,e,"success"),setTimeout((function(){location.reload()}),1500)}))}function d(e){e.preventDefault();var t=e.target.dataset.source,n=document.getElementById(t+"-update-form"),r=document.getElementById(t+"-card-actions"),o="block"===n.style.display;n.style.display=o?"none":"block",r.style.display=o?"block":"none"}function l(e){e.preventDefault();var t=e.target,n={};["address_city","address_country","address_line1","address_line2","address_zip","address_state","exp_month","exp_year"].forEach((function(e){var r=t.querySelector('[name="'+e+'"]');n[e]=Object(a.e)(r)}));var r=t.querySelector('input[type="submit"]');r.disabled=!0,r.value=r.dataset.loading,s("edds_update_payment_method",e.target.dataset.source,n).fail((function(e){r.disabled=!1,r.value=r.dataset.submit}))}function f(e){e.preventDefault();var t=e.target.innerText;e.target.innerHTML='',s("edds_delete_payment_method",e.target.dataset.source).fail((function(n){e.target.innerText=t}))}function p(e){e.preventDefault();var t=e.target.innerText;e.target.innerHTML='',s("edds_set_payment_method_default",e.target.dataset.source).fail((function(n){e.target.innerText=t}))}function m(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"error",r=Object(a.g)(t&&t.message?t.message:edd_stripe_vars.generic_error,n);Object(a.f)(document.querySelectorAll(".edd-stripe-alert"),(function(e){e.remove()}));var o=document.getElementById(e+"_card_item");o.insertBefore(r,o.querySelector(".card-details"))}var h=n(8);function y(e){e.preventDefault();var t=document.getElementById("edd-stripe-add-new-card"),n=t.querySelector(".edd-stripe-add-new-card"),r="block"===n.style.display,o=t.querySelector("#edd-stripe-add-new-cancel");if(r&&o!==e.target){var i=document.createEvent("Event");i.initEvent("submit",!0,!0),t.dispatchEvent(i)}else n.style.display=r?"none":"block",o.style.display=r?"none":"inline-block"}function v(e){e.preventDefault();var t,n,r=e.target;if(Object(a.i)(r))try{(n=document.querySelector(".edd-stripe-add-new")).value=n.dataset.loading,n.disabled=!0,(t=r,window.eddStripe.createPaymentMethod("card",window.eddStripe.cardElement,{billing_details:Object(h.b)(t)}).then((function(e){if(e.error)throw e.error;return e.paymentMethod}))).then(b).catch((function(e){_(e),g()}))}catch(e){_(e),g()}else Object(a.k)(r)}function b(e){var t=document.getElementById("#edd-process-stripe-token");Object(a.a)("edds_add_payment_method",{payment_method_id:e.id,nonce:document.getElementById("edd-stripe-add-card-nonce").value,timestamp:t?t.dataset.timestamp:"",token:t?t.dataset.token:""}).fail(_).done((function(e){_(e,"success"),setTimeout((function(){location.reload()}),1500)}))}function g(){var e=document.querySelector(".edd-stripe-add-new");e.value=e.dataset.submit,e.disabled=!1}function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error",n=Object(a.g)(e&&e.message?e.message:edd_stripe_vars.generic_error,t);Object(a.f)(document.querySelectorAll(".edd-stripe-alert"),(function(e){e.remove()})),document.querySelector(".edd-stripe-add-card-actions").insertBefore(n,document.querySelector(".edd-stripe-add-new"))}function w(){document.getElementById("edd-stripe-manage-cards")&&(Object(a.f)(document.querySelectorAll(".edd-stripe-update-card"),(function(e){e.addEventListener("click",d)})),Object(a.f)(document.querySelectorAll(".edd-stripe-cancel-update"),(function(e){e.addEventListener("click",d)})),Object(a.f)(document.querySelectorAll(".card-update-form"),(function(e){e.addEventListener("submit",l)})),Object(a.f)(document.querySelectorAll(".edd-stripe-delete-card"),(function(e){e.addEventListener("click",f)})),Object(a.f)(document.querySelectorAll(".edd-stripe-default-card"),(function(e){e.addEventListener("click",p)})),Object(h.a)(window.eddStripe.elements()),document.querySelector(".edd-stripe-add-new").addEventListener("click",y),document.getElementById("edd-stripe-add-new-cancel").addEventListener("click",y),document.getElementById("edd-stripe-add-new-card").addEventListener("submit",v),document.getElementById("card_name").required=!0)}var j=n(18),O=n(3),x=n.n(O),S=n(1),k=n.n(S),E=n(12);function P(_x){return q.apply(this,arguments)}function q(){return(q=x()(k.a.mark((function e(t){var n,r,o,i,a;return k.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),n=document.getElementById("edds-update-payment-method"),T(),e.prev=3,e.next=6,Object(h.c)(n,window.eddStripe.cardElement);case 6:return r=e.sent,e.next=9,Object(E.d)(n.dataset.paymentIntent,"payment_method");case 9:return o=e.sent,e.next=12,Object(E.c)(o,{payment_method:r.id});case 12:return i=e.sent,e.next=15,M(i.id);case 15:if(!(a=e.sent).payment){e.next=20;break}window.location.reload(),e.next=21;break;case 20:throw a;case 21:e.next=27;break;case 23:e.prev=23,e.t0=e.catch(3),I(e.t0),L();case 27:case"end":return e.stop()}}),e,null,[[3,23]])})))).apply(this,arguments)}function M(e){return Object(a.a)("edds_complete_payment_authorization",{intent_id:e,"edds-complete-payment-authorization":document.getElementById("edds-complete-payment-authorization").value})}function T(){var e=document.getElementById("edds-update-payment-method-submit");e.value=e.dataset.loading,e.disabled=!0}function L(){var e=document.getElementById("edds-update-payment-method-submit");e.value=e.dataset.submit,e.disabled=!1}function I(e){var t=Object(a.g)(e&&e.message?e.message:edd_stripe_vars.generic_error,"error"),n=document.getElementById("edds-update-payment-method-errors");n.innerHTML="",n.appendChild(t)}function A(){document.getElementById("edds-update-payment-method")&&(Object(h.a)(window.eddStripe.elements()),document.getElementById("edds-update-payment-method").addEventListener("submit",P),Object(j.a)())}var C=n(62);function D(){Object(a.f)(document.querySelectorAll(".edds-buy-now"),(function(e){e.classList.contains("edd-free-download")||e.addEventListener("click",(function(e){var t,n,o=e.currentTarget.dataset,i=o.downloadId,c=o.nonce;if(i){e.preventDefault(),e.stopImmediatePropagation();var u=null,s=1,d=e.currentTarget.closest(".edd_download_purchase_form"),l=d.querySelector(".edd_price_option_".concat(i,":checked"));l&&(u=l.value);var f=d.querySelector('input[name="edd_download_quantity"]');f&&(s=f.value),t={downloadId:i,priceId:u,quantity:s,nonce:c,addToCartForm:d},n=document.querySelector("#edds-buy-now-modal-content"),C.a.open("edds-buy-now",{onShow:function(){var e,o,i,c,u,s;n.innerHTML='',(e=t.downloadId,o=t.priceId,i=t.quantity,c=t.nonce,u=t.addToCartForm,s={download_id:e,price_id:o,quantity:i,nonce:c,post_data:jQuery(u).serialize()},Object(a.a)("edds_add_to_cart",s)).then((function(e){var t=e.checkout;n.innerHTML=t,window.EDD_Checkout.init();var o=document.querySelector("#edds-buy-now-modal-content .edd_cart_amount");parseFloat(o.dataset.total)>0&&(Object(r.c)(),Object(j.a)())})).fail((function(e){var t=e.message;document.querySelector("#edds-buy-now-modal-content").innerHTML=t}))},onClose:function(){Object(a.a)("edds_empty_cart")}})}}))})),jQuery(document.body).on("edd_checkout_error",(function(){var e=document.querySelector("#edds-buy-now #edd-purchase-button");if(e){var t=edd_stripe_vars.i18n.completePurchase,n=document.querySelector(".edd_cart_amount").dataset,r=n.total,o=n.totalCurrency;"0"!==r&&setTimeout((function(){e.value="".concat(o," - ").concat(t)}),10)}}))}var B=n(60)},function(e,t,n){"use strict";(function(e,r){n.d(t,"d",(function(){return p})),n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return h})),n.d(t,"c",(function(){return v}));var o=n(3),i=n.n(o),a=n(2),c=n.n(a),u=n(1),s=n.n(u),d=n(0);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"payment_intent",r=e(window.eddStripe.cardElement._parent).closest("form"),o=e("#edd-process-stripe-token");return Object(d.a)("edds_get_intent",{intent_id:t,intent_type:n,timestamp:o.length?o.data("timestamp"):"",token:o.length?o.data("token"):"",form_data:r.serialize(),elements_mode:"card-elements"}).then((function(e){return e.intent}))}function m(t){var n=e(window.eddStripe.cardElement._parent).closest("form"),r=e("#edd-process-stripe-token");return Object(d.a)("edds_confirm_intent",{intent_id:t.id,intent_type:t.object,timestamp:r.length?r.data("timestamp"):"",token:r.length?r.data("token"):"",form_data:n.serialize(),elements_mode:"card-elements"}).then((function(e){return e.intent}))}function h(t,n,o){var i=e(window.eddStripe.cardElement._parent).closest("form");if("requires_capture"!==t.status)return r.resolve(t);var a=i.serialize(),c=e("#edd-process-stripe-token");return o&&(a+="&edd-process-checkout-nonce=".concat(o)),Object(d.a)("edds_capture_intent",f({intent_id:t.id,intent_type:t.object,form_data:a,timestamp:c.length?c.data("timestamp"):"",token:c.length?c.data("token"):"",elements_mode:"card-elements"},n)).then((function(e){return e.intent}))}function y(t,n){var r=e(window.eddStripe.cardElement._parent).closest("form"),o=e("#edd-process-stripe-token");return Object(d.a)("edds_update_intent",f({intent_id:t.id,intent_type:t.object,timestamp:o.length?o.data("timestamp"):"",token:o.length?o.data("token"):"",form_data:r.serialize(),elements_mode:"card-elements"},n)).then((function(e){return e.intent}))}function v(_x,e){return b.apply(this,arguments)}function b(){return(b=i()(s.a.mark((function e(t,n){var r,o,a;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("requires_confirmation"!==t.status){e.next=7;break}return e.next=3,m(t);case 3:return r=e.sent,e.next=6,v(r);case 6:return e.abrupt("return",e.sent);case 7:if("requires_payment_method"!==t.status&&"requires_source"!==t.status){e.next=14;break}return e.next=10,y(t,n);case 10:return o=e.sent,e.next=13,v(o,n);case 13:return e.abrupt("return",e.sent);case 14:if(!("requires_action"===t.status&&"use_stripe_sdk"===t.next_action.type||"requires_source_action"===t.status&&"use_stripe_sdk"===t.next_action.type)){e.next=18;break}return a="setup_intent"===t.object?"handleCardSetup":"handleCardAction","automatic"===t.confirmation_method&&(a="handleCardPayment"),e.abrupt("return",window.eddStripe[a](t.client_secret).then(function(){var e=i()(s.a.mark((function e(t){var n,r;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.error){e.next=2;break}throw t.error;case 2:return n=t.setupIntent,r=t.paymentIntent,e.next=5,v(n||r);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 18:return e.abrupt("return",t);case 19:case"end":return e.stop()}}),e)})))).apply(this,arguments)}}).call(this,n(6),n(22))},function(e,t,n){var r=n(9);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,n){var r=n(5),o=n(48),i=n(10),a=n(49),c=n(57),u=n(91),s=o("wks"),d=r.Symbol,l=u?d:d&&d.withoutSetter||a;e.exports=function(e){return i(s,e)||(c&&i(d,e)?s[e]=d[e]:s[e]=l("Symbol."+e)),s[e]}},,function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(13),o=n(26),i=n(23);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o}));var r=n(0);function o(){i()&&(a(!1),i().addEventListener("change",(function(e){return a(e.target.checked)})));var t=document.querySelectorAll(".edd-stripe-existing-card");if(0!==t.length){Object(r.f)(t,(function(t){return t.addEventListener("change",(function(t){return function(t){var n="new"===t.value,r=document.querySelector(".edd-stripe-new-card"),o=document.querySelector(".edd-stripe-update-billing-address-wrapper");r.style.display=n?"block":"none",o&&(o.style.display=n?"none":"block"),e(".edd-stripe-card-radio-item").removeClass("selected"),e(t).closest(".edd-stripe-card-radio-item").addClass("selected");var c={card_address:"address_line1",card_address_2:"address_line2",card_city:"address_city",card_state:"address_state",card_zip:"address_zip",billing_country:"address_country"};if(n){for(var u in c){if(!c.hasOwnProperty(u))return;var s=document.getElementById(u);s&&(s.value="",s.selected="")}window.EDD_Checkout.recalculate_taxes&&window.EDD_Checkout.recalculate_taxes(),a(!0)}else{var d=[],l=document.getElementById(t.id+"-billing-details");if(!l)return;a(!1),i()&&(i().checked=!1);var f=l.dataset;for(var p in c)if(c.hasOwnProperty(p)){var m=document.getElementById(p);if(m){var h=f[c[p]];if(m.value=h,""!==h&&d.push(h),m.required&&""===h&&(a(!0),i()&&(i().checked=!0),o&&(o.style.display="none")),"billing_country"===p){var y=document.createEvent("Event");y.initEvent("change",!0,!0),m.dispatchEvent(y)}}}e(document).ajaxSuccess((function(e,t,n){if(n&&n.data&&t&&n.data.includes("action=edd_get_shop_states")&&n.data.includes("field_name=card_state")&&t.responseText&&t.responseText.includes("card_state")){var r=document.getElementById("card_state");r&&(r.value=f.address_state,window.EDD_Checkout.recalculate_taxes&&window.EDD_Checkout.recalculate_taxes(r.value))}}));var v=document.querySelector(".edd-stripe-update-billing-address-current");if(v){v.innerText=d.join(", ");var b=f.brand,g=f.last4;document.querySelector(".edd-stripe-update-billing-address-brand").innerHTML=b,document.querySelector(".edd-stripe-update-billing-address-last4").innerHTML=g}}}(t.target)}))}));var n=document.querySelector(".edd-stripe-existing-card:checked");n||((n=document.querySelector(".edd-stripe-existing-card:first-of-type")).checked=!0);var o=document.createEvent("Event");o.initEvent("change",!0,!1),n.dispatchEvent(o)}}function i(){return document.getElementById("edd-stripe-update-billing-address")}function a(e){var t=document.querySelector(".edd-stripe-update-billing-address-wrapper");if(t){var n=Object(r.h)(t),o=document.querySelector(".edd-stripe-update-billing-address-current");n.forEach((function(t){t.style.display=e?"block":"none"})),o&&(o.style.display=e?"none":"block")}}}).call(this,n(6))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return s}));var r=n(4),o=n.n(r),i=n(2),a=n.n(i);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?u.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)}function v(e){return y(e)?function(e,t){var n=h(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&y(e)}(e)&&c.call(e,"callee")&&(!s.call(e,"callee")||"[object Arguments]"==u.call(e))}(e)?function(e,t){for(var n=-1,r=Array(e);++n1&&void 0!==arguments[1]?arguments[1]:"error",n=document.createElement("p");return n.classList.add("edd-alert"),n.classList.add("edd-stripe-alert"),n.style.clear="both","error"===t?n.classList.add("edd-alert-error"):n.classList.add("edd-alert-success"),n.innerHTML=e||edd_stripe_vars.generic_error,n}function o(t){var n=t.errorType,o=t.errorMessage,i=t.errorContainer,a=t.errorContainerReplace,c=void 0===a||a,u=e(i),s=r(o,n);!0===c?u.html(s):u.before(s)}function i(t){e(t).html("")}n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return i}))}).call(this,n(6))},function(e,t,n){e.exports=n(64).Promise},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(42),o=n(44);e.exports=function(e){return r(o(e))}},function(e,t,n){var r=n(16);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(13),o=n(45),i=n(27),a=n(25),c=Object.defineProperty;t.f=r?c:function(e,t,n){if(i(e),t=a(t,!0),i(n),o)try{return c(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(16);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,n){var r=n(5),o=n(17);e.exports=function(e,t){try{o(r,e,t)}catch(n){r[e]=t}return t}},function(e,t,n){var r=n(106);e.exports=function(e,t){if(null==e)return{};var n,o,i=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";(function(e){n.d(t,"d",(function(){return i}));var r=n(18),o=n(61);function i(){if("1"===edd_scripts.is_checkout){var t=document.querySelector('input[name="edd-gateway"]');t&&"stripe"===t.value&&(Object(o.c)(),Object(r.a)()),e(document.body).on("edd_gateway_loaded",(function(e,t){"stripe"===t&&(Object(o.c)(),Object(r.a)())}))}}n.d(t,"a",(function(){return o.a})),n.d(t,"b",(function(){return o.b})),n.d(t,"c",(function(){return o.c}))}).call(this,n(6))},,function(e,t){String.prototype.includes||(String.prototype.includes=function(e,t){"use strict";return"number"!=typeof t&&(t=0),!(t+e.length>this.length)&&-1!==this.indexOf(e,t)})},function(e,t){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;do{if(Element.prototype.matches.call(t,e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null})},function(e,t){Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),n=t.length,r=new Array(n);n--;)r[n]=[t[n],e[t[n]]];return r})},function(e,t){[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach((function(e){e.hasOwnProperty("remove")||Object.defineProperty(e,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){this.parentNode.removeChild(this)}})}))},function(e,t,n){var r=n(4).default,o=n(37);e.exports=function(e){var t=o(e,"string");return"symbol"===r(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(4).default;e.exports=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(5),o=n(40).f,i=n(17),a=n(70),c=n(28),u=n(75),s=n(82);e.exports=function(e,t){var n,d,l,f,p,m=e.target,h=e.global,y=e.stat;if(n=h?r:y?r[m]||c(m,{}):(r[m]||{}).prototype)for(d in t){if(f=t[d],l=e.noTargetGet?(p=o(n,d))&&p.value:n[d],!s(h?d:m+(y?".":"#")+d,e.forced)&&void 0!==l){if(typeof f==typeof l)continue;u(f,l)}(e.sham||l&&l.sham)&&i(f,"sham",!0),a(n,d,f,e)}}},function(e,t,n){var r=n(13),o=n(41),i=n(23),a=n(24),c=n(25),u=n(10),s=n(45),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=a(e),t=c(t,!0),s)try{return d(e,t)}catch(e){}if(u(e,t))return i(!o.f.call(e,t),e[t])}},function(e,t,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);t.f=i?function(e){var t=o(this,e);return!!t&&t.enumerable}:r},function(e,t,n){var r=n(9),o=n(43),i="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?i.call(e,""):Object(e)}:Object},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(13),o=n(9),i=n(69);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(47),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return o.call(e)}),e.exports=r.inspectSource},function(e,t,n){var r=n(5),o=n(28),i=r["__core-js_shared__"]||o("__core-js_shared__",{});e.exports=i},function(e,t,n){var r=n(74),o=n(47);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},function(e,t){e.exports={}},function(e,t,n){var r=n(10),o=n(24),i=n(80).indexOf,a=n(50);e.exports=function(e,t){var n,c=o(e),u=0,s=[];for(n in c)!r(a,n)&&r(c,n)&&s.push(n);for(;t.length>u;)r(c,n=t[u++])&&(~i(s,n)||s.push(n));return s}},function(e,t,n){var r=n(53),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(44);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(9);e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},function(e,t){e.exports={}},,function(e,t,n){"use strict";n.d(t,"c",(function(){return E})),n.d(t,"b",(function(){return P.a})),n.d(t,"a",(function(){return q}));var r=n(100),o=n.n(r),i=n(2),a=n.n(i),c=n(29),u=n.n(c),s=n(3),d=n.n(s),l=n(1),f=n.n(l),p=n(0),m=(n(12),n(11)),h=["display-items"],y=["display-items"],v=["display-items"];function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t0&&(t.preventDefault(),e("#edd_purchase_form #edd_purchase_submit [type=submit]").trigger("click"))}function v(){document.querySelector("#edd_purchase_form #edd_purchase_submit [type=submit]").value=edd_global_vars.complete_purchase,e(".edd-loading-ajax").remove(),e(".edd_errors").remove(),e(".edd-error").hide(),e("#edd-purchase-button").attr("disabled",!1)}function b(t){var n=t.code,r=t.message,o=window.edd_stripe_vars.elementsOptions.i18n.errorMessages;r||(r=edd_stripe_vars.generic_error);var i=n&&o[n]?o[n]:r,a=Object(s.g)(i);e(".edd-stripe-alert").remove(),e(edd_global_vars.checkout_error_anchor).before(a),e(document.body).trigger("edd_checkout_error",[t]),window.console&&t.responseText&&window.console.error(t.responseText)}}).call(this,n(6))},function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=n(2),o=n.n(r);function i(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&this.registerTriggers.apply(this,a(o)),this.onClick=this.onClick.bind(this),this.onKeydown=this.onKeydown.bind(this)}var t,n;return t=e,(n=[{key:"registerTriggers",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r0&&void 0!==arguments[0]?arguments[0]:null;if(this.activeElement=document.activeElement,this.modal.setAttribute("aria-hidden","false"),this.modal.classList.add(this.config.openClass),this.scrollBehaviour("disable"),this.addEventListeners(),this.config.awaitOpenAnimation){var n=function t(){e.modal.removeEventListener("animationend",t,!1),e.setFocusToFirstNode()};this.modal.addEventListener("animationend",n,!1)}else this.setFocusToFirstNode();this.config.onShow(this.modal,this.activeElement,t)}},{key:"closeModal",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.modal;if(this.modal.setAttribute("aria-hidden","true"),this.removeEventListeners(),this.scrollBehaviour("enable"),this.activeElement&&this.activeElement.focus&&this.activeElement.focus(),this.config.onClose(this.modal,this.activeElement,e),this.config.awaitCloseAnimation){var n=this.config.openClass;this.modal.addEventListener("animationend",(function e(){t.classList.remove(n),t.removeEventListener("animationend",e,!1)}),!1)}else t.classList.remove(this.config.openClass)}},{key:"closeModalById",value:function(e){this.modal=document.getElementById(e),this.modal&&this.closeModal()}},{key:"scrollBehaviour",value:function(e){if(this.config.disableScroll){var t=document.querySelector("body");switch(e){case"enable":Object.assign(t.style,{overflow:""});break;case"disable":Object.assign(t.style,{overflow:"hidden"})}}}},{key:"addEventListeners",value:function(){this.modal.addEventListener("touchstart",this.onClick),this.modal.addEventListener("click",this.onClick),document.addEventListener("keydown",this.onKeydown)}},{key:"removeEventListeners",value:function(){this.modal.removeEventListener("touchstart",this.onClick),this.modal.removeEventListener("click",this.onClick),document.removeEventListener("keydown",this.onKeydown)}},{key:"onClick",value:function(e){e.target.hasAttribute(this.config.closeTrigger)&&this.closeModal(e)}},{key:"onKeydown",value:function(e){27===e.keyCode&&this.closeModal(e),9===e.keyCode&&this.retainFocus(e)}},{key:"getFocusableNodes",value:function(){var e=this.modal.querySelectorAll(u);return Array.apply(void 0,a(e))}},{key:"setFocusToFirstNode",value:function(){var e=this;if(!this.config.disableFocus){var t=this.getFocusableNodes();if(0!==t.length){var n=t.filter((function(t){return!t.hasAttribute(e.config.closeTrigger)}));n.length>0&&n[0].focus(),0===n.length&&t[0].focus()}}}},{key:"retainFocus",value:function(e){var t=this.getFocusableNodes();if(0!==t.length)if(t=t.filter((function(e){return null!==e.offsetParent})),this.modal.contains(document.activeElement)){var n=t.indexOf(document.activeElement);e.shiftKey&&0===n&&(t[t.length-1].focus(),e.preventDefault()),!e.shiftKey&&t.length>0&&n===t.length-1&&(t[0].focus(),e.preventDefault())}else t[0].focus()}}])&&i(t.prototype,n),e}(),d=null,l=function(e){if(!document.getElementById(e))return console.warn("MicroModal: ❗Seems like you have missed %c'".concat(e,"'"),"background-color: #f8f9fa;color: #50596c;font-weight: bold;","ID somewhere in your code. Refer example below to resolve it."),console.warn("%cExample:","background-color: #f8f9fa;color: #50596c;font-weight: bold;",'')),!1},f=function(e,t){if(function(e){e.length<=0&&(console.warn("MicroModal: ❗Please specify at least one %c'micromodal-trigger'","background-color: #f8f9fa;color: #50596c;font-weight: bold;","data attribute."),console.warn("%cExample:","background-color: #f8f9fa;color: #50596c;font-weight: bold;",''))}(e),!t)return!0;for(var n in t)l(n);return!0},{init:function(e){var t=Object.assign({},{openTrigger:"data-micromodal-trigger"},e),n=a(document.querySelectorAll("[".concat(t.openTrigger,"]"))),r=function(e,t){var n=[];return e.forEach((function(e){var r=e.attributes[t].value;void 0===n[r]&&(n[r]=[]),n[r].push(e)})),n}(n,t.openTrigger);if(!0!==t.debugMode||!1!==f(n,r))for(var o in r){var i=r[o];t.targetModal=o,t.triggers=a(i),d=new s(t)}},show:function(e,t){var n=t||{};n.targetModal=e,!0===n.debugMode&&!1===l(e)||(d&&d.removeEventListeners(),(d=new s(n)).showModal())},close:function(e){e?d.closeModalById(e):d.closeModal()}});window.MicroModal=p;var m=p;function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1)for(var n=1;n=0;--r){var o=this.tryEntries[r],i=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),u=a.call(o,"finallyLoc");if(c&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:M(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},n}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports}).call(this,n(22))},function(e,t,n){var r=n(39),o=n(83);r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},function(e,t,n){var r=n(5),o=n(16),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},function(e,t,n){var r=n(5),o=n(17),i=n(10),a=n(28),c=n(46),u=n(71),s=u.get,d=u.enforce,l=String(String).split("String");(e.exports=function(e,t,n,c){var u=!!c&&!!c.unsafe,s=!!c&&!!c.enumerable,f=!!c&&!!c.noTargetGet;"function"==typeof n&&("string"!=typeof t||i(n,"name")||o(n,"name",t),d(n).source=l.join("string"==typeof t?t:"")),e!==r?(u?!f&&e[t]&&(s=!0):delete e[t],s?e[t]=n:o(e,t,n)):s?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&s(this).source||c(this)}))},function(e,t,n){var r,o,i,a=n(72),c=n(5),u=n(16),s=n(17),d=n(10),l=n(73),f=n(50),p=c.WeakMap;if(a){var m=new p,h=m.get,y=m.has,v=m.set;r=function(e,t){return v.call(m,e,t),t},o=function(e){return h.call(m,e)||{}},i=function(e){return y.call(m,e)}}else{var b=l("state");f[b]=!0,r=function(e,t){return s(e,b,t),t},o=function(e){return d(e,b)?e[b]:{}},i=function(e){return d(e,b)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){var r=n(5),o=n(46),i=r.WeakMap;e.exports="function"==typeof i&&/native code/.test(o(i))},function(e,t,n){var r=n(48),o=n(49),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},function(e,t){e.exports=!1},function(e,t,n){var r=n(10),o=n(76),i=n(40),a=n(26);e.exports=function(e,t){for(var n=o(t),c=a.f,u=i.f,s=0;sd;)if((c=u[d++])!=c)return!0}else for(;s>d;d++)if((e||d in u)&&u[d]===n)return e||d||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t,n){var r=n(53),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},function(e,t,n){var r=n(9),o=/#|\.prototype\./,i=function(e,t){var n=c[a(e)];return n==s||n!=u&&("function"==typeof t?r(t):!!t)},a=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},c=i.data={},u=i.NATIVE="N",s=i.POLYFILL="P";e.exports=i},function(e,t,n){"use strict";var r=n(13),o=n(9),i=n(84),a=n(55),c=n(41),u=n(56),s=n(42),d=Object.assign,l=Object.defineProperty;e.exports=!d||o((function(){if(r&&1!==d({b:1},d(l({},"a",{enumerable:!0,get:function(){l(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=d({},e)[n]||"abcdefghijklmnopqrst"!=i(d({},t)).join("")}))?function(e,t){for(var n=u(e),o=arguments.length,d=1,l=a.f,f=c.f;o>d;)for(var p,m=s(arguments[d++]),h=l?i(m).concat(l(m)):i(m),y=h.length,v=0;y>v;)p=h[v++],r&&!f.call(m,p)||(n[p]=m[p]);return n}:d},function(e,t,n){var r=n(51),o=n(54);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(39),o=n(86);r({target:"Array",stat:!0,forced:!n(96)((function(e){Array.from(e)}))},{from:o})},function(e,t,n){"use strict";var r=n(87),o=n(56),i=n(89),a=n(90),c=n(52),u=n(92),s=n(93);e.exports=function(e){var t,n,d,l,f,p,m=o(e),h="function"==typeof this?this:Array,y=arguments.length,v=y>1?arguments[1]:void 0,b=void 0!==v,g=s(m),_=0;if(b&&(v=r(v,y>2?arguments[2]:void 0,2)),null==g||h==Array&&a(g))for(n=new h(t=c(m.length));t>_;_++)p=b?v(m[_],_):m[_],u(n,_,p);else for(f=(l=g.call(m)).next,n=new h;!(d=f.call(l)).done;_++)p=b?i(l,v,[d.value,_],!0):d.value,u(n,_,p);return n.length=_,n}},function(e,t,n){var r=n(88);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){var r=n(27);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&r(i.call(e)),t}}},function(e,t,n){var r=n(14),o=n(58),i=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},function(e,t,n){var r=n(57);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){"use strict";var r=n(25),o=n(26),i=n(23);e.exports=function(e,t,n){var a=r(t);a in e?o.f(e,a,i(0,n)):e[a]=n}},function(e,t,n){var r=n(94),o=n(58),i=n(14)("iterator");e.exports=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[r(e)]}},function(e,t,n){var r=n(95),o=n(43),i=n(14)("toStringTag"),a="Arguments"==o(function(){return arguments}());e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?n:a?o(t):"Object"==(r=o(t))&&"function"==typeof t.callee?"Arguments":r}},function(e,t,n){var r={};r[n(14)("toStringTag")]="z",e.exports="[object z]"===String(r)},function(e,t,n){var r=n(14)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n}},function(e,t,n){var r=n(63);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return k}));var r,o=n(2),i=n.n(o),a=n(29),c=n.n(a),u=n(3),s=n.n(u),d=n(1),l=n.n(d),f=n(60),p=n(0),m=(n(12),n(11)),h=["display-items"],y=["display-items"];function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t=0||(o[n]=e[n]);return o},e.exports.__esModule=!0,e.exports.default=e.exports}]); \ No newline at end of file diff --git a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/assets/js/build/notices.min.js b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/assets/js/build/notices.min.js index dff6559f..e0ee5a59 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/assets/js/build/notices.min.js +++ b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/assets/js/build/notices.min.js @@ -1 +1 @@ -!function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=109)}({109:function(e,n,t){(function(e){jQuery((function(){jQuery(".edds-admin-notice").each((function(){var n=e(this),t=n.data("id"),r=n.data("nonce");n.on("click",".notice-dismiss",(function(e){return e.preventDefault(),e.stopPropagation(),wp.ajax.post("edds_admin_notices_dismiss_ajax",{id:t,nonce:r})}))}))}))}).call(this,t(6))},6:function(e,n){e.exports=jQuery}}); \ No newline at end of file +!function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=113)}({113:function(e,n,t){(function(e){jQuery((function(){jQuery(".edds-admin-notice").each((function(){var n=e(this),t=n.data("id"),r=n.data("nonce");n.on("click",".notice-dismiss",(function(e){return e.preventDefault(),e.stopPropagation(),wp.ajax.post("edds_admin_notices_dismiss_ajax",{id:t,nonce:r})}))}))}))}).call(this,t(6))},6:function(e,n){e.exports=jQuery}}); \ No newline at end of file diff --git a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/assets/js/build/paymentelements.min.js b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/assets/js/build/paymentelements.min.js index be14869c..4f4cbca3 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/assets/js/build/paymentelements.min.js +++ b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/assets/js/build/paymentelements.min.js @@ -1 +1 @@ -!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=110)}([function(e,t,r){"use strict";r.d(t,"a",(function(){return n.a})),r.d(t,"f",(function(){return i.a})),r.d(t,"d",(function(){return a})),r.d(t,"h",(function(){return u})),r.d(t,"g",(function(){return c.b})),r.d(t,"j",(function(){return c.c})),r.d(t,"b",(function(){return c.a})),r.d(t,"i",(function(){return s})),r.d(t,"k",(function(){return d})),r.d(t,"e",(function(){return l})),r.d(t,"c",(function(){return f})),r(32),r(33),r(34),r(35);var n=r(19),o=r(20),i=r.n(o);function a(){i()(arguments,(function(e){document.addEventListener("DOMContentLoaded",e)}))}function u(e){for(var t=[],r=e.nextElementSibling;r;)1===r.nodeType&&t.push(r),r=r.nextElementSibling;return t}var c=r(21);function s(e){var t=!0;return i()(e.querySelectorAll("input"),(function(e){e.checkValidity&&!e.checkValidity()&&(t=!1)})),t}function d(e){var t=document.createElement("input");t.type="submit",t.style.display="none",e.appendChild(t),t.click(),t.remove()}function l(e){return e?""===e.value?null:e.value:null}function f(e,t){"true"===edd_stripe_vars.debuggingEnabled&&console.log("EDD Stripe - Debugging","\n","*".repeat(e.length+5),"\n",e,"\n","*".repeat(e.length+5),"\n",JSON.stringify(t,null,4))}r(7)},function(e,t,r){var n=r(66)();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},function(e,t,r){var n=r(36);e.exports=function(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){(function(t){function r(e,r,n,o,i,a,u){try{var c=e[a](u),s=c.value}catch(e){return void n(e)}c.done?r(s):t.resolve(s).then(o,i)}e.exports=function(e){return function(){var n=this,o=arguments;return new t((function(t,i){var a=e.apply(n,o);function u(e){r(a,t,i,u,c,"next",e)}function c(e){r(a,t,i,u,c,"throw",e)}u(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports}).call(this,r(22))},function(e,t){function r(t){return e.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,r(t)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){(function(t){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t&&t)||Function("return this")()}).call(this,r(38))},function(e,t){e.exports=jQuery},function(e,t,r){"use strict";function n(e){return null===e?window.eddStripe:!e in window.eddStripe?"":window.eddStripe[e]}function o(e,t,r){if(window.eddStripe[e]=t,r)return window.eddStripe[e]}r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return o}))},,function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){var r={}.hasOwnProperty;e.exports=function(e,t){return r.call(e,t)}},function(e,t,r){"use strict";(function(e){r.d(t,"c",(function(){return s})),r.d(t,"e",(function(){return p})),r.d(t,"a",(function(){return h})),r.d(t,"b",(function(){return y})),r.d(t,"d",(function(){return b}));var n=r(3),o=r.n(n),i=r(1),a=r.n(i),u=r(31),c=r(0);function s(){Object(u.a)(),!1!==window.eddStripe.elementMounted&&(window.eddStripe.paymentMethodType="",window.eddStripe.intentFingerprint="",window.eddStripe.intentType="",window.eddStripe.intentId="",h(),e(document).off("click","#edd_purchase_form #edd_purchase_submit [type=submit]"),document.getElementById("edd-purchase-button").addEventListener("click",function(){var t=o()(a.a.mark((function t(r){var n,o,i,c,s,l,h,m,w,_,S,j,O,x,P,k;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("stripe"===e('input[name="edd-gateway"]').val()&&e(".edd_cart_total .edd_cart_amount").data("total")>0){t.next=2;break}return t.abrupt("return");case 2:if(b()){t.next=4;break}return t.abrupt("return",!1);case 4:return r.preventDefault(),p(),n=Object(u.b)(document.getElementById("edd_purchase_form")),t.next=9,g(n);case 9:return o=t.sent,i=o.paymentMethod,t.prev=11,t.next=14,d(i);case 14:return c=t.sent,s=c.token,l=c.client_secret,h=c.intent_type,m=c.intent_fingerprint,w=c.intent_id,window.eddStripe.intentType=h,window.eddStripe.intentFingerprint=m,window.eddStripe.intentId=w,e("#edd-process-checkout-nonce").val(s),_="PaymentIntent"===h?"confirmPayment":"confirmSetup",(S={clientSecret:l,confirmParams:{return_url:edd_stripe_vars.successPageUri},redirect:"if_required"}).confirmParams.payment_method=i.id,t.next=29,window.eddStripe[_](S);case 29:if(j=t.sent,!(O=j.error)){t.next=35;break}return v(O),y(),t.abrupt("return",!1);case 35:return t.next=37,f();case 37:x=t.sent,P=x.intent,k=x.nonce,e("#edd-process-checkout-nonce").val(k),"succeeded"===P.status?window.location.replace(edd_stripe_vars.successPageUri):window.location.replace(edd_stripe_vars.failurePageUri),t.next=49;break;case 44:return t.prev=44,t.t0=t.catch(11),v(t.t0),y(),t.abrupt("return",!1);case 49:case"end":return t.stop()}}),t,null,[[11,44]])})));return function(_x){return t.apply(this,arguments)}}()))}function d(e){return l.apply(this,arguments)}function l(){return(l=o()(a.a.mark((function t(r){var n;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e("#edd-process-stripe-token"),t.abrupt("return",Object(c.a)("edds_process_purchase_form",{form_data:e("#edd_purchase_form").serialize(),timestamp:n.length?n.data("timestamp"):"",token:n.length?n.data("token"):"",intent_type:window.eddStripe.intentType,intent_id:window.eddStripe.intentId,intent_fingerprint:window.eddStripe.intentFingerprint,payment_method:r}));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function f(){var t=e("#edd_purchase_form"),r=e("#edd-process-stripe-token"),n=t.serialize();if(0===t.length){var o=e("#edd-process-checkout-nonce").val();n="edd-process-checkout-nonce=".concat(o)}return Object(c.a)("edds_create_and_complete_order",{form_data:n,timestamp:r.length?r.data("timestamp"):"",token:r.length?r.data("token"):"",intent_id:window.eddStripe.intentId,intent_type:window.eddStripe.intentType})}function p(){window.eddStripe.paymentElement.update({readOnly:!0});var t=e("#edd-purchase-button");e(".edd-loading-ajax").length||t.parent().append(''),t.attr("data-edd-button-state","updating"),t.prop("disabled","disabled"),t.prop("readonly","readonly"),e(".edd_errors").remove(),e(".edd-error").hide(),e("#edd-stripe-payment-errors").remove(),e(".edd-stripe-alert").remove()}function h(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];window.eddStripe.paymentElement.update({readOnly:!1});var r=e("#edd-purchase-button");r.attr("data-edd-button-state","disabled"),r.prop("disabled","disabled"),r.prop("readonly","readonly"),e(".edd-loading-ajax").remove(),t&&(e(".edd_errors").remove(),e(".edd-error").hide(),e("#edd-stripe-payment-errors").remove(),e(".edd-stripe-alert").remove())}function y(){if(!window.eddStripe.isAtFailureLimit){window.eddStripe.paymentElement.update({readOnly:!1});var t=e("#edd-purchase-button");t.attr("data-edd-button-state","ready"),t.prop("disabled",""),t.prop("readonly",""),e(".edd-loading-ajax").remove(),e(".edd_errors").remove(),e(".edd-error").hide()}}function v(e){return m.apply(this,arguments)}function m(){return(m=o()(a.a.mark((function t(r){var n,o,i,u,s,d,l,f;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(console.log(r),n=r.code,o=r.message,r.type,i=window.edd_stripe_vars.elementsCustomizations.i18n.errorMessages,o||(o=edd_stripe_vars.generic_error),u=n&&i[n]?i[n]:o,s=Object(c.g)(u),!n||"incomplete"===n){t.next=14;break}return t.next=8,Object(c.a)("edds_payment_elements_rate_limit_tick");case 8:if(d=t.sent,l=d.is_at_limit,f=d.message,!l){t.next=14;break}return w(f),t.abrupt("return");case 14:e(".edd-stripe-alert").remove(),e(edd_global_vars.checkout_error_anchor).before(s),e(document.body).trigger("edd_checkout_error",[r]),"incomplete"===n&&e(".edd-stripe-alert").removeClass("edd-alert-error").addClass("edd-alert-warn"),window.console&&r.responseText&&window.console.error(r.responseText);case 19:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function b(){var e=document.getElementById("edd_purchase_form");return"function"!=typeof e.checkValidity||!1!==e.checkValidity()||(e.reportValidity(),h(),!1)}function g(e){return window.eddStripe.createPaymentMethod({elements:window.eddStripe.configuredElement,params:{billing_details:e}}).then((function(e){var t=e.error,r=e.paymentMethod;return t&&v(t),{paymentMethod:r}})).catch((function(e){return v(e),y(),!1}))}function w(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";window.eddStripe.isAtFailureLimit=!0,window.eddStripe.paymentElement.unmount(),e("#edd_cc_fields").slideUp().remove();var r=e("#edd-purchase-button");r.remove();var n=Object(c.g)(t,"error");e(".edd-stripe-alert").remove(),e(edd_global_vars.checkout_error_anchor).before(n)}}).call(this,r(6))},,,function(e,t,r){var n=r(9);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,r){var n=r(5),o=r(48),i=r(10),a=r(49),u=r(57),c=r(90),s=o("wks"),d=n.Symbol,l=c?d:d&&d.withoutSetter||a;e.exports=function(e){return i(s,e)||(u&&i(d,e)?s[e]=d[e]:s[e]=l("Symbol."+e)),s[e]}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,r){var n=r(14),o=r(26),i=r(23);e.exports=n?function(e,t,r){return o.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},,function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return s}));var n=r(4),o=r.n(n),i=r(2),a=r.n(i);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?c.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)}function m(e){return v(e)?function(e,t){var r=y(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&v(e)}(e)&&u.call(e,"callee")&&(!s.call(e,"callee")||"[object Arguments]"==c.call(e))}(e)?function(e,t){for(var r=-1,n=Array(e);++r1&&void 0!==arguments[1]?arguments[1]:"error",r=document.createElement("p");return r.classList.add("edd-alert"),r.classList.add("edd-stripe-alert"),r.style.clear="both","error"===t?r.classList.add("edd-alert-error"):r.classList.add("edd-alert-success"),r.innerHTML=e||edd_stripe_vars.generic_error,r}function o(t){var r=t.errorType,o=t.errorMessage,i=t.errorContainer,a=t.errorContainerReplace,u=void 0===a||a,c=e(i),s=n(o,r);!0===u?c.html(s):c.before(s)}function i(t){e(t).html("")}r.d(t,"b",(function(){return n})),r.d(t,"c",(function(){return o})),r.d(t,"a",(function(){return i}))}).call(this,r(6))},function(e,t,r){e.exports=r(63).Promise},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,r){var n=r(42),o=r(44);e.exports=function(e){return n(o(e))}},function(e,t,r){var n=r(16);e.exports=function(e,t){if(!n(e))return e;var r,o;if(t&&"function"==typeof(r=e.toString)&&!n(o=r.call(e)))return o;if("function"==typeof(r=e.valueOf)&&!n(o=r.call(e)))return o;if(!t&&"function"==typeof(r=e.toString)&&!n(o=r.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t,r){var n=r(14),o=r(45),i=r(27),a=r(25),u=Object.defineProperty;t.f=n?u:function(e,t,r){if(i(e),t=a(t,!0),i(r),o)try{return u(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},function(e,t,r){var n=r(16);e.exports=function(e){if(!n(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,r){var n=r(5),o=r(17);e.exports=function(e,t){try{o(n,e,t)}catch(r){n[e]=t}return t}},,,function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return y})),r.d(t,"b",(function(){return S}));var n=r(3),o=r.n(n),i=r(2),a=r.n(i),u=r(1),c=r.n(u),s=r(0),d=r(7),l=r(11);function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t');var t,r=document.querySelector("#edds-sample-input"),n=document.querySelector("#edds-sample-input",":focus"),o=document.querySelector("#edds-sample-input",":hover"),i=window.getComputedStyle(r),a=window.getComputedStyle(n),u=window.getComputedStyle(o),c=h.theme,s=p(p({},{colorText:i.getPropertyValue("color"),colorBackground:i.getPropertyValue("background-color"),borderRadius:i.getPropertyValue("border-radius"),colorIconTab:i.getPropertyValue("color")}),h.variables),l={borderTop:i.getPropertyValue("border-top"),borderRight:i.getPropertyValue("border-right"),borderBottom:i.getPropertyValue("border-bottom"),borderLeft:i.getPropertyValue("border-left"),backgroundColor:i.getPropertyValue("background-color"),borderRadius:i.getPropertyValue("border-radius"),borderColor:i.getPropertyValue("border-color")},f={borderTop:u.getPropertyValue("border-top"),borderRight:u.getPropertyValue("border-right"),borderBottom:u.getPropertyValue("border-bottom"),borderLeft:u.getPropertyValue("border-left"),backgroundColor:u.getPropertyValue("background-color"),borderRadius:u.getPropertyValue("border-radius"),borderColor:u.getPropertyValue("border-color")},y={borderTop:a.getPropertyValue("border-top"),borderRight:a.getPropertyValue("border-right"),borderBottom:a.getPropertyValue("border-bottom"),borderLeft:a.getPropertyValue("border-left"),backgroundColor:a.getPropertyValue("background-color"),borderRadius:a.getPropertyValue("border-radius"),borderColor:a.getPropertyValue("border-color")},v=document.querySelector("#edds-sample-label"),m=window.getComputedStyle(v),b={".Input":l,".Input:focus":y,".Input:hover":f,".Label":{fontSize:m.getPropertyValue("font-size"),fontWeight:m.getPropertyValue("font-weight"),fontFamily:m.getPropertyValue("font-family"),color:m.getPropertyValue("color")},".CheckboxInput":{borderTop:i.getPropertyValue("border-top"),borderRight:i.getPropertyValue("border-top"),borderBottom:i.getPropertyValue("border-top"),borderLeft:i.getPropertyValue("border-top"),borderRadius:i.getPropertyValue("border-radius"),backgroundColor:i.getPropertyValue("background-color")},".CheckboxInput:hover":{borderTop:u.getPropertyValue("border-top"),borderRight:u.getPropertyValue("border-top"),borderBottom:u.getPropertyValue("border-top"),borderLeft:u.getPropertyValue("border-top")},".CodeInput":l,".CodeInput:focus":y},g=document.querySelector(".edd-gateway-option:not(.edd-gateway-option-selected)");if(null!==g&&!1===Object(d.a)("singleGateway")){var w=document.querySelector(".edd-gateway-option-selected"),_=window.getComputedStyle(g),S=window.getComputedStyle(w);t={".Tab":{border:_.getPropertyValue("border"),backgroundColor:_.getPropertyValue("background-color"),borderRadius:_.getPropertyValue("border-radius")},".Tab--selected":{border:S.getPropertyValue("border"),backgroundColor:S.getPropertyValue("background-color"),borderRadius:S.getPropertyValue("border-radius")},".Tab:hover":{border:S.getPropertyValue("border"),backgroundColor:S.getPropertyValue("background-color"),borderRadius:S.getPropertyValue("border-radius")}}}else t={".Tab":l,".Tab--selected":{borderTop:a.getPropertyValue("border-top"),borderRight:a.getPropertyValue("border-right"),borderBottom:a.getPropertyValue("border-bottom"),borderLeft:a.getPropertyValue("border-left"),backgroundColor:"#fff",borderRadius:a.getPropertyValue("border-radius"),borderColor:a.getPropertyValue("border-color")},".Tab:hover":y};e("#edds-sample-label").remove();var j=p(p({},b),t);return Object.keys(h.rules).forEach((function(e){var t={};j[e]&&(t=j[e]),j[e]=p(p({},t),h.rules[e])})),{theme:c,labels:h.labels,variables:s,rules:j}}(),n=[];h.fonts.length&&h.fonts.forEach((function(e){return n.push(e)}));var o={mode:"payment",amount:t,currency:edd_stripe_vars.currency.toLowerCase(),loader:"always",appearance:r,fonts:n};h.paymentMethodTypes.length&&(o.payment_method_types=h.paymentMethodTypes),Object(s.c)("Stripe.elements() creation options",o);var i=window.eddStripe.elements(o);window.eddStripe.configuredElement=i;var a={defaultValues:{billingDetails:S(document.getElementById("edd_purchase_form"))},fields:h.fields,layout:h.layout,wallets:h.wallets,business:{name:edd_stripe_vars.store_name}},u={};"true"===h.cartHasSubscription&&(u={terms:{card:"always"}});var c=p(p({},a),u);Object(s.c)("element.create() options",c);var l=i.create("payment",c);window.eddStripe.paymentElement=l,l.mount(Object(d.a)("elementsTarget")),l.on("ready",(function(){setTimeout(v,500)})),window.eddStripe.elementMounted=!0,window.eddStripe.isAtFailureLimit=!1}}function v(){var e=jQuery(window),t=jQuery(document);e.keydown((function(e){if(13==e.keyCode)return e.preventDefault(),!1})),e.on("edd_quantity_updated",(function(){return m("quantity updated")})),e.on("edd_discount_applied",(function(){return m("discount applied")})),e.on("edd_discount_removed",(function(){return m("discount removed")})),e.on("edd_taxes_recalculated",(function(){return m("taxes recalcluated")})),t.on("change",":input[required]",(function(){w()})),t.on("change","#edd_cc_address .edd-input, #edd_cc_address .edd-select",(function(){setTimeout((function(){w()}),300)})),window.eddStripe.paymentElement.on("change",(function(e){Object(l.e)(),!0===e.complete?(window.eddStripe.elementComplete=!0,window.eddStripe.paymentMethodType=e.value.type,Object(l.b)()):(window.eddStripe.elementComplete=!1,Object(l.a)())}))}function m(_x){return b.apply(this,arguments)}function b(){return(b=o()(c.a.mark((function e(t){var r;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(r=g())||Object(l.b)(),window.eddStripe.configuredElement.update({amount:r}),!0===window.eddStripe.elementComplete&&Object(l.b)();case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(){var e,t;return e=jQuery(".edd_cart_total .edd_cart_amount"),t=parseFloat(e.data("total")),"false"===edd_stripe_vars.is_zero_decimal&&(t=Math.round(100*t)),t}function w(){return _.apply(this,arguments)}function _(){return(_=o()(c.a.mark((function e(){var t,r;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=jQuery("#edd_purchase_form")[0],(r=S(t)).address.country&&window.eddStripe.configuredElement.update({locale:r.address.country}),window.eddStripe.paymentElement.update({defaultValues:{billingDetails:r}}),!0===window.eddStripe.elementComplete&&Object(l.d)()&&Object(l.b)();case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function S(e){var t=Object(s.e)(e.querySelector("#edd-email"));return null===t&&(t=Object(s.e)(e.querySelector("#edd_email"))),{email:t,name:Object(s.e)(e.querySelector("#card_name")),phone:Object(s.e)(e.querySelector(".edd-phone")),address:{line1:Object(s.e)(e.querySelector("#card_address")),line2:Object(s.e)(e.querySelector("#card_address_2")),city:Object(s.e)(e.querySelector("#card_city")),state:Object(s.e)(e.querySelector("#card_state")),postal_code:Object(s.e)(e.querySelector("#card_zip")),country:Object(s.e)(e.querySelector("#billing_country"))}}}}).call(this,r(6))},function(e,t){String.prototype.includes||(String.prototype.includes=function(e,t){"use strict";return"number"!=typeof t&&(t=0),!(t+e.length>this.length)&&-1!==this.indexOf(e,t)})},function(e,t){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;do{if(Element.prototype.matches.call(t,e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null})},function(e,t){Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),r=t.length,n=new Array(r);r--;)n[r]=[t[r],e[t[r]]];return n})},function(e,t){[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach((function(e){e.hasOwnProperty("remove")||Object.defineProperty(e,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){this.parentNode.removeChild(this)}})}))},function(e,t,r){var n=r(4).default,o=r(37);e.exports=function(e){var t=o(e,"string");return"symbol"===n(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){var n=r(4).default;e.exports=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){var n=r(5),o=r(40).f,i=r(17),a=r(69),u=r(28),c=r(74),s=r(81);e.exports=function(e,t){var r,d,l,f,p,h=e.target,y=e.global,v=e.stat;if(r=y?n:v?n[h]||u(h,{}):(n[h]||{}).prototype)for(d in t){if(f=t[d],l=e.noTargetGet?(p=o(r,d))&&p.value:r[d],!s(y?d:h+(v?".":"#")+d,e.forced)&&void 0!==l){if(typeof f==typeof l)continue;c(f,l)}(e.sham||l&&l.sham)&&i(f,"sham",!0),a(r,d,f,e)}}},function(e,t,r){var n=r(14),o=r(41),i=r(23),a=r(24),u=r(25),c=r(10),s=r(45),d=Object.getOwnPropertyDescriptor;t.f=n?d:function(e,t){if(e=a(e),t=u(t,!0),s)try{return d(e,t)}catch(e){}if(c(e,t))return i(!o.f.call(e,t),e[t])}},function(e,t,r){"use strict";var n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!n.call({1:2},1);t.f=i?function(e){var t=o(this,e);return!!t&&t.enumerable}:n},function(e,t,r){var n=r(9),o=r(43),i="".split;e.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?i.call(e,""):Object(e)}:Object},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,r){var n=r(14),o=r(9),i=r(68);e.exports=!n&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(e,t,r){var n=r(47),o=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(e){return o.call(e)}),e.exports=n.inspectSource},function(e,t,r){var n=r(5),o=r(28),i=n["__core-js_shared__"]||o("__core-js_shared__",{});e.exports=i},function(e,t,r){var n=r(73),o=r(47);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:n?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t){var r=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++r+n).toString(36)}},function(e,t){e.exports={}},function(e,t,r){var n=r(10),o=r(24),i=r(79).indexOf,a=r(50);e.exports=function(e,t){var r,u=o(e),c=0,s=[];for(r in u)!n(a,r)&&n(u,r)&&s.push(r);for(;t.length>c;)n(u,r=t[c++])&&(~i(s,r)||s.push(r));return s}},function(e,t,r){var n=r(53),o=Math.min;e.exports=function(e){return e>0?o(n(e),9007199254740991):0}},function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,r){var n=r(44);e.exports=function(e){return Object(n(e))}},function(e,t,r){var n=r(9);e.exports=!!Object.getOwnPropertySymbols&&!n((function(){return!String(Symbol())}))},function(e,t){e.exports={}},function(e,t,r){"use strict";(function(e){r.d(t,"b",(function(){return i}));var n=r(11),o=r(7);function i(){if(Object(o.b)("elementsTarget","#edd-stripe-payment-element"),"1"===edd_scripts.is_checkout){var t=document.querySelector('input[name="edd-gateway"]');window.eddStripe.isBuyNow=!1,t&&"stripe"===t.value?(Object(o.b)("singleGateway",!0),Object(n.c)()):(Object(o.b)("singleGateway",!1),e(document.body).on("edd_gateway_loaded",(function(e,t){"stripe"===t&&Object(n.c)()})))}}r.d(t,"a",(function(){return n.c}))}).call(this,r(6))},,,function(e,t,r){"use strict";r.d(t,"a",(function(){return b}));var n=r(2),o=r.n(n);function i(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&this.registerTriggers.apply(this,a(o)),this.onClick=this.onClick.bind(this),this.onKeydown=this.onKeydown.bind(this)}var t,r;return t=e,(r=[{key:"registerTriggers",value:function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n0&&void 0!==arguments[0]?arguments[0]:null;if(this.activeElement=document.activeElement,this.modal.setAttribute("aria-hidden","false"),this.modal.classList.add(this.config.openClass),this.scrollBehaviour("disable"),this.addEventListeners(),this.config.awaitOpenAnimation){var r=function t(){e.modal.removeEventListener("animationend",t,!1),e.setFocusToFirstNode()};this.modal.addEventListener("animationend",r,!1)}else this.setFocusToFirstNode();this.config.onShow(this.modal,this.activeElement,t)}},{key:"closeModal",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.modal;if(this.modal.setAttribute("aria-hidden","true"),this.removeEventListeners(),this.scrollBehaviour("enable"),this.activeElement&&this.activeElement.focus&&this.activeElement.focus(),this.config.onClose(this.modal,this.activeElement,e),this.config.awaitCloseAnimation){var r=this.config.openClass;this.modal.addEventListener("animationend",(function e(){t.classList.remove(r),t.removeEventListener("animationend",e,!1)}),!1)}else t.classList.remove(this.config.openClass)}},{key:"closeModalById",value:function(e){this.modal=document.getElementById(e),this.modal&&this.closeModal()}},{key:"scrollBehaviour",value:function(e){if(this.config.disableScroll){var t=document.querySelector("body");switch(e){case"enable":Object.assign(t.style,{overflow:""});break;case"disable":Object.assign(t.style,{overflow:"hidden"})}}}},{key:"addEventListeners",value:function(){this.modal.addEventListener("touchstart",this.onClick),this.modal.addEventListener("click",this.onClick),document.addEventListener("keydown",this.onKeydown)}},{key:"removeEventListeners",value:function(){this.modal.removeEventListener("touchstart",this.onClick),this.modal.removeEventListener("click",this.onClick),document.removeEventListener("keydown",this.onKeydown)}},{key:"onClick",value:function(e){e.target.hasAttribute(this.config.closeTrigger)&&this.closeModal(e)}},{key:"onKeydown",value:function(e){27===e.keyCode&&this.closeModal(e),9===e.keyCode&&this.retainFocus(e)}},{key:"getFocusableNodes",value:function(){var e=this.modal.querySelectorAll(c);return Array.apply(void 0,a(e))}},{key:"setFocusToFirstNode",value:function(){var e=this;if(!this.config.disableFocus){var t=this.getFocusableNodes();if(0!==t.length){var r=t.filter((function(t){return!t.hasAttribute(e.config.closeTrigger)}));r.length>0&&r[0].focus(),0===r.length&&t[0].focus()}}}},{key:"retainFocus",value:function(e){var t=this.getFocusableNodes();if(0!==t.length)if(t=t.filter((function(e){return null!==e.offsetParent})),this.modal.contains(document.activeElement)){var r=t.indexOf(document.activeElement);e.shiftKey&&0===r&&(t[t.length-1].focus(),e.preventDefault()),!e.shiftKey&&t.length>0&&r===t.length-1&&(t[0].focus(),e.preventDefault())}else t[0].focus()}}])&&i(t.prototype,r),e}(),d=null,l=function(e){if(!document.getElementById(e))return console.warn("MicroModal: ❗Seems like you have missed %c'".concat(e,"'"),"background-color: #f8f9fa;color: #50596c;font-weight: bold;","ID somewhere in your code. Refer example below to resolve it."),console.warn("%cExample:","background-color: #f8f9fa;color: #50596c;font-weight: bold;",'')),!1},f=function(e,t){if(function(e){e.length<=0&&(console.warn("MicroModal: ❗Please specify at least one %c'micromodal-trigger'","background-color: #f8f9fa;color: #50596c;font-weight: bold;","data attribute."),console.warn("%cExample:","background-color: #f8f9fa;color: #50596c;font-weight: bold;",''))}(e),!t)return!0;for(var r in t)l(r);return!0},{init:function(e){var t=Object.assign({},{openTrigger:"data-micromodal-trigger"},e),r=a(document.querySelectorAll("[".concat(t.openTrigger,"]"))),n=function(e,t){var r=[];return e.forEach((function(e){var n=e.attributes[t].value;void 0===r[n]&&(r[n]=[]),r[n].push(e)})),r}(r,t.openTrigger);if(!0!==t.debugMode||!1!==f(r,n))for(var o in n){var i=n[o];t.targetModal=o,t.triggers=a(i),d=new s(t)}},show:function(e,t){var r=t||{};r.targetModal=e,!0===r.debugMode&&!1===l(e)||(d&&d.removeEventListeners(),(d=new s(r)).showModal())},close:function(e){e?d.closeModalById(e):d.closeModal()}});window.MicroModal=p;var h=p;function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e){for(var t=1;t1)for(var r=1;r=0;--n){var o=this.tryEntries[n],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var u=a.call(o,"catchLoc"),c=a.call(o,"finallyLoc");if(u&&c){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),y}},r}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports}).call(this,r(22))},function(e,t,r){var n=r(39),o=r(82);n({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},function(e,t,r){var n=r(5),o=r(16),i=n.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},function(e,t,r){var n=r(5),o=r(17),i=r(10),a=r(28),u=r(46),c=r(70),s=c.get,d=c.enforce,l=String(String).split("String");(e.exports=function(e,t,r,u){var c=!!u&&!!u.unsafe,s=!!u&&!!u.enumerable,f=!!u&&!!u.noTargetGet;"function"==typeof r&&("string"!=typeof t||i(r,"name")||o(r,"name",t),d(r).source=l.join("string"==typeof t?t:"")),e!==n?(c?!f&&e[t]&&(s=!0):delete e[t],s?e[t]=r:o(e,t,r)):s?e[t]=r:a(t,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&s(this).source||u(this)}))},function(e,t,r){var n,o,i,a=r(71),u=r(5),c=r(16),s=r(17),d=r(10),l=r(72),f=r(50),p=u.WeakMap;if(a){var h=new p,y=h.get,v=h.has,m=h.set;n=function(e,t){return m.call(h,e,t),t},o=function(e){return y.call(h,e)||{}},i=function(e){return v.call(h,e)}}else{var b=l("state");f[b]=!0,n=function(e,t){return s(e,b,t),t},o=function(e){return d(e,b)?e[b]:{}},i=function(e){return d(e,b)}}e.exports={set:n,get:o,has:i,enforce:function(e){return i(e)?o(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}}},function(e,t,r){var n=r(5),o=r(46),i=n.WeakMap;e.exports="function"==typeof i&&/native code/.test(o(i))},function(e,t,r){var n=r(48),o=r(49),i=n("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},function(e,t){e.exports=!1},function(e,t,r){var n=r(10),o=r(75),i=r(40),a=r(26);e.exports=function(e,t){for(var r=o(t),u=a.f,c=i.f,s=0;sd;)if((u=c[d++])!=u)return!0}else for(;s>d;d++)if((e||d in c)&&c[d]===r)return e||d||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t,r){var n=r(53),o=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?o(r+t,0):i(r,t)}},function(e,t,r){var n=r(9),o=/#|\.prototype\./,i=function(e,t){var r=u[a(e)];return r==s||r!=c&&("function"==typeof t?n(t):!!t)},a=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},u=i.data={},c=i.NATIVE="N",s=i.POLYFILL="P";e.exports=i},function(e,t,r){"use strict";var n=r(14),o=r(9),i=r(83),a=r(55),u=r(41),c=r(56),s=r(42),d=Object.assign,l=Object.defineProperty;e.exports=!d||o((function(){if(n&&1!==d({b:1},d(l({},"a",{enumerable:!0,get:function(){l(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol();return e[r]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=d({},e)[r]||"abcdefghijklmnopqrst"!=i(d({},t)).join("")}))?function(e,t){for(var r=c(e),o=arguments.length,d=1,l=a.f,f=u.f;o>d;)for(var p,h=s(arguments[d++]),y=l?i(h).concat(l(h)):i(h),v=y.length,m=0;v>m;)p=y[m++],n&&!f.call(h,p)||(r[p]=h[p]);return r}:d},function(e,t,r){var n=r(51),o=r(54);e.exports=Object.keys||function(e){return n(e,o)}},function(e,t,r){var n=r(39),o=r(85);n({target:"Array",stat:!0,forced:!r(95)((function(e){Array.from(e)}))},{from:o})},function(e,t,r){"use strict";var n=r(86),o=r(56),i=r(88),a=r(89),u=r(52),c=r(91),s=r(92);e.exports=function(e){var t,r,d,l,f,p,h=o(e),y="function"==typeof this?this:Array,v=arguments.length,m=v>1?arguments[1]:void 0,b=void 0!==m,g=s(h),w=0;if(b&&(m=n(m,v>2?arguments[2]:void 0,2)),null==g||y==Array&&a(g))for(r=new y(t=u(h.length));t>w;w++)p=b?m(h[w],w):h[w],c(r,w,p);else for(f=(l=g.call(h)).next,r=new y;!(d=f.call(l)).done;w++)p=b?i(l,m,[d.value,w],!0):d.value,c(r,w,p);return r.length=w,r}},function(e,t,r){var n=r(87);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,o){return e.call(t,r,n,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,r){var n=r(27);e.exports=function(e,t,r,o){try{return o?t(n(r)[0],r[1]):t(r)}catch(t){var i=e.return;throw void 0!==i&&n(i.call(e)),t}}},function(e,t,r){var n=r(15),o=r(58),i=n("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},function(e,t,r){var n=r(57);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,r){"use strict";var n=r(25),o=r(26),i=r(23);e.exports=function(e,t,r){var a=n(t);a in e?o.f(e,a,i(0,r)):e[a]=r}},function(e,t,r){var n=r(93),o=r(58),i=r(15)("iterator");e.exports=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[n(e)]}},function(e,t,r){var n=r(94),o=r(43),i=r(15)("toStringTag"),a="Arguments"==o(function(){return arguments}());e.exports=n?o:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?r:a?o(t):"Object"==(n=o(t))&&"function"==typeof t.callee?"Arguments":n}},function(e,t,r){var n={};n[r(15)("toStringTag")]="z",e.exports="[object z]"===String(n)},function(e,t,r){var n=r(15)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[n]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},e(i)}catch(e){}return r}},,,,,,,,,,,function(e,t,r){},,,,function(e,t,r){"use strict";r.r(t),r(106);var n=r(0),o=r(59),i=r(62);function a(){Object(n.f)(document.querySelectorAll(".edds-buy-now"),(function(e){e.classList.contains("edd-free-download")||e.addEventListener("click",(function(e){window.eddStripe.activeBuyNow=e;var t,r,a=e.currentTarget.dataset,u=a.downloadId,c=a.nonce,s=e.currentTarget.dataset.token.length?e.currentTarget.dataset.token:"",d=e.currentTarget.dataset.timestamp.length?e.currentTarget.dataset.timestamp:"";if(u){e.preventDefault(),e.stopImmediatePropagation();var l=null,f=1,p=e.currentTarget.closest(".edd_download_purchase_form"),h=p.querySelector(".edd_price_option_".concat(u,":checked"));h&&(l=h.value);var y=p.querySelector('input[name="edd_download_quantity"]');y&&(f=y.value),t={downloadId:u,priceId:l,quantity:f,nonce:c,addToCartForm:p,timestamp:d,token:s},r=document.querySelector("#edds-buy-now-modal-content"),i.a.open("edds-buy-now",{onShow:function(){var e,i,a,u,c,s,d,l;r.innerHTML='',(e=t.downloadId,i=t.priceId,a=t.quantity,u=t.nonce,c=t.addToCartForm,s=t.timestamp,d=t.token,l={download_id:e,price_id:i,quantity:a,nonce:u,post_data:jQuery(c).serialize(),timestamp:s,token:d},Object(n.a)("edds_add_to_cart",l)).then((function(e){var t=e.checkout;window.eddStripe.isBuyNow=!0,r.innerHTML=t;var n=document.querySelector("#edds-buy-now-modal-content #edd-purchase-button");n.length&&(n.value=edd_stripe_vars.formLoadingText),window.EDD_Checkout.init(),document.querySelector("#edds-buy-now-modal-content .edd_cart_amount").dataset.total>0&&(window.eddStripe.singleGateway=!0,Object(o.a)())})).fail((function(e){var t=e.message;document.querySelector("#edds-buy-now-modal-content").innerHTML=t}))},onClose:function(){window.eddStripe.intentId="",window.eddStripe.clientSecret="",window.eddStripe.intentType="",window.eddStripe.intentFingerprint="",Object(n.a)("edds_empty_cart")}})}}))})),jQuery(document.body).on("edd_checkout_error",(function(){var e=document.querySelector("#edds-buy-now #edd-purchase-button");if(e){var t=edd_stripe_vars.i18n.completePurchase,r=document.querySelector(".edd_cart_amount").dataset,n=r.total,o=r.totalCurrency;"0"!==n&&setTimeout((function(){e.value="".concat(o," - ").concat(t)}),10)}}))}var u=r(31);!function(){try{window.eddStripe=new Stripe(edd_stripe_vars.publishable_key,{betas:["elements_enable_deferred_intent_beta_1"]}),window.eddStripe._plugin={domReady:n.d,apiRequest:n.a,generateNotice:n.g,createAndMountElement:u.a,getBillingDetails:u.b},Object(n.d)(o.b,a)}catch(e){alert(e.message)}}()}]); \ No newline at end of file +!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=114)}([function(e,t,r){"use strict";r.d(t,"a",(function(){return n.a})),r.d(t,"f",(function(){return i.a})),r.d(t,"d",(function(){return a})),r.d(t,"h",(function(){return u})),r.d(t,"g",(function(){return c.b})),r.d(t,"j",(function(){return c.c})),r.d(t,"b",(function(){return c.a})),r.d(t,"i",(function(){return s})),r.d(t,"k",(function(){return d})),r.d(t,"e",(function(){return l})),r.d(t,"c",(function(){return f})),r(32),r(33),r(34),r(35);var n=r(19),o=r(20),i=r.n(o);function a(){i()(arguments,(function(e){document.addEventListener("DOMContentLoaded",e)}))}function u(e){for(var t=[],r=e.nextElementSibling;r;)1===r.nodeType&&t.push(r),r=r.nextElementSibling;return t}var c=r(21);function s(e){var t=!0;return i()(e.querySelectorAll("input"),(function(e){e.checkValidity&&!e.checkValidity()&&(t=!1)})),t}function d(e){var t=document.createElement("input");t.type="submit",t.style.display="none",e.appendChild(t),t.click(),t.remove()}function l(e){return e?""===e.value?null:e.value:null}function f(e,t){"true"===edd_stripe_vars.debuggingEnabled&&console.log("EDD Stripe - Debugging","\n","*".repeat(e.length+5),"\n",e,"\n","*".repeat(e.length+5),"\n",JSON.stringify(t,null,4))}r(7)},function(e,t,r){var n=r(67)();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},function(e,t,r){var n=r(36);e.exports=function(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){(function(t){function r(e,r,n,o,i,a,u){try{var c=e[a](u),s=c.value}catch(e){return void n(e)}c.done?r(s):t.resolve(s).then(o,i)}e.exports=function(e){return function(){var n=this,o=arguments;return new t((function(t,i){var a=e.apply(n,o);function u(e){r(a,t,i,u,c,"next",e)}function c(e){r(a,t,i,u,c,"throw",e)}u(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports}).call(this,r(22))},function(e,t){function r(t){return e.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,r(t)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){(function(t){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t&&t)||Function("return this")()}).call(this,r(38))},function(e,t){e.exports=jQuery},function(e,t,r){"use strict";function n(e){return null===e?window.eddStripe:!e in window.eddStripe?"":window.eddStripe[e]}function o(e,t,r){if(window.eddStripe[e]=t,r)return window.eddStripe[e]}r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return o}))},,function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){var r={}.hasOwnProperty;e.exports=function(e,t){return r.call(e,t)}},,,function(e,t,r){var n=r(9);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,r){var n=r(5),o=r(48),i=r(10),a=r(49),u=r(57),c=r(91),s=o("wks"),d=n.Symbol,l=c?d:d&&d.withoutSetter||a;e.exports=function(e){return i(s,e)||(u&&i(d,e)?s[e]=d[e]:s[e]=l("Symbol."+e)),s[e]}},function(e,t,r){"use strict";(function(e){r.d(t,"c",(function(){return s})),r.d(t,"d",(function(){return p})),r.d(t,"a",(function(){return h})),r.d(t,"b",(function(){return y}));var n=r(3),o=r.n(n),i=r(1),a=r.n(i),u=r(31),c=r(0);function s(){Object(u.a)(),!1!==window.eddStripe.elementMounted&&(window.eddStripe.intentFingerprint="",window.eddStripe.intentType="",window.eddStripe.intentId="",h(),e(document).off("click","#edd_purchase_form #edd_purchase_submit [type=submit]"),document.getElementById("edd-purchase-button").addEventListener("click",function(){var t=o()(a.a.mark((function t(r){var n,o,i,c,s,l,h,m,w,_,x,S,j,O,E,P,k;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("stripe"===e('input[name="edd-gateway"]').val()&&e(".edd_cart_total .edd_cart_amount").data("total")>0){t.next=2;break}return t.abrupt("return");case 2:if(b()){t.next=4;break}return t.abrupt("return",!1);case 4:return r.preventDefault(),p(),t.prev=6,n=Object(u.b)(document.getElementById("edd_purchase_form")),t.next=10,g(n);case 10:return o=t.sent,i=o.paymentMethod,t.next=14,d(i);case 14:return c=t.sent,s=c.token,l=c.client_secret,h=c.intent_type,m=c.intent_fingerprint,w=c.intent_id,window.eddStripe.intentType=h,window.eddStripe.intentFingerprint=m,window.eddStripe.intentId=w,(_=document.getElementById("edd-process-checkout-nonce")).value=s,x="PaymentIntent"===h?"confirmPayment":"confirmSetup",(S={clientSecret:l,confirmParams:{return_url:edd_stripe_vars.successPageUri},redirect:"if_required"}).confirmParams.payment_method=i.id,t.next=30,window.eddStripe[x](S);case 30:if(j=t.sent,!(O=j.error)){t.next=36;break}return v(O),y(),t.abrupt("return",!1);case 36:return t.next=38,f();case 38:E=t.sent,P=E.intent,k=E.nonce,_.value=k,"succeeded"===P.status?window.location.replace(edd_stripe_vars.successPageUri):window.location.replace(edd_stripe_vars.failurePageUri),t.next=50;break;case 45:return t.prev=45,t.t0=t.catch(6),v(t.t0),y(),t.abrupt("return",!1);case 50:case"end":return t.stop()}}),t,null,[[6,45]])})));return function(_x){return t.apply(this,arguments)}}()))}function d(e){return l.apply(this,arguments)}function l(){return(l=o()(a.a.mark((function t(r){var n;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e("#edd-process-stripe-token"),t.abrupt("return",Object(c.a)("edds_process_purchase_form",{form_data:e("#edd_purchase_form").serialize(),timestamp:n.length?n.data("timestamp"):"",token:n.length?n.data("token"):"",intent_type:window.eddStripe.intentType,intent_id:window.eddStripe.intentId,intent_fingerprint:window.eddStripe.intentFingerprint,payment_method:r}));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function f(){var t=e("#edd_purchase_form"),r=e("#edd-process-stripe-token"),n=t.serialize();if(0===t.length){var o=e("#edd-process-checkout-nonce").val();n="edd-process-checkout-nonce=".concat(o)}return Object(c.a)("edds_create_and_complete_order",{form_data:n,timestamp:r.length?r.data("timestamp"):"",token:r.length?r.data("token"):"",intent_id:window.eddStripe.intentId,intent_type:window.eddStripe.intentType})}function p(){var t;window.eddStripe.paymentElement.update({readOnly:!0}),0===(t=e("#edd-purchase-button").parent()).find(".edd-loading-ajax").length&&t.append('');var r=e("#edd-purchase-button");r.attr("data-edd-button-state","updating"),r.prop("disabled","disabled"),r.prop("readonly","readonly"),e(".edd_errors").remove(),e(".edd-error").hide(),e("#edd-stripe-payment-errors").remove(),e(".edd-stripe-alert").remove(),r.parent().find(".edd-loading-ajax").remove()}function h(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];window.eddStripe.paymentElement.update({readOnly:!1});var r=e("#edd-purchase-button");r.attr("data-edd-button-state","disabled"),r.prop("disabled","disabled"),r.prop("readonly","readonly"),r.parent().find(".edd-loading-ajax").remove(),t&&(e(".edd_errors").remove(),e(".edd-error").hide(),e("#edd-stripe-payment-errors").remove(),e(".edd-stripe-alert").remove())}function y(){if(!window.eddStripe.isAtFailureLimit){window.eddStripe.paymentElement.update({readOnly:!1});var t=e("#edd-purchase-button");t.attr("data-edd-button-state","ready"),t.prop("disabled",""),t.prop("readonly",""),t.parent().find(".edd-loading-ajax").remove(),e(".edd_errors").remove(),e(".edd-error").hide()}}function v(e){return m.apply(this,arguments)}function m(){return(m=o()(a.a.mark((function t(r){var n,o,i,u,s,d,l,f;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(console.log(r),n=r.code,o=r.message,r.type,i=window.edd_stripe_vars.elementsCustomizations.i18n.errorMessages,o||(o=edd_stripe_vars.generic_error),u=n&&i[n]?i[n]:o,s=Object(c.g)(u),!n||"incomplete"===n){t.next=14;break}return t.next=8,Object(c.a)("edds_payment_elements_rate_limit_tick");case 8:if(d=t.sent,l=d.is_at_limit,f=d.message,!l){t.next=14;break}return w(f),t.abrupt("return");case 14:e(".edd-stripe-alert").remove(),e(edd_global_vars.checkout_error_anchor).before(s),e(document.body).trigger("edd_checkout_error",[r]),"incomplete"===n&&e(".edd-stripe-alert").removeClass("edd-alert-error").addClass("edd-alert-warn"),window.console&&r.responseText&&window.console.error(r.responseText);case 19:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function b(){var e=!0;return document.getElementById("edd_purchase_form").querySelectorAll("[required]").forEach((function(t){!1===t.checkValidity()&&(t.reportValidity(),e=!1)})),e}function g(e){return window.eddStripe.createPaymentMethod({elements:window.eddStripe.configuredElement,params:{billing_details:e}}).then((function(e){var t=e.error,r=e.paymentMethod;return t&&v(t),{paymentMethod:r}})).catch((function(e){return v(e),y(),!1}))}function w(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";window.eddStripe.isAtFailureLimit=!0,window.eddStripe.paymentElement.unmount(),e("#edd_cc_fields").slideUp().remove();var r=e("#edd-purchase-button");r.remove();var n=Object(c.g)(t,"error");e(".edd-stripe-alert").remove(),e(edd_global_vars.checkout_error_anchor).before(n)}}).call(this,r(6))},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,r){var n=r(13),o=r(26),i=r(23);e.exports=n?function(e,t,r){return o.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},,function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return s}));var n=r(4),o=r.n(n),i=r(2),a=r.n(i);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?c.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)}function m(e){return v(e)?function(e,t){var r=y(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&v(e)}(e)&&u.call(e,"callee")&&(!s.call(e,"callee")||"[object Arguments]"==c.call(e))}(e)?function(e,t){for(var r=-1,n=Array(e);++r1&&void 0!==arguments[1]?arguments[1]:"error",r=document.createElement("p");return r.classList.add("edd-alert"),r.classList.add("edd-stripe-alert"),r.style.clear="both","error"===t?r.classList.add("edd-alert-error"):r.classList.add("edd-alert-success"),r.innerHTML=e||edd_stripe_vars.generic_error,r}function o(t){var r=t.errorType,o=t.errorMessage,i=t.errorContainer,a=t.errorContainerReplace,u=void 0===a||a,c=e(i),s=n(o,r);!0===u?c.html(s):c.before(s)}function i(t){e(t).html("")}r.d(t,"b",(function(){return n})),r.d(t,"c",(function(){return o})),r.d(t,"a",(function(){return i}))}).call(this,r(6))},function(e,t,r){e.exports=r(64).Promise},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,r){var n=r(42),o=r(44);e.exports=function(e){return n(o(e))}},function(e,t,r){var n=r(16);e.exports=function(e,t){if(!n(e))return e;var r,o;if(t&&"function"==typeof(r=e.toString)&&!n(o=r.call(e)))return o;if("function"==typeof(r=e.valueOf)&&!n(o=r.call(e)))return o;if(!t&&"function"==typeof(r=e.toString)&&!n(o=r.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t,r){var n=r(13),o=r(45),i=r(27),a=r(25),u=Object.defineProperty;t.f=n?u:function(e,t,r){if(i(e),t=a(t,!0),i(r),o)try{return u(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},function(e,t,r){var n=r(16);e.exports=function(e){if(!n(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,r){var n=r(5),o=r(17);e.exports=function(e,t){try{o(n,e,t)}catch(r){n[e]=t}return t}},,,function(e,t,r){"use strict";r.d(t,"a",(function(){return m})),r.d(t,"b",(function(){return S}));var n=r(3),o=r.n(n),i=r(98),a=r.n(i),u=r(2),c=r.n(u),s=r(1),d=r.n(s),l=r(0),f=r(7),p=r(15);function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function y(e){for(var t=1;tthis.length)&&-1!==this.indexOf(e,t)})},function(e,t){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;do{if(Element.prototype.matches.call(t,e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null})},function(e,t){Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),r=t.length,n=new Array(r);r--;)n[r]=[t[r],e[t[r]]];return n})},function(e,t){[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach((function(e){e.hasOwnProperty("remove")||Object.defineProperty(e,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){this.parentNode.removeChild(this)}})}))},function(e,t,r){var n=r(4).default,o=r(37);e.exports=function(e){var t=o(e,"string");return"symbol"===n(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){var n=r(4).default;e.exports=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){var n=r(5),o=r(40).f,i=r(17),a=r(70),u=r(28),c=r(75),s=r(82);e.exports=function(e,t){var r,d,l,f,p,h=e.target,y=e.global,v=e.stat;if(r=y?n:v?n[h]||u(h,{}):(n[h]||{}).prototype)for(d in t){if(f=t[d],l=e.noTargetGet?(p=o(r,d))&&p.value:r[d],!s(y?d:h+(v?".":"#")+d,e.forced)&&void 0!==l){if(typeof f==typeof l)continue;c(f,l)}(e.sham||l&&l.sham)&&i(f,"sham",!0),a(r,d,f,e)}}},function(e,t,r){var n=r(13),o=r(41),i=r(23),a=r(24),u=r(25),c=r(10),s=r(45),d=Object.getOwnPropertyDescriptor;t.f=n?d:function(e,t){if(e=a(e),t=u(t,!0),s)try{return d(e,t)}catch(e){}if(c(e,t))return i(!o.f.call(e,t),e[t])}},function(e,t,r){"use strict";var n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!n.call({1:2},1);t.f=i?function(e){var t=o(this,e);return!!t&&t.enumerable}:n},function(e,t,r){var n=r(9),o=r(43),i="".split;e.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?i.call(e,""):Object(e)}:Object},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,r){var n=r(13),o=r(9),i=r(69);e.exports=!n&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(e,t,r){var n=r(47),o=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(e){return o.call(e)}),e.exports=n.inspectSource},function(e,t,r){var n=r(5),o=r(28),i=n["__core-js_shared__"]||o("__core-js_shared__",{});e.exports=i},function(e,t,r){var n=r(74),o=r(47);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:n?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t){var r=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++r+n).toString(36)}},function(e,t){e.exports={}},function(e,t,r){var n=r(10),o=r(24),i=r(80).indexOf,a=r(50);e.exports=function(e,t){var r,u=o(e),c=0,s=[];for(r in u)!n(a,r)&&n(u,r)&&s.push(r);for(;t.length>c;)n(u,r=t[c++])&&(~i(s,r)||s.push(r));return s}},function(e,t,r){var n=r(53),o=Math.min;e.exports=function(e){return e>0?o(n(e),9007199254740991):0}},function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,r){var n=r(44);e.exports=function(e){return Object(n(e))}},function(e,t,r){var n=r(9);e.exports=!!Object.getOwnPropertySymbols&&!n((function(){return!String(Symbol())}))},function(e,t){e.exports={}},function(e,t,r){"use strict";(function(e){r.d(t,"b",(function(){return i}));var n=r(15),o=r(7);function i(){if(Object(o.b)("elementsTarget","#edd-stripe-payment-element"),"1"===edd_scripts.is_checkout){var t=document.querySelector('input[name="edd-gateway"]');window.eddStripe.isBuyNow=!1,t&&"stripe"===t.value?(Object(o.b)("singleGateway",!0),Object(n.c)()):(Object(o.b)("singleGateway",!1),e(document.body).on("edd_gateway_loaded",(function(e,t){"stripe"===t&&Object(n.c)()})))}}r.d(t,"a",(function(){return n.c}))}).call(this,r(6))},,,function(e,t,r){"use strict";r.d(t,"a",(function(){return b}));var n=r(2),o=r.n(n);function i(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&this.registerTriggers.apply(this,a(o)),this.onClick=this.onClick.bind(this),this.onKeydown=this.onKeydown.bind(this)}var t,r;return t=e,(r=[{key:"registerTriggers",value:function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n0&&void 0!==arguments[0]?arguments[0]:null;if(this.activeElement=document.activeElement,this.modal.setAttribute("aria-hidden","false"),this.modal.classList.add(this.config.openClass),this.scrollBehaviour("disable"),this.addEventListeners(),this.config.awaitOpenAnimation){var r=function t(){e.modal.removeEventListener("animationend",t,!1),e.setFocusToFirstNode()};this.modal.addEventListener("animationend",r,!1)}else this.setFocusToFirstNode();this.config.onShow(this.modal,this.activeElement,t)}},{key:"closeModal",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.modal;if(this.modal.setAttribute("aria-hidden","true"),this.removeEventListeners(),this.scrollBehaviour("enable"),this.activeElement&&this.activeElement.focus&&this.activeElement.focus(),this.config.onClose(this.modal,this.activeElement,e),this.config.awaitCloseAnimation){var r=this.config.openClass;this.modal.addEventListener("animationend",(function e(){t.classList.remove(r),t.removeEventListener("animationend",e,!1)}),!1)}else t.classList.remove(this.config.openClass)}},{key:"closeModalById",value:function(e){this.modal=document.getElementById(e),this.modal&&this.closeModal()}},{key:"scrollBehaviour",value:function(e){if(this.config.disableScroll){var t=document.querySelector("body");switch(e){case"enable":Object.assign(t.style,{overflow:""});break;case"disable":Object.assign(t.style,{overflow:"hidden"})}}}},{key:"addEventListeners",value:function(){this.modal.addEventListener("touchstart",this.onClick),this.modal.addEventListener("click",this.onClick),document.addEventListener("keydown",this.onKeydown)}},{key:"removeEventListeners",value:function(){this.modal.removeEventListener("touchstart",this.onClick),this.modal.removeEventListener("click",this.onClick),document.removeEventListener("keydown",this.onKeydown)}},{key:"onClick",value:function(e){e.target.hasAttribute(this.config.closeTrigger)&&this.closeModal(e)}},{key:"onKeydown",value:function(e){27===e.keyCode&&this.closeModal(e),9===e.keyCode&&this.retainFocus(e)}},{key:"getFocusableNodes",value:function(){var e=this.modal.querySelectorAll(c);return Array.apply(void 0,a(e))}},{key:"setFocusToFirstNode",value:function(){var e=this;if(!this.config.disableFocus){var t=this.getFocusableNodes();if(0!==t.length){var r=t.filter((function(t){return!t.hasAttribute(e.config.closeTrigger)}));r.length>0&&r[0].focus(),0===r.length&&t[0].focus()}}}},{key:"retainFocus",value:function(e){var t=this.getFocusableNodes();if(0!==t.length)if(t=t.filter((function(e){return null!==e.offsetParent})),this.modal.contains(document.activeElement)){var r=t.indexOf(document.activeElement);e.shiftKey&&0===r&&(t[t.length-1].focus(),e.preventDefault()),!e.shiftKey&&t.length>0&&r===t.length-1&&(t[0].focus(),e.preventDefault())}else t[0].focus()}}])&&i(t.prototype,r),e}(),d=null,l=function(e){if(!document.getElementById(e))return console.warn("MicroModal: ❗Seems like you have missed %c'".concat(e,"'"),"background-color: #f8f9fa;color: #50596c;font-weight: bold;","ID somewhere in your code. Refer example below to resolve it."),console.warn("%cExample:","background-color: #f8f9fa;color: #50596c;font-weight: bold;",'')),!1},f=function(e,t){if(function(e){e.length<=0&&(console.warn("MicroModal: ❗Please specify at least one %c'micromodal-trigger'","background-color: #f8f9fa;color: #50596c;font-weight: bold;","data attribute."),console.warn("%cExample:","background-color: #f8f9fa;color: #50596c;font-weight: bold;",''))}(e),!t)return!0;for(var r in t)l(r);return!0},{init:function(e){var t=Object.assign({},{openTrigger:"data-micromodal-trigger"},e),r=a(document.querySelectorAll("[".concat(t.openTrigger,"]"))),n=function(e,t){var r=[];return e.forEach((function(e){var n=e.attributes[t].value;void 0===r[n]&&(r[n]=[]),r[n].push(e)})),r}(r,t.openTrigger);if(!0!==t.debugMode||!1!==f(r,n))for(var o in n){var i=n[o];t.targetModal=o,t.triggers=a(i),d=new s(t)}},show:function(e,t){var r=t||{};r.targetModal=e,!0===r.debugMode&&!1===l(e)||(d&&d.removeEventListeners(),(d=new s(r)).showModal())},close:function(e){e?d.closeModalById(e):d.closeModal()}});window.MicroModal=p;var h=p;function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r1)for(var r=1;r=0;--n){var o=this.tryEntries[n],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var u=a.call(o,"catchLoc"),c=a.call(o,"finallyLoc");if(u&&c){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:A(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),y}},r}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports}).call(this,r(22))},function(e,t,r){var n=r(39),o=r(83);n({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},function(e,t,r){var n=r(5),o=r(16),i=n.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},function(e,t,r){var n=r(5),o=r(17),i=r(10),a=r(28),u=r(46),c=r(71),s=c.get,d=c.enforce,l=String(String).split("String");(e.exports=function(e,t,r,u){var c=!!u&&!!u.unsafe,s=!!u&&!!u.enumerable,f=!!u&&!!u.noTargetGet;"function"==typeof r&&("string"!=typeof t||i(r,"name")||o(r,"name",t),d(r).source=l.join("string"==typeof t?t:"")),e!==n?(c?!f&&e[t]&&(s=!0):delete e[t],s?e[t]=r:o(e,t,r)):s?e[t]=r:a(t,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&s(this).source||u(this)}))},function(e,t,r){var n,o,i,a=r(72),u=r(5),c=r(16),s=r(17),d=r(10),l=r(73),f=r(50),p=u.WeakMap;if(a){var h=new p,y=h.get,v=h.has,m=h.set;n=function(e,t){return m.call(h,e,t),t},o=function(e){return y.call(h,e)||{}},i=function(e){return v.call(h,e)}}else{var b=l("state");f[b]=!0,n=function(e,t){return s(e,b,t),t},o=function(e){return d(e,b)?e[b]:{}},i=function(e){return d(e,b)}}e.exports={set:n,get:o,has:i,enforce:function(e){return i(e)?o(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}}},function(e,t,r){var n=r(5),o=r(46),i=n.WeakMap;e.exports="function"==typeof i&&/native code/.test(o(i))},function(e,t,r){var n=r(48),o=r(49),i=n("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},function(e,t){e.exports=!1},function(e,t,r){var n=r(10),o=r(76),i=r(40),a=r(26);e.exports=function(e,t){for(var r=o(t),u=a.f,c=i.f,s=0;sd;)if((u=c[d++])!=u)return!0}else for(;s>d;d++)if((e||d in c)&&c[d]===r)return e||d||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t,r){var n=r(53),o=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?o(r+t,0):i(r,t)}},function(e,t,r){var n=r(9),o=/#|\.prototype\./,i=function(e,t){var r=u[a(e)];return r==s||r!=c&&("function"==typeof t?n(t):!!t)},a=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},u=i.data={},c=i.NATIVE="N",s=i.POLYFILL="P";e.exports=i},function(e,t,r){"use strict";var n=r(13),o=r(9),i=r(84),a=r(55),u=r(41),c=r(56),s=r(42),d=Object.assign,l=Object.defineProperty;e.exports=!d||o((function(){if(n&&1!==d({b:1},d(l({},"a",{enumerable:!0,get:function(){l(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol();return e[r]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=d({},e)[r]||"abcdefghijklmnopqrst"!=i(d({},t)).join("")}))?function(e,t){for(var r=c(e),o=arguments.length,d=1,l=a.f,f=u.f;o>d;)for(var p,h=s(arguments[d++]),y=l?i(h).concat(l(h)):i(h),v=y.length,m=0;v>m;)p=y[m++],n&&!f.call(h,p)||(r[p]=h[p]);return r}:d},function(e,t,r){var n=r(51),o=r(54);e.exports=Object.keys||function(e){return n(e,o)}},function(e,t,r){var n=r(39),o=r(86);n({target:"Array",stat:!0,forced:!r(96)((function(e){Array.from(e)}))},{from:o})},function(e,t,r){"use strict";var n=r(87),o=r(56),i=r(89),a=r(90),u=r(52),c=r(92),s=r(93);e.exports=function(e){var t,r,d,l,f,p,h=o(e),y="function"==typeof this?this:Array,v=arguments.length,m=v>1?arguments[1]:void 0,b=void 0!==m,g=s(h),w=0;if(b&&(m=n(m,v>2?arguments[2]:void 0,2)),null==g||y==Array&&a(g))for(r=new y(t=u(h.length));t>w;w++)p=b?m(h[w],w):h[w],c(r,w,p);else for(f=(l=g.call(h)).next,r=new y;!(d=f.call(l)).done;w++)p=b?i(l,m,[d.value,w],!0):d.value,c(r,w,p);return r.length=w,r}},function(e,t,r){var n=r(88);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,o){return e.call(t,r,n,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,r){var n=r(27);e.exports=function(e,t,r,o){try{return o?t(n(r)[0],r[1]):t(r)}catch(t){var i=e.return;throw void 0!==i&&n(i.call(e)),t}}},function(e,t,r){var n=r(14),o=r(58),i=n("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},function(e,t,r){var n=r(57);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,r){"use strict";var n=r(25),o=r(26),i=r(23);e.exports=function(e,t,r){var a=n(t);a in e?o.f(e,a,i(0,r)):e[a]=r}},function(e,t,r){var n=r(94),o=r(58),i=r(14)("iterator");e.exports=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[n(e)]}},function(e,t,r){var n=r(95),o=r(43),i=r(14)("toStringTag"),a="Arguments"==o(function(){return arguments}());e.exports=n?o:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?r:a?o(t):"Object"==(n=o(t))&&"function"==typeof t.callee?"Arguments":n}},function(e,t,r){var n={};n[r(14)("toStringTag")]="z",e.exports="[object z]"===String(n)},function(e,t,r){var n=r(14)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[n]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},e(i)}catch(e){}return r}},function(e,t,r){var n=r(63);e.exports=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){var n=r(108),o=r(109),i=r(97),a=r(110);e.exports=function(e){return n(e)||o(e)||i(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},,,,,,,,,function(e,t,r){},function(e,t,r){var n=r(63);e.exports=function(e){if(Array.isArray(e))return n(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},,,,function(e,t,r){"use strict";r.r(t),r(107);var n=r(0),o=r(59),i=r(62);function a(){Object(n.f)(document.querySelectorAll(".edds-buy-now"),(function(e){e.classList.contains("edd-free-download")||e.addEventListener("click",(function(e){window.eddStripe.activeBuyNow=e;var t,r,a=e.currentTarget.dataset,u=a.downloadId,c=a.nonce,s=e.currentTarget.dataset.token.length?e.currentTarget.dataset.token:"",d=e.currentTarget.dataset.timestamp.length?e.currentTarget.dataset.timestamp:"";if(u){e.preventDefault(),e.stopImmediatePropagation();var l=null,f=1,p=e.currentTarget.closest(".edd_download_purchase_form"),h=p.querySelector(".edd_price_option_".concat(u,":checked"));h&&(l=h.value);var y=p.querySelector('input[name="edd_download_quantity"]');y&&(f=y.value),t={downloadId:u,priceId:l,quantity:f,nonce:c,addToCartForm:p,timestamp:d,token:s},r=document.querySelector("#edds-buy-now-modal-content"),i.a.open("edds-buy-now",{onShow:function(){var e,i,a,u,c,s,d,l;r.innerHTML='',(e=t.downloadId,i=t.priceId,a=t.quantity,u=t.nonce,c=t.addToCartForm,s=t.timestamp,d=t.token,l={download_id:e,price_id:i,quantity:a,nonce:u,post_data:jQuery(c).serialize(),timestamp:s,token:d},Object(n.a)("edds_add_to_cart",l)).then((function(e){var t=e.checkout;window.eddStripe.isBuyNow=!0,r.innerHTML=t;var n=document.querySelector("#edds-buy-now-modal-content #edd-purchase-button");n.length&&(n.value=edd_stripe_vars.formLoadingText),window.EDD_Checkout.init(),document.querySelector("#edds-buy-now-modal-content .edd_cart_amount").dataset.total>0&&(window.eddStripe.singleGateway=!0,Object(o.a)())})).fail((function(e){var t=e.message;document.querySelector("#edds-buy-now-modal-content").innerHTML=t}))},onClose:function(){window.eddStripe.intentId="",window.eddStripe.clientSecret="",window.eddStripe.intentType="",window.eddStripe.intentFingerprint="",Object(n.a)("edds_empty_cart")}})}}))})),jQuery(document.body).on("edd_checkout_error",(function(){var e=document.querySelector("#edds-buy-now #edd-purchase-button");if(e){var t=edd_stripe_vars.i18n.completePurchase,r=document.querySelector(".edd_cart_amount").dataset,n=r.total,o=r.totalCurrency;"0"!==n&&setTimeout((function(){e.value="".concat(o," - ").concat(t)}),10)}}))}var u=r(31);!function(){try{window.eddStripe=new Stripe(edd_stripe_vars.publishable_key,{betas:["elements_enable_deferred_intent_beta_1"]}),window.eddStripe._plugin={domReady:n.d,apiRequest:n.a,generateNotice:n.g,createAndMountElement:u.a,getBillingDetails:u.b},Object(n.d)(o.b,a)}catch(e){alert(e.message)}}()}]); \ No newline at end of file diff --git a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/edd-stripe.php b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/edd-stripe.php index aa724f13..130a9c0d 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/edd-stripe.php +++ b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/edd-stripe.php @@ -3,7 +3,7 @@ * Plugin Name: Easy Digital Downloads - Stripe Pro Payment Gateway * Plugin URI: https://easydigitaldownloads.com/downloads/stripe-gateway/ * Description: Adds support for pre-authorized credit card payments and removes additional transaction fees. - * Version: 2.9.2.2 + * Version: 2.9.5.1 * Requires at least: 5.4 * Requires PHP: 7.1 * Author: Easy Digital Downloads @@ -44,7 +44,7 @@ function edd_stripe_core_bootstrap() { } if ( ! defined( 'EDD_STRIPE_VERSION' ) ) { - define( 'EDD_STRIPE_VERSION', '2.9.2.2' ); + define( 'EDD_STRIPE_VERSION', '2.9.5.1' ); } if ( ! defined( 'EDD_STRIPE_API_VERSION' ) ) { diff --git a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/admin/admin-actions.php b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/admin/admin-actions.php index d40991b1..59dfd07f 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/admin/admin-actions.php +++ b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/admin/admin-actions.php @@ -214,3 +214,64 @@ function edds_show_refund_checkbox( \EDD\Orders\Order $order ) { 'edd-settings', + 'tab' => 'gateways', + 'section' => 'edd-stripe', + ) + ) + ); + + exit; +} +add_action( 'admin_init', 'edds_process_settings_flags', 1 ); \ No newline at end of file diff --git a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/admin/settings.php b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/admin/settings.php index c869ec14..f998022a 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/admin/settings.php +++ b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/admin/settings.php @@ -198,6 +198,47 @@ function edds_add_settings( $settings ) { $settings['edd-stripe'] = $stripe_settings; + // If EDD is in Debug Mode, add some 'hidden' settings to the Stripe settings. + if ( edd_is_debug_mode() ) { + $card_elements_enabled = get_option( '_edds_legacy_elements_enabled', false ); + + $debug_settings = array( + 'stripe_debug' => array( + 'id' => 'stripe_debug', + 'name' => __( 'Debugging Settings', 'easy-digital-downloads' ), + 'desc' => '
    ' . + '

    ' . __( 'The following settings are available while Easy Digital Downloads is in debug mode. They are not designed to be primary settings and should be used only while debugging or when instructed to be used by the Easy Digital Downloads Team.', 'easy-digital-downloads' ) . '

    ' . + '

    ' . __( 'There is no guarantee that these settings will remain available in future versions of Easy Digital Downloads. Easy Digital Downloads Debug Mode should be disabled once changes to these settings have been made.', 'easy-digital-downloads' ) . '

    ' . + '

    ', + 'type' => 'descriptive_text', + ), + ); + + $card_elements_action = $card_elements_enabled ? 'disable-card-elements' : 'enable-card-elements'; + $card_elements_button_label = $card_elements_enabled ? __( 'Disable access to Card Elements', 'easy-digital-downloads' ) : __( 'Enable access to Card Elements', 'easy-digital-downloads' ); + $card_elements_state_label = $card_elements_enabled ? __( 'Access to Legacy Card Elements is Enabled', 'easy-digital-downloads' ) : __( 'Access to Legacy Card Elements is Disabled', 'easy-digital-downloads' ); + + $link_class = $card_elements_enabled ? 'edd-button__toggle--enabled' : 'edd-button__toggle--disabled'; + + $debug_settings['toggle_card_elements'] = array( + 'id' => 'stripe_toggle_card_elements', + 'name' => __( 'Toggle Card Elements', 'easy-digital-downloads' ), + 'type' => 'descriptive_text', + 'desc' => sprintf( + '%1$s' . $card_elements_button_label . '%2$s', + '', + '' + ) .'' . $card_elements_state_label . '
    ' . __( 'Card Elements is the legacy Stripe integration. Easy Digital Downloads has updated to use the more secure and reliable Payment Elements feature of Stripe. This toggle allows sites without access to Card Elements to enable or disable it.', 'easy-digital-downloads' ), + ); + + $settings['edd-stripe'] = array_merge( $settings['edd-stripe'], $debug_settings ); + } + // Set up the new setting field for the Test Mode toggle notice. $notice = array( 'stripe_connect_test_mode_toggle_notice' => array( diff --git a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/admin/settings/stripe-connect.php b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/admin/settings/stripe-connect.php index f91968b1..46d3a88e 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/admin/settings/stripe-connect.php +++ b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/admin/settings/stripe-connect.php @@ -242,6 +242,11 @@ function edds_stripe_connect_process_disconnect() { edd_delete_option( $option ); } + // Remove Stripe from the enabled gateways. + $gateways = edd_get_option( 'gateways', array() ); + unset( $gateways['stripe'] ); + edd_update_option( 'gateways', $gateways ); + $redirect = remove_query_arg( array( '_wpnonce', @@ -265,9 +270,9 @@ function edds_stripe_connect_maybe_refresh_account_country() { return; } - // Stripe Connect has not been used, bail. - $account_id = edd_get_option( 'stripe_connect_account_id', '' ); + $account_id = edd_stripe()->connect()->get_connect_id(); + // Stripe Connect has not been used, bail. if ( empty( $account_id ) ) { return; } @@ -307,10 +312,10 @@ add_action( 'admin_init', 'edds_stripe_connect_maybe_refresh_account_country' ); * @since 2.8.0 */ function edds_stripe_connect_setting_field() { - $stripe_connect_url = edds_stripe_connect_url(); - $stripe_disconnect_url = edds_stripe_connect_disconnect_url(); + $stripe_connect_url = edds_stripe_connect_url(); + $stripe_disconnect_url = edds_stripe_connect_disconnect_url(); - $stripe_connect_account_id = edd_get_option( 'stripe_connect_account_id' ); + $stripe_connect_account_id = edd_stripe()->connect()->get_connect_id(); $api_key = edd_is_test_mode() ? edd_get_option( 'test_publishable_key' ) @@ -678,20 +683,6 @@ function edds_stripe_connect_admin_notices_register() { ); try { - // Stripe Connect - Manually managed keys. - $registry->add( - 'stripe-connect-manual', - array( - 'message' => sprintf( - '

    %s

    %s

    ', - esc_html__( 'Your current Stripe payment connection is out of date. Enable more secure and reliable payments by clicking the button below to enable Stripe Connect.', 'easy-digital-downloads' ), - $connect_button - ), - 'type' => 'error', - 'dismissible' => true, - ) - ); - // Stripe Connect. $registry->add( 'stripe-connect', @@ -768,20 +759,11 @@ function edds_stripe_connect_admin_notices_print() { $mode_toggle = isset( $_GET['edd-message'] ) && 'connect-to-stripe' === $_GET['edd-message']; if ( array_key_exists( 'stripe', $enabled_gateways ) && empty( $api_key ) ) { - wp_enqueue_style( - 'edd-stripe-admin-styles', - EDDSTRIPE_PLUGIN_URL . 'assets/css/build/admin.min.css', - array(), - EDD_STRIPE_VERSION - ); + edd_stripe_connect_admin_style(); // Stripe Connect. if ( false === $mode_toggle ) { - if ( edds_stripe_connect_can_manage_keys() ) { - $notices->output( 'stripe-connect-manual' ); - } else { - $notices->output( 'stripe-connect' ); - } + $notices->output( 'stripe-connect' ); // Stripe Connect reconnect. } else { $notices->output( 'stripe-connect-reconnect' ); @@ -790,3 +772,94 @@ function edds_stripe_connect_admin_notices_print() { } catch( Exception $e ) {} } add_action( 'admin_notices', 'edds_stripe_connect_admin_notices_print' ); + +/** + * Adds a Stripe Connect site health test. + * + * @since 2.9.3 + * @param array $tests The array of Site Health tests. + * @return array + */ +function edds_stripe_connect_site_health_test( $tests ) { + $active_gateways = edd_get_enabled_payment_gateways(); + if ( ! empty( $active_gateways['stripe'] ) && current_user_can( 'manage_shop_settings' ) ) { + $tests['direct']['edds_stripe_connect'] = array( + 'label' => __( 'Stripe Connect', 'easy-digital-downloads' ), + 'test' => 'edds_get_test_stripe_connect', + ); + } + + return $tests; +} +add_filter( 'site_status_tests', 'edds_stripe_connect_site_health_test' ); + +/** + * Adds the Stripe Connect Site Health test. + * + * @since 2.9.3 + * @return array + */ +function edds_get_test_stripe_connect() { + $result = array( + 'label' => __( 'You are securely connected to Stripe', 'easy-digital-downloads' ), + 'status' => 'good', + 'badge' => array( + 'label' => __( 'Easy Digital Downloads: Stripe', 'easy-digital-downloads' ), + 'color' => 'blue', + ), + 'description' => sprintf( + '

    %s

    ', + __( 'Stripe Connect helps ensure easy setup and security.', 'easy-digital-downloads' ) + ), + 'actions' => '', + 'test' => 'edds_stripe_connect', + ); + + $elements_mode = edds_get_elements_mode(); + if ( edd_stripe()->connect()->is_connected ) { + if ( 'payment-elements' === $elements_mode ) { + return $result; + } + + // User is connected but on the Card Elements, we should give them a recommendation to use the Payment Elements. + $result['label'] = __( 'You are using the legacy Card Elements fields', 'easy-digital-downloads' ); + $result['status'] = 'recommended'; + $result['badge']['color'] = 'orange'; + $result['description'] = sprintf( + '

    %s

    ', + esc_html__( 'Increase conversions, security, and reliability by using the Payment Elements integration for Stripe.', 'easy-digital-downloads' ) + ); + $result['actions'] = sprintf( + '%s', + esc_url( + edd_get_admin_url( + array( + 'page' => 'edd-settings', + 'tab' => 'gateways', + 'section' => 'edd-stripe', + ) + ) + ), + esc_html__( 'Switch to Payment Elements', 'easy-digital-downloads' ) + ); + + } else { + $result['label'] = __( 'You are using manually managed Stripe API keys', 'easy-digital-downloads' ); + $result['status'] = 'critical'; + $result['badge']['color'] = 'red'; + $result['description'] = sprintf( + '

    %s

    ', + esc_html__( 'By securely connecting your Easy Digital Downloads store with Stripe Connect, you\'ll get access to more reliable payments and use managed API keys which are more secure.', 'easy-digital-downloads' ) + ); + $result['actions'] = sprintf( + '%s', + esc_url( edds_stripe_connect_url() ), + esc_html__( 'Connect with Stripe', 'easy-digital-downloads' ) + ); + + } + + edd_stripe_connect_admin_style(); + + return $result; +} diff --git a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/admin/upgrade-functions.php b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/admin/upgrade-functions.php index 98d834ae..e8b84355 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/admin/upgrade-functions.php +++ b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/admin/upgrade-functions.php @@ -40,19 +40,17 @@ add_action( 'admin_init', function() { } $elements_mode = 'payment-elements'; + $connect = edd_stripe()->connect(); if ( - edds_stripe_connect_can_manage_keys() || - ! empty( edd_get_option( 'stripe_connect_account_id', false ) ) + ! empty( $connect->get_connect_id() ) || + edds_stripe_connect_can_manage_keys() ) { $elements_mode = 'card-elements'; + add_option( '_edds_legacy_elements_enabled', 1, false ); } edd_update_option( 'stripe_elements_mode', $elements_mode ); - - if ( 'card-elements' === $elements_mode ) { - add_option( '_edds_legacy_elements_enabled', 1, false ); - } } ); /** diff --git a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/class-edd-stripe.php b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/class-edd-stripe.php index 4ff5f56c..58744002 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/class-edd-stripe.php +++ b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/class-edd-stripe.php @@ -52,6 +52,14 @@ class EDD_Stripe { */ public $regional_support; + /** + * Stripe Connect status class. + * + * @since 2.9.3 + * @var \EDD\Stripe\Connect + */ + public $connect; + /** * Instantiates or returns the singleton instance. * @@ -93,6 +101,7 @@ class EDD_Stripe { require_once EDDS_PLUGIN_DIR . '/vendor/autoload.php'; } + require_once EDDS_PLUGIN_DIR . '/includes/functions.php'; require_once EDDS_PLUGIN_DIR . '/includes/class-stripe-api.php'; // We need this one to load early so we can use it in the upcoming includes. @@ -107,7 +116,6 @@ class EDD_Stripe { require_once EDDS_PLUGIN_DIR . '/includes/utils/class-registry.php'; require_once EDDS_PLUGIN_DIR . '/includes/utils/modal.php'; - require_once EDDS_PLUGIN_DIR . '/includes/functions.php'; require_once EDDS_PLUGIN_DIR . '/includes/deprecated.php'; require_once EDDS_PLUGIN_DIR . '/includes/compat.php'; require_once EDDS_PLUGIN_DIR . '/includes/i18n.php'; @@ -137,7 +145,6 @@ class EDD_Stripe { // Load Apple Pay functions. require_once EDDS_PLUGIN_DIR . '/includes/payment-methods/apple-pay.php'; - // Stripe Elements, separated by elements type. switch ( $elements_mode ) { case 'card-elements': @@ -216,6 +223,21 @@ class EDD_Stripe { $this->rate_limiting = new EDD_Stripe_Rate_Limiting(); } + /** + * Gets the Stripe Connect utility class. + * + * @since 2.9.3 + */ + public function connect() { + if ( ! is_null( $this->connect ) ) { + return $this->connect; + } + require_once EDDS_PLUGIN_DIR . '/includes/class-stripe-connect.php'; + $this->connect = new EDD\Stripe\Connect(); + + return $this->connect; + } + /** * Performs database upgrades. * diff --git a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/class-stripe-connect.php b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/class-stripe-connect.php new file mode 100644 index 00000000..b4265536 --- /dev/null +++ b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/class-stripe-connect.php @@ -0,0 +1,34 @@ +is_connected = ! empty( $this->get_connect_id() ); + } + + /** + * Gets the connect ID. + * + * @return string|false + */ + public function get_connect_id() { + return edd_get_option( 'stripe_connect_account_id', false ); + } +} diff --git a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/elements/functions.php b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/elements/functions.php index 90ae05be..2a7ee69b 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/elements/functions.php +++ b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/elements/functions.php @@ -9,10 +9,9 @@ */ function edds_stripe_connect_can_manage_keys() { - $stripe_connect_account_id = edd_get_option( 'stripe_connect_account_id', false ); - $secret = edd_is_test_mode() ? edd_get_option( 'test_secret_key' ) : edd_get_option( 'live_secret_key' ); + $secret = edd_is_test_mode() ? edd_get_option( 'test_secret_key' ) : edd_get_option( 'live_secret_key' ); - return empty( $stripe_connect_account_id ) && $secret; + return $secret && empty( edd_stripe()->connect()->get_connect_id() ); } /** @@ -21,6 +20,7 @@ function edds_stripe_connect_can_manage_keys() { * If the user is gated into the legacy mode, set the default to card-elements. * * @since 2.9.0 + * @since 2.9.5.1 We're now listening for an elements_mode flag in POST requests. * * @return string The elements mode string. */ @@ -43,6 +43,17 @@ function edds_get_elements_mode() { ( isset( $_GET['action'] ) && 'update' === $_GET['action'] ) && ( isset( $_GET['subscription_id'] ) && is_numeric( $_GET['subscription_id'] ) ) ) { + add_filter( 'edd_get_option_stripe_split_payment_fields', '__return_false' ); + return 'card-elements'; + } + + /** + * Card elements does a lot with AJAX requests, which will lose the context of being on the Subscription update form, so + * we are sending in a flag for using card elements with the elements_mode equal to 'card-elements' in those POST requests. + * + * @since 2.9.5.1 + */ + if ( isset( $_POST['elements_mode'] ) && 'card-elements' === $_POST['elements_mode'] ) { return 'card-elements'; } diff --git a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/elements/payment-elements.php b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/elements/payment-elements.php index 0b65117c..6429036d 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/elements/payment-elements.php +++ b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/elements/payment-elements.php @@ -250,6 +250,28 @@ function edds_get_stripe_payment_elements_fields() { return apply_filters( 'edds_stripe_payment_elements_fields', $default_fields ); } +/** + * Returns an array of terms for the payment elements. + * + * @since 2.9.4 + * + * @return array The terms array by payment method. + */ +function edds_get_stripe_payment_elements_terms() { + $terms = array( 'card' => 'auto' ); + + /** + * Allows filtering the payment elements terms. + * + * @see https://stripe.com/docs/js/elements_object/create_payment_element#payment_element_create-options-terms + * + * @since 2.9.4 + * @param array The terms array by payment method. + */ + + return apply_filters( 'edds_stripe_payment_elements_terms', $terms ); +} + /** * Gathers all the possible customizations for the Stripe Payment Elements. * @@ -273,6 +295,7 @@ function edds_gather_payment_element_customizations() { 'fonts' => edds_get_stripe_payment_elements_fonts(), 'paymentMethodTypes' => edds_payment_element_payment_method_types(), 'fields' => edds_get_stripe_payment_elements_fields(), + 'terms' => edds_get_stripe_payment_elements_terms(), 'i18n' => array( 'errorMessages' => edds_get_localized_error_messages(), ), diff --git a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/payment-actions/card-elements-actions.php b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/payment-actions/card-elements-actions.php index 778c1303..a65c59a4 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/payment-actions/card-elements-actions.php +++ b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/payment-actions/card-elements-actions.php @@ -283,10 +283,8 @@ function edds_process_purchase_form( $purchase_data ) { $intent_args ); - $stripe_connect_account_id = edd_get_option( 'stripe_connect_account_id' ); - if ( - ! empty( $stripe_connect_account_id ) && + ! empty( edd_stripe()->connect()->get_connect_id() ) && true === edds_stripe_connect_account_country_supports_application_fees() ) { $intent_args['application_fee_amount'] = round( $amount * 0.02 ); diff --git a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php index fe52a73c..bc0f14e8 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php +++ b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php @@ -234,10 +234,10 @@ function edds_process_purchase_form( $purchase_data ) { $intent_args ); - $stripe_connect_account_id = edd_get_option( 'stripe_connect_account_id' ); + $intent_type = 'PaymentIntent'; if ( - ! empty( $stripe_connect_account_id ) && + ! empty( edd_stripe()->connect()->get_connect_id() ) && true === edds_stripe_connect_account_country_supports_application_fees() ) { $intent_args['application_fee_amount'] = round( $amount * 0.02 ); diff --git a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/payment-methods/apple-pay.php b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/payment-methods/apple-pay.php index 9b41890d..8fae6e68 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/payment-methods/apple-pay.php +++ b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/payment-methods/apple-pay.php @@ -78,11 +78,10 @@ function edds_apple_pay_admin_notices_print() { wp_enqueue_script( 'edds-admin-notices' ); try { - $is_connected = edd_get_option( 'stripe_connect_account_id', '' ); - $error = edd_get_option( 'stripe_apple_pay_domain_error', '' ); - $test_mode = edd_is_test_mode(); + $error = edd_get_option( 'stripe_apple_pay_domain_error', '' ); + $test_mode = edd_is_test_mode(); - if ( ! empty( $is_connected ) && ! empty( $error ) && false === $test_mode ) { + if ( ! empty( edd_stripe()->connect()->is_connected ) && ! empty( $error ) && false === $test_mode ) { $notices->output( 'apple-pay-' . $_SERVER['HTTP_HOST'] ); } } catch( Exception $e ) {} @@ -189,8 +188,7 @@ function edds_apple_pay_create_directory_and_move_file() { * @since 2.8.0 */ function edds_apple_pay_check_domain() { - $is_connected = edd_get_option( 'stripe_connect_account_id', '' ); - if ( empty( $is_connected ) ) { + if ( empty( edd_stripe()->connect()->is_connected ) ) { return; } @@ -221,7 +219,7 @@ add_action( 'admin_init', 'edds_apple_pay_check_domain', 10 ); */ function edds_apple_pay_verify_domain() { // If Stripe isn't connected, just return. - if ( empty( edd_get_option( 'stripe_connect_account_id', '' ) ) ) { + if ( empty( edd_stripe()->connect()->is_connected ) ) { return; } @@ -258,7 +256,7 @@ function edds_apple_pay_verify_domain() { // Create directory and move file if needed. edds_apple_pay_create_directory_and_move_file(); - $stripe_connect_account_id = edd_get_option( 'stripe_connect_account_id', '' ); + $stripe_connect_account_id = edd_stripe()->connect()->get_connect_id(); if ( empty( $stripe_connect_account_id ) || // If we don't have a stripe connect account ID diff --git a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/scripts.php b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/scripts.php index ef603346..ba1dfd06 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/scripts.php +++ b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/scripts.php @@ -160,7 +160,7 @@ function edd_stripe_connect_admin_script( $hook ) { return; } - wp_enqueue_style( 'edd-stripe-admin-styles', EDDSTRIPE_PLUGIN_URL . 'assets/css/build/admin.min.css', array(), EDD_STRIPE_VERSION ); + edd_stripe_connect_admin_style(); wp_enqueue_script( 'edd-stripe-admin-scripts', EDDSTRIPE_PLUGIN_URL . 'assets/js/build/admin.min.js', array( 'jquery' ), EDD_STRIPE_VERSION ); @@ -180,3 +180,19 @@ function edd_stripe_connect_admin_script( $hook ) { ); } add_action( 'admin_enqueue_scripts', 'edd_stripe_connect_admin_script' ); + +/** + * Enqueues the Stripe admin style. + * + * @since 2.9.3 + * + * @return void + */ +function edd_stripe_connect_admin_style() { + wp_enqueue_style( + 'edd-stripe-admin-styles', + EDDSTRIPE_PLUGIN_URL . 'assets/css/build/admin.min.css', + array(), + EDD_STRIPE_VERSION + ); +} diff --git a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/template-functions.php b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/template-functions.php index 63ed6400..da9402fb 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/template-functions.php +++ b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/template-functions.php @@ -120,6 +120,7 @@ function edds_output_payment_elements_form() { // Payment Elements needs to not allow checking out with mixed carts or multiple subscriptions. if ( function_exists( 'edd_recurring' ) ) { if ( ( count( edd_get_cart_contents() ) > 1 && edd_recurring()->cart_contains_recurring() ) || edd_recurring()->cart_is_mixed() ) { + add_filter( 'edd_checkout_button_purchase', '__return_empty_string', 999 ); ?>

    diff --git a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/vendor/composer/InstalledVersions.php b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/vendor/composer/InstalledVersions.php index 51e734a7..c6b54af7 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/vendor/composer/InstalledVersions.php +++ b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/vendor/composer/InstalledVersions.php @@ -98,7 +98,7 @@ class InstalledVersions { foreach (self::getInstalled() as $installed) { if (isset($installed['versions'][$packageName])) { - return $includeDevRequirements || !isset($installed['versions'][$packageName]['dev_requirement']) || $installed['versions'][$packageName]['dev_requirement'] === false; + return $includeDevRequirements || empty($installed['versions'][$packageName]['dev_requirement']); } } @@ -119,7 +119,7 @@ class InstalledVersions */ public static function satisfies(VersionParser $parser, $packageName, $constraint) { - $constraint = $parser->parseConstraints((string) $constraint); + $constraint = $parser->parseConstraints($constraint); $provided = $parser->parseConstraints(self::getVersionRanges($packageName)); return $provided->matches($constraint); @@ -328,9 +328,7 @@ class InstalledVersions if (isset(self::$installedByVendor[$vendorDir])) { $installed[] = self::$installedByVendor[$vendorDir]; } elseif (is_file($vendorDir.'/composer/installed.php')) { - /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array} $required */ - $required = require $vendorDir.'/composer/installed.php'; - $installed[] = self::$installedByVendor[$vendorDir] = $required; + $installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php'; if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { self::$installed = $installed[count($installed) - 1]; } @@ -342,17 +340,12 @@ class InstalledVersions // only require the installed.php file if this file is loaded from its dumped location, // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 if (substr(__DIR__, -8, 1) !== 'C') { - /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array} $required */ - $required = require __DIR__ . '/installed.php'; - self::$installed = $required; + self::$installed = require __DIR__ . '/installed.php'; } else { self::$installed = array(); } } - - if (self::$installed !== array()) { - $installed[] = self::$installed; - } + $installed[] = self::$installed; return $installed; } diff --git a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/vendor/composer/installed.php b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/vendor/composer/installed.php index 48d09792..87dd81cb 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/vendor/composer/installed.php +++ b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/vendor/composer/installed.php @@ -1,9 +1,9 @@ array( 'name' => 'easy-digital-downloads/edd-stripe', - 'pretty_version' => '2.9.2.2', - 'version' => '2.9.2.2', - 'reference' => '7e59ac4f4357cb3b388182e0601056f60f0b2407', + 'pretty_version' => 'dev-master', + 'version' => 'dev-master', + 'reference' => '53b4520542b33c13127f604da77f09f7cf9cf902', 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), @@ -11,9 +11,9 @@ ), 'versions' => array( 'easy-digital-downloads/edd-stripe' => array( - 'pretty_version' => '2.9.2.2', - 'version' => '2.9.2.2', - 'reference' => '7e59ac4f4357cb3b388182e0601056f60f0b2407', + 'pretty_version' => 'dev-master', + 'version' => 'dev-master', + 'reference' => '53b4520542b33c13127f604da77f09f7cf9cf902', 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), diff --git a/wp-content/plugins/easy-digital-downloads/includes/misc-functions.php b/wp-content/plugins/easy-digital-downloads/includes/misc-functions.php index e70a31d3..c836e782 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/misc-functions.php +++ b/wp-content/plugins/easy-digital-downloads/includes/misc-functions.php @@ -1260,7 +1260,7 @@ function edd_get_bot_name() { function edd_redirect( $location = '', $status = 302 ) { // Prevent redirects in unit tests. - if ( (bool) ( defined( 'WP_TESTS_DIR' ) && WP_TESTS_DIR ) || function_exists( '_manually_load_plugin' ) ) { + if ( edd_is_doing_unit_tests() ) { return; } @@ -1932,6 +1932,16 @@ function edd_is_inactive_pro() { return ! $pass_manager->isPro(); } +/** + * Whether unit tests are running. + * + * @since 3.1.2 + * @return bool + */ +function edd_is_doing_unit_tests() { + return (bool) ( ( defined( 'EDD_DOING_TESTS' ) && EDD_DOING_TESTS ) || function_exists( '_manually_load_plugin' ) ); +} + /** * Polyfills for is_countable and is_iterable * diff --git a/wp-content/plugins/easy-digital-downloads/includes/orders/functions/actions.php b/wp-content/plugins/easy-digital-downloads/includes/orders/functions/actions.php index 4c2ca8d8..0cbf6eaa 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/orders/functions/actions.php +++ b/wp-content/plugins/easy-digital-downloads/includes/orders/functions/actions.php @@ -187,6 +187,7 @@ function edd_add_manual_order( $args = array() ) { 'discount' => $order_discount, 'total' => $order_total, 'date_created' => $date, + 'order_number' => edd_set_order_number(), ) ); @@ -425,22 +426,6 @@ function edd_add_manual_order( $args = array() ) { edd_update_order_meta( $order_id, 'unlimited_downloads', 1 ); } - // Setup order number. - $order_number = ''; - - if ( edd_get_option( 'enable_sequential' ) ) { - $number = edd_get_next_payment_number(); - - $order_number = edd_format_payment_number( $number ); - - update_option( 'edd_last_payment_number', $number ); - - // Update totals & maybe add order number. - edd_update_order( $order_id, array( - 'order_number' => $order_number, - ) ); - } - // Stop purchase receipt from being sent. if ( ! isset( $order_data['edd_order_send_receipt'] ) ) { remove_action( 'edd_complete_purchase', 'edd_trigger_purchase_receipt', 999 ); diff --git a/wp-content/plugins/easy-digital-downloads/includes/orders/functions/orders.php b/wp-content/plugins/easy-digital-downloads/includes/orders/functions/orders.php index 165a719b..e3c1c119 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/orders/functions/orders.php +++ b/wp-content/plugins/easy-digital-downloads/includes/orders/functions/orders.php @@ -791,7 +791,8 @@ function edd_build_order( $order_data = array() ) { unset( $order_args['date_created'] ); edd_update_order( $order_id, $order_args ); } else { - $order_id = edd_add_order( $order_args ); + $order_args['order_number'] = edd_set_order_number(); + $order_id = edd_add_order( $order_args ); } // If there is no order ID at this point, something went wrong. @@ -1141,18 +1142,8 @@ function edd_build_order( $order_data = array() ) { } } - // Setup order number. - if ( edd_get_option( 'enable_sequential' ) ) { - $number = edd_get_next_payment_number(); - - $order_args['order_number'] = edd_format_payment_number( $number ); - - update_option( 'edd_last_payment_number', $number ); - } - // Update the order with all of the newly computed values. edd_update_order( $order_id, array( - 'order_number' => $order_args['order_number'], 'subtotal' => $subtotal, 'tax' => $total_tax, 'discount' => $total_discount, @@ -1373,3 +1364,15 @@ function edd_generate_order_payment_key( $key ) { */ return apply_filters( 'edd_generate_order_payment_key', $payment_key, $key ); } + +/** + * Helper function to get and maybe update the order number. + * + * @since 3.1.1.2 + * @return string + */ +function edd_set_order_number() { + $order_number = new EDD\Orders\Number(); + + return $order_number->apply(); +} diff --git a/wp-content/plugins/easy-digital-downloads/includes/payments/class-edd-payment.php b/wp-content/plugins/easy-digital-downloads/includes/payments/class-edd-payment.php index ecfc82d7..f66044f9 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/payments/class-edd-payment.php +++ b/wp-content/plugins/easy-digital-downloads/includes/payments/class-edd-payment.php @@ -634,14 +634,12 @@ class EDD_Payment { } } - if ( edd_get_option( 'enable_sequential' ) ) { - $number = edd_get_next_payment_number(); - $this->number = edd_format_payment_number( $number ); + $order_number = edd_set_order_number(); + if ( $order_number ) { + $this->number = $order_number; $this->update_meta( '_edd_payment_number', $this->number ); $order_data['order_number'] = $this->number; - - update_option( 'edd_last_payment_number', $number ); } edd_update_order( $order_id, $order_data ); diff --git a/wp-content/plugins/easy-digital-downloads/includes/payments/class-payments-query.php b/wp-content/plugins/easy-digital-downloads/includes/payments/class-payments-query.php index 15ed96d8..412efdb3 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/payments/class-payments-query.php +++ b/wp-content/plugins/easy-digital-downloads/includes/payments/class-payments-query.php @@ -696,7 +696,7 @@ class EDD_Payments_Query extends EDD_Stats { } if ( ! is_null( $this->args['post__not_in'] ) ) { - $arguments['id__in'] = $this->args['post__not_in']; + $arguments['id__not_in'] = $this->args['post__not_in']; } if ( ! empty( $this->args['mode'] ) && 'all' !== $this->args['mode'] ) { diff --git a/wp-content/plugins/easy-digital-downloads/includes/payments/functions.php b/wp-content/plugins/easy-digital-downloads/includes/payments/functions.php index 6d16509b..d9f14141 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/payments/functions.php +++ b/wp-content/plugins/easy-digital-downloads/includes/payments/functions.php @@ -1143,106 +1143,30 @@ function edd_get_payment_number( $order = 0 ) { /** * Formats the order number with the prefix and postfix. * + * @todo As of 3.1.2, no longer used, but not officially deprecated. Deprecate. * @since 2.4 * * @param int $number The order number to format. * @return string The formatted order number */ function edd_format_payment_number( $number ) { - if ( ! edd_get_option( 'enable_sequential' ) ) { - return $number; - } + $order_number = new EDD\Orders\Number(); - if ( ! is_numeric( $number ) ) { - return $number; - } - - $prefix = edd_get_option( 'sequential_prefix' ); - $number = absint( $number ); - $postfix = edd_get_option( 'sequential_postfix' ); - - $formatted_number = $prefix . $number . $postfix; - - return apply_filters( 'edd_format_payment_number', $formatted_number, $prefix, $number, $postfix ); -} - -/** - * Gets the next available order number. - * - * This is used when inserting a new order. - * - * @since 2.0 - * - * @return string $number The next available order number. - */ -function edd_get_next_payment_number() { - if ( ! edd_get_option( 'enable_sequential' ) ) { - return false; - } - - $number = get_option( 'edd_last_payment_number' ); - $start = edd_get_option( 'sequential_start', 1 ); - $increment_number = true; - - if ( false !== $number ) { - if ( empty( $number ) ) { - $number = $start; - $increment_number = false; - } - } else { - $last_order = edd_get_orders( array( - 'number' => 1, - 'orderby' => 'id', - 'order' => 'desc', - ) ); - - if ( ! empty( $last_order ) && $last_order[0] instanceof EDD\Orders\Order ) { - $number = (int) $last_order[0]->get_number(); - } - - if ( ! empty( $number ) && $number !== (int) $last_order[0]->id ) { - $number = edd_remove_payment_prefix_postfix( $number ); - } else { - $number = $start; - $increment_number = false; - } - } - - $increment_number = apply_filters( 'edd_increment_payment_number', $increment_number, $number ); - - if ( $increment_number ) { - $number++; - } - - return apply_filters( 'edd_get_next_payment_number', $number ); + return $order_number->format( $number ); } /** * Given a given a number, remove the pre/postfix. * * @since 2.4 - * + * @todo As of 3.1.2, no longer used, but not officially deprecated. Deprecate. * @param string $number The formatted number to increment. * @return string The new order number without prefix and postfix. */ function edd_remove_payment_prefix_postfix( $number ) { - $prefix = (string) edd_get_option( 'sequential_prefix' ); - $postfix = (string) edd_get_option( 'sequential_postfix' ); + $order_number = new EDD\Orders\Number(); - // Remove prefix - $number = preg_replace( '/' . $prefix . '/', '', $number, 1 ); - - // Remove the postfix - $length = strlen( $number ); - $postfix_pos = strrpos( $number, strval( $postfix ) ); - if ( false !== $postfix_pos ) { - $number = substr_replace( $number, '', $postfix_pos, $length ); - } - - // Ensure it's a whole number - $number = intval( $number ); - - return apply_filters( 'edd_remove_payment_prefix_postfix', $number, $prefix, $postfix ); + return $order_number->unformat( $number ); } /** diff --git a/wp-content/plugins/easy-digital-downloads/includes/process-purchase.php b/wp-content/plugins/easy-digital-downloads/includes/process-purchase.php index 700f8c82..efa6b373 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/process-purchase.php +++ b/wp-content/plugins/easy-digital-downloads/includes/process-purchase.php @@ -1310,6 +1310,10 @@ add_action( 'edd_checkout_error_checks', 'edd_check_purchase_email_length', 10, */ function edd_process_straight_to_gateway( $data ) { + if ( empty( $data['edd_straight_to_gateway'] ) || ! wp_verify_nonce( $data['edd_straight_to_gateway'], 'edd_straight_to_gateway' ) ) { + return; + } + $download_id = $data['download_id']; $options = isset( $data['edd_options'] ) ? $data['edd_options'] : array(); $quantity = isset( $data['edd_download_quantity'] ) ? $data['edd_download_quantity'] : 1; diff --git a/wp-content/plugins/easy-digital-downloads/includes/shortcodes.php b/wp-content/plugins/easy-digital-downloads/includes/shortcodes.php index 8b586f1d..943465dc 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/shortcodes.php +++ b/wp-content/plugins/easy-digital-downloads/includes/shortcodes.php @@ -797,6 +797,9 @@ function edd_process_profile_editor_updates( $data ) { // Fetch customer record. $customer = edd_get_customer_by( 'user_id', $user_id ); + if ( empty( $customer->user_id ) || $customer->user_id != $user_id ) { // phpcs:ignore WordPress.PHP.StrictComparisons.LooseComparison + return false; + } $display_name = isset( $data['edd_display_name'] ) ? sanitize_text_field( $data['edd_display_name'] ) : $old_user_data->display_name; $first_name = isset( $data['edd_first_name'] ) ? sanitize_text_field( $data['edd_first_name'] ) : $old_user_data->first_name; @@ -947,43 +950,46 @@ function edd_process_profile_editor_updates( $data ) { add_action( 'edd_edit_user_profile', 'edd_process_profile_editor_updates' ); /** - * Process the 'remove' URL on the profile editor when customers wish to remove an email address + * Process the 'remove' URL on the profile editor when customers wish to remove an email address. * * @since 2.6 + * @param array $data The array of data passed from the profile editor. * @return void */ -function edd_process_profile_editor_remove_email() { +function edd_process_profile_editor_remove_email( $data ) { if ( ! is_user_logged_in() ) { - return false; + return; } // Pending users can't edit their profile if ( edd_user_pending_verification() ) { - return false; + return; } // Nonce security - if ( ! wp_verify_nonce( $_GET['_wpnonce'], 'edd-remove-customer-email' ) ) { - return false; + if ( ! wp_verify_nonce( $data['_wpnonce'], 'edd-remove-customer-email' ) ) { + return; } - if ( empty( $_GET['email'] ) || ! is_email( $_GET['email'] ) ) { - return false; + if ( empty( $data['email'] ) || ! is_email( $data['email'] ) ) { + return; } - $customer = new EDD_Customer( get_current_user_id(), true ); - if ( $customer->remove_email( $_GET['email'] ) ) { + $user_id = get_current_user_id(); + $customer = new EDD_Customer( $user_id, true ); - $url = add_query_arg( 'updated', true, $_GET['redirect'] ); + if ( $customer->user_id == $user_id && $customer->remove_email( $data['email'] ) ) { + + $url = add_query_arg( 'updated', true, $data['redirect'] ); $user = wp_get_current_user(); $user_login = ! empty( $user->user_login ) ? $user->user_login : edd_get_bot_name(); - $customer_note = sprintf( __( 'Email address %s removed by %s', 'easy-digital-downloads' ), sanitize_email( $_GET['email'] ), $user_login ); + $customer_note = sprintf( __( 'Email address %s removed by %s', 'easy-digital-downloads' ), sanitize_email( $data['email'] ), $user_login ); $customer->add_note( $customer_note ); } else { edd_set_error( 'profile-remove-email-failure', __( 'Error removing email address from profile. Please try again later.', 'easy-digital-downloads' ) ); - $url = $_GET['redirect']; + $url = $data['redirect']; } edd_redirect( $url ); diff --git a/wp-content/plugins/easy-digital-downloads/includes/template-functions.php b/wp-content/plugins/easy-digital-downloads/includes/template-functions.php index 2cfa8cae..33ff9559 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/template-functions.php +++ b/wp-content/plugins/easy-digital-downloads/includes/template-functions.php @@ -224,6 +224,7 @@ function edd_get_purchase_link( $args = array() ) { is_free( $args['price_id'] ) ) { ?> + diff --git a/wp-content/plugins/easy-digital-downloads/includes/users/login.php b/wp-content/plugins/easy-digital-downloads/includes/users/login.php index a3733884..0cd0cfe6 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/users/login.php +++ b/wp-content/plugins/easy-digital-downloads/includes/users/login.php @@ -161,7 +161,7 @@ add_filter( 'login_url', 'edd_update_login_url', 10, 3 ); function edd_update_login_url( $url, $redirect_to, $force_reauth ) { // Don't change the login URL if the request is an admin request. - if ( is_admin() ) { + if ( ! edd_doing_ajax() && is_admin() ) { return $url; } diff --git a/wp-content/plugins/easy-digital-downloads/includes/users/lost-password.php b/wp-content/plugins/easy-digital-downloads/includes/users/lost-password.php index 1d670459..0e019d2a 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/users/lost-password.php +++ b/wp-content/plugins/easy-digital-downloads/includes/users/lost-password.php @@ -117,6 +117,13 @@ add_action( 'edd_user_lost_password', 'edd_handle_lost_password_request' ); * @return void */ function edd_handle_lost_password_request( $data ) { + + // Verify the nonce. + if ( empty( $data['edd_lost-password_nonce'] ) || ! wp_verify_nonce( $data['edd_lost-password_nonce'], 'edd-lost-password-nonce' ) ) { + edd_set_error( 'edd_lost_password', __( 'Your request could not be completed.', 'easy-digital-downloads' ) ); + return; + } + if ( 'POST' === $_SERVER['REQUEST_METHOD'] ) { $errors = retrieve_password(); if ( ! is_wp_error( $errors ) ) { @@ -127,8 +134,12 @@ function edd_handle_lost_password_request( $data ) { if ( $message ) { // WP_Error messages include "Error:" so we remove that here to prevent duplication. $message = explode( ':', $message ); - $message = ! empty( $message[1] ) ? trim( $message[1] ) : trim( $message[0] ); - edd_set_error( $id, $message ); + $output = trim( $message[0] ); + if ( ! empty( $message[1] ) ) { + unset( $message[0] ); + $output = trim( implode( ':', $message ) ); + } + edd_set_error( $error_code, $output ); } } } @@ -253,6 +264,11 @@ function edd_validate_password_reset( $data ) { wp_die( __( 'Invalid password reset request.', 'easy-digital-downloads' ), __( 'Error', 'easy-digital-downloads' ), array( 'response' => 400 ) ); } + // Verify the nonce. + if ( ! isset( $data['edd_resetpassword_nonce'] ) || ! wp_verify_nonce( $data['edd_resetpassword_nonce'], 'edd-reset-password-nonce' ) ) { + edd_set_error( 'password_reset_failed', __( 'Invalid password reset request.', 'easy-digital-downloads' ) ); + } + if ( empty( $data['rp_key'] ) ) { edd_set_error( 'password_reset_failed', __( 'Invalid password reset request.', 'easy-digital-downloads' ) ); } diff --git a/wp-content/plugins/easy-digital-downloads/languages/easy-digital-downloads.pot b/wp-content/plugins/easy-digital-downloads/languages/easy-digital-downloads.pot index 4a17f1b3..6c604fe2 100644 --- a/wp-content/plugins/easy-digital-downloads/languages/easy-digital-downloads.pot +++ b/wp-content/plugins/easy-digital-downloads/languages/easy-digital-downloads.pot @@ -2,22 +2,22 @@ # This file is distributed under the same license as the Easy Digital Downloads plugin. msgid "" msgstr "" -"Project-Id-Version: Easy Digital Downloads 3.1.1.4.2\n" +"Project-Id-Version: Easy Digital Downloads 3.1.2\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/easy-digital-downloads\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2023-05-01T18:15:45+00:00\n" +"POT-Creation-Date: 2023-06-07T21:13:39+00:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "X-Generator: WP-CLI 2.7.1\n" -"X-Domain: easy-digital-downloads\n" #. Plugin Name of the plugin #. Author of the plugin #: includes/blocks/includes/functions.php:27 #: src/Admin/Onboarding/Steps/Tools.php:128 +#: src/Admin/SiteHealth/Test.php:21 msgid "Easy Digital Downloads" msgstr "" @@ -43,7 +43,7 @@ msgstr "" #: includes/admin/admin-pages.php:88 #: includes/admin/reporting/reports.php:2184 #: includes/admin/settings/display-settings.php:40 -#: includes/admin/upgrades/upgrade-functions.php:1399 +#: includes/admin/upgrades/upgrade-functions.php:312 #: includes/post-types.php:129 #: includes/reports/reports-functions.php:336 msgid "Discounts" @@ -124,11 +124,11 @@ msgid "Enter emails and/or domains (starting with \"@\") and/or TLDs (starting w msgstr "" #: includes/admin/admin-deprecated-functions.php:43 -#: includes/admin/tools.php:315 +#: includes/admin/tools.php:326 msgid "Save" msgstr "" -#: includes/admin/admin-deprecated-functions.php:67 +#: includes/admin/admin-deprecated-functions.php:68 #: includes/admin/payments/actions.php:72 #: includes/admin/payments/actions.php:77 #: includes/admin/payments/actions.php:279 @@ -137,7 +137,8 @@ msgstr "" msgid "You do not have permission to edit this payment record" msgstr "" -#: includes/admin/admin-deprecated-functions.php:67 +#: includes/admin/admin-deprecated-functions.php:68 +#: includes/admin/admin-deprecated-functions.php:816 #: includes/admin/customers/customer-actions.php:310 #: includes/admin/customers/customer-actions.php:365 #: includes/admin/customers/customer-actions.php:557 @@ -157,7 +158,7 @@ msgstr "" #: includes/admin/downloads/dashboard-columns.php:190 #: includes/admin/import/class-batch-import-downloads.php:65 #: includes/admin/import/class-batch-import-payments.php:77 -#: includes/admin/import/class-batch-import.php:188 +#: includes/admin/import/class-batch-import.php:199 #: includes/admin/payments/actions.php:72 #: includes/admin/payments/actions.php:77 #: includes/admin/payments/actions.php:213 @@ -177,8 +178,8 @@ msgstr "" #: includes/admin/reporting/class-gateway-error-logs-list-table.php:109 #: includes/admin/reporting/export/class-batch-export.php:146 #: includes/admin/reporting/export/export-actions.php:24 -#: includes/admin/tools.php:1108 -#: includes/admin/tools.php:1114 +#: includes/admin/tools.php:1119 +#: includes/admin/tools.php:1125 #: includes/admin/tools/class-edd-tools-recount-all-stats.php:78 #: includes/admin/tools/class-edd-tools-recount-customer-stats.php:114 #: includes/admin/tools/class-edd-tools-recount-download-stats.php:117 @@ -186,28 +187,26 @@ msgstr "" #: includes/admin/tools/class-edd-tools-recount-store-earnings.php:157 #: includes/admin/tools/class-edd-tools-reset-stats.php:121 #: includes/admin/upgrades/classes/class-file-download-log-migration.php:134 -#: includes/admin/upgrades/upgrade-functions.php:335 -#: includes/admin/upgrades/upgrade-functions.php:648 -#: includes/admin/upgrades/upgrade-functions.php:718 -#: includes/admin/upgrades/upgrade-functions.php:815 -#: includes/admin/upgrades/upgrade-functions.php:926 -#: includes/admin/upgrades/upgrade-functions.php:1001 -#: includes/admin/upgrades/upgrade-functions.php:1119 -#: includes/admin/upgrades/upgrade-functions.php:1199 +#: includes/admin/upgrades/deprecated-upgrade-functions.php:239 +#: includes/admin/upgrades/deprecated-upgrade-functions.php:310 +#: includes/admin/upgrades/deprecated-upgrade-functions.php:407 +#: includes/admin/upgrades/deprecated-upgrade-functions.php:518 +#: includes/admin/upgrades/deprecated-upgrade-functions.php:593 +#: includes/admin/upgrades/deprecated-upgrade-functions.php:711 #: includes/admin/upgrades/v3/class-base.php:117 #: includes/api/class-edd-api.php:2030 #: includes/api/class-edd-api.php:2034 #: includes/api/class-edd-api.php:2046 #: includes/api/class-edd-api.php:2048 #: includes/blocks/includes/forms/recaptcha.php:180 -#: includes/cart/class-edd-cart.php:1451 -#: includes/cart/class-edd-cart.php:1465 +#: includes/cart/class-edd-cart.php:1452 +#: includes/cart/class-edd-cart.php:1466 #: includes/class-edd-license-handler.php:475 #: includes/deprecated-functions.php:488 #: includes/deprecated-functions.php:505 #: includes/deprecated-functions.php:513 #: includes/deprecated-functions.php:915 -#: includes/download-functions.php:1567 +#: includes/download-functions.php:1498 #: includes/EDD_SL_Plugin_Updater.php:486 #: includes/emails/actions.php:59 #: includes/emails/template.php:241 @@ -215,20 +214,20 @@ msgstr "" #: includes/gateways/functions.php:320 #: includes/gateways/manual.php:33 #: includes/gateways/paypal-standard.php:170 -#: includes/gateways/paypal/admin/connect.php:520 -#: includes/gateways/paypal/admin/connect.php:524 -#: includes/gateways/paypal/admin/connect.php:561 -#: includes/gateways/paypal/admin/connect.php:565 -#: includes/gateways/paypal/admin/connect.php:707 +#: includes/gateways/paypal/admin/connect.php:568 +#: includes/gateways/paypal/admin/connect.php:572 +#: includes/gateways/paypal/admin/connect.php:609 +#: includes/gateways/paypal/admin/connect.php:613 +#: includes/gateways/paypal/admin/connect.php:761 #: includes/gateways/paypal/checkout-actions.php:114 -#: includes/gateways/stripe/includes/admin/upgrade-functions.php:112 +#: includes/gateways/stripe/includes/admin/upgrade-functions.php:110 #: includes/process-download.php:296 #: includes/process-download.php:924 #: includes/query-filters.php:51 #: includes/user-functions.php:906 #: includes/user-functions.php:931 #: includes/user-functions.php:983 -#: includes/users/lost-password.php:253 +#: includes/users/lost-password.php:264 #: src/Extensions/Updater.php:480 msgid "Error" msgstr "" @@ -275,6 +274,34 @@ msgstr "" msgid "Extensions" msgstr "" +#: includes/admin/admin-deprecated-functions.php:301 +msgid "System Information" +msgstr "" + +#: includes/admin/admin-deprecated-functions.php:304 +msgid "Use the system information below to help troubleshoot problems." +msgstr "" + +#: includes/admin/admin-deprecated-functions.php:315 +msgid "Download System Info File" +msgstr "" + +#: includes/admin/admin-deprecated-functions.php:316 +#: includes/admin/tools.php:1207 +msgid "Copy to Clipboard" +msgstr "" + +#: includes/admin/admin-deprecated-functions.php:816 +#: includes/admin/upgrades/deprecated-upgrade-functions.php:239 +#: includes/admin/upgrades/deprecated-upgrade-functions.php:310 +#: includes/admin/upgrades/deprecated-upgrade-functions.php:407 +#: includes/admin/upgrades/deprecated-upgrade-functions.php:518 +#: includes/admin/upgrades/deprecated-upgrade-functions.php:593 +#: includes/admin/upgrades/deprecated-upgrade-functions.php:711 +#: includes/gateways/stripe/includes/admin/upgrade-functions.php:110 +msgid "You do not have permission to do shop upgrades" +msgstr "" + #: includes/admin/admin-footer.php:27 msgid "Thank you for using Easy Digital Downloads! Please rate us on WordPress.org" msgstr "" @@ -283,7 +310,7 @@ msgstr "" #: includes/admin/customers/class-customer-table.php:242 #: includes/admin/payments/payments-history.php:159 #: includes/admin/settings/display-settings.php:37 -#: includes/admin/upgrades/upgrade-functions.php:1403 +#: includes/admin/upgrades/upgrade-functions.php:316 #: includes/orders/functions/types.php:85 msgid "Orders" msgstr "" @@ -341,7 +368,7 @@ msgid "API Key" msgstr "" #: includes/admin/class-api-keys-table.php:38 -#: includes/admin/tools.php:97 +#: includes/admin/tools.php:108 msgid "API Keys" msgstr "" @@ -386,270 +413,271 @@ msgstr "" msgid "No checkout page is configured. Set one in Settings." msgstr "" -#: includes/admin/class-edd-notices.php:326 +#: includes/admin/class-edd-notices.php:327 msgid "The files in %s are not currently protected." msgstr "" -#: includes/admin/class-edd-notices.php:327 +#: includes/admin/class-edd-notices.php:328 msgid "To protect them, you must add this NGINX redirect rule." msgstr "" -#: includes/admin/class-edd-notices.php:328 -#: includes/admin/class-edd-notices.php:347 +#: includes/admin/class-edd-notices.php:329 +#: includes/admin/class-edd-notices.php:348 msgid "If you have already done this, or it does not apply to your site, you may permenently %s." msgstr "" -#: includes/admin/class-edd-notices.php:328 -#: includes/admin/class-edd-notices.php:347 +#: includes/admin/class-edd-notices.php:329 +#: includes/admin/class-edd-notices.php:348 msgid "dismiss this notice" msgstr "" -#: includes/admin/class-edd-notices.php:345 +#. translators: the upload directory +#: includes/admin/class-edd-notices.php:346 +#: src/Admin/SiteHealth/Direct.php:219 msgid "The .htaccess file is missing from: %s" msgstr "" -#: includes/admin/class-edd-notices.php:346 +#. translators: the upload directory +#: includes/admin/class-edd-notices.php:347 +#: src/Admin/SiteHealth/Direct.php:224 msgid "First, please resave the Misc settings tab a few times. If this warning continues to appear, create a file called \".htaccess\" in the %s directory, and copy the following into it:" msgstr "" -#: includes/admin/class-edd-notices.php:368 +#: includes/admin/class-edd-notices.php:369 msgid "Easy Digital Downloads 2.5 contains a built in recount tool. Please deactivate the Easy Digital Downloads - Recount Earnings plugin" msgstr "" -#: includes/admin/class-edd-notices.php:402 +#: includes/admin/class-edd-notices.php:403 msgid "Review Tax Rates" msgstr "" #. translators: Link to review existing tax rates. -#: includes/admin/class-edd-notices.php:409 +#: includes/admin/class-edd-notices.php:410 msgid "A default tax rate was detected." msgstr "" #. translators: Link to review existing tax rates. -#: includes/admin/class-edd-notices.php:409 +#: includes/admin/class-edd-notices.php:410 msgid "This setting is no longer used in this version of Easy Digital Downloads. Please confirm your regional tax rates are properly configured and update tax settings to remove this notice." msgstr "" -#: includes/admin/class-edd-notices.php:428 +#: includes/admin/class-edd-notices.php:432 msgid "Settings updated." msgstr "" -#: includes/admin/class-edd-notices.php:444 -msgid "Fix this" +#: includes/admin/class-edd-notices.php:459 +msgid "Easy Digital Downloads is migrating orders. Sales and earnings data for your store will be updated when all orders have been migrated." msgstr "" -#: includes/admin/class-edd-notices.php:450 -msgid "No payment gateways are enabled. %s." -msgstr "" - -#: includes/admin/class-edd-notices.php:480 +#: includes/admin/class-edd-notices.php:488 msgid "Discount code added." msgstr "" -#: includes/admin/class-edd-notices.php:486 +#: includes/admin/class-edd-notices.php:494 msgid "There was a problem adding that discount code, please try again." msgstr "" -#: includes/admin/class-edd-notices.php:493 +#: includes/admin/class-edd-notices.php:501 msgid "A discount with that code already exists, please use a different code." msgstr "" -#: includes/admin/class-edd-notices.php:500 +#: includes/admin/class-edd-notices.php:508 msgid "Discount code updated." msgstr "" -#: includes/admin/class-edd-notices.php:506 +#: includes/admin/class-edd-notices.php:514 msgid "No changes were made to that discount code." msgstr "" -#: includes/admin/class-edd-notices.php:512 +#: includes/admin/class-edd-notices.php:520 msgid "There was a problem updating that discount code, please try again." msgstr "" -#: includes/admin/class-edd-notices.php:519 +#: includes/admin/class-edd-notices.php:527 msgid "The discount code could not be added because one or more of the required fields was empty, please try again." msgstr "" -#: includes/admin/class-edd-notices.php:526 +#: includes/admin/class-edd-notices.php:534 msgid "The discount code entered is invalid; only alphanumeric characters are allowed, please try again." msgstr "" -#: includes/admin/class-edd-notices.php:533 +#: includes/admin/class-edd-notices.php:541 msgid "The discount amount must be a valid percentage or numeric flat amount. Please try again." msgstr "" -#: includes/admin/class-edd-notices.php:540 +#: includes/admin/class-edd-notices.php:548 msgid "Discount code deleted." msgstr "" -#: includes/admin/class-edd-notices.php:546 +#: includes/admin/class-edd-notices.php:554 msgid "There was a problem deleting that discount code, please try again." msgstr "" -#: includes/admin/class-edd-notices.php:553 +#: includes/admin/class-edd-notices.php:561 msgid "Discount code activated." msgstr "" -#: includes/admin/class-edd-notices.php:559 +#: includes/admin/class-edd-notices.php:567 msgid "There was a problem activating that discount code, please try again." msgstr "" -#: includes/admin/class-edd-notices.php:566 +#: includes/admin/class-edd-notices.php:574 msgid "Discount code deactivated." msgstr "" -#: includes/admin/class-edd-notices.php:572 +#: includes/admin/class-edd-notices.php:580 msgid "There was a problem deactivating that discount code, please try again." msgstr "" -#: includes/admin/class-edd-notices.php:585 +#: includes/admin/class-edd-notices.php:593 msgid "The reports have been refreshed." msgstr "" -#: includes/admin/class-edd-notices.php:597 +#: includes/admin/class-edd-notices.php:605 msgid "The settings have been imported." msgstr "" -#: includes/admin/class-edd-notices.php:603 +#: includes/admin/class-edd-notices.php:611 msgid "API keys successfully generated." msgstr "" -#: includes/admin/class-edd-notices.php:609 +#: includes/admin/class-edd-notices.php:617 msgid "The specified user already has API keys." msgstr "" -#: includes/admin/class-edd-notices.php:616 +#: includes/admin/class-edd-notices.php:624 msgid "API keys successfully regenerated." msgstr "" -#: includes/admin/class-edd-notices.php:622 +#: includes/admin/class-edd-notices.php:630 msgid "API keys successfully revoked." msgstr "" -#: includes/admin/class-edd-notices.php:629 +#: includes/admin/class-edd-notices.php:637 msgid "The test email was sent successfully." msgstr "" -#: includes/admin/class-edd-notices.php:637 +#: includes/admin/class-edd-notices.php:645 msgid "The test email summary was sent successfully." msgstr "" -#: includes/admin/class-edd-notices.php:646 +#: includes/admin/class-edd-notices.php:654 msgid "Your extensions could not be refreshed because you have not verified your license key." msgstr "" -#: includes/admin/class-edd-notices.php:660 +#: includes/admin/class-edd-notices.php:668 msgid "The note has been added successfully." msgstr "" -#: includes/admin/class-edd-notices.php:666 +#: includes/admin/class-edd-notices.php:674 msgid "The order has been updated successfully." msgstr "" -#: includes/admin/class-edd-notices.php:672 +#: includes/admin/class-edd-notices.php:680 msgid "Order successfully created." msgstr "" -#: includes/admin/class-edd-notices.php:678 +#: includes/admin/class-edd-notices.php:686 msgid "The order has been moved to the trash." msgstr "" -#: includes/admin/class-edd-notices.php:684 +#: includes/admin/class-edd-notices.php:692 msgid "The order has been restored." msgstr "" -#: includes/admin/class-edd-notices.php:690 +#: includes/admin/class-edd-notices.php:698 msgid "The order has been deleted." msgstr "" -#: includes/admin/class-edd-notices.php:696 +#: includes/admin/class-edd-notices.php:704 msgid "The purchase receipt has been resent." msgstr "" -#: includes/admin/class-edd-notices.php:702 +#: includes/admin/class-edd-notices.php:710 msgid "Failed to send purchase receipt." msgstr "" -#: includes/admin/class-edd-notices.php:708 +#: includes/admin/class-edd-notices.php:716 msgid "The order note has been deleted." msgstr "" -#: includes/admin/class-edd-notices.php:720 +#: includes/admin/class-edd-notices.php:728 msgid "Customer successfully deleted." msgstr "" -#: includes/admin/class-edd-notices.php:726 +#: includes/admin/class-edd-notices.php:734 msgid "User successfully verified." msgstr "" -#: includes/admin/class-edd-notices.php:732 +#: includes/admin/class-edd-notices.php:740 msgid "Customer email added." msgstr "" -#: includes/admin/class-edd-notices.php:738 +#: includes/admin/class-edd-notices.php:746 msgid "Customer email deleted." msgstr "" -#: includes/admin/class-edd-notices.php:744 +#: includes/admin/class-edd-notices.php:752 msgid "Failed to delete customer email." msgstr "" -#: includes/admin/class-edd-notices.php:751 +#: includes/admin/class-edd-notices.php:759 msgid "Primary email updated for customer." msgstr "" -#: includes/admin/class-edd-notices.php:757 +#: includes/admin/class-edd-notices.php:765 msgid "Failed to set primary email." msgstr "" -#: includes/admin/class-edd-notices.php:764 +#: includes/admin/class-edd-notices.php:772 msgid "Customer address deleted." msgstr "" -#: includes/admin/class-edd-notices.php:770 +#: includes/admin/class-edd-notices.php:778 msgid "Failed to delete customer address." msgstr "" #. Translators: 1. opening strong tag, do not translate; 2. closing strong tag, do not translate -#: includes/admin/class-edd-notices.php:783 +#: includes/admin/class-edd-notices.php:791 msgid "Congratulations! You are now running %1$sEasy Digital Downloads (Pro)%2$s." msgstr "" -#: includes/admin/class-edd-notices.php:828 +#: includes/admin/class-edd-notices.php:836 msgid "Easy Digital Downloads debug logging is enabled. Please only leave it enabled for as long as it is needed for troubleshooting." msgstr "" -#: includes/admin/class-edd-notices.php:831 +#: includes/admin/class-edd-notices.php:839 msgid "View Debug Log" msgstr "" -#: includes/admin/class-edd-notices.php:832 +#: includes/admin/class-edd-notices.php:840 msgid "Delete Log File and Disable Logging" msgstr "" -#: includes/admin/class-edd-notices.php:848 +#: includes/admin/class-edd-notices.php:856 #: includes/admin/customers/customer-actions.php:606 +#: includes/admin/emails/email-summary/class-edd-email-summary-admin.php:55 #: includes/admin/tools/class-edd-tools-recount-all-stats.php:78 #: includes/admin/tools/class-edd-tools-recount-download-stats.php:117 -#: includes/gateways/paypal/admin/connect.php:103 -#: includes/gateways/paypal/admin/connect.php:164 -#: includes/gateways/paypal/admin/connect.php:219 -#: includes/gateways/paypal/admin/connect.php:331 -#: includes/gateways/paypal/admin/connect.php:520 -#: includes/gateways/paypal/admin/connect.php:524 -#: includes/gateways/paypal/admin/connect.php:561 -#: includes/gateways/paypal/admin/connect.php:565 -#: includes/gateways/paypal/admin/connect.php:621 -#: includes/gateways/paypal/admin/connect.php:655 -#: includes/gateways/paypal/admin/connect.php:678 -#: includes/gateways/paypal/admin/connect.php:707 +#: includes/gateways/paypal/admin/connect.php:97 +#: includes/gateways/paypal/admin/connect.php:207 +#: includes/gateways/paypal/admin/connect.php:261 +#: includes/gateways/paypal/admin/connect.php:379 +#: includes/gateways/paypal/admin/connect.php:568 +#: includes/gateways/paypal/admin/connect.php:572 +#: includes/gateways/paypal/admin/connect.php:609 +#: includes/gateways/paypal/admin/connect.php:613 +#: includes/gateways/paypal/admin/connect.php:675 +#: includes/gateways/paypal/admin/connect.php:709 +#: includes/gateways/paypal/admin/connect.php:732 +#: includes/gateways/paypal/admin/connect.php:761 #: src/Admin/Promos/PromoHandler.php:139 #: src/Admin/Promos/PromoHandler.php:146 #: src/Admin/Promos/PromoHandler.php:151 msgid "You do not have permission to perform this action." msgstr "" -#: includes/admin/class-edd-notices.php:853 +#: includes/admin/class-edd-notices.php:861 msgid "The debug log has been cleared and logging has been disabled." msgstr "" @@ -664,7 +692,7 @@ msgstr "" #: includes/admin/settings/register-settings.php:1774 #: includes/admin/settings/register-settings.php:1778 #: includes/admin/settings/register-settings.php:1791 -#: includes/admin/tools.php:96 +#: includes/admin/tools.php:107 msgid "General" msgstr "" @@ -717,7 +745,7 @@ msgstr "" #: includes/admin/discounts/class-discount-codes-table.php:230 #: includes/admin/discounts/class-discount-codes-table.php:316 #: includes/admin/settings/register-settings.php:293 -#: includes/gateways/stripe/includes/template-functions.php:493 +#: includes/gateways/stripe/includes/template-functions.php:494 #: src/Admin/PassHandler/Handler.php:74 #: src/Licensing/Traits/Controls.php:83 msgid "Delete" @@ -774,13 +802,13 @@ msgstr "" #: includes/admin/reporting/class-export-payments.php:65 #: includes/admin/reporting/export/class-batch-export-payments.php:50 #: includes/admin/reporting/export/class-batch-export-taxed-orders.php:51 -#: includes/admin/tools.php:756 +#: includes/admin/tools.php:767 #: includes/admin/views/tmpl-tax-rates-table-add.php:17 #: includes/admin/views/tmpl-tax-rates-table-meta.php:16 #: includes/admin/views/tmpl-tax-rates-table-row.php:18 #: includes/blocks/views/checkout/purchase-form/address.php:8 -#: includes/gateways/stripe/includes/template-functions.php:562 -#: includes/gateways/stripe/includes/template-functions.php:571 +#: includes/gateways/stripe/includes/template-functions.php:563 +#: includes/gateways/stripe/includes/template-functions.php:572 #: templates/shortcode-profile-editor.php:162 msgid "Country" msgstr "" @@ -823,7 +851,7 @@ msgstr "" #: includes/admin/reporting/export/class-batch-export-sales-and-earnings.php:59 #: includes/admin/reporting/export/class-batch-export-sales.php:57 #: includes/admin/reporting/export/class-batch-export-taxed-orders.php:62 -#: includes/admin/tools.php:621 +#: includes/admin/tools.php:632 #: includes/blocks/views/orders/totals.php:38 #: includes/privacy-functions.php:946 #: includes/reports/reports-functions.php:316 @@ -853,7 +881,7 @@ msgstr "" #: includes/admin/reporting/export/class-batch-export-sales.php:50 #: includes/admin/reporting/export/class-batch-export-taxed-customers.php:43 #: includes/admin/reporting/export/class-batch-export-taxed-orders.php:43 -#: includes/admin/tools.php:512 +#: includes/admin/tools.php:523 #: includes/blocks/views/forms/registration.php:24 #: includes/emails/tags.php:185 #: templates/shortcode-register.php:25 @@ -869,8 +897,8 @@ msgstr "" #: includes/admin/customers/class-customer-table.php:186 #: includes/admin/payments/orders.php:141 -#: includes/admin/tools.php:99 -#: includes/admin/upgrades/upgrade-functions.php:1419 +#: includes/admin/tools.php:110 +#: includes/admin/upgrades/upgrade-functions.php:332 msgid "Logs" msgstr "" @@ -884,7 +912,7 @@ msgstr "" #: includes/admin/reporting/export/class-batch-export-downloads.php:43 #: includes/admin/reporting/export/class-batch-export-sales.php:51 #: includes/admin/reporting/export/class-batch-export-taxed-customers.php:42 -#: includes/admin/tools.php:521 +#: includes/admin/tools.php:532 #: includes/privacy-functions.php:594 #: includes/reports/data/discounts/class-top-five-discounts-list-table.php:75 #: includes/reports/data/downloads/class-earnings-by-taxonomy-list-table.php:159 @@ -973,8 +1001,8 @@ msgstr "" #: includes/admin/customers/customer-actions.php:365 #: includes/admin/customers/customer-actions.php:557 #: includes/admin/customers/customer-actions.php:614 -#: includes/admin/import/import-functions.php:31 -#: includes/admin/import/import-functions.php:104 +#: includes/admin/import/import-functions.php:25 +#: includes/admin/import/import-functions.php:106 #: includes/admin/reporting/export/export-actions.php:24 #: includes/api/class-edd-api.php:2030 #: includes/class-edd-license-handler.php:475 @@ -982,7 +1010,7 @@ msgid "Nonce verification failed" msgstr "" #: includes/admin/customers/customer-actions.php:325 -#: includes/shortcodes.php:981 +#: includes/shortcodes.php:987 msgid "Email address %s removed by %s" msgstr "" @@ -1083,14 +1111,14 @@ msgstr "" #: includes/admin/customers/customers.php:471 #: includes/admin/thickbox.php:182 #: includes/gateways/stripe/includes/admin/admin-filters.php:105 -#: includes/gateways/stripe/includes/template-functions.php:649 -#: includes/gateways/stripe/includes/template-functions.php:692 +#: includes/gateways/stripe/includes/template-functions.php:650 +#: includes/gateways/stripe/includes/template-functions.php:693 #: includes/scripts.php:541 msgid "Cancel" msgstr "" #: includes/admin/customers/customers.php:472 -#: includes/gateways/stripe/includes/template-functions.php:477 +#: includes/gateways/stripe/includes/template-functions.php:478 msgid "Update" msgstr "" @@ -1112,17 +1140,17 @@ msgstr "" #: includes/admin/reporting/class-export-payments.php:63 #: includes/admin/reporting/export/class-batch-export-payments.php:48 #: includes/admin/reporting/export/class-batch-export-taxed-orders.php:49 -#: includes/admin/tools.php:728 +#: includes/admin/tools.php:739 #: includes/blocks/views/checkout/purchase-form/address.php:54 #: includes/blocks/views/checkout/purchase-form/address.php:60 #: includes/checkout/template.php:393 -#: includes/gateways/stripe/includes/template-functions.php:537 +#: includes/gateways/stripe/includes/template-functions.php:538 #: templates/shortcode-profile-editor.php:152 msgid "City" msgstr "" #: includes/admin/customers/customers.php:519 -#: includes/admin/tools.php:737 +#: includes/admin/tools.php:748 #: templates/shortcode-profile-editor.php:171 msgid "State / Province" msgstr "" @@ -1240,7 +1268,7 @@ msgstr "" #: includes/admin/customers/customers.php:751 #: includes/admin/payments/class-payments-table.php:407 #: includes/admin/payments/class-refund-items-table.php:90 -#: includes/admin/tools.php:678 +#: includes/admin/tools.php:689 #: includes/admin/views/tmpl-order-refund.php:39 #: includes/admin/views/tmpl-order-total.php:16 #: includes/blocks/views/checkout/cart/cart-total.php:8 @@ -1269,6 +1297,8 @@ msgid "Purchased %s" msgstr "" #: includes/admin/customers/customers.php:799 +#: includes/blocks/build/buy-button/index.js:1 +#: includes/blocks/build/downloads/index.js:1 msgid "No %s Found" msgstr "" @@ -1307,7 +1337,7 @@ msgid "Add Email" msgstr "" #: includes/admin/customers/customers.php:946 -#: includes/admin/upgrades/upgrade-functions.php:1407 +#: includes/admin/upgrades/upgrade-functions.php:320 msgid "Customer Addresses" msgstr "" @@ -1335,7 +1365,7 @@ msgid "Delete Customer" msgstr "" #: includes/admin/customers/customers.php:1131 -#: includes/admin/tools.php:148 +#: includes/admin/tools.php:159 msgid "Recount Customer Stats" msgstr "" @@ -1344,7 +1374,7 @@ msgid "Use this tool to recalculate the purchase count and total value of the cu msgstr "" #: includes/admin/customers/customers.php:1139 -#: includes/admin/tools.php:131 +#: includes/admin/tools.php:142 msgid "Recount Stats" msgstr "" @@ -1439,7 +1469,7 @@ msgstr "" #: includes/admin/dashboard-widgets.php:199 #: includes/admin/reporting/class-categories-reports-table.php:78 -#: includes/admin/tools.php:971 +#: includes/admin/tools.php:982 #: includes/reports/data/downloads/class-earnings-by-taxonomy-list-table.php:161 msgid "Total Earnings" msgstr "" @@ -1507,7 +1537,7 @@ msgstr "" #: includes/admin/reporting/export/class-batch-export-taxed-orders.php:56 #: includes/admin/reporting/reports.php:1166 #: includes/admin/views/tmpl-order-adjustment-discount.php:41 -#: includes/admin/views/tmpl-order-adjustment.php:55 +#: includes/admin/views/tmpl-order-adjustment.php:54 #: includes/admin/views/tmpl-order-form-add-order-adjustment.php:80 #: includes/admin/views/tmpl-order-form-add-order-item.php:225 #: includes/admin/views/tmpl-order-item.php:78 @@ -1845,7 +1875,7 @@ msgstr "" #: includes/admin/reporting/export/class-batch-export-downloads.php:48 #: includes/admin/reporting/export/class-batch-export-payments.php:66 #: includes/admin/reporting/export/class-batch-export-taxed-orders.php:67 -#: includes/admin/tools.php:650 +#: includes/admin/tools.php:661 #: includes/privacy-functions.php:789 msgid "Status" msgstr "" @@ -2065,8 +2095,7 @@ msgid "Option Name" msgstr "" #: includes/admin/downloads/metabox.php:506 -#: includes/download-functions.php:674 -#: includes/gateways/stripe/includes/template-functions.php:456 +#: includes/gateways/stripe/includes/template-functions.php:457 #: includes/blocks/build/downloads/index.js:1 msgid "Default" msgstr "" @@ -2215,7 +2244,7 @@ msgstr "" #: includes/admin/downloads/metabox.php:1026 #: includes/admin/reporting/export/class-batch-export-downloads.php:53 #: includes/admin/settings/register-settings.php:1071 -#: includes/admin/tools.php:952 +#: includes/admin/tools.php:963 msgid "File Download Limit" msgstr "" @@ -2334,17 +2363,17 @@ msgstr "" msgid "View File Download Log" msgstr "" -#: includes/admin/emails/email-summary/class-edd-email-summary-admin.php:54 +#: includes/admin/emails/email-summary/class-edd-email-summary-admin.php:64 msgid "The test Email Summary was sent successfully!" msgstr "" -#: includes/admin/emails/email-summary/class-edd-email-summary-admin.php:62 +#: includes/admin/emails/email-summary/class-edd-email-summary-admin.php:72 msgid "There was an unknown problem while sending test Email Summary!" msgstr "" #: includes/admin/import/class-batch-import-downloads.php:65 #: includes/admin/import/class-batch-import-payments.php:77 -#: includes/admin/import/class-batch-import.php:188 +#: includes/admin/import/class-batch-import.php:199 msgid "You do not have permission to import data." msgstr "" @@ -2354,44 +2383,44 @@ msgstr "" msgid "Products (Raw)" msgstr "" -#: includes/admin/import/class-batch-import-payments.php:641 +#: includes/admin/import/class-batch-import-payments.php:642 msgid "payments" msgstr "" -#: includes/admin/import/import-functions.php:35 -#: includes/admin/import/import-functions.php:108 +#: includes/admin/import/import-functions.php:29 +#: includes/admin/import/import-functions.php:110 msgid "Missing import parameters. Import class must be specified." msgstr "" -#: includes/admin/import/import-functions.php:39 -msgid "Missing import file. Please provide an import file." -msgstr "" - -#: includes/admin/import/import-functions.php:43 -#: includes/admin/import/import-functions.php:129 -msgid "The file you uploaded does not appear to be a CSV file." -msgstr "" - -#: includes/admin/import/import-functions.php:47 -#: includes/admin/import/import-functions.php:112 -msgid "Something went wrong during the upload process, please try again." -msgstr "" - -#: includes/admin/import/import-functions.php:58 -#: includes/admin/import/import-functions.php:136 +#: includes/admin/import/import-functions.php:41 +#: includes/admin/import/import-functions.php:138 msgid "Invalid importer class supplied" msgstr "" -#: includes/admin/import/import-functions.php:66 -#: includes/admin/import/import-functions.php:147 +#: includes/admin/import/import-functions.php:50 +#: includes/admin/import/import-functions.php:148 msgid "You do not have permission to import data" msgstr "" -#: includes/admin/import/import-functions.php:173 +#: includes/admin/import/import-functions.php:54 +msgid "Missing import file. Please provide an import file." +msgstr "" + +#: includes/admin/import/import-functions.php:58 +#: includes/admin/import/import-functions.php:131 +msgid "The file you uploaded does not appear to be a CSV file." +msgstr "" + +#: includes/admin/import/import-functions.php:62 +#: includes/admin/import/import-functions.php:114 +msgid "Something went wrong during the upload process, please try again." +msgstr "" + +#: includes/admin/import/import-functions.php:174 msgid "No data found for import parameters" msgstr "" -#: includes/admin/import/import-functions.php:181 +#: includes/admin/import/import-functions.php:182 msgid "Import complete! View imported %s." msgstr "" @@ -2570,7 +2599,7 @@ msgstr "" #: includes/admin/payments/class-refund-items-table.php:77 #: includes/admin/reporting/class-export-download-history.php:62 #: includes/admin/reporting/export/class-batch-export-file-downloads.php:47 -#: includes/blocks/includes/orders/orders.php:540 +#: includes/blocks/includes/orders/orders.php:549 #: includes/emails/email-summary/edd-email-summary-template.php:340 msgid "Product" msgstr "" @@ -2585,7 +2614,7 @@ msgstr "" #: includes/admin/payments/class-payments-table.php:296 #: includes/admin/reporting/class-base-logs-list-table.php:502 -#: includes/admin/tools/logs.php:258 +#: includes/admin/tools/logs.php:235 #: includes/reports/reports-functions.php:1755 msgid "Filter" msgstr "" @@ -2726,7 +2755,7 @@ msgid "Quantity" msgstr "" #: includes/admin/payments/class-refund-items-table.php:80 -#: includes/admin/tools.php:660 +#: includes/admin/tools.php:671 #: includes/admin/views/tmpl-order-subtotal.php:16 #: includes/blocks/views/checkout/cart/cart-subtotal.php:10 #: includes/blocks/views/orders/totals.php:43 @@ -2740,7 +2769,7 @@ msgstr "" #: includes/admin/reporting/class-export-payments.php:71 #: includes/admin/reporting/export/class-batch-export-payments.php:57 #: includes/admin/reporting/export/class-batch-export-taxed-orders.php:57 -#: includes/admin/tools.php:669 +#: includes/admin/tools.php:680 #: includes/admin/views/tmpl-order-form-add-order-item.php:196 #: includes/admin/views/tmpl-order-tax.php:26 #: includes/blocks/views/checkout/cart/cart-taxes.php:9 @@ -2753,12 +2782,12 @@ msgid "Tax" msgstr "" #: includes/admin/payments/class-refund-items-table.php:157 -#: includes/admin/views/tmpl-order-adjustment.php:46 +#: includes/admin/views/tmpl-order-adjustment.php:45 msgid "Order Fee" msgstr "" #: includes/admin/payments/class-refund-items-table.php:159 -#: includes/admin/views/tmpl-order-adjustment.php:44 +#: includes/admin/views/tmpl-order-adjustment.php:43 #: includes/ajax-functions.php:1079 msgid "Order Credit" msgstr "" @@ -2989,7 +3018,7 @@ msgstr "" #: includes/admin/reporting/class-export-customers.php:61 #: includes/admin/reporting/class-export-payments.php:59 #: includes/admin/reporting/export/class-batch-export-taxed-orders.php:45 -#: includes/admin/tools.php:531 +#: includes/admin/tools.php:542 #: includes/emails/tags.php:167 #: templates/shortcode-profile-editor.php:38 msgid "First Name" @@ -2999,7 +3028,7 @@ msgstr "" #: includes/admin/reporting/class-export-customers.php:62 #: includes/admin/reporting/class-export-payments.php:60 #: includes/admin/reporting/export/class-batch-export-taxed-orders.php:46 -#: includes/admin/tools.php:541 +#: includes/admin/tools.php:552 #: templates/shortcode-profile-editor.php:43 msgid "Last Name" msgstr "" @@ -3100,7 +3129,7 @@ msgstr "" #: includes/admin/reporting/class-export-payments.php:74 #: includes/admin/reporting/export/class-batch-export-payments.php:60 #: includes/admin/reporting/export/class-batch-export-taxed-orders.php:60 -#: includes/admin/tools.php:688 +#: includes/admin/tools.php:699 msgid "Transaction ID" msgstr "" @@ -3412,7 +3441,7 @@ msgstr "" #: includes/admin/reporting/export/class-batch-export-file-downloads.php:45 #: includes/admin/reporting/export/class-batch-export-payments.php:64 #: includes/admin/reporting/export/class-batch-export-taxed-orders.php:65 -#: includes/admin/tools.php:571 +#: includes/admin/tools.php:582 #: includes/emails/tags.php:263 #: includes/privacy-functions.php:783 #: includes/privacy-functions.php:876 @@ -3438,7 +3467,7 @@ msgid "ID" msgstr "" #: includes/admin/reporting/class-export-payments.php:57 -#: includes/admin/tools.php:611 +#: includes/admin/tools.php:622 msgid "Payment Number" msgstr "" @@ -3451,17 +3480,17 @@ msgstr "" #: includes/admin/reporting/class-export-payments.php:64 #: includes/admin/reporting/export/class-batch-export-payments.php:49 #: includes/admin/reporting/export/class-batch-export-taxed-orders.php:50 -#: includes/gateways/stripe/includes/template-functions.php:584 +#: includes/gateways/stripe/includes/template-functions.php:585 msgid "State" msgstr "" #: includes/admin/reporting/class-export-payments.php:66 #: includes/admin/reporting/export/class-batch-export-payments.php:51 #: includes/admin/reporting/export/class-batch-export-taxed-orders.php:52 -#: includes/admin/tools.php:746 +#: includes/admin/tools.php:757 #: includes/blocks/views/checkout/purchase-form/address.php:105 #: includes/checkout/template.php:403 -#: includes/gateways/stripe/includes/template-functions.php:838 +#: includes/gateways/stripe/includes/template-functions.php:839 #: templates/shortcode-profile-editor.php:157 msgid "Zip / Postal Code" msgstr "" @@ -3497,7 +3526,7 @@ msgstr "" #: includes/admin/reporting/class-export-payments.php:73 #: includes/admin/reporting/export/class-batch-export-payments.php:59 -#: includes/admin/tools.php:601 +#: includes/admin/tools.php:612 #: includes/blocks/views/orders/totals.php:32 #: includes/emails/tags.php:233 #: templates/shortcode-receipt.php:63 @@ -3507,7 +3536,7 @@ msgstr "" #: includes/admin/reporting/class-export-payments.php:75 #: includes/admin/reporting/export/class-batch-export-payments.php:61 #: includes/admin/reporting/export/class-batch-export-taxed-orders.php:61 -#: includes/admin/tools.php:630 +#: includes/admin/tools.php:641 msgid "Purchase Key" msgstr "" @@ -3515,7 +3544,7 @@ msgstr "" #: includes/admin/reporting/export/class-batch-export-payments.php:63 #: includes/admin/reporting/export/class-batch-export-sales.php:48 #: includes/admin/reporting/export/class-batch-export-taxed-orders.php:63 -#: includes/admin/tools.php:698 +#: includes/admin/tools.php:709 msgid "User" msgstr "" @@ -3592,7 +3621,7 @@ msgstr "" #: includes/admin/reporting/contextual-help.php:67 #: includes/admin/reporting/reports.php:2672 #: includes/admin/reporting/views/export-sales-earnings.php:61 -#: includes/admin/tools.php:1012 +#: includes/admin/tools.php:1023 msgid "Export" msgstr "" @@ -3698,7 +3727,7 @@ msgid "Tags" msgstr "" #: includes/admin/reporting/export/class-batch-export-downloads.php:52 -#: includes/blocks/includes/orders/orders.php:565 +#: includes/blocks/includes/orders/orders.php:574 #: templates/history-downloads.php:46 msgid "Files" msgstr "" @@ -3743,7 +3772,7 @@ msgstr "" #: includes/admin/reporting/export/class-batch-export-payments.php:44 #: includes/admin/reporting/export/class-batch-export-sales.php:49 #: includes/admin/reporting/export/class-batch-export-taxed-orders.php:44 -#: includes/admin/tools.php:551 +#: includes/admin/tools.php:562 #: includes/privacy-functions.php:586 #: includes/privacy-functions.php:872 msgid "Customer ID" @@ -3756,7 +3785,7 @@ msgstr "" #: includes/admin/reporting/export/class-batch-export-payments.php:65 #: includes/admin/reporting/export/class-batch-export-taxed-orders.php:66 -#: includes/admin/tools.php:581 +#: includes/admin/tools.php:592 msgid "Mode (Live|Test)" msgstr "" @@ -3970,7 +3999,7 @@ msgstr "" #: includes/admin/reporting/reports.php:1905 #: includes/admin/reporting/reports.php:2089 #: includes/admin/settings/register-settings.php:1793 -#: includes/admin/tools/logs.php:195 +#: includes/admin/tools/logs.php:172 #: includes/privacy-functions.php:546 #: includes/reports/data/file-downloads/class-top-five-most-downloaded-list-table.php:58 msgid "File Downloads" @@ -4441,6 +4470,11 @@ msgstr "" msgid "Manage extensions for Easy Digital Downloads which are not included with a pass. Having an active license for your extensions gives you access to updates when they're available." msgstr "" +#. translators: 1. opening anchor tag; 2. closing anchor tag +#: includes/admin/settings/display-settings.php:430 +msgid "Have a pass? You're ready to set up EDD (Pro). %1$sActivate Your Pass%2$s" +msgstr "" + #: includes/admin/settings/register-settings.php:291 msgid "Do Nothing" msgstr "" @@ -4698,7 +4732,7 @@ msgid "Default Gateway" msgstr "" #: includes/admin/settings/register-settings.php:566 -msgid "Automatically select this gateway on checkout pages.
    If empty, the first active gateway is selected instead." +msgid "Choose the gateway your checkout will use by default.
    If you choose Automatic, the first enabled gateway from the Active Gateways will be used." msgstr "" #: includes/admin/settings/register-settings.php:572 @@ -5530,82 +5564,86 @@ msgstr "" msgid "Purchase Buttons" msgstr "" -#: includes/admin/settings/register-settings.php:2157 +#: includes/admin/settings/register-settings.php:2171 #: includes/gateways/functions.php:80 #: includes/gateways/functions.php:81 msgid "Store Gateway" msgstr "" -#: includes/admin/settings/register-settings.php:2157 +#: includes/admin/settings/register-settings.php:2171 msgid "This is an internal payment gateway which can be used for manually added orders or test purchases. No money is actually processed." msgstr "" -#: includes/admin/settings/register-settings.php:2173 -msgid "These gateways will be offered at checkout." +#: includes/admin/settings/register-settings.php:2180 +msgid "Configure Gateway" msgstr "" -#: includes/admin/settings/register-settings.php:2173 +#: includes/admin/settings/register-settings.php:2199 +msgid "Choose how you want to allow your customers to pay you." +msgstr "" + +#: includes/admin/settings/register-settings.php:2199 msgid "More Payment Gateways are available." msgstr "" -#: includes/admin/settings/register-settings.php:2202 -msgid "— No gateway —" +#: includes/admin/settings/register-settings.php:2228 +msgid "Automatic" msgstr "" -#: includes/admin/settings/register-settings.php:2431 +#: includes/admin/settings/register-settings.php:2457 msgid "The callback function used for the %s setting is missing." msgstr "" -#: includes/admin/settings/register-settings.php:2614 +#: includes/admin/settings/register-settings.php:2640 msgid "Attach File" msgstr "" -#: includes/admin/settings/register-settings.php:2614 +#: includes/admin/settings/register-settings.php:2640 msgid "Attach" msgstr "" -#: includes/admin/settings/register-settings.php:2732 +#: includes/admin/settings/register-settings.php:2758 msgid "Recapture plugin activated." msgstr "" -#: includes/admin/settings/register-settings.php:2733 +#: includes/admin/settings/register-settings.php:2759 msgid "%sAccess your Recapture account%s." msgstr "" -#: includes/admin/settings/register-settings.php:2738 +#: includes/admin/settings/register-settings.php:2764 msgid "Disconnect Recapture" msgstr "" -#: includes/admin/settings/register-settings.php:2742 +#: includes/admin/settings/register-settings.php:2768 msgid "%sComplete your connection to Recapture%s" msgstr "" -#: includes/admin/settings/register-settings.php:2750 +#: includes/admin/settings/register-settings.php:2776 msgid "We recommend Recapture for recovering lost revenue by automatically sending effective, targeted emails to customers who abandon their shopping cart." msgstr "" -#: includes/admin/settings/register-settings.php:2750 +#: includes/admin/settings/register-settings.php:2776 msgid "%sLearn more%s (Free trial available)" msgstr "" -#: includes/admin/settings/register-settings.php:2754 +#: includes/admin/settings/register-settings.php:2780 msgid "Connect with Recapture" msgstr "" #. translators: Tax rate country code -#: includes/admin/settings/register-settings.php:2787 +#: includes/admin/settings/register-settings.php:2813 msgid "Duplicate tax rates are not allowed. Please deactivate the existing %s tax rate before adding or activating another." msgstr "" -#: includes/admin/settings/register-settings.php:2788 +#: includes/admin/settings/register-settings.php:2814 msgid "Please select a country." msgstr "" -#: includes/admin/settings/register-settings.php:2789 +#: includes/admin/settings/register-settings.php:2815 msgid "Please enter a tax rate greater than 0." msgstr "" -#: includes/admin/settings/register-settings.php:2790 +#: includes/admin/settings/register-settings.php:2816 msgid "Are you sure you want to add a 0% tax rate?" msgstr "" @@ -5619,7 +5657,7 @@ msgid "Link" msgstr "" #: includes/admin/thickbox.php:58 -#: includes/template-functions.php:520 +#: includes/template-functions.php:521 msgid "Button" msgstr "" @@ -5672,409 +5710,392 @@ msgstr "" msgid "This is the text inside the button or link" msgstr "" -#: includes/admin/tools.php:98 +#: includes/admin/tools.php:109 msgid "Beta Versions" msgstr "" -#: includes/admin/tools.php:100 +#: includes/admin/tools.php:111 msgid "System Info" msgstr "" -#: includes/admin/tools.php:101 -#: includes/admin/tools.php:1183 +#: includes/admin/tools.php:112 +#: includes/admin/tools.php:1194 msgid "Debug Log" msgstr "" -#: includes/admin/tools.php:102 +#: includes/admin/tools.php:113 msgid "Import/Export" msgstr "" -#: includes/admin/tools.php:133 +#: includes/admin/tools.php:144 msgid "Use these tools to recount / reset store stats." msgstr "" -#: includes/admin/tools.php:140 +#: includes/admin/tools.php:151 #: includes/scripts.php:200 msgid "Please select an option" msgstr "" -#: includes/admin/tools.php:142 +#: includes/admin/tools.php:153 msgid "Recount Store Earnings and Sales" msgstr "" -#: includes/admin/tools.php:144 +#: includes/admin/tools.php:155 msgid "Recount Earnings and Sales for a %s" msgstr "" -#: includes/admin/tools.php:146 +#: includes/admin/tools.php:157 msgid "Recount Earnings and Sales for All %s" msgstr "" -#: includes/admin/tools.php:151 +#: includes/admin/tools.php:162 msgid "Reset Store" msgstr "" -#: includes/admin/tools.php:165 +#: includes/admin/tools.php:176 msgid "Submit" msgstr "" -#: includes/admin/tools.php:171 +#: includes/admin/tools.php:182 msgid "Recalculates the total store earnings and sales." msgstr "" -#: includes/admin/tools.php:172 +#: includes/admin/tools.php:183 msgid "Recalculates the earnings and sales stats for a specific %s." msgstr "" -#: includes/admin/tools.php:173 +#: includes/admin/tools.php:184 msgid "Recalculates the earnings and sales stats for all %s." msgstr "" -#: includes/admin/tools.php:174 +#: includes/admin/tools.php:185 msgid "Recalculates the lifetime value and purchase counts for all customers." msgstr "" -#: includes/admin/tools.php:176 +#: includes/admin/tools.php:187 msgid "Deletes all payment records, customers, and related log entries." msgstr "" -#: includes/admin/tools.php:206 -#: includes/admin/tools.php:215 +#: includes/admin/tools.php:217 +#: includes/admin/tools.php:226 msgid "Clear Incomplete Upgrade Notice" msgstr "" -#: includes/admin/tools.php:208 +#: includes/admin/tools.php:219 msgid "Sometimes a database upgrade notice may not be cleared after an upgrade is completed due to conflicts with other extensions or other minor issues." msgstr "" -#: includes/admin/tools.php:209 +#: includes/admin/tools.php:220 msgid "If you're certain these upgrades have been completed, you can clear these upgrade notices by clicking the button below. If you have any questions about this, please contact the Easy Digital Downloads support team and we'll be happy to help." msgstr "" -#: includes/admin/tools.php:262 +#: includes/admin/tools.php:273 msgid "These API keys allow you to use the EDD REST API to retrieve store data in JSON or XML for external applications or devices, such as the EDD mobile app." msgstr "" -#: includes/admin/tools.php:292 +#: includes/admin/tools.php:303 msgid "Enable Beta Versions" msgstr "" -#: includes/admin/tools.php:294 +#: includes/admin/tools.php:305 msgid "Checking any of the below checkboxes will opt you in to receive pre-release update notifications. You can opt-out at any time. Pre-release updates do not install automatically, you will still have the opportunity to ignore update notifications." msgstr "" -#: includes/admin/tools.php:307 +#: includes/admin/tools.php:318 msgid "Get updates for pre-release versions of %s" msgstr "" -#: includes/admin/tools.php:461 +#: includes/admin/tools.php:472 msgid "Import Orders" msgstr "" -#: includes/admin/tools.php:463 +#: includes/admin/tools.php:474 msgid "Import a CSV file of orders." msgstr "" -#: includes/admin/tools.php:475 -#: includes/admin/tools.php:790 +#: includes/admin/tools.php:486 +#: includes/admin/tools.php:801 msgid "Import CSV" msgstr "" -#: includes/admin/tools.php:486 +#: includes/admin/tools.php:497 msgid "Each column loaded from the CSV needs to be mapped to an order field. Select the column that should be mapped to each field below. Any columns not needed can be ignored. See this guide for assistance with importing payment records." msgstr "" -#: includes/admin/tools.php:495 +#: includes/admin/tools.php:506 msgid "Payment Field" msgstr "" -#: includes/admin/tools.php:496 -#: includes/admin/tools.php:811 +#: includes/admin/tools.php:507 +#: includes/admin/tools.php:822 msgid "CSV Column" msgstr "" -#: includes/admin/tools.php:497 -#: includes/admin/tools.php:812 +#: includes/admin/tools.php:508 +#: includes/admin/tools.php:823 msgid "Data Preview" msgstr "" -#: includes/admin/tools.php:502 +#: includes/admin/tools.php:513 msgid "Currency Code" msgstr "" -#: includes/admin/tools.php:506 -#: includes/admin/tools.php:515 -#: includes/admin/tools.php:525 -#: includes/admin/tools.php:535 -#: includes/admin/tools.php:545 -#: includes/admin/tools.php:555 -#: includes/admin/tools.php:565 -#: includes/admin/tools.php:575 -#: includes/admin/tools.php:585 -#: includes/admin/tools.php:595 -#: includes/admin/tools.php:605 -#: includes/admin/tools.php:615 -#: includes/admin/tools.php:624 -#: includes/admin/tools.php:634 -#: includes/admin/tools.php:644 -#: includes/admin/tools.php:654 -#: includes/admin/tools.php:663 -#: includes/admin/tools.php:672 -#: includes/admin/tools.php:682 -#: includes/admin/tools.php:692 -#: includes/admin/tools.php:702 -#: includes/admin/tools.php:712 -#: includes/admin/tools.php:722 -#: includes/admin/tools.php:731 -#: includes/admin/tools.php:740 -#: includes/admin/tools.php:750 -#: includes/admin/tools.php:760 -#: includes/admin/tools.php:821 -#: includes/admin/tools.php:831 -#: includes/admin/tools.php:841 -#: includes/admin/tools.php:851 -#: includes/admin/tools.php:861 -#: includes/admin/tools.php:871 -#: includes/admin/tools.php:880 -#: includes/admin/tools.php:889 -#: includes/admin/tools.php:898 -#: includes/admin/tools.php:908 -#: includes/admin/tools.php:918 -#: includes/admin/tools.php:927 -#: includes/admin/tools.php:937 -#: includes/admin/tools.php:946 -#: includes/admin/tools.php:956 -#: includes/admin/tools.php:965 -#: includes/admin/tools.php:975 +#: includes/admin/tools.php:517 +#: includes/admin/tools.php:526 +#: includes/admin/tools.php:536 +#: includes/admin/tools.php:546 +#: includes/admin/tools.php:556 +#: includes/admin/tools.php:566 +#: includes/admin/tools.php:576 +#: includes/admin/tools.php:586 +#: includes/admin/tools.php:596 +#: includes/admin/tools.php:606 +#: includes/admin/tools.php:616 +#: includes/admin/tools.php:626 +#: includes/admin/tools.php:635 +#: includes/admin/tools.php:645 +#: includes/admin/tools.php:655 +#: includes/admin/tools.php:665 +#: includes/admin/tools.php:674 +#: includes/admin/tools.php:683 +#: includes/admin/tools.php:693 +#: includes/admin/tools.php:703 +#: includes/admin/tools.php:713 +#: includes/admin/tools.php:723 +#: includes/admin/tools.php:733 +#: includes/admin/tools.php:742 +#: includes/admin/tools.php:751 +#: includes/admin/tools.php:761 +#: includes/admin/tools.php:771 +#: includes/admin/tools.php:832 +#: includes/admin/tools.php:842 +#: includes/admin/tools.php:852 +#: includes/admin/tools.php:862 +#: includes/admin/tools.php:872 +#: includes/admin/tools.php:882 +#: includes/admin/tools.php:891 +#: includes/admin/tools.php:900 +#: includes/admin/tools.php:909 +#: includes/admin/tools.php:919 +#: includes/admin/tools.php:929 +#: includes/admin/tools.php:938 +#: includes/admin/tools.php:948 +#: includes/admin/tools.php:957 +#: includes/admin/tools.php:967 +#: includes/admin/tools.php:976 +#: includes/admin/tools.php:986 msgid "- Ignore this field -" msgstr "" -#: includes/admin/tools.php:509 -#: includes/admin/tools.php:518 -#: includes/admin/tools.php:528 -#: includes/admin/tools.php:538 -#: includes/admin/tools.php:548 -#: includes/admin/tools.php:558 -#: includes/admin/tools.php:568 -#: includes/admin/tools.php:578 -#: includes/admin/tools.php:588 -#: includes/admin/tools.php:598 -#: includes/admin/tools.php:608 -#: includes/admin/tools.php:618 -#: includes/admin/tools.php:627 -#: includes/admin/tools.php:637 -#: includes/admin/tools.php:647 -#: includes/admin/tools.php:657 -#: includes/admin/tools.php:666 -#: includes/admin/tools.php:675 -#: includes/admin/tools.php:685 -#: includes/admin/tools.php:695 -#: includes/admin/tools.php:705 -#: includes/admin/tools.php:715 -#: includes/admin/tools.php:725 -#: includes/admin/tools.php:734 -#: includes/admin/tools.php:743 -#: includes/admin/tools.php:753 -#: includes/admin/tools.php:763 -#: includes/admin/tools.php:824 -#: includes/admin/tools.php:834 -#: includes/admin/tools.php:844 -#: includes/admin/tools.php:854 -#: includes/admin/tools.php:864 -#: includes/admin/tools.php:874 -#: includes/admin/tools.php:883 -#: includes/admin/tools.php:892 -#: includes/admin/tools.php:901 -#: includes/admin/tools.php:911 -#: includes/admin/tools.php:921 -#: includes/admin/tools.php:930 -#: includes/admin/tools.php:940 -#: includes/admin/tools.php:949 -#: includes/admin/tools.php:959 -#: includes/admin/tools.php:968 -#: includes/admin/tools.php:978 +#: includes/admin/tools.php:520 +#: includes/admin/tools.php:529 +#: includes/admin/tools.php:539 +#: includes/admin/tools.php:549 +#: includes/admin/tools.php:559 +#: includes/admin/tools.php:569 +#: includes/admin/tools.php:579 +#: includes/admin/tools.php:589 +#: includes/admin/tools.php:599 +#: includes/admin/tools.php:609 +#: includes/admin/tools.php:619 +#: includes/admin/tools.php:629 +#: includes/admin/tools.php:638 +#: includes/admin/tools.php:648 +#: includes/admin/tools.php:658 +#: includes/admin/tools.php:668 +#: includes/admin/tools.php:677 +#: includes/admin/tools.php:686 +#: includes/admin/tools.php:696 +#: includes/admin/tools.php:706 +#: includes/admin/tools.php:716 +#: includes/admin/tools.php:726 +#: includes/admin/tools.php:736 +#: includes/admin/tools.php:745 +#: includes/admin/tools.php:754 +#: includes/admin/tools.php:764 +#: includes/admin/tools.php:774 +#: includes/admin/tools.php:835 +#: includes/admin/tools.php:845 +#: includes/admin/tools.php:855 +#: includes/admin/tools.php:865 +#: includes/admin/tools.php:875 +#: includes/admin/tools.php:885 +#: includes/admin/tools.php:894 +#: includes/admin/tools.php:903 +#: includes/admin/tools.php:912 +#: includes/admin/tools.php:922 +#: includes/admin/tools.php:932 +#: includes/admin/tools.php:941 +#: includes/admin/tools.php:951 +#: includes/admin/tools.php:960 +#: includes/admin/tools.php:970 +#: includes/admin/tools.php:979 +#: includes/admin/tools.php:989 msgid "- select field to preview data -" msgstr "" -#: includes/admin/tools.php:561 +#: includes/admin/tools.php:572 msgid "Discount Code(s)" msgstr "" -#: includes/admin/tools.php:591 +#: includes/admin/tools.php:602 msgid "Parent Payment ID" msgstr "" -#: includes/admin/tools.php:640 +#: includes/admin/tools.php:651 msgid "Purchased Product(s)" msgstr "" -#: includes/admin/tools.php:708 -#: includes/gateways/stripe/includes/template-functions.php:509 +#: includes/admin/tools.php:719 +#: includes/gateways/stripe/includes/template-functions.php:510 msgid "Address Line 1" msgstr "" -#: includes/admin/tools.php:718 +#: includes/admin/tools.php:729 #: includes/blocks/views/checkout/purchase-form/address.php:43 -#: includes/gateways/stripe/includes/template-functions.php:523 +#: includes/gateways/stripe/includes/template-functions.php:524 msgid "Address Line 2" msgstr "" -#: includes/admin/tools.php:768 -#: includes/admin/tools.php:983 +#: includes/admin/tools.php:779 +#: includes/admin/tools.php:994 msgid "Process Import" msgstr "" -#: includes/admin/tools.php:776 +#: includes/admin/tools.php:787 msgid "Import Download Products" msgstr "" -#: includes/admin/tools.php:778 +#: includes/admin/tools.php:789 msgid "Import a CSV file of products." msgstr "" -#: includes/admin/tools.php:801 +#: includes/admin/tools.php:812 msgid "Each column loaded from the CSV needs to be mapped to a Download product field. Select the column that should be mapped to each field below. Any columns not needed can be ignored. See this guide for assistance with importing Download products." msgstr "" -#: includes/admin/tools.php:810 +#: includes/admin/tools.php:821 msgid "Product Field" msgstr "" -#: includes/admin/tools.php:817 +#: includes/admin/tools.php:828 msgid "Product Author" msgstr "" -#: includes/admin/tools.php:827 +#: includes/admin/tools.php:838 #: includes/reports/reports-functions.php:324 msgid "Product Categories" msgstr "" -#: includes/admin/tools.php:837 +#: includes/admin/tools.php:848 msgid "Product Creation Date" msgstr "" -#: includes/admin/tools.php:847 +#: includes/admin/tools.php:858 msgid "Product Description" msgstr "" -#: includes/admin/tools.php:857 +#: includes/admin/tools.php:868 msgid "Product Excerpt" msgstr "" -#: includes/admin/tools.php:867 +#: includes/admin/tools.php:878 #: src/Admin/Onboarding/Steps/Products.php:42 msgid "Product Image" msgstr "" -#: includes/admin/tools.php:877 +#: includes/admin/tools.php:888 msgid "Product Notes" msgstr "" -#: includes/admin/tools.php:886 +#: includes/admin/tools.php:897 msgid "Product Price(s)" msgstr "" -#: includes/admin/tools.php:895 +#: includes/admin/tools.php:906 msgid "Product SKU" msgstr "" -#: includes/admin/tools.php:904 +#: includes/admin/tools.php:915 msgid "Product Slug" msgstr "" -#: includes/admin/tools.php:914 +#: includes/admin/tools.php:925 msgid "Product Status" msgstr "" -#: includes/admin/tools.php:924 +#: includes/admin/tools.php:935 msgid "Product Tags" msgstr "" -#: includes/admin/tools.php:933 +#: includes/admin/tools.php:944 msgid "Product Title" msgstr "" -#: includes/admin/tools.php:943 +#: includes/admin/tools.php:954 msgid "Download Files" msgstr "" -#: includes/admin/tools.php:962 +#: includes/admin/tools.php:973 msgid "Sale Count" msgstr "" -#: includes/admin/tools.php:991 +#: includes/admin/tools.php:1002 msgid "Export Settings" msgstr "" -#: includes/admin/tools.php:993 +#: includes/admin/tools.php:1004 msgid "Export the Easy Digital Downloads settings for this site as a .json file. This allows you to easily import the configuration into another site." msgstr "" -#: includes/admin/tools.php:997 +#: includes/admin/tools.php:1008 msgid "To export shop data (purchases, customers, etc), visit the Reports page." msgstr "" -#: includes/admin/tools.php:1019 +#: includes/admin/tools.php:1030 msgid "Import Settings" msgstr "" -#: includes/admin/tools.php:1021 +#: includes/admin/tools.php:1032 msgid "Import the Easy Digital Downloads settings from a .json file. This file can be obtained by exporting the settings on another site using the form above." msgstr "" -#: includes/admin/tools.php:1030 +#: includes/admin/tools.php:1041 msgid "Import" msgstr "" -#: includes/admin/tools.php:1108 +#: includes/admin/tools.php:1119 msgid "Please upload a valid .json file" msgstr "" -#: includes/admin/tools.php:1114 +#: includes/admin/tools.php:1125 msgid "Please upload a file to import" msgstr "" -#: includes/admin/tools.php:1177 +#: includes/admin/tools.php:1188 msgid "No File" msgstr "" -#: includes/admin/tools.php:1180 +#: includes/admin/tools.php:1191 msgid "Log is Empty" msgstr "" -#: includes/admin/tools.php:1186 +#: includes/admin/tools.php:1197 msgid "When debug mode is enabled, specific information will be logged here. (Learn how to use EDD_Logging in your own code.)" msgstr "" -#: includes/admin/tools.php:1195 +#: includes/admin/tools.php:1206 msgid "Download Debug Log File" msgstr "" -#: includes/admin/tools.php:1196 -#: includes/admin/tools.php:1283 -msgid "Copy to Clipboard" -msgstr "" - -#: includes/admin/tools.php:1200 +#: includes/admin/tools.php:1211 msgid "Clear Log" msgstr "" -#: includes/admin/tools.php:1209 +#: includes/admin/tools.php:1220 msgid "Log file" msgstr "" -#: includes/admin/tools.php:1268 -msgid "System Information" -msgstr "" - -#: includes/admin/tools.php:1271 -msgid "Use the system information below to help troubleshoot problems." -msgstr "" - -#: includes/admin/tools.php:1282 -msgid "Download System Info File" -msgstr "" - #: includes/admin/tools/class-edd-tools-recount-all-stats.php:99 msgid "Earnings and sales stats successfully recounted." msgstr "" @@ -6096,15 +6117,15 @@ msgstr "" msgid "Store earnings successfully recounted." msgstr "" -#: includes/admin/tools/class-edd-tools-reset-stats.php:144 +#: includes/admin/tools/class-edd-tools-reset-stats.php:145 msgid "Your store has been successfully reset." msgstr "" -#: includes/admin/tools/logs.php:196 +#: includes/admin/tools/logs.php:173 msgid "Payment Errors" msgstr "" -#: includes/admin/tools/logs.php:197 +#: includes/admin/tools/logs.php:174 msgid "API Requests" msgstr "" @@ -6145,243 +6166,193 @@ msgstr "" msgid "File download logs updated successfully." msgstr "" -#: includes/admin/upgrades/upgrade-functions.php:62 -msgid "The Payment History needs to be updated. %s" -msgstr "" - -#: includes/admin/upgrades/upgrade-functions.php:62 -msgid "Click to Upgrade" -msgstr "" - -#: includes/admin/upgrades/upgrade-functions.php:73 -msgid "The Purchase and File Download History in Easy Digital Downloads needs to be upgraded, click %shere%s to start the upgrade." -msgstr "" - -#: includes/admin/upgrades/upgrade-functions.php:81 -msgid "Easy Digital Downloads needs to upgrade the plugin pages, click %shere%s to start the upgrade." -msgstr "" - -#: includes/admin/upgrades/upgrade-functions.php:89 -#: includes/admin/upgrades/upgrade-functions.php:97 -msgid "Easy Digital Downloads needs to upgrade the database, click %shere%s to start the upgrade." -msgstr "" - -#: includes/admin/upgrades/upgrade-functions.php:109 -msgid "Easy Digital Downloads needs to complete a database upgrade that was previously started, click here to resume the upgrade." -msgstr "" - -#: includes/admin/upgrades/upgrade-functions.php:124 -msgid "Easy Digital Downloads needs to upgrade the customer database, click %shere%s to start the upgrade." -msgstr "" - -#: includes/admin/upgrades/upgrade-functions.php:132 -#: includes/admin/upgrades/upgrade-functions.php:149 -msgid "Easy Digital Downloads needs to upgrade the payment database, click here to start the upgrade." -msgstr "" - -#: includes/admin/upgrades/upgrade-functions.php:140 -msgid "Easy Digital Downloads needs to upgrade the customer database, click here to start the upgrade." -msgstr "" - -#: includes/admin/upgrades/upgrade-functions.php:158 -msgid "Easy Digital Downloads needs to upgrade the API Key database, click here to start the upgrade." -msgstr "" - -#: includes/admin/upgrades/upgrade-functions.php:167 -msgid "Easy Digital Downloads needs to upgrade the payments database, click here to start the upgrade." -msgstr "" - -#: includes/admin/upgrades/upgrade-functions.php:176 -msgid "Easy Digital Downloads needs to upgrade the file download logs database, click here to start the upgrade." -msgstr "" - -#: includes/admin/upgrades/upgrade-functions.php:210 -msgid "Easy Digital Downloads is performing a database migration via WP-CLI. This message will be removed when the migration is complete." -msgstr "" - -#: includes/admin/upgrades/upgrade-functions.php:217 -msgid "Easy Digital Downloads needs to upgrade the database. %sLearn more about this upgrade%s." -msgstr "" - -#: includes/admin/upgrades/upgrade-functions.php:225 -msgid "About this upgrade:" -msgstr "" - -#. translators: 1. Opening strong/italics tag; do not translate. 2. Closing strong/italics tag; do not translate. -#: includes/admin/upgrades/upgrade-functions.php:231 -msgid "This is a %1$smandatory%2$s update that will migrate all Easy Digital Downloads data to custom database tables. This upgrade will provide better performance and scalability." -msgstr "" - -#. translators: 1. Opening strong tag; do not translate. 2. Closing strong tag; do not translate. -#: includes/admin/upgrades/upgrade-functions.php:241 -msgid "%1$sPlease back up your database before starting this upgrade.%2$s This upgrade routine will make irreversible changes to the database." -msgstr "" - -#. translators: 1. Opening strong tag; do not translate. 2. Closing strong tag; do not translate. 3. Line break; do not translate. 4. CLI command example; do not translate. -#: includes/admin/upgrades/upgrade-functions.php:251 -msgid "%1$sAdvanced User?%2$s This upgrade can also be run via WP-CLI with the following command:%3$s%3$s%4$s" -msgstr "" - -#: includes/admin/upgrades/upgrade-functions.php:260 -msgid "For large sites, this is the recommended method of upgrading." -msgstr "" - -#: includes/admin/upgrades/upgrade-functions.php:273 -msgid "Begin the upgrade" -msgstr "" - -#: includes/admin/upgrades/upgrade-functions.php:283 -msgid "Easy Digital Downloads was unable to create the necessary database tables to complete this update. Your site may not meet the minimum requirements for EDD 3.0." -msgstr "" - -#. translators: 1. opening anchor tag, do not translate; 2. closing anchor tag, do not translate; 3. MySQL database version, do not translate -#: includes/admin/upgrades/upgrade-functions.php:290 -msgid "Please contact your host and ask them to upgrade your environment to meet our %1$sminimum technical requirements%2$s. Your MySQL version is %3$s and needs to be updated." -msgstr "" - -#. translators: 1. opening anchor tag, do not translate; 2. closing anchor tag, do not translate -#: includes/admin/upgrades/upgrade-functions.php:298 -msgid "%1$sContact our support team%2$s for help with next steps." -msgstr "" - -#: includes/admin/upgrades/upgrade-functions.php:335 -#: includes/admin/upgrades/upgrade-functions.php:648 -#: includes/admin/upgrades/upgrade-functions.php:718 -#: includes/admin/upgrades/upgrade-functions.php:815 -#: includes/admin/upgrades/upgrade-functions.php:926 -#: includes/admin/upgrades/upgrade-functions.php:1001 -#: includes/admin/upgrades/upgrade-functions.php:1119 -#: includes/admin/upgrades/upgrade-functions.php:1199 -#: includes/gateways/stripe/includes/admin/upgrade-functions.php:112 -msgid "You do not have permission to do shop upgrades" -msgstr "" - -#: includes/admin/upgrades/upgrade-functions.php:509 +#: includes/admin/upgrades/deprecated-upgrade-functions.php:98 #: includes/install.php:382 msgid "Transaction Failed" msgstr "" -#: includes/admin/upgrades/upgrade-functions.php:510 +#: includes/admin/upgrades/deprecated-upgrade-functions.php:99 msgid "Your transaction failed, please try again or contact site support." msgstr "" -#: includes/admin/upgrades/upgrade-functions.php:1263 +#: includes/admin/upgrades/deprecated-upgrade-functions.php:794 msgid "Migration complete: You have already completed the update to the file download logs." msgstr "" -#: includes/admin/upgrades/upgrade-functions.php:1273 +#: includes/admin/upgrades/deprecated-upgrade-functions.php:804 msgid "Upgrades Complete: You may now safely navigate away from this page." msgstr "" -#: includes/admin/upgrades/upgrade-functions.php:1277 +#: includes/admin/upgrades/deprecated-upgrade-functions.php:808 msgid "Important: Do not navigate away from this page until all upgrades complete." msgstr "" -#: includes/admin/upgrades/upgrade-functions.php:1325 +#: includes/admin/upgrades/deprecated-upgrade-functions.php:856 msgid "Update file download logs" msgstr "" -#: includes/admin/upgrades/upgrade-functions.php:1330 +#: includes/admin/upgrades/deprecated-upgrade-functions.php:861 msgid "This will update the file download logs to remove some PII and make file download counts more accurate." msgstr "" -#: includes/admin/upgrades/upgrade-functions.php:1339 -#: includes/admin/upgrades/upgrade-functions.php:1342 +#: includes/admin/upgrades/deprecated-upgrade-functions.php:870 +#: includes/admin/upgrades/deprecated-upgrade-functions.php:873 msgid "Update File Download Logs" msgstr "" -#: includes/admin/upgrades/upgrade-functions.php:1343 +#: includes/admin/upgrades/deprecated-upgrade-functions.php:874 msgid "File download logs have already been updated." msgstr "" -#: includes/admin/upgrades/upgrade-functions.php:1395 +#. translators: %s: Resume upgrade link +#: includes/admin/upgrades/upgrade-functions.php:65 +msgid "Easy Digital Downloads needs to complete a database upgrade that was previously started, click here to resume the upgrade." +msgstr "" + +#: includes/admin/upgrades/upgrade-functions.php:108 +msgid "Easy Digital Downloads is performing a database migration via WP-CLI. Sales and earnings data for your store will be updated when all orders have been migrated. This message will be removed when the migration is complete." +msgstr "" + +#. translators: 1. Opening strong tag; do not translate. 2. Closing strong tag; do not translate. +#: includes/admin/upgrades/upgrade-functions.php:117 +msgid "Easy Digital Downloads needs to upgrade the database. %1$sLearn more about this upgrade%2$s." +msgstr "" + +#: includes/admin/upgrades/upgrade-functions.php:126 +msgid "About this upgrade:" +msgstr "" + +#. translators: 1. Opening strong/italics tag; do not translate. 2. Closing strong/italics tag; do not translate. +#: includes/admin/upgrades/upgrade-functions.php:132 +msgid "This is a %1$smandatory%2$s update that will migrate all Easy Digital Downloads data to custom database tables. This upgrade will provide better performance and scalability." +msgstr "" + +#. translators: 1. Opening strong tag; do not translate. 2. Closing strong tag; do not translate. 3. Plural download label +#: includes/admin/upgrades/upgrade-functions.php:142 +msgid "%1$sPlease back up your database before starting this upgrade.%2$s This upgrade routine will make irreversible changes to the database." +msgstr "" + +#. translators: 1. Opening strong tag; do not translate. 2. Closing strong tag; do not translate. 3. Line break; do not translate. 4. CLI command example; do not translate. +#: includes/admin/upgrades/upgrade-functions.php:152 +msgid "%1$sAdvanced User?%2$s This upgrade can also be run via WP-CLI with the following command:%3$s%3$s%4$s" +msgstr "" + +#: includes/admin/upgrades/upgrade-functions.php:161 +msgid "For large sites, this is the recommended method of upgrading." +msgstr "" + +#: includes/admin/upgrades/upgrade-functions.php:174 +msgid "Begin the upgrade" +msgstr "" + +#: includes/admin/upgrades/upgrade-functions.php:185 +msgid "Easy Digital Downloads was unable to create the necessary database tables to complete this update. Your site may not meet the minimum requirements for EDD 3.0." +msgstr "" + +#. translators: 1. opening anchor tag, do not translate; 2. closing anchor tag, do not translate; 3. MySQL database version, do not translate +#: includes/admin/upgrades/upgrade-functions.php:192 +msgid "Please contact your host and ask them to upgrade your environment to meet our %1$sminimum technical requirements%2$s. Your MySQL version is %3$s and needs to be updated." +msgstr "" + +#. translators: 1. opening anchor tag, do not translate; 2. closing anchor tag, do not translate +#: includes/admin/upgrades/upgrade-functions.php:200 +msgid "%1$sContact our support team%2$s for help with next steps." +msgstr "" + +#: includes/admin/upgrades/upgrade-functions.php:308 msgid "Tax Rates" msgstr "" -#: includes/admin/upgrades/upgrade-functions.php:1411 +#: includes/admin/upgrades/upgrade-functions.php:324 msgid "Customer Email Addresses" msgstr "" -#: includes/admin/upgrades/upgrade-functions.php:1415 +#: includes/admin/upgrades/upgrade-functions.php:328 msgid "Customer Notes" msgstr "" -#: includes/admin/upgrades/upgrade-functions.php:1423 +#: includes/admin/upgrades/upgrade-functions.php:336 msgid "Order Notes" msgstr "" -#: includes/admin/upgrades/upgrade-functions.php:1427 -#: includes/admin/upgrades/upgrade-functions.php:1595 -#: includes/admin/upgrades/upgrade-functions.php:1666 +#: includes/admin/upgrades/upgrade-functions.php:340 +#: includes/admin/upgrades/upgrade-functions.php:518 +#: includes/admin/upgrades/upgrade-functions.php:589 msgid "Remove Legacy Data" msgstr "" -#: includes/admin/upgrades/upgrade-functions.php:1484 +#: includes/admin/upgrades/upgrade-functions.php:397 msgid "Database Upgrade Complete: All database upgrades have been completed." msgstr "" -#: includes/admin/upgrades/upgrade-functions.php:1486 +#: includes/admin/upgrades/upgrade-functions.php:399 msgid "You may now leave this page." msgstr "" -#: includes/admin/upgrades/upgrade-functions.php:1491 +#: includes/admin/upgrades/upgrade-functions.php:404 msgid "Return to the dashboard" msgstr "" -#: includes/admin/upgrades/upgrade-functions.php:1498 +#: includes/admin/upgrades/upgrade-functions.php:411 msgid "Important: Do not navigate away from this page until all upgrades have completed." msgstr "" -#: includes/admin/upgrades/upgrade-functions.php:1502 +#: includes/admin/upgrades/upgrade-functions.php:415 msgid "Easy Digital Downloads needs to perform upgrades to your WordPress database. Your store data will be migrated to custom database tables to improve performance and efficiency. This process may take a while." msgstr "" -#: includes/admin/upgrades/upgrade-functions.php:1503 +#. translators: %s: Plural label for downloads +#: includes/admin/upgrades/upgrade-functions.php:419 +msgid "Sales and earnings data for %s and customers will be updated once orders have finished migrating." +msgstr "" + +#: includes/admin/upgrades/upgrade-functions.php:423 msgid "Please create a full backup of your website before proceeding." msgstr "" -#: includes/admin/upgrades/upgrade-functions.php:1507 +#. translators: %s: WP-CLI command +#: includes/admin/upgrades/upgrade-functions.php:429 msgid "This migration can also be run via WP-CLI with the following command: %s. This is the recommended method for large sites." msgstr "" -#: includes/admin/upgrades/upgrade-functions.php:1517 +#: includes/admin/upgrades/upgrade-functions.php:440 msgid "I have secured a backup of my website data." msgstr "" -#: includes/admin/upgrades/upgrade-functions.php:1522 +#: includes/admin/upgrades/upgrade-functions.php:445 msgid "Upgrade Easy Digital Downloads" msgstr "" -#: includes/admin/upgrades/upgrade-functions.php:1547 +#: includes/admin/upgrades/upgrade-functions.php:470 #: includes/scripts.php:555 msgid "Migration complete" msgstr "" -#: includes/admin/upgrades/upgrade-functions.php:1552 +#: includes/admin/upgrades/upgrade-functions.php:475 msgid "Migration pending" msgstr "" -#: includes/admin/upgrades/upgrade-functions.php:1571 +#: includes/admin/upgrades/upgrade-functions.php:494 msgid "The data migration has been successfully completed. You may now leave this page or proceed to remove legacy data below." msgstr "" -#: includes/admin/upgrades/upgrade-functions.php:1598 +#: includes/admin/upgrades/upgrade-functions.php:521 msgid "Important: This removes all legacy data from where it was previously stored in custom post types and post meta. This is an optional step that is not reversible. Please back up your database and ensure your store is operational before completing this step." msgstr "" -#: includes/admin/upgrades/upgrade-functions.php:1604 +#: includes/admin/upgrades/upgrade-functions.php:527 msgid "You can complete this step later by navigating to %sDownloads » Tools%s." msgstr "" -#: includes/admin/upgrades/upgrade-functions.php:1615 +#: includes/admin/upgrades/upgrade-functions.php:538 msgid "I have confirmed my store is operational and I have a backup of my website data." msgstr "" -#: includes/admin/upgrades/upgrade-functions.php:1623 +#: includes/admin/upgrades/upgrade-functions.php:546 msgid "Permanently Remove Legacy Data" msgstr "" -#: includes/admin/upgrades/upgrade-functions.php:1634 +#: includes/admin/upgrades/upgrade-functions.php:557 msgid "Legacy data has been successfully removed. You may now leave this page." msgstr "" @@ -6389,12 +6360,12 @@ msgstr "" msgid "Upgrades" msgstr "" -#: includes/admin/upgrades/upgrades.php:87 -#: includes/admin/upgrades/upgrades.php:106 +#: includes/admin/upgrades/upgrades.php:92 +#: includes/admin/upgrades/upgrades.php:111 msgid "The upgrade process has started, please be patient. This could take several minutes. You will be automatically redirected when the upgrade is finished." msgstr "" -#: includes/admin/upgrades/upgrades.php:90 +#: includes/admin/upgrades/upgrades.php:95 msgid "Step %d of approximately %d running" msgstr "" @@ -6529,14 +6500,7 @@ msgstr[1] "" msgid "Remove %s" msgstr "" -#: includes/admin/views/tmpl-order-copy-download-link.php:18 -msgid "%s Links" -msgstr "" - -#: includes/admin/views/tmpl-order-copy-download-link.php:24 -msgid "No file links available" -msgstr "" - +#: includes/admin/views/tmpl-order-adjustment.php:41 #: includes/admin/views/tmpl-order-form-add-order-adjustment.php:31 #: includes/blocks/views/orders/fees.php:8 #: includes/blocks/views/orders/fees.php:12 @@ -6547,6 +6511,14 @@ msgid_plural "Fees" msgstr[0] "" msgstr[1] "" +#: includes/admin/views/tmpl-order-copy-download-link.php:18 +msgid "%s Links" +msgstr "" + +#: includes/admin/views/tmpl-order-copy-download-link.php:24 +msgid "No file links available" +msgstr "" + #: includes/admin/views/tmpl-order-form-add-order-adjustment.php:46 #: includes/ajax-functions.php:1080 #: includes/blocks/views/orders/credits.php:8 @@ -6996,7 +6968,7 @@ msgid "No %s found." msgstr "" #: includes/blocks/includes/forms/forms.php:67 -#: includes/users/lost-password.php:233 +#: includes/users/lost-password.php:244 msgid "Your password reset link appears to be invalid. Please request a new link below." msgstr "" @@ -7110,15 +7082,16 @@ msgid "Image" msgstr "" #: includes/blocks/views/checkout/cart/cart-item.php:23 +#: includes/blocks/views/orders/receipt-item.php:31 msgid "Quantity:" msgstr "" -#: includes/blocks/views/checkout/cart/cart.php:12 +#: includes/blocks/views/checkout/cart/cart.php:15 #: templates/checkout_cart.php:11 msgid "Item Name" msgstr "" -#: includes/blocks/views/checkout/cart/cart.php:13 +#: includes/blocks/views/checkout/cart/cart.php:16 #: templates/checkout_cart.php:12 msgid "Item Price" msgstr "" @@ -7182,15 +7155,15 @@ msgid "This is a secure SSL encrypted payment." msgstr "" #: includes/blocks/views/checkout/purchase-form/credit-card.php:22 -#: includes/gateways/stripe/includes/template-functions.php:141 -#: includes/gateways/stripe/includes/template-functions.php:163 +#: includes/gateways/stripe/includes/template-functions.php:142 +#: includes/gateways/stripe/includes/template-functions.php:164 msgid "Name on the Card" msgstr "" #: includes/blocks/views/checkout/purchase-form/credit-card.php:26 #: includes/checkout/template.php:280 -#: includes/gateways/stripe/includes/template-functions.php:144 -#: includes/gateways/stripe/includes/template-functions.php:167 +#: includes/gateways/stripe/includes/template-functions.php:145 +#: includes/gateways/stripe/includes/template-functions.php:168 msgid "Card name" msgstr "" @@ -7206,7 +7179,7 @@ msgstr "" #: includes/blocks/views/checkout/purchase-form/credit-card.php:42 #: includes/checkout/template.php:268 -#: includes/gateways/stripe/includes/template-functions.php:209 +#: includes/gateways/stripe/includes/template-functions.php:210 msgid "CVC" msgstr "" @@ -7217,7 +7190,7 @@ msgstr "" #: includes/blocks/views/checkout/purchase-form/credit-card.php:52 #: includes/checkout/template.php:285 -#: includes/gateways/stripe/includes/template-functions.php:606 +#: includes/gateways/stripe/includes/template-functions.php:607 msgid "Expiration (MM/YY)" msgstr "" @@ -7351,6 +7324,21 @@ msgstr "" msgid "Hide password" msgstr "" +#: includes/blocks/views/forms/registration.php:45 +#: includes/blocks/views/forms/reset-password.php:20 +msgid "Strength indicator" +msgstr "" + +#: includes/blocks/views/forms/registration.php:51 +#: includes/blocks/views/forms/reset-password.php:26 +msgid "Confirm use of weak password" +msgstr "" + +#: includes/blocks/views/forms/registration.php:73 +#: includes/blocks/views/forms/reset-password.php:43 +msgid "Generate Password" +msgstr "" + #: includes/blocks/views/forms/registration.php:74 #: includes/checkout/template.php:573 #: templates/shortcode-register.php:46 @@ -7365,6 +7353,14 @@ msgstr "" msgid "New password" msgstr "" +#: includes/blocks/views/forms/reset-password.php:31 +msgid "Confirm new password" +msgstr "" + +#: includes/blocks/views/forms/reset-password.php:44 +msgid "Save Password" +msgstr "" + #: includes/blocks/views/orders/guest.php:22 msgid "Confirm Email" msgstr "" @@ -7388,6 +7384,10 @@ msgstr "" msgid "No downloadable files found for this bundled item." msgstr "" +#: includes/blocks/views/orders/receipt-item.php:25 +msgid "SKU:" +msgstr "" + #: includes/blocks/views/orders/receipt-items.php:7 #: templates/shortcode-receipt.php:19 msgid "The specified receipt ID appears to be invalid." @@ -7422,28 +7422,28 @@ msgstr "" msgid "excludes %s tax" msgstr "" -#: includes/cart/class-edd-cart.php:1416 -#: includes/cart/class-edd-cart.php:1477 +#: includes/cart/class-edd-cart.php:1417 +#: includes/cart/class-edd-cart.php:1478 #: includes/error-tracking.php:84 #: templates/shortcode-profile-editor.php:22 msgid "Success" msgstr "" -#: includes/cart/class-edd-cart.php:1417 +#: includes/cart/class-edd-cart.php:1418 msgid "Cart saved successfully. You can restore your cart using this URL:" msgstr "" -#: includes/cart/class-edd-cart.php:1451 -#: includes/cart/class-edd-cart.php:1465 +#: includes/cart/class-edd-cart.php:1452 +#: includes/cart/class-edd-cart.php:1466 msgid "Cart restoration failed. Invalid token." msgstr "" -#: includes/cart/class-edd-cart.php:1459 -#: includes/cart/class-edd-cart.php:1468 +#: includes/cart/class-edd-cart.php:1460 +#: includes/cart/class-edd-cart.php:1469 msgid "The cart cannot be restored. Invalid token." msgstr "" -#: includes/cart/class-edd-cart.php:1477 +#: includes/cart/class-edd-cart.php:1478 msgid "Cart restored successfully." msgstr "" @@ -7496,7 +7496,7 @@ msgid "Name on the card" msgstr "" #: includes/checkout/template.php:279 -#: includes/gateways/stripe/includes/template-functions.php:166 +#: includes/gateways/stripe/includes/template-functions.php:167 msgid "The name printed on the front of your credit card." msgstr "" @@ -7537,7 +7537,7 @@ msgid "Billing zip/Postal code" msgstr "" #: includes/checkout/template.php:402 -#: includes/gateways/stripe/includes/template-functions.php:837 +#: includes/gateways/stripe/includes/template-functions.php:838 msgid "The zip or postal code for your billing address." msgstr "" @@ -7546,7 +7546,7 @@ msgid "Billing country" msgstr "" #: includes/checkout/template.php:412 -#: includes/gateways/stripe/includes/template-functions.php:813 +#: includes/gateways/stripe/includes/template-functions.php:814 msgid "The country for your billing address." msgstr "" @@ -7835,7 +7835,7 @@ msgstr "" #: includes/class-edd-cli.php:315 #: includes/user-functions.php:586 #: includes/user-functions.php:598 -#: includes/users/lost-password.php:169 +#: includes/users/lost-password.php:180 msgid "Username: %s" msgstr "" @@ -7971,12 +7971,12 @@ msgid "Single Use: %s" msgstr "" #: includes/class-edd-cli.php:487 -#: includes/class-edd-cli.php:2032 +#: includes/class-edd-cli.php:2061 msgid "No action specified, did you mean" msgstr "" #: includes/class-edd-cli.php:489 -#: includes/class-edd-cli.php:2034 +#: includes/class-edd-cli.php:2063 msgid "Invalid action specified, did you mean" msgstr "" @@ -8011,14 +8011,14 @@ msgstr "" #: includes/class-edd-cli.php:945 #: includes/class-edd-cli.php:1067 #: includes/class-edd-cli.php:1540 -#: includes/class-edd-cli.php:1773 +#: includes/class-edd-cli.php:1774 msgid "Old Records: " msgstr "" #: includes/class-edd-cli.php:946 #: includes/class-edd-cli.php:1068 #: includes/class-edd-cli.php:1541 -#: includes/class-edd-cli.php:1774 +#: includes/class-edd-cli.php:1775 msgid "New Records: " msgstr "" @@ -8210,94 +8210,106 @@ msgid "Partial order migration complete. Orders Processed: " msgstr "" #: includes/class-edd-cli.php:1768 -msgid "To recalculate all download sales and earnings, run wp edd `recalculate_download_sales_earnings`." +msgid "To recalculate all download sales and earnings, run `wp edd recalculate_download_sales_earnings`." msgstr "" -#: includes/class-edd-cli.php:1770 +#: includes/class-edd-cli.php:1769 +msgid "To recalculate all customer sales and earnings, run `wp edd recalculate_customer_values`." +msgstr "" + +#: includes/class-edd-cli.php:1771 msgid "Migration complete: Orders" msgstr "" -#: includes/class-edd-cli.php:1777 +#: includes/class-edd-cli.php:1778 msgid "Refund Records Created: " msgstr "" -#: includes/class-edd-cli.php:1798 +#: includes/class-edd-cli.php:1800 msgid "You must enter a payment ID to display legacy data." msgstr "" -#: includes/class-edd-cli.php:1813 +#: includes/class-edd-cli.php:1815 msgid "The legacy payment data could not be found." msgstr "" -#: includes/class-edd-cli.php:1856 +#: includes/class-edd-cli.php:1858 msgid "Sales and Earnings successfully recalculated for all downloads." msgstr "" -#: includes/class-edd-cli.php:1857 +#: includes/class-edd-cli.php:1859 msgid "Downloads Updated: " msgstr "" -#: includes/class-edd-cli.php:1875 +#: includes/class-edd-cli.php:1885 +msgid "Sales and Earnings successfully recalculated for all customers." +msgstr "" + +#: includes/class-edd-cli.php:1886 +msgid "Customers Updated: " +msgstr "" + +#: includes/class-edd-cli.php:1904 msgid "Do you want to remove legacy data? This will permanently remove legacy discounts, logs, and order notes." msgstr "" -#: includes/class-edd-cli.php:1883 +#: includes/class-edd-cli.php:1912 msgid "Legacy discounts have already been removed. To run this anyway, use the --force argument." msgstr "" -#: includes/class-edd-cli.php:1885 +#: includes/class-edd-cli.php:1914 msgid "Removing old discount data." msgstr "" -#: includes/class-edd-cli.php:1906 +#: includes/class-edd-cli.php:1935 msgid "Legacy logs have already been removed. To run this anyway, use the --force argument." msgstr "" -#: includes/class-edd-cli.php:1908 +#: includes/class-edd-cli.php:1937 msgid "Removing old logs." msgstr "" -#: includes/class-edd-cli.php:1929 +#: includes/class-edd-cli.php:1958 msgid "Legacy order notes have already been removed. To run this anyway, use the --force argument." msgstr "" -#: includes/class-edd-cli.php:1931 +#: includes/class-edd-cli.php:1960 msgid "Removing old order notes." msgstr "" -#: includes/class-edd-cli.php:1955 +#: includes/class-edd-cli.php:1984 msgid "Updating customers database table." msgstr "" -#: includes/class-edd-cli.php:1958 +#: includes/class-edd-cli.php:1987 msgid "Removing Payment IDs column." msgstr "" -#: includes/class-edd-cli.php:1964 +#: includes/class-edd-cli.php:1993 msgid "Removing notes column." msgstr "" -#: includes/class-edd-cli.php:1974 +#: includes/class-edd-cli.php:2003 msgid "Legacy customer emails have already been removed. To run this anyway, use the --force argument." msgstr "" -#: includes/class-edd-cli.php:1976 +#: includes/class-edd-cli.php:2005 msgid "Removing old customer emails." msgstr "" -#: includes/class-edd-cli.php:1987 +#: includes/class-edd-cli.php:2016 msgid "Legacy customer addresses have already been removed. To run this anyway, use the --force argument." msgstr "" -#: includes/class-edd-cli.php:1989 +#: includes/class-edd-cli.php:2018 msgid "Removing old customer addresses." msgstr "" -#: includes/class-edd-cli.php:2000 +#: includes/class-edd-cli.php:2029 msgid "Legacy orders have already been removed. To run this anyway, use the --force argument." msgstr "" -#: includes/class-edd-cli.php:2002 +#: includes/class-edd-cli.php:2031 msgid "Removing old orders." msgstr "" @@ -8315,7 +8327,7 @@ msgid "Draft" msgstr "" #: includes/class-edd-discount.php:678 -#: includes/gateways/stripe/includes/template-functions.php:378 +#: includes/gateways/stripe/includes/template-functions.php:379 #: includes/misc-functions.php:1457 msgid "Expired" msgstr "" @@ -9153,7 +9165,7 @@ msgid "Sorry but you have hit your download limit for this file." msgstr "" #: includes/deprecated-functions.php:505 -#: includes/download-functions.php:1567 +#: includes/download-functions.php:1498 msgid "Sorry but your download link has expired." msgstr "" @@ -9256,7 +9268,11 @@ msgstr "" msgid "Would you like to enable reviews for this product? Check out our Product Reviews extension." msgstr "" -#: includes/download-functions.php:675 +#: includes/download-functions.php:605 +msgid "Single Product" +msgstr "" + +#: includes/download-functions.php:606 msgid "Bundle" msgstr "" @@ -9572,10 +9588,14 @@ msgstr "" msgid "Missing nonce when loading the gateway fields. Please read the following for more information: https://easydigitaldownloads.com/development/2018/07/05/important-update-to-ajax-requests-in-easy-digital-downloads-2-9-4" msgstr "" -#: includes/gateways/actions.php:68 +#: includes/gateways/actions.php:71 msgid "You must enable a payment gateway to use Easy Digital Downloads" msgstr "" +#: includes/gateways/actions.php:73 +msgid "Your order cannot be completed at this time. Please try again or contact site support." +msgstr "" + #: includes/gateways/amazon-payments.php:197 msgid "There is an error with the Amazon Payments configuration." msgstr "" @@ -9713,7 +9733,7 @@ msgstr "" #: includes/gateways/functions.php:54 #: includes/gateways/functions.php:55 #: includes/gateways/functions.php:71 -#: includes/gateways/paypal/admin/settings.php:35 +#: includes/gateways/paypal/admin/settings.php:36 msgid "PayPal" msgstr "" @@ -9964,132 +9984,128 @@ msgid "PayPal refund failed: %s" msgstr "" #: includes/gateways/paypal/admin/connect.php:32 -#: includes/gateways/paypal/admin/connect.php:360 +#: includes/gateways/paypal/admin/connect.php:408 msgid "sandbox" msgstr "" #: includes/gateways/paypal/admin/connect.php:32 -#: includes/gateways/paypal/admin/connect.php:360 +#: includes/gateways/paypal/admin/connect.php:408 msgid "live" msgstr "" #. Translators: %1$s opening tag; %2$s closing tag -#: includes/gateways/paypal/admin/connect.php:51 -msgid "%1$sConnection failure:%2$s This is most likely due to your browser blocking the connection. Most store owners have the best success with Chrome, but for some reason, a few select browsers/devices prevent the connection from EDD and PayPal from working. You might have to enable popups, then restart your browser. If that doesn't work, please try a different browser or device and see if that works. If you continue to experience this error, please contact support." +#: includes/gateways/paypal/admin/connect.php:43 +msgid "%1$sPayPal Communication Error:%2$s We are having trouble communicating with PayPal at the moment. Please try again later, and if the issue persists, reach out to our support team." msgstr "" #. Translators: %s - the store mode, either `sandbox` or `live` -#: includes/gateways/paypal/admin/connect.php:64 +#: includes/gateways/paypal/admin/connect.php:56 msgid "Connect with PayPal in %s mode" msgstr "" -#: includes/gateways/paypal/admin/connect.php:68 -msgid "Sign up for PayPal" -msgstr "" - -#: includes/gateways/paypal/admin/connect.php:79 -#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:372 +#: includes/gateways/paypal/admin/connect.php:71 +#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:377 msgid "Retrieving account information..." msgstr "" #. Translators: %d - HTTP response code; %s - Response from the API -#: includes/gateways/paypal/admin/connect.php:131 +#: includes/gateways/paypal/admin/connect.php:183 msgid "Unexpected response code: %d. Error: %s" msgstr "" -#: includes/gateways/paypal/admin/connect.php:138 +#: includes/gateways/paypal/admin/connect.php:190 msgid "An unexpected error occurred." msgstr "" -#: includes/gateways/paypal/admin/connect.php:179 +#: includes/gateways/paypal/admin/connect.php:222 msgid "Failure reconnecting to PayPal. Please try again" msgstr "" -#: includes/gateways/paypal/admin/connect.php:185 +#: includes/gateways/paypal/admin/connect.php:228 msgid "Your account has been successfully reconnected, but an error occurred while creating a webhook." msgstr "" -#: includes/gateways/paypal/admin/connect.php:223 +#: includes/gateways/paypal/admin/connect.php:265 msgid "Missing PayPal authentication information. Please try again." msgstr "" -#: includes/gateways/paypal/admin/connect.php:230 +#: includes/gateways/paypal/admin/connect.php:272 msgid "Missing nonce. Please refresh the page and try again." msgstr "" #. Translators: %d - HTTP response code -#: includes/gateways/paypal/admin/connect.php:263 +#: includes/gateways/paypal/admin/connect.php:310 msgid "Unexpected response from PayPal while generating token. Response code: %d. Please try again." msgstr "" #. Translators: %d - HTTP response code -#: includes/gateways/paypal/admin/connect.php:291 +#: includes/gateways/paypal/admin/connect.php:339 msgid "Unexpected response from PayPal. Response code: %d. Please try again." msgstr "" -#: includes/gateways/paypal/admin/connect.php:299 +#: includes/gateways/paypal/admin/connect.php:347 msgid "Successfully connected." msgstr "" -#: includes/gateways/paypal/admin/connect.php:304 +#: includes/gateways/paypal/admin/connect.php:352 msgid "Your account has been successfully connected, but an error occurred while creating a webhook." msgstr "" -#: includes/gateways/paypal/admin/connect.php:338 +#: includes/gateways/paypal/admin/connect.php:386 msgid "Re-Check Payment Status" msgstr "" -#: includes/gateways/paypal/admin/connect.php:339 +#: includes/gateways/paypal/admin/connect.php:387 msgid "Sync Webhook" msgstr "" -#: includes/gateways/paypal/admin/connect.php:343 +#: includes/gateways/paypal/admin/connect.php:391 msgid "Disconnect webhooks from PayPal" msgstr "" -#: includes/gateways/paypal/admin/connect.php:344 +#: includes/gateways/paypal/admin/connect.php:392 msgid "Delete connection with PayPal" msgstr "" -#: includes/gateways/paypal/admin/connect.php:353 +#: includes/gateways/paypal/admin/connect.php:401 msgid "API:" msgstr "" #. Translators: %s - the connected mode, either `sandbox` or `live` -#: includes/gateways/paypal/admin/connect.php:363 +#: includes/gateways/paypal/admin/connect.php:411 msgid "Your PayPal account is successfully connected in %s mode." msgstr "" -#: includes/gateways/paypal/admin/connect.php:378 +#: includes/gateways/paypal/admin/connect.php:426 msgid "Payment Status:" msgstr "" -#: includes/gateways/paypal/admin/connect.php:382 +#: includes/gateways/paypal/admin/connect.php:430 msgid "You need to address the following issues before you can start receiving payments:" msgstr "" -#: includes/gateways/paypal/admin/connect.php:390 +#: includes/gateways/paypal/admin/connect.php:438 msgid "Ready to accept payments." msgstr "" -#: includes/gateways/paypal/admin/connect.php:412 +#: includes/gateways/paypal/admin/connect.php:460 msgid "Webhook:" msgstr "" -#: includes/gateways/paypal/admin/connect.php:420 +#: includes/gateways/paypal/admin/connect.php:468 msgid "Create Webhooks" msgstr "" -#: includes/gateways/paypal/admin/connect.php:425 +#: includes/gateways/paypal/admin/connect.php:473 msgid "Webhook successfully configured for the following events:" msgstr "" #. Translators: %1$s opening anchor tag; %2$s closing anchor tag; %3$s: opening line item/status/strong tags; %4$s closing strong tag; %5$s: closing list item tag -#: includes/gateways/paypal/admin/connect.php:450 +#: includes/gateways/paypal/admin/connect.php:498 msgid "%3$sGateway Status: %4$s PayPal is not currently active. %1$sEnable PayPal%2$s in the general gateway settings to start using it.%5$s" msgstr "" -#: includes/gateways/paypal/admin/connect.php:628 +#: includes/gateways/paypal/admin/connect.php:682 msgid "No merchant ID saved. Please reconnect to PayPal." msgstr "" @@ -10110,7 +10126,7 @@ msgstr "" msgid "Dismiss Notice" msgstr "" -#: includes/gateways/paypal/admin/scripts.php:33 +#: includes/gateways/paypal/admin/scripts.php:28 msgid "An unexpected error occurred. Please refresh the page and try again." msgstr "" @@ -10119,59 +10135,59 @@ msgid "PayPal Settings" msgstr "" #: includes/gateways/paypal/admin/settings.php:60 -msgid "Documentation" -msgstr "" - -#: includes/gateways/paypal/admin/settings.php:66 #: includes/gateways/stripe/includes/admin/settings.php:31 msgid "Connection Status" msgstr "" -#: includes/gateways/paypal/admin/settings.php:73 +#: includes/gateways/paypal/admin/settings.php:66 msgid "Test Client ID" msgstr "" -#: includes/gateways/paypal/admin/settings.php:74 +#: includes/gateways/paypal/admin/settings.php:67 msgid "Enter your test client ID." msgstr "" -#: includes/gateways/paypal/admin/settings.php:81 +#: includes/gateways/paypal/admin/settings.php:74 msgid "Test Client Secret" msgstr "" -#: includes/gateways/paypal/admin/settings.php:82 +#: includes/gateways/paypal/admin/settings.php:75 msgid "Enter your test client secret." msgstr "" -#: includes/gateways/paypal/admin/settings.php:89 +#: includes/gateways/paypal/admin/settings.php:82 msgid "Live Client ID" msgstr "" -#: includes/gateways/paypal/admin/settings.php:90 +#: includes/gateways/paypal/admin/settings.php:83 msgid "Enter your live client ID." msgstr "" -#: includes/gateways/paypal/admin/settings.php:97 +#: includes/gateways/paypal/admin/settings.php:90 msgid "Live Client Secret" msgstr "" -#: includes/gateways/paypal/admin/settings.php:98 +#: includes/gateways/paypal/admin/settings.php:91 msgid "Enter your live client secret." msgstr "" -#: includes/gateways/paypal/admin/settings.php:107 +#: includes/gateways/paypal/admin/settings.php:105 msgid "Connect with PayPal" msgstr "" -#: includes/gateways/paypal/admin/settings.php:108 -msgid "Connecting your store with PayPal allows Easy Digital Downloads to automatically configure your store to securely communicate PayPal.

    You may see \"Sandhills Development, LLC\", mentioned during the process—that is the company behind Easy Digital Downloads." +#: includes/gateways/paypal/admin/settings.php:106 +msgid "Connecting your store with PayPal allows Easy Digital Downloads to automatically configure your store to securely communicate with PayPal.

    You may see \"Sandhills Development, LLC\", mentioned during the process—that is the company behind Easy Digital Downloads." msgstr "" -#: includes/gateways/paypal/admin/settings.php:137 -msgid "To learn more about the PayPal gateway, visit our documentation." +#: includes/gateways/paypal/admin/settings.php:132 +msgid "View Documentation" msgstr "" -#: includes/gateways/paypal/admin/settings.php:149 +#: includes/gateways/paypal/admin/settings.php:136 +msgid "Get Help" +msgstr "" + +#: includes/gateways/paypal/admin/settings.php:146 msgid "PayPal requires an SSL certificate to accept payments. You can learn more about obtaining an SSL certificate in our SSL setup article." msgstr "" @@ -10196,7 +10212,7 @@ msgstr "" #: includes/gateways/paypal/checkout-actions.php:153 #: includes/gateways/paypal/checkout-actions.php:313 -#: includes/gateways/paypal/scripts.php:115 +#: includes/gateways/paypal/scripts.php:105 msgid "An unexpected error occurred. Please try again." msgstr "" @@ -10461,7 +10477,7 @@ msgid "A message must be specified for each notice." msgstr "" #: includes/gateways/stripe/includes/admin/notices.php:39 -#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:671 +#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:676 #: includes/gateways/stripe/includes/payment-methods/apple-pay.php:20 msgid "Unable to locate registry" msgstr "" @@ -10510,8 +10526,8 @@ msgid "In order to be compatible with future versions of the Stripe payment gate msgstr "" #: includes/gateways/stripe/includes/admin/notices/php-requirement.php:84 -#: includes/gateways/stripe/includes/admin/settings.php:334 -#: includes/gateways/stripe/includes/admin/settings.php:403 +#: includes/gateways/stripe/includes/admin/settings.php:375 +#: includes/gateways/stripe/includes/admin/settings.php:444 msgid "Need help upgrading? Ask your web host!" msgstr "" @@ -10677,20 +10693,56 @@ msgstr "" msgid "Previously used cards are now managed by Link by Stripe, for even better conversions and security." msgstr "" -#: includes/gateways/stripe/includes/admin/settings.php:205 +#: includes/gateways/stripe/includes/admin/settings.php:208 +msgid "Debugging Settings" +msgstr "" + +#: includes/gateways/stripe/includes/admin/settings.php:210 +msgid "The following settings are available while Easy Digital Downloads is in debug mode. They are not designed to be primary settings and should be used only while debugging or when instructed to be used by the Easy Digital Downloads Team." +msgstr "" + +#: includes/gateways/stripe/includes/admin/settings.php:211 +msgid "There is no guarantee that these settings will remain available in future versions of Easy Digital Downloads. Easy Digital Downloads Debug Mode should be disabled once changes to these settings have been made." +msgstr "" + +#: includes/gateways/stripe/includes/admin/settings.php:218 +msgid "Disable access to Card Elements" +msgstr "" + +#: includes/gateways/stripe/includes/admin/settings.php:218 +msgid "Enable access to Card Elements" +msgstr "" + +#: includes/gateways/stripe/includes/admin/settings.php:219 +msgid "Access to Legacy Card Elements is Enabled" +msgstr "" + +#: includes/gateways/stripe/includes/admin/settings.php:219 +msgid "Access to Legacy Card Elements is Disabled" +msgstr "" + +#: includes/gateways/stripe/includes/admin/settings.php:225 +msgid "Toggle Card Elements" +msgstr "" + +#: includes/gateways/stripe/includes/admin/settings.php:236 +msgid "Card Elements is the legacy Stripe integration. Easy Digital Downloads has updated to use the more secure and reliable Payment Elements feature of Stripe. This toggle allows sites without access to Card Elements to enable or disable it." +msgstr "" + +#: includes/gateways/stripe/includes/admin/settings.php:246 msgid "You have disabled the \"Test Mode\" option. Once you have saved your changes, please verify your Stripe connection, especially if you have not previously connected in with \"Test Mode\" disabled." msgstr "" #. translators: %1$s Future PHP version requirement. %2$s Current PHP version. %3$s Opening strong tag, do not translate. %4$s Closing strong tag, do not translate. #. translators: %1$s PHP version requirement. %2$s Current PHP version. %3$s Opening strong tag, do not translate. %4$s Closing strong tag, do not translate. -#: includes/gateways/stripe/includes/admin/settings.php:316 -#: includes/gateways/stripe/includes/admin/settings.php:388 +#: includes/gateways/stripe/includes/admin/settings.php:357 +#: includes/gateways/stripe/includes/admin/settings.php:429 msgid "Processing credit cards with Stripe requires PHP version %1$s or higher. It looks like you're using version %2$s, which means you will need to %3$supgrade your version of PHP before acceping credit card payments%4$s." msgstr "" #. translators: %1$s Opening anchor tag, do not translate. %2$s Closing anchor tag, do not translate. -#: includes/gateways/stripe/includes/admin/settings.php:340 -#: includes/gateways/stripe/includes/admin/settings.php:408 +#: includes/gateways/stripe/includes/admin/settings.php:381 +#: includes/gateways/stripe/includes/admin/settings.php:449 msgid "Many web hosts can give you instructions on how/where to upgrade your version of PHP through their control panel, or may even be able to do it for you. If you need to change hosts, please see %1$sour hosting recommendations%2$s." msgstr "" @@ -10699,135 +10751,168 @@ msgstr "" msgid "There was an error getting your Stripe credentials. Please %1$stry again%2$s. If you continue to have this problem, please contact support." msgstr "" -#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:325 -#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:615 -#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:677 +#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:330 +#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:620 +#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:682 +#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:857 msgid "Connect with Stripe" msgstr "" -#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:335 +#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:340 msgid "Connect with Stripe for pay as you go pricing: 2% per-transaction fee + Stripe fees." msgstr "" #. translators: %1$s Opening anchor tag, do not translate. %2$s Closing anchor tag, do not translate. -#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:346 +#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:351 msgid "Have questions about connecting with Stripe? See the %1$sdocumentation%2$s." msgstr "" -#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:385 +#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:390 msgid "Manage API keys manually" msgstr "" -#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:395 +#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:400 msgid "Hide API keys" msgstr "" -#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:401 +#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:406 msgid "Although you can add your API keys manually, we recommend using Stripe Connect: an easier and more secure way of connecting your Stripe account to your website. Stripe Connect prevents issues that can arise when copying and pasting account details from Stripe into your Easy Digital Downloads payment gateway settings. With Stripe Connect you'll be ready to go with just a few clicks." msgstr "" -#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:419 +#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:424 msgid "Unable to retrieve account information." msgstr "" -#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:437 +#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:442 msgctxt "Stripe Connect mode" msgid "test" msgstr "" -#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:438 +#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:443 msgctxt "Stripe Connect mode" msgid "live" msgstr "" #. translators: %1$s Stripe payment mode. %2$s Opening anchor tag for reconnecting to Stripe, do not translate. %3$s Opening anchor tag for disconnecting Stripe, do not translate. %4$s Closing anchor tag, do not translate. -#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:444 +#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:449 msgid "Your Stripe account is connected in %1$s mode. %2$sReconnect in %1$s mode%4$s, or %3$sdisconnect this account%4$s." msgstr "" #. translators: %1$s Opening bold tag, do not translate. %2$s Closing bold tag, do not translate. -#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:466 +#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:471 msgid "You are currently connected to a %1$stemporary%2$s Stripe test account, which can only be used for testing purposes. You cannot manage this account in Stripe." msgstr "" -#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:476 +#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:481 msgid "Webhooks cannot be configured for recurring purchases with this account." msgstr "" #. translators: %1$s Opening link tag, do not translate. %2$s Closing link tag, do not translate. -#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:483 +#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:488 msgid "%1$sRegister a Stripe account%2$s for full access." msgstr "" #. translators: %1$s Opening anchor tag for disconnecting Stripe, do not translate. %2$s Closing anchor tag, do not translate. -#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:494 +#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:499 msgid "%1$sDisconnect this account%2$s." msgstr "" -#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:560 +#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:565 msgid "Pay as you go pricing: 2% per-transaction fee + Stripe fees." msgstr "" -#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:567 +#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:572 msgid "%sUpgrade to Pro%s and install the Stripe Pro Gateway to remove transaction fees." msgstr "" -#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:581 +#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:586 msgid "Administrator (Owner)" msgstr "" -#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:592 +#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:597 msgid "The API keys provided do not match the Stripe Connect account associated with this installation. If you have manually modified these values after connecting your account, please reconnect below or update your API keys." msgstr "" -#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:618 +#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:623 msgid "It is highly recommended to Connect with Stripe for easier setup and improved security." msgstr "" #. translators: %1$s Stripe payment mode. -#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:631 +#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:636 msgid "Your manually managed %1$s mode API keys are valid." msgstr "" #. translators: %1$s Stripe payment mode. -#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:647 +#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:652 msgid "Your manually managed %1$s mode API keys are invalid." msgstr "" -#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:687 -msgid "Your current Stripe payment connection is out of date. Enable more secure and reliable payments by clicking the button below to enable Stripe Connect." -msgstr "" - -#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:701 +#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:692 #: src/Admin/Onboarding/Steps/PaymentMethods.php:49 msgid "Start accepting payments with Stripe by connecting your account. Stripe Connect helps ensure easier setup and improved security." msgstr "" -#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:712 +#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:703 msgctxt "gateway test mode status" msgid "enabled" msgstr "" -#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:713 +#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:704 msgctxt "gateway test mode status" msgid "disabled" msgstr "" #. translators: %s Test mode status. Enabled or disabled. -#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:722 +#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:713 msgid "\"Test Mode\" has been %s. Please verify your Stripe connection status." msgstr "" +#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:787 +msgid "Stripe Connect" +msgstr "" + +#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:804 +msgid "You are securely connected to Stripe" +msgstr "" + +#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:807 +msgid "Easy Digital Downloads: Stripe" +msgstr "" + +#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:812 +msgid "Stripe Connect helps ensure easy setup and security." +msgstr "" + +#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:825 +msgid "You are using the legacy Card Elements fields" +msgstr "" + +#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:830 +msgid "Increase conversions, security, and reliability by using the Payment Elements integration for Stripe." +msgstr "" + +#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:843 +msgid "Switch to Payment Elements" +msgstr "" + +#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:847 +msgid "You are using manually managed Stripe API keys" +msgstr "" + +#: includes/gateways/stripe/includes/admin/settings/stripe-connect.php:852 +msgid "By securely connecting your Easy Digital Downloads store with Stripe Connect, you'll get access to more reliable payments and use managed API keys which are more secure." +msgstr "" + #. translators: %s Upgrade link. -#: includes/gateways/stripe/includes/admin/upgrade-functions.php:87 +#: includes/gateways/stripe/includes/admin/upgrade-functions.php:85 msgid "Easy Digital Downloads - Stripe Gateway needs to upgrade the customers database; click here to start the upgrade. Learn more about this upgrade" msgstr "" -#: includes/gateways/stripe/includes/admin/upgrade-functions.php:90 +#: includes/gateways/stripe/includes/admin/upgrade-functions.php:88 msgid "About this upgrade:
    This upgrade will improve the reliability of associating purchase records with your existing customer records in Stripe by changing their Stripe Customer IDs to be stored locally on their EDD customer record, instead of their user record." msgstr "" -#: includes/gateways/stripe/includes/admin/upgrade-functions.php:92 +#: includes/gateways/stripe/includes/admin/upgrade-functions.php:90 msgid "Advanced User?
    This upgrade can also be run via WPCLI with the following command:
    wp edd-stripe migrate_customer_ids" msgstr "" @@ -10893,8 +10978,8 @@ msgstr "" msgid "We are unable to process your payment at this time, please try again later or contact support." msgstr "" -#: includes/gateways/stripe/includes/class-edd-stripe.php:288 -#: includes/gateways/stripe/includes/template-functions.php:176 +#: includes/gateways/stripe/includes/class-edd-stripe.php:310 +#: includes/gateways/stripe/includes/template-functions.php:177 msgid "Credit Card" msgstr "" @@ -10923,6 +11008,11 @@ msgstr "" msgid "Error processing purchase. Please reload the page and try again." msgstr "" +#. translators: %s: WP_ENVIRONMENT_TYPES +#: includes/gateways/stripe/includes/compat.php:419 +msgid "The %s constant is no longer supported." +msgstr "" + #: includes/gateways/stripe/includes/emails.php:29 msgid "Your Preapproved Payment Requires Action" msgstr "" @@ -11098,51 +11188,51 @@ msgstr "" msgid "Charges are no longer directly created in Stripe. Please read the following for more information: https://easydigitaldownloads.com/development/" msgstr "" -#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:346 -#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:368 -#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:386 -#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:462 -#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:544 -#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:626 -#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:713 -#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:919 -#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:1056 +#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:344 +#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:366 +#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:384 +#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:460 +#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:542 +#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:624 +#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:711 +#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:917 +#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:1054 #: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:703 msgid "Stripe Error" msgstr "" -#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:348 -#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:370 +#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:346 +#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:368 msgid "There was an error while processing a Stripe payment. Payment data: %s" msgstr "" -#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:428 -#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:438 -#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:497 -#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:507 -#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:578 -#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:589 -#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:660 -#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:670 -#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:748 -#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:759 -#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:771 -#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:783 -#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:800 -#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:832 -#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:953 -#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:964 -#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:974 -#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:993 -#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:1041 -#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:1087 -#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:1098 -#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:1111 -#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:1145 +#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:426 +#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:436 +#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:495 +#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:505 +#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:576 +#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:587 +#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:658 +#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:668 +#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:746 +#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:757 +#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:769 +#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:781 +#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:798 +#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:830 +#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:951 +#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:962 +#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:972 +#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:991 +#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:1039 +#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:1085 +#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:1096 +#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:1109 +#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:1143 msgid "An error occurred, but your payment may have gone through. Please contact the site administrator." msgstr "" -#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:904 +#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:902 msgid "Unable to create payment." msgstr "" @@ -11194,16 +11284,16 @@ msgstr "" msgid "Apple Pay domain verification error." msgstr "" -#: includes/gateways/stripe/includes/payment-methods/apple-pay.php:173 +#: includes/gateways/stripe/includes/payment-methods/apple-pay.php:172 msgid "Unable to create domain association folder in domain root." msgstr "" -#: includes/gateways/stripe/includes/payment-methods/apple-pay.php:180 +#: includes/gateways/stripe/includes/payment-methods/apple-pay.php:179 msgid "Unable to copy domain association file to domain .well-known directory." msgstr "" #. translators: %1$s Opening anchor tag, do not translate. %2$s Closing anchor tag, do not translate. -#: includes/gateways/stripe/includes/payment-methods/apple-pay.php:283 +#: includes/gateways/stripe/includes/payment-methods/apple-pay.php:281 msgid "Please %1$smanually add your domain%2$s %3$s to use Apple Pay." msgstr "" @@ -11308,92 +11398,92 @@ msgstr "" msgid "Adding new payment methods is currently unavailable." msgstr "" -#: includes/gateways/stripe/includes/template-functions.php:174 +#: includes/gateways/stripe/includes/template-functions.php:175 msgid "Credit Card Number" msgstr "" -#: includes/gateways/stripe/includes/template-functions.php:200 +#: includes/gateways/stripe/includes/template-functions.php:201 msgid "Expiration" msgstr "" #. translators: %1$s Card type. %2$s Card last 4. -#: includes/gateways/stripe/includes/template-functions.php:290 +#: includes/gateways/stripe/includes/template-functions.php:291 msgid "Update card billing address for %1$s •••• %2$s" msgstr "" -#: includes/gateways/stripe/includes/template-functions.php:318 +#: includes/gateways/stripe/includes/template-functions.php:319 msgid "We are unable to process your payment at this time, please try again later or contacts support." msgstr "" #. translators: %1$s Card type. %2$s Card last 4. -#: includes/gateways/stripe/includes/template-functions.php:353 -#: includes/gateways/stripe/includes/template-functions.php:442 +#: includes/gateways/stripe/includes/template-functions.php:354 +#: includes/gateways/stripe/includes/template-functions.php:443 msgid "%1$s •••• %2$s" msgstr "" -#: includes/gateways/stripe/includes/template-functions.php:390 -#: includes/gateways/stripe/includes/template-functions.php:663 +#: includes/gateways/stripe/includes/template-functions.php:391 +#: includes/gateways/stripe/includes/template-functions.php:664 msgid "Add New Card" msgstr "" -#: includes/gateways/stripe/includes/template-functions.php:419 +#: includes/gateways/stripe/includes/template-functions.php:420 msgid "Payment method management is currently unavailable." msgstr "" -#: includes/gateways/stripe/includes/template-functions.php:432 +#: includes/gateways/stripe/includes/template-functions.php:433 msgid "Manage Payment Methods" msgstr "" -#: includes/gateways/stripe/includes/template-functions.php:461 +#: includes/gateways/stripe/includes/template-functions.php:462 msgid "Expires" msgstr "" -#: includes/gateways/stripe/includes/template-functions.php:483 +#: includes/gateways/stripe/includes/template-functions.php:484 msgid "Set as Default" msgstr "" -#: includes/gateways/stripe/includes/template-functions.php:501 -#: includes/gateways/stripe/includes/template-functions.php:805 +#: includes/gateways/stripe/includes/template-functions.php:502 +#: includes/gateways/stripe/includes/template-functions.php:806 msgid "Billing Details" msgstr "" -#: includes/gateways/stripe/includes/template-functions.php:551 +#: includes/gateways/stripe/includes/template-functions.php:552 msgid "ZIP Code" msgstr "" -#: includes/gateways/stripe/includes/template-functions.php:644 -#: includes/gateways/stripe/includes/template-functions.php:688 +#: includes/gateways/stripe/includes/template-functions.php:645 +#: includes/gateways/stripe/includes/template-functions.php:689 msgid "Please Wait…" msgstr "" -#: includes/gateways/stripe/includes/template-functions.php:645 #: includes/gateways/stripe/includes/template-functions.php:646 +#: includes/gateways/stripe/includes/template-functions.php:647 msgid "Update Card" msgstr "" -#: includes/gateways/stripe/includes/template-functions.php:665 +#: includes/gateways/stripe/includes/template-functions.php:666 msgid "Credit Card Details" msgstr "" -#: includes/gateways/stripe/includes/template-functions.php:689 #: includes/gateways/stripe/includes/template-functions.php:690 +#: includes/gateways/stripe/includes/template-functions.php:691 msgid "Add new card" msgstr "" -#: includes/gateways/stripe/includes/template-functions.php:808 +#: includes/gateways/stripe/includes/template-functions.php:809 msgid "Billing Country" msgstr "" -#: includes/gateways/stripe/includes/template-functions.php:832 +#: includes/gateways/stripe/includes/template-functions.php:833 msgid "Billing Zip / Postal Code" msgstr "" -#: includes/gateways/stripe/includes/template-functions.php:906 +#: includes/gateways/stripe/includes/template-functions.php:907 #: includes/process-purchase.php:487 msgid "Please enter your zip / postal code" msgstr "" -#: includes/gateways/stripe/includes/template-functions.php:911 +#: includes/gateways/stripe/includes/template-functions.php:912 #: includes/process-purchase.php:499 msgid "Please select your billing country" msgstr "" @@ -11597,7 +11687,7 @@ msgstr "" msgid "Lost Password" msgstr "" -#: includes/payments/class-edd-payment.php:1821 +#: includes/payments/class-edd-payment.php:1819 msgid "Array key \"post_status\" is no longer a supported attribute for the \"edd_update_payment_status_fields\" filter. Please use \"status\" instead." msgstr "" @@ -11629,7 +11719,7 @@ msgstr "" msgid "Abandoned" msgstr "" -#: includes/payments/functions.php:2008 +#: includes/payments/functions.php:1932 msgid "A store migration is in progress. Past orders will not appear in your purchase history until they have been updated." msgstr "" @@ -12351,7 +12441,7 @@ msgstr "" msgid "Your email address must be shorter than 100 characters." msgstr "" -#: includes/process-purchase.php:1332 +#: includes/process-purchase.php:1336 msgid "There was an error completing your purchase. Please try again." msgstr "" @@ -12671,20 +12761,20 @@ msgstr "" msgid "Receipt could not be retrieved, your purchase session has expired." msgstr "" -#: includes/shortcodes.php:834 +#: includes/shortcodes.php:837 msgid "The passwords you entered do not match. Please try again." msgstr "" -#: includes/shortcodes.php:845 +#: includes/shortcodes.php:848 msgid "The email you entered is invalid. Please enter a valid email." msgstr "" -#: includes/shortcodes.php:856 +#: includes/shortcodes.php:859 #: includes/users/register.php:76 msgid "This email address is not available." msgstr "" -#: includes/shortcodes.php:985 +#: includes/shortcodes.php:991 msgid "Error removing email address from profile. Please try again later." msgstr "" @@ -12714,43 +12804,43 @@ msgstr "" msgid "Excluding %1$s tax" msgstr "" -#: includes/template-functions.php:470 +#: includes/template-functions.php:471 msgid "White" msgstr "" -#: includes/template-functions.php:474 +#: includes/template-functions.php:475 msgid "Gray" msgstr "" -#: includes/template-functions.php:478 +#: includes/template-functions.php:479 msgid "Blue" msgstr "" -#: includes/template-functions.php:482 +#: includes/template-functions.php:483 msgid "Red" msgstr "" -#: includes/template-functions.php:486 +#: includes/template-functions.php:487 msgid "Green" msgstr "" -#: includes/template-functions.php:490 +#: includes/template-functions.php:491 msgid "Yellow" msgstr "" -#: includes/template-functions.php:494 +#: includes/template-functions.php:495 msgid "Orange" msgstr "" -#: includes/template-functions.php:498 +#: includes/template-functions.php:499 msgid "Dark Gray" msgstr "" -#: includes/template-functions.php:502 +#: includes/template-functions.php:503 msgid "Inherit" msgstr "" -#: includes/template-functions.php:521 +#: includes/template-functions.php:522 msgid "Plain Text" msgstr "" @@ -12851,56 +12941,61 @@ msgid "Follow the instructions in the confirmation email you just received, then msgstr "" #: includes/users/lost-password.php:123 +msgid "Your request could not be completed." +msgstr "" + +#: includes/users/lost-password.php:130 msgid "You did it! Check your email for instructions on resetting your password." msgstr "" -#: includes/users/lost-password.php:165 +#: includes/users/lost-password.php:176 msgid "Someone has requested a password reset for the following account:" msgstr "" #. translators: %s: Site name. -#: includes/users/lost-password.php:167 +#: includes/users/lost-password.php:178 msgid "Site Name: %s" msgstr "" -#: includes/users/lost-password.php:170 +#: includes/users/lost-password.php:181 msgid "If this was a mistake, ignore this email and nothing will happen." msgstr "" -#: includes/users/lost-password.php:171 +#: includes/users/lost-password.php:182 msgid "To reset your password, visit the following address:" msgstr "" #. translators: %s: IP address of password reset requester. -#: includes/users/lost-password.php:187 +#: includes/users/lost-password.php:198 msgid "This password reset request originated from the IP address %s." msgstr "" -#: includes/users/lost-password.php:231 +#: includes/users/lost-password.php:242 msgid "Your password reset link has expired. Please request a new link below." msgstr "" -#: includes/users/lost-password.php:253 -#: includes/users/lost-password.php:257 -#: includes/users/lost-password.php:263 +#: includes/users/lost-password.php:264 +#: includes/users/lost-password.php:269 +#: includes/users/lost-password.php:273 +#: includes/users/lost-password.php:279 msgid "Invalid password reset request." msgstr "" -#: includes/users/lost-password.php:272 +#: includes/users/lost-password.php:288 #: includes/users/register.php:97 msgid "The password cannot be a space or all spaces." msgstr "" -#: includes/users/lost-password.php:277 +#: includes/users/lost-password.php:293 #: includes/users/register.php:102 msgid "The passwords do not match." msgstr "" -#: includes/users/lost-password.php:282 +#: includes/users/lost-password.php:298 msgid "Your password could not be reset." msgstr "" -#: includes/users/lost-password.php:291 +#: includes/users/lost-password.php:307 msgid "Your password was successfully reset." msgstr "" @@ -13668,6 +13763,191 @@ msgstr "" msgid "Run the WP Mail SMTP Setup Wizard" msgstr "" +#: src/Admin/SiteHealth/Direct.php:17 +msgid "EDD Checkout Page" +msgstr "" + +#: src/Admin/SiteHealth/Direct.php:22 +msgid "Protected Download Files" +msgstr "" + +#: src/Admin/SiteHealth/Direct.php:28 +msgid "Enabled Gateways" +msgstr "" + +#: src/Admin/SiteHealth/Direct.php:34 +msgid "Cron Events" +msgstr "" + +#: src/Admin/SiteHealth/Direct.php:56 +msgid "You have a checkout page set" +msgstr "" + +#: src/Admin/SiteHealth/Direct.php:61 +msgid "Your checkout page is set up and ready to process orders." +msgstr "" + +#: src/Admin/SiteHealth/Direct.php:69 +msgid "Your checkout page is missing" +msgstr "" + +#: src/Admin/SiteHealth/Direct.php:76 +msgid "Easy Digital Downloads requires a specific checkout page to be set to easily handle user interactions." +msgstr "" + +#: src/Admin/SiteHealth/Direct.php:87 +msgid "Fix the Checkout Page" +msgstr "" + +#: src/Admin/SiteHealth/Direct.php:91 +msgid "Your checkout page is using the legacy shortcode" +msgstr "" + +#: src/Admin/SiteHealth/Direct.php:97 +msgid "Your checkout page is configured; however, it is currently using the legacy %1$s[download_checkout]%2$s shortcode. We recommend changing your checkout to use the EDD Checkout Block." +msgstr "" + +#: src/Admin/SiteHealth/Direct.php:107 +msgid "Edit Checkout Page" +msgstr "" + +#: src/Admin/SiteHealth/Direct.php:122 +msgid "Your download files are protected" +msgstr "" + +#: src/Admin/SiteHealth/Direct.php:127 +msgid "Your checkout page is a critical part of your store." +msgstr "" + +#: src/Admin/SiteHealth/Direct.php:150 +msgid "Your download files may not be protected" +msgstr "" + +#. translators: 1. opening link tag; 2. closing link tag +#: src/Admin/SiteHealth/Direct.php:157 +msgid "To ensure the best protection, you should use this doc to add this %1$sNGINX redirect rule%2$s." +msgstr "" + +#: src/Admin/SiteHealth/Direct.php:161 +msgid "If you have already done this, you can disregard this notice." +msgstr "" + +#: src/Admin/SiteHealth/Direct.php:173 +msgid "No need to worry, you are using the recommended 'Forced' download method, and customers should never see the direct path to the files. The following action is still recommended, however." +msgstr "" + +#: src/Admin/SiteHealth/Direct.php:181 +msgid "You currently are using the 'Redirect' download method, which may expose your downloadable products. Either switch to the 'Forced' method or enable 'Symlinks'." +msgstr "" + +#: src/Admin/SiteHealth/Direct.php:193 +msgid "Protect your files" +msgstr "" + +#: src/Admin/SiteHealth/Direct.php:199 +msgid "Your current download method creates a temporary copy of the file for the customer to download. After they successfully download it, it is removed, ensuring they never have direct access to your product files." +msgstr "" + +#: src/Admin/SiteHealth/Direct.php:212 +msgid "Your download files are currently not protected" +msgstr "" + +#: src/Admin/SiteHealth/Direct.php:236 +msgid "Miscellaneous Settings" +msgstr "" + +#: src/Admin/SiteHealth/Direct.php:253 +msgid "You have at least one gateway enabled" +msgstr "" + +#: src/Admin/SiteHealth/Direct.php:258 +msgid "Fantastic! You have enabled a gateway and can accept orders." +msgstr "" + +#: src/Admin/SiteHealth/Direct.php:278 +msgid "Please enable at least one gateway in order to allow customers to make purchases." +msgstr "" + +#: src/Admin/SiteHealth/Direct.php:297 +msgid "Scheduled events are running" +msgstr "" + +#: src/Admin/SiteHealth/Direct.php:302 +msgid "Easy Digital Downloads uses scheduled events in a number of ways to help maintain performance and stability." +msgstr "" + +#: src/Admin/SiteHealth/Direct.php:312 +msgid "Scheduled events are not running" +msgstr "" + +#: src/Admin/SiteHealth/Direct.php:317 +msgid "Your site has cron events disabled. WordPress cron events should run at least every ten minutes for your store to manage order related events." +msgstr "" + +#: src/Admin/SiteHealth/Direct.php:318 +msgid "Some hosting providers disable cron events by default, in favor of their own solution to running WP_CRON. Please contact your hosting provider to confirm any necessary changes." +msgstr "" + +#: src/Admin/SiteHealth/Gateways.php:25 +msgid "Easy Digital Downloads — Gateways" +msgstr "" + +#: src/Admin/SiteHealth/General.php:43 +msgid "Easy Digital Downloads — General" +msgstr "" + +#: src/Admin/SiteHealth/Licenses.php:25 +msgid "Licensed Extensions" +msgstr "" + +#: src/Admin/SiteHealth/Licenses.php:39 +msgid "Your extensions are receiving updates" +msgstr "" + +#: src/Admin/SiteHealth/Licenses.php:44 +msgid "Your EDD extensions are all licensed and receiving updates." +msgstr "" + +#: src/Admin/SiteHealth/Licenses.php:53 +msgid "You are not receiving updates for some extensions" +msgstr "" + +#: src/Admin/SiteHealth/Licenses.php:58 +msgid "At least one of your extensions is missing a license key, or the license is expired. Your site may be missing critical software updates." +msgstr "" + +#: src/Admin/SiteHealth/Licenses.php:116 +msgid "Upgrade to EDD (Pro)" +msgstr "" + +#: src/Admin/SiteHealth/Licenses.php:127 +msgid "Enter a license key for EDD (Pro)" +msgstr "" + +#: src/Admin/SiteHealth/Licenses.php:136 +msgid "Enter a license key for an extension" +msgstr "" + +#: src/Admin/SiteHealth/Pages.php:26 +msgid "Easy Digital Downloads — Pages" +msgstr "" + +#: src/Admin/SiteHealth/Sessions.php:26 +msgid "Easy Digital Downloads — Sessions" +msgstr "" + +#: src/Admin/SiteHealth/Tables.php:26 +msgid "Easy Digital Downloads — Custom Tables" +msgstr "" + +#: src/Admin/SiteHealth/Taxes.php:26 +msgid "Easy Digital Downloads — Taxes" +msgstr "" + +#: src/Admin/SiteHealth/Templates.php:26 +msgid "Easy Digital Downloads — Customized Templates" +msgstr "" + #: src/Licensing/Ajax.php:50 #: src/Licensing/Ajax.php:135 #: src/Licensing/Ajax.php:177 @@ -13938,29 +14218,39 @@ msgid "Number of items in cart" msgstr "" #: includes/blocks/build/buy-button/index.js:1 -msgid "Select a Download" +msgid "Select a %s" msgstr "" #: includes/blocks/build/buy-button/index.js:1 -msgid "Current Download" +msgid "Current %s" msgstr "" #: includes/blocks/build/buy-button/index.js:1 #: includes/blocks/build/downloads/index.js:1 -msgid "No Downloads Found" +msgid "No Published %s Found" msgstr "" #: includes/blocks/build/buy-button/index.js:1 #: includes/blocks/build/downloads/index.js:1 -msgid "Create Your First Download" +msgid "Create a New %s" msgstr "" #: includes/blocks/build/buy-button/index.js:1 -msgid "Select a Download:" +#: includes/blocks/build/downloads/index.js:1 +msgid "Create Your First %s" msgstr "" #: includes/blocks/build/buy-button/index.js:1 -msgid "Download ID" +#: includes/blocks/build/downloads/index.js:1 +msgid "View All %s" +msgstr "" + +#: includes/blocks/build/buy-button/index.js:1 +msgid "Select a %s:" +msgstr "" + +#: includes/blocks/build/buy-button/index.js:1 +msgid "Published %s" msgstr "" #: includes/blocks/build/buy-button/index.js:1 @@ -14234,11 +14524,11 @@ msgid "This form is a sample view of your registration form. Logged in users wil msgstr "" #: includes/blocks/build/terms/index.js:1 -msgid "Download Categories" +msgid "%s Categories" msgstr "" #: includes/blocks/build/terms/index.js:1 -msgid "Download Tags" +msgid "%s Tags" msgstr "" #: includes/blocks/build/terms/index.js:1 diff --git a/wp-content/plugins/easy-digital-downloads/readme.txt b/wp-content/plugins/easy-digital-downloads/readme.txt index 2d7fdc66..375eb88e 100644 --- a/wp-content/plugins/easy-digital-downloads/readme.txt +++ b/wp-content/plugins/easy-digital-downloads/readme.txt @@ -6,7 +6,7 @@ Tags: ecommerce, payments, sell, digital store, stripe Requires at least: 5.4 Tested up to: 6.2 Requires PHP: 7.1 -Stable Tag: 3.1.1.4.2 +Stable Tag: 3.1.2 License: GNU Version 2 or Any Later Version Sell your digital products with the #1 eCommerce plugin written for digital creators by digital creators. @@ -225,13 +225,51 @@ Yes, with an Extended Pass you get access to [Recurring Payments](https://easydi 8. Checkout - Default Theme == Changelog == -= 3.1.1.4.2, May 1, 2023 = + += 3.1.2 = +* New: The EDD "System Info" has been retired and instead our data is registered with WordPress Core's Site Health. +* Improvement: We've drastically reduced the possibility of a collision when using Sequential Order Numbers. +* Improvement: We've changed the 'Default' item in the Product Type dropdown to 'Single Product' to avoid confusion. +* Improvement: Gateways can now inform EDD if they are properly set up, and prevent enabling them if they are not configured. +* Improvement: The PayPal Commerce onboarding process has been revamped for speed and reliability. +* Improvement: The EDD 3.x migration process has been updated to defer all customer and product calculations until the migration is complete, with improved messaging. +* Improvement - Stripe: We've added a filter to allow users to remove the 'Terms' text that shows below card fields. +* Improvement - Stripe: When a user disconnects from Stripe Connect, Stripe is unchecked as an 'active' gateway. +* Improvement - Blocks: When no downloads are created, download related blocks were not correctly showing the button to add a new download. +* Improvement - Blocks: EDD's blocks were not respecting custom Download labels. +* Fix: Pass license keys did not always hold their activation status on multisite installs. +* Fix: In some edge cases, it was possible to produce a fatal error in PHP 8.0 when adding items to the cart. +* Fix: Improved capability checks and nonce detection on some actions. +* Fix: Item fees could fail validation in some cases, resulting in missed fees. +* Fix: The Payments Query class was incorrectly passing the `id__not_in` as `id__in`. +* Fix: The AJAX cart content response was not using the new method of getting cart item names. +* Fix: A more user friendly error message is shown to non-privileged users if no gateways are enabled. +* Fix: The Login URL in user registration emails was not correct when the purchase was made with Stripe. +* Fix: The calculated fees could differ from the fees that are displayed in the cart contents. +* Fix: When importing downloads, in some cases, the images were not identified as local files. +* Fix: The Download Tag taxonomy admin area was not being identified as an EDD Admin area. +* Fix: There was a possibility of an undefined variable when requesting a password reset. +* Fix - Stripe: The Recurring Payments update form could load incorrectly if split fields was enabled prior to swtiching to Payment Elements. +* Fix - Stripe: Multiple improvements to the Stripe form load states when cart recalculations are being run. +* Fix - Stripe: In some cases, the purchase form was not re-enabled after fixing HTML5 validation errors. +* Fix - Stripe: Customers updating the payment method for a failing subscription could see an error message when the failed invoice was voided, even though the subscription was updated successfully. +* Fix - Blocks: The reCAPTCHA key field is now a Password field type. +* Fix - Blocks: The User Downloads blocks could show duplicate items. +* Fix - Blocks: Extensions which added data to the cart could display without styling. +* Dev: The functions to get the lowest & highest price options have been abstracted, improved, and now have unit tests. +* Dev: Upgrade routines prior to 3.0 have been deprecated. +* Dev: A new CLI command, `recalculate_customer_values` has been registered to recalculate sales and earnings for all customers. +* Dev - Stripe: It is now possible to force 'Card Fields' to be available on new installs, by switching on EDD's Debug Mode. + +View the full changelog at [https://easydigitaldownloads.com/changelog/](https://easydigitaldownloads.com/changelog/?utm_medium=readme&utm_source=wporg&utm_campaign=edd-plugin&utm_term=description) + += 3.1.1.4.2 = * Security: Improved validation for edd hooks. -= 3.1.1.4.1, April 21, 2023 = += 3.1.1.4.1 = * Fix - Blocks: Harden blocks loader to verify files exist before requiring them. -= 3.1.1.4, April 20, 2023 = += 3.1.1.4 = * Improvement: Removed a possible unsupported PHP configuration from the email summaries. * Improvement: The edd_get_users_purchases function has been updated to account for customer email address changes. * Improvement: Reports have been updated to more accurately account for timezones and date ranges. @@ -253,8 +291,7 @@ Yes, with an Extended Pass you get access to [Recurring Payments](https://easydi * Fix - Blocks: Cart section headings were not always displayed when reloading the section via AJAX. * Dev: New custom hooks in database row transitions have been added. - -= 3.1.1.3, March 23, 2023 = += 3.1.1.3 = * Improvement: The orders list table in the admin now sorts orders by date as the default. * Improvement: Removed unnecessary options in the onboarding wizard. * Improvement - Stripe: Store owners can now [control which payment methods to accept within their Stripe account](https://easydigitaldownloads.com/docs/stripe/#how-to-manage-payment-methods). @@ -263,7 +300,7 @@ Yes, with an Extended Pass you get access to [Recurring Payments](https://easydi * Fix: Existing tables might not have been updated correctly. * Fix: Attempting to update the default email address from the profile editor could fail in some circumstances. -= 3.1.1.2, March 17, 2023 = += 3.1.1.2 = * Improvement: The order details screen in the admin has been updated to use the Currency class to be consistent with customer receipts. * Improvement: Determining whether a plugin is a core extension for telemetry data has been improved. * Fix: Enabling/disabling the sequential order numbers setting no longer prompts an upgrade notice, since that setting does not affect past orders. @@ -275,7 +312,7 @@ Yes, with an Extended Pass you get access to [Recurring Payments](https://easydi * Dev: Using `get_page_by_title` has been deprecated in WordPress 6.2; our importer has been updated accordingly. * Dev - Stripe: Unneeded source files are no longer included in the release. -= 3.1.1.1, March 14, 2023 = += 3.1.1.1 = * Fix: Ensure that Stripe only tries to verify the domain for Apple Pay when Stripe is connected. * Fix: PHP 7.1 Compatibility with Stripe. * Improvement: Avoid a race condition when updating where a function might not be available for a moment. @@ -315,261 +352,5 @@ Yes, with an Extended Pass you get access to [Recurring Payments](https://easydi * Dev: The discounts HTML is now always filterable, even if there are no discounts applied. * Dev: Code for the legacy WordPress media loader has been removed. -= 3.1.0.6, February 9, 2023 = -* Improvement: The PayPal Backup IPN now sends the payment date when handling a renewal from Recurring Payments. -* Improvement: Further improve the AJAX download search. -* Fix: Improved reliability with the PayPal API. -* Fix: Some plugins could conflict with the login URL filter to customize the login page. -* Fix: It is now possible to deselect a page in the settings after it's been set. -* Fix: All documentation links have been updated to use the new locations. -* Fix: Some passwords could not be validated when using the login form on the checkout page. -* Fix: The orders export did not allow only orders with a specific status to be exported. - -= 3.1.0.5, January 25, 2023 = -* Improvement: New customer report tiles now only count customers with purchases. -* Improvement: The email address field at checkout now adheres to the database schema and limits to 100 characters. -* Improvement: Further improve the AJAX download search to be more accurate. -* Fix: Earnings exports report now accounts for partially refunded orders. -* Fix: Added validation to prevent duplicate order addresses from being inserted. -* Fix: When saving a non-variable product, an empty post meta value was being saved. -* Improvement - Blocks: Updating the wording for the Disable Redownload setting if the block is available. -* Fix - Blocks: Added sanitization to the 'additional classes' block setting before rendering the block. - -= 3.1.0.4, January 5, 2023 = -* Improvement: The cart performance has been improved by disabling tax rate lookups when a customer address is supplied, but taxes are disabled. -* Improvement: Reports now factor in order item adjustments like negative fees. -* Improvement: The Downloads list table now loads faster on sites with a large number of download categories. -* Improvement: The Sales REST API Endpoint was updated to respect the new order statuses in EDD 3.0. -* Improvement: Improve semantic markup by not allowing two of the same ID attribute for redirect to checkout buttons. -* Improvement: Discount code lookup performance has been improved when looking up a discount by the discount code. -* Fix: Looking up payments with a Download ID that was a string or integer would return incorrect or no orders. -* Fix: Reduced the number of HTTP calls that the notifications API can make per day. -* Fix: Avoid the "Request-URI Too Long" error when performing multiple actions in a row on list tables. -* Fix: Negative fee amounts are now properly considered when determining an item's final price in the cart. -* Fix: PayPal: Arabic characters in download names could cause an unexpected error during checkout. -* Fix: PayPal: The backup IPN is not loaded if the PayPal integration is not connected. -* Fix: PayPal: The payment_date field was assumed to be present when processing the backup IPN. -* Fix: The edd_get_payment_amount function could improperly return an empty string instead of a float value. -* Fix: Add to cart buttons were not using the token values to improve caching compatibility. -* Fix: When many items were purchased at once, some order item download links were not working due to an improper status. -* Fix: Hardened the search query for the AJAX endpoint for searching for downloads by title. - -= 3.1.0.3, November 23, 2022 = -* Improvement: The PayPal webhook connect/disconnect process has been improved to ensure proper webhook delivery. -* Improvement: An IPN Backup has been added to the PayPal gateway, to avoid missing webhooks that may have been disconnected. -* Fix: PayPal Buy Now functionality has been fixed for guest users. -* Fix: Exporting orders was including orders with the Trash status. -* Fix: Trashed orders were showing in the purchase history shortcode (templates updated: history-downloads.php and history-purchases.php). -* Fix: The file downloads graph was formatting integers as currency. -* Fix: Searching by download ID on the Orders list table was not working. -* Fix: In some timezone settings, the reports could incorrectly display. -* Fix: Determining if a product can be purchased was improved for performance. -* Fix: Switching gateways when resuming an order was resulting in the wrong gateway value being added to the database. -* Fix: The migration process can now identify custom discount meta for migration to the new adjustment meta table. -* Fix: Non-Standard (but still supported by WordPress) directory structures could fail if the site_url and home_url were different. -* Fix: Discount amount calculations were assuming that the discount has Price ID assignments. -* Fix: Logging in from the {receipt_link} in emails now properly redirects the user to the receipt page. -* Fix - Blocks: The checkout block could prevent purchases if a logged in user did not have a name already. -* Fix - Blocks: The Order History block no longer shows Trashed orders. -* Fix - Blocks: Incompatible combinations of settings on the Checkout block could produce a fatal error. - -= 3.1.0.2, October 27, 2022 = -* New - Blocks: The registration block now supports the WordPress password strength script. -* Improvement: The products API now includes the product permalink. -* Improvement: The user registration process and messaging has been updated to more closely match WordPress Core. -* Improvement: Searching in the product dropdown is now restricted to titles only. -* Improvement: The no-js/js class switcher has been prefixed and made more specific. -* Improvement: Editing a bundled product has been updated to be more performant. -* Improvement - Blocks: Fees in the cart/checkout blocks have been updated to more closely match cart items and other amounts. -* Improvement - Blocks: Update block definitions so that icons show on the repository. -* Improvement - Blocks: The order history block filter has been updated to not override filtered values. -* Improvement - Blocks: A filter has been added to the Terms block to allow users to filter the query. -* Fix: The 3.0 migration for customer addresses could create duplicate addresses. -* Fix: A redundant database update for customer addresses was removed from the 3.0 migration. -* Fix: The main checkout function now checks directly for the checkout block rather than relying on a filter. -* Fix: The Tools screen could time out on a site with a large number of products. -* Fix: The options for bundled products now show the general product in addition to each price option. -* Fix: For some time zones, reports could show incorrect dates for a range such as "last quarter". -* Fix: The block editor was not showing the correct list of authors for a download. -* Fix: Some settings for the legacy cart widget could not be disabled once saved. -* Fix: Customer names with unexpected characters could be improperly interpreted by spreadsheet apps. -* Fix - Blocks: The checkout helper function was incorrectly returning true. -* Fix - Blocks: The cart block is now disabled in the block editor. -* Fix - Blocks: The purchase link filter could incorrectly override previous adjustments to the button class. -* Dev: The CLI order migration has been updated to allow partial order migrations. - -= 3.1.0.1.1, October 21, 2022 = -This is a very minor point release, with a single change to try and correct an issue within the PayPal API that is causing 403 and 400 errors. -It is not intended to resolve the issue within PayPal's API, but offer us some time to continue to work with PayPal to solve the issue long term without it impacting customer's purchases. - -* IMPORTANT: If you have been experiencing issues with the PayPal webhooks, please update EDD and visit Downloads > Settings > Payments > PayPal and re-check your payment status and sync webhooks. -* Fix: Attempts to create a specific user-agent to send to PayPal for webhook validation to avoid 403/400 errors. - -= 3.1.0.1, October 8, 2022 = -* Fix: With taxes enabled, updating the address fields in the shortcode would replace the cart with the cart block. -* Fix: The dashboard widget was not using the order currency to display amounts for recent orders. -* Fix: No JS fallback buttons were being improperly toggled by JavaScript changes. - -= 3.1, October 6, 2022 = -* New: Websites running WordPress 5.8 and above (and PHP 7.0 or greater) have access to ten new registered EDD blocks. -* New: Store owners can receive weekly or monthly email summaries of their store's performance. -* New - Blocks: A new EDD Products block has been registered to display downloads. -* New - Blocks: A new EDD Terms block has been registered to display download categories or tags. -* New - Blocks: A new EDD Buy Button block has been registered to display a purchase button for any download. -* New - Blocks: A new EDD Cart block has been registered to show either a mini or full cart anywhere on your site. -* New - Blocks: A new EDD Order History block has been registered to show a customer's order history. -* New - Blocks: A new EDD Login block has been registered to render a login form which supports a full lost password recovery flow and reCAPTCHA support. -* New - Blocks: A new EDD Registration block has been registered to render a registration form which includes reCAPTCHA support. -* New - Blocks: A new EDD Receipt block has been registered to show a customer's receipt. This receipt supports guest purchases. -* New - Blocks: A new EDD Confirmation block has been registered to show some order details when successfully completing a purchase. -* New - Blocks: A new EDD Checkout block has been registered to completely update the EDD checkout experience. This block is still considered to be in beta. -* Improvement: Store owners can now require that a user be logged into their account to download files. -* Improvement: The CLI migration to EDD 3.0 has been updated to improve memory usage for larger stores. -* Improvement: The PayPal Commerce button is disabled until required fields have been completed. -* Improvement: Relative date ranges are now compared against similar ranges in reports. -* Improvement: Report line graphs with multiple scales now use unique y-axes to display data. -* Improvement: Development asset files have been removed from the final build. -* Improvement: Updating download calculations has been moved from the order completion process to a slightly delayed cron event. -* Improvement: Dismissing the advanced filters on the order table has been improved. -* Improvement: Filters have been added to prevent certain logs from being recorded. -* Improvement: EDD registered pages now show in the pages list table. -* Improvement: The order ID column in the orders table no longer has a constrained width. -* Improvement: Store admins can now view the customer receipt from a link on the orders table. -* Improvement - Blocks: A confirmation page/block has been registered to separate the order completion view from the receipt. -* Improvement - Blocks: If the core EDD cart and terms widgets are not already in use on the site, they will not be displayed in the block editor as legacy widgets. -* Improvement - Stripe: Session validation throughout Stripe actions has been updated to improve reliability. -* Improvement - Stripe: Error messages have been updated to help customers with failed purchases know what action to take. -* Improvement - Stripe: Supported payment methods are included in the gateway registration. -* Improvement - Stripe: Optimized validation during checkout. -* Improvement - Stripe: Optimized cleanup of logging. -* Improvement - Stripe: Added better checkout session handling. -* Fix: Resetting the store was incorrectly deleting discounts and tax rates. -* Fix: The price option assignment for variably priced bundled product conditions could be incorrectly assigned. -* Fix: Report graphs could be inaccurate when grouping by month due to time zone adjustments. -* Fix: Querying the Stats API for a store using a UTC relative time zone would crash the site. -* Fix: Calculations for report tiles have been updated for consistency. -* Fix: The `edd_load_gateway` JavaScript hook is now triggered when only one gateway is active. -* Fix: Adding an adjustment on a manual order could cause unexpected cursor behavior. -* Fix: Using `edd_insert_payment` with incomplete data now creates an order if possible, or fails without errors if not. -* Fix: Legacy log functions now query logs correctly. -* Fix: Stores with more than 30 tax rates now can view all rates on the settings screen. -* Fix: Deleting a customer now properly deletes their orders as well. -* Fix: It is now possible to set a 0% tax rate for a region to exclude taxes from being collected for that region even if a country wide rate exists. -* Fix: When selecting a gateway and refreshing the checkout screen, some browsers could fail to load the payment fields. -* Fix: Searching the orders table for a discount code which does not exist now correctly returns no orders. -* Fix: The customers API endpoint now uses the correct parameters to return data. -* Fix: When registering a new user from an EDD form, spaces were incorrectly removed from user names. -* Fix: When the browser timezone differed from that of the Store, line graphs could offset the points from the gridlines. -* Fix: Users with the shop worker role were not able to create new downloads. -* Fix: Upon activation, EDD could have thrown a PHP notice about the orders table not existing on new installs. -* Fix - Stripe: Customers were not always automatically logged in with Auto Register's successful purchase setting. -* Fix - Stripe: When changing the store mode, the Stripe admin notice displayed incorrectly. -* Dev: Legacy compatibility code has been removed from the downloads metabox. -* Dev: A filter has been added to the customer row actions. -* Dev: Drop-ins have been added to the system information file. -* Dev: Templates which have been overridden now show in the system information file. -* Dev: Test mode can now be activated by setting a constant and the setting will reflect this. - -= 3.0.4, September 6, 2022 = -* Fix: Stripe Pro license key detection was not working on older versions of the Stripe Pro gateway. -* Fix: Hour by hour graphs that spanned more than one day would group all data into the first day. -* Fix: Reports that span more than one year would group stats by month only. -* Fix: Some of the report tiles were not accurately accounting for refunded orders. -* Fix: The purchase receipt was limited to only showing 30 items. -* Fix: When using persistent object caching, discount codes would not always update immediately. -* Fix: When manually adding a new order, region based tax rates were not updating. -* Fix: Improved migration of order address data when checking tax rates of previous orders. -* Fix: The `stats` API endpoint data did not match the reports data. This improves the iOS app accuracy. -* Fix: The template modification checks for 3.0 compatibility were checking for modifications too often. -* Fix: Guest customers using an email address associated with an existing user were not always connected. -* Fix: When editing an order's address, it was not always saving changes. -* Dev: Actions were added to the `edd_add_customer` and `edd_update_customer` functions. - -= 3.0.3, August 16, 2022 = -* New: Added support for Global Tax rates as a fallback with the new Tax Rates UI. -* Fix: The old 'fallback tax rate' was not imported as a new tax rate. -* Fix: Improved discount code validation with product restrictions and requirements. -* Fix: Viewing a custom report with a date range over 2 days could throw an undefined variable notice. -* Fix: Single priced downloads were showing incorrect stats in reports. -* Fix: Adding a download to a new order would not let you manually set prices in Safari. -* Fix: When an order with a discount code is deleted, the discount code's usage count is decreased. -* Fix: The total refund amount tile was incorrectly calculating the relative percentage. -* Fix: The customer table upgrade assumed the table prefix hadn't been changed after installation of EDD 2.x. -* Fix: The 3.0 migration could incorrectly identify a price ID as invalid and set it to the default price ID. -* Fix: The file download log could produce an notice if a file had been deleted from a product. - -= 3.0.2.1, July 28, 2022 = -* Fix: Upgrade warning notices were showing incorrectly for some sites. - -= 3.0.2, July 26, 2022 = -* Fix: Customer verification URL was not working in the admin. -* Fix: When cancelling an order once at PayPal, the checkout page could produce a Javascript error. -* Fix: Swedish postal codes would not pass validation. -* Fix: Non-Shop Manager roles could no longer leave notes on orders. -* Fix: Searching orders was not working in the admin. -* Fix: Template: Download History shortcode was not providing access to bundled products. -* Fix: 3.0 Migration: Stores with no orders, but other data like discounts, did not prompt the user to run the migration. -* Fix: EDD admin menu bar styles were not always loading correctly. -* Fix: An admin notice is now shown if EDD detects that it was unable to create the proper database tables. -* Fix: When showing taxes on product pricing, the % character was showing twice. -* Fix: Improved error handling around importer tools. - -= 3.0.1, July 15, 2022 = -* Fix: Setting the EDD_USE_PHP_SESSIONS constant to 'false' could result in empty carts. -* Fix: Exporting reports with 'All Statuses' and a country/region fails. -* Fix: Adding more than one additional customer email address in a row failed. -* Fix: A fatal error could be triggered when attempting to output the JSON-LD structured data. -* Fix: Adjust the debug mode setting to be more clearly stated. -* Fix: Report graphs did not support hour-by-hour for some custom date queries. - -= 3.0, July 13, 2022 = -* IMPORTANT: This is a major release, and should be tested in your staging environments prior to running on your live site. -* Upgrade: This update will ask you to perform database maintenance once installed. Your site should remain functional during this time, but access to historical store data will be limited until the migration is complete. -* New: Custom database tables have been added for all transactional data types in EDD. -* New: Migrate orders, order items, tax rates, discount codes, fees, customer addresses, and transaction details to custom tables with the UI or WP-CLI migration tool. -* New: All new reporting with advanced features for orders, downloads, customers, refunds, taxes, and more. -* New: Downloads now use the Block Editor and are available in the REST API. -* New: Improved tax settings, allowing historical data to be determined. -* New: Fully featured Refund system, for accurate reporting which includes partial and full refund support. -* New: Refunds can be initiated from within EDD for gateways which support it. -* New: Filter orders with advanced rules like purchase total, product, country, or state. -* New: New email marker insertion interface to assist in creating emails. -* New: Ability to manually add orders, without an extension; the Manual Purchases extension will be deactivated automatically. -* New: Discounts support start and end times, in addition to dates. -* New: Discounts now support notes. -* New: Use JSON-LD format for schema output. -* New: The order details views have been redesigned completely to make managing orders easier. -* Improvement: CSS styles have been updated and modernized throughout, including for jQuery and Chosen, as well as to improve mobile responsiveness. -* Improvement: Chosen has been updated for improved performance and accessibility. -* Improvement: Admin table views have been revised to be more responsive and consistent with WordPress core. -* Improvement: Dates for orders and related data are stored in the database in UTC, and displayed in the store’s time zone. -* Improvement: Discounts which have been used at least once can no longer be deleted. -* Improvement: Admin screens, settings and input fields have been revised for improved accessibility. -* Improvement: Order items for variably priced products now include the price option name. -* Improvement: Language files have been removed from the deliverable package, and will rely on translate.wordpress.org going forward. -* Improvement: Introduce a "Store Gateway" to handle free orders and orders not handled through another gateway. -* Improvement: EDD HTML fields can now be required. -* Improvement: Admin table views have been rewritten to more accurately represent object status counts. -* Improvement: Because orders can be partially refunded, file deliverability is evaluated per order item, not order. -* Improvement: Download and customer sales and earnings are now dynamically calculated. -* Fix: Additional order statuses (like renewals) were not consistently included when querying for orders. -* Fix: Customers were failing to be created when their email address exceeded 50 characters. -* Fix: Improved performance of the `edd_has_user_purchased()` function. -* Fix: Average earnings now accounts for fees. -* Fix: The customer's list table could show an empty customer name. -* Fix: Greatly improved the performance of the cart total calculation. -* Fix: Single price products are saved to the order items table with a null price ID, to differentiate from variable products with a 0 price ID. -* Templates: The receipt, order history, and download history templates have been updated to work with new order functions. -* Dev: Introduced `edd_get_`, `edd_add_`, and `edd_delete_` helper functions to access new database methods. -* Dev: Introduced `edd_maybe_add_customer_address` to ensure that only unique physical addresses are added to a customer. -* Dev: Introduced helper functions such as `edd_get_admin_url`, `edd_is_dev_environment`, and `edd_redirect` to reduce the need to write repeated code. -* Dev: The minimum PHP version has been updated to 5.6. -* Dev: The minimum WordPress version has been updated to 4.9. -* Dev: Added new helper functions to retrieve order status by state like gross, net, recoverable, deliverable. -* Dev: A new `edd_is_cart_empty()` function was added. -* Dev: Orders now use 'complete' as the final state instead of 'publish'. -* Dev: Moved all script and style generation to use webpack. -* Dev: EDD style settings have been deprecated. - == Upgrade Notice == IMPORTANT: Upgrading from Easy Digital Downloads 2.9.x to 3.0+ is a major release that includes many improvements and changes. You will be asked to perform database maintenance once installed. Please ensure you make a backup of your site prior to upgrading. Your site should remain functional during this maintenance, but as with all updates, it is best to make a backup of your site prior to updating. diff --git a/wp-content/plugins/easy-digital-downloads/src/Admin/Extensions/DownloadURL.php b/wp-content/plugins/easy-digital-downloads/src/Admin/Extensions/DownloadURL.php index c23ad4c8..7673f5a8 100644 --- a/wp-content/plugins/easy-digital-downloads/src/Admin/Extensions/DownloadURL.php +++ b/wp-content/plugins/easy-digital-downloads/src/Admin/Extensions/DownloadURL.php @@ -34,6 +34,31 @@ class DownloadURL { * @return bool|string */ public function get_url() { - return false !== strpos( $this->plugin, 'https://downloads.wordpress.org/plugin' ) ? $this->plugin : false; + if ( ! $this->plugin ) { + return false; + } + if ( false === strpos( $this->plugin, 'https://downloads.wordpress.org/plugin' ) ) { + return false; + } + if ( ! in_array( $this->plugin, $this->get_allowed_urls(), true ) ) { + return false; + } + + return $this->plugin; + } + + /** + * Gets an array of allowed download URLs. + * + * @since 3.1.2 + * @return array + */ + private function get_allowed_urls() { + return array( + 'https://downloads.wordpress.org/plugin/edd-auto-register.zip', + 'https://downloads.wordpress.org/plugin/wp-mail-smtp.zip', + 'https://downloads.wordpress.org/plugin/google-analytics-for-wordpress.zip', + 'https://downloads.wordpress.org/plugin/all-in-one-seo-pack.zip', + ); } } diff --git a/wp-content/plugins/easy-digital-downloads/src/Admin/PassHandler/Actions.php b/wp-content/plugins/easy-digital-downloads/src/Admin/PassHandler/Actions.php index 7bdfe6e1..3581deb1 100644 --- a/wp-content/plugins/easy-digital-downloads/src/Admin/PassHandler/Actions.php +++ b/wp-content/plugins/easy-digital-downloads/src/Admin/PassHandler/Actions.php @@ -42,10 +42,7 @@ class Actions implements SubscriberInterface { * @return void */ public function refresh() { - if ( ! current_user_can( 'manage_options' ) ) { - edd_redirect( $this->handler->get_extensions_url() ); - } - if ( get_transient( 'edd_pass_refreshed' ) ) { + if ( ! $this->can_refresh() ) { edd_redirect( $this->handler->get_extensions_url() ); } @@ -65,7 +62,6 @@ class Actions implements SubscriberInterface { 'edd_action' => 'check_license', 'license' => $pass_data->key, 'item_id' => $pass_data->pass_id, - 'item_name' => $pass_data->item_name, ); $license_data = $this->handler->remote_request( $api_params ); @@ -80,4 +76,20 @@ class Actions implements SubscriberInterface { edd_redirect( $this->handler->get_extensions_url() ); } + + /** + * Check if the current user can refresh the pass status. + * + * @return bool + */ + private function can_refresh() { + if ( ! current_user_can( 'manage_options' ) ) { + return false; + } + if ( get_transient( 'edd_pass_refreshed' ) ) { + return false; + } + + return true; + } } diff --git a/wp-content/plugins/easy-digital-downloads/src/Admin/PassHandler/Ajax.php b/wp-content/plugins/easy-digital-downloads/src/Admin/PassHandler/Ajax.php index 60503eb7..da06888d 100644 --- a/wp-content/plugins/easy-digital-downloads/src/Admin/PassHandler/Ajax.php +++ b/wp-content/plugins/easy-digital-downloads/src/Admin/PassHandler/Ajax.php @@ -94,7 +94,7 @@ class Ajax implements SubscriberInterface { 'endpoint' => $endpoint, 'version' => EDD_VERSION, 'siteurl' => admin_url(), - 'homeurl' => home_url(), + 'homeurl' => network_home_url(), 'redirect' => rawurldecode( base64_encode( $redirect ) ), // phpcs:ignore ), 'https://upgrade.easydigitaldownloads.com' diff --git a/wp-content/plugins/easy-digital-downloads/src/Admin/PassHandler/Handler.php b/wp-content/plugins/easy-digital-downloads/src/Admin/PassHandler/Handler.php index 95ff0236..cfb632bd 100644 --- a/wp-content/plugins/easy-digital-downloads/src/Admin/PassHandler/Handler.php +++ b/wp-content/plugins/easy-digital-downloads/src/Admin/PassHandler/Handler.php @@ -156,7 +156,7 @@ class Handler { $api_params = wp_parse_args( $api_params, array( - 'url' => home_url(), + 'url' => network_home_url(), ) ); $api = new \EDD\Licensing\API(); diff --git a/wp-content/plugins/easy-digital-downloads/src/Admin/Pass_Manager.php b/wp-content/plugins/easy-digital-downloads/src/Admin/Pass_Manager.php index e2a09105..d781a8d3 100644 --- a/wp-content/plugins/easy-digital-downloads/src/Admin/Pass_Manager.php +++ b/wp-content/plugins/easy-digital-downloads/src/Admin/Pass_Manager.php @@ -103,7 +103,7 @@ class Pass_Manager { */ public function __construct() { $this->pro_license = $this->get_pro_license(); - if ( 'valid' === $this->pro_license ) { + if ( ! empty( $this->pro_license->license ) && 'valid' === $this->pro_license->license ) { $this->highest_license_key = $this->pro_license->key; $this->highest_pass_id = $this->pro_license->item_id; $this->has_pass_data = true; diff --git a/wp-content/plugins/easy-digital-downloads/src/Admin/SiteHealth/Direct.php b/wp-content/plugins/easy-digital-downloads/src/Admin/SiteHealth/Direct.php new file mode 100644 index 00000000..d0c5a9a7 --- /dev/null +++ b/wp-content/plugins/easy-digital-downloads/src/Admin/SiteHealth/Direct.php @@ -0,0 +1,323 @@ + __( 'EDD Checkout Page', 'easy-digital-downloads' ), + 'test' => array( $this, 'get_test_missing_purchase_page' ), + ); + + $tests['edd_uploads_url_protected'] = array( + 'label' => __( 'Protected Download Files', 'easy-digital-downloads' ), + 'test' => array( $this, 'get_test_uploads_url_protected' ), + 'skip_cron' => true, + ); + + $tests['edd_gateways_enabled'] = array( + 'label' => __( 'Enabled Gateways', 'easy-digital-downloads' ), + 'test' => array( $this, 'get_test_gateways_enabled' ), + ); + } + + $tests['edd_cron_enabled'] = array( + 'label' => __( 'Cron Events', 'easy-digital-downloads' ), + 'test' => array( $this, 'get_test_cron_enabled' ), + ); + + $licenses = new Licenses(); + $licenses_test = $licenses->get(); + + if ( ! empty( $licenses_test ) ) { + $tests['edd_licenses'] = $licenses_test; + } + + return $tests; + } + + /** + * Adds a test for the purchase/checkout page. + * + * @since 3.1.2 + * @return array + */ + public function get_test_missing_purchase_page() { + $result = array( + 'label' => __( 'You have a checkout page set', 'easy-digital-downloads' ), + 'status' => 'good', + 'badge' => $this->get_default_badge(), + 'description' => sprintf( + '

    %s

    ', + __( 'Your checkout page is set up and ready to process orders.', 'easy-digital-downloads' ) + ), + 'actions' => '', + 'test' => 'edd_missing_purchase_page', + ); + + $purchase_page = (int) edd_get_option( 'purchase_page', false ); + if ( empty( $purchase_page ) ) { + $result['label'] = __( 'Your checkout page is missing', 'easy-digital-downloads' ); + + $result['status'] = 'critical'; + $result['badge']['color'] = 'red'; + + $result['description'] = sprintf( + '

    %s

    ', + __( 'Easy Digital Downloads requires a specific checkout page to be set to easily handle user interactions.', 'easy-digital-downloads' ) + ); + $result['actions'] = sprintf( + '%s', + edd_get_admin_url( + array( + 'page' => 'edd-settings', + 'tab' => 'general', + 'section' => 'pages', + ) + ), + __( 'Fix the Checkout Page', 'easy-digital-downloads' ) + ); + } else { + if ( ! has_block( 'edd/checkout', $purchase_page ) ) { + $result['label'] = __( 'Your checkout page is using the legacy shortcode', 'easy-digital-downloads' ); + $result['status'] = 'recommended'; + $result['badge']['color'] = 'orange'; + + $result['description'] = wpautop( + sprintf( + __( 'Your checkout page is configured; however, it is currently using the legacy %1$s[download_checkout]%2$s shortcode. We recommend changing your checkout to use the EDD Checkout Block.', 'easy-digital-downloads' ), + '', + '' + ) + ); + + // Link the action to edit the checkout page. + $result['actions'] = sprintf( + '%s', + admin_url( 'post.php?post=' . $purchase_page . '&action=edit' ), + __( 'Edit Checkout Page', 'easy-digital-downloads' ) + ); + } + } + + return $result; + } + + /** + * Adds a test for whether the EDD uploads directory is protected. + * + * @return array + */ + public function get_test_uploads_url_protected() { + $result = array( + 'label' => __( 'Your download files are protected', 'easy-digital-downloads' ), + 'status' => 'good', + 'badge' => $this->get_default_badge(), + 'description' => sprintf( + '

    %s

    ', + __( 'Your checkout page is a critical part of your store.', 'easy-digital-downloads' ) + ), + 'actions' => '', + 'test' => 'edd_uploads_url_protected', + ); + + if ( edd_is_uploads_url_protected() ) { + return $result; + } + + // Attempt to get the main index.php file. If we get a 403, the downloads are protected after all. + $check = wp_safe_remote_get( trailingslashit( edd_get_upload_url() ) . 'index.php' ); + if ( 403 === wp_remote_retrieve_response_code( $check ) ) { + return $result; + } + + // Get the upload directory. + $upload_directory = edd_get_upload_dir(); + + // Running NGINX. + $show_nginx_notice = apply_filters( 'edd_show_nginx_redirect_notice', true ); + if ( $show_nginx_notice && ! empty( $GLOBALS['is_nginx'] ) ) { + // The default NGINX recommendation for users. + $result['label'] = __( 'Your download files may not be protected', 'easy-digital-downloads' ); + $result['status'] = 'recommended'; + $result['badge']['color'] = 'orange'; + $result['description'] = sprintf( + '

    %s %s

    ', + sprintf( + /* translators: 1. opening link tag; 2. closing link tag */ + __( 'To ensure the best protection, you should use this doc to add this %1$sNGINX redirect rule%2$s.', 'easy-digital-downloads' ), + '', + '' + ), + __( 'If you have already done this, you can disregard this notice.', 'easy-digital-downloads' ) + ); + + $download_method = edd_get_option( 'download_method', 'direct' ); + $symlink = edd_get_option( 'symlink_file_downloads', false ); + + $additional_description = ''; + + if ( 'direct' === $download_method ) { + // If using the 'direct' download method, let the customer know that we are already obfuscating the URL, but for the best protection, make the recommended changes. + $additional_description .= sprintf( + '

    %s

    ', + __( 'No need to worry, you are using the recommended \'Forced\' download method, and customers should never see the direct path to the files. The following action is still recommended, however.', 'easy-digital-downloads' ) + ); + } elseif ( 'redirect' === $download_method && false === $symlink ) { + // If using the 'redirect' download method but not the symlink, they need to make this change. Adjust to a critical notice with a link to make suggested changes. + $result['badge']['color'] = 'red'; + $result['status'] = 'critical'; + $additional_description = sprintf( + '

    %s

    ', + __( 'You currently are using the \'Redirect\' download method, which may expose your downloadable products. Either switch to the \'Forced\' method or enable \'Symlinks\'.', 'easy-digital-downloads' ) + ); + + $result['actions'] = sprintf( + '%s', + edd_get_admin_url( + array( + 'page' => 'edd-settings', + 'tab' => 'misc', + 'section' => 'file-downloads', + ) + ), + __( 'Protect your files', 'easy-digital-downloads' ) + ); + } else { + // If using the 'redirect' download method and the symlink, they are already protected, but we can let them know that they can make the recommended changes. + $additional_description = sprintf( + '

    %s

    ', + __( 'Your current download method creates a temporary copy of the file for the customer to download. After they successfully download it, it is removed, ensuring they never have direct access to your product files.', 'easy-digital-downloads' ) + ); + } + + if ( ! empty( $additional_description ) ) { + $result['description'] = $additional_description . $result['description']; + } + + return $result; + } + + // Running Apache. + if ( ! empty( $GLOBALS['is_apache'] ) && ! edd_htaccess_exists() && ! get_user_meta( get_current_user_id(), '_edd_htaccess_missing_dismissed', true ) ) { + $result['label'] = __( 'Your download files are currently not protected', 'easy-digital-downloads' ); + $result['status'] = 'critical'; + $result['badge']['color'] = 'orange'; + $result['description'] = sprintf( + '

    %s %s

    ', + sprintf( + /* translators: the upload directory */ + __( 'The .htaccess file is missing from: %s', 'easy-digital-downloads' ), + '' . $upload_directory . '' + ), + sprintf( + /* translators: the upload directory */ + __( 'First, please resave the Misc settings tab a few times. If this warning continues to appear, create a file called ".htaccess" in the %s directory, and copy the following into it:', 'easy-digital-downloads' ), + '' . $upload_directory . '' + ) + ); + $result['actions'] = sprintf( + '%s', + edd_get_admin_url( + array( + 'page' => 'edd-settings', + 'tab' => 'misc', + ) + ), + __( 'Miscellaneous Settings', 'easy-digital-downloads' ) + ); + + return $result; + } + + return $result; + } + + /** + * Adds a test for enabled gateways. + * + * @since 3.1.2 + * @return array + */ + public function get_test_gateways_enabled() { + $result = array( + 'label' => __( 'You have at least one gateway enabled', 'easy-digital-downloads' ), + 'status' => 'good', + 'badge' => $this->get_default_badge(), + 'description' => sprintf( + '

    %s

    ', + __( 'Fantastic! You have enabled a gateway and can accept orders.', 'easy-digital-downloads' ) + ), + 'actions' => '', + 'test' => 'edd_gateways_enabled', + ); + + if ( edd_get_option( 'gateways' ) ) { + return $result; + } + + $result['status'] = 'critical'; + $result['badge']['color'] = 'red'; + $result['actions'] = sprintf( + '%s', + edd_get_admin_url( + array( + 'page' => 'edd-settings', + 'tab' => 'gateways', + ) + ), + __( 'Please enable at least one gateway in order to allow customers to make purchases.', 'easy-digital-downloads' ) + ); + + if ( edd_is_test_mode() ) { + $result['status'] = 'recommended'; + $result['badge']['color'] = 'gray'; + } + + return $result; + } + + /** + * Adds a test for checking whether cron events are disabled. + * + * @since 3.1.2 + * @return array + */ + public function get_test_cron_enabled() { + $result = array( + 'label' => __( 'Scheduled events are running', 'easy-digital-downloads' ), + 'status' => 'good', + 'badge' => $this->get_default_badge(), + 'description' => sprintf( + '

    %s

    ', + __( 'Easy Digital Downloads uses scheduled events in a number of ways to help maintain performance and stability.', 'easy-digital-downloads' ) + ), + 'actions' => '', + 'test' => 'edd_cron_enabled', + ); + + if ( ! defined( 'WP_DISABLE_CRON' ) || empty( WP_DISABLE_CRON ) ) { + return $result; + } + + $result['label'] = __( 'Scheduled events are not running', 'easy-digital-downloads' ); + $result['status'] = 'critical'; + $result['badge']['color'] = 'red'; + $result['description'] .= sprintf( + '

    %s

    %s

    ', + __( 'Your site has cron events disabled. WordPress cron events should run at least every ten minutes for your store to manage order related events.', 'easy-digital-downloads' ), + __( 'Some hosting providers disable cron events by default, in favor of their own solution to running WP_CRON. Please contact your hosting provider to confirm any necessary changes.', 'easy-digital-downloads' ) + ); + + return $result; + } +} diff --git a/wp-content/plugins/easy-digital-downloads/src/Admin/SiteHealth/Gateways.php b/wp-content/plugins/easy-digital-downloads/src/Admin/SiteHealth/Gateways.php new file mode 100644 index 00000000..9a709164 --- /dev/null +++ b/wp-content/plugins/easy-digital-downloads/src/Admin/SiteHealth/Gateways.php @@ -0,0 +1,57 @@ + __( 'Easy Digital Downloads — Gateways', 'easy-digital-downloads' ), + 'fields' => $this->get_gateways(), + ); + } + + /** + * Gets the gateways data. + * + * @since 3.1.2 + */ + private function get_gateways() { + $all_gateways = edd_get_payment_gateways(); + $gateways = array(); + + if ( ! empty( $all_gateways ) ) { + + $default_gateway = edd_get_default_gateway(); + + foreach ( $all_gateways as $key => $gateway ) { + $gateways[ $key ] = array( + 'label' => $gateway['admin_label'], + 'value' => edd_is_gateway_active( $key ) ? 'Active' : 'Inactive', + ); + + if ( $default_gateway === $key ) { + $gateways[ $key ]['value'] .= ' (Default)'; + } + } + } + + return $gateways; + } +} diff --git a/wp-content/plugins/easy-digital-downloads/src/Admin/SiteHealth/General.php b/wp-content/plugins/easy-digital-downloads/src/Admin/SiteHealth/General.php new file mode 100644 index 00000000..3a439844 --- /dev/null +++ b/wp-content/plugins/easy-digital-downloads/src/Admin/SiteHealth/General.php @@ -0,0 +1,147 @@ +pass_manager = new Pass_Manager(); + } + + /** + * Gets the site health section. + * + * @since 3.1.2 + * @return array + */ + public function get() { + return array( + 'label' => __( 'Easy Digital Downloads — General', 'easy-digital-downloads' ), + 'fields' => array( + 'version' => array( + 'label' => 'EDD Version', + 'value' => EDD_VERSION, + ), + 'edd_timezone' => array( + 'label' => 'EDD Timezone', + 'value' => edd_get_timezone_abbr(), + ), + 'upgraded' => array( + 'label' => 'Upgraded From', + 'value' => get_option( 'edd_version_upgraded_from', 'None' ), + ), + 'edd_is_pro' => array( + 'label' => 'EDD (Pro) Status', + 'value' => $this->get_pro_status(), + ), + 'edd_activated' => array( + 'label' => 'EDD Activation Date', + 'value' => $this->get_date( 'edd_activation_date' ), + ), + 'edd_pro_activated' => array( + 'label' => 'EDD (Pro) Activation Date', + 'value' => $this->get_date( 'edd_pro_activation_date' ), + ), + 'edd_pass' => array( + 'label' => 'EDD Pass Status', + 'value' => $this->pass_manager->highest_pass_id ? 'Valid Pass' : 'Missing', + ), + 'edd_test_mode' => array( + 'label' => 'Test Mode', + 'value' => edd_is_test_mode() ? 'Enabled' : 'Disabled', + ), + 'edd_ajax' => array( + 'label' => 'AJAX', + 'value' => ! edd_is_ajax_disabled() ? 'Enabled' : 'Disabled', + ), + 'edd_guest_checkout' => array( + 'label' => 'Guest Checkout', + 'value' => edd_no_guest_checkout() ? 'Disabled' : 'Enabled', + ), + 'symlinks' => array( + 'label' => 'Symlinks', + 'value' => apply_filters( 'edd_symlink_file_downloads', edd_get_option( 'symlink_file_downloads', false ) ) && function_exists( 'symlink' ) ? 'Enabled' : 'Disabled', + ), + 'download_method' => array( + 'label' => 'Download Method', + 'value' => ucfirst( edd_get_file_download_method() ), + ), + 'currency_code' => array( + 'label' => 'Currency Code', + 'value' => edd_get_currency(), + ), + 'currency_code' => array( + 'label' => 'Currency Position', + 'value' => edd_get_option( 'currency_position', 'before' ), + ), + 'decimal_separator' => array( + 'label' => 'Decimal Separator', + 'value' => edd_get_option( 'decimal_separator', '.' ), + ), + 'thousands_separator' => array( + 'label' => 'Thousands Separator', + 'value' => edd_get_option( 'thousands_separator', '.' ), + ), + 'completed_upgrades' => array( + 'label' => 'Upgrades Completed', + 'value' => implode( ', ', edd_get_completed_upgrades() ), + ), + 'download_link_expiration' => array( + 'label' => 'Download Link Expiration', + 'value' => edd_get_option( 'download_link_expiration' ) . ' hour(s)', + ), + ), + ); + } + + /** + * Gets the date for an option. + * + * @since 3.1.2 + * @param string $option The option name. + * @return string + */ + private function get_date( $option ) { + $date = get_option( $option ); + + return $date ? edd_date_i18n( $date, 'Y-m-d' ) : 'n/a'; + } + + /** + * Gets the pro license status for the site. + * + * @since 3.1.2 + * @return string + */ + private function get_pro_status() { + if ( ! edd_is_pro() ) { + return 'Disabled'; + } + + return $this->pass_manager::isPro() ? 'Enabled' : 'Missing License'; + } +} diff --git a/wp-content/plugins/easy-digital-downloads/src/Admin/SiteHealth/Information.php b/wp-content/plugins/easy-digital-downloads/src/Admin/SiteHealth/Information.php new file mode 100644 index 00000000..c4415a04 --- /dev/null +++ b/wp-content/plugins/easy-digital-downloads/src/Admin/SiteHealth/Information.php @@ -0,0 +1,70 @@ + 'maybe_filter_debug', + ); + } + + /** + * Adds the EDD filters to the debug information. + * Additionally, removes other filters on the information if using the + * EDD system info link. + * + * @since 3.1.2 + * @return void + */ + public function maybe_filter_debug() { + if ( ! empty( $_GET['edd'] ) && 'filter' === $_GET['edd'] ) { + remove_all_filters( 'debug_information' ); + } + add_filter( 'debug_information', array( $this, 'get_data' ) ); + } + + /** + * Gets the array of EDD sections for the Site Health. + * + * @since 3.1.2 + * @param array $information The debug information. + * @return array + */ + public function get_data( $information ) { + + $collectors = array( + 'edd_general' => new General(), + 'edd_tables' => new Tables(), + 'edd_pages' => new Pages(), + 'edd_templates' => new Templates(), + 'edd_gateways' => new Gateways(), + 'edd_taxes' => new Taxes(), + 'edd_sessions' => new Sessions(), + ); + + foreach ( $collectors as $key => $class ) { + $information[ $key ] = $class->get(); + } + + return $information; + } +} diff --git a/wp-content/plugins/easy-digital-downloads/src/Admin/SiteHealth/Licenses.php b/wp-content/plugins/easy-digital-downloads/src/Admin/SiteHealth/Licenses.php new file mode 100644 index 00000000..a3ff7e00 --- /dev/null +++ b/wp-content/plugins/easy-digital-downloads/src/Admin/SiteHealth/Licenses.php @@ -0,0 +1,146 @@ +get_licensed_products() ) ) { + return false; + } + + return array( + 'label' => __( 'Licensed Extensions', 'easy-digital-downloads' ), + 'test' => array( $this, 'get_test_edd_licenses' ), + 'skip_cron' => true, + ); + } + + /** + * Adds a test for whether EDD licenses are valid/missing/expired. + * + * @since 3.1.2 + * @return array + */ + public function get_test_edd_licenses() { + $result = array( + 'label' => __( 'Your extensions are receiving updates', 'easy-digital-downloads' ), + 'status' => 'good', + 'badge' => $this->get_default_badge(), + 'description' => sprintf( + '

    %s

    ', + __( 'Your EDD extensions are all licensed and receiving updates.', 'easy-digital-downloads' ) + ), + 'actions' => '', + 'test' => 'edd_licenses', + ); + if ( ! $this->has_missing_licenses() ) { + return $result; + } + + $result['label'] = __( 'You are not receiving updates for some extensions', 'easy-digital-downloads' ); + $result['status'] = 'critical'; + $result['badge']['color'] = 'red'; + $result['description'] = sprintf( + '

    %s

    ', + __( 'At least one of your extensions is missing a license key, or the license is expired. Your site may be missing critical software updates.', 'easy-digital-downloads' ) + ); + $result['actions'] = $this->get_licensing_action_links(); + + return $result; + } + + /** + * Gets the licensed products global. + * + * @since 3.1.2 + * @return array + */ + private function get_licensed_products() { + global $edd_licensed_products; + + return $edd_licensed_products; + } + + /** + * Checks the licensed products global for unlicensed extensions. + * + * @since 3.1.2 + * @return bool + */ + private function has_missing_licenses() { + return in_array( 0, $this->get_licensed_products(), true ); + } + + /** + * Gets the licensing action links. + * + * @since 3.1.2 + * @return string + */ + private function get_licensing_action_links() { + $actions = $this->get_licensing_actions(); + $action_links = array(); + foreach ( $actions as $action ) { + $action_links[] = sprintf( + '%s', + esc_url( $action['url'] ), + esc_html( $action['label'] ) + ); + } + + return ! empty( $action_links ) ? implode( ' | ', $action_links ) : ''; + } + + /** + * Gets the licensing actions. + * + * @since 3.1.2 + * @return array + */ + private function get_licensing_actions() { + return array( + array( + 'label' => __( 'Upgrade to EDD (Pro)', 'easy-digital-downloads' ), + 'url' => edd_link_helper( + 'https://easydigitaldownloads.com/pricing/', + array( + 'utm_medium' => 'site-health', + 'utm_content' => 'upgrade-to-pro', + ), + false + ), + ), + array( + 'label' => __( 'Enter a license key for EDD (Pro)', 'easy-digital-downloads' ), + 'url' => edd_get_admin_url( + array( + 'page' => 'edd-settings', + 'tab' => 'general', + ) + ), + ), + array( + 'label' => __( 'Enter a license key for an extension', 'easy-digital-downloads' ), + 'url' => edd_get_admin_url( + array( + 'page' => 'edd-settings', + 'tab' => 'licenses', + ) + ), + ), + ); + } +} diff --git a/wp-content/plugins/easy-digital-downloads/src/Admin/SiteHealth/Pages.php b/wp-content/plugins/easy-digital-downloads/src/Admin/SiteHealth/Pages.php new file mode 100644 index 00000000..3cf59fae --- /dev/null +++ b/wp-content/plugins/easy-digital-downloads/src/Admin/SiteHealth/Pages.php @@ -0,0 +1,66 @@ + __( 'Easy Digital Downloads — Pages', 'easy-digital-downloads' ), + 'fields' => $this->get_pages(), + ); + } + + /** + * Gets the page data. + * + * @since 3.1.2 + * @return array + */ + private function get_pages() { + $purchase_page = edd_get_option( 'purchase_page', '' ); + $success_page = edd_get_option( 'success_page', '' ); + $failure_page = edd_get_option( 'failure_page', '' ); + $pages = array( + 'checkout' => array( + 'label' => 'Checkout', + 'value' => ! empty( $purchase_page ) ? 'Valid' : 'Invalid', + ), + 'checkout_uri' => array( + 'label' => 'Checkout Page', + 'value' => ! empty( $purchase_page ) ? get_permalink( $purchase_page ) : '', + ), + 'success_uri' => array( + 'label' => 'Success Page', + 'value' => ! empty( $success_page ) ? get_permalink( $success_page ) : '', + ), + 'failure_uri' => array( + 'label' => 'Failure Page', + 'value' => ! empty( $failure_page ) ? get_permalink( $failure_page ) : '', + ), + 'downloads_slug' => array( + 'label' => 'Downloads Slug', + 'value' => defined( 'EDD_SLUG' ) ? '/' . EDD_SLUG : '/downloads', + ), + ); + + return $pages; + } +} diff --git a/wp-content/plugins/easy-digital-downloads/src/Admin/SiteHealth/Sessions.php b/wp-content/plugins/easy-digital-downloads/src/Admin/SiteHealth/Sessions.php new file mode 100644 index 00000000..52c24482 --- /dev/null +++ b/wp-content/plugins/easy-digital-downloads/src/Admin/SiteHealth/Sessions.php @@ -0,0 +1,88 @@ + __( 'Easy Digital Downloads — Sessions', 'easy-digital-downloads' ), + 'fields' => $this->get_data(), + ); + } + + /** + * Gets the array of session data. + * + * @since 3.1.2 + * @return array + */ + private function get_data() { + $data = array( + 'edd_use_sessions' => array( + 'label' => 'EDD Use Sessions', + 'value' => defined( 'EDD_USE_PHP_SESSIONS' ) && EDD_USE_PHP_SESSIONS ? 'Enforced' : ( EDD()->session->use_php_sessions() ? 'Enabled' : 'Disabled' ), + ), + 'session_enabled' => array( + 'label' => 'Session', + 'value' => isset( $_SESSION ) ? 'Enabled' : 'Disabled', + ), + ); + + $session_data = $this->get_session_data(); + + return $session_data ? array_merge( $data, $session_data ) : $data; + } + + /** + * Gets the data from the $_SESSION global. + * + * @since 3.1.2 + * @return false|array + */ + private function get_session_data() { + if ( ! isset( $_SESSION ) ) { + return false; + } + + return array( + 'name' => array( + 'label' => 'Session Name', + 'value' => ini_get( 'session.name' ), + ), + 'cookie_path' => array( + 'label' => 'Cookie Path', + 'value' => ini_get( 'session.cookie_path' ), + ), + 'save_path' => array( + 'label' => 'Save Path', + 'value' => ini_get( 'session.save_path' ), + ), + 'use_cookies' => array( + 'label' => 'Use Cookies', + 'value' => ini_get( 'session.use_cookies' ) ? 'On' : 'Off', + ), + 'use_only_cookies' => array( + 'label' => 'Use Only Cookies', + 'value' => ini_get( 'session.use_only_cookies' ) ? 'On' : 'Off', + ), + ); + } +} diff --git a/wp-content/plugins/easy-digital-downloads/src/Admin/SiteHealth/Tables.php b/wp-content/plugins/easy-digital-downloads/src/Admin/SiteHealth/Tables.php new file mode 100644 index 00000000..dd04ae2d --- /dev/null +++ b/wp-content/plugins/easy-digital-downloads/src/Admin/SiteHealth/Tables.php @@ -0,0 +1,78 @@ + __( 'Easy Digital Downloads — Custom Tables', 'easy-digital-downloads' ), + 'fields' => $this->get_tables(), + ); + } + + /** + * Gets the name/version of each EDD table that's registered as a component. + * + * @since 3.1.2 + * @return array + */ + private function get_tables() { + $tables = array( + 'default' => array( + 'label' => 'Table Name', + 'value' => 'Version / Count', + ), + ); + foreach ( EDD()->components as $component ) { + + // Object. + $thing = $component->get_interface( 'table' ); + if ( ! empty( $thing ) ) { + $tables[ $thing->name ] = array( + 'label' => $thing->name, + 'value' => $this->get_value_string( $thing ), + ); + } + + // Meta. + $thing = $component->get_interface( 'meta' ); + if ( ! empty( $thing ) ) { + $tables[ $thing->name ] = array( + 'label' => $thing->name, + 'value' => $this->get_value_string( $thing ), + ); + } + } + + return $tables; + } + + /** + * Gets the value string for the table data. + * + * @since 3.1.2 + * @param object $thing The table or meta object. + * @return string + */ + private function get_value_string( $thing ) { + return sprintf( '%s / %s', $thing->get_version(), $thing->count() ); + } +} diff --git a/wp-content/plugins/easy-digital-downloads/src/Admin/SiteHealth/Taxes.php b/wp-content/plugins/easy-digital-downloads/src/Admin/SiteHealth/Taxes.php new file mode 100644 index 00000000..453eda4d --- /dev/null +++ b/wp-content/plugins/easy-digital-downloads/src/Admin/SiteHealth/Taxes.php @@ -0,0 +1,75 @@ + __( 'Easy Digital Downloads — Taxes', 'easy-digital-downloads' ), + 'fields' => $this->get_taxes(), + ); + } + + /** + * Gets the tax information. + * + * @since 3.1.2 + * @return array + */ + private function get_taxes() { + $taxes = array( + 'taxes_enabled' => array( + 'label' => 'Taxes', + 'value' => edd_use_taxes() ? 'Enabled' : 'Disabled', + ), + 'default_rate' => array( + 'label' => 'Default Tax Rate', + 'value' => edd_get_formatted_tax_rate(), + ), + 'display_on_checkout' => array( + 'label' => 'Display on Checkout', + 'value' => edd_get_option( 'checkout_include_tax', false ) ? 'Displayed' : 'Not Displayed', + ), + 'prices_include_tax' => array( + 'label' => 'Prices Include Tax', + 'value' => edd_prices_include_tax() ? 'Yes' : 'No', + ), + ); + $rates = edd_get_tax_rates( array(), OBJECT ); + if ( ! empty( $rates ) ) { + foreach ( $rates as $rate ) { + if ( 'global' === $rate->scope ) { + continue; + } + $tax_rate = $rate->name; + if ( ! empty( $rate->description ) ) { + $tax_rate .= ' / ' . $rate->description; + } + $taxes[ $rate->id ] = array( + 'label' => $tax_rate, + 'value' => edd_get_formatted_tax_rate( $rate->name, $rate->description ), + ); + } + } + + return $taxes; + } +} diff --git a/wp-content/plugins/easy-digital-downloads/src/Admin/SiteHealth/Templates.php b/wp-content/plugins/easy-digital-downloads/src/Admin/SiteHealth/Templates.php new file mode 100644 index 00000000..f4d2a597 --- /dev/null +++ b/wp-content/plugins/easy-digital-downloads/src/Admin/SiteHealth/Templates.php @@ -0,0 +1,56 @@ + __( 'Easy Digital Downloads — Customized Templates', 'easy-digital-downloads' ), + 'fields' => $this->get_templates(), + ); + } + + /** + * Gets the customized templates. + * + * @since 3.1.2 + * @return array + */ + private function get_templates() { + $customized_template_files = edd_get_theme_edd_templates(); + $templates = array(); + if ( empty( $customized_template_files ) ) { + $templates['empty'] = array( + 'label' => '', + 'value' => 'No custom templates found.', + ); + } else { + foreach ( $customized_template_files as $customized_template_file ) { + $templates[] = array( + 'label' => '', + 'value' => $customized_template_file, + ); + } + } + + return $templates; + } +} diff --git a/wp-content/plugins/easy-digital-downloads/src/Admin/SiteHealth/Test.php b/wp-content/plugins/easy-digital-downloads/src/Admin/SiteHealth/Test.php new file mode 100644 index 00000000..6b90109d --- /dev/null +++ b/wp-content/plugins/easy-digital-downloads/src/Admin/SiteHealth/Test.php @@ -0,0 +1,25 @@ + __( 'Easy Digital Downloads', 'easy-digital-downloads' ), + 'color' => 'blue', + ); + } +} diff --git a/wp-content/plugins/easy-digital-downloads/src/Admin/SiteHealth/Tests.php b/wp-content/plugins/easy-digital-downloads/src/Admin/SiteHealth/Tests.php new file mode 100644 index 00000000..eaabbed1 --- /dev/null +++ b/wp-content/plugins/easy-digital-downloads/src/Admin/SiteHealth/Tests.php @@ -0,0 +1,41 @@ + 'add_tests', + ); + } + + /** + * Register custom tests for EDD. + * + * @since 3.1.2 + * @param array $tests + * @return array + */ + public function add_tests( $tests ) { + $direct = new Direct(); + $direct_tests = $direct->get(); + if ( ! empty( $direct_tests ) ) { + $tests['direct'] = array_merge( $tests['direct'], $direct_tests ); + } + + return $tests; + } +} diff --git a/wp-content/plugins/easy-digital-downloads/src/Core.php b/wp-content/plugins/easy-digital-downloads/src/Core.php index 9e6c2972..cfebd255 100644 --- a/wp-content/plugins/easy-digital-downloads/src/Core.php +++ b/wp-content/plugins/easy-digital-downloads/src/Core.php @@ -48,6 +48,8 @@ class Core extends EventManagement\Subscribers { new Admin\Onboarding\Wizard(), new Admin\Onboarding\Ajax(), new Licensing\Ajax(), + new Admin\SiteHealth\Tests(), + new Admin\SiteHealth\Information(), ); } diff --git a/wp-content/plugins/easy-digital-downloads/src/Customers/Recalculations.php b/wp-content/plugins/easy-digital-downloads/src/Customers/Recalculations.php index d7a462ff..6676e46d 100644 --- a/wp-content/plugins/easy-digital-downloads/src/Customers/Recalculations.php +++ b/wp-content/plugins/easy-digital-downloads/src/Customers/Recalculations.php @@ -34,6 +34,10 @@ class Recalculations implements SubscriberInterface { */ public function maybe_schedule_recalculation( $order_id, $data = array(), $previous_order = false ) { + if ( get_option( '_edd_v30_doing_order_migration', false ) ) { + return; + } + // Recalculations do not need to run when the order item is first being added to the database if it's pending. if ( 'edd_order_added' === current_action() && ( empty( $data['status'] ) || 'pending' === $data['status'] ) ) { return; diff --git a/wp-content/plugins/easy-digital-downloads/src/Extensions/Handler.php b/wp-content/plugins/easy-digital-downloads/src/Extensions/Handler.php index bbbb349f..18d3c3c5 100644 --- a/wp-content/plugins/easy-digital-downloads/src/Extensions/Handler.php +++ b/wp-content/plugins/easy-digital-downloads/src/Extensions/Handler.php @@ -100,15 +100,15 @@ class Handler { $this->item_shortname = $this->get_shortname(); $this->version = $_version; $this->edd_license = new License( $this->item_name, $_optname ); + $this->pass_manager = new Pass_Manager(); if ( empty( $this->edd_license->key ) || empty( $this->edd_license->license ) ) { $pro_license = new License( 'pro' ); - if ( ! empty( $pro_license->key ) ) { + if ( ! empty( $pro_license->key ) && $this->is_included_in_pass() ) { $this->is_pro_license = true; $this->edd_license = $pro_license; } } - $this->license_key = $this->edd_license->key; - $this->pass_manager = new Pass_Manager(); + $this->license_key = $this->edd_license->key; $this->hooks(); $this->update_global(); @@ -126,7 +126,7 @@ class Handler { add_filter( 'edd_settings_licenses', array( $this, 'settings' ), 1 ); // Check that license is valid once per week. - if ( ! $this->is_pro_license || ! $this->is_included_in_pass() ) { + if ( ! $this->is_pro_license ) { add_action( 'edd_weekly_scheduled_events', array( $this, 'weekly_license_check' ) ); } @@ -342,14 +342,11 @@ class Handler { * @see \EDD\Admin\Promos\Notices\License_Upgrade_Notice::__construct() */ private function update_global() { - if ( empty( $this->license_key ) ) { - return; - } global $edd_licensed_products; if ( ! is_array( $edd_licensed_products ) ) { $edd_licensed_products = array(); } - $edd_licensed_products[] = $this->item_shortname; + $edd_licensed_products[ $this->item_shortname ] = (int) (bool) $this->is_license_valid(); } /** diff --git a/wp-content/plugins/easy-digital-downloads/src/Orders/Number.php b/wp-content/plugins/easy-digital-downloads/src/Orders/Number.php new file mode 100644 index 00000000..05ecd0b8 --- /dev/null +++ b/wp-content/plugins/easy-digital-downloads/src/Orders/Number.php @@ -0,0 +1,278 @@ +sequential = edd_get_option( 'enable_sequential', false ); + + // If sequential order numbers are enabled, we need to make sure the prefix and suffix are loaded. + if ( $this->sequential ) { + $this->prefix = $this->get_prefix(); + $this->postfix = $this->get_postfix(); + } + } + + /** + * Gets the formatted order number; if sequential order numbers are enabled, + * this function also updates the last payment number in the database. + * + * @since 3.1.2 + * @return string|bool A formatted order number, or false if sequential order numbers are disabled. + */ + public function apply() { + if ( false === $this->sequential ) { + return ''; + } + + $next_order_number = $this->get_next_payment_number(); + if ( ! $next_order_number ) { + return ''; + } + + return $this->format( $next_order_number ); + } + + /** + * Gets the unformatted next order number from the database. + * + * @since 3.1.2 + * @return false|int False if sequential order numbers are disabled, otherwise the next order number to apply. + */ + public function get_next_payment_number() { + if ( false === $this->sequential ) { + return false; + } + + return (int) apply_filters( 'edd_get_next_payment_number', $this->get_next() ); + } + + /** + * Formats the order number with the sequential pre/postfixes. + * + * @since 3.1.2 + * @param int $number + * @return string|int + */ + public function format( $number ) { + + if ( ! $this->sequential || ! is_numeric( $number ) ) { + return $number; + } + + $prefix = $this->prefix; + $number = absint( $number ); + $postfix = $this->postfix; + + $formatted_number = $prefix . $number . $postfix; + + return apply_filters( 'edd_format_payment_number', $formatted_number, $prefix, $number, $postfix ); + } + + /** + * Given an order number, unformat it by removing the pre/postfix. + * + * @since 3.1.2 + * @param string $number + * @return int + */ + public function unformat( $number ) { + + if ( ! $this->sequential ) { + return $number; + } + + $prefix = $this->prefix; + $postfix = $this->postfix; + + // Remove prefix + $number = preg_replace( '/' . $prefix . '/', '', $number, 1 ); + + // Remove the postfix + $length = strlen( $number ); + $postfix_pos = strrpos( $number, strval( $postfix ) ); + if ( false !== $postfix_pos ) { + $number = substr_replace( $number, '', $postfix_pos, $length ); + } + + return apply_filters( 'edd_remove_payment_prefix_postfix', intval( $number ), $prefix, $postfix ); + } + + /** + * Gets the next order number from the database. This also updates the "next" + * order number in the database with the number which is being returned. + * + * @since 3.1.2 + * @return int + */ + private function get_next() { + global $wpdb; + $number = $wpdb->get_var( $wpdb->prepare( "SELECT option_value FROM {$wpdb->options} WHERE option_name=%s", 'edd_next_order_number' ) ); + + // The next order number exists, so increment it and update the database. + if ( ! is_null( $number ) ) { + $number = (int) $number; + + // Update the option for the next order number now. + $this->update( $number + 1 ); + + return $number; + } + + // If the option is not set for the next order number, we need to get the last order number from the database. + $order_number = (int) $this->get_last(); + $next_number = $order_number + 1; + $this->insert( $next_number ); + + return $order_number; + } + + /** + * Updates the last order number in the database. + * + * This doesn't use $wpdb->update() and instead opts for using $wpdb->query() because + * in our testing we're a consistent improvment in performance. While it's measured in microseconds + * it is in the effort to remove any race condition we are running into here. + * + * @since 3.1.2 + * @param int $value + * @return bool + */ + private function update( $value ) { + global $wpdb; + + // We should never hit this....but just in case, we need to unformat it. + if ( ! is_numeric( $value ) ) { + $value = $this->unformat( $value ); + } + + $value = $wpdb->prepare( '%d', $value ); + + return $wpdb->query( + "UPDATE {$wpdb->options} SET option_value = {$value} WHERE option_name = 'edd_next_order_number'" + ); + } + + /** + * Adds the last order number to the database. + * + * @since 3.1.2 + * @param int $value + * @return bool + */ + private function insert( $value ) { + global $wpdb; + + return $wpdb->insert( + $wpdb->options, + array( + 'option_name' => 'edd_next_order_number', + 'option_value' => $value, + ), + array( '%s', '%d' ) + ); + } + + /** + * Gets the last payment number from the database, or from the option. + * + * @return string + */ + private function get_last() { + // If this was the first order after switching to useing the 'next' order number option, we need to get the last order number from the database. + $last_payment_number = $this->get_last_payment_number(); + + if ( ! is_null( $last_payment_number ) ) { + return $last_payment_number + 1; + } + + // If they enabled sequential order numbers after having orders, we need to get the last order number from the database. + $last_order = edd_get_orders( + array( + 'number' => 1, + 'orderby' => 'id', + 'order' => 'DESC', + ) + ); + + if ( ! empty( $last_order ) ) { + $last_order = reset( $last_order ); + + if ( $last_order instanceof EDD\Orders\Order && ! empty( $last_order->order_number ) ) { + return $this->unformat( $last_order->order_number ); + } + } + + // If all else fails, just get the starting number from the setting. + return $this->get_start(); + } + + /** + * Gets the EDD sequential starting number. + * Used when the last order number cannot otherwise be found. + * + * @return int + */ + private function get_start() { + return (int) edd_get_option( 'sequential_start', 1 ); + } + + /** + * Gets the sequential prefix. + * + * @since 3.1.2 + * @return string + */ + private function get_prefix() { + return (string) edd_get_option( 'sequential_prefix' ); + } + + /** + * Gets the sequential postfix. + * + * @since 3.1.2 + * @return string + */ + private function get_postfix() { + return (string) edd_get_option( 'sequential_postfix' ); + } + + /** + * Gets the last payment number from the database. + * + * @since 3.1.2 + * + * @return int + */ + private function get_last_payment_number() { + global $wpdb; + return $wpdb->get_var( $wpdb->prepare( "SELECT option_value FROM {$wpdb->options} WHERE option_name=%s", 'edd_last_payment_number' ) ); + } +} diff --git a/wp-content/plugins/easy-digital-downloads/src/Telemetry/Licenses.php b/wp-content/plugins/easy-digital-downloads/src/Telemetry/Licenses.php index 1f72d555..1b999761 100644 --- a/wp-content/plugins/easy-digital-downloads/src/Telemetry/Licenses.php +++ b/wp-content/plugins/easy-digital-downloads/src/Telemetry/Licenses.php @@ -43,7 +43,7 @@ class Licenses { return array( 'extension' => 'edd_pro', - 'status' => $pro_license->license, + 'status' => $this->get_license_status( $pro_license ), ); } @@ -59,14 +59,30 @@ class Licenses { foreach ( $extensions as $slug ) { $shortname = str_replace( 'edd_', '', $slug ); $license = new License( $shortname ); - if ( ! empty( $license->license ) ) { - $data[] = array( - 'extension' => $slug, - 'status' => $license->license, - ); - } + $data[] = array( + 'extension' => $slug, + 'status' => $this->get_license_status( $license ), + ); } return $data; } + + /** + * Gets the license status. + * + * @since 3.1.2 + * @param \EDD\Licensing\License $license + * @return string + */ + private function get_license_status( $license ) { + if ( ! empty( $license->license ) ) { + return $license->license; + } + if ( ! empty( $license->error ) ) { + return $license->error; + } + + return 'missing'; + } } diff --git a/wp-content/plugins/easy-digital-downloads/src/Utils/ListHandler.php b/wp-content/plugins/easy-digital-downloads/src/Utils/ListHandler.php new file mode 100644 index 00000000..9cf99219 --- /dev/null +++ b/wp-content/plugins/easy-digital-downloads/src/Utils/ListHandler.php @@ -0,0 +1,136 @@ +array = $array; + } + + /** + * Gets the key of the array with the searched value. + * + * @since 3.1.2 + * @param mixed $search The value to search for. + * @param string $type The type of search to perform. Currently supports 'min' or 'max'. + * @return int|string|false The key of the array with the searched value. + */ + public function search( $search, $type = 'min' ) { + if ( empty( $this->array ) || ! is_array( $this->array ) ) { + return false; + } + + if ( $this->is_array_associative() ) { + return array_search( $search, $this->array ); // phpcs:ignore WordPress.PHP.StrictInArray.MissingTrueStrict + } + + if ( in_array( $type, array( 'min', 'max' ), true ) ) { + $plucked = $this->pluck( $search ); + if ( empty( $plucked ) ) { + return false; + } + $search = call_user_func( $type, $plucked ); + } + + foreach ( $this->array as $key => $value ) { + $result = array_search( $search, $value ); // phpcs:ignore WordPress.PHP.StrictInArray.MissingTrueStrict + if ( $result ) { + return $key; + } + } + + return false; + } + + /** + * Checks if the array is associative. + * + * @since 3.1.2 + * @return bool + */ + private function is_array_associative() { + return count( $this->array ) === count( $this->array, COUNT_RECURSIVE ); + } + + /** + * Plucks a certain field out of each element in the input array. + * + * This has the same functionality and prototype of + * array_column() (PHP 5.5) but also supports objects. + * + * This is a near copy of the pluck() method from the WP_List_Util class, but + * that errors if a nonexistent field is passed. This version does not. + * + * @since 3.1.2 + * @param int|string $field Field to fetch from the object or array. + * @param int|string $index_key Optional. Field from the element to use as keys for the new array. + * @return array Array of found values. If `$index_key` is set, an array of found values with keys + * corresponding to `$index_key`. If `$index_key` is null, array keys from the original + * `$list` will be preserved in the results. + */ + private function pluck( $field, $index_key = null ) { + $newlist = array(); + + if ( ! is_string( $field ) && ! is_int( $field ) ) { + return $newlist; + } + + if ( ! $index_key ) { + /* + * This is simple. Could at some point wrap array_column() + * if we knew we had an array of arrays. + */ + foreach ( $this->array as $key => $value ) { + if ( is_object( $value ) ) { + $newlist[ $key ] = $value->$field; + } elseif ( is_array( $value ) && isset( $value[ $field ] ) ) { + $newlist[ $key ] = $value[ $field ]; + } + } + + return $newlist; + } + + /* + * When index_key is not set for a particular item, push the value + * to the end of the stack. This is how array_column() behaves. + */ + foreach ( $this->array as $value ) { + if ( is_object( $value ) ) { + if ( isset( $value->$index_key ) ) { + $newlist[ $value->$index_key ] = $value->$field; + } else { + $newlist[] = $value->$field; + } + } elseif ( is_array( $value ) && isset( $value[ $field ] ) ) { + if ( isset( $value[ $index_key ] ) ) { + $newlist[ $value[ $index_key ] ] = $value[ $field ]; + } else { + $newlist[] = $value[ $field ]; + } + } + } + + return $newlist; + } +}