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 5804f3dd..4befe0f6 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:400px){.edd-promo-notice .edd-peeking{justify-self:flex-start;margin-left:0;margin-right:200px}}.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:1;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-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 13a2291f..0f5526a7 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:400px){.edd-promo-notice .edd-peeking{justify-self:flex-start;margin-right:0;margin-left:200px}}.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:1;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-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/js/edd-admin-downloads.js b/wp-content/plugins/easy-digital-downloads/assets/js/edd-admin-downloads.js index dd665d36..94a8afe8 100644 --- a/wp-content/plugins/easy-digital-downloads/assets/js/edd-admin-downloads.js +++ b/wp-content/plugins/easy-digital-downloads/assets/js/edd-admin-downloads.js @@ -1 +1 @@ -!function(e){var t={};function i(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,i),a.l=!0,a.exports}i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)i.d(n,a,function(t){return e[t]}.bind(null,a));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=186)}({1:function(e,t){e.exports=jQuery},11:function(e,t,i){var n=i(3).default;e.exports=function(e,t){if("object"!==n(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var a=i.call(e,t||"default");if("object"!==n(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},14:function(e,t,i){"use strict";(function(e,n){i.d(t,"a",(function(){return a}));var a=function(t){t.tooltip({content:function(){return e(this).prop("title")},tooltipClass:"edd-ui-tooltip",position:{my:"center top",at:"center bottom+10",collision:"flipfit"},hide:{duration:200},show:{duration:200}})};n(document).ready((function(e){a(e(".edd-help-tip"))}))}).call(this,i(1),i(1))},186:function(e,t,i){"use strict";i.r(t),function(e,t){var n=i(6),a=i(14),r=(i(187),{init:function(){this.add(),this.move(),this.remove(),this.type(),this.prices(),this.files(),this.updatePrices(),this.showAdvanced()},clone_repeatable:function(t){var i,n=1;t.parent().find(".edd_repeatable_row").each((function(){var t=e(this).data("key");parseInt(t)>n&&(n=t)})),i=n+=1;var r=t.clone();return r.removeClass("edd_add_blank"),r.attr("data-key",i),r.find("input, select, textarea").val("").each((function(){var t=e(this),n=t.attr("name"),a=t.attr("id");n&&(n=n.replace(/\[(\d+)\]/,"["+parseInt(i)+"]"),t.attr("name",n)),t.attr("data-key",i),void 0!==a&&(a=a.replace(/(\d+)/,parseInt(i)),t.attr("id",a))})),r.find("select").each((function(){e(this).val(t.find('select[name="'+e(this).attr("name")+'"]').val())})),r.find('input[type="checkbox"]').each((function(){e(this).is(":checked")&&e(this).prop("checked",!1),e(this).val(1)})),r.find("span.edd_price_id").each((function(){e(this).text(parseInt(i))})),r.find("input.edd_repeatable_index").each((function(){e(this).val(parseInt(e(this).data("key")))})),r.find("span.edd_file_id").each((function(){e(this).text(parseInt(i))})),r.find(".edd_repeatable_default_input").each((function(){e(this).val(parseInt(i)).removeAttr("checked")})),r.find(".edd_repeatable_condition_field").each((function(){e(this).find("option:eq(0)").prop("selected","selected")})),r.find("label").each((function(){var t=e(this).attr("for");t&&e(this).attr("for",t.replace(/(\d+)/,parseInt(i)))})),r.find(".search-choice").remove(),r.find(".chosen-container").remove(),Object(a.a)(r.find(".edd-help-tip")),r},add:function(){e(document.body).on("click",".edd_add_repeatable",(function(t){t.preventDefault();var i=e(this).closest(".edd_repeatable_table").find(".edd_repeatable_row").last(),a=r.clone_repeatable(i);a.insertAfter(i).find("input, textarea, select").filter(":visible").eq(0).focus(),a.find(".edd-select-chosen").each((function(){var t=e(this);t.chosen(Object(n.a)(t))})),a.find(".edd-select-chosen").css("width","100%"),a.find(".edd-select-chosen .chosen-search input").attr("placeholder",edd_vars.search_placeholder)}))},move:function(){e(".edd_repeatable_table .edd-repeatables-wrap").sortable({axis:"y",handle:".edd-draghandle-anchor",items:".edd_repeatable_row",cursor:"move",tolerance:"pointer",containment:"parent",distance:2,opacity:.7,scroll:!0,update:function(){var t=0;e(this).find(".edd_repeatable_row").each((function(){e(this).find("input.edd_repeatable_index").each((function(){e(this).val(t)})),t++}))},start:function(e,t){t.placeholder.height(t.item.height()-2)}})},remove:function(){e(document.body).on("click",".edd-remove-row, .edd_remove_repeatable",(function(t){t.preventDefault();var i,n=e(this).parents(".edd_repeatable_row"),a=n.parent().find(".edd_repeatable_row").length,r=e(this).data("type"),d="div.edd_repeatable_"+r+"s";if(i=(e(this).is(".ui-sortable .edd_repeatable_row:first-child .edd-remove-row, .ui-sortable .edd_repeatable_row:first-child .edd_remove_repeatable")?n.next(".edd_repeatable_row"):n.prev(".edd_repeatable_row")).find("select, input, textarea, button").filter(":visible").eq(0),"price"===r){var o=n.data("key");e('.edd_repeatable_condition_field option[value="'+o+'"]').remove()}if(a>1)e("input, select",n).val(""),n.fadeOut("fast").remove(),i.focus();else switch(r){case"price":alert(edd_vars.one_price_min);break;case"file":e("input, select",n).val("");break;default:alert(edd_vars.one_field_min)}e(d).each((function(t){e(this).find("input, select").each((function(){var i=e(this).attr("name");i=i.replace(/\[(\d+)\]/,"["+t+"]"),e(this).attr("name",i).attr("id",i)}))}))}))},type:function(){e(document.body).on("change","#_edd_product_type",(function(t){var i=e("#edd_products"),n=e("#edd_download_files"),a=e("#edd_download_limit_wrap");"bundle"===e(this).val()?(i.show(),n.hide(),a.hide()):(i.hide(),n.show(),a.show())}))},prices:function(){e(document.body).on("change","#edd_variable_pricing",(function(t){var i=e(this).is(":checked"),n=e("#edd_regular_price_field"),a=e("#edd_variable_price_fields, .edd_repeatable_table .pricing"),r=e(".edd-bundled-product-row, .edd-repeatable-row-standard-fields");i?(n.hide(),a.show(),r.addClass("has-variable-pricing")):(n.show(),a.hide(),r.removeClass("has-variable-pricing"))}))},files:function(){var t;window.formfield="",e(document.body).on("click",".edd_upload_file_button",(function(i){i.preventDefault();var n=e(this);window.formfield=n.closest(".edd_repeatable_upload_wrapper"),t||((t=wp.media.frames.file_frame=wp.media({title:n.data("uploader-title"),frame:"post",state:"insert",button:{text:n.data("uploader-button-text")},multiple:"0"!==e(this).data("multiple")})).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("insert",(function(){t.state().get("selection").each((function(t,i){var n="image"===(t=t.toJSON()).type&&e(".attachment-display-settings .size option:selected").val(),a=t.url,d=t.title.length>0?t.title:t.filename;if(n&&void 0!==t.sizes[n]&&(a=t.sizes[n].url),"image"===t.type&&(d=n&&void 0!==t.sizes[n]?d+"-"+t.sizes[n].width+"x"+t.sizes[n].height:d+"-"+t.width+"x"+t.height),0===i)window.formfield.find(".edd_repeatable_attachment_id_field").val(t.id),window.formfield.find(".edd_repeatable_thumbnail_size_field").val(n),window.formfield.find(".edd_repeatable_upload_field").val(a),window.formfield.find(".edd_repeatable_name_field").val(d);else{var o=window.formfield,l=r.clone_repeatable(o);l.find(".edd_repeatable_attachment_id_field").val(t.id),l.find(".edd_repeatable_thumbnail_size_field").val(n),l.find(".edd_repeatable_upload_field").val(a),l.find(".edd_repeatable_name_field").val(d),l.insertAfter(o)}}))}))),t.open()})),e(".edd_repeatable_upload_field").on("focus",(function(){var t=e(this);t.data("originalFile",t.val())})).on("change",(function(){var t=e(this);t.data("originalFile")!==t.val()&&t.closest(".edd-repeatable-row-standard-fields").find(".edd_repeatable_attachment_id_field").val(0)})),window.formfield=""},updatePrices:function(){e("#edd_price_fields").on("keyup",".edd_variable_prices_name",(function(){var t=e(this).parents(".edd_repeatable_row").data("key"),i=e(this).val(),n=e(".edd_repeatable_condition_field option[value="+t+"]");n.length>0?n.text(i):e(".edd_repeatable_condition_field").append(e("").attr("value",t).text(i))}))},showAdvanced:function(){e(document.body).on("click",".toggle-custom-price-option-section",(function(t){t.preventDefault();var i=e(this),n=i.html()===edd_vars.show_advanced_settings;n?i.html(edd_vars.hide_advanced_settings):i.html(edd_vars.show_advanced_settings);var a=i.parents(".edd-repeatable-row-header");a.siblings(".edd-custom-price-option-sections-wrap").slideToggle(),e(":input:not(input[type=button],input[type=submit],button):visible:first",n?a.siblings(".edd-custom-price-option-sections-wrap"):a.siblings(".edd-repeatable-row-standard-fields")).focus()}))}});t(document).ready((function(e){r.init()}))}.call(this,i(1),i(1))},187:function(e,t,i){(function(e){e(document).ready((function(e){e("body").on("click","#the-list .editinline",(function(){var t=e(this).closest("tr").attr("id");t=t.replace("post-","");var i=e("#post-"+t).find(".column-price .downloadprice-"+t).val();i!==e("#post-"+t+".column-price .downloadprice-"+t).val()?e(".regprice","#edd-download-data").val(i).attr("disabled",!1):e(".regprice","#edd-download-data").val(edd_vars.quick_edit_warning).attr("disabled","disabled")})),e(document.body).on("click","#bulk_edit",(function(){var t=e("#bulk-edit"),i=new Array;t.find("#bulk-titles").children().each((function(){i.push(e(this).attr("id").replace(/^(ttle)/i,""))}));var n=e('#edd-download-data input[name="_edd_regprice"]').val(),a={action:"edd_save_bulk_edit",edd_bulk_nonce:i,post_ids:i,price:n};e.post(ajaxurl,a)}))}))}).call(this,i(1))},2:function(e,t,i){var n=i(7);e.exports=function(e,t,i){return(t=n(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e},e.exports.__esModule=!0,e.exports.default=e.exports},3:function(e,t){function i(t){return e.exports=i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,i(t)}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},6:function(e,t,i){"use strict";(function(e){i.d(t,"a",(function(){return l}));var n=i(2),a=i.n(n);function r(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function d(e){for(var t=1;tn&&(n=t)})),i=n+=1;var r=t.clone();return r.removeClass("edd_add_blank"),r.attr("data-key",i),r.find("input, select, textarea").val("").each((function(){var t=e(this),n=t.attr("name"),a=t.attr("id");n&&(n=n.replace(/\[(\d+)\]/,"["+parseInt(i)+"]"),t.attr("name",n)),t.attr("data-key",i),void 0!==a&&(a=a.replace(/(\d+)/,parseInt(i)),t.attr("id",a))})),r.find("select").each((function(){e(this).val(t.find('select[name="'+e(this).attr("name")+'"]').val())})),r.find('input[type="checkbox"]').each((function(){e(this).is(":checked")&&e(this).prop("checked",!1),e(this).val(1)})),r.find("span.edd_price_id").each((function(){e(this).text(parseInt(i))})),r.find("input.edd_repeatable_index").each((function(){e(this).val(parseInt(e(this).data("key")))})),r.find("span.edd_file_id").each((function(){e(this).text(parseInt(i))})),r.find(".edd_repeatable_default_input").each((function(){e(this).val(parseInt(i)).removeAttr("checked")})),r.find(".edd_repeatable_condition_field").each((function(){e(this).find("option:eq(0)").prop("selected","selected")})),r.find("label").each((function(){var t=e(this).attr("for");t&&e(this).attr("for",t.replace(/(\d+)/,parseInt(i)))})),r.find(".search-choice").remove(),r.find(".chosen-container").remove(),Object(a.a)(r.find(".edd-help-tip")),r},add:function(){e(document.body).on("click",".edd_add_repeatable",(function(t){t.preventDefault();var i=e(this).closest(".edd_repeatable_table").find(".edd_repeatable_row").last(),a=r.clone_repeatable(i);a.insertAfter(i).find("input, textarea, select").filter(":visible").eq(0).focus(),a.find(".edd-select-chosen").each((function(){var t=e(this);t.chosen(Object(n.a)(t))})),a.find(".edd-select-chosen").css("width","100%"),a.find(".edd-select-chosen .chosen-search input").attr("placeholder",edd_vars.search_placeholder)}))},move:function(){e(".edd_repeatable_table .edd-repeatables-wrap").sortable({axis:"y",handle:".edd-draghandle-anchor",items:".edd_repeatable_row",cursor:"move",tolerance:"pointer",containment:"parent",distance:2,opacity:.7,scroll:!0,update:function(){var t=0;e(this).find(".edd_repeatable_row").each((function(){e(this).find("input.edd_repeatable_index").each((function(){e(this).val(t)})),t++}))},start:function(e,t){t.placeholder.height(t.item.height()-2)}})},remove:function(){e(document.body).on("click",".edd-remove-row, .edd_remove_repeatable",(function(t){t.preventDefault();var i,n=e(this).parents(".edd_repeatable_row"),a=n.parent().find(".edd_repeatable_row").length,r=e(this).data("type"),d="div.edd_repeatable_"+r+"s";if(i=(e(this).is(".ui-sortable .edd_repeatable_row:first-child .edd-remove-row, .ui-sortable .edd_repeatable_row:first-child .edd_remove_repeatable")?n.next(".edd_repeatable_row"):n.prev(".edd_repeatable_row")).find("select, input, textarea, button").filter(":visible").eq(0),"price"===r){var o=n.data("key");e('.edd_repeatable_condition_field option[value="'+o+'"]').remove()}if(a>1)e("input, select",n).val(""),n.fadeOut("fast").remove(),i.focus();else switch(r){case"price":alert(edd_vars.one_price_min);break;case"file":e("input, select",n).val("");break;default:alert(edd_vars.one_field_min)}e(d).each((function(t){e(this).find("input, select").each((function(){var i=e(this).attr("name");i=i.replace(/\[(\d+)\]/,"["+t+"]"),e(this).attr("name",i).attr("id",i)}))}))}))},type:function(){e(document.body).on("change","#_edd_product_type",(function(t){var i=e("#edd_products"),n=e("#edd_download_files"),a=e("#edd_download_limit_wrap");"bundle"===e(this).val()?(i.show(),n.hide(),a.hide()):(i.hide(),n.show(),a.show())}))},prices:function(){e(document.body).on("change","#edd_variable_pricing",(function(t){var i=e(this).is(":checked"),n=e("#edd_regular_price_field"),a=e("#edd_variable_price_fields, .edd_repeatable_table .pricing"),r=e(".edd-bundled-product-row, .edd-repeatable-row-standard-fields");i?(n.hide(),a.show(),r.addClass("has-variable-pricing")):(n.show(),a.hide(),r.removeClass("has-variable-pricing"))}))},files:function(){var t;window.formfield="",e(document.body).on("click",".edd_upload_file_button",(function(i){i.preventDefault();var n=e(this);window.formfield=n.closest(".edd_repeatable_upload_wrapper"),t||((t=wp.media.frames.file_frame=wp.media({title:n.data("uploader-title"),frame:"post",state:"insert",button:{text:n.data("uploader-button-text")},multiple:"0"!==e(this).data("multiple")})).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("insert",(function(){t.state().get("selection").each((function(t,i){var n="image"===(t=t.toJSON()).type&&e(".attachment-display-settings .size option:selected").val(),a=t.url,d=t.title.length>0?t.title:t.filename;if(n&&void 0!==t.sizes[n]&&(a=t.sizes[n].url),"image"===t.type&&(d=n&&void 0!==t.sizes[n]?d+"-"+t.sizes[n].width+"x"+t.sizes[n].height:d+"-"+t.width+"x"+t.height),0===i)window.formfield.find(".edd_repeatable_attachment_id_field").val(t.id),window.formfield.find(".edd_repeatable_thumbnail_size_field").val(n),window.formfield.find(".edd_repeatable_upload_field").val(a),window.formfield.find(".edd_repeatable_name_field").val(d);else{var o=window.formfield,l=r.clone_repeatable(o);l.find(".edd_repeatable_attachment_id_field").val(t.id),l.find(".edd_repeatable_thumbnail_size_field").val(n),l.find(".edd_repeatable_upload_field").val(a),l.find(".edd_repeatable_name_field").val(d),l.insertAfter(o)}}))}))),t.open()})),e(".edd_repeatable_upload_field").on("focus",(function(){var t=e(this);t.data("originalFile",t.val())})).on("change",(function(){var t=e(this);t.data("originalFile")!==t.val()&&t.closest(".edd-repeatable-row-standard-fields").find(".edd_repeatable_attachment_id_field").val(0)})),window.formfield=""},updatePrices:function(){e("#edd_price_fields").on("keyup",".edd_variable_prices_name",(function(){var t=e(this).parents(".edd_repeatable_row").data("key"),i=e(this).val(),n=e(".edd_repeatable_condition_field option[value="+t+"]");n.length>0?n.text(i):e(".edd_repeatable_condition_field").append(e("").attr("value",t).text(i))}))},showAdvanced:function(){e(document.body).on("click",".toggle-custom-price-option-section",(function(t){t.preventDefault();var i=e(this),n=i.html()===edd_vars.show_advanced_settings;n?i.html(edd_vars.hide_advanced_settings):i.html(edd_vars.show_advanced_settings);var a=i.parents(".edd-repeatable-row-header");a.siblings(".edd-custom-price-option-sections-wrap").slideToggle(),e(":input:not(input[type=button],input[type=submit],button):visible:first",n?a.siblings(".edd-custom-price-option-sections-wrap"):a.siblings(".edd-repeatable-row-standard-fields")).focus()}))}});t(document).ready((function(e){r.init()}))}.call(this,i(1),i(1))},187:function(e,t,i){(function(e){e(document).ready((function(e){e("body").on("click","#the-list .editinline",(function(){var t=e(this).closest("tr").attr("id");t=t.replace("post-","");var i=e("#post-"+t).find(".column-price .downloadprice-"+t).val();i!==e("#post-"+t+".column-price .downloadprice-"+t).val()?e(".regprice","#edd-download-data").val(i).attr("disabled",!1):e(".regprice","#edd-download-data").val(edd_vars.quick_edit_warning).attr("disabled","disabled")}))}))}).call(this,i(1))},2:function(e,t,i){var n=i(7);e.exports=function(e,t,i){return(t=n(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e},e.exports.__esModule=!0,e.exports.default=e.exports},3:function(e,t){function i(t){return e.exports=i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,i(t)}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},6:function(e,t,i){"use strict";(function(e){i.d(t,"a",(function(){return l}));var n=i(2),a=i.n(n);function r(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function d(e){for(var t=1;t0&&t.attr("autocomplete","off").datepicker({dateFormat:edd_vars.date_picker_format,beforeShow:function(){e("#ui-datepicker-div").removeClass("ui-datepicker").addClass("edd-datepicker")}})}))}).call(this,n(1))},215:function(e,t,n){(function(e){e(document).ready((function(e){e(".edd-dialog").dialog({autoOpen:!1,modal:!0,draggable:!1,closeOnEscape:!0})}))}).call(this,n(1))},216:function(e,t,n){"use strict";(function(e){var t=n(6);e(document).ready((function(e){e(".edd-select-chosen").each((function(){var n=e(this);n.chosen(Object(t.a)(n))})),e(".edd-select-chosen .chosen-search input").each((function(){if(!e(this).attr("placeholder")){var t=e(this).parent().parent().parent().prev("select.edd-select-chosen").data("search-placeholder");t&&e(this).attr("placeholder",t)}})),e(".chosen-choices").on("click",(function(){var t=e(this).parent().prev().data("search-placeholder");void 0===t&&(t=edd_vars.type_to_search),e(this).children("li").children("input").attr("placeholder",t)})),e("#post").on("click",".edd-thickbox",(function(){e(".edd-select-chosen","#choose-download").css("width","100%")})),e(document.body).on("keyup",".edd-select-chosen .chosen-search input, .edd-select-chosen .search-field input",_.debounce((function(t){var n=e(this),o=n.val(),i=n.closest(".edd-select-chosen"),a=i.prev(),s=a.data("search-type"),c=i.hasClass("no-bundles"),r=i.hasClass("variations"),d=i.hasClass("variations-only"),l=t.which,u="edd_download_search";i.attr("id").replace("_chosen",""),void 0!==s&&"no_ajax"!==s&&(u="edd_"+s+"_search",o.length<=3&&"edd_download_search"===u||16===l||13===l||91===l||17===l||37===l||38===l||39===l||40===l?i.children(".spinner").remove():(i.children(".spinner").length||i.append(''),e.ajax({type:"GET",dataType:"json",url:ajaxurl,data:{s:o,action:u,no_bundles:c,variations:r,variations_only:d},beforeSend:function(){a.closest("ul.chosen-results").empty()},success:function(t){e("option:not(:selected)",a).remove(),e.each(t,(function(t,n){e('option[value="'+n.id+'"]',a).length||a.append('")}));var o=n.val();a.trigger("chosen:updated"),n.val(o)}}).fail((function(e){window.console&&window.console.log&&console.log(e)})).done((function(e){i.children(".spinner").remove()}))))}),342))}))}).call(this,n(1))},217:function(e,t,n){(function(e){e(document).ready((function(e){var t=".edd-vertical-sections.use-js";if(0!==e(t).length){e("".concat(t," .section-content")).hide();var n=window.location.hash;n&&n.includes("edd_")?(e(t).find(n).show(),e("".concat(t," .section-title")).attr("aria-selected","false").removeClass("section-title--is-active"),e(t).find('.section-title a[href="'+n+'"]').parents(".section-title").attr("aria-selected","true").addClass("section-title--is-active")):(e("".concat(t," .section-content:first-child")).show(),e("".concat(t," .section-nav li:first-child")).attr("aria-selected","true").addClass("section-title--is-active")),e("".concat(t," .section-nav li a")).on("click",(function(t){t.preventDefault();var n=e(this),o=n.attr("href"),i=n.parents(".edd-vertical-sections");i.find(".section-content").hide(),i.find(o).show(),i.find(".section-title").attr("aria-selected","false").removeClass("section-title--is-active"),n.parent().attr("aria-selected","true").addClass("section-title--is-active"),i.find("div.chosen-container").css("width","100%"),window.history.pushState("object or string","",o)}))}}))}).call(this,n(1))},218:function(e,t,n){(function(e){e(document).ready((function(e){var t=e("ul.edd-sortable-list");t.length>0&&t.sortable({axis:"y",items:"li",cursor:"move",tolerance:"pointer",containment:"parent",distance:2,opacity:.7,scroll:!0,stop:function(){var t=e.map(e(this).children("li"),(function(t){return e(t).data("key")}));e(this).prev("input.edd-order").val(t)}})}))}).call(this,n(1))},219:function(e,t,n){(function(e){e(document).ready((function(e){e(".edd-ajax-user-search").keyup((function(){var t=e(this).val(),n="";e(this).data("exclude")&&(n=e(this).data("exclude")),e(".edd_user_search_wrap").addClass("loading");var o={action:"edd_search_users",user_name:t,exclude:n};e.ajax({type:"POST",data:o,dataType:"json",url:ajaxurl,success:function(t){e(".edd_user_search_wrap").removeClass("loading"),e(".edd_user_search_results").removeClass("hidden"),e(".edd_user_search_results span").html(""),t.results&&e(t.results).appendTo(".edd_user_search_results span")}})})).blur((function(){t?t=!1:(e(this).removeClass("loading"),e(".edd_user_search_results").addClass("hidden"))})).focus((function(){e(this).keyup()})),e(document.body).on("click.eddSelectUser",".edd_user_search_results span a",(function(t){t.preventDefault();var n=e(this).data("login");e(".edd-ajax-user-search").val(n),e(".edd_user_search_results").addClass("hidden"),e(".edd_user_search_results span").html("")})),e(document.body).on("click.eddCancelUserSearch",".edd_user_search_results a.edd-ajax-user-cancel",(function(t){t.preventDefault(),e(".edd-ajax-user-search").val(""),e(".edd_user_search_results").addClass("hidden"),e(".edd_user_search_results span").html("")}));var t=!1;e(".edd_user_search_results").mousedown((function(){t=!0}))}))}).call(this,n(1))},220:function(e,t,n){(function(e,t){function n(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=t("#edd-advanced-filters");if(!n.hasClass("open"))return!1;!1!==e&&(n.is(e)||n.has(e).length)||o()}function o(){t("#edd-advanced-filters").toggleClass("open")}e(document).ready((function(e){e(".edd-advanced-filters-button").on("click",(function(e){e.preventDefault(),o()})),e(document).on("click",(function(e){n(e.target)})),e(document).on("keydown",(function(e){"Escape"===e.key&&n()}))}))}).call(this,n(1),n(1))},221:function(e,t,n){(function(e){e(document).ready((function(e){(e("body").hasClass("taxonomy-download_category")||e("body").hasClass("taxonomy-download_tag"))&&e(".nav-tab-wrapper, .nav-tab-wrapper + br").detach().insertAfter(".wp-header-end")}))}).call(this,n(1))},222:function(e,t,n){(function(e){e(document).ready((function(e){e(".edd_countries_filter").on("change",(function(){var t=e(this),n={action:"edd_get_shop_states",country:t.val(),nonce:t.data("nonce"),field_name:"edd_regions_filter"};return e.post(ajaxurl,n,(function(t){e("select.edd_regions_filter").find("option:gt(0)").remove(),"nostates"!==t&&e(t).find("option:gt(0)").appendTo("select.edd_regions_filter"),e("select.edd_regions_filter").trigger("chosen:updated")})),!1}))}))}).call(this,n(1))},223:function(e,t,n){(function(e){e(document).ready((function(e){var t=e(".edd-admin-notice-overlay"),n="edd-promo-notice__overlay";t&&(t.wrap('
'),e(".edd-promo-notice__trigger").on("click",(function(){e("."+n).css("display","flex").hide().fadeIn()}))),e(".edd-promo-notice").each((function(){var t=e(this);t.on("click",".edd-promo-notice-dismiss",(function(o){e(this).attr("href")||o.preventDefault(),e.ajax({type:"POST",data:{action:"edd_dismiss_promo_notice",notice_id:t.data("id"),nonce:t.data("nonce"),lifespan:t.data("lifespan")},url:ajaxurl,success:function(o){e("."+n).length?(e("."+n).fadeOut(),e(".edd-extension-manager__key-notice").hide()):t.slideUp()}})})),e(document).on("keydown",(function(t){e("."+n).length&&27===t.keyCode&&(e("."+n).fadeOut(),e(".edd-extension-manager__key-notice").hide())}))}))}))}).call(this,n(1))},224:function(e,t){document.addEventListener("alpine:init",(function(){Alpine.store("eddNotifications",{isPanelOpen:!1,notificationsLoaded:!1,numberActiveNotifications:0,activeNotifications:[],inactiveNotifications:[],init:function(){var e=this,t=document.querySelector("#edd-notification-button .edd-number");t&&t.classList.remove("edd-hidden"),document.addEventListener("keydown",(function(t){"Escape"===t.key&&e.closePanel()}));var n=new URLSearchParams(window.location.search);n.has("notifications")&&"true"===n.get("notifications")&&e.openPanel()},openPanel:function(){var e=this,t=document.getElementById("edd-notifications-header");if(this.notificationsLoaded)return this.isPanelOpen=!0,void(t&&setTimeout((function(){t.focus()})));this.isPanelOpen=!0,this.apiRequest("/notifications","GET").then((function(n){e.activeNotifications=n.active,e.inactiveNotifications=n.dismissed,e.notificationsLoaded=!0,t&&t.focus()})).catch((function(e){console.log("Notification error",e)}))},closePanel:function(){if(this.isPanelOpen){this.isPanelOpen=!1;var e=document.getElementById("edd-notification-button");e&&e.focus()}},apiRequest:function(e,t){return fetch(edd_vars.restBase+e,{method:t,credentials:"same-origin",headers:{"Content-Type":"application/json","X-WP-Nonce":edd_vars.restNonce}}).then((function(e){return e.ok?e.text():Promise.reject(e)})).then((function(e){return e?JSON.parse(e):null}))},dismiss:function(e,t){var n=this;if(void 0!==this.activeNotifications[t]){e.target.disabled=!0;var o=this.activeNotifications[t];this.apiRequest("/notifications/"+o.id,"DELETE").then((function(e){n.activeNotifications.splice(t,1),n.numberActiveNotifications=n.activeNotifications.length})).catch((function(e){console.log("Dismiss error",e)}))}}})}))},225:function(e,t,n){"use strict";(function(e){var t=n(4);Object(t.a)((function(){e(".download_page_edd-payment-history .row-actions .delete a").on("click",(function(t){t.preventDefault();var n=e(this).attr("href");e("#edd-single-delete-dialog").dialog({buttons:[{text:edd_vars.cancel_dialog_text,class:"button-secondary",click:function(){e(this).dialog("close")}},{text:edd_vars.confirm_dialog_text,class:"button-primary",click:function(){e(this).dialog("close"),window.location.href=n}}]}),e("#edd-single-delete-dialog").dialog("open")})),e(".download_page_edd-payment-history").on("click","#doaction",(function(t){var n=e("#bulk-action-selector-top").val(),o=e(this).closest("form");"delete"===n&&(t.preventDefault(),e("#edd-bulk-delete-dialog").dialog({buttons:[{text:edd_vars.cancel_dialog_text,class:"button-secondary",click:function(){e(this).dialog("close")}},{text:edd_vars.confirm_dialog_text,class:"button-primary",click:function(){e(this).dialog("close"),o.submit()}}]}),e("#edd-bulk-delete-dialog").dialog("open"))}))}))}).call(this,n(1))},3: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},4:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o}));var o=function(t){e(t)}}).call(this,n(1))},6:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return r}));var o=n(2),i=n.n(o);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function s(e){for(var t=1;t0&&t.attr("autocomplete","off").datepicker({dateFormat:edd_vars.date_picker_format,beforeShow:function(){e("#ui-datepicker-div").removeClass("ui-datepicker").addClass("edd-datepicker")}})}))}).call(this,n(1))},215:function(e,t,n){(function(e){e(document).ready((function(e){e(".edd-dialog").dialog({autoOpen:!1,modal:!0,draggable:!1,closeOnEscape:!0})}))}).call(this,n(1))},216:function(e,t,n){"use strict";(function(e){var t=n(6);e(document).ready((function(e){e(".edd-select-chosen").each((function(){var n=e(this);n.chosen(Object(t.a)(n))})),e(".edd-select-chosen .chosen-search input").each((function(){if(!e(this).attr("placeholder")){var t=e(this).parent().parent().parent().prev("select.edd-select-chosen").data("search-placeholder");t&&e(this).attr("placeholder",t)}})),e(".chosen-choices").on("click",(function(){var t=e(this).parent().prev().data("search-placeholder");void 0===t&&(t=edd_vars.type_to_search),e(this).children("li").children("input").attr("placeholder",t)})),e("#post").on("click",".edd-thickbox",(function(){e(".edd-select-chosen","#choose-download").css("width","100%")})),e(document.body).on("keyup",".edd-select-chosen .chosen-search input, .edd-select-chosen .search-field input",_.debounce((function(t){var n=e(this),o=n.val(),i=n.closest(".edd-select-chosen"),a=i.prev(),s=a.data("search-type"),c=i.hasClass("no-bundles"),r=i.hasClass("variations"),d=i.hasClass("variations-only"),l=t.which,u="edd_download_search";i.attr("id").replace("_chosen",""),void 0!==s&&"no_ajax"!==s&&(u="edd_"+s+"_search",o.length<=3&&"edd_download_search"===u||16===l||13===l||91===l||17===l||37===l||38===l||39===l||40===l?i.children(".spinner").remove():(i.children(".spinner").length||i.append(''),e.ajax({type:"GET",dataType:"json",url:ajaxurl,data:{s:o,action:u,no_bundles:c,variations:r,variations_only:d},beforeSend:function(){a.closest("ul.chosen-results").empty()},success:function(t){e("option:not(:selected)",a).remove(),e.each(t,(function(t,n){e('option[value="'+n.id+'"]',a).length||a.append('")}));var o=n.val();a.trigger("chosen:updated"),n.val(o)}}).fail((function(e){window.console&&window.console.log&&console.log(e)})).done((function(e){i.children(".spinner").remove()}))))}),342))}))}).call(this,n(1))},217:function(e,t,n){(function(e){e(document).ready((function(e){var t=".edd-vertical-sections.use-js";if(0!==e(t).length){e("".concat(t," .section-content")).hide();var n=window.location.hash;n&&n.includes("edd_")?(e(t).find(n).show(),e("".concat(t," .section-title")).attr("aria-selected","false").removeClass("section-title--is-active"),e(t).find('.section-title a[href="'+n+'"]').parents(".section-title").attr("aria-selected","true").addClass("section-title--is-active")):(e("".concat(t," .section-content:first-child")).show(),e("".concat(t," .section-nav li:first-child")).attr("aria-selected","true").addClass("section-title--is-active")),e("".concat(t," .section-nav li a")).on("click",(function(t){t.preventDefault();var n=e(this),o=n.attr("href"),i=n.parents(".edd-vertical-sections");i.find(".section-content").hide(),i.find(o).show(),i.find(".section-title").attr("aria-selected","false").removeClass("section-title--is-active"),n.parent().attr("aria-selected","true").addClass("section-title--is-active"),i.find("div.chosen-container").css("width","100%"),window.history.pushState("object or string","",o)}))}}))}).call(this,n(1))},218:function(e,t,n){(function(e){e(document).ready((function(e){var t=e("ul.edd-sortable-list");t.length>0&&t.sortable({axis:"y",items:"li",cursor:"move",tolerance:"pointer",containment:"parent",distance:2,opacity:.7,scroll:!0,stop:function(){var t=e.map(e(this).children("li"),(function(t){return e(t).data("key")}));e(this).prev("input.edd-order").val(t)}})}))}).call(this,n(1))},219:function(e,t,n){(function(e){e(document).ready((function(e){e(".edd-ajax-user-search").keyup((function(){var t=e(this).val(),n="";e(this).data("exclude")&&(n=e(this).data("exclude")),e(".edd_user_search_wrap").addClass("loading");var o={action:"edd_search_users",user_name:t,exclude:n};e.ajax({type:"POST",data:o,dataType:"json",url:ajaxurl,success:function(t){e(".edd_user_search_wrap").removeClass("loading"),e(".edd_user_search_results").removeClass("hidden"),e(".edd_user_search_results span").html(""),t.results&&e(t.results).appendTo(".edd_user_search_results span")}})})).blur((function(){t?t=!1:(e(this).removeClass("loading"),e(".edd_user_search_results").addClass("hidden"))})).focus((function(){e(this).keyup()})),e(document.body).on("click.eddSelectUser",".edd_user_search_results span a",(function(t){t.preventDefault();var n=e(this).data("login");e(".edd-ajax-user-search").val(n),e(".edd_user_search_results").addClass("hidden"),e(".edd_user_search_results span").html("")})),e(document.body).on("click.eddCancelUserSearch",".edd_user_search_results a.edd-ajax-user-cancel",(function(t){t.preventDefault(),e(".edd-ajax-user-search").val(""),e(".edd_user_search_results").addClass("hidden"),e(".edd_user_search_results span").html("")}));var t=!1;e(".edd_user_search_results").mousedown((function(){t=!0}))}))}).call(this,n(1))},220:function(e,t,n){(function(e,t){function n(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=t("#edd-advanced-filters");if(!n.hasClass("open"))return!1;!1!==e&&(n.is(e)||n.has(e).length)||o()}function o(){t("#edd-advanced-filters").toggleClass("open")}e(document).ready((function(e){e(".edd-advanced-filters-button").on("click",(function(e){e.preventDefault(),o()})),e(document).on("click",(function(e){n(e.target)})),e(document).on("keydown",(function(e){"Escape"===e.key&&n()}))}))}).call(this,n(1),n(1))},221:function(e,t,n){(function(e){e(document).ready((function(e){(e("body").hasClass("taxonomy-download_category")||e("body").hasClass("taxonomy-download_tag"))&&e(".nav-tab-wrapper, .nav-tab-wrapper + br").detach().insertAfter(".wp-header-end")}))}).call(this,n(1))},222:function(e,t,n){(function(e){e(document).ready((function(e){e(".edd_countries_filter").on("change",(function(){var t=e(this),n={action:"edd_get_shop_states",country:t.val(),nonce:t.data("nonce"),field_name:"edd_regions_filter"};return e.post(ajaxurl,n,(function(t){e("select.edd_regions_filter").find("option:gt(0)").remove(),"nostates"!==t&&e(t).find("option:gt(0)").appendTo("select.edd_regions_filter"),e("select.edd_regions_filter").trigger("chosen:updated")})),!1}))}))}).call(this,n(1))},223:function(e,t,n){(function(e){e(document).ready((function(e){var t=e(".edd-admin-notice-overlay"),n="edd-promo-notice__overlay";t&&(t.wrap('
'),e(document).on("click",".edd-promo-notice__trigger",(function(){e("."+n).css("display","flex").hide().fadeIn()}))),e(".edd-promo-notice").each((function(){var t=e(this);t.on("click",".edd-promo-notice-dismiss",(function(o){e(this).attr("href")||o.preventDefault(),e.ajax({type:"POST",data:{action:"edd_dismiss_promo_notice",notice_id:t.data("id"),nonce:t.data("nonce"),lifespan:t.data("lifespan")},url:ajaxurl,success:function(o){e("."+n).length?(e("."+n).fadeOut(),e(".edd-extension-manager__key-notice").hide()):t.slideUp()}})})),e(document).on("keydown",(function(t){e("."+n).length&&27===t.keyCode&&(e("."+n).fadeOut(),e(".edd-extension-manager__key-notice").hide())}))}))}))}).call(this,n(1))},224:function(e,t){document.addEventListener("alpine:init",(function(){Alpine.store("eddNotifications",{isPanelOpen:!1,notificationsLoaded:!1,numberActiveNotifications:0,activeNotifications:[],inactiveNotifications:[],init:function(){var e=this,t=document.querySelector("#edd-notification-button .edd-number");t&&t.classList.remove("edd-hidden"),document.addEventListener("keydown",(function(t){"Escape"===t.key&&e.closePanel()}));var n=new URLSearchParams(window.location.search);n.has("notifications")&&"true"===n.get("notifications")&&e.openPanel()},openPanel:function(){var e=this,t=document.getElementById("edd-notifications-header");if(this.notificationsLoaded)return this.isPanelOpen=!0,void(t&&setTimeout((function(){t.focus()})));this.isPanelOpen=!0,this.apiRequest("/notifications","GET").then((function(n){e.activeNotifications=n.active,e.inactiveNotifications=n.dismissed,e.notificationsLoaded=!0,t&&t.focus()})).catch((function(e){console.log("Notification error",e)}))},closePanel:function(){if(this.isPanelOpen){this.isPanelOpen=!1;var e=document.getElementById("edd-notification-button");e&&e.focus()}},apiRequest:function(e,t){return fetch(edd_vars.restBase+e,{method:t,credentials:"same-origin",headers:{"Content-Type":"application/json","X-WP-Nonce":edd_vars.restNonce}}).then((function(e){return e.ok?e.text():Promise.reject(e)})).then((function(e){return e?JSON.parse(e):null}))},dismiss:function(e,t){var n=this;if(void 0!==this.activeNotifications[t]){e.target.disabled=!0;var o=this.activeNotifications[t];this.apiRequest("/notifications/"+o.id,"DELETE").then((function(e){n.activeNotifications.splice(t,1),n.numberActiveNotifications=n.activeNotifications.length})).catch((function(e){console.log("Dismiss error",e)}))}}})}))},225:function(e,t,n){"use strict";(function(e){var t=n(4);Object(t.a)((function(){e(".download_page_edd-payment-history .row-actions .delete a").on("click",(function(t){t.preventDefault();var n=e(this).attr("href");e("#edd-single-delete-dialog").dialog({buttons:[{text:edd_vars.cancel_dialog_text,class:"button-secondary",click:function(){e(this).dialog("close")}},{text:edd_vars.confirm_dialog_text,class:"button-primary",click:function(){e(this).dialog("close"),window.location.href=n}}]}),e("#edd-single-delete-dialog").dialog("open")})),e(".download_page_edd-payment-history").on("click","#doaction",(function(t){var n=e("#bulk-action-selector-top").val(),o=e(this).closest("form");"delete"===n&&(t.preventDefault(),e("#edd-bulk-delete-dialog").dialog({buttons:[{text:edd_vars.cancel_dialog_text,class:"button-secondary",click:function(){e(this).dialog("close")}},{text:edd_vars.confirm_dialog_text,class:"button-primary",click:function(){e(this).dialog("close"),o.submit()}}]}),e("#edd-bulk-delete-dialog").dialog("open"))}))}))}).call(this,n(1))},3: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},4:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o}));var o=function(t){e(t)}}).call(this,n(1))},6:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return r}));var o=n(2),i=n.n(o);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function s(e){for(var t=1;tnotices ) ) { + $this->notices = array(); + } + // Parse args $r = wp_parse_args( $args, array( 'id' => '', @@ -59,6 +64,11 @@ class EDD_Notices { 'is_dismissible' => true, ) ); + // Prevent a notice from being added more than once. + if ( ! empty( $r['id'] ) && array_key_exists( $r['id'], $this->notices ) ) { + return; + } + $default_class = 'updated'; // One message as string @@ -93,9 +103,10 @@ class EDD_Notices { } // CSS Classes - $classes = ! empty( $r['class'] ) - ? array( $r['class'] ) - : array( $default_class ); + $classes = array( $default_class ); + if ( ! empty( $r['class'] ) ) { + $classes = explode( ' ', $r['class'] ); + } // Add dismissible class if ( ! empty( $r['is_dismissible'] ) ) { @@ -106,13 +117,8 @@ class EDD_Notices { $message = '
' . $message . '
'; $message = str_replace( "'", "\'", $message ); - // Avoid malformed notices variable - if ( ! is_array( $this->notices ) ) { - $this->notices = array(); - } - // Add notice to notices array - $this->notices[] = $message; + $this->notices[ $r['id'] ] = $message; } /** diff --git a/wp-content/plugins/easy-digital-downloads/includes/admin/discounts/discount-actions.php b/wp-content/plugins/easy-digital-downloads/includes/admin/discounts/discount-actions.php index 797e202b..c00e106a 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/admin/discounts/discount-actions.php +++ b/wp-content/plugins/easy-digital-downloads/includes/admin/discounts/discount-actions.php @@ -48,7 +48,8 @@ function edd_admin_add_discount( $data = array() ) { edd_redirect( add_query_arg( 'edd-message', 'discount_invalid_code' ) ); } - if ( ! is_numeric( $data['amount'] ) ) { + $sanitized_amount = (float) edd_sanitize_amount( $data['amount'] ); + if ( empty( $data['amount'] ) || 0.00 === $sanitized_amount ) { edd_redirect( add_query_arg( 'edd-message', 'discount_invalid_amount' ) ); } @@ -73,6 +74,10 @@ function edd_admin_add_discount( $data = array() ) { $to_add[ $column ] = $value; break; + case 'amount': + $to_add['amount'] = edd_sanitize_amount( $value ); + break; + default: $to_add[ $column ] = is_array( $value ) ? array_map( 'sanitize_text_field', $value ) @@ -180,7 +185,8 @@ function edd_admin_edit_discount( $data = array() ) { wp_die( __( 'Invalid discount', 'easy-digital-downloads' ), __( 'Error', 'easy-digital-downloads' ), array( 'response' => 403 ) ); } - if ( empty( $data['amount'] ) || ! is_numeric( $data['amount'] ) ) { + $sanitized_amount = (float) edd_sanitize_amount( $data['amount'] ); + if ( empty( $data['amount'] ) || 0.00 === $sanitized_amount ) { edd_redirect( add_query_arg( 'edd-message', 'discount_invalid_amount' ) ); } @@ -203,7 +209,11 @@ function edd_admin_edit_discount( $data = array() ) { $to_update['id'] = $value; break; - default : + case 'amount': + $to_update['amount'] = edd_sanitize_amount( $value ); + break; + + default: $to_update[ $column ] = sanitize_text_field( $value ); break; } diff --git a/wp-content/plugins/easy-digital-downloads/includes/admin/downloads/dashboard-columns.php b/wp-content/plugins/easy-digital-downloads/includes/admin/downloads/dashboard-columns.php index 2dbb079f..21d8fd87 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/admin/downloads/dashboard-columns.php +++ b/wp-content/plugins/easy-digital-downloads/includes/admin/downloads/dashboard-columns.php @@ -346,7 +346,11 @@ add_action( 'bulk_edit_custom_box', 'edd_price_field_quick_edit', 10, 2 ); * @return void */ function edd_price_save_quick_edit( $post_id ) { - if ( ! isset( $_POST['post_type']) || 'download' !== $_POST['post_type'] ) { + if ( ! isset( $_REQUEST['_edd_regprice'] ) ) { + return; + } + + if ( ! isset( $_REQUEST['post_type'] ) || 'download' !== $_REQUEST['post_type'] ) { return; } @@ -358,40 +362,6 @@ function edd_price_save_quick_edit( $post_id ) { return $post_id; } - if ( isset( $_REQUEST['_edd_regprice'] ) ) { - update_post_meta( $post_id, 'edd_price', strip_tags( stripslashes( $_REQUEST['_edd_regprice'] ) ) ); - } + update_post_meta( $post_id, 'edd_price', wp_strip_all_tags( stripslashes( $_REQUEST['_edd_regprice'] ) ) ); } add_action( 'save_post', 'edd_price_save_quick_edit' ); - -/** - * Process bulk edit actions via AJAX - * - * @since 1.4.4 - * @return void - */ -function edd_save_bulk_edit() { - - $post_ids = ! empty( $_POST['post_ids'] ) - ? wp_parse_id_list( $_POST['post_ids'] ) - : array(); - - if ( ! empty( $post_ids ) && is_array( $post_ids ) ) { - $price = isset( $_POST['price'] ) - ? strip_tags( stripslashes( $_POST['price'] ) ) - : 0; - - foreach ( $post_ids as $post_id ) { - if ( ! current_user_can( 'edit_post', $post_id ) ) { - continue; - } - - if ( ! empty( $price ) ) { - update_post_meta( $post_id, 'edd_price', edd_sanitize_amount( $price ) ); - } - } - } - - die(); -} -add_action( 'wp_ajax_edd_save_bulk_edit', 'edd_save_bulk_edit' ); diff --git a/wp-content/plugins/easy-digital-downloads/includes/admin/payments/actions.php b/wp-content/plugins/easy-digital-downloads/includes/admin/payments/actions.php index ae98caf7..6d906b51 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/admin/payments/actions.php +++ b/wp-content/plugins/easy-digital-downloads/includes/admin/payments/actions.php @@ -162,15 +162,6 @@ function edd_update_payment_details( $data = array() ) { $previous_customer->remove_payment( $order_id, false ); $customer->attach_payment( $order_id, false ); - // If purchase was completed and not ever refunded, adjust stats of customers - if ( 'revoked' === $new_status || 'complete' === $new_status ) { - $previous_customer->recalculate_stats(); - - if ( ! empty( $customer ) ) { - $customer->recalculate_stats(); - } - } - $order_update_args['customer_id'] = $customer->id; } diff --git a/wp-content/plugins/easy-digital-downloads/includes/admin/payments/class-payments-table.php b/wp-content/plugins/easy-digital-downloads/includes/admin/payments/class-payments-table.php index e1848217..ea768cf0 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/admin/payments/class-payments-table.php +++ b/wp-content/plugins/easy-digital-downloads/includes/admin/payments/class-payments-table.php @@ -978,6 +978,14 @@ class EDD_Payment_History_Table extends List_Table { */ private function parse_search( $search, $args ) { + // Order ID/number. + if ( is_numeric( $search ) ) { + $args['id'] = $search; + $args['order_number'] = $search; + + return $args; + } + // Transaction ID if ( is_string( $search ) && ( false !== strpos( $search, 'txn:' ) ) ) { $args['txn'] = trim( str_replace( 'txn:', '', $search ) ); @@ -999,13 +1007,6 @@ class EDD_Payment_History_Table extends List_Table { return $args; } - // Order ID - if ( is_numeric( $search ) ) { - $args['id'] = $search; - - return $args; - } - // The customer’s name or ID prefixed by customer: if ( ! is_array( $search ) && ( false !== strpos( $search, 'customer:' ) ) ) { $search = trim( str_replace( 'customer:', '', $search ) ); diff --git a/wp-content/plugins/easy-digital-downloads/includes/admin/payments/contextual-help.php b/wp-content/plugins/easy-digital-downloads/includes/admin/payments/contextual-help.php index 1d5b302a..cf4c47b0 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/admin/payments/contextual-help.php +++ b/wp-content/plugins/easy-digital-downloads/includes/admin/payments/contextual-help.php @@ -92,13 +92,13 @@ function edd_payments_contextual_help() { ) ); $screen->add_help_tab( array( - 'id' => 'edd-payments-search', - 'title' => __( 'Search', 'easy-digital-downloads' ), - 'content' => + 'id' => 'edd-payments-search', + 'title' => __( 'Search', 'easy-digital-downloads' ), + 'content' => '

' . __( 'The order history can be searched in several different ways.', 'easy-digital-downloads' ) . '

' . '

' . __( 'You can enter:', 'easy-digital-downloads' ) . '

' . '
    -
  • ' . __( 'The order ID', 'easy-digital-downloads' ) . '
  • +
  • ' . __( 'The specific order ID', 'easy-digital-downloads' ) . '
  • ' . __( 'The 32-character order key', 'easy-digital-downloads' ) . '
  • ' . __( 'The customer\'s email address', 'easy-digital-downloads' ) . '
  • ' . sprintf( diff --git a/wp-content/plugins/easy-digital-downloads/includes/admin/reporting/export/class-batch-export-sales.php b/wp-content/plugins/easy-digital-downloads/includes/admin/reporting/export/class-batch-export-sales.php index 09cbb243..58819bd5 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/admin/reporting/export/class-batch-export-sales.php +++ b/wp-content/plugins/easy-digital-downloads/includes/admin/reporting/export/class-batch-export-sales.php @@ -28,6 +28,14 @@ class EDD_Batch_Sales_Export extends EDD_Batch_Export { */ public $export_type = 'sales'; + /** + * The array of order IDs. + * + * @since 3.1.1.4 + * @var array + */ + private $orders; + /** * Set the CSV columns * @@ -61,20 +69,15 @@ class EDD_Batch_Sales_Export extends EDD_Batch_Export { public function get_data() { $data = array(); - $args = array( - 'number' => 30, - 'offset' => ( $this->step * 30 ) - 30, - 'order' => 'ASC', + $args = array_merge( + $this->get_order_item_args(), + array( + 'number' => 30, + 'offset' => ( $this->step * 30 ) - 30, + 'order' => 'ASC', + ) ); - if ( ! empty( $this->start ) || ! empty( $this->end ) ) { - $args['date_query'] = $this->get_date_query(); - } - - if ( 0 !== $this->download_id ) { - $args['product_id'] = $this->download_id; - } - $items = edd_get_order_items( $args ); foreach ( $items as $item ) { @@ -112,16 +115,7 @@ class EDD_Batch_Sales_Export extends EDD_Batch_Export { * @return int */ public function get_percentage_complete() { - $args = array(); - - if ( ! empty( $this->start ) || ! empty( $this->end ) ) { - $args['date_query'] = $this->get_date_query(); - } - - if ( 0 !== $this->download_id ) { - $args['product_id'] = $this->download_id; - } - + $args = $this->get_order_item_args(); $total = edd_count_order_items( $args ); $percentage = 100; @@ -136,9 +130,52 @@ class EDD_Batch_Sales_Export extends EDD_Batch_Export { return $percentage; } + /** + * Gets the default order item parameters based on the class properties. + * + * @since 3.1.1.4 + * @return array + */ + private function get_order_item_args() { + $args = array(); + if ( ! empty( $this->start ) || ! empty( $this->end ) ) { + $args['date_query'] = $this->get_date_query(); + } + + if ( ! empty( $this->download_id ) ) { + $args['product_id'] = $this->download_id; + } + + if ( ! empty( $this->orders ) ) { + $args['order_id__in'] = $this->orders; + } + + return $args; + } + public function set_properties( $request ) { - $this->start = isset( $request['orders-export-start'] ) ? sanitize_text_field( $request['orders-export-start'] ) : ''; - $this->end = isset( $request['orders-export-end'] ) ? sanitize_text_field( $request['orders-export-end'] ) . ' 23:59:59' : ''; + $this->start = isset( $request['sales-export-start'] ) ? sanitize_text_field( $request['sales-export-start'] ) : ''; + $this->end = isset( $request['sales-export-end'] ) ? sanitize_text_field( $request['sales-export-end'] ) . ' 23:59:59' : ''; $this->download_id = isset( $request['download_id'] ) ? absint( $request['download_id'] ) : 0; + $this->orders = $this->get_orders(); + } + + /** + * Gets the array of complete order IDs for the time period. + * + * @return array + */ + private function get_orders() { + $args = array( + 'fields' => 'ids', + 'type' => 'sale', + 'number' => 999999999, + 'status__in' => edd_get_complete_order_statuses(), + ); + if ( ! empty( $this->start ) || ! empty( $this->end ) ) { + $args['date_query'] = $this->get_date_query(); + } + + return edd_get_orders( $args ); } } diff --git a/wp-content/plugins/easy-digital-downloads/includes/admin/reporting/export/class-batch-export.php b/wp-content/plugins/easy-digital-downloads/includes/admin/reporting/export/class-batch-export.php index 28b2615b..735cda5b 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/admin/reporting/export/class-batch-export.php +++ b/wp-content/plugins/easy-digital-downloads/includes/admin/reporting/export/class-batch-export.php @@ -328,13 +328,23 @@ class EDD_Batch_Export extends EDD_Export { * @return array */ protected function get_date_query() { - return array( - array( - 'after' => $this->start ? date( 'Y-m-d 00:00:00', strtotime( $this->start ) ) : '', - 'before' => $this->end ? date( 'Y-m-d 23:59:59', strtotime( $this->end ) ) : '', - 'inclusive' => true, - ), + $time_zone = edd_get_timezone_id(); + $date_query = array( + 'after' => '', + 'before' => '', + 'inclusive' => true, ); - } + if ( $this->start ) { + $date = edd_get_utc_equivalent_date( EDD()->utils->date( $this->start . '00:00:00', $time_zone, false ) ); + $date_query['after'] = $date->format( 'Y-m-d H:i:s' ); + } + + if ( $this->end ) { + $date = edd_get_utc_equivalent_date( EDD()->utils->date( $this->end . '23:59:59', $time_zone, false ) ); + $date_query['before'] = $date->format( 'Y-m-d H:i:s' ); + } + + return array( $date_query ); + } } diff --git a/wp-content/plugins/easy-digital-downloads/includes/admin/reporting/reports-callbacks.php b/wp-content/plugins/easy-digital-downloads/includes/admin/reporting/reports-callbacks.php index 69271417..af571be6 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/admin/reporting/reports-callbacks.php +++ b/wp-content/plugins/easy-digital-downloads/includes/admin/reporting/reports-callbacks.php @@ -23,37 +23,17 @@ defined( 'ABSPATH' ) || exit; function edd_overview_sales_earnings_chart() { global $wpdb; - $dates = Reports\get_dates_filter( 'objects' ); - $chart_dates = Reports\parse_dates_for_range( null, 'now', false ); - $day_by_day = Reports\get_dates_filter_day_by_day(); - $hour_by_hour = Reports\get_dates_filter_hour_by_hour(); - $column = Reports\get_taxes_excluded_filter() ? '(total - tax)' : 'total'; - $currency = Reports\get_filter_value( 'currencies' ); + $dates = Reports\get_dates_filter( 'objects' ); + $chart_dates = Reports\parse_dates_for_range( null, 'now', false ); + $column = Reports\get_taxes_excluded_filter() ? '(total - tax)' : 'total'; + $currency = Reports\get_filter_value( 'currencies' ); + $period = Reports\get_graph_period(); if ( empty( $currency ) || 'convert' === $currency ) { $column .= ' / rate'; } - $sql_clauses = array( - 'select' => 'DATE_FORMAT(date_created, "%%Y-%%m") AS date', - 'where' => '', - 'groupby' => '', - ); - - // Default to 'monthly'. - $sql_clauses['groupby'] = Reports\get_groupby_date_string( 'MONTH', 'date_created' ); - $sql_clauses['orderby'] = 'MONTH(date_created)'; - - // Now drill down to the smallest unit. - if ( $hour_by_hour ) { - $sql_clauses['groupby'] = Reports\get_groupby_date_string( 'HOUR', 'date_created' ); - $sql_clauses['orderby'] = 'HOUR(date_created)'; - $sql_clauses['select'] = 'DATE_FORMAT(date_created, "%%Y-%%m-%%d %%H:00:00") AS date'; - } elseif ( $day_by_day ) { - $sql_clauses['groupby'] = Reports\get_groupby_date_string( 'DATE', 'date_created' ); - $sql_clauses['orderby'] = 'DATE(date_created)'; - $sql_clauses['select'] = 'DATE_FORMAT(date_created, "%%Y-%%m-%%d") AS date'; - } + $sql_clauses = Reports\get_sql_clauses( $period ); if ( ! empty( $currency ) && array_key_exists( strtoupper( $currency ), edd_get_currencies() ) ) { $sql_clauses['where'] = $wpdb->prepare( " AND currency = %s ", strtoupper( $currency ) ); @@ -86,7 +66,7 @@ function edd_overview_sales_earnings_chart() { $sales_results = $wpdb->get_results( $wpdb->prepare( - "SELECT COUNT(id) AS sales, {$sql_clauses['select']} + "SELECT COUNT(*) AS sales, {$sql_clauses['select']} FROM {$wpdb->edd_orders} edd_o WHERE date_created >= %s AND date_created <= %s AND status IN( {$statuses} ) @@ -122,14 +102,13 @@ function edd_overview_sales_earnings_chart() { $date_of_db_value = EDD()->utils->date( $earnings_result->date ); // Add any sales/earnings that happened during this hour. - if ( $hour_by_hour ) { - $date_of_db_value = edd_get_edd_timezone_equivalent_date_from_utc( $date_of_db_value ); + if ( 'hour' === $period ) { // If the date of this db value matches the date on this line graph/chart, set the y axis value for the chart to the number in the DB result. if ( $date_of_db_value->format( 'Y-m-d H' ) === $date_on_chart->format( 'Y-m-d H' ) ) { $earnings[ $timestamp ][1] += $earnings_result->earnings; } // Add any sales/earnings that happened during this day. - } elseif ( $day_by_day ) { + } elseif ( 'day' === $period ) { // If the date of this db value matches the date on this line graph/chart, set the y axis value for the chart to the number in the DB result. if ( $date_of_db_value->format( 'Y-m-d' ) === $date_on_chart->format( 'Y-m-d' ) ) { $earnings[ $timestamp ][1] += $earnings_result->earnings; @@ -148,14 +127,13 @@ function edd_overview_sales_earnings_chart() { $date_of_db_value = EDD()->utils->date( $sales_result->date ); // Add any sales/earnings that happened during this hour. - if ( $hour_by_hour ) { - $date_of_db_value = edd_get_edd_timezone_equivalent_date_from_utc( $date_of_db_value ); + if ( 'hour' === $period ) { // If the date of this db value matches the date on this line graph/chart, set the y axis value for the chart to the number in the DB result. if ( $date_of_db_value->format( 'Y-m-d H' ) === $date_on_chart->format( 'Y-m-d H' ) ) { $sales[ $timestamp ][1] += $sales_result->sales; } // Add any sales/earnings that happened during this day. - } elseif ( $day_by_day ) { + } elseif ( 'day' === $period ) { // If the date of this db value matches the date on this line graph/chart, set the y axis value for the chart to the number in the DB result. if ( $date_of_db_value->format( 'Y-m-d' ) === $date_on_chart->format( 'Y-m-d' ) ) { $sales[ $timestamp ][1] += $sales_result->sales; @@ -170,9 +148,9 @@ function edd_overview_sales_earnings_chart() { } // Move the chart along to the next hour/day/month to get ready for the next loop. - if ( $hour_by_hour ) { + if ( 'hour' === $period ) { $chart_dates['start']->addHour( 1 ); - } elseif ( $day_by_day ) { + } elseif ( 'day' === $period ) { $chart_dates['start']->addDays( 1 ); } else { $chart_dates['start']->addMonth( 1 ); @@ -194,30 +172,12 @@ function edd_overview_sales_earnings_chart() { function edd_overview_refunds_chart() { global $wpdb; - $dates = Reports\get_dates_filter( 'objects' ); - $chart_dates = Reports\parse_dates_for_range( null, 'now', false ); - $day_by_day = Reports\get_dates_filter_day_by_day(); - $hour_by_hour = Reports\get_dates_filter_hour_by_hour(); - $column = Reports\get_taxes_excluded_filter() ? 'total - tax' : 'total'; - $currency = Reports\get_filter_value( 'currencies' ); - - $sql_clauses = array( - 'select' => 'date_created AS date', - 'where' => '', - ); - - // Default to 'monthly'. - $sql_clauses['groupby'] = Reports\get_groupby_date_string( 'MONTH', 'date_created' ); - $sql_clauses['orderby'] = 'MONTH(date_created)'; - - // Now drill down to the smallest unit. - if ( $hour_by_hour ) { - $sql_clauses['groupby'] = Reports\get_groupby_date_string( 'HOUR', 'date_created' ); - $sql_clauses['orderby'] = 'HOUR(date_created)'; - } elseif ( $day_by_day ) { - $sql_clauses['groupby'] = Reports\get_groupby_date_string( 'DATE', 'date_created' ); - $sql_clauses['orderby'] = 'DATE(date_created)'; - } + $dates = Reports\get_dates_filter( 'objects' ); + $chart_dates = Reports\parse_dates_for_range( null, 'now', false ); + $column = Reports\get_taxes_excluded_filter() ? 'total - tax' : 'total'; + $currency = Reports\get_filter_value( 'currencies' ); + $period = Reports\get_graph_period(); + $sql_clauses = Reports\get_sql_clauses( $period ); if ( empty( $currency ) || 'convert' === $currency ) { $column = sprintf( '(%s) / rate', $column ); @@ -227,7 +187,7 @@ function edd_overview_refunds_chart() { $results = $wpdb->get_results( $wpdb->prepare( - "SELECT COUNT(id) AS number, SUM({$column}) AS amount, {$sql_clauses['select']} + "SELECT COUNT(*) AS number, SUM({$column}) AS amount, {$sql_clauses['select']} FROM {$wpdb->edd_orders} edd_o WHERE status IN (%s, %s) AND date_created >= %s AND date_created <= %s AND type = 'refund' {$sql_clauses['where']} @@ -240,7 +200,7 @@ function edd_overview_refunds_chart() { ) ); - $number = array(); + $number = array(); $amount = array(); // Initialise all arrays with timestamps and set values to 0. @@ -259,15 +219,14 @@ function edd_overview_refunds_chart() { $date_of_db_value = EDD()->utils->date( $result->date ); // Add any refunds that happened during this hour. - if ( $hour_by_hour ) { - $date_of_db_value = edd_get_edd_timezone_equivalent_date_from_utc( $date_of_db_value ); + if ( 'hour' === $period ) { // If the date of this db value matches the date on this line graph/chart, set the y axis value for the chart to the number in the DB result. if ( $date_of_db_value->format( 'Y-m-d H' ) === $date_on_chart->format( 'Y-m-d H' ) ) { $number[ $timestamp ][1] += $result->number; $amount[ $timestamp ][1] += abs( $result->amount ); } // Add any refunds that happened during this day. - } elseif ( $day_by_day ) { + } elseif ( 'day' === $period ) { // If the date of this db value matches the date on this line graph/chart, set the y axis value for the chart to the number in the DB result. if ( $date_of_db_value->format( 'Y-m-d' ) === $date_on_chart->format( 'Y-m-d' ) ) { $number[ $timestamp ][1] += $result->number; @@ -284,9 +243,9 @@ function edd_overview_refunds_chart() { } // Move the chart along to the next hour/day/month to get ready for the next loop. - if ( $hour_by_hour ) { + if ( 'hour' === $period ) { $chart_dates['start']->addHour( 1 ); - } elseif ( $day_by_day ) { + } elseif ( 'day' === $period ) { $chart_dates['start']->addDays( 1 ); } else { $chart_dates['start']->addMonth( 1 ); @@ -297,5 +256,4 @@ function edd_overview_refunds_chart() { 'number' => array_values( $number ), 'amount' => array_values( $amount ), ); - } diff --git a/wp-content/plugins/easy-digital-downloads/includes/admin/reporting/reports.php b/wp-content/plugins/easy-digital-downloads/includes/admin/reporting/reports.php index 593e494d..f5df0017 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/admin/reporting/reports.php +++ b/wp-content/plugins/easy-digital-downloads/includes/admin/reporting/reports.php @@ -735,45 +735,17 @@ function edd_register_downloads_report( $reports ) { 'data_callback' => function () use ( $download_data, $currency ) { global $wpdb; - $dates = Reports\get_dates_filter( 'objects' ); - $day_by_day = Reports\get_dates_filter_day_by_day(); - $hour_by_hour = Reports\get_dates_filter_hour_by_hour(); - $chart_dates = Reports\parse_dates_for_range( null, 'now', false ); - - $sql_clauses = array( - 'select' => 'edd_oi.date_created AS date', - 'where' => '', - 'groupby' => '', - ); + $dates = Reports\get_dates_filter( 'objects' ); + $chart_dates = Reports\parse_dates_for_range( null, 'now', false ); + $period = Reports\get_graph_period(); + $sql_clauses = Reports\get_sql_clauses( $period, 'edd_oi.date_created' ); $union_clauses = array( 'select' => 'date', - 'where' => '', - 'groupby' => '', + 'groupby' => 'date', + 'orderby' => 'date', ); - // Default to 'monthly'. - $sql_clauses['groupby'] = Reports\get_groupby_date_string( 'MONTH', 'edd_oi.date_created' ); - $sql_clauses['orderby'] = 'MONTH(edd_oi.date_created)'; - - $union_clauses['groupby'] = Reports\get_groupby_date_string( 'MONTH', 'date' ); - $union_clauses['orderby'] = 'MONTH(date)'; - - // Now drill down to the smallest unit. - if ( $hour_by_hour ) { - $sql_clauses['groupby'] = Reports\get_groupby_date_string( 'HOUR', 'edd_oi.date_created' ); - $sql_clauses['orderby'] = 'HOUR(edd_oi.date_created)'; - - $union_clauses['groupby'] = Reports\get_groupby_date_string( 'HOUR', 'date' ); - $union_clauses['orderby'] = 'HOUR(date)'; - } elseif ( $day_by_day ) { - $sql_clauses['groupby'] = Reports\get_groupby_date_string( 'DATE', 'edd_oi.date_created' ); - $sql_clauses['orderby'] = 'DATE(edd_oi.date_created)'; - - $union_clauses['groupby'] = Reports\get_groupby_date_string( 'DATE', 'date' ); - $union_clauses['orderby'] = 'DATE(date)'; - } - $price_id = isset( $download_data['price_id'] ) && is_numeric( $download_data['price_id'] ) ? sprintf( 'AND price_id = %d', absint( $download_data['price_id'] ) ) : ''; @@ -782,14 +754,12 @@ function edd_register_downloads_report( $reports ) { $earnings_status_string = implode( ', ', array_fill( 0, count( $earnings_statuses ), '%s' ) ); $order_item_earnings = $wpdb->prepare( - "SELECT SUM(edd_oi.total / edd_oi.rate) AS earnings, %1s + "SELECT SUM(edd_oi.total / edd_oi.rate) AS earnings, {$sql_clauses['select']} FROM {$wpdb->edd_order_items} edd_oi INNER JOIN {$wpdb->edd_orders} edd_o ON edd_oi.order_id = edd_o.id - WHERE edd_oi.product_id = %d %1s AND edd_oi.date_created >= %s AND edd_oi.date_created <= %s AND edd_o.status IN ({$earnings_status_string}) + WHERE edd_oi.product_id = %d {$price_id} AND edd_oi.date_created >= %s AND edd_oi.date_created <= %s AND edd_o.status IN ({$earnings_status_string}) GROUP BY {$sql_clauses['groupby']}", - $sql_clauses['select'], $download_data['download_id'], - $price_id, $dates['start']->copy()->format( 'mysql' ), $dates['end']->copy()->format( 'mysql' ), ...$earnings_statuses @@ -803,20 +773,18 @@ function edd_register_downloads_report( $reports ) { $adjustments_status_string = implode( ', ', array_fill( 0, count( $adjustments_statuses ), '%s' ) ); $order_adjustments = $wpdb->prepare( - "SELECT SUM(edd_oa.total / edd_oa.rate) AS earnings, %1s + "SELECT SUM(edd_oa.total / edd_oa.rate) AS earnings, {$sql_clauses['select']} FROM {$wpdb->edd_order_adjustments} edd_oa INNER JOIN {$wpdb->edd_order_items} edd_oi ON edd_oi.id = edd_oa.object_id AND edd_oi.product_id = %d - %1s + {$price_id} AND edd_oi.date_created >= %s AND edd_oi.date_created <= %s INNER JOIN {$wpdb->edd_orders} edd_o ON edd_oi.order_id = edd_o.id AND edd_o.type = 'sale' AND edd_o.status IN ({$adjustments_status_string}) WHERE edd_oa.object_type = 'order_item' AND edd_oa.type != 'discount' GROUP BY {$sql_clauses['groupby']}", - $sql_clauses['select'], $download_data['download_id'], - $price_id, $dates['start']->copy()->format( 'mysql' ), $dates['end']->copy()->format( 'mysql' ), ...$adjustments_statuses @@ -865,16 +833,16 @@ function edd_register_downloads_report( $reports ) { // Loop through each date there were sales/earnings, which we queried from the database. foreach ( $earnings_results as $earnings_result ) { - $date_of_db_value = edd_get_edd_timezone_equivalent_date_from_utc( EDD()->utils->date( $earnings_result->date ) ); + $date_of_db_value = EDD()->utils->date( $earnings_result->date ); // Add any sales/earnings that happened during this hour. - if ( $hour_by_hour ) { + if ( 'hour' === $period ) { // If the date of this db value matches the date on this line graph/chart, set the y axis value for the chart to the number in the DB result. if ( $date_of_db_value->format( 'Y-m-d H' ) === $date_on_chart->format( 'Y-m-d H' ) ) { $earnings[ $timestamp ][1] += $earnings_result->earnings; } // Add any sales/earnings that happened during this day. - } elseif ( $day_by_day ) { + } elseif ( 'day' === $period ) { // If the date of this db value matches the date on this line graph/chart, set the y axis value for the chart to the number in the DB result. if ( $date_of_db_value->format( 'Y-m-d' ) === $date_on_chart->format( 'Y-m-d' ) ) { $earnings[ $timestamp ][1] += $earnings_result->earnings; @@ -890,16 +858,16 @@ function edd_register_downloads_report( $reports ) { // Loop through each date there were sales/earnings, which we queried from the database. foreach ( $sales_results as $sales_result ) { - $date_of_db_value = edd_get_edd_timezone_equivalent_date_from_utc( EDD()->utils->date( $sales_result->date ) ); + $date_of_db_value = EDD()->utils->date( $sales_result->date ); // Add any sales/earnings that happened during this hour. - if ( $hour_by_hour ) { + if ( 'hour' === $period ) { // If the date of this db value matches the date on this line graph/chart, set the y axis value for the chart to the number in the DB result. if ( $date_of_db_value->format( 'Y-m-d H' ) === $date_on_chart->format( 'Y-m-d H' ) ) { $sales[ $timestamp ][1] += $sales_result->sales; } // Add any sales/earnings that happened during this day. - } elseif ( $day_by_day ) { + } elseif ( 'day' === $period ) { // If the date of this db value matches the date on this line graph/chart, set the y axis value for the chart to the number in the DB result. if ( $date_of_db_value->format( 'Y-m-d' ) === $date_on_chart->format( 'Y-m-d' ) ) { $sales[ $timestamp ][1] += $sales_result->sales; @@ -914,9 +882,9 @@ function edd_register_downloads_report( $reports ) { } // Move the chart along to the next hour/day/month to get ready for the next loop. - if ( $hour_by_hour ) { + if ( 'hour' === $period ) { $chart_dates['start']->addHour( 1 ); - } elseif ( $day_by_day ) { + } elseif ( 'day' === $period ) { $chart_dates['start']->addDays( 1 ); } else { $chart_dates['start']->addMonth( 1 ); @@ -1562,27 +1530,9 @@ function edd_register_payment_gateways_report( $reports ) { global $wpdb; $dates = Reports\get_dates_filter( 'objects' ); - $day_by_day = Reports\get_dates_filter_day_by_day(); - $hour_by_hour = Reports\get_dates_filter_hour_by_hour(); $chart_dates = Reports\parse_dates_for_range( null, 'now', false ); - - $sql_clauses = array( - 'select' => 'date_created AS date', - 'where' => '', - ); - - // Default to 'monthly'. - $sql_clauses['groupby'] = Reports\get_groupby_date_string( 'MONTH', 'date_created' ); - $sql_clauses['orderby'] = 'MONTH(date_created)'; - - // Now drill down to the smallest unit. - if ( $hour_by_hour ) { - $sql_clauses['groupby'] = Reports\get_groupby_date_string( 'HOUR', 'date_created' ); - $sql_clauses['orderby'] = 'HOUR(date_created)'; - } elseif ( $day_by_day ) { - $sql_clauses['groupby'] = Reports\get_groupby_date_string( 'DATE', 'date_created' ); - $sql_clauses['orderby'] = 'DATE(date_created)'; - } + $period = Reports\get_graph_period(); + $sql_clauses = Reports\get_sql_clauses( $period, 'date_created' ); $gateway = Reports\get_filter_value( 'gateways' ); $column = $exclude_taxes @@ -1605,7 +1555,7 @@ function edd_register_payment_gateways_report( $reports ) { ORDER BY {$sql_clauses['orderby']} ASC", esc_sql( $gateway ), $dates['start']->copy()->format( 'mysql' ), $dates['end']->copy()->format( 'mysql' ) ) ); - $sales = array(); + $sales = array(); $earnings = array(); /** @@ -1625,17 +1575,17 @@ function edd_register_payment_gateways_report( $reports ) { // Loop through each date there were sales/earnings, which we queried from the database. foreach ( $results as $result ) { - $date_of_db_value = edd_get_edd_timezone_equivalent_date_from_utc( EDD()->utils->date( $result->date ) ); + $date_of_db_value = EDD()->utils->date( $result->date ); // Add any sales/earnings that happened during this hour. - if ( $hour_by_hour ) { + if ( 'hour' === $period ) { // If the date of this db value matches the date on this line graph/chart, set the y axis value for the chart to the number in the DB result. if ( $date_of_db_value->format( 'Y-m-d H' ) === $date_on_chart->format( 'Y-m-d H' ) ) { $sales[ $timestamp ][1] += $result->sales; $earnings[ $timestamp ][1] += $result->earnings; } // Add any sales/earnings that happened during this day. - } elseif ( $day_by_day ) { + } elseif ( 'day' === $period ) { // If the date of this db value matches the date on this line graph/chart, set the y axis value for the chart to the number in the DB result. if ( $date_of_db_value->format( 'Y-m-d' ) === $date_on_chart->format( 'Y-m-d' ) ) { $sales[ $timestamp ][1] += $result->sales; @@ -1652,9 +1602,9 @@ function edd_register_payment_gateways_report( $reports ) { } // Move the chart along to the next hour/day/month to get ready for the next loop. - if ( $hour_by_hour ) { + if ( 'hour' === $period ) { $chart_dates['start']->addHour( 1 ); - } elseif ( $day_by_day ) { + } elseif ( 'day' === $period ) { $chart_dates['start']->addDays( 1 ); } else { $chart_dates['start']->addMonth( 1 ); @@ -2060,29 +2010,10 @@ function edd_register_file_downloads_report( $reports ) { 'data_callback' => function () use ( $filter, $download_data ) { global $wpdb; - $dates = Reports\get_dates_filter( 'objects' ); - $chart_dates = Reports\parse_dates_for_range( null, 'now', false ); - $day_by_day = Reports\get_dates_filter_day_by_day(); - $hour_by_hour = Reports\get_dates_filter_hour_by_hour(); - - $sql_clauses = array( - 'select' => 'date_created AS date', - 'where' => '', - 'groupby' => '', - ); - - // Default to 'monthly'. - $sql_clauses['groupby'] = Reports\get_groupby_date_string( 'MONTH', 'date_created' ); - $sql_clauses['orderby'] = 'MONTH(date_created)'; - - // Now drill down to the smallest unit. - if ( $hour_by_hour ) { - $sql_clauses['groupby'] = Reports\get_groupby_date_string( 'HOUR', 'date_created' ); - $sql_clauses['orderby'] = 'HOUR(date_created)'; - } elseif ( $day_by_day ) { - $sql_clauses['groupby'] = Reports\get_groupby_date_string( 'DATE', 'date_created' ); - $sql_clauses['orderby'] = 'DATE(date_created)'; - } + $dates = Reports\get_dates_filter( 'objects' ); + $chart_dates = Reports\parse_dates_for_range( null, 'now', false ); + $period = Reports\get_graph_period(); + $sql_clauses = Reports\get_sql_clauses( $period ); $product_id = ''; $price_id = ''; @@ -2114,16 +2045,16 @@ function edd_register_file_downloads_report( $reports ) { $file_downloads[ $timestamp ][1] = 0; foreach ( $results as $result ) { - $date_of_db_value = edd_get_edd_timezone_equivalent_date_from_utc( EDD()->utils->date( $result->date ) ); + $date_of_db_value = EDD()->utils->date( $result->date ); // Add any file downloads that happened during this hour. - if ( $hour_by_hour ) { + if ( 'hour' === $period ) { // If the date of this db value matches the date on this line graph/chart, set the y axis value for the chart to the number in the DB result. if ( $date_of_db_value->format( 'Y-m-d H' ) === $date_on_chart->format( 'Y-m-d H' ) ) { $file_downloads[ $timestamp ][1] += absint( $result->total ); } // Add any file downloads that happened during this day. - } elseif ( $day_by_day ) { + } elseif ( 'day' === $period ) { // If the date of this db value matches the date on this line graph/chart, set the y axis value for the chart to the number in the DB result. if ( $date_of_db_value->format( 'Y-m-d' ) === $date_on_chart->format( 'Y-m-d' ) ) { $file_downloads[ $timestamp ][1] += absint( $result->total ); @@ -2138,9 +2069,9 @@ function edd_register_file_downloads_report( $reports ) { } // Move the chart along to the next hour/day/month to get ready for the next loop. - if ( $hour_by_hour ) { + if ( 'hour' === $period ) { $chart_dates['start']->addHour( 1 ); - } elseif ( $day_by_day ) { + } elseif ( 'day' === $period ) { $chart_dates['start']->addDays( 1 ); } else { $chart_dates['start']->addMonth( 1 ); @@ -2400,28 +2331,9 @@ function edd_register_discounts_report( $reports ) { global $wpdb; $dates = Reports\get_dates_filter( 'objects' ); - $day_by_day = Reports\get_dates_filter_day_by_day(); - $hour_by_hour = Reports\get_dates_filter_hour_by_hour(); $chart_dates = Reports\parse_dates_for_range( null, 'now', false ); - - - $sql_clauses = array( - 'select' => 'edd_oa.date_created AS date', - 'where' => '', - ); - - // Default to 'monthly'. - $sql_clauses['groupby'] = Reports\get_groupby_date_string( 'MONTH', 'edd_oa.date_created' ); - $sql_clauses['orderby'] = 'MONTH(edd_oa.date_created)'; - - // Now drill down to the smallest unit. - if ( $hour_by_hour ) { - $sql_clauses['groupby'] = Reports\get_groupby_date_string( 'HOUR', 'edd_oa.date_created' ); - $sql_clauses['orderby'] = 'HOUR(edd_oa.date_created)'; - } elseif ( $day_by_day ) { - $sql_clauses['groupby'] = Reports\get_groupby_date_string( 'DATE', 'edd_oa.date_created' ); - $sql_clauses['orderby'] = 'DATE(edd_oa.date_created)'; - } + $period = Reports\get_graph_period(); + $sql_clauses = Reports\get_sql_clauses( $period, 'edd_oa.date_created' ); $discount_code = ! empty( $d->code ) ? $wpdb->prepare( 'AND type = %s AND description = %s', 'discount', esc_sql( $d->code ) ) @@ -2447,16 +2359,16 @@ function edd_register_discounts_report( $reports ) { // Loop through each date in which there were discount codes used, which we queried from the database. foreach ( $results as $result ) { - $date_of_db_value = edd_get_edd_timezone_equivalent_date_from_utc( EDD()->utils->date( $result->date ) ); + $date_of_db_value = EDD()->utils->date( $result->date ); // Add any discount codes that were used during this hour. - if ( $hour_by_hour ) { + if ( 'hour' === $period ) { // If the date of this db value matches the date on this line graph/chart, set the y axis value for the chart to the number in the DB result. if ( $date_of_db_value->format( 'Y-m-d H' ) === $date_on_chart->format( 'Y-m-d H' ) ) { $discount_usage[ $timestamp ][1] += abs( $result->total ); } // Add any discount codes that were used during this day. - } elseif ( $day_by_day ) { + } elseif ( 'day' === $period ) { // If the date of this db value matches the date on this line graph/chart, set the y axis value for the chart to the number in the DB result. if ( $date_of_db_value->format( 'Y-m-d' ) === $date_on_chart->format( 'Y-m-d' ) ) { $discount_usage[ $timestamp ][1] += abs( $result->total ); @@ -2471,9 +2383,9 @@ function edd_register_discounts_report( $reports ) { } // Move the chart along to the next hour/day/month to get ready for the next loop. - if ( $hour_by_hour ) { + if ( 'hour' === $period ) { $chart_dates['start']->addHour( 1 ); - } elseif ( $day_by_day ) { + } elseif ( 'day' === $period ) { $chart_dates['start']->addDays( 1 ); } else { $chart_dates['start']->addMonth( 1 ); @@ -2645,23 +2557,9 @@ function edd_register_customer_report( $reports ) { global $wpdb; $dates = Reports\get_dates_filter( 'objects' ); - $day_by_day = Reports\get_dates_filter_day_by_day(); - $hour_by_hour = Reports\get_dates_filter_hour_by_hour(); $chart_dates = Reports\parse_dates_for_range( null, 'now', false ); - - $sql_clauses = array( - 'select' => 'date_created AS date', - 'groupby' => Reports\get_groupby_date_string( 'MONTH', 'date_created' ), - 'orderby' => 'MONTH(date_created)', - ); - - if ( $hour_by_hour ) { - $sql_clauses['groupby'] = Reports\get_groupby_date_string( 'HOUR', 'date_created' ); - $sql_clauses['orderby'] = 'HOUR(date_created)'; - } elseif ( $day_by_day ) { - $sql_clauses['groupby'] = Reports\get_groupby_date_string( 'DATE', 'date_created' ); - $sql_clauses['orderby'] = 'DATE(date_created)'; - } + $period = Reports\get_graph_period(); + $sql_clauses = Reports\get_sql_clauses( $period ); $results = $wpdb->get_results( $wpdb->prepare( "SELECT COUNT(c.id) AS total, {$sql_clauses['select']} @@ -2684,16 +2582,16 @@ function edd_register_customer_report( $reports ) { $customers[ $timestamp ][1] = 0; foreach ( $results as $result ) { - $date_of_db_value = edd_get_edd_timezone_equivalent_date_from_utc( EDD()->utils->date( $result->date ) ); + $date_of_db_value = EDD()->utils->date( $result->date ); // Add any new customers that were created during this hour. - if ( $hour_by_hour ) { + if ( 'hour' === $period ) { // If the date of this db value matches the date on this line graph/chart, set the y axis value for the chart to the number in the DB result. if ( $date_of_db_value->format( 'Y-m-d H' ) === $date_on_chart->format( 'Y-m-d H' ) ) { $customers[ $timestamp ][1] += $result->total; } // Add any new customers that were created during this day. - } elseif ( $day_by_day ) { + } elseif ( 'day' === $period ) { // If the date of this db value matches the date on this line graph/chart, set the y axis value for the chart to the number in the DB result. if ( $date_of_db_value->format( 'Y-m-d' ) === $date_on_chart->format( 'Y-m-d' ) ) { $customers[ $timestamp ][1] += $result->total; @@ -2708,9 +2606,9 @@ function edd_register_customer_report( $reports ) { } // Move the chart along to the next hour/day/month to get ready for the next loop. - if ( $hour_by_hour ) { + if ( 'hour' === $period ) { $chart_dates['start']->addHour( 1 ); - } elseif ( $day_by_day ) { + } elseif ( 'day' === $period ) { $chart_dates['start']->addDays( 1 ); } else { $chart_dates['start']->addMonth( 1 ); diff --git a/wp-content/plugins/easy-digital-downloads/includes/admin/settings/display-settings.php b/wp-content/plugins/easy-digital-downloads/includes/admin/settings/display-settings.php index 3e7b7d8e..c88c03ca 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/admin/settings/display-settings.php +++ b/wp-content/plugins/easy-digital-downloads/includes/admin/settings/display-settings.php @@ -399,3 +399,43 @@ function edd_tax_settings_display_tax_disabled_notice() { } add_action( 'edd_settings_tab_top_taxes_rates', 'edd_tax_settings_display_tax_disabled_notice', 10 ); + +/** + * Display help text at the top of the Licenses tab. + * + * @since 3.1.1.4 + * @return void + */ +function edd_license_settings_help_text() { + ?> +
    +

    + +

    + highest_license_key ) : + ?> +

    + 'edd-settings', + 'tab' => 'general', + ) + ); + printf( + wp_kses_post( + /* translators: 1. opening anchor tag; 2. closing anchor tag */ + __( 'Have a pass? You\'re ready to set up EDD (Pro). %1$sActivate Your Pass%2$s' ) + ), + '', + '' + ); + ?> +

    + +
    + array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-server-side-render'), 'version' => 'd12364cb3d89217da0af'); + array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-server-side-render'), 'version' => '75153cfac5e884f38a28'); 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 223ca474..aed03088 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 .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 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} 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 9030a515..2681fc96 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={806:(e,o,t)=>{const n=window.wp.blocks,r=window.wp.element,l=window.wp.i18n,a=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=[];e&&t.push({value:"",label:(0,l.__)("Select a Download","easy-digital-downloads")}),o&&t.push({value:o,label:wp.data.select("core/editor").getCurrentPostAttribute("title")});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},h=JSON.parse('{"u2":"edd/buy-button","qv":"button"}'),u={button:(0,r.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,r.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,r.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,r.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,r.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,r.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,r.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,r.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,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"edd-blocks__icon-downloads"},(0,r.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,r.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,r.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,r.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,r.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,r.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,r.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,r.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,r.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,r.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,r.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"})),links:(0,r.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,r.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"}))};var v;(0,n.registerBlockType)(h.u2,{icon:(v=h.qv,u[v]),edit:function(e){let{attributes:o,setAttributes:t}=e;const n=e=>o=>t({[e]:o}),s=wp.data.select("core/editor").getCurrentPostType();if(!o.download_id&&"download"!==s)return(0,r.createElement)("div",(0,c.useBlockProps)(),(0,r.createElement)(a.Placeholder,{icon:"download",label:(0,l.__)("Select a Download:","easy-digital-downloads")},(0,r.createElement)(a.SelectControl,{label:(0,l.__)("Download ID","easy-digital-downloads"),options:w(!0),onChange:n("download_id")})));let i=!1;return o.download_id||"download"!==s||(i=wp.data.select("core/editor").getCurrentPostId(),o.download_id=i),(0,r.createElement)("div",(0,c.useBlockProps)(),(0,r.createElement)(c.InspectorControls,null,(0,r.createElement)(a.PanelBody,{title:(0,l.__)("Settings","easy-digital-downloads")},(0,r.createElement)(a.SelectControl,{label:(0,l.__)("Download ID","easy-digital-downloads"),value:o.download_id,options:w(!1,i),onChange:n("download_id")}),(0,r.createElement)(a.ToggleControl,{label:(0,l.__)("Show Price","easy-digital-downloads"),checked:!!o.show_price,onChange:n("show_price")}))),(0,r.createElement)(a.Disabled,null,(0,r.createElement)(d(),{block:"edd/buy-button",attributes:{...o}})))}})}},t={};function n(e){var r=t[e];if(void 0!==r)return r.exports;var l=t[e]={exports:{}};return o[e](l,l.exports,n),l.exports}n.m=o,e=[],n.O=(o,t,r,l)=>{if(!t){var a=1/0;for(i=0;i=l)&&Object.keys(n.O).every((e=>n.O[e](t[d])))?t.splice(d--,1):(s=!1,l0&&e[i-1][2]>l;i--)e[i]=e[i-1];e[i]=[t,r,l]},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 r,l,a=t[0],s=t[1],d=t[2],c=0;if(a.some((o=>0!==e[o]))){for(r in s)n.o(s,r)&&(n.m[r]=s[r]);if(d)var i=d(n)}for(o&&o(t);cn(806)));r=n.O(r)})(); \ No newline at end of file +(()=>{"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 diff --git a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/cart/index.asset.php b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/cart/index.asset.php index a48d88fb..f3298dfd 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/cart/index.asset.php +++ b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/cart/index.asset.php @@ -1 +1 @@ - array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-server-side-render'), 'version' => '44a7f6fcddb3d7a45761'); + array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-server-side-render'), 'version' => 'cf21706935ed810cf190'); diff --git a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/cart/index.js b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/cart/index.js index e6745a4d..8bde300d 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/cart/index.js +++ b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/cart/index.js @@ -1 +1 @@ -(()=>{"use strict";var e,o={25:(e,o,t)=>{const n=window.wp.blocks,r=window.wp.element,l=window.wp.i18n,a=window.wp.components,s=window.wp.serverSideRender;var i=t.n(s);const c=window.wp.blockEditor,d={edd_blocks_is_block_editor:EDDBlocks.current_user},h=JSON.parse('{"u2":"edd/cart","qv":"cart"}'),m={button:(0,r.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,r.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,r.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,r.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,r.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,r.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,r.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,r.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,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"edd-blocks__icon-downloads"},(0,r.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,r.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,r.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,r.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,r.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,r.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,r.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,r.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,r.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,r.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,r.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"})),links:(0,r.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,r.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"}))};var w;(0,n.registerBlockType)(h.u2,{icon:(w=h.qv,m[w]),edit:function(e){let{attributes:o,setAttributes:t}=e;const n=e=>o=>t({[e]:o});return(0,r.createElement)("div",(0,c.useBlockProps)(),(0,r.createElement)(c.InspectorControls,null,(0,r.createElement)(a.PanelBody,{title:(0,l.__)("Settings","easy-digital-downloads")},(0,r.createElement)(a.ToggleControl,{label:(0,l.__)("Mini Cart","easy-digital-downloads"),checked:!!o.mini,onChange:n("mini")}),!o.mini&&(0,r.createElement)(a.TextControl,{label:(0,l.__)("Title","easy-digital-downloads"),value:o.title,onChange:n("title")}),(0,r.createElement)(a.ToggleControl,{label:(0,l.__)("Hide When Empty","easy-digital-downloads"),checked:!!o.hide_empty,onChange:n("hide_empty")}),(0,r.createElement)(a.ToggleControl,{label:(0,l.__)("Hide on Checkout","easy-digital-downloads"),checked:!!o.hide_on_checkout,onChange:n("hide_on_checkout")}),o.mini&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(a.ToggleControl,{label:(0,l.__)("Link Cart to Checkout","easy-digital-downloads"),checked:!!o.link,onChange:n("link")}),(0,r.createElement)(a.ToggleControl,{label:(0,l.__)("Show Number of Items in Cart","easy-digital-downloads"),checked:!!o.show_quantity,onChange:n("show_quantity")}),(0,r.createElement)(a.ToggleControl,{label:(0,l.__)("Show Cart Total","easy-digital-downloads"),checked:!!o.show_total,onChange:n("show_total")})))),(0,r.createElement)(a.Disabled,null,(0,r.createElement)(i(),{block:"edd/cart",attributes:{...o},urlQueryArgs:d})))}})}},t={};function n(e){var r=t[e];if(void 0!==r)return r.exports;var l=t[e]={exports:{}};return o[e](l,l.exports,n),l.exports}n.m=o,e=[],n.O=(o,t,r,l)=>{if(!t){var a=1/0;for(d=0;d=l)&&Object.keys(n.O).every((e=>n.O[e](t[i])))?t.splice(i--,1):(s=!1,l0&&e[d-1][2]>l;d--)e[d]=e[d-1];e[d]=[t,r,l]},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={16:0,388:0};n.O.j=o=>0===e[o];var o=(o,t)=>{var r,l,a=t[0],s=t[1],i=t[2],c=0;if(a.some((o=>0!==e[o]))){for(r in s)n.o(s,r)&&(n.m[r]=s[r]);if(i)var d=i(n)}for(o&&o(t);cn(25)));r=n.O(r)})(); \ No newline at end of file +(()=>{"use strict";var e,o={25:(e,o,t)=>{const n=window.wp.blocks,r=window.wp.element,l=window.wp.i18n,a=window.wp.components,s=window.wp.serverSideRender;var i=t.n(s);const c=window.wp.blockEditor,d={edd_blocks_is_block_editor:EDDBlocks.current_user},h=JSON.parse('{"u2":"edd/cart","qv":"cart"}'),m={button:(0,r.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,r.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,r.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,r.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,r.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,r.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,r.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,r.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,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"edd-blocks__icon-downloads"},(0,r.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,r.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,r.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,r.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,r.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,r.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,r.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,r.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,r.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,r.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,r.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,r.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,r.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,r.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,r.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 w;(0,n.registerBlockType)(h.u2,{icon:(w=h.qv,m[w]),edit:function(e){let{attributes:o,setAttributes:t}=e;const n=e=>o=>t({[e]:o});return(0,r.createElement)("div",(0,c.useBlockProps)(),(0,r.createElement)(c.InspectorControls,null,(0,r.createElement)(a.PanelBody,{title:(0,l.__)("Settings","easy-digital-downloads")},(0,r.createElement)(a.ToggleControl,{label:(0,l.__)("Mini Cart","easy-digital-downloads"),checked:!!o.mini,onChange:n("mini")}),!o.mini&&(0,r.createElement)(a.TextControl,{label:(0,l.__)("Title","easy-digital-downloads"),value:o.title,onChange:n("title")}),(0,r.createElement)(a.ToggleControl,{label:(0,l.__)("Hide When Empty","easy-digital-downloads"),checked:!!o.hide_empty,onChange:n("hide_empty")}),(0,r.createElement)(a.ToggleControl,{label:(0,l.__)("Hide on Checkout","easy-digital-downloads"),checked:!!o.hide_on_checkout,onChange:n("hide_on_checkout")}),o.mini&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(a.ToggleControl,{label:(0,l.__)("Link Cart to Checkout","easy-digital-downloads"),checked:!!o.link,onChange:n("link")}),(0,r.createElement)(a.ToggleControl,{label:(0,l.__)("Show Number of Items in Cart","easy-digital-downloads"),checked:!!o.show_quantity,onChange:n("show_quantity")}),(0,r.createElement)(a.ToggleControl,{label:(0,l.__)("Show Cart Total","easy-digital-downloads"),checked:!!o.show_total,onChange:n("show_total")})))),(0,r.createElement)(a.Disabled,null,(0,r.createElement)(i(),{block:"edd/cart",attributes:{...o},urlQueryArgs:d})))}})}},t={};function n(e){var r=t[e];if(void 0!==r)return r.exports;var l=t[e]={exports:{}};return o[e](l,l.exports,n),l.exports}n.m=o,e=[],n.O=(o,t,r,l)=>{if(!t){var a=1/0;for(d=0;d=l)&&Object.keys(n.O).every((e=>n.O[e](t[i])))?t.splice(i--,1):(s=!1,l0&&e[d-1][2]>l;d--)e[d]=e[d-1];e[d]=[t,r,l]},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={16:0,388:0};n.O.j=o=>0===e[o];var o=(o,t)=>{var r,l,a=t[0],s=t[1],i=t[2],c=0;if(a.some((o=>0!==e[o]))){for(r in s)n.o(s,r)&&(n.m[r]=s[r]);if(i)var d=i(n)}for(o&&o(t);cn(25)));r=n.O(r)})(); \ No newline at end of file diff --git a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/checkout/index.asset.php b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/checkout/index.asset.php index 53aa6485..e75d1063 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/checkout/index.asset.php +++ b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/checkout/index.asset.php @@ -1 +1 @@ - array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-server-side-render'), 'version' => 'f7eb0560b580188ab6f6'); + array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-server-side-render'), 'version' => 'a4b81968f6c606c084d6'); diff --git a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/checkout/index.js b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/checkout/index.js index 38a4e200..e9c6f06e 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/checkout/index.js +++ b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/checkout/index.js @@ -1 +1 @@ -(()=>{"use strict";var e,o={760:(e,o,t)=>{const r=window.wp.blocks,n=window.wp.element,a=window.wp.i18n,s=window.wp.components,l=window.wp.serverSideRender;var c=t.n(l);const i=window.wp.blockEditor,d={edd_blocks_is_block_editor:EDDBlocks.current_user},w=JSON.parse('{"u2":"edd/checkout","qv":"products"}'),m={button:(0,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"edd-blocks__icon-downloads"},(0,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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"})),links:(0,n.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,n.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"}))};var v;(0,r.registerBlockType)(w.u2,{icon:(v=w.qv,m[v]),edit:function(e){let{attributes:o,setAttributes:t}=e;return(0,n.createElement)("div",(0,i.useBlockProps)(),(0,n.createElement)("p",{className:"description"},(0,a.__)("This is an example of a cart with a product in it.","easy-digital-downloads")),(0,n.createElement)(s.Disabled,null,(0,n.createElement)(c(),{block:"edd/checkout",attributes:{...o},urlQueryArgs:d})))}})}},t={};function r(e){var n=t[e];if(void 0!==n)return n.exports;var a=t[e]={exports:{}};return o[e](a,a.exports,r),a.exports}r.m=o,e=[],r.O=(o,t,n,a)=>{if(!t){var s=1/0;for(d=0;d=a)&&Object.keys(r.O).every((e=>r.O[e](t[c])))?t.splice(c--,1):(l=!1,a0&&e[d-1][2]>a;d--)e[d]=e[d-1];e[d]=[t,n,a]},r.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return r.d(o,{a:o}),o},r.d=(e,o)=>{for(var t in o)r.o(o,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},r.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={119:0,718:0};r.O.j=o=>0===e[o];var o=(o,t)=>{var n,a,s=t[0],l=t[1],c=t[2],i=0;if(s.some((o=>0!==e[o]))){for(n in l)r.o(l,n)&&(r.m[n]=l[n]);if(c)var d=c(r)}for(o&&o(t);ir(760)));n=r.O(n)})(); \ No newline at end of file +(()=>{"use strict";var e,o={760:(e,o,t)=>{const r=window.wp.blocks,n=window.wp.element,a=window.wp.i18n,s=window.wp.components,l=window.wp.serverSideRender;var c=t.n(l);const i=window.wp.blockEditor,d={edd_blocks_is_block_editor:EDDBlocks.current_user},m=JSON.parse('{"u2":"edd/checkout","qv":"products"}'),w={button:(0,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"edd-blocks__icon-downloads"},(0,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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 h;(0,r.registerBlockType)(m.u2,{icon:(h=m.qv,w[h]),edit:function(e){let{attributes:o,setAttributes:t}=e;return(0,n.createElement)("div",(0,i.useBlockProps)(),(0,n.createElement)("p",{className:"description"},(0,a.__)("This is an example of a cart with a product in it.","easy-digital-downloads")),(0,n.createElement)(s.Disabled,null,(0,n.createElement)(c(),{block:"edd/checkout",attributes:{...o},urlQueryArgs:d})))}})}},t={};function r(e){var n=t[e];if(void 0!==n)return n.exports;var a=t[e]={exports:{}};return o[e](a,a.exports,r),a.exports}r.m=o,e=[],r.O=(o,t,n,a)=>{if(!t){var s=1/0;for(d=0;d=a)&&Object.keys(r.O).every((e=>r.O[e](t[c])))?t.splice(c--,1):(l=!1,a0&&e[d-1][2]>a;d--)e[d]=e[d-1];e[d]=[t,n,a]},r.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return r.d(o,{a:o}),o},r.d=(e,o)=>{for(var t in o)r.o(o,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},r.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={119:0,718:0};r.O.j=o=>0===e[o];var o=(o,t)=>{var n,a,s=t[0],l=t[1],c=t[2],i=0;if(s.some((o=>0!==e[o]))){for(n in l)r.o(l,n)&&(r.m[n]=l[n]);if(c)var d=c(r)}for(o&&o(t);ir(760)));n=r.O(n)})(); \ No newline at end of file diff --git a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/confirmation/index.asset.php b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/confirmation/index.asset.php index 4486fd1d..9e8d8a02 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/confirmation/index.asset.php +++ b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/confirmation/index.asset.php @@ -1 +1 @@ - array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-server-side-render'), 'version' => 'fbe222c67791f3db7f56'); + array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-server-side-render'), 'version' => '3ebd3d803f03e6d7cdb8'); diff --git a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/confirmation/index.js b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/confirmation/index.js index 375f437f..1fde02f4 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/confirmation/index.js +++ b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/confirmation/index.js @@ -1 +1 @@ -(()=>{"use strict";var e,o={142:(e,o,t)=>{const r=window.wp.blocks,n=window.wp.element,a=window.wp.i18n,l=window.wp.components,s=window.wp.serverSideRender;var c=t.n(s);const i=window.wp.blockEditor,d=()=>(0,n.createElement)(l.Placeholder,null,(0,n.createElement)("p",null,(0,a.__)("Create at least one order to see an example of a receipt.","easy-digital-downloads"))),m={edd_blocks_is_block_editor:EDDBlocks.current_user},w=JSON.parse('{"u2":"edd/confirmation","qv":"yes-alt"}'),h={button:(0,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"edd-blocks__icon-downloads"},(0,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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"})),links:(0,n.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,n.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"}))};var v;(0,r.registerBlockType)(w.u2,{icon:(v=w.qv,h[v]),edit:function(e){let{attributes:o,setAttributes:t}=e;const r=e=>o=>t({[e]:o});return(0,n.createElement)("div",(0,i.useBlockProps)(),(0,n.createElement)(i.InspectorControls,null,(0,n.createElement)(l.PanelBody,{title:(0,a.__)("Settings","easy-digital-downloads")},(0,n.createElement)(l.ToggleControl,{label:(0,a.__)("Show Payment Key","easy-digital-downloads"),checked:!!o.payment_key,onChange:r("payment_key")}),(0,n.createElement)(l.ToggleControl,{label:(0,a.__)("Show Gateway","easy-digital-downloads"),checked:!!o.payment_method,onChange:r("payment_method")}))),(0,n.createElement)("p",{className:"description"},(0,a.__)("The editor will display a recent random order from your site.","easy-digital-downloads")),(0,n.createElement)(l.Disabled,null,(0,n.createElement)(c(),{block:"edd/confirmation",attributes:{...o},urlQueryArgs:m,EmptyResponsePlaceholder:d})))}})}},t={};function r(e){var n=t[e];if(void 0!==n)return n.exports;var a=t[e]={exports:{}};return o[e](a,a.exports,r),a.exports}r.m=o,e=[],r.O=(o,t,n,a)=>{if(!t){var l=1/0;for(d=0;d=a)&&Object.keys(r.O).every((e=>r.O[e](t[c])))?t.splice(c--,1):(s=!1,a0&&e[d-1][2]>a;d--)e[d]=e[d-1];e[d]=[t,n,a]},r.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return r.d(o,{a:o}),o},r.d=(e,o)=>{for(var t in o)r.o(o,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},r.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={67:0,472:0};r.O.j=o=>0===e[o];var o=(o,t)=>{var n,a,l=t[0],s=t[1],c=t[2],i=0;if(l.some((o=>0!==e[o]))){for(n in s)r.o(s,n)&&(r.m[n]=s[n]);if(c)var d=c(r)}for(o&&o(t);ir(142)));n=r.O(n)})(); \ No newline at end of file +(()=>{"use strict";var e,o={142:(e,o,t)=>{const r=window.wp.blocks,n=window.wp.element,a=window.wp.i18n,l=window.wp.components,s=window.wp.serverSideRender;var c=t.n(s);const i=window.wp.blockEditor,d=()=>(0,n.createElement)(l.Placeholder,null,(0,n.createElement)("p",null,(0,a.__)("Create at least one order to see an example of a receipt.","easy-digital-downloads"))),m={edd_blocks_is_block_editor:EDDBlocks.current_user},w=JSON.parse('{"u2":"edd/confirmation","qv":"yes-alt"}'),h={button:(0,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"edd-blocks__icon-downloads"},(0,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,r.registerBlockType)(w.u2,{icon:(v=w.qv,h[v]),edit:function(e){let{attributes:o,setAttributes:t}=e;const r=e=>o=>t({[e]:o});return(0,n.createElement)("div",(0,i.useBlockProps)(),(0,n.createElement)(i.InspectorControls,null,(0,n.createElement)(l.PanelBody,{title:(0,a.__)("Settings","easy-digital-downloads")},(0,n.createElement)(l.ToggleControl,{label:(0,a.__)("Show Payment Key","easy-digital-downloads"),checked:!!o.payment_key,onChange:r("payment_key")}),(0,n.createElement)(l.ToggleControl,{label:(0,a.__)("Show Gateway","easy-digital-downloads"),checked:!!o.payment_method,onChange:r("payment_method")}))),(0,n.createElement)("p",{className:"description"},(0,a.__)("The editor will display a recent random order from your site.","easy-digital-downloads")),(0,n.createElement)(l.Disabled,null,(0,n.createElement)(c(),{block:"edd/confirmation",attributes:{...o},urlQueryArgs:m,EmptyResponsePlaceholder:d})))}})}},t={};function r(e){var n=t[e];if(void 0!==n)return n.exports;var a=t[e]={exports:{}};return o[e](a,a.exports,r),a.exports}r.m=o,e=[],r.O=(o,t,n,a)=>{if(!t){var l=1/0;for(d=0;d=a)&&Object.keys(r.O).every((e=>r.O[e](t[c])))?t.splice(c--,1):(s=!1,a0&&e[d-1][2]>a;d--)e[d]=e[d-1];e[d]=[t,n,a]},r.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return r.d(o,{a:o}),o},r.d=(e,o)=>{for(var t in o)r.o(o,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},r.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={67:0,472:0};r.O.j=o=>0===e[o];var o=(o,t)=>{var n,a,l=t[0],s=t[1],c=t[2],i=0;if(l.some((o=>0!==e[o]))){for(n in s)r.o(s,n)&&(r.m[n]=s[n]);if(c)var d=c(r)}for(o&&o(t);ir(142)));n=r.O(n)})(); \ No newline at end of file diff --git a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/confirmation/style-index.css b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/confirmation/style-index.css index cd12e691..043925ca 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/confirmation/style-index.css +++ b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/confirmation/style-index.css @@ -1 +1 @@ -.edd-blocks__row{align-items:center;display:grid;gap:1rem}.edd-blocks__row-label{font-weight:700}@media(min-width:480px){.edd-blocks__row{grid-template-columns:1fr 1fr}.edd-blocks__row>div:last-of-type:not(:first-of-type){text-align:right}.edd-blocks__row>div:only-child{grid-column:1/span 2}}.edd-blocks-receipt__items,.edd-blocks-receipt__totals{border:1px solid var(--edd-blocks-light-grey);display:grid;margin:0 auto 1.5rem;padding:1rem}.edd-blocks-receipt__row-item{border-bottom:1px solid var(--edd-blocks-light-grey);padding:.5rem 0}.edd-blocks-receipt__row-item:last-child{border-bottom:none!important}.edd-blocks-receipt__row-header{border-bottom:1px solid var(--edd-blocks-light-grey);font-size:1.1rem;font-weight:700;padding-bottom:.5rem} +.edd-blocks__row{align-items:center;display:grid;gap:1rem}.edd-blocks__row-label{font-weight:700}@media(min-width:480px){.edd-blocks__row{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.edd-blocks__row>div:last-of-type:not(:first-of-type){text-align:right}.edd-blocks__row>div:only-child{grid-column:1/span 2}}.edd-blocks-receipt__items,.edd-blocks-receipt__totals{border:1px solid var(--edd-blocks-light-grey);display:grid;margin:0 auto 1.5rem;padding:1rem}.edd-blocks-receipt__row-item{border-bottom:1px solid var(--edd-blocks-light-grey);padding:.5rem 0}.edd-blocks-receipt__row-item:last-child{border-bottom:none!important}.edd-blocks-receipt__row-header{border-bottom:1px solid var(--edd-blocks-light-grey);font-size:1.1rem;font-weight:700;padding-bottom:.5rem} 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 b29dfd64..104af37e 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' => '4dc61207e0bc9900907a'); + array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-server-side-render'), 'version' => '2066313c4795ca117892'); 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 1532ce45..d28bad17 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}.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 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} 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 b8f281eb..49a6658b 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={737:(e,a,l)=>{const o=window.wp.blocks,t=window.wp.element,n=window.wp.i18n,i=window.wp.components,d=window.wp.serverSideRender;var s=l.n(d);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"})),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"}))};var C;(0,o.registerBlockType)(k.u2,{icon:(C=k.qv,y[C]),edit:function(e){let{attributes:a,setAttributes:l}=e;const o=e=>a=>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,_.useBlockProps)(),(0,t.createElement)(_.InspectorControls,null,(0,t.createElement)(i.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)(i.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)(i.ToggleControl,{label:(0,n.__)("Show All Access Downloads","easy-digital-downloads"),checked:!!a.all_access,onChange:o("all_access")}),(0,t.createElement)(i.RangeControl,{label:(0,n.__)("Number of Columns","easy-digital-downloads"),value:a.columns,onChange:o("columns"),min:1,max:6}),(0,t.createElement)(i.SelectControl,{label:(0,n.__)("Order By","easy-digital-downloads"),value:a.orderby,options:m,onChange:o("orderby")}),(0,t.createElement)(i.SelectControl,{label:(0,n.__)("Order","easy-digital-downloads"),value:a.order,options:c,onChange:o("order")}),"rand"!==a.orderby&&(0,t.createElement)(i.ToggleControl,{label:(0,n.__)("Show Pagination","easy-digital-downloads"),checked:!!a.pagination,onChange:o("pagination")})),!a.all_access&&(0,t.createElement)(i.PanelBody,{title:(0,n.__)("Download Term Settings","easy-digital-downloads"),initialOpen:!1},(0,t.createElement)(i.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)(i.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)(i.PanelBody,{title:(0,n.__)("Individual Product Settings","easy-digital-downloads"),initialOpen:!1},(0,t.createElement)(i.ToggleControl,{label:(0,n.__)("Show Title","easy-digital-downloads"),checked:!!a.title,onChange:o("title")}),(0,t.createElement)(i.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)(i.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)(i.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)(i.SelectControl,{label:(0,n.__)("Featured Image Alignment","easy-digital-downloads"),value:a.image_alignment,options:r,onChange:o("image_alignment")}),(0,t.createElement)(i.SelectControl,{label:(0,n.__)("Content","easy-digital-downloads"),value:a.content,options:v,onChange:o("content")}),(0,t.createElement)(i.ToggleControl,{label:(0,n.__)("Show Price","easy-digital-downloads"),checked:!!a.price,onChange:o("price")}),(0,t.createElement)(i.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)(i.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)(i.ToggleControl,{label:(0,n.__)("Show Price on Button","easy-digital-downloads"),checked:!!a.show_price,onChange:o("show_price")})))),(0,t.createElement)(i.Disabled,null,(0,t.createElement)(s(),{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 i=1/0;for(c=0;c=n)&&Object.keys(o.O).every((e=>o.O[e](l[s])))?l.splice(s--,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,i=l[0],d=l[1],s=l[2],r=0;if(i.some((a=>0!==e[a]))){for(t in d)o.o(d,t)&&(o.m[t]=d[t]);if(s)var c=s(o)}for(a&&a(l);ro(737)));t=o.O(t)})(); \ No newline at end of file +(()=>{"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 diff --git a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/login/index.asset.php b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/login/index.asset.php index 6dd48ddf..f7f2556f 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/login/index.asset.php +++ b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/login/index.asset.php @@ -1 +1 @@ - array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => '8022d11843870776cb71'); + array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => 'edc5631c889b13e0c385'); diff --git a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/login/index.js b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/login/index.js index 6a16c1a6..8e82b8fc 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/login/index.js +++ b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/login/index.js @@ -1 +1 @@ -(()=>{"use strict";var e,o={26:()=>{const e=window.wp.blocks,o=window.wp.element,t=window.wp.i18n,r=window.wp.components,a=window.wp.blockEditor,l=JSON.parse('{"u2":"edd/login","qv":"unlock"}'),n={button:(0,o.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,o.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,o.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,o.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,o.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,o.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,o.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,o.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,o.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"edd-blocks__icon-downloads"},(0,o.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,o.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,o.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,o.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,o.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,o.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,o.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,o.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,o.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,o.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,o.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"})),links:(0,o.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,o.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"}))};var s;(0,e.registerBlockType)(l.u2,{icon:(s=l.qv,n[s]),edit:function(e){let{attributes:l,setAttributes:n}=e;const s=e=>o=>n({[e]:o});return(0,o.createElement)("div",(0,a.useBlockProps)(),(0,o.createElement)(a.InspectorControls,null,(0,o.createElement)(r.PanelBody,{title:(0,t.__)("Settings","easy-digital-downloads")},(0,o.createElement)("p",{className:"description"},(0,t.__)("Once logged in, where should the user be directed? You can choose the current page, or a custom URL.","easy-digital-downloads")),(0,o.createElement)(r.ToggleControl,{label:(0,t.__)("Redirect to Current Page","easy-digital-downloads"),checked:!!l.current,onChange:s("current")}),!l.current&&(0,o.createElement)(r.TextControl,{label:(0,t.__)("Custom Redirect URL","easy-digital-downloads"),value:l.redirect,onChange:s("redirect")}))),(0,o.createElement)("p",{className:"description"},(0,t.__)("This form is a sample view of your login form. Logged in users will not see it.","easy-digital-downloads")),(0,o.createElement)("form",{className:"edd-blocks-form edd-blocks-form__login"},(0,o.createElement)("div",{className:"edd-blocks-form__group edd-blocks-form__group-username"},(0,o.createElement)("label",{htmlFor:"edd_user_login"},(0,t.__)("Username or Email","easy-digital-downloads")),(0,o.createElement)("div",{className:"edd-blocks-form__control"},(0,o.createElement)("input",{name:"edd_user_login",id:"edd_user_login",className:"edd-required edd-input",type:"text",value:"user_name",readOnly:!0}))),(0,o.createElement)("div",{className:"edd-blocks-form__group edd-blocks-form__group-password"},(0,o.createElement)("label",{htmlFor:"edd_user_pass"},(0,t.__)("Password","easy-digital-downloads")),(0,o.createElement)("div",{className:"edd-blocks-form__control"},(0,o.createElement)("input",{name:"edd_user_pass",id:"edd_user_pass",className:"edd-password edd-required edd-input",type:"password",value:"234324",readOnly:!0}))),(0,o.createElement)("div",{className:"edd-blocks-form__group edd-blocks-form__group-remember"},(0,o.createElement)("div",{className:"edd-blocks-form__control"},(0,o.createElement)(r.Disabled,null,(0,o.createElement)("input",{name:"rememberme",type:"checkbox",id:"rememberme",value:"forever",readOnly:!0}),(0,o.createElement)("label",{htmlFor:"rememberme"},(0,t.__)("Remember Me","easy-digital-downloads"))))),(0,o.createElement)("div",{className:"edd-blocks-form__group edd-blocks-form__group-submit"},(0,o.createElement)(r.Disabled,null,(0,o.createElement)("input",{name:"submit",type:"submit",className:"edd-submit button",label:(0,t.__)("Log In","easy-digital-downloads"),value:(0,t.__)("Log In","easy-digital-downloads")}))),(0,o.createElement)("p",{className:"edd-blocks-form__group edd-blocks-form__group-lost-password"},(0,o.createElement)("a",{href:""},(0,t.__)("Lost Password?","easy-digital-downloads")))))}})}},t={};function r(e){var a=t[e];if(void 0!==a)return a.exports;var l=t[e]={exports:{}};return o[e](l,l.exports,r),l.exports}r.m=o,e=[],r.O=(o,t,a,l)=>{if(!t){var n=1/0;for(i=0;i=l)&&Object.keys(r.O).every((e=>r.O[e](t[d])))?t.splice(d--,1):(s=!1,l0&&e[i-1][2]>l;i--)e[i]=e[i-1];e[i]=[t,a,l]},r.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={751:0,710:0};r.O.j=o=>0===e[o];var o=(o,t)=>{var a,l,n=t[0],s=t[1],d=t[2],c=0;if(n.some((o=>0!==e[o]))){for(a in s)r.o(s,a)&&(r.m[a]=s[a]);if(d)var i=d(r)}for(o&&o(t);cr(26)));a=r.O(a)})(); \ No newline at end of file +(()=>{"use strict";var e,o={26:()=>{const e=window.wp.blocks,o=window.wp.element,t=window.wp.i18n,r=window.wp.components,a=window.wp.blockEditor,l=JSON.parse('{"u2":"edd/login","qv":"unlock"}'),n={button:(0,o.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,o.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,o.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,o.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,o.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,o.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,o.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,o.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,o.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"edd-blocks__icon-downloads"},(0,o.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,o.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,o.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,o.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,o.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,o.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,o.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,o.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,o.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,o.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,o.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,o.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,o.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,o.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,o.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 s;(0,e.registerBlockType)(l.u2,{icon:(s=l.qv,n[s]),edit:function(e){let{attributes:l,setAttributes:n}=e;const s=e=>o=>n({[e]:o});return(0,o.createElement)("div",(0,a.useBlockProps)(),(0,o.createElement)(a.InspectorControls,null,(0,o.createElement)(r.PanelBody,{title:(0,t.__)("Settings","easy-digital-downloads")},(0,o.createElement)("p",{className:"description"},(0,t.__)("Once logged in, where should the user be directed? You can choose the current page, or a custom URL.","easy-digital-downloads")),(0,o.createElement)(r.ToggleControl,{label:(0,t.__)("Redirect to Current Page","easy-digital-downloads"),checked:!!l.current,onChange:s("current")}),!l.current&&(0,o.createElement)(r.TextControl,{label:(0,t.__)("Custom Redirect URL","easy-digital-downloads"),value:l.redirect,onChange:s("redirect")}))),(0,o.createElement)("p",{className:"description"},(0,t.__)("This form is a sample view of your login form. Logged in users will not see it.","easy-digital-downloads")),(0,o.createElement)("form",{className:"edd-blocks-form edd-blocks-form__login"},(0,o.createElement)("div",{className:"edd-blocks-form__group edd-blocks-form__group-username"},(0,o.createElement)("label",{htmlFor:"edd_user_login"},(0,t.__)("Username or Email","easy-digital-downloads")),(0,o.createElement)("div",{className:"edd-blocks-form__control"},(0,o.createElement)("input",{name:"edd_user_login",id:"edd_user_login",className:"edd-required edd-input",type:"text",value:"user_name",readOnly:!0}))),(0,o.createElement)("div",{className:"edd-blocks-form__group edd-blocks-form__group-password"},(0,o.createElement)("label",{htmlFor:"edd_user_pass"},(0,t.__)("Password","easy-digital-downloads")),(0,o.createElement)("div",{className:"edd-blocks-form__control"},(0,o.createElement)("input",{name:"edd_user_pass",id:"edd_user_pass",className:"edd-password edd-required edd-input",type:"password",value:"234324",readOnly:!0}))),(0,o.createElement)("div",{className:"edd-blocks-form__group edd-blocks-form__group-remember"},(0,o.createElement)("div",{className:"edd-blocks-form__control"},(0,o.createElement)(r.Disabled,null,(0,o.createElement)("input",{name:"rememberme",type:"checkbox",id:"rememberme",value:"forever",readOnly:!0}),(0,o.createElement)("label",{htmlFor:"rememberme"},(0,t.__)("Remember Me","easy-digital-downloads"))))),(0,o.createElement)("div",{className:"edd-blocks-form__group edd-blocks-form__group-submit"},(0,o.createElement)(r.Disabled,null,(0,o.createElement)("input",{name:"submit",type:"submit",className:"edd-submit button",label:(0,t.__)("Log In","easy-digital-downloads"),value:(0,t.__)("Log In","easy-digital-downloads")}))),(0,o.createElement)("p",{className:"edd-blocks-form__group edd-blocks-form__group-lost-password"},(0,o.createElement)("a",{href:""},(0,t.__)("Lost Password?","easy-digital-downloads")))))}})}},t={};function r(e){var a=t[e];if(void 0!==a)return a.exports;var l=t[e]={exports:{}};return o[e](l,l.exports,r),l.exports}r.m=o,e=[],r.O=(o,t,a,l)=>{if(!t){var n=1/0;for(i=0;i=l)&&Object.keys(r.O).every((e=>r.O[e](t[d])))?t.splice(d--,1):(s=!1,l0&&e[i-1][2]>l;i--)e[i]=e[i-1];e[i]=[t,a,l]},r.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={751:0,710:0};r.O.j=o=>0===e[o];var o=(o,t)=>{var a,l,n=t[0],s=t[1],d=t[2],c=0;if(n.some((o=>0!==e[o]))){for(a in s)r.o(s,a)&&(r.m[a]=s[a]);if(d)var i=d(r)}for(o&&o(t);cr(26)));a=r.O(a)})(); \ No newline at end of file diff --git a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/order-history/index.asset.php b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/order-history/index.asset.php index a706d44b..f5e4c429 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/order-history/index.asset.php +++ b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/order-history/index.asset.php @@ -1 +1 @@ - array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-server-side-render'), 'version' => 'ba06ffbd66b5912e943d'); + array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-server-side-render'), 'version' => 'daec310e0801da6bedd7'); diff --git a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/order-history/index.js b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/order-history/index.js index 325b1124..49c81288 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/order-history/index.js +++ b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/order-history/index.js @@ -1 +1 @@ -(()=>{"use strict";var e,o={98:(e,o,r)=>{const t=window.wp.blocks,n=window.wp.element,a=window.wp.i18n,l=window.wp.components,s=window.wp.serverSideRender;var i=r.n(s);const c=window.wp.blockEditor,d=JSON.parse('{"u2":"edd/order-history","qv":"editor-table"}'),m={button:(0,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"edd-blocks__icon-downloads"},(0,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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"})),links:(0,n.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,n.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"}))};var w;(0,t.registerBlockType)(d.u2,{icon:(w=d.qv,m[w]),edit:function(e){let{attributes:o,setAttributes:r}=e;const t=e=>o=>r({[e]:o});return(0,n.createElement)("div",(0,c.useBlockProps)(),(0,n.createElement)("p",{className:"description"},(0,a.__)("This is an example of a user's order history.","easy-digital-downloads")),(0,n.createElement)(c.InspectorControls,null,(0,n.createElement)(l.PanelBody,{title:(0,a.__)("Order History Settings","easy-digital-downloads")},(0,n.createElement)(l.RangeControl,{label:(0,a.__)("Columns","easy-digital-downloads"),value:o.columns,onChange:t("columns"),min:1,max:6}),(0,n.createElement)(l.RangeControl,{label:(0,a.__)("Orders per Page","easy-digital-downloads"),value:o.number,onChange:t("number"),min:1,max:100}),!!EDDBlocks.recurring&&(0,n.createElement)(l.ToggleControl,{label:(0,a.__)("Do Not Show Renewal Orders","easy-digital-downloads"),checked:!!o.recurring,onChange:t("recurring")}))),(0,n.createElement)(l.Disabled,null,(0,n.createElement)(i(),{block:"edd/order-history",attributes:{...o}})))}})}},r={};function t(e){var n=r[e];if(void 0!==n)return n.exports;var a=r[e]={exports:{}};return o[e](a,a.exports,t),a.exports}t.m=o,e=[],t.O=(o,r,n,a)=>{if(!r){var l=1/0;for(d=0;d=a)&&Object.keys(t.O).every((e=>t.O[e](r[i])))?r.splice(i--,1):(s=!1,a0&&e[d-1][2]>a;d--)e[d]=e[d-1];e[d]=[r,n,a]},t.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return t.d(o,{a:o}),o},t.d=(e,o)=>{for(var r in o)t.o(o,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:o[r]})},t.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={278:0,840:0};t.O.j=o=>0===e[o];var o=(o,r)=>{var n,a,l=r[0],s=r[1],i=r[2],c=0;if(l.some((o=>0!==e[o]))){for(n in s)t.o(s,n)&&(t.m[n]=s[n]);if(i)var d=i(t)}for(o&&o(r);ct(98)));n=t.O(n)})(); \ No newline at end of file +(()=>{"use strict";var e,o={98:(e,o,r)=>{const t=window.wp.blocks,n=window.wp.element,a=window.wp.i18n,l=window.wp.components,s=window.wp.serverSideRender;var i=r.n(s);const c=window.wp.blockEditor,d=JSON.parse('{"u2":"edd/order-history","qv":"editor-table"}'),m={button:(0,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"edd-blocks__icon-downloads"},(0,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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 w;(0,t.registerBlockType)(d.u2,{icon:(w=d.qv,m[w]),edit:function(e){let{attributes:o,setAttributes:r}=e;const t=e=>o=>r({[e]:o});return(0,n.createElement)("div",(0,c.useBlockProps)(),(0,n.createElement)("p",{className:"description"},(0,a.__)("This is an example of a user's order history.","easy-digital-downloads")),(0,n.createElement)(c.InspectorControls,null,(0,n.createElement)(l.PanelBody,{title:(0,a.__)("Order History Settings","easy-digital-downloads")},(0,n.createElement)(l.RangeControl,{label:(0,a.__)("Columns","easy-digital-downloads"),value:o.columns,onChange:t("columns"),min:1,max:6}),(0,n.createElement)(l.RangeControl,{label:(0,a.__)("Orders per Page","easy-digital-downloads"),value:o.number,onChange:t("number"),min:1,max:100}),!!EDDBlocks.recurring&&(0,n.createElement)(l.ToggleControl,{label:(0,a.__)("Do Not Show Renewal Orders","easy-digital-downloads"),checked:!!o.recurring,onChange:t("recurring")}))),(0,n.createElement)(l.Disabled,null,(0,n.createElement)(i(),{block:"edd/order-history",attributes:{...o}})))}})}},r={};function t(e){var n=r[e];if(void 0!==n)return n.exports;var a=r[e]={exports:{}};return o[e](a,a.exports,t),a.exports}t.m=o,e=[],t.O=(o,r,n,a)=>{if(!r){var l=1/0;for(d=0;d=a)&&Object.keys(t.O).every((e=>t.O[e](r[i])))?r.splice(i--,1):(s=!1,a0&&e[d-1][2]>a;d--)e[d]=e[d-1];e[d]=[r,n,a]},t.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return t.d(o,{a:o}),o},t.d=(e,o)=>{for(var r in o)t.o(o,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:o[r]})},t.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={278:0,840:0};t.O.j=o=>0===e[o];var o=(o,r)=>{var n,a,l=r[0],s=r[1],i=r[2],c=0;if(l.some((o=>0!==e[o]))){for(n in s)t.o(s,n)&&(t.m[n]=s[n]);if(i)var d=i(t)}for(o&&o(r);ct(98)));n=t.O(n)})(); \ No newline at end of file diff --git a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/receipt/index.asset.php b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/receipt/index.asset.php index 16f8637e..d828eef4 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/receipt/index.asset.php +++ b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/receipt/index.asset.php @@ -1 +1 @@ - array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-server-side-render'), 'version' => '5db7f26583a44b89219b'); + array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-server-side-render'), 'version' => '9c5caff2035d02a7827e'); diff --git a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/receipt/index.js b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/receipt/index.js index 20a841a8..cf08aa9d 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/receipt/index.js +++ b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/receipt/index.js @@ -1 +1 @@ -(()=>{"use strict";var e,o={892:(e,o,t)=>{const r=window.wp.blocks,n=window.wp.element,a=window.wp.i18n,l=window.wp.components,s=window.wp.serverSideRender;var c=t.n(s);const i=window.wp.blockEditor,d=()=>(0,n.createElement)(l.Placeholder,null,(0,n.createElement)("p",null,(0,a.__)("Create at least one order to see an example of a receipt.","easy-digital-downloads"))),m={edd_blocks_is_block_editor:EDDBlocks.current_user},w=JSON.parse('{"u2":"edd/receipt","qv":"money"}'),h={button:(0,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"edd-blocks__icon-downloads"},(0,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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"})),links:(0,n.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,n.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"}))};var v;(0,r.registerBlockType)(w.u2,{icon:(v=w.qv,h[v]),edit:function(e){let{attributes:o,setAttributes:t}=e;const r=e=>o=>t({[e]:o});return(0,n.createElement)("div",(0,i.useBlockProps)(),(0,n.createElement)(i.InspectorControls,null,(0,n.createElement)(l.PanelBody,{title:(0,a.__)("Settings","easy-digital-downloads")},(0,n.createElement)(l.ToggleControl,{label:(0,a.__)("Show Payment Key","easy-digital-downloads"),checked:!!o.payment_key,onChange:r("payment_key")}),(0,n.createElement)(l.ToggleControl,{label:(0,a.__)("Show Gateway","easy-digital-downloads"),checked:!!o.payment_method,onChange:r("payment_method")}))),(0,n.createElement)("p",{className:"description"},(0,a.__)("The editor will display a sample random order from your site.","easy-digital-downloads")),(0,n.createElement)(l.Disabled,null,(0,n.createElement)(c(),{block:"edd/receipt",attributes:{...o},urlQueryArgs:m,EmptyResponsePlaceholder:d})))}})}},t={};function r(e){var n=t[e];if(void 0!==n)return n.exports;var a=t[e]={exports:{}};return o[e](a,a.exports,r),a.exports}r.m=o,e=[],r.O=(o,t,n,a)=>{if(!t){var l=1/0;for(d=0;d=a)&&Object.keys(r.O).every((e=>r.O[e](t[c])))?t.splice(c--,1):(s=!1,a0&&e[d-1][2]>a;d--)e[d]=e[d-1];e[d]=[t,n,a]},r.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return r.d(o,{a:o}),o},r.d=(e,o)=>{for(var t in o)r.o(o,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},r.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={136:0,882:0};r.O.j=o=>0===e[o];var o=(o,t)=>{var n,a,l=t[0],s=t[1],c=t[2],i=0;if(l.some((o=>0!==e[o]))){for(n in s)r.o(s,n)&&(r.m[n]=s[n]);if(c)var d=c(r)}for(o&&o(t);ir(892)));n=r.O(n)})(); \ No newline at end of file +(()=>{"use strict";var e,o={892:(e,o,t)=>{const r=window.wp.blocks,n=window.wp.element,a=window.wp.i18n,l=window.wp.components,s=window.wp.serverSideRender;var c=t.n(s);const i=window.wp.blockEditor,d=()=>(0,n.createElement)(l.Placeholder,null,(0,n.createElement)("p",null,(0,a.__)("Create at least one order to see an example of a receipt.","easy-digital-downloads"))),m={edd_blocks_is_block_editor:EDDBlocks.current_user},w=JSON.parse('{"u2":"edd/receipt","qv":"money"}'),h={button:(0,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"edd-blocks__icon-downloads"},(0,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,r.registerBlockType)(w.u2,{icon:(v=w.qv,h[v]),edit:function(e){let{attributes:o,setAttributes:t}=e;const r=e=>o=>t({[e]:o});return(0,n.createElement)("div",(0,i.useBlockProps)(),(0,n.createElement)(i.InspectorControls,null,(0,n.createElement)(l.PanelBody,{title:(0,a.__)("Settings","easy-digital-downloads")},(0,n.createElement)(l.ToggleControl,{label:(0,a.__)("Show Payment Key","easy-digital-downloads"),checked:!!o.payment_key,onChange:r("payment_key")}),(0,n.createElement)(l.ToggleControl,{label:(0,a.__)("Show Gateway","easy-digital-downloads"),checked:!!o.payment_method,onChange:r("payment_method")}))),(0,n.createElement)("p",{className:"description"},(0,a.__)("The editor will display a sample random order from your site.","easy-digital-downloads")),(0,n.createElement)(l.Disabled,null,(0,n.createElement)(c(),{block:"edd/receipt",attributes:{...o},urlQueryArgs:m,EmptyResponsePlaceholder:d})))}})}},t={};function r(e){var n=t[e];if(void 0!==n)return n.exports;var a=t[e]={exports:{}};return o[e](a,a.exports,r),a.exports}r.m=o,e=[],r.O=(o,t,n,a)=>{if(!t){var l=1/0;for(d=0;d=a)&&Object.keys(r.O).every((e=>r.O[e](t[c])))?t.splice(c--,1):(s=!1,a0&&e[d-1][2]>a;d--)e[d]=e[d-1];e[d]=[t,n,a]},r.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return r.d(o,{a:o}),o},r.d=(e,o)=>{for(var t in o)r.o(o,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},r.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={136:0,882:0};r.O.j=o=>0===e[o];var o=(o,t)=>{var n,a,l=t[0],s=t[1],c=t[2],i=0;if(l.some((o=>0!==e[o]))){for(n in s)r.o(s,n)&&(r.m[n]=s[n]);if(c)var d=c(r)}for(o&&o(t);ir(892)));n=r.O(n)})(); \ No newline at end of file diff --git a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/receipt/style-index.css b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/receipt/style-index.css index 2b72b023..26defe55 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/receipt/style-index.css +++ b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/receipt/style-index.css @@ -1 +1 @@ -.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-blocks__row{align-items:center;display:grid;gap:1rem}.edd-blocks__row-label{font-weight:700}@media(min-width:480px){.edd-blocks__row{grid-template-columns:1fr 1fr}.edd-blocks__row>div:last-of-type:not(:first-of-type){text-align:right}.edd-blocks__row>div:only-child{grid-column:1/span 2}}.edd-blocks-form{border:1px solid var(--edd-blocks-light-grey);display:grid;gap:1.25rem;padding:2rem}.widget .edd-blocks-form{border:none;padding:0}.edd-blocks-form .edd-blocks-form__group,.edd-blocks-form legend{display:block;margin:0}.edd-blocks-form .edd-blocks-form__group>label{display:block;margin-bottom:.5rem!important}.edd-blocks-form input[type=email],.edd-blocks-form input[type=password],.edd-blocks-form input[type=text],.edd-blocks-form select{box-sizing:border-box;display:block;padding:4px 6px;width:100%}.edd-blocks-form .edd-blocks-form__halves{display:flex!important;gap:1rem;justify-content:space-between}@media(min-width:600px){.edd-blocks-form .edd-blocks-form__halves>*{flex-basis:50%}}p+.edd-blocks-form{margin-top:2rem}.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}.edd-blocks-receipt__items,.edd-blocks-receipt__totals{border:1px solid var(--edd-blocks-light-grey);display:grid;margin:0 auto 1.5rem;padding:1rem}.edd-blocks-receipt__row-item{border-bottom:1px solid var(--edd-blocks-light-grey);padding:.5rem 0}.edd-blocks-receipt__row-item:last-child{border-bottom:none!important}.edd-blocks-receipt__row-header{border-bottom:1px solid var(--edd-blocks-light-grey);font-size:1.1rem;font-weight:700;padding-bottom:.5rem}.edd-blocks-receipt__items .edd-blocks__row{border-bottom:1px solid var(--edd-blocks-light-grey);padding:.5rem 0} +.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-blocks__row{align-items:center;display:grid;gap:1rem}.edd-blocks__row-label{font-weight:700}@media(min-width:480px){.edd-blocks__row{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.edd-blocks__row>div:last-of-type:not(:first-of-type){text-align:right}.edd-blocks__row>div:only-child{grid-column:1/span 2}}.edd-blocks-form{border:1px solid var(--edd-blocks-light-grey);display:grid;gap:1.25rem;padding:2rem}.widget .edd-blocks-form{border:none;padding:0}.edd-blocks-form .edd-blocks-form__group,.edd-blocks-form legend{display:block;margin:0}.edd-blocks-form .edd-blocks-form__group>label{display:block;margin-bottom:.5rem!important}.edd-blocks-form input[type=email],.edd-blocks-form input[type=password],.edd-blocks-form input[type=text],.edd-blocks-form select{box-sizing:border-box;display:block;padding:4px 6px;width:100%}.edd-blocks-form .edd-blocks-form__halves{display:flex!important;gap:1rem;justify-content:space-between}@media(min-width:600px){.edd-blocks-form .edd-blocks-form__halves>*{flex-basis:50%}}p+.edd-blocks-form{margin-top:2rem}.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}.edd-blocks-receipt__items,.edd-blocks-receipt__totals{border:1px solid var(--edd-blocks-light-grey);display:grid;margin:0 auto 1.5rem;padding:1rem}.edd-blocks-receipt__row-item{border-bottom:1px solid var(--edd-blocks-light-grey);padding:.5rem 0}.edd-blocks-receipt__row-item:last-child{border-bottom:none!important}.edd-blocks-receipt__row-header{border-bottom:1px solid var(--edd-blocks-light-grey);font-size:1.1rem;font-weight:700;padding-bottom:.5rem}.edd-blocks-receipt__items .edd-blocks__row{border-bottom:1px solid var(--edd-blocks-light-grey);padding:.5rem 0} diff --git a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/register/index.asset.php b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/register/index.asset.php index 56651ab9..8a7e7d51 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/register/index.asset.php +++ b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/register/index.asset.php @@ -1 +1 @@ - array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => '0661e954af1bb187dd97'); + array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => '48f22fda332b4e2cd8f3'); diff --git a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/register/index.js b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/register/index.js index 9408c098..4f38d6c2 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/register/index.js +++ b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/register/index.js @@ -1 +1 @@ -(()=>{"use strict";var e,r={883:()=>{const e=window.wp.blocks,r=window.wp.element,t=window.wp.i18n,a=window.wp.components,o=window.wp.blockEditor,s=JSON.parse('{"u2":"edd/register","qv":"id"}'),l={button:(0,r.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,r.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,r.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,r.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,r.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,r.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,r.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,r.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,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"edd-blocks__icon-downloads"},(0,r.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,r.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,r.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,r.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,r.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,r.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,r.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,r.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,r.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,r.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,r.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"})),links:(0,r.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,r.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"}))};var n;(0,e.registerBlockType)(s.u2,{icon:(n=s.qv,l[n]),edit:function(e){let{attributes:s,setAttributes:l}=e;const n=e=>r=>l({[e]:r});return(0,r.createElement)("div",(0,o.useBlockProps)(),(0,r.createElement)(o.InspectorControls,null,(0,r.createElement)(a.PanelBody,{title:(0,t.__)("Settings","easy-digital-downloads")},(0,r.createElement)("p",{className:"description"},(0,t.__)("Once registered, where should the user be directed? You can choose the current page, or a custom URL.","easy-digital-downloads")),(0,r.createElement)(a.ToggleControl,{label:(0,t.__)("Redirect to Current Page","easy-digital-downloads"),checked:!!s.current,onChange:n("current")}),!s.current&&(0,r.createElement)(a.TextControl,{label:(0,t.__)("Custom Redirect URL","easy-digital-downloads"),value:s.redirect,onChange:n("redirect")}))),(0,r.createElement)("p",{className:"description"},(0,t.__)("This form is a sample view of your registration form. Logged in users will not see it.","easy-digital-downloads")),(0,r.createElement)("form",{id:"edd-blocks-form__register",className:"edd-blocks-form edd-blocks-form__register"},(0,r.createElement)("div",{className:"edd-blocks-form__group edd-blocks-form__group-username"},(0,r.createElement)("label",{htmlFor:"edd_user_register"},(0,t.__)("Username or Email","easy-digital-downloads"),(0,r.createElement)("span",{className:"edd-required-indicator"},"*"),(0,r.createElement)("span",{className:"screen-reader-text"},(0,t.__)("Required","easy-digital-downloads"))),(0,r.createElement)("div",{className:"edd-blocks-form__control"},(0,r.createElement)("input",{name:"edd_user_register",id:"edd_user_register",className:"edd-required edd-input",type:"text",readOnly:!0}))),(0,r.createElement)("div",{className:"edd-blocks-form__group edd-blocks-form__group-email"},(0,r.createElement)("label",{htmlFor:"edd-user-email"},(0,t.__)("Email","easy-digital-downloads"),(0,r.createElement)("span",{className:"edd-required-indicator"},"*"),(0,r.createElement)("span",{className:"screen-reader-text"},(0,t.__)("Required","easy-digital-downloads"))),(0,r.createElement)("div",{className:"edd-blocks-form__control"},(0,r.createElement)("input",{name:"edd-user-email",id:"edd_user_login",className:"edd-password edd-required edd-input",type:"email",readOnly:!0}))),(0,r.createElement)("div",{className:"edd-blocks-form__group edd-blocks-form__group-password"},(0,r.createElement)("label",{htmlFor:"edd-user-pass"},(0,t.__)("Password","easy-digital-downloads"),(0,r.createElement)("span",{className:"edd-required-indicator"},"*"),(0,r.createElement)("span",{className:"screen-reader-text"},(0,t.__)("Required","easy-digital-downloads"))),(0,r.createElement)("div",{className:"edd-blocks-form__control"},(0,r.createElement)("input",{id:"edd-user-pass",className:"password required edd-input",type:"password",name:"edd_user_pass",readOnly:!0}))),(0,r.createElement)("div",{className:"edd-blocks-form__group edd-blocks-form__group-password-confirm"},(0,r.createElement)("label",{htmlFor:"edd-user-pass2"},(0,t.__)("Confirm Password","easy-digital-downloads"),(0,r.createElement)("span",{className:"edd-required-indicator"},"*"),(0,r.createElement)("span",{className:"screen-reader-text"},(0,t.__)("Required","easy-digital-downloads"))),(0,r.createElement)("div",{className:"edd-blocks-form__control"},(0,r.createElement)("input",{id:"edd-user-pass2",className:"password required edd-input",type:"password",name:"edd_user_pass2",readOnly:!0}))),(0,r.createElement)("div",{className:"edd-blocks-form__group edd-blocks-form__group-submit"},(0,r.createElement)(a.Disabled,null,(0,r.createElement)("input",{name:"submit",type:"submit",className:"edd-submit button",label:(0,t.__)("Log In","easy-digital-downloads"),value:(0,t.__)("Log In","easy-digital-downloads")})))))}})}},t={};function a(e){var o=t[e];if(void 0!==o)return o.exports;var s=t[e]={exports:{}};return r[e](s,s.exports,a),s.exports}a.m=r,e=[],a.O=(r,t,o,s)=>{if(!t){var l=1/0;for(i=0;i=s)&&Object.keys(a.O).every((e=>a.O[e](t[d])))?t.splice(d--,1):(n=!1,s0&&e[i-1][2]>s;i--)e[i]=e[i-1];e[i]=[t,o,s]},a.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),(()=>{var e={889:0,750:0};a.O.j=r=>0===e[r];var r=(r,t)=>{var o,s,l=t[0],n=t[1],d=t[2],c=0;if(l.some((r=>0!==e[r]))){for(o in n)a.o(n,o)&&(a.m[o]=n[o]);if(d)var i=d(a)}for(r&&r(t);ca(883)));o=a.O(o)})(); \ No newline at end of file +(()=>{"use strict";var e,r={883:()=>{const e=window.wp.blocks,r=window.wp.element,t=window.wp.i18n,o=window.wp.components,a=window.wp.blockEditor,s=JSON.parse('{"u2":"edd/register","qv":"id"}'),n={button:(0,r.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,r.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,r.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,r.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,r.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,r.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,r.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,r.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,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"edd-blocks__icon-downloads"},(0,r.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,r.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,r.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,r.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,r.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,r.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,r.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,r.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,r.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,r.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,r.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,r.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,r.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,r.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,r.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 l;(0,e.registerBlockType)(s.u2,{icon:(l=s.qv,n[l]),edit:function(e){let{attributes:s,setAttributes:n}=e;const l=e=>r=>n({[e]:r});return(0,r.createElement)("div",(0,a.useBlockProps)(),(0,r.createElement)(a.InspectorControls,null,(0,r.createElement)(o.PanelBody,{title:(0,t.__)("Settings","easy-digital-downloads")},(0,r.createElement)("p",{className:"description"},(0,t.__)("Once registered, where should the user be directed? You can choose the current page, or a custom URL.","easy-digital-downloads")),(0,r.createElement)(o.ToggleControl,{label:(0,t.__)("Redirect to Current Page","easy-digital-downloads"),checked:!!s.current,onChange:l("current")}),!s.current&&(0,r.createElement)(o.TextControl,{label:(0,t.__)("Custom Redirect URL","easy-digital-downloads"),value:s.redirect,onChange:l("redirect")}))),(0,r.createElement)("p",{className:"description"},(0,t.__)("This form is a sample view of your registration form. Logged in users will not see it.","easy-digital-downloads")),(0,r.createElement)("form",{id:"edd-blocks-form__register",className:"edd-blocks-form edd-blocks-form__register"},(0,r.createElement)("div",{className:"edd-blocks-form__group edd-blocks-form__group-username"},(0,r.createElement)("label",{htmlFor:"edd_user_register"},(0,t.__)("Username or Email","easy-digital-downloads"),(0,r.createElement)("span",{className:"edd-required-indicator"},"*"),(0,r.createElement)("span",{className:"screen-reader-text"},(0,t.__)("Required","easy-digital-downloads"))),(0,r.createElement)("div",{className:"edd-blocks-form__control"},(0,r.createElement)("input",{name:"edd_user_register",id:"edd_user_register",className:"edd-required edd-input",type:"text",readOnly:!0}))),(0,r.createElement)("div",{className:"edd-blocks-form__group edd-blocks-form__group-email"},(0,r.createElement)("label",{htmlFor:"edd-user-email"},(0,t.__)("Email","easy-digital-downloads"),(0,r.createElement)("span",{className:"edd-required-indicator"},"*"),(0,r.createElement)("span",{className:"screen-reader-text"},(0,t.__)("Required","easy-digital-downloads"))),(0,r.createElement)("div",{className:"edd-blocks-form__control"},(0,r.createElement)("input",{name:"edd-user-email",id:"edd_user_login",className:"edd-password edd-required edd-input",type:"email",readOnly:!0}))),(0,r.createElement)("div",{className:"edd-blocks-form__group edd-blocks-form__group-password"},(0,r.createElement)("label",{htmlFor:"edd-user-pass"},(0,t.__)("Password","easy-digital-downloads"),(0,r.createElement)("span",{className:"edd-required-indicator"},"*"),(0,r.createElement)("span",{className:"screen-reader-text"},(0,t.__)("Required","easy-digital-downloads"))),(0,r.createElement)("div",{className:"edd-blocks-form__control"},(0,r.createElement)("input",{id:"edd-user-pass",className:"password required edd-input",type:"password",name:"edd_user_pass",readOnly:!0}))),(0,r.createElement)("div",{className:"edd-blocks-form__group edd-blocks-form__group-password-confirm"},(0,r.createElement)("label",{htmlFor:"edd-user-pass2"},(0,t.__)("Confirm Password","easy-digital-downloads"),(0,r.createElement)("span",{className:"edd-required-indicator"},"*"),(0,r.createElement)("span",{className:"screen-reader-text"},(0,t.__)("Required","easy-digital-downloads"))),(0,r.createElement)("div",{className:"edd-blocks-form__control"},(0,r.createElement)("input",{id:"edd-user-pass2",className:"password required edd-input",type:"password",name:"edd_user_pass2",readOnly:!0}))),(0,r.createElement)("div",{className:"edd-blocks-form__group edd-blocks-form__group-submit"},(0,r.createElement)(o.Disabled,null,(0,r.createElement)("input",{name:"submit",type:"submit",className:"edd-submit button",label:(0,t.__)("Log In","easy-digital-downloads"),value:(0,t.__)("Log In","easy-digital-downloads")})))))}})}},t={};function o(e){var a=t[e];if(void 0!==a)return a.exports;var s=t[e]={exports:{}};return r[e](s,s.exports,o),s.exports}o.m=r,e=[],o.O=(r,t,a,s)=>{if(!t){var n=1/0;for(i=0;i=s)&&Object.keys(o.O).every((e=>o.O[e](t[d])))?t.splice(d--,1):(l=!1,s0&&e[i-1][2]>s;i--)e[i]=e[i-1];e[i]=[t,a,s]},o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),(()=>{var e={889:0,750:0};o.O.j=r=>0===e[r];var r=(r,t)=>{var a,s,n=t[0],l=t[1],d=t[2],c=0;if(n.some((r=>0!==e[r]))){for(a in l)o.o(l,a)&&(o.m[a]=l[a]);if(d)var i=d(o)}for(r&&r(t);co(883)));a=o.O(a)})(); \ 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 183c0dc8..96bda980 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' => '1028b825bf11c1432c23'); + array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-server-side-render'), 'version' => 'b5c8776e3d561d9f287e'); 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 daaa2aee..92f5975f 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"})),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"}))};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.__)("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 diff --git a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/user-downloads/index.asset.php b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/user-downloads/index.asset.php index 9c3b443a..4667f6b0 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/user-downloads/index.asset.php +++ b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/user-downloads/index.asset.php @@ -1 +1 @@ - array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-server-side-render'), 'version' => '535d394ba6d83f8c0b16'); + array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-server-side-render'), 'version' => '323ff8718132587855ee'); diff --git a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/user-downloads/index.js b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/user-downloads/index.js index 636d9907..0a0435ad 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/user-downloads/index.js +++ b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/user-downloads/index.js @@ -1 +1 @@ -(()=>{"use strict";var e,o={939:(e,o,t)=>{const a=window.wp.blocks,n=window.wp.element,r=window.wp.i18n,l=window.wp.components,s=window.wp.serverSideRender;var i=t.n(s);const d=window.wp.blockEditor,c={edd_blocks_is_block_editor:EDDBlocks.current_user},h=JSON.parse('{"u2":"edd/user-downloads","qv":"admin-links"}'),w={button:(0,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"edd-blocks__icon-downloads"},(0,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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"})),links:(0,n.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,n.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"}))};var m;(0,a.registerBlockType)(h.u2,{icon:(m=h.qv,w[m]),edit:function(e){let{attributes:o,setAttributes:t}=e;const a=e=>o=>t({[e]:o});return(0,n.createElement)("div",(0,d.useBlockProps)(),(0,n.createElement)("p",{className:"description"},(0,r.__)("This is an example of a user's available downloads.","easy-digital-downloads")),EDDBlocks.no_redownload&&(0,n.createElement)("p",{className:"warning"},(0,r.__)('Your store has disabled redownloading files, so your users will not be able to access their files from this block. You can change the "Disable Redownload" setting by visiting Downloads > Settings > Misc > File Downloads.',"easy-digital-downloads")),(0,n.createElement)(d.InspectorControls,null,(0,n.createElement)(l.PanelBody,{title:(0,r.__)("User Download Settings","easy-digital-downloads")},EDDBlocks.is_pro&&(0,n.createElement)(l.ToggleControl,{label:(0,r.__)("Show a Search Form","easy-digital-downloads"),checked:!!o.search,onChange:a("search")}),!EDDBlocks.is_pro&&(0,n.createElement)(l.ToggleControl,{label:(0,r.__)("Show a Search Form","easy-digital-downloads"),checked:"",disabled:"true",help:(0,r.__)("This feature is available in EDD (Pro).","easy-digital-downloads")}),(0,n.createElement)(l.ToggleControl,{label:(0,r.__)("Show Product Variations","easy-digital-downloads"),checked:!!o.variations,onChange:a("variations"),help:(0,r.__)("If your product variations all use the same deliverable files, you may want to disable this.","easy-digital-downloads")}),(0,n.createElement)(l.ToggleControl,{label:(0,r.__)("Hide Products With No Files","easy-digital-downloads"),checked:!!o.hide_empty,onChange:a("hide_empty")}),!o.hide_empty&&(0,n.createElement)(l.TextControl,{label:(0,r.__)("Text to show if there are no files","easy-digital-downloads"),value:o.nofiles,onChange:a("nofiles")}))),(0,n.createElement)(l.Disabled,null,(0,n.createElement)(i(),{block:"edd/user-downloads",attributes:{...o},urlQueryArgs:c})))}})}},t={};function a(e){var n=t[e];if(void 0!==n)return n.exports;var r=t[e]={exports:{}};return o[e](r,r.exports,a),r.exports}a.m=o,e=[],a.O=(o,t,n,r)=>{if(!t){var l=1/0;for(c=0;c=r)&&Object.keys(a.O).every((e=>a.O[e](t[i])))?t.splice(i--,1):(s=!1,r0&&e[c-1][2]>r;c--)e[c]=e[c-1];e[c]=[t,n,r]},a.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return a.d(o,{a:o}),o},a.d=(e,o)=>{for(var t in o)a.o(o,t)&&!a.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},a.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={187:0,35:0};a.O.j=o=>0===e[o];var o=(o,t)=>{var n,r,l=t[0],s=t[1],i=t[2],d=0;if(l.some((o=>0!==e[o]))){for(n in s)a.o(s,n)&&(a.m[n]=s[n]);if(i)var c=i(a)}for(o&&o(t);da(939)));n=a.O(n)})(); \ No newline at end of file +(()=>{"use strict";var e,o={939:(e,o,t)=>{const a=window.wp.blocks,n=window.wp.element,r=window.wp.i18n,l=window.wp.components,s=window.wp.serverSideRender;var i=t.n(s);const d=window.wp.blockEditor,c={edd_blocks_is_block_editor:EDDBlocks.current_user},h=JSON.parse('{"u2":"edd/user-downloads","qv":"admin-links"}'),w={button:(0,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"edd-blocks__icon-downloads"},(0,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,a.registerBlockType)(h.u2,{icon:(m=h.qv,w[m]),edit:function(e){let{attributes:o,setAttributes:t}=e;const a=e=>o=>t({[e]:o});return(0,n.createElement)("div",(0,d.useBlockProps)(),(0,n.createElement)("p",{className:"description"},(0,r.__)("This is an example of a user's available downloads.","easy-digital-downloads")),EDDBlocks.no_redownload&&(0,n.createElement)("p",{className:"warning"},(0,r.__)('Your store has disabled redownloading files, so your users will not be able to access their files from this block. You can change the "Disable Redownload" setting by visiting Downloads > Settings > Misc > File Downloads.',"easy-digital-downloads")),(0,n.createElement)(d.InspectorControls,null,(0,n.createElement)(l.PanelBody,{title:(0,r.__)("User Download Settings","easy-digital-downloads")},EDDBlocks.is_pro&&(0,n.createElement)(l.ToggleControl,{label:(0,r.__)("Show a Search Form","easy-digital-downloads"),checked:!!o.search,onChange:a("search")}),!EDDBlocks.is_pro&&(0,n.createElement)(l.ToggleControl,{label:(0,r.__)("Show a Search Form","easy-digital-downloads"),checked:"",disabled:"true",help:(0,r.__)("This feature is available in EDD (Pro).","easy-digital-downloads")}),(0,n.createElement)(l.ToggleControl,{label:(0,r.__)("Show Product Variations","easy-digital-downloads"),checked:!!o.variations,onChange:a("variations"),help:(0,r.__)("If your product variations all use the same deliverable files, you may want to disable this.","easy-digital-downloads")}),(0,n.createElement)(l.ToggleControl,{label:(0,r.__)("Hide Products With No Files","easy-digital-downloads"),checked:!!o.hide_empty,onChange:a("hide_empty")}),!o.hide_empty&&(0,n.createElement)(l.TextControl,{label:(0,r.__)("Text to show if there are no files","easy-digital-downloads"),value:o.nofiles,onChange:a("nofiles")}))),(0,n.createElement)(l.Disabled,null,(0,n.createElement)(i(),{block:"edd/user-downloads",attributes:{...o},urlQueryArgs:c})))}})}},t={};function a(e){var n=t[e];if(void 0!==n)return n.exports;var r=t[e]={exports:{}};return o[e](r,r.exports,a),r.exports}a.m=o,e=[],a.O=(o,t,n,r)=>{if(!t){var l=1/0;for(c=0;c=r)&&Object.keys(a.O).every((e=>a.O[e](t[i])))?t.splice(i--,1):(s=!1,r0&&e[c-1][2]>r;c--)e[c]=e[c-1];e[c]=[t,n,r]},a.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return a.d(o,{a:o}),o},a.d=(e,o)=>{for(var t in o)a.o(o,t)&&!a.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},a.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={187:0,35:0};a.O.j=o=>0===e[o];var o=(o,t)=>{var n,r,l=t[0],s=t[1],i=t[2],d=0;if(l.some((o=>0!==e[o]))){for(n in s)a.o(s,n)&&(a.m[n]=s[n]);if(i)var c=i(a)}for(o&&o(t);da(939)));n=a.O(n)})(); \ No newline at end of file diff --git a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/user-downloads/style-index.css b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/user-downloads/style-index.css index 763ad74c..073b77ca 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/blocks/build/user-downloads/style-index.css +++ b/wp-content/plugins/easy-digital-downloads/includes/blocks/build/user-downloads/style-index.css @@ -1 +1 @@ -.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-pro-search__control{display:flex;justify-content:flex-end;margin-bottom:2em}.edd-pro-search__control input{max-width:100%;width:300px}.edd-pro-search__hidden{display:none!important}.edd-blocks__row{align-items:center;display:grid;gap:1rem}.edd-blocks__row-label{font-weight:700}@media(min-width:480px){.edd-blocks__row{grid-template-columns:1fr 1fr}.edd-blocks__row>div:last-of-type:not(:first-of-type){text-align:right}.edd-blocks__row>div:only-child{grid-column:1/span 2}}div.edd-blocks__user-downloads{border:1px solid var(--edd-blocks-light-grey);padding:1rem}div.edd-blocks__user-downloads .edd-order-item__product .edd-order-item__files,div.edd-blocks__user-downloads .edd-order-items__header .edd-blocks__row-label{text-align:left}.edd-order-item__product,.edd-order-items__header{border-bottom:1px solid var(--edd-blocks-light-grey);gap:1em;padding:.5em 0}.edd-order-item__product:last-child,.edd-order-items__header:last-child{border-bottom:none;padding-bottom:0}.edd-order-items__header{padding-top:0} +.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-pro-search__control{display:flex;justify-content:flex-end;margin-bottom:2em}.edd-pro-search__control input{max-width:100%;width:300px}.edd-pro-search__hidden{display:none!important}.edd-blocks__row{align-items:center;display:grid;gap:1rem}.edd-blocks__row-label{font-weight:700}@media(min-width:480px){.edd-blocks__row{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.edd-blocks__row>div:last-of-type:not(:first-of-type){text-align:right}.edd-blocks__row>div:only-child{grid-column:1/span 2}}div.edd-blocks__user-downloads{border:1px solid var(--edd-blocks-light-grey);padding:1rem}div.edd-blocks__user-downloads .edd-blocks__row-column{text-align:left}.edd-order-item__product,.edd-order-items__header{border-bottom:1px solid var(--edd-blocks-light-grey);gap:1em;padding:.5em 0}.edd-order-item__product:last-child,.edd-order-items__header:last-child{border-bottom:none;padding-bottom:0}.edd-order-items__header{padding-top:0} 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 bde57a1d..1e0479ff 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.5.1 + * Version: 2.0.6 * Author: Easy Digital Downloads * License: GPL-2.0-or-later * License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -68,12 +68,9 @@ function init_core_blocks() { } if ( edd_is_pro() ) { - $pro_files = array( - 'search', - ); - - foreach ( $pro_files as $file ) { - require_once trailingslashit( EDD_BLOCKS_DIR . 'pro' ) . $file . '.php'; + if ( file_exists( EDD_BLOCKS_DIR . 'pro/pro.php' ) ) { + require_once EDD_BLOCKS_DIR . 'pro/pro.php'; + Pro\init(); } } } 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 a25ce570..fdb7a0f3 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,17 +12,28 @@ add_action( 'enqueue_block_editor_assets', __NAMESPACE__ . '\localize' ); */ function localize() { - $user = wp_get_current_user(); + $user = wp_get_current_user(); + $downloads = new \WP_Query( + array( + 'post_type' => 'download', + 'posts_per_page' => 1, + 'post_status' => 'any', + 'no_found_rows' => true, + ) + ); wp_localize_script( '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(), + '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' ) ), ) ); } diff --git a/wp-content/plugins/easy-digital-downloads/includes/blocks/includes/checkout/forms.php b/wp-content/plugins/easy-digital-downloads/includes/blocks/includes/checkout/forms.php index 49aa89c9..8cd7a524 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/blocks/includes/checkout/forms.php +++ b/wp-content/plugins/easy-digital-downloads/includes/blocks/includes/checkout/forms.php @@ -43,7 +43,7 @@ function get_personal_info_forms( $block_attributes, $customer_info_complete = t if ( ! edd_no_guest_checkout() || ( ! $customer_info_complete && is_user_logged_in() ) ) { $forms['guest'] = $options['guest']; } - if ( ! empty( $block_attributes['show_register_form'] ) ) { + if ( ! empty( $block_attributes['show_register_form'] ) && ! is_user_logged_in() ) { $setting = $block_attributes['show_register_form']; if ( 'both' === $setting ) { $forms['login'] = $options['login']; @@ -76,7 +76,7 @@ function do_personal_info_forms( $block_attributes ) { if ( is_user_logged_in() ) { include EDD_BLOCKS_DIR . 'views/checkout/purchase-form/logged-in.php'; - if ( ! empty( $customer['email'] ) && ! empty( $customer['first_name'] ) ) { + if ( ! empty( $customer['email'] ) && ! empty( $customer['first_name'] ) && ! has_action( 'edd_purchase_form_user_info_fields' ) ) { return; } $customer_info_complete = false; diff --git a/wp-content/plugins/easy-digital-downloads/includes/blocks/includes/downloads/downloads.php b/wp-content/plugins/easy-digital-downloads/includes/blocks/includes/downloads/downloads.php index f38937fe..7d66fe45 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/blocks/includes/downloads/downloads.php +++ b/wp-content/plugins/easy-digital-downloads/includes/blocks/includes/downloads/downloads.php @@ -131,6 +131,8 @@ function buy_button( $block_attributes = array() ) { 'download_id' => get_the_ID(), 'show_price' => true, 'align' => '', + 'direct' => false, + 'text' => edd_get_option( 'add_to_cart_text', __( 'Purchase', 'easy-digital-downloads' ) ), ) ); if ( empty( $block_attributes['download_id'] ) || 'download' !== get_post_type( $block_attributes['download_id'] ) ) { @@ -148,14 +150,19 @@ function buy_button( $block_attributes = array() ) { wp_enqueue_style( 'edd-styles' ); } - $output = sprintf( '
    ', esc_attr( implode( ' ', $classes ) ) ); - $output .= edd_get_purchase_link( - array( - 'class' => implode( ' ', get_purchase_link_classes( $block_attributes ) ), - 'download_id' => absint( $block_attributes['download_id'] ), - 'price' => (bool) $block_attributes['show_price'], - ) + $args = array( + 'class' => implode( ' ', get_purchase_link_classes( $block_attributes ) ), + 'download_id' => absint( $block_attributes['download_id'] ), + 'price' => (bool) $block_attributes['show_price'], + 'text' => $block_attributes['text'], ); + if ( $block_attributes['direct'] && edd_shop_supports_buy_now() ) { + $args['direct'] = true; + $args['text'] = edd_get_option( 'buy_now_text', __( 'Buy Now', 'easy-digital-downloads' ) ); + } + + $output = sprintf( '
    ', esc_attr( implode( ' ', $classes ) ) ); + $output .= edd_get_purchase_link( $args ); $output .= '
    '; add_filter( 'edd_purchase_link_args', __NAMESPACE__ . '\maybe_update_purchase_links', 100 ); diff --git a/wp-content/plugins/easy-digital-downloads/includes/blocks/includes/forms/forms.php b/wp-content/plugins/easy-digital-downloads/includes/blocks/includes/forms/forms.php index c681de43..43cc1b53 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/blocks/includes/forms/forms.php +++ b/wp-content/plugins/easy-digital-downloads/includes/blocks/includes/forms/forms.php @@ -58,7 +58,15 @@ function login( $block_attributes = array() ) { ) ); - $action = ! empty( $_GET['action'] ) ? sanitize_text_field( $_GET['action'] ) : false; + $action = ! empty( $_GET['action'] ) ? sanitize_text_field( $_GET['action'] ) : false; + if ( 'rp' === $action ) { + list( $rp_login, $rp_key ) = explode( ':', wp_unslash( $_COOKIE[ 'wp-resetpass-' . COOKIEHASH ] ), 2 ); + $user = check_password_reset_key( $rp_key, $rp_login ); + if ( ! $user || is_wp_error( $user ) ) { + $action = 'lostpassword'; + edd_set_error( 'invalidkey', __( 'Your password reset link appears to be invalid. Please request a new link below.', 'easy-digital-downloads' ) ); + } + } $block_classes = array( 'wp-block-edd-login' ); if ( $action ) { $block_classes[] = "wp-block-edd-login__{$action}"; @@ -75,7 +83,6 @@ function login( $block_attributes = array() ) { if ( 'lostpassword' === $action ) { include EDD_BLOCKS_DIR . 'views/forms/lost-password.php'; } elseif ( 'rp' === $action ) { - list( $rp_login, $rp_key ) = explode( ':', wp_unslash( $_COOKIE[ 'wp-resetpass-' . COOKIEHASH ] ), 2 ); include EDD_BLOCKS_DIR . 'views/forms/reset-password.php'; } else { $redirect_url = get_redirect_url( $block_attributes, true ); diff --git a/wp-content/plugins/easy-digital-downloads/includes/blocks/includes/orders/orders.php b/wp-content/plugins/easy-digital-downloads/includes/blocks/includes/orders/orders.php index 878c398d..71ee0808 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/blocks/includes/orders/orders.php +++ b/wp-content/plugins/easy-digital-downloads/includes/blocks/includes/orders/orders.php @@ -347,10 +347,25 @@ function downloads( $block_attributes = array() ) { } ?>
    -
    - -
    - + $column ) { + $header = $column['header']; + + $header_classes = array( + 'edd-blocks__row-label', + 'edd-blocks__row-label--' . $column_id, + ); + + if ( ! empty( $header['classes'] ) ) { + $header_classes = array_merge( $header_classes, $header['classes'] ); + } + ?> +
    + +
    +
    array( + 'header' => array(), + 'row' => array( + 'classes' => array( 'edd-blocks__row-label' ), + ), + ), + ); + + if ( ! edd_no_redownload() ) { + $columns['files'] = array( + 'header' => array(), + 'row' => array( + 'classes' => array( 'edd-order-item__files' ), + ), + ); + } + + /** + * Filters the registered User Downloads block columns. + * + * @since 2.0.6 + * + * @param array $columns The registered columns. + * A column should have a unique array key and be an array with two keys 'header' and 'row'. + * Each of these can contain an array key 'classes' which should be an array of classes to add to the header or row. + * + * By default we add base classes as well as the columns array key to the header and row, so developers should only add additional + * classes they want. + * + * Developers will need to hook into the following actions to output the content for the header and column: + * - edd_blocks_user_downloads_block_header_{your_column_key} + * - edd_blocks_user_downloads_block_column_{your_column_key} + * + * @return array + */ + $columns = apply_filters( 'edd_blocks_user_downloads_block_columns', $columns ); + + // Ensure that all registered columns have the required keys. + foreach ( $columns as $column_id => $column ) { + $default_keys = array( + 'header' => array(), + 'row' => array(), + ); + + $columns[ $column_id ] = array_merge( $default_keys, $columns[ $column_id ] ); + } + + return $columns; +} + +/** + * Render the User Downloads block product header + * + * @since 2.0.6 + * + * @param array $block_attributes The block attributes. + */ +function render_user_downloads_product_header( $block_attributes = array() ) { + esc_html_e( 'Product', 'easy-digital-downloads' ); +} +add_action( 'edd_blocks_user_downloads_block_header_product', __NAMESPACE__ . '\render_user_downloads_product_header', 10, 1 ); + +/** + * Render the User Downloads block product column. + * + * @since 2.0.6 + * + * @param array $action_args The action arguments. + */ +function render_user_downloads_product_column( $action_args = array() ) { + echo esc_html( $action_args['name'] ); +} +add_action( 'edd_blocks_user_downloads_block_column_product', __NAMESPACE__ . '\render_user_downloads_product_column', 10, 1 ); + +/** + * Render the User Downloads block files header + * This is only used if the 'Disable Redownload' option is not enabled. + * + * @since 2.0.6 + * + * @param array $block_attributes The block attributes. + */ +function render_user_downloads_files_header( $block_attributes = array() ) { + echo esc_html( __( 'Files', 'easy-digital-downloads' ) ); +} +add_action( 'edd_blocks_user_downloads_block_header_files', __NAMESPACE__ . '\render_user_downloads_files_header', 10, 1 ); + +/** + * Render the User Downloads block files column. + * This is only used if the 'Disable Redownload' option is not enabled. + * + * @since 2.0.6 + * + * @param array $action_args The action arguments. + */ +function render_user_downloads_files_column( $action_args = array() ) { + // If there are no files, return early. + if ( empty( $action_args['download_files'] ) ) { + echo esc_html( $action_args['block_attributes']['nofiles'] ); + } + + foreach ( $action_args['download_files'] as $filekey => $file ) : + $order = $action_args['order']; + $item = $action_args['order_item']; + $download_url = edd_get_download_file_url( $order, $order->email, $filekey, $item->product_id, $item->price_id ); + ?> +
    + + + +
    +
    - +
    diff --git a/wp-content/plugins/easy-digital-downloads/includes/blocks/views/checkout/purchase-form/personal-info.php b/wp-content/plugins/easy-digital-downloads/includes/blocks/views/checkout/purchase-form/personal-info.php index 8722d154..d2b8e24a 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/blocks/views/checkout/purchase-form/personal-info.php +++ b/wp-content/plugins/easy-digital-downloads/includes/blocks/views/checkout/purchase-form/personal-info.php @@ -44,5 +44,13 @@ if ( function_exists( 'EDD_CFM' ) ) { />

    - + diff --git a/wp-content/plugins/easy-digital-downloads/includes/blocks/views/downloads/footer.php b/wp-content/plugins/easy-digital-downloads/includes/blocks/views/downloads/footer.php index 365fd05f..742ad9de 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/blocks/views/downloads/footer.php +++ b/wp-content/plugins/easy-digital-downloads/includes/blocks/views/downloads/footer.php @@ -4,7 +4,8 @@ 'download_id' => get_the_ID(), 'align' => $block_attributes['purchase_link_align'], 'show_price' => (bool) $block_attributes['show_price'], + 'direct' => 'direct' === edd_get_download_button_behavior( get_the_ID() ), ); - echo EDD\Blocks\Downloads\buy_button( $args ); + echo EDD\Blocks\Downloads\buy_button( $args ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> diff --git a/wp-content/plugins/easy-digital-downloads/includes/blocks/views/orders/downloads.php b/wp-content/plugins/easy-digital-downloads/includes/blocks/views/orders/downloads.php index 0dd02e63..5dea3683 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/blocks/views/orders/downloads.php +++ b/wp-content/plugins/easy-digital-downloads/includes/blocks/views/orders/downloads.php @@ -1,5 +1,4 @@ price_id; $download_files = edd_get_download_files( $item->product_id, $item->price_id ); if ( $block_attributes['hide_empty'] && empty( $download_files ) ) { return; @@ -12,28 +11,49 @@ $classes = array( if ( $block_attributes['search'] && edd_is_pro() ) { $classes[] = 'edd-pro-search__product'; } + +$registered_columns = EDD\Blocks\Orders\get_user_downloads_block_columns(); ?>
    -
    + $column ) { + $row = $column['row']; - -
    + $classes = array( + 'edd-blocks__row-column', + 'edd-blocks__row-column--' . $column_id, + ); + + if ( ! empty( $row['classes'] ) ) { + $classes = array_merge( $classes, $row['classes'] ); + } + + ?> +
    $file ) : - $download_url = edd_get_download_file_url( $order, $order->email, $filekey, $item->product_id, $price_id ); - ?> -
    - - - -
    - $name, + 'order_item' => $item, + 'order' => $order, + 'block_attributes' => $block_attributes, + 'download_files' => $download_files, + ); + /** + * Renders a column in the user downloads block. + * + * To add a new column, use the `edd_blocks_user_download_columns` filter. + * + * @since 2.0.6 + * @param array $action_args The arguments to pass to the hook. + * @param string $name The name of the product. + * @param EDD\Orders\Order_Item $item The order item. + * @param EDD\Orders\Order $order The order object. + * @param array $block_attributes The block attributes. + * @param array $download_files The download files. + */ + do_action( 'edd_blocks_user_downloads_block_column_' . $column_id, $action_args ); ?>
    - +
    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 00116e32..5519ac4d 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.3' ); + define( 'EDD_VERSION', '3.1.1.4.2' ); } // Make sure CAL_GREGORIAN is defined. @@ -759,7 +759,6 @@ final class Easy_Digital_Downloads { require_once EDD_PLUGIN_DIR . 'includes/template-actions.php'; require_once EDD_PLUGIN_DIR . 'includes/country-functions.php'; require_once EDD_PLUGIN_DIR . 'includes/extensions/licensing-functions.php'; - require_once EDD_PLUGIN_DIR . 'includes/extensions/ExtensionRegistry.php'; require_once EDD_PLUGIN_DIR . 'includes/date-functions.php'; require_once EDD_PLUGIN_DIR . 'includes/misc-functions.php'; require_once EDD_PLUGIN_DIR . 'includes/discount-functions.php'; 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 580750f2..fdec334b 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 @@ -75,20 +75,20 @@ class EDD_License { $this->item_shortname = 'edd_' . preg_replace( '/[^a-zA-Z0-9_\s]/', '', str_replace( ' ', '_', strtolower( $this->item_name ) ) ); $this->version = $_version; $this->edd_license = new License( $this->item_name, $_optname ); - if ( empty( $this->edd_license->key ) ) { - $this->edd_license = new License( 'pro' ); - if ( ! empty( $this->edd_license->key ) ) { + if ( empty( $_api_url ) && ( empty( $this->edd_license->key ) || empty( $this->edd_license->license ) ) ) { + $pro_license = new License( 'pro' ); + if ( ! empty( $pro_license->key ) ) { $this->is_pro_license = true; + $this->edd_license = $pro_license; } } $this->license = $this->edd_license->key; $this->author = $_author; - $this->api_handler = new API(); - $this->api_url = is_null( $_api_url ) ? $this->api_handler->get_url() : $_api_url; + $this->api_handler = new API( $_api_url ); + $this->api_url = $_api_url; $this->pass_manager = new \EDD\Admin\Pass_Manager(); // Setup hooks - $this->includes(); $this->hooks(); /** @@ -100,7 +100,7 @@ class EDD_License { * * @see \EDD\Admin\Promos\Notices\License_Upgrade_Notice::__construct() */ - if ( ! empty( $this->license ) ) { + if ( ! empty( $this->license ) && is_null( $this->api_url ) ) { global $edd_licensed_products; if ( ! is_array( $edd_licensed_products ) ) { $edd_licensed_products = array(); @@ -115,11 +115,7 @@ class EDD_License { * @access private * @return void */ - private function includes() { - if ( ! class_exists( 'EDD_SL_Plugin_Updater' ) ) { - require_once 'EDD_SL_Plugin_Updater.php'; - } - } + private function includes() {} /** * Setup hooks @@ -130,15 +126,10 @@ class EDD_License { private function hooks() { // Register settings - add_filter( 'edd_settings_licenses', array( $this, 'settings' ), 1 ); - - // Display help text at the top of the Licenses tab - add_action( 'edd_settings_tab_top', array( $this, 'license_help_text' ) ); + add_filter( 'edd_settings_licenses', array( $this, 'settings' ) ); // Check that license is valid once per week - if ( edd_doing_cron() ) { - add_action( 'edd_weekly_scheduled_events', array( $this, 'weekly_license_check' ) ); - } + add_action( 'edd_weekly_scheduled_events', array( $this, 'weekly_license_check' ) ); // For testing license notices, uncomment this line to force checks on every page load //add_action( 'admin_init', array( $this, 'weekly_license_check' ) ); @@ -176,7 +167,7 @@ class EDD_License { $license = $this->license; // Fall back to the highest license key if one is not saved for this extension or there isn't a pro license. - if ( empty( $license ) ) { + if ( empty( $license ) && empty( $this->api_url ) ) { if ( $this->pass_manager->highest_license_key ) { $license = $this->pass_manager->highest_license_key; } @@ -200,9 +191,13 @@ class EDD_License { $args['item_name'] = $this->item_name; } + if ( ! class_exists( 'EDD_SL_Plugin_Updater' ) ) { + require_once 'EDD_SL_Plugin_Updater.php'; + } + // Setup the updater new EDD_SL_Plugin_Updater( - $this->api_url, + is_null( $this->api_url ) ? $this->api_handler->get_url() : $this->api_url, $this->file, $args ); @@ -224,66 +219,13 @@ class EDD_License { 'options' => array( 'is_valid_license_option' => $this->item_shortname . '_license_active', 'item_id' => $this->item_id, + 'api_url' => $this->api_url, ), 'size' => 'regular', ) ) ); } - /** - * Display help text at the top of the Licenses tag - * - * @since 2.5 - * @param string $active_tab - * @return void - */ - public function license_help_text( $active_tab = '' ) { - static $has_ran = false; - - if ( 'licenses' !== $active_tab ) { - return; - } - - if ( ! empty( $has_ran ) ) { - return; - } - - ?> -
    -

    - ', - '' - ); - ?> -

    - pass_manager->highest_license_key ) : ?> -

    - 'edd-settings', - 'tab' => 'general', - ) - ); - printf( - __( 'Have a pass? You\'re ready to set up EDD (Pro). %1$sActivate Your Pass%2$s' ), - '', - '' - ); - ?> -

    - -
    - is_pro_license ) { + if ( $this->is_pro_license && empty( $this->api_url ) ) { return; } @@ -322,7 +264,9 @@ class EDD_License { return false; } - $this->pass_manager->maybe_set_pass_flag( $this->license, $license_data ); + if ( empty( $this->api_url ) ) { + $this->pass_manager->maybe_set_pass_flag( $this->license, $license_data ); + } $this->edd_license->save( $license_data ); } @@ -332,8 +276,6 @@ class EDD_License { * @return void */ public function notices() { - static $showed_invalid_message = false; - if ( empty( $this->license ) ) { return; } @@ -342,28 +284,25 @@ class EDD_License { return; } - $messages = array(); - - $license = $this->edd_license; - - if ( ( empty( $license->license ) || 'valid' !== $license->license ) && empty( $showed_invalid_message ) ) { - if ( empty( $_GET['tab'] ) || 'licenses' !== $_GET['tab'] ) { - - $messages[] = sprintf( - __( 'You have invalid or expired license keys for Easy Digital Downloads. Fix this', 'easy-digital-downloads' ), - esc_url( edd_get_admin_url( array( 'page' => 'edd-settings', 'tab' => 'licenses' ) ) ) - ); - - $showed_invalid_message = true; - } + if ( ! empty( $_GET['tab'] ) && 'licenses' === $_GET['tab'] ) { + return; } - if ( ! empty( $messages ) ) { - foreach( $messages as $message ) { - echo '
    '; - echo '

    ' . $message . '

    '; - echo '
    '; - } + if ( ( empty( $this->edd_license->license ) || 'valid' !== $this->edd_license->license ) ) { + + EDD()->notices->add_notice( + array( + 'id' => 'edd-missing-license', + 'class' => "error {$this->item_shortname}-license-error", + 'message' => sprintf( + /* translators: 1. opening anchor tag; 2. closing anchor tag */ + __( 'You have invalid or expired license keys for Easy Digital Downloads. %1$sActivate License(s)%2$s', 'easy-digital-downloads' ), + '', + '' + ), + 'is_dismissible' => false, + ) + ); } } @@ -568,6 +507,16 @@ class EDD_License { delete_option( $this->item_shortname . '_license_active' ); } } + + /** + * Display help text at the top of the Licenses tag + * + * @since 2.5 + * @deprecated 3.1.1.4 + * @param string $active_tab + * @return void + */ + public function license_help_text( $active_tab = '' ) {} } endif; // end class_exists check diff --git a/wp-content/plugins/easy-digital-downloads/includes/customer-functions.php b/wp-content/plugins/easy-digital-downloads/includes/customer-functions.php index 50b59bdc..201a38ad 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/customer-functions.php +++ b/wp-content/plugins/easy-digital-downloads/includes/customer-functions.php @@ -52,21 +52,8 @@ function edd_add_customer( $data = array() ) { } $customers = new EDD\Database\Queries\Customer(); - $customer_id = $customers->add_item( $data ); - if ( ! empty( $customer_id ) ) { - /** - * Action that runs when a customer is added with the edd_add_customer function. - * - * @since 3.0.4 - * - * @param int $customer_id Customer ID added. - * @param array $data Array of arguments sent to create the customer with. - */ - do_action( 'edd_customer_added', $customer_id, $data ); - } - - return $customer_id; + return $customers->add_item( $data ); } /** @@ -80,20 +67,7 @@ function edd_add_customer( $data = array() ) { function edd_delete_customer( $customer_id = 0 ) { $customers = new EDD\Database\Queries\Customer(); - $customer_deleted = $customers->delete_item( $customer_id ); - - if ( ! empty( $customer_deleted ) ) { - /** - * Action that runs when a customer is deleted with the edd_delete_customer function. - * - * @since 3.0.4 - * - * @param int $customer_id Customer ID being deleted. - */ - do_action( 'edd_customer_deleted', $customer_id ); - } - - return $customer_deleted; + return $customers->delete_item( $customer_id ); } /** @@ -189,23 +163,7 @@ function edd_destroy_customer( $customer_id = 0 ) { function edd_update_customer( $customer_id = 0, $data = array() ) { $customers = new EDD\Database\Queries\Customer(); - $previous_customer_data = edd_get_customer( $customer_id ); - $customer_updated = $customers->update_item( $customer_id, $data ); - - if ( ! empty( $customer_updated ) ) { - /** - * Action that runs when a customer is updated with the edd_update_customer function. - * - * @since 3.0.4 - * - * @param int $customer_id Customer ID updated. - * @param array $data Array of arguments sent to create the customer with. - * @param EDD_Customer $previous_customer_data The customer row before it was updated. - */ - do_action( 'edd_customer_updated', $customer_id, $data, $previous_customer_data ); - } - - return $customer_updated; + return $customers->update_item( $customer_id, $data ); } /** diff --git a/wp-content/plugins/easy-digital-downloads/includes/database/engine/class-query.php b/wp-content/plugins/easy-digital-downloads/includes/database/engine/class-query.php index 9a0ec7f3..f8c59070 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/database/engine/class-query.php +++ b/wp-content/plugins/easy-digital-downloads/includes/database/engine/class-query.php @@ -1794,6 +1794,16 @@ class Query extends Base { // Transition item data $this->transition_item( $save, $item_id ); + /** + * Adds a hook for a successfully added item. + * Custom for EDD. + * + * @since 3.1.1.4 + * @param int $item_id The item id. + * @param array $data The array of data for the update. + */ + do_action( $this->apply_prefix( "{$this->item_name}_added" ), $item_id, $data ); + // Return result return $item_id; } @@ -1819,15 +1829,15 @@ class Query extends Base { $primary = $this->get_primary_column_name(); // Get item to update (from database, not cache) - $item = $this->get_item_raw( $primary, $item_id ); + $item_raw = $this->get_item_raw( $primary, $item_id ); // Bail if item does not exist to update - if ( empty( $item ) ) { + if ( empty( $item_raw ) ) { return false; } // Cast as an array for easier manipulation - $item = (array) $item; + $item = (array) $item_raw; // Unset the primary key from data to parse unset( $data[ $primary ] ); @@ -1877,6 +1887,17 @@ class Query extends Base { // Transition item data $this->transition_item( $save, $item ); + /** + * Adds a hook for a successfully updated item. + * Custom for EDD. + * + * @since 3.1.1.4 + * @param int $item_id The item id. + * @param array $data The array of data for the update. + * @param object $item_raw The original item. + */ + do_action( $this->apply_prefix( "{$this->item_name}_updated" ), $item_id, $data, $item_raw ); + // Return result return $result; } @@ -1930,6 +1951,15 @@ class Query extends Base { $this->delete_all_item_meta( $item_id ); $this->clean_item_cache( $item ); + /** + * Adds a hook for a successfully deleted item. + * Custom for EDD. + * + * @since 3.1.1.4 + * @param int $item_id The item id. + */ + do_action( $this->apply_prefix( "{$this->item_name}_deleted" ), $item_id ); + // Return result return $result; } diff --git a/wp-content/plugins/easy-digital-downloads/includes/database/queries/class-order.php b/wp-content/plugins/easy-digital-downloads/includes/database/queries/class-order.php index 3cd942d9..9439fd07 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/database/queries/class-order.php +++ b/wp-content/plugins/easy-digital-downloads/includes/database/queries/class-order.php @@ -373,6 +373,25 @@ class Order extends Query { return $clauses; } + /** + * When searching by a numeric order number, we need to override the default where clause + * to return orders matching either the ID or order number. + * + * @since 3.1.1.4 + * @param array $clauses + * @return array + */ + public function query_by_order_search( $clauses ) { + global $wpdb; + $clauses['where'] = $wpdb->prepare( + "{$this->table_alias}.id = %d OR {$this->table_alias}.order_number = %d", + absint( $this->query_vars['id'] ), + absint( $this->query_vars['order_number'] ) + ); + + return $clauses; + } + /** * Set the query var defaults for country and region. * @@ -441,6 +460,10 @@ class Order extends Query { 'condition' => ! empty( $query['discount_id'] ), 'callback' => 'query_by_discount_id', ), + array( + 'condition' => ! empty( $query['id'] ) && ! empty( $query['order_number'] ) && $query['id'] === $query['order_number'], + 'callback' => 'query_by_order_search', + ), ); } } diff --git a/wp-content/plugins/easy-digital-downloads/includes/database/schemas/class-orders.php b/wp-content/plugins/easy-digital-downloads/includes/database/schemas/class-orders.php index e1f8fe0e..e0cfbc23 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/database/schemas/class-orders.php +++ b/wp-content/plugins/easy-digital-downloads/includes/database/schemas/class-orders.php @@ -8,9 +8,10 @@ * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License * @since 3.0 */ + namespace EDD\Database\Schemas; -// Exit if accessed directly +// Exit if accessed directly. defined( 'ABSPATH' ) || exit; use EDD\Database\Schema; @@ -30,117 +31,117 @@ class Orders extends Schema { */ public $columns = array( - // id + // id. array( - 'name' => 'id', - 'type' => 'bigint', - 'length' => '20', - 'unsigned' => true, - 'extra' => 'auto_increment', - 'primary' => true, - 'sortable' => true + 'name' => 'id', + 'type' => 'bigint', + 'length' => '20', + 'unsigned' => true, + 'extra' => 'auto_increment', + 'primary' => true, + 'sortable' => true, ), - // parent + // parent. array( - 'name' => 'parent', - 'type' => 'bigint', - 'length' => '20', - 'unsigned' => true, - 'default' => '0', - 'sortable' => true + 'name' => 'parent', + 'type' => 'bigint', + 'length' => '20', + 'unsigned' => true, + 'default' => '0', + 'sortable' => true, ), - // order_number + // order_number. array( 'name' => 'order_number', 'type' => 'varchar', 'length' => '255', 'searchable' => true, - 'sortable' => true + 'sortable' => true, ), - // status + // status. array( 'name' => 'status', 'type' => 'varchar', 'length' => '20', 'default' => 'pending', 'sortable' => true, - 'transition' => true + 'transition' => true, ), - // type + // type. array( - 'name' => 'type', - 'type' => 'varchar', - 'length' => '20', - 'default' => 'sale', - 'sortable' => true + 'name' => 'type', + 'type' => 'varchar', + 'length' => '20', + 'default' => 'sale', + 'sortable' => true, ), - // user_id + // user_id. array( - 'name' => 'user_id', - 'type' => 'bigint', - 'length' => '20', - 'unsigned' => true, - 'default' => '0', - 'sortable' => true + 'name' => 'user_id', + 'type' => 'bigint', + 'length' => '20', + 'unsigned' => true, + 'default' => '0', + 'sortable' => true, ), - // customer_id + // customer_id. array( - 'name' => 'customer_id', - 'type' => 'bigint', - 'length' => '20', - 'unsigned' => true, - 'default' => '0', - 'sortable' => true + 'name' => 'customer_id', + 'type' => 'bigint', + 'length' => '20', + 'unsigned' => true, + 'default' => '0', + 'sortable' => true, ), - // email + // email. array( 'name' => 'email', 'type' => 'varchar', 'length' => '100', 'searchable' => true, - 'sortable' => true - ), - - // ip - array( - 'name' => 'ip', - 'type' => 'varchar', - 'length' => '60', - 'sortable' => true - ), - - // gateway - array( - 'name' => 'gateway', - 'type' => 'varchar', - 'length' => '100', 'sortable' => true, - 'default' => 'manual', ), - // mode + // ip. array( - 'name' => 'mode', - 'type' => 'varchar', - 'length' => '20' + 'name' => 'ip', + 'type' => 'varchar', + 'length' => '60', + 'sortable' => true, ), - // currency + // gateway. array( - 'name' => 'currency', - 'type' => 'varchar', - 'length' => '20', - 'validate' => 'strtoupper', + 'name' => 'gateway', + 'type' => 'varchar', + 'length' => '100', + 'sortable' => true, + 'default' => 'manual', ), - // payment_key + // mode. + array( + 'name' => 'mode', + 'type' => 'varchar', + 'length' => '20', + ), + + // currency. + array( + 'name' => 'currency', + 'type' => 'varchar', + 'length' => '20', + 'validate' => 'strtoupper', + ), + + // payment_key. array( 'name' => 'payment_key', 'type' => 'varchar', @@ -148,7 +149,7 @@ class Orders extends Schema { 'searchable' => true, ), - // tax_rate_id + // tax_rate_id. array( 'name' => 'tax_rate_id', 'type' => 'bigint', @@ -156,100 +157,100 @@ class Orders extends Schema { 'unsigned' => true, 'default' => null, 'allow_null' => true, - 'sortable' => true - ), - - // subtotal - array( - 'name' => 'subtotal', - 'type' => 'decimal', - 'length' => '18,9', - 'default' => '0', 'sortable' => true, - 'validate' => 'edd_sanitize_amount' ), - // discount + // subtotal. array( - 'name' => 'discount', - 'type' => 'decimal', - 'length' => '18,9', - 'default' => '0', - 'sortable' => true, - 'validate' => 'edd_sanitize_amount' + 'name' => 'subtotal', + 'type' => 'decimal', + 'length' => '18,9', + 'default' => '0', + 'sortable' => true, + 'validate' => 'edd_sanitize_amount', ), - // tax + // discount. array( - 'name' => 'tax', - 'type' => 'decimal', - 'length' => '18,9', - 'default' => '0', - 'sortable' => true, - 'validate' => 'edd_sanitize_amount' + 'name' => 'discount', + 'type' => 'decimal', + 'length' => '18,9', + 'default' => '0', + 'sortable' => true, + 'validate' => 'edd_sanitize_amount', ), - // total + // tax. array( - 'name' => 'total', - 'type' => 'decimal', - 'length' => '18,9', - 'default' => '0', - 'sortable' => true, - 'validate' => 'edd_sanitize_amount' + 'name' => 'tax', + 'type' => 'decimal', + 'length' => '18,9', + 'default' => '0', + 'sortable' => true, + 'validate' => 'edd_sanitize_amount', ), - // rate + // total. array( - 'name' => 'rate', - 'type' => 'decimal', - 'length' => '10,5', - 'default' => '1.00000', + 'name' => 'total', + 'type' => 'decimal', + 'length' => '18,9', + 'default' => '0', + 'sortable' => true, + 'validate' => 'edd_sanitize_amount', ), - // date_created + // rate. + array( + 'name' => 'rate', + 'type' => 'decimal', + 'length' => '10,5', + 'default' => '1.00000', + ), + + // date_created. array( 'name' => 'date_created', 'type' => 'datetime', - 'default' => '', // Defaults to current time in query class + 'default' => '', // Defaults to current time in query class. 'created' => true, 'date_query' => true, - 'sortable' => true + 'sortable' => true, ), - // date_modified + // date_modified. array( 'name' => 'date_modified', 'type' => 'datetime', - 'default' => '', // Defaults to current time in query class + 'default' => '', // Defaults to current time in query class. 'modified' => true, 'date_query' => true, - 'sortable' => true + 'sortable' => true, ), - // date_completed + // date_completed. array( 'name' => 'date_completed', 'type' => 'datetime', 'default' => null, 'allow_null' => true, 'date_query' => true, - 'sortable' => true + 'sortable' => true, ), - // date_refundable + // date_refundable. array( 'name' => 'date_refundable', 'type' => 'datetime', 'default' => null, 'allow_null' => true, 'date_query' => true, - 'sortable' => true + 'sortable' => true, ), - // uuid + // uuid. array( - 'uuid' => true, - ) + 'uuid' => true, + ), ); } 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 ff4938e1..8505154b 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/downloads/recalculations.php +++ b/wp-content/plugins/easy-digital-downloads/includes/downloads/recalculations.php @@ -33,7 +33,7 @@ function edd_maybe_schedule_download_recalculation( $download_id ) { // Check if the recalculation has already been scheduled. if ( $is_scheduled && ! $bypass_cron ) { - edd_debug_log( 'Recalculation is already scheduled for ' . $download_id . ' at ' . edd_date_i18n( $is_scheduled, 'datetime' ) ); + edd_debug_log( 'Recalculation is already scheduled for product ' . $download_id . ' at ' . edd_date_i18n( $is_scheduled, 'datetime' ) ); return; } @@ -43,7 +43,7 @@ function edd_maybe_schedule_download_recalculation( $download_id ) { return; } - edd_debug_log( 'Scheduling recalculation for ' . $download_id ); + edd_debug_log( 'Scheduling recalculation for product ' . $download_id ); wp_schedule_single_event( time() + ( 5 * MINUTE_IN_SECONDS ), 'edd_recalculate_download_sales_earnings_deferred', diff --git a/wp-content/plugins/easy-digital-downloads/includes/emails/email-summary/class-edd-email-summary.php b/wp-content/plugins/easy-digital-downloads/includes/emails/email-summary/class-edd-email-summary.php index 3b4d96d5..4aa82d7e 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/emails/email-summary/class-edd-email-summary.php +++ b/wp-content/plugins/easy-digital-downloads/includes/emails/email-summary/class-edd-email-summary.php @@ -57,8 +57,7 @@ class EDD_Email_Summary { public function __construct( $test_mode = false ) { $this->test_mode = $test_mode; $this->email_options = array( - 'email_summary_frequency' => edd_get_option( 'email_summary_frequency', 'weekly' ), - 'email_summary_start_of_week' => jddayofweek( (int) get_option( 'start_of_week' ) - 1, 1 ), + 'email_summary_frequency' => edd_get_option( 'email_summary_frequency', 'weekly' ), ); } @@ -416,5 +415,4 @@ class EDD_Email_Summary { return $email_sent; } - } diff --git a/wp-content/plugins/easy-digital-downloads/includes/gateways/paypal/checkout-actions.php b/wp-content/plugins/easy-digital-downloads/includes/gateways/paypal/checkout-actions.php index f280401e..4f9a52a4 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/gateways/paypal/checkout-actions.php +++ b/wp-content/plugins/easy-digital-downloads/includes/gateways/paypal/checkout-actions.php @@ -109,6 +109,11 @@ add_action( 'edd_checkout_user_error_checks', __NAMESPACE__ . '\send_ajax_errors * @return void */ function create_order( $purchase_data ) { + + if ( ! wp_verify_nonce( $purchase_data['gateway_nonce'], 'edd-gateway' ) ) { + wp_die( __( 'Nonce verification has failed', 'easy-digital-downloads' ), __( 'Error', 'easy-digital-downloads' ), array( 'response' => 403 ) ); + } + edd_debug_log( 'PayPal - create_order()' ); if ( ! ready_to_accept_payments() ) { diff --git a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/assets/css/build/paymentelements.min.css b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/assets/css/build/paymentelements.min.css index 14978ba8..a59c0e86 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/assets/css/build/paymentelements.min.css +++ b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/assets/css/build/paymentelements.min.css @@ -1,3 +1,3 @@ -#edd-stripe-card-errors:not(:empty){margin:20px 0 0}:root{--edds-modal-grid-unit: 1rem;--edds-modal-overlay: rgba(0, 0, 0, 0.60)}.edds-modal__overlay{z-index:9999;position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0, 0, 0, 0.60);background:var(--edds-modal-overlay);display:flex;justify-content:center;align-items:center}.edds-modal__container{background-color:#fff;min-width:350px;max-width:90vw;max-height:90vh;box-sizing:border-box;overflow-y:auto}.admin-bar .edds-modal__container{margin-top:32px}.edds-modal__header{padding:calc(1rem*1.5);padding:calc(var(--edds-modal-grid-unit)*1.5);display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;z-index:2;background:#fff;border-bottom:1px solid #eee}.edds-modal__title{text-align:left;font-size:150%;margin:0}.edds-modal__close{line-height:1;padding:1rem}.edds-modal__close:before{content:"✕"}.edds-modal__content{margin:calc(1rem*1.5);margin:calc(var(--edds-modal-grid-unit)*1.5)}@keyframes eddsSlideIn{from{transform:translateY(15%)}to{transform:translateY(0)}}@keyframes eddsSlideOut{from{transform:translateY(0)}to{transform:translateY(15%)}}.edds-modal.has-slide{display:none}.edds-modal.has-slide.is-open{display:block}.edds-modal.has-slide[aria-hidden=false] .edds-modal__container{animation:eddsSlideIn .3s cubic-bezier(0, 0, 0.2, 1)}.edds-modal.has-slide[aria-hidden=true] .edds-modal__container{animation:eddsSlideOut .3s cubic-bezier(0, 0, 0.2, 1)}.edds-modal.has-slide .edds-modal__container,.edds-modal.has-slide .edds-modal__overlay{will-change:transform}.edds-buy-now-modal{width:500px}.edds-buy-now-modal .edds-modal__close{padding:.5rem}.edds-buy-now-modal #edd_checkout_form_wrap input.edd-input,.edds-buy-now-modal #edd_checkout_form_wrap textarea.edd-input{width:100%}.edds-buy-now-modal #edd_checkout_form_wrap #edd_purchase_submit{margin-top:1.5rem;margin-bottom:0}.edds-buy-now-modal .edds-field-spacer-shim{margin-bottom:1rem}.edds-buy-now-modal .edd-alert-error{margin:20px 0}.edds-buy-now-modal #edd-stripe-card-errors:not(:empty){margin-bottom:20px}.edds-buy-now-modal #edd-stripe-card-errors:not(:empty) .edd-alert-error{margin:0}#edd_purchase_submit #edd-purchase-button[data-edd-button-state=disabled]{opacity:.5;cursor:not-allowed}#edd_purchase_submit #edd-purchase-button[data-edd-button-state=updating],#edd_purchase_submit #edd-purchase-button [data-edd-button-state=processing]{opacity:.5;cursor:wait} +#edd-stripe-card-errors:not(:empty){margin:20px 0 0}:root{--edds-modal-grid-unit: 1rem;--edds-modal-overlay: rgba(0, 0, 0, 0.60)}.edds-modal__overlay{z-index:9999;position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0, 0, 0, 0.60);background:var(--edds-modal-overlay);display:flex;justify-content:center;align-items:center}.edds-modal__container{background-color:#fff;min-width:350px;max-width:90vw;max-height:90vh;box-sizing:border-box;overflow-y:auto}.admin-bar .edds-modal__container{margin-top:32px}.edds-modal__header{padding:calc(1rem*1.5);padding:calc(var(--edds-modal-grid-unit)*1.5);display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;z-index:2;background:#fff;border-bottom:1px solid #eee}.edds-modal__title{text-align:left;font-size:150%;margin:0}.edds-modal__close{line-height:1;padding:1rem}.edds-modal__close:before{content:"✕"}.edds-modal__content{margin:calc(1rem*1.5);margin:calc(var(--edds-modal-grid-unit)*1.5)}@keyframes eddsSlideIn{from{transform:translateY(15%)}to{transform:translateY(0)}}@keyframes eddsSlideOut{from{transform:translateY(0)}to{transform:translateY(15%)}}.edds-modal.has-slide{display:none}.edds-modal.has-slide.is-open{display:block}.edds-modal.has-slide[aria-hidden=false] .edds-modal__container{animation:eddsSlideIn .3s cubic-bezier(0, 0, 0.2, 1)}.edds-modal.has-slide[aria-hidden=true] .edds-modal__container{animation:eddsSlideOut .3s cubic-bezier(0, 0, 0.2, 1)}.edds-modal.has-slide .edds-modal__container,.edds-modal.has-slide .edds-modal__overlay{will-change:transform}.edds-buy-now-modal{width:500px}.edds-buy-now-modal .edds-modal__close{padding:.5rem}.edds-buy-now-modal #edd_checkout_form_wrap input.edd-input,.edds-buy-now-modal #edd_checkout_form_wrap textarea.edd-input{width:100%}.edds-buy-now-modal #edd_checkout_form_wrap #edd_purchase_submit{margin-top:1.5rem;margin-bottom:0}.edds-buy-now-modal .edds-field-spacer-shim{margin-bottom:1rem}.edds-buy-now-modal .edd-alert-error{margin:20px 0}.edds-buy-now-modal #edd-stripe-card-errors:not(:empty){margin-bottom:20px}.edds-buy-now-modal #edd-stripe-card-errors:not(:empty) .edd-alert-error{margin:0}#edd_purchase_submit #edd-purchase-button[data-edd-button-state=disabled]{opacity:.5;cursor:not-allowed}#edd_purchase_submit #edd-purchase-button[data-edd-button-state=updating],#edd_purchase_submit #edd-purchase-button [data-edd-button-state=processing]{opacity:.5;cursor:wait}#card_name,.card-name{padding:8px !important;width:100% !important;box-sizing:border-box} /*# sourceMappingURL=paymentelements.min.css.map*/ \ No newline at end of file diff --git a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/assets/css/build/paymentelements.min.css.map b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/assets/css/build/paymentelements.min.css.map index 75b98f72..b242d901 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/assets/css/build/paymentelements.min.css.map +++ b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/assets/css/build/paymentelements.min.css.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///./assets/css/src/payment-elements.scss"],"names":[],"mappings":"AAAA,oCAAoC,gBAAgB,MAAM,6BAA6B,0CAA0C,qBAAqB,aAAa,eAAe,MAAM,OAAO,QAAQ,SAAS,+BAA+B,qCAAqC,aAAa,uBAAuB,mBAAmB,uBAAuB,sBAAsB,gBAAgB,eAAe,gBAAgB,sBAAsB,gBAAgB,kCAAkC,gBAAgB,oBAAoB,uBAAuB,8CAA8C,aAAa,8BAA8B,mBAAmB,gBAAgB,MAAM,UAAU,gBAAgB,6BAA6B,mBAAmB,gBAAgB,eAAe,SAAS,mBAAmB,cAAc,aAAa,0BAA0B,YAAY,qBAAqB,sBAAsB,6CAA6C,uBAAuB,KAAK,0BAA0B,GAAG,yBAAyB,wBAAwB,KAAK,wBAAwB,GAAG,2BAA2B,sBAAsB,aAAa,8BAA8B,cAAc,gEAAgE,qDAAqD,+DAA+D,sDAAsD,wFAAwF,sBAAsB,oBAAoB,YAAY,uCAAuC,cAAc,2HAA2H,WAAW,iEAAiE,kBAAkB,gBAAgB,4CAA4C,mBAAmB,qCAAqC,cAAc,wDAAwD,mBAAmB,yEAAyE,SAAS,0EAA0E,WAAW,mBAAmB,uJAAuJ,WAAW,Y","file":"assets/css/build/paymentelements.min.css","sourcesContent":["#edd-stripe-card-errors:not(:empty){margin:20px 0 0}:root{--edds-modal-grid-unit: 1rem;--edds-modal-overlay: rgba(0, 0, 0, 0.60)}.edds-modal__overlay{z-index:9999;position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0, 0, 0, 0.60);background:var(--edds-modal-overlay);display:flex;justify-content:center;align-items:center}.edds-modal__container{background-color:#fff;min-width:350px;max-width:90vw;max-height:90vh;box-sizing:border-box;overflow-y:auto}.admin-bar .edds-modal__container{margin-top:32px}.edds-modal__header{padding:calc(1rem*1.5);padding:calc(var(--edds-modal-grid-unit)*1.5);display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;z-index:2;background:#fff;border-bottom:1px solid #eee}.edds-modal__title{text-align:left;font-size:150%;margin:0}.edds-modal__close{line-height:1;padding:1rem}.edds-modal__close:before{content:\"✕\"}.edds-modal__content{margin:calc(1rem*1.5);margin:calc(var(--edds-modal-grid-unit)*1.5)}@keyframes eddsSlideIn{from{transform:translateY(15%)}to{transform:translateY(0)}}@keyframes eddsSlideOut{from{transform:translateY(0)}to{transform:translateY(15%)}}.edds-modal.has-slide{display:none}.edds-modal.has-slide.is-open{display:block}.edds-modal.has-slide[aria-hidden=false] .edds-modal__container{animation:eddsSlideIn .3s cubic-bezier(0, 0, 0.2, 1)}.edds-modal.has-slide[aria-hidden=true] .edds-modal__container{animation:eddsSlideOut .3s cubic-bezier(0, 0, 0.2, 1)}.edds-modal.has-slide .edds-modal__container,.edds-modal.has-slide .edds-modal__overlay{will-change:transform}.edds-buy-now-modal{width:500px}.edds-buy-now-modal .edds-modal__close{padding:.5rem}.edds-buy-now-modal #edd_checkout_form_wrap input.edd-input,.edds-buy-now-modal #edd_checkout_form_wrap textarea.edd-input{width:100%}.edds-buy-now-modal #edd_checkout_form_wrap #edd_purchase_submit{margin-top:1.5rem;margin-bottom:0}.edds-buy-now-modal .edds-field-spacer-shim{margin-bottom:1rem}.edds-buy-now-modal .edd-alert-error{margin:20px 0}.edds-buy-now-modal #edd-stripe-card-errors:not(:empty){margin-bottom:20px}.edds-buy-now-modal #edd-stripe-card-errors:not(:empty) .edd-alert-error{margin:0}#edd_purchase_submit #edd-purchase-button[data-edd-button-state=disabled]{opacity:.5;cursor:not-allowed}#edd_purchase_submit #edd-purchase-button[data-edd-button-state=updating],#edd_purchase_submit #edd-purchase-button [data-edd-button-state=processing]{opacity:.5;cursor:wait}"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack:///./assets/css/src/payment-elements.scss"],"names":[],"mappings":"AAAA,oCAAoC,gBAAgB,MAAM,6BAA6B,0CAA0C,qBAAqB,aAAa,eAAe,MAAM,OAAO,QAAQ,SAAS,+BAA+B,qCAAqC,aAAa,uBAAuB,mBAAmB,uBAAuB,sBAAsB,gBAAgB,eAAe,gBAAgB,sBAAsB,gBAAgB,kCAAkC,gBAAgB,oBAAoB,uBAAuB,8CAA8C,aAAa,8BAA8B,mBAAmB,gBAAgB,MAAM,UAAU,gBAAgB,6BAA6B,mBAAmB,gBAAgB,eAAe,SAAS,mBAAmB,cAAc,aAAa,0BAA0B,YAAY,qBAAqB,sBAAsB,6CAA6C,uBAAuB,KAAK,0BAA0B,GAAG,yBAAyB,wBAAwB,KAAK,wBAAwB,GAAG,2BAA2B,sBAAsB,aAAa,8BAA8B,cAAc,gEAAgE,qDAAqD,+DAA+D,sDAAsD,wFAAwF,sBAAsB,oBAAoB,YAAY,uCAAuC,cAAc,2HAA2H,WAAW,iEAAiE,kBAAkB,gBAAgB,4CAA4C,mBAAmB,qCAAqC,cAAc,wDAAwD,mBAAmB,yEAAyE,SAAS,0EAA0E,WAAW,mBAAmB,uJAAuJ,WAAW,YAAY,sBAAsB,uBAAuB,sBAAsB,sB","file":"assets/css/build/paymentelements.min.css","sourcesContent":["#edd-stripe-card-errors:not(:empty){margin:20px 0 0}:root{--edds-modal-grid-unit: 1rem;--edds-modal-overlay: rgba(0, 0, 0, 0.60)}.edds-modal__overlay{z-index:9999;position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0, 0, 0, 0.60);background:var(--edds-modal-overlay);display:flex;justify-content:center;align-items:center}.edds-modal__container{background-color:#fff;min-width:350px;max-width:90vw;max-height:90vh;box-sizing:border-box;overflow-y:auto}.admin-bar .edds-modal__container{margin-top:32px}.edds-modal__header{padding:calc(1rem*1.5);padding:calc(var(--edds-modal-grid-unit)*1.5);display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;z-index:2;background:#fff;border-bottom:1px solid #eee}.edds-modal__title{text-align:left;font-size:150%;margin:0}.edds-modal__close{line-height:1;padding:1rem}.edds-modal__close:before{content:\"✕\"}.edds-modal__content{margin:calc(1rem*1.5);margin:calc(var(--edds-modal-grid-unit)*1.5)}@keyframes eddsSlideIn{from{transform:translateY(15%)}to{transform:translateY(0)}}@keyframes eddsSlideOut{from{transform:translateY(0)}to{transform:translateY(15%)}}.edds-modal.has-slide{display:none}.edds-modal.has-slide.is-open{display:block}.edds-modal.has-slide[aria-hidden=false] .edds-modal__container{animation:eddsSlideIn .3s cubic-bezier(0, 0, 0.2, 1)}.edds-modal.has-slide[aria-hidden=true] .edds-modal__container{animation:eddsSlideOut .3s cubic-bezier(0, 0, 0.2, 1)}.edds-modal.has-slide .edds-modal__container,.edds-modal.has-slide .edds-modal__overlay{will-change:transform}.edds-buy-now-modal{width:500px}.edds-buy-now-modal .edds-modal__close{padding:.5rem}.edds-buy-now-modal #edd_checkout_form_wrap input.edd-input,.edds-buy-now-modal #edd_checkout_form_wrap textarea.edd-input{width:100%}.edds-buy-now-modal #edd_checkout_form_wrap #edd_purchase_submit{margin-top:1.5rem;margin-bottom:0}.edds-buy-now-modal .edds-field-spacer-shim{margin-bottom:1rem}.edds-buy-now-modal .edd-alert-error{margin:20px 0}.edds-buy-now-modal #edd-stripe-card-errors:not(:empty){margin-bottom:20px}.edds-buy-now-modal #edd-stripe-card-errors:not(:empty) .edd-alert-error{margin:0}#edd_purchase_submit #edd-purchase-button[data-edd-button-state=disabled]{opacity:.5;cursor:not-allowed}#edd_purchase_submit #edd-purchase-button[data-edd-button-state=updating],#edd_purchase_submit #edd-purchase-button [data-edd-button-state=processing]{opacity:.5;cursor:wait}#card_name,.card-name{padding:8px !important;width:100% !important;box-sizing:border-box}"],"sourceRoot":""} \ 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 0125b9bc..be14869c 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 m}));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,g,w,_,S,j,O,x,P,E,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(m()){t.next=4;break}return t.abrupt("return",!1);case 4:if(r.preventDefault(),p(),n=Object(u.b)(document.getElementById("edd_purchase_form")),o="","apple_pay"!==window.eddStripe.paymentMethodType){t.next=14;break}return t.next=11,b(n);case 11:i=t.sent,c=i.paymentMethod.id,o=c;case 14:return t.prev=14,t.next=17,d(o);case 17:return s=t.sent,l=s.token,h=s.client_secret,g=s.intent_type,w=s.intent_fingerprint,_=s.intent_id,window.eddStripe.intentType=g,window.eddStripe.intentFingerprint=w,window.eddStripe.intentId=_,e("#edd-process-checkout-nonce").val(l),S="PaymentIntent"===g?"confirmPayment":"confirmSetup",j={clientSecret:h,confirmParams:{},redirect:"if_required"},"apple_pay"===window.eddStripe.paymentMethodType?j.confirmParams.payment_method=o:(j.elements=window.eddStripe.configuredElement,j.confirmParams.payment_method_data={billing_details:n}),t.next=32,window.eddStripe[S](j);case 32:if(O=t.sent,!(x=O.error)){t.next=38;break}return v(x),y(),t.abrupt("return",!1);case 38:return t.next=40,f();case 40:P=t.sent,E=P.intent,k=P.nonce,e("#edd-process-checkout-nonce").val(k),"succeeded"===E.status?window.location.replace(edd_stripe_vars.successPageUri):window.location.replace(edd_stripe_vars.failurePageUri),t.next=52;break;case 47:return t.prev=47,t.t0=t.catch(14),v(t.t0),y(),t.abrupt("return",!1);case 52:case"end":return t.stop()}}),t,null,[[14,47]])})));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_id: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(){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(t){console.log(t);var r=t.code,n=t.message,o=(t.type,window.edd_stripe_vars.elementsCustomizations.i18n.errorMessages);n||(n=edd_stripe_vars.generic_error);var i=r&&o[r]?o[r]:n,a=Object(c.g)(i);r&&"incomplete"!==r&&Object(c.a)("edds_payment_elements_rate_limit_tick"),e(".edd-stripe-alert").remove(),e(edd_global_vars.checkout_error_anchor).before(a),e(document.body).trigger("edd_checkout_error",[t]),"incomplete"===r&&e(".edd-stripe-alert").removeClass("edd-alert-error").addClass("edd-alert-warn"),window.console&&t.responseText&&window.console.error(t.responseText),h(!1)}function m(){var e=document.getElementById("edd_purchase_form");return"function"!=typeof e.checkValidity||!1!==e.checkValidity()||(e.reportValidity(),h(),!1)}function b(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}))}}).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,locale:edd_stripe_vars.locale,currency:edd_stripe_vars.currency.toLowerCase(),loader:"always",appearance:r,fonts:n};h.paymentMethodTypes.length?o.payment_method_types=h.paymentMethodTypes:o.automatic_payment_methods={enabled:!0},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:{billingDetails:{name:"auto",email:"never",phone:"never",address:"never"}},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}}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,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),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: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=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 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 ff47fc00..aa724f13 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 @@ -2,8 +2,8 @@ /** * Plugin Name: Easy Digital Downloads - Stripe Pro Payment Gateway * Plugin URI: https://easydigitaldownloads.com/downloads/stripe-gateway/ - * Description: Adds a payment gateway for Stripe.com - * Version: 2.9.2.1 + * Description: Adds support for pre-authorized credit card payments and removes additional transaction fees. + * Version: 2.9.2.2 * 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.1' ); + define( 'EDD_STRIPE_VERSION', '2.9.2.2' ); } if ( ! defined( 'EDD_STRIPE_API_VERSION' ) ) { 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 66584627..c869ec14 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 @@ -26,14 +26,14 @@ add_filter( 'edd_settings_sections_gateways', 'edds_settings_section' ); */ function edds_add_settings( $settings ) { $stripe_settings = array( - 'stripe_connect_button' => array( + 'stripe_connect_button' => array( 'id' => 'stripe_connect_button', 'name' => __( 'Connection Status', 'easy-digital-downloads' ), 'desc' => edds_stripe_connect_setting_field(), 'type' => 'descriptive_text', 'class' => 'edd-stripe-connect-row', ), - 'test_publishable_key' => array( + 'test_publishable_key' => array( 'id' => 'test_publishable_key', 'name' => __( 'Test Publishable Key', 'easy-digital-downloads' ), 'desc' => __( 'Enter your test publishable key, found in your Stripe Account Settings', 'easy-digital-downloads' ), @@ -49,7 +49,7 @@ function edds_add_settings( $settings ) { 'size' => 'regular', 'class' => 'edd-hidden edds-api-key-row', ), - 'live_publishable_key' => array( + 'live_publishable_key' => array( 'id' => 'live_publishable_key', 'name' => __( 'Live Publishable Key', 'easy-digital-downloads' ), 'desc' => __( 'Enter your live publishable key, found in your Stripe Account Settings', 'easy-digital-downloads' ), @@ -57,7 +57,7 @@ function edds_add_settings( $settings ) { 'size' => 'regular', 'class' => 'edd-hidden edds-api-key-row', ), - 'live_secret_key' => array( + 'live_secret_key' => array( 'id' => 'live_secret_key', 'name' => __( 'Live Secret Key', 'easy-digital-downloads' ), 'desc' => __( 'Enter your live secret key, found in your Stripe Account Settings', 'easy-digital-downloads' ), @@ -65,7 +65,7 @@ function edds_add_settings( $settings ) { 'size' => 'regular', 'class' => 'edd-hidden edds-api-key-row', ), - 'stripe_webhook_description' => array( + 'stripe_webhook_description' => array( 'id' => 'stripe_webhook_description', 'type' => 'descriptive_text', 'name' => __( 'Webhooks', 'easy-digital-downloads' ), @@ -93,7 +93,7 @@ function edds_add_settings( $settings ) { ) . '

    ', ), - 'stripe_billing_fields' => array( + 'stripe_billing_fields' => array( 'id' => 'stripe_billing_fields', 'name' => __( 'Billing Address Display', 'easy-digital-downloads' ), 'desc' => __( 'Select how you would like to display the billing address fields on the checkout form.

    Notes:

    If taxes are enabled, this option cannot be changed from "Full address".

    If set to "No address fields", you must disable "zip code verification" in your Stripe account.

    ', 'easy-digital-downloads' ), @@ -105,13 +105,13 @@ function edds_add_settings( $settings ) { 'none' => __( 'No address fields', 'easy-digital-downloads' ), ), ), - 'stripe_statement_descriptor' => array( + 'stripe_statement_descriptor' => array( 'id' => 'stripe_statement_descriptor', 'name' => __( 'Statement Descriptor', 'easy-digital-downloads' ), 'desc' => __( 'Choose how charges will appear on customer\'s credit card statements. Max 22 characters', 'easy-digital-downloads' ), 'type' => 'text', ), - 'stripe_restrict_assets' => array( + 'stripe_restrict_assets' => array( 'id' => 'stripe_restrict_assets', 'name' => ( __( 'Restrict Stripe Assets', 'easy-digital-downloads' ) ), 'check' => ( __( 'Only load Stripe.com hosted assets on pages that specifically utilize Stripe functionality.', 'easy-digital-downloads' ) ), diff --git a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/class-edd-stripe-rate-limiting.php b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/class-edd-stripe-rate-limiting.php index df8de300..2559c497 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/class-edd-stripe-rate-limiting.php +++ b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/class-edd-stripe-rate-limiting.php @@ -420,4 +420,17 @@ class EDD_Stripe_Rate_Limiting { } } + /** + * Get the error message to display when the card error limit has been hit. + * + * @since 2.9.2.2 + * @return string The error message. + */ + public function get_rate_limit_error_message() { + return esc_html__( + 'We are unable to process your payment at this time, please try again later or contact support.', + 'easy-digital-downloads' + ); + } + } 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 5a07dd43..4ff5f56c 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 @@ -36,6 +36,22 @@ class EDD_Stripe { */ public $rate_limiting; + /** + * Has Regional Support. + * + * @since 2.9.2.2 + * @var bool + */ + public $has_regional_support = false; + + /** + * Regional Support class. + * + * @since 2.9.2.2 + * @var EDD_Stripe_Country_Base + */ + public $regional_support; + /** * Instantiates or returns the singleton instance. * @@ -52,27 +68,15 @@ class EDD_Stripe { self::$instance->filters(); if ( true === edds_is_pro() ) { - if ( class_exists( '\\EDD\\Extensions\\ExtensionRegistry' ) ) { - add_action( 'edd_extension_license_init', function( \EDD\Extensions\ExtensionRegistry $registry ) { - $registry->addExtension( - EDD_STRIPE_PLUGIN_FILE, - 'Stripe Pro Payment Gateway', - 167, - EDD_STRIPE_VERSION, - 'stripe_license_key' - ); - } ); - } elseif ( class_exists( 'EDD_License' ) ) { - new EDD_License( + add_action( 'edd_extension_license_init', function( \EDD\Extensions\ExtensionRegistry $registry ) { + $registry->addExtension( EDD_STRIPE_PLUGIN_FILE, 'Stripe Pro Payment Gateway', + 167, EDD_STRIPE_VERSION, - 'Easy Digital Downloads', - 'stripe_license_key', - null, - 167 + 'stripe_license_key' ); - } + } ); } } @@ -173,6 +177,9 @@ class EDD_Stripe { require_once EDDS_PLUGIN_DIR . '/includes/integrations/edd-auto-register.php'; } + // Load Regional Support. + $this->load_regional_support(); + // Pro. $pro = EDDS_PLUGIN_DIR . '/includes/pro/index.php'; @@ -293,4 +300,33 @@ class EDD_Stripe { return $gateways; } + /** + * Loads regional support. + * + * @since 2.9.2.2 + */ + private function load_regional_support() { + + $base_country = edd_get_option( 'base_country', 'US' ); + $regions_needing_support = array( 'IN' ); + if ( ! in_array( $base_country, $regions_needing_support, true ) ) { + return; + } + + $possible_region_file = 'class-edd-stripe-region-' . strtolower( $base_country ) . '.php'; + $possible_region_path = EDDS_PLUGIN_DIR . 'includes/utils/regional-support/' . $possible_region_file; + if ( ! file_exists( $possible_region_path ) ) { + return; + } + + // Regional Support is needed. + require_once EDDS_PLUGIN_DIR . 'includes/utils/regional-support/class-edd-stripe-region-base.php'; + require_once $possible_region_path; + $possible_region_class = 'EDD_Stripe_Region_' . strtoupper( $base_country ); + if ( class_exists( $possible_region_class ) ) { + $this->has_regional_support = true; + require_once EDDS_PLUGIN_DIR . 'includes/utils/regional-support/' . $possible_region_file; + $this->regional_support = new $possible_region_class(); + } + } } 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 c9bb1af9..0b65117c 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 @@ -20,7 +20,7 @@ function edds_get_stripe_payment_elements_theme() { * * @link https://stripe.com/docs/elements/appearance-api#theme * - * @see assets/js/src/frontend/payment-elements/index.php::generateElementStyles + * @see assets/js/src/frontend/payment-elements/index.js::generateElementStyles * * @param array $payment_elements_theme The theme to use for the Payment Element object. */ @@ -42,7 +42,7 @@ function edds_get_stripe_payment_elements_variables() { * * @link https://stripe.com/docs/elements/appearance-api?platform=web#variables * - * @see assets/js/src/frontend/payment-elements/index.php::generateElementStyles + * @see assets/js/src/frontend/payment-elements/index.js::generateElementStyles * * @param array $payment_elements_variables Variables used for the Payment Elements. */ @@ -95,7 +95,7 @@ function edds_get_stripe_payment_elements_layout() { * * @link https://stripe.com/docs/js/elements_object/create_payment_element#payment_element_create-options-layout * - * @see assets/js/src/frontend/payment-elements/index.php::generateElementStyles + * @see assets/js/src/frontend/payment-elements/index.js::generateElementStyles * * @param array $payment_elements_layout Layout values used to create Stripe Elements object. */ @@ -121,7 +121,7 @@ function edds_get_stripe_payment_elements_wallets() { * * @link https://stripe.com/docs/js/elements_object/create_payment_element#payment_element_create-options-wallets * - * @see assets/js/src/frontend/payment-elements/index.php::generateElementStyles + * @see assets/js/src/frontend/payment-elements/index.js::generateElementStyles * * @param bool If wallets should be disabled. */ @@ -151,7 +151,7 @@ function edds_get_stripe_payment_elements_wallets() { * * @link https://stripe.com/docs/js/elements_object/create_payment_element#payment_element_create-options-wallets * - * @see assets/js/src/frontend/payment-elements/index.php::generateElementStyles + * @see assets/js/src/frontend/payment-elements/index.js::generateElementStyles * * @param array $enabled_wallets Allowed wallets payment methods ot use on the Payment Element. */ @@ -177,7 +177,7 @@ function edds_get_stripe_payment_elements_label_style() { * * @link https://stripe.com/docs/elements/appearance-api?platform=web#others * - * @see assets/js/src/frontend/payment-elements/index.php::generateElementStyles + * @see assets/js/src/frontend/payment-elements/index.js::generateElementStyles * * @param array $label_style The style to use for the Payment Elements labels. */ @@ -204,7 +204,7 @@ function edds_get_stripe_payment_elements_fonts() { * @link https://stripe.com/docs/js/appendix/css_font_source_object * @link https://stripe.com/docs/js/appendix/custom_font_source_object * - * @see assets/js/src/frontend/payment-elements/index.php::generateElementStyles + * @see assets/js/src/frontend/payment-elements/index.js::generateElementStyles * * @param array $fonts The style to use for the Payment Elements labels. */ @@ -212,6 +212,44 @@ function edds_get_stripe_payment_elements_fonts() { } +/** + * Allows passing custom fields into the Stripe Elements. + * + * @since 2.9.2.2 + */ +function edds_get_stripe_payment_elements_fields() { + $default_fields = array( + 'billingDetails' => array( + 'name' => 'auto', + 'email' => 'never', // It is not advised to change this to auto, as it will create duplicate email fields on checkout. + 'phone' => 'never', + 'address' => 'never', + ), + ); + + // By default, if the store has the address fields required, don't include them in the Payment Element. + if ( 'none' !== edd_get_option( 'stripe_billing_fields', 'none' ) ) { + $default_fields['billingDetails']['address'] = 'never'; + } + + /** + * Allows passing custom fields into the Stripe Elements. + * + * This needs to be an array. The default fields hold our values for the billingDetails fields. Fields can have a value of + * either 'auto' or 'never'. If you want to disable a field, set it to 'never'. When set to 'auto', Stripe will attempt to + * determine if the field is necessary based on a combination of currency, country, and account. + * + * @since 2.9.2.2 + * + * @link https://stripe.com/docs/js/elements_object/create_payment_element#payment_element_create-options-fields + * + * @see assets/js/src/frontend/payment-elements/index.js::createAndMountElement + * + * @param array $default_fields The default fields and their values. + */ + return apply_filters( 'edds_stripe_payment_elements_fields', $default_fields ); +} + /** * Gathers all the possible customizations for the Stripe Payment Elements. * @@ -234,6 +272,7 @@ function edds_gather_payment_element_customizations() { 'labels' => edds_get_stripe_payment_elements_label_style(), 'fonts' => edds_get_stripe_payment_elements_fonts(), 'paymentMethodTypes' => edds_payment_element_payment_method_types(), + 'fields' => edds_get_stripe_payment_elements_fields(), 'i18n' => array( 'errorMessages' => edds_get_localized_error_messages(), ), 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 3df20740..fe52a73c 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 @@ -6,13 +6,21 @@ * @since 2.7.0 */ + /** + * If regional support is enabled, check if the card name field is required. + */ function edds_maybe_disable_card_name() { - // We no longer need a card name field. - add_filter( 'edd_purchase_form_required_fields', function( $required_fields ) { - unset( $required_fields['card_name'] ); - return $required_fields; - } ); - remove_action( 'edd_checkout_error_checks', 'edds_process_post_data' ); + // We no longer need a card name field for some regions, so remove the requirement if it's not needed. + if ( false === edd_stripe()->has_regional_support || false === edd_stripe()->regional_support->requires_card_name ) { + add_filter( + 'edd_purchase_form_required_fields', + function( $required_fields ) { + unset( $required_fields['card_name'] ); + return $required_fields; + } + ); + remove_action( 'edd_checkout_error_checks', 'edds_process_post_data' ); + } } add_action( 'edd_pre_process_purchase', 'edds_maybe_disable_card_name' ); @@ -48,12 +56,7 @@ function edds_process_purchase_form( $purchase_data ) { try { if ( edd_stripe()->rate_limiting->has_hit_card_error_limit() ) { - throw new \EDD_Stripe_Gateway_Exception( - esc_html__( - 'We are unable to process your payment at this time, please try again later or contact support.', - 'easy-digital-downloads' - ) - ); + throw new \EDD_Stripe_Gateway_Exception( edd_stripe()->rate_limiting->get_rate_limit_error_message() ); } /** @@ -70,8 +73,12 @@ function edds_process_purchase_form( $purchase_data ) { * * We're also going to attempt to restrict this to a single subscription and no mixed carts, for the time being. */ + $cart_contains_subscription = false; + if ( function_exists( 'edd_recurring' ) ) { - if ( ( count( edd_get_cart_contents() ) > 1 && edd_recurring()->cart_contains_recurring() ) || edd_recurring()->cart_is_mixed() ) { + $cart_contains_subscription = edd_recurring()->cart_contains_recurring(); + + if ( ( count( edd_get_cart_contents() ) > 1 && $cart_contains_subscription ) || edd_recurring()->cart_is_mixed() ) { throw new \EDD_Stripe_Gateway_Exception( edds_get_single_subscription_cart_error() ); } @@ -146,23 +153,23 @@ function edds_process_purchase_form( $purchase_data ) { 'edd_payment_fees' => esc_html( edd_get_cart_fee_total() ), 'edd_payment_total' => esc_html( $purchase_data['price'] ), 'edd_payment_items' => esc_html( implode( ', ', $payment_items ) ), + 'zero_decimal_amount' => $amount, ), ); - if ( ! empty( $_REQUEST['payment_method_id'] ) ) { - $intent_args['payment_method'] = sanitize_text_field( $_REQUEST['payment_method_id'] ); - } else { - $payment_method_types = edds_payment_element_payment_method_types(); + $payment_method = $_REQUEST['payment_method']; - if ( ! empty( $payment_method_types ) ) { - $intent_args['payment_method_types'] = $payment_method_types; - } else { - $intent_args['automatic_payment_methods'] = array( 'enabled' => true ); - } - } + // Attach the payment method. + $intent_args['payment_method'] = sanitize_text_field( $payment_method['id'] ); + + // Set to automatic payment methods so any of the supported methods can be used here. + $intent_args['automatic_payment_methods'] = array( 'enabled' => true ); + + // We need the intent type later, so we'll set it here. + $intent_type = ( edds_is_preapprove_enabled() || 0 === $amount ) ? 'SetupIntent' : 'PaymentIntent'; // Create a SetupIntent for a non-payment carts. - if ( edds_is_preapprove_enabled() || 0 === $amount ) { + if ( 'SetupIntent' === $intent_type ) { $intent_args = array_merge( array( 'description' => edds_get_payment_description( $purchase_data['cart_details'] ), @@ -171,8 +178,6 @@ function edds_process_purchase_form( $purchase_data ) { $intent_args ); - $intent_type = 'SetupIntent'; - /** * BETA Functionality. * @@ -229,8 +234,6 @@ function edds_process_purchase_form( $purchase_data ) { $intent_args ); - $intent_type = 'PaymentIntent'; - $stripe_connect_account_id = edd_get_option( 'stripe_connect_account_id' ); if ( @@ -270,7 +273,29 @@ function edds_process_purchase_form( $purchase_data ) { } } + /** + * If purchasing a subscription with a card, we need to add the subscription mandate data. + * + * This will ensure that any cards that require mandates like INR payments or India based cards will correctly add + * the mandates necessary for recurring payments. + * + * We do this after we check for an existing intent ID, because the mandate data will change depending on the 'timestamp'. + */ + if ( 'card' === $payment_method['type'] && true === $cart_contains_subscription ) { + require_once EDDS_PLUGIN_DIR . 'includes/utils/class-edd-stripe-mandates.php'; + $mandates = new EDD_Stripe_Mandates( $purchase_data, $intent_type ); + $mandate_options = $mandates->mandate_options; + + // Add the mandate options to the intent arguments. + $intent_args['payment_method_options']['card']['mandate_options'] = $mandate_options; + } + if ( ! empty( $existing_intent ) ) { + // Existing intents need to not have the automatic_payment_methods flag set. + if ( ! empty( $intent_args['automatic_payment_methods'] ) ) { + unset( $intent_args['automatic_payment_methods'] ); + } + edds_api_request( $intent_type, 'update', $intent->id, $intent_args ); $intent = edds_api_request( $intent_type, 'retrieve', $intent->id ); } else { @@ -520,6 +545,27 @@ function edds_create_and_complete_order() { ) ); + // The returned Intent charges might contain a mandate ID, so let's save that and make a note. + if ( ! empty( $intent->charges->data ) ) { + foreach ( $intent->charges->data as $charge ) { + if ( empty( $charge->payment_method_details->card->mandate ) ) { + continue; + } + + $mandate_id = $charge->payment_method_details->card->mandate; + edd_update_order_meta( $order->id, '_edds_stripe_mandate', $mandate_id ); + + edd_add_note( + array( + 'object_id' => $order->id, + 'content' => 'Stripe Mandate ID: ' . $mandate_id, + 'user_id' => is_admin() ? get_current_user_id() : 0, + 'object_type' => 'order', + ) + ); + } + } + // Attach the \Stripe\Customer ID to the \EDD_Customer meta if one exists. $edd_customer = new EDD_Customer( $purchase_data['user_email'] ); @@ -682,7 +728,13 @@ add_action( 'wp_ajax_nopriv_edds_create_and_complete_order', 'edds_create_and_co function edds_payment_elements_rate_limit_tick() { // Increase the card error count. edd_stripe()->rate_limiting->increment_card_error_count(); - exit(); + + wp_send_json_success( + array( + 'is_at_limit' => edd_stripe()->rate_limiting->has_hit_card_error_limit(), + 'message' => edd_stripe()->rate_limiting->get_rate_limit_error_message(), + ) + ); } add_action( 'wp_ajax_edds_payment_elements_rate_limit_tick', 'edds_payment_elements_rate_limit_tick' ); add_action( 'wp_ajax_nopriv_edds_payment_elements_rate_limit_tick', 'edds_payment_elements_rate_limit_tick' ); @@ -698,7 +750,7 @@ add_action( 'wp_ajax_nopriv_edds_payment_elements_rate_limit_tick', 'edds_paymen function edds_get_payment_description( $cart_details ) { $purchase_summary = ''; - if( is_array( $cart_details ) && ! empty( $cart_details ) ) { + if ( is_array( $cart_details ) && ! empty( $cart_details ) ) { foreach( $cart_details as $item ) { $purchase_summary .= $item['name']; $price_id = isset( $item['item_number']['options']['price_id'] ) @@ -715,7 +767,7 @@ function edds_get_payment_description( $cart_details ) { $purchase_summary = rtrim( $purchase_summary, ', ' ); } - // Stripe has a maximum of 999 characters in the charge description + // Stripe has a maximum of 999 characters in the charge description. $purchase_summary = substr( $purchase_summary, 0, 1000 ); return html_entity_decode( $purchase_summary, ENT_COMPAT, 'UTF-8' ); 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 50416ca7..63ed6400 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 @@ -135,6 +135,15 @@ function edds_output_payment_elements_form() { ?>
    + has_regional_support && edd_stripe()->regional_support->requires_card_name ) : ?> +

    + + +

    +

    diff --git a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/utils/class-edd-stripe-mandates.php b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/utils/class-edd-stripe-mandates.php new file mode 100644 index 00000000..75b17239 --- /dev/null +++ b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/utils/class-edd-stripe-mandates.php @@ -0,0 +1,225 @@ +purchase_data = $purchase_data; + $this->intent_type = $intent_type; + + $this->amount = $this->format_amount(); + $this->currency = edd_get_currency(); + $this->reference = $purchase_data['purchase_key']; + + // Generate the interval and interval count. + $this->get_interval_and_count( $purchase_data ); + + // Now that all the data has been determined, generate the mandate options. + $this->generate_mandate_arguments(); + } + + /** + * Formats the amount into a Stripe-friendly format. + * + * @since 2.9.2.2 + * + * @return int The formatted amount. + */ + private function format_amount() { + $amount = $this->purchase_data['price']; + + if ( edds_is_zero_decimal_currency() ) { + return $amount; + } + + return round( $amount * 100, 0 ); + } + + /** + * Gets the interval and interval count for the mandate. + * + * @since 2.9.2.2 + */ + private function get_interval_and_count() { + /** + * Setup intervals based on the Recurring Payment periods. + * + * We use a foreach here, but with Payment Elements, it's only a single subscription, we just + * want to properly itterate on them. + */ + $period = false; + foreach ( $this->purchase_data['downloads'] as $download ) { + + // This is a non-recurring download. Move along. + if ( ! isset( $download['options']['recurring'] ) ) { + continue; + } + + $period = $download['options']['recurring']['period']; + break; + } + + // Setup intervals for the mandate based on the Recurring Payment periods. + switch ( $period ) { + case 'day': + $interval = 'day'; + $interval_count = 1; + break; + case 'week': + $interval = 'week'; + $interval_count = 1; + break; + case 'month': + $interval = 'month'; + $interval_count = 1; + break; + case 'quarter': + $interval = 'month'; + $interval_count = 3; + break; + case 'semi-year': + $interval = 'month'; + $interval_count = 6; + break; + case 'year': + $interval = 'year'; + $interval_count = 1; + break; + default: + $interval = 'sporadic'; + $interval_count = false; + break; + } + + $this->interval = $interval; + + if ( false !== $interval_count ) { + $this->interval_count = $interval_count; + } + } + + /** + * Generates the mandate options for use with an intent. + * + * @since 2.9.2.2 + */ + private function generate_mandate_arguments() { + $mandate_options = array( + 'reference' => $this->reference, + 'amount' => $this->amount, + 'start_date' => current_time( 'timestamp' ), + 'amount_type' => 'maximum', + 'supported_types' => array( 'india' ), + 'interval' => $this->interval, + ); + + if ( false !== $this->interval_count ) { + $mandate_options['interval_count'] = $this->interval_count; + } + + // SetupIntent types require the currency to be passed with the mandate_options. + if ( 'SetupIntent' === $this->intent_type ) { + $mandate_options['currency'] = edd_get_currency(); + } + + /** + * Alllows further customization of the mandate options sent with the intent. + * + * @since 2.9.2.2 + * + * @param array $mandate_options The set of mandate options we've generated. + * @param array $purchase_data The purchase data being processed. + * @param string $intent_type The intent type (either SetupIntent or PaymentIntent). + */ + $mandate_options = apply_filters( 'edds_mandate_options', $mandate_options, $this->purchase_data, $this->intent_type ); + + $this->mandate_options = $mandate_options; + } +} diff --git a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/utils/regional-support/class-edd-stripe-region-base.php b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/utils/regional-support/class-edd-stripe-region-base.php new file mode 100644 index 00000000..d3c56724 --- /dev/null +++ b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/includes/utils/regional-support/class-edd-stripe-region-base.php @@ -0,0 +1,123 @@ +setup_filters(); + } + + /** + * Applies various filters. + */ + protected function setup_filters() { + // Possibly add a message above the address fields if they are required. + add_filter( 'edd_settings_gateways', array( $this, 'add_billing_address_message' ), 30 ); + } + + /** + * Inserts a descriptive text setting prior to the address fields setting if a region requires card address. + * + * @since 2.9.2.2 + * + * @param array $settings The current registered settings. + * + * @return array The settings with the new descriptive text, if necessary. + */ + public function add_billing_address_message( $settings ) { + // The current region does not require card address. + if ( ! $this->requires_card_address ) { + return $settings; + } + + $current_billing_fields_option = edd_get_option( 'stripe_billing_fields' ); + // The current region requires card address, but the billing fields option is set to "full" already. + if ( 'full' === $current_billing_fields_option ) { + return $settings; + } + + $setting = array( + 'id' => 'stripe_billing_address_message', + 'name' => '', + 'desc' => $this->get_billing_fields_message_output(), + 'type' => 'descriptive_text', + 'class' => 'edd-stripe-connect-row', + ); + + $position = array_search( + 'stripe_billing_fields', + array_keys( + $settings['edd-stripe'] + ), + true + ); + + array_splice( + $settings['edd-stripe'], + $position, + 0, + array( + 'stripe_billing_address_message' => $setting, + ) + ); + + return $settings; + } + + /** + * Output a message concerning regions that should collect 'full address' information. + * + * @since 2.9.2.2 + */ + protected function get_billing_fields_message_output() { + ob_start(); + ?> +
    +

    + +

    +
    + country_code = 'IN'; + $this->requires_card_name = true; + $this->requires_card_address = true; + + parent::__construct(); + } +} diff --git a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/vendor/composer/ClassLoader.php b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/vendor/composer/ClassLoader.php index fd56bd7d..a72151c7 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/vendor/composer/ClassLoader.php +++ b/wp-content/plugins/easy-digital-downloads/includes/gateways/stripe/vendor/composer/ClassLoader.php @@ -429,7 +429,8 @@ class ClassLoader public function loadClass($class) { if ($file = $this->findFile($class)) { - (self::$includeFile)($file); + $includeFile = self::$includeFile; + $includeFile($file); return true; } @@ -560,7 +561,10 @@ class ClassLoader return false; } - private static function initializeIncludeClosure(): void + /** + * @return void + */ + private static function initializeIncludeClosure() { if (self::$includeFile !== null) { return; @@ -574,8 +578,8 @@ class ClassLoader * @param string $file * @return void */ - self::$includeFile = static function($file) { + self::$includeFile = \Closure::bind(static function($file) { include $file; - }; + }, null, null); } } 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 c6b54af7..51e734a7 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 || empty($installed['versions'][$packageName]['dev_requirement']); + return $includeDevRequirements || !isset($installed['versions'][$packageName]['dev_requirement']) || $installed['versions'][$packageName]['dev_requirement'] === false; } } @@ -119,7 +119,7 @@ class InstalledVersions */ public static function satisfies(VersionParser $parser, $packageName, $constraint) { - $constraint = $parser->parseConstraints($constraint); + $constraint = $parser->parseConstraints((string) $constraint); $provided = $parser->parseConstraints(self::getVersionRanges($packageName)); return $provided->matches($constraint); @@ -328,7 +328,9 @@ class InstalledVersions if (isset(self::$installedByVendor[$vendorDir])) { $installed[] = self::$installedByVendor[$vendorDir]; } elseif (is_file($vendorDir.'/composer/installed.php')) { - $installed[] = self::$installedByVendor[$vendorDir] = require $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; if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { self::$installed = $installed[count($installed) - 1]; } @@ -340,12 +342,17 @@ 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') { - self::$installed = require __DIR__ . '/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 __DIR__ . '/installed.php'; + self::$installed = $required; } else { self::$installed = array(); } } - $installed[] = self::$installed; + + if (self::$installed !== array()) { + $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 e8a5485b..48d09792 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' => 'dev-master', - 'version' => 'dev-master', - 'reference' => '47178f1567076390fc6f41a5c5ebdf986b915165', + 'pretty_version' => '2.9.2.2', + 'version' => '2.9.2.2', + 'reference' => '7e59ac4f4357cb3b388182e0601056f60f0b2407', 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), @@ -11,9 +11,9 @@ ), 'versions' => array( 'easy-digital-downloads/edd-stripe' => array( - 'pretty_version' => 'dev-master', - 'version' => 'dev-master', - 'reference' => '47178f1567076390fc6f41a5c5ebdf986b915165', + 'pretty_version' => '2.9.2.2', + 'version' => '2.9.2.2', + 'reference' => '7e59ac4f4357cb3b388182e0601056f60f0b2407', 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), diff --git a/wp-content/plugins/easy-digital-downloads/includes/orders/functions/adjustments.php b/wp-content/plugins/easy-digital-downloads/includes/orders/functions/adjustments.php index 4e6f87ec..6ea45f6f 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/orders/functions/adjustments.php +++ b/wp-content/plugins/easy-digital-downloads/includes/orders/functions/adjustments.php @@ -63,20 +63,7 @@ function edd_add_order_adjustment( $data ) { // Instantiate a query object $order_adjustments = new EDD\Database\Queries\Order_Adjustment(); - $order_adjustment_id = $order_adjustments->add_item( $data ); - - if ( ! empty( $order_adjustment_id ) ) { - /** - * Action that runs when an order item is successfully added. - * - * @since 3.1 - * @param int Order adjustment ID. - * @param array Array of order adjustment data. - */ - do_action( 'edd_order_adjustment_added', $order_adjustment_id, $data ); - } - - return $order_adjustment_id; + return $order_adjustments->add_item( $data ); } /** @@ -132,22 +119,7 @@ function edd_delete_order_adjustment( $order_adjustment_id = 0 ) { function edd_update_order_adjustment( $order_adjustment_id = 0, $data = array() ) { $order_adjustments = new EDD\Database\Queries\Order_Adjustment(); - $previous_adjustment = edd_get_order_adjustment( $order_adjustment_id ); - $order_adjustment_updated = $order_adjustments->update_item( $order_adjustment_id, $data ); - - if ( ! empty( $order_adjustment_updated ) ) { - /** - * Action that runs when an order item is updated. - * - * @since 3.1 - * @param int The order adjustment ID. - * @param array The array of data to update. - * @param EDD\Orders\Order_Adjustment The original order adjustment object. - */ - do_action( 'edd_order_adjustment_updated', $order_adjustment_id, $data, $previous_adjustment ); - } - - return $order_adjustment_updated; + return $order_adjustments->update_item( $order_adjustment_id, $data ); } /** diff --git a/wp-content/plugins/easy-digital-downloads/includes/orders/functions/items.php b/wp-content/plugins/easy-digital-downloads/includes/orders/functions/items.php index dbf86450..5760eb8b 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/orders/functions/items.php +++ b/wp-content/plugins/easy-digital-downloads/includes/orders/functions/items.php @@ -62,20 +62,7 @@ function edd_add_order_item( $data = array() ) { // Instantiate a query object $order_items = new EDD\Database\Queries\Order_Item(); - $order_item_id = $order_items->add_item( $data ); - - if ( ! empty( $order_item_id ) ) { - /** - * Action that runs when an order item is successfully added. - * - * @since 3.1 - * @param int Order item ID. - * @param array Array of order item data. - */ - do_action( 'edd_order_item_added', $order_item_id, $data ); - } - - return $order_item_id; + return $order_items->add_item( $data ); } /** @@ -89,20 +76,7 @@ function edd_add_order_item( $data = array() ) { function edd_delete_order_item( $order_item_id = 0 ) { $order_items = new EDD\Database\Queries\Order_Item(); - $order_item_deleted = $order_items->delete_item( $order_item_id ); - - if ( ! empty( $order_item_deleted ) ) { - /** - * Action that runs when an order item is deleted. - * - * @since 3.0.5 - * - * @param int $order_item_id Order item ID being deleted. - */ - do_action( 'edd_order_item_deleted', $order_item_id ); - } - - return $order_item_deleted; + return $order_items->delete_item( $order_item_id ); } /** @@ -143,22 +117,7 @@ function edd_delete_order_item( $order_item_id = 0 ) { function edd_update_order_item( $order_item_id = 0, $data = array() ) { $order_items = new EDD\Database\Queries\Order_Item(); - $previous_order_item_data = edd_get_order_item( $order_item_id ); - $order_item_updated = $order_items->update_item( $order_item_id, $data ); - - if ( ! empty( $order_item_updated ) ) { - /** - * Action that runs when an order item is updated. - * - * @since 3.1 - * @param int The order item ID. - * @param array The array of data to update. - * @param EDD\Orders\Order_Item The original order item object. - */ - do_action( 'edd_order_item_updated', $order_item_id, $data, $previous_order_item_data ); - } - - return $order_item_updated; + return $order_items->update_item( $order_item_id, $data ); } /** 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 51917cd8..165a719b 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 @@ -127,12 +127,6 @@ function edd_trash_order( $order_id ) { } } - - // Update the customer records when an order is trashed. - if ( ! empty( $order->customer_id ) ) { - $customer = new EDD_Customer( $order->customer_id ); - $customer->recalculate_stats(); - } } return filter_var( $trashed, FILTER_VALIDATE_BOOLEAN ); @@ -362,14 +356,8 @@ function edd_destroy_order( $order_id = 0 ) { */ function edd_update_order( $order_id = 0, $data = array() ) { $orders = new EDD\Database\Queries\Order(); - $update = $orders->update_item( $order_id, $data ); - if ( ! empty( $data['customer_id'] ) ) { - $customer = new EDD_Customer( $data['customer_id'] ); - $customer->recalculate_stats(); - } - - return $update; + return $orders->update_item( $order_id, $data ); } /** diff --git a/wp-content/plugins/easy-digital-downloads/includes/payments/actions.php b/wp-content/plugins/easy-digital-downloads/includes/payments/actions.php index 3c4260d3..cba87c88 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/payments/actions.php +++ b/wp-content/plugins/easy-digital-downloads/includes/payments/actions.php @@ -144,10 +144,6 @@ function edd_complete_purchase( $order_id, $new_status, $old_status ) { delete_transient( md5( 'edd_earnings_todaytoday' ) ); } - // Increase the customer's purchase stats - $customer = new EDD_Customer( $customer_id ); - $customer->recalculate_stats(); - edd_increase_total_earnings( $amount ); // Check for discount codes and increment their use counts @@ -174,7 +170,8 @@ function edd_complete_purchase( $order_id, $new_status, $old_status ) { ) ); // Required for backwards compatibility. - $payment = edd_get_payment( $order_id ); + $payment = edd_get_payment( $order_id ); + $customer = edd_get_customer( $customer_id ); /** * Runs **when** a purchase is marked as "complete". 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 b27ac6bf..ecfc82d7 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 @@ -989,9 +989,6 @@ class EDD_Payment { do_action( 'edd_payment_saved', $this->ID, $this ); } - $customer = new EDD_Customer( $this->customer_id ); - $customer->recalculate_stats(); - /** * Update the payment in the object cache */ @@ -2655,15 +2652,6 @@ class EDD_Payment { if ( true === $alter_store_earnings ) { edd_decrease_total_earnings( $this->total ); } - - // Decrement the stats for the customer - if ( ! empty( $this->customer_id ) ) { - $customer = new EDD_Customer( $this->customer_id ); - - if ( ! empty( $alter_customer_value || $alter_customer_purchase_count ) ) { - $customer->recalculate_stats(); - } - } } /** 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 ab6f290c..6d16509b 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/payments/functions.php +++ b/wp-content/plugins/easy-digital-downloads/includes/payments/functions.php @@ -215,10 +215,6 @@ function edd_delete_purchase( $payment_id = 0, $update_customer = true, $delete_ } } - if ( $customer && $customer->id && $update_customer ) { - $customer->recalculate_stats(); - } - do_action( 'edd_payment_deleted', $payment_id ); } diff --git a/wp-content/plugins/easy-digital-downloads/includes/reports/reports-functions.php b/wp-content/plugins/easy-digital-downloads/includes/reports/reports-functions.php index df0ffca7..d6055d5c 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/reports/reports-functions.php +++ b/wp-content/plugins/easy-digital-downloads/includes/reports/reports-functions.php @@ -966,12 +966,64 @@ function get_dates_filter_day_by_day() { return $day_by_day; } +/** + * Gets the period for a graph. + * + * @since 3.1.1.4 + * @return string + */ +function get_graph_period() { + if ( get_dates_filter_hour_by_hour() ) { + return 'hour'; + } + if ( get_dates_filter_day_by_day() ) { + return 'day'; + } + + return 'month'; +} + +/** + * Gets the SQL clauses. + * The result of this function should be run through $wpdb->prepare(). + * + * @since 3.1.1.4 + * @param string $period The period for the query. + * @param string $column The column to query. + * @return array + */ +function get_sql_clauses( $period, $column = 'date_created' ) { + + // Get the date for the query. + $converted_date = get_column_conversion( $column ); + + switch ( $period ) { + case 'hour': + $date_format = '%%Y-%%m-%%d %%H:00:00'; + break; + case 'day': + $date_format = '%%Y-%%m-%%d'; + break; + default: + $date_format = '%%Y-%%m'; + break; + } + + return array( + 'select' => "DATE_FORMAT({$converted_date}, \"{$date_format}\") AS date", + 'where' => '', + 'groupby' => 'date', + 'orderby' => 'date', + ); +} + /** * Given a function and column, make a timezone converted groupby query. * * @since 3.0 * @since 3.0.4 If MONTH is passed as the function, always add YEAR and MONTH * to avoid issues with spanning multiple years. + * @since 3.1.1.4 This function isn't needed anymore due to using DATE_FORMAT in the select clause. * * @param string $function The function to run the value through, like DATE, HOUR, MONTH. * @param string $column The column to group by. @@ -979,25 +1031,40 @@ function get_dates_filter_day_by_day() { * @return string */ function get_groupby_date_string( $function = 'DATE', $column = 'date_created' ) { - $function = strtoupper( $function ); + /** + * If there is no offset, the default column will be returned. + * Otherwise, the column will be converted to the timezone offset. + */ + $column_conversion = get_column_conversion( $column ); + + $function = strtoupper( $function ); + switch ( $function ) { + case 'HOUR': + $group_by_string = "DAY({$column_conversion}), HOUR({$column_conversion})"; + break; + case 'MONTH': + $group_by_string = "YEAR({$column_conversion}), MONTH({$column_conversion})"; + break; + default: + $group_by_string = "{$function}({$column_conversion})"; + break; + } + + return $group_by_string; +} + +/** + * Get the time zone converted dates for the query. + * + * @since 3.1.1.4 + * @param string $column + * @return string + */ +function get_column_conversion( $column = 'date_created' ) { $date = EDD()->utils->date( 'now', edd_get_timezone_id(), false ); $gmt_offset = $date->getOffset(); - if ( empty( $gmt_offset ) ) { - - switch ( $function ) { - case 'HOUR': - $group_by_string = "DAY({$column}), HOUR({$column})"; - break; - case 'MONTH': - $group_by_string = "YEAR({$column}), MONTH({$column})"; - break; - default: - $group_by_string = "{$function}({$column})"; - break; - } - - return $group_by_string; + return $column; } // Output the offset in the proper format. @@ -1017,20 +1084,7 @@ function get_groupby_date_string( $function = 'DATE', $column = 'date_created' ) * * @see https://github.com/awesomemotive/easy-digital-downloads/pull/9449 */ - $column_conversion = "CONVERT_TZ({$column}, '+0:00', '{$math}{$formatted_offset}')"; - switch ( $function ) { - case 'HOUR': - $group_by_string = "DAY({$column_conversion}), HOUR({$column_conversion})"; - break; - case 'MONTH': - $group_by_string = "YEAR({$column_conversion}), MONTH({$column_conversion})"; - break; - default: - $group_by_string = "{$function}({$column_conversion})"; - break; - } - - return $group_by_string; + return "CONVERT_TZ({$column}, '+00:00', '{$math}{$formatted_offset}')"; } /** diff --git a/wp-content/plugins/easy-digital-downloads/includes/user-functions.php b/wp-content/plugins/easy-digital-downloads/includes/user-functions.php index 74e853a4..ebaad63a 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/user-functions.php +++ b/wp-content/plugins/easy-digital-downloads/includes/user-functions.php @@ -34,8 +34,19 @@ function edd_get_users_purchases( $user = 0, $number = 20, $pagination = false, $user = get_current_user_id(); } + if ( is_email( $user ) ) { + $customers = edd_get_customers( + array( + 'email' => $user, + ) + ); + if ( $customers ) { + $user = $customers[0]->user_id; + } + } + // Bail if no user found. - if ( 0 === $user ) { + if ( empty( $user ) ) { return false; } 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 51fed320..1d670459 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 @@ -247,6 +247,22 @@ add_action( 'edd_user_reset_password', 'edd_validate_password_reset' ); * @return void */ function edd_validate_password_reset( $data ) { + + // We don't need or use AJAX requests for this, so die if one is received. + if ( edd_doing_ajax() ) { + wp_die( __( 'Invalid password reset request.', 'easy-digital-downloads' ), __( 'Error', 'easy-digital-downloads' ), array( 'response' => 400 ) ); + } + + if ( empty( $data['rp_key'] ) ) { + edd_set_error( 'password_reset_failed', __( 'Invalid password reset request.', 'easy-digital-downloads' ) ); + } + + $user = check_password_reset_key( $data['rp_key'], $data['user_login'] ); + + if ( ! $user || is_wp_error( $user ) ) { + edd_set_error( 'password_reset_failed', __( 'Invalid password reset request.', 'easy-digital-downloads' ) ); + } + // Check if password is one or all empty spaces. if ( ! empty( $data['pass1'] ) ) { $_POST['pass1'] = trim( $data['pass1'] ); @@ -262,13 +278,15 @@ function edd_validate_password_reset( $data ) { } $user = get_user_by( 'login', $data['user_login'] ); - if ( ! $user || is_wp_error( $user ) ) { + if ( false === $user ) { edd_set_error( 'password_reset_unsuccessful', __( 'Your password could not be reset.', 'easy-digital-downloads' ) ); } $redirect = remove_query_arg( 'action', $data['edd_redirect'] ); + // If no errors were registered then reset the password. - if ( ! edd_get_errors() ) { + $errors = edd_get_errors(); + if ( empty( $errors ) ) { reset_password( $user, $data['pass1'] ); edd_set_success( 'password_reset_successful', __( 'Your password was successfully reset.', 'easy-digital-downloads' ) ); // todo: check if this is correct 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 01533932..4a17f1b3 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,14 +2,14 @@ # 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.3\n" +"Project-Id-Version: Easy Digital Downloads 3.1.1.4.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-03-23T21:29:08+00:00\n" +"POT-Creation-Date: 2023-05-01T18:15:45+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" @@ -41,7 +41,7 @@ msgstr "" #: includes/admin/adjustments/adjustment-functions.php:43 #: includes/admin/adjustments/adjustment-functions.php:99 #: includes/admin/admin-pages.php:88 -#: includes/admin/reporting/reports.php:2253 +#: includes/admin/reporting/reports.php:2184 #: includes/admin/settings/display-settings.php:40 #: includes/admin/upgrades/upgrade-functions.php:1399 #: includes/post-types.php:129 @@ -131,8 +131,8 @@ msgstr "" #: includes/admin/admin-deprecated-functions.php:67 #: includes/admin/payments/actions.php:72 #: includes/admin/payments/actions.php:77 -#: includes/admin/payments/actions.php:288 -#: includes/admin/payments/actions.php:318 +#: includes/admin/payments/actions.php:279 +#: includes/admin/payments/actions.php:309 #: includes/emails/actions.php:59 msgid "You do not have permission to edit this payment record" msgstr "" @@ -143,15 +143,15 @@ msgstr "" #: includes/admin/customers/customer-actions.php:557 #: includes/admin/customers/customer-actions.php:614 #: includes/admin/discounts/discount-actions.php:32 -#: includes/admin/discounts/discount-actions.php:166 #: includes/admin/discounts/discount-actions.php:171 -#: includes/admin/discounts/discount-actions.php:180 -#: includes/admin/discounts/discount-actions.php:305 -#: includes/admin/discounts/discount-actions.php:310 +#: includes/admin/discounts/discount-actions.php:176 +#: includes/admin/discounts/discount-actions.php:185 #: includes/admin/discounts/discount-actions.php:315 -#: includes/admin/discounts/discount-actions.php:344 -#: includes/admin/discounts/discount-actions.php:349 -#: includes/admin/discounts/discount-actions.php:377 +#: includes/admin/discounts/discount-actions.php:320 +#: includes/admin/discounts/discount-actions.php:325 +#: includes/admin/discounts/discount-actions.php:354 +#: includes/admin/discounts/discount-actions.php:359 +#: includes/admin/discounts/discount-actions.php:387 #: includes/admin/discounts/edit-discount.php:17 #: includes/admin/discounts/edit-discount.php:28 #: includes/admin/downloads/dashboard-columns.php:190 @@ -160,10 +160,10 @@ msgstr "" #: includes/admin/import/class-batch-import.php:188 #: includes/admin/payments/actions.php:72 #: includes/admin/payments/actions.php:77 -#: includes/admin/payments/actions.php:222 -#: includes/admin/payments/actions.php:256 -#: includes/admin/payments/actions.php:288 -#: includes/admin/payments/actions.php:318 +#: includes/admin/payments/actions.php:213 +#: includes/admin/payments/actions.php:247 +#: includes/admin/payments/actions.php:279 +#: includes/admin/payments/actions.php:309 #: includes/admin/payments/add-order.php:63 #: includes/admin/payments/add-order.php:67 #: includes/admin/payments/view-order-details.php:23 @@ -202,7 +202,7 @@ msgstr "" #: includes/blocks/includes/forms/recaptcha.php:180 #: includes/cart/class-edd-cart.php:1451 #: includes/cart/class-edd-cart.php:1465 -#: includes/class-edd-license-handler.php:536 +#: includes/class-edd-license-handler.php:475 #: includes/deprecated-functions.php:488 #: includes/deprecated-functions.php:505 #: includes/deprecated-functions.php:513 @@ -220,13 +220,16 @@ msgstr "" #: includes/gateways/paypal/admin/connect.php:561 #: includes/gateways/paypal/admin/connect.php:565 #: includes/gateways/paypal/admin/connect.php:707 +#: includes/gateways/paypal/checkout-actions.php:114 #: includes/gateways/stripe/includes/admin/upgrade-functions.php:112 #: includes/process-download.php:296 #: includes/process-download.php:924 #: includes/query-filters.php:51 -#: includes/user-functions.php:895 -#: includes/user-functions.php:920 -#: includes/user-functions.php:972 +#: includes/user-functions.php:906 +#: includes/user-functions.php:931 +#: includes/user-functions.php:983 +#: includes/users/lost-password.php:253 +#: src/Extensions/Updater.php:480 msgid "Error" msgstr "" @@ -287,7 +290,7 @@ msgstr "" #: includes/admin/admin-pages.php:87 #: includes/admin/customers/customers.php:77 -#: includes/admin/reporting/reports.php:2547 +#: includes/admin/reporting/reports.php:2459 #: includes/admin/settings/display-settings.php:43 msgid "Customers" msgstr "" @@ -379,252 +382,252 @@ msgstr "" msgid "Generate New API Keys" msgstr "" -#: includes/admin/class-edd-notices.php:266 +#: includes/admin/class-edd-notices.php:272 msgid "No checkout page is configured. Set one in Settings." msgstr "" -#: includes/admin/class-edd-notices.php:320 +#: includes/admin/class-edd-notices.php:326 msgid "The files in %s are not currently protected." msgstr "" -#: includes/admin/class-edd-notices.php:321 +#: includes/admin/class-edd-notices.php:327 msgid "To protect them, you must add this NGINX redirect rule." msgstr "" -#: includes/admin/class-edd-notices.php:322 -#: includes/admin/class-edd-notices.php:341 +#: includes/admin/class-edd-notices.php:328 +#: includes/admin/class-edd-notices.php:347 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:322 -#: includes/admin/class-edd-notices.php:341 +#: includes/admin/class-edd-notices.php:328 +#: includes/admin/class-edd-notices.php:347 msgid "dismiss this notice" msgstr "" -#: includes/admin/class-edd-notices.php:339 +#: includes/admin/class-edd-notices.php:345 msgid "The .htaccess file is missing from: %s" msgstr "" -#: includes/admin/class-edd-notices.php:340 +#: includes/admin/class-edd-notices.php:346 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:362 +#: includes/admin/class-edd-notices.php:368 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:396 +#: includes/admin/class-edd-notices.php:402 msgid "Review Tax Rates" msgstr "" #. translators: Link to review existing tax rates. -#: includes/admin/class-edd-notices.php:403 +#: includes/admin/class-edd-notices.php:409 msgid "A default tax rate was detected." msgstr "" #. translators: Link to review existing tax rates. -#: includes/admin/class-edd-notices.php:403 +#: includes/admin/class-edd-notices.php:409 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:422 +#: includes/admin/class-edd-notices.php:428 msgid "Settings updated." msgstr "" -#: includes/admin/class-edd-notices.php:438 +#: includes/admin/class-edd-notices.php:444 msgid "Fix this" msgstr "" -#: includes/admin/class-edd-notices.php:444 +#: includes/admin/class-edd-notices.php:450 msgid "No payment gateways are enabled. %s." msgstr "" -#: includes/admin/class-edd-notices.php:474 +#: includes/admin/class-edd-notices.php:480 msgid "Discount code added." msgstr "" -#: includes/admin/class-edd-notices.php:480 +#: includes/admin/class-edd-notices.php:486 msgid "There was a problem adding that discount code, please try again." msgstr "" -#: includes/admin/class-edd-notices.php:487 +#: includes/admin/class-edd-notices.php:493 msgid "A discount with that code already exists, please use a different code." msgstr "" -#: includes/admin/class-edd-notices.php:494 +#: includes/admin/class-edd-notices.php:500 msgid "Discount code updated." msgstr "" -#: includes/admin/class-edd-notices.php:500 +#: includes/admin/class-edd-notices.php:506 msgid "No changes were made to that discount code." msgstr "" -#: includes/admin/class-edd-notices.php:506 +#: includes/admin/class-edd-notices.php:512 msgid "There was a problem updating that discount code, please try again." msgstr "" -#: includes/admin/class-edd-notices.php:513 +#: includes/admin/class-edd-notices.php:519 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:520 +#: includes/admin/class-edd-notices.php:526 msgid "The discount code entered is invalid; only alphanumeric characters are allowed, please try again." msgstr "" -#: includes/admin/class-edd-notices.php:527 +#: includes/admin/class-edd-notices.php:533 msgid "The discount amount must be a valid percentage or numeric flat amount. Please try again." msgstr "" -#: includes/admin/class-edd-notices.php:534 +#: includes/admin/class-edd-notices.php:540 msgid "Discount code deleted." msgstr "" -#: includes/admin/class-edd-notices.php:540 +#: includes/admin/class-edd-notices.php:546 msgid "There was a problem deleting that discount code, please try again." msgstr "" -#: includes/admin/class-edd-notices.php:547 +#: includes/admin/class-edd-notices.php:553 msgid "Discount code activated." msgstr "" -#: includes/admin/class-edd-notices.php:553 +#: includes/admin/class-edd-notices.php:559 msgid "There was a problem activating that discount code, please try again." msgstr "" -#: includes/admin/class-edd-notices.php:560 +#: includes/admin/class-edd-notices.php:566 msgid "Discount code deactivated." msgstr "" -#: includes/admin/class-edd-notices.php:566 +#: includes/admin/class-edd-notices.php:572 msgid "There was a problem deactivating that discount code, please try again." msgstr "" -#: includes/admin/class-edd-notices.php:579 +#: includes/admin/class-edd-notices.php:585 msgid "The reports have been refreshed." msgstr "" -#: includes/admin/class-edd-notices.php:591 +#: includes/admin/class-edd-notices.php:597 msgid "The settings have been imported." msgstr "" -#: includes/admin/class-edd-notices.php:597 +#: includes/admin/class-edd-notices.php:603 msgid "API keys successfully generated." msgstr "" -#: includes/admin/class-edd-notices.php:603 +#: includes/admin/class-edd-notices.php:609 msgid "The specified user already has API keys." msgstr "" -#: includes/admin/class-edd-notices.php:610 +#: includes/admin/class-edd-notices.php:616 msgid "API keys successfully regenerated." msgstr "" -#: includes/admin/class-edd-notices.php:616 +#: includes/admin/class-edd-notices.php:622 msgid "API keys successfully revoked." msgstr "" -#: includes/admin/class-edd-notices.php:623 +#: includes/admin/class-edd-notices.php:629 msgid "The test email was sent successfully." msgstr "" -#: includes/admin/class-edd-notices.php:631 +#: includes/admin/class-edd-notices.php:637 msgid "The test email summary was sent successfully." msgstr "" -#: includes/admin/class-edd-notices.php:640 +#: includes/admin/class-edd-notices.php:646 msgid "Your extensions could not be refreshed because you have not verified your license key." msgstr "" -#: includes/admin/class-edd-notices.php:654 +#: includes/admin/class-edd-notices.php:660 msgid "The note has been added successfully." msgstr "" -#: includes/admin/class-edd-notices.php:660 +#: includes/admin/class-edd-notices.php:666 msgid "The order has been updated successfully." msgstr "" -#: includes/admin/class-edd-notices.php:666 +#: includes/admin/class-edd-notices.php:672 msgid "Order successfully created." msgstr "" -#: includes/admin/class-edd-notices.php:672 +#: includes/admin/class-edd-notices.php:678 msgid "The order has been moved to the trash." msgstr "" -#: includes/admin/class-edd-notices.php:678 +#: includes/admin/class-edd-notices.php:684 msgid "The order has been restored." msgstr "" -#: includes/admin/class-edd-notices.php:684 +#: includes/admin/class-edd-notices.php:690 msgid "The order has been deleted." msgstr "" -#: includes/admin/class-edd-notices.php:690 +#: includes/admin/class-edd-notices.php:696 msgid "The purchase receipt has been resent." msgstr "" -#: includes/admin/class-edd-notices.php:696 +#: includes/admin/class-edd-notices.php:702 msgid "Failed to send purchase receipt." msgstr "" -#: includes/admin/class-edd-notices.php:702 +#: includes/admin/class-edd-notices.php:708 msgid "The order note has been deleted." msgstr "" -#: includes/admin/class-edd-notices.php:714 +#: includes/admin/class-edd-notices.php:720 msgid "Customer successfully deleted." msgstr "" -#: includes/admin/class-edd-notices.php:720 +#: includes/admin/class-edd-notices.php:726 msgid "User successfully verified." msgstr "" -#: includes/admin/class-edd-notices.php:726 +#: includes/admin/class-edd-notices.php:732 msgid "Customer email added." msgstr "" -#: includes/admin/class-edd-notices.php:732 +#: includes/admin/class-edd-notices.php:738 msgid "Customer email deleted." msgstr "" -#: includes/admin/class-edd-notices.php:738 +#: includes/admin/class-edd-notices.php:744 msgid "Failed to delete customer email." msgstr "" -#: includes/admin/class-edd-notices.php:745 +#: includes/admin/class-edd-notices.php:751 msgid "Primary email updated for customer." msgstr "" -#: includes/admin/class-edd-notices.php:751 +#: includes/admin/class-edd-notices.php:757 msgid "Failed to set primary email." msgstr "" -#: includes/admin/class-edd-notices.php:758 +#: includes/admin/class-edd-notices.php:764 msgid "Customer address deleted." msgstr "" -#: includes/admin/class-edd-notices.php:764 +#: includes/admin/class-edd-notices.php:770 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:777 +#: includes/admin/class-edd-notices.php:783 msgid "Congratulations! You are now running %1$sEasy Digital Downloads (Pro)%2$s." msgstr "" -#: includes/admin/class-edd-notices.php:822 +#: includes/admin/class-edd-notices.php:828 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:825 +#: includes/admin/class-edd-notices.php:831 msgid "View Debug Log" msgstr "" -#: includes/admin/class-edd-notices.php:826 +#: includes/admin/class-edd-notices.php:832 msgid "Delete Log File and Disable Logging" msgstr "" -#: includes/admin/class-edd-notices.php:842 +#: includes/admin/class-edd-notices.php:848 #: includes/admin/customers/customer-actions.php:606 #: includes/admin/tools/class-edd-tools-recount-all-stats.php:78 #: includes/admin/tools/class-edd-tools-recount-download-stats.php:117 @@ -646,7 +649,7 @@ msgstr "" msgid "You do not have permission to perform this action." msgstr "" -#: includes/admin/class-edd-notices.php:847 +#: includes/admin/class-edd-notices.php:853 msgid "The debug log has been cleared and logging has been disabled." msgstr "" @@ -684,7 +687,7 @@ msgstr "" #: includes/admin/customers/class-customer-email-addresses-table.php:131 #: includes/admin/customers/class-customer-table.php:127 #: includes/misc-functions.php:1460 -#: includes/payments/functions.php:539 +#: includes/payments/functions.php:535 msgid "Pending" msgstr "" @@ -714,7 +717,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:484 +#: includes/gateways/stripe/includes/template-functions.php:493 #: src/Admin/PassHandler/Handler.php:74 #: src/Licensing/Traits/Controls.php:83 msgid "Delete" @@ -776,8 +779,8 @@ msgstr "" #: 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:553 #: includes/gateways/stripe/includes/template-functions.php:562 +#: includes/gateways/stripe/includes/template-functions.php:571 #: templates/shortcode-profile-editor.php:162 msgid "Country" msgstr "" @@ -818,7 +821,7 @@ msgstr "" #: includes/admin/reporting/export/class-batch-export-file-downloads.php:43 #: includes/admin/reporting/export/class-batch-export-payments.php:62 #: includes/admin/reporting/export/class-batch-export-sales-and-earnings.php:59 -#: includes/admin/reporting/export/class-batch-export-sales.php:49 +#: 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/blocks/views/orders/totals.php:38 @@ -847,7 +850,7 @@ msgstr "" #: includes/admin/reporting/class-export-payments.php:58 #: includes/admin/reporting/export/class-batch-export-customers.php:54 #: includes/admin/reporting/export/class-batch-export-payments.php:43 -#: includes/admin/reporting/export/class-batch-export-sales.php:42 +#: 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 @@ -879,7 +882,7 @@ msgstr "" #: includes/admin/reporting/class-export-customers.php:71 #: includes/admin/reporting/export/class-batch-export-customers.php:53 #: includes/admin/reporting/export/class-batch-export-downloads.php:43 -#: includes/admin/reporting/export/class-batch-export-sales.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/privacy-functions.php:594 @@ -937,7 +940,7 @@ msgid "An error has occured. Please try again." msgstr "" #: includes/admin/customers/customer-actions.php:215 -#: includes/user-functions.php:920 +#: includes/user-functions.php:931 msgid "Nonce verification failed." msgstr "" @@ -974,7 +977,7 @@ msgstr "" #: includes/admin/import/import-functions.php:104 #: includes/admin/reporting/export/export-actions.php:24 #: includes/api/class-edd-api.php:2030 -#: includes/class-edd-license-handler.php:536 +#: includes/class-edd-license-handler.php:475 msgid "Nonce verification failed" msgstr "" @@ -1080,14 +1083,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:640 -#: includes/gateways/stripe/includes/template-functions.php:683 +#: includes/gateways/stripe/includes/template-functions.php:649 +#: includes/gateways/stripe/includes/template-functions.php:692 #: includes/scripts.php:541 msgid "Cancel" msgstr "" #: includes/admin/customers/customers.php:472 -#: includes/gateways/stripe/includes/template-functions.php:468 +#: includes/gateways/stripe/includes/template-functions.php:477 msgid "Update" msgstr "" @@ -1113,7 +1116,7 @@ msgstr "" #: 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:528 +#: includes/gateways/stripe/includes/template-functions.php:537 #: templates/shortcode-profile-editor.php:152 msgid "City" msgstr "" @@ -1217,7 +1220,7 @@ msgstr "" #: includes/admin/customers/customers.php:708 #: includes/admin/customers/customers.php:749 #: includes/admin/payments/class-payments-table.php:404 -#: includes/admin/reporting/reports.php:1210 +#: includes/admin/reporting/reports.php:1178 msgid "Number" msgstr "" @@ -1400,10 +1403,10 @@ msgstr "" #: includes/admin/reporting/reports.php:254 #: includes/admin/reporting/reports.php:353 #: includes/admin/reporting/reports.php:714 -#: includes/admin/reporting/reports.php:935 -#: includes/admin/reporting/reports.php:1354 -#: includes/admin/reporting/reports.php:1540 -#: includes/admin/reporting/reports.php:1676 +#: includes/admin/reporting/reports.php:903 +#: includes/admin/reporting/reports.php:1322 +#: includes/admin/reporting/reports.php:1508 +#: includes/admin/reporting/reports.php:1626 #: includes/reports/data/file-downloads/class-top-five-most-downloaded-list-table.php:61 #: includes/blocks/build/downloads/index.js:1 msgid "Earnings" @@ -1502,7 +1505,7 @@ msgstr "" #: includes/admin/reporting/class-export-payments.php:70 #: includes/admin/reporting/export/class-batch-export-payments.php:56 #: includes/admin/reporting/export/class-batch-export-taxed-orders.php:56 -#: includes/admin/reporting/reports.php:1198 +#: 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-form-add-order-adjustment.php:80 @@ -1791,31 +1794,31 @@ msgid "Max Uses - this is the maximum number of times this disc msgstr "" #: includes/admin/discounts/discount-actions.php:32 -#: includes/admin/discounts/discount-actions.php:382 +#: includes/admin/discounts/discount-actions.php:392 msgid "You do not have permission to create discount codes" msgstr "" -#: includes/admin/discounts/discount-actions.php:166 -#: includes/admin/discounts/discount-actions.php:349 +#: includes/admin/discounts/discount-actions.php:171 +#: includes/admin/discounts/discount-actions.php:359 msgid "You do not have permission to edit discount codes" msgstr "" -#: includes/admin/discounts/discount-actions.php:171 -#: includes/admin/discounts/discount-actions.php:315 +#: includes/admin/discounts/discount-actions.php:176 +#: includes/admin/discounts/discount-actions.php:325 msgid "No discount ID supplied" msgstr "" -#: includes/admin/discounts/discount-actions.php:180 +#: includes/admin/discounts/discount-actions.php:185 msgid "Invalid discount" msgstr "" -#: includes/admin/discounts/discount-actions.php:305 -#: includes/admin/discounts/discount-actions.php:344 -#: includes/admin/discounts/discount-actions.php:377 +#: includes/admin/discounts/discount-actions.php:315 +#: includes/admin/discounts/discount-actions.php:354 +#: includes/admin/discounts/discount-actions.php:387 msgid "Trying to cheat or something?" msgstr "" -#: includes/admin/discounts/discount-actions.php:310 +#: includes/admin/discounts/discount-actions.php:320 msgid "You do not have permission to delete discount codes" msgstr "" @@ -2063,7 +2066,7 @@ msgstr "" #: includes/admin/downloads/metabox.php:506 #: includes/download-functions.php:674 -#: includes/gateways/stripe/includes/template-functions.php:447 +#: includes/gateways/stripe/includes/template-functions.php:456 #: includes/blocks/build/downloads/index.js:1 msgid "Default" msgstr "" @@ -2170,9 +2173,9 @@ msgid "Insert into %s" msgstr "" #: includes/admin/downloads/metabox.php:960 -#: includes/admin/reporting/reports.php:1027 -#: includes/admin/reporting/reports.php:1190 -#: includes/admin/reporting/reports.php:1380 +#: includes/admin/reporting/reports.php:995 +#: includes/admin/reporting/reports.php:1158 +#: includes/admin/reporting/reports.php:1348 #: includes/admin/settings/register-settings.php:648 #: includes/admin/settings/register-settings.php:651 #: includes/admin/settings/register-settings.php:1761 @@ -2247,6 +2250,7 @@ msgstr "" #: includes/admin/downloads/metabox.php:1142 #: includes/admin/settings/register-settings.php:1011 #: includes/admin/thickbox.php:76 +#: includes/blocks/includes/downloads/downloads.php:135 #: includes/checkout/template.php:992 #: includes/gateways/stripe/includes/payment-methods/buy-now/template.php:215 #: includes/shortcodes.php:49 @@ -2302,9 +2306,11 @@ msgstr "" #: includes/admin/downloads/metabox.php:1238 #: includes/admin/settings/register-settings.php:1039 +#: includes/blocks/includes/downloads/downloads.php:161 #: includes/gateways/stripe/includes/payment-methods/buy-now/template.php:40 #: includes/shortcodes.php:47 #: includes/template-functions.php:87 +#: includes/blocks/build/buy-button/index.js:1 msgid "Buy Now" msgstr "" @@ -2423,57 +2429,57 @@ msgstr "" msgid "A customer with the email address %s already exists. Please go back and assign this payment to them." msgstr "" -#: includes/admin/payments/actions.php:222 +#: includes/admin/payments/actions.php:213 msgid "Error updating order." msgstr "" -#: includes/admin/payments/actions.php:256 +#: includes/admin/payments/actions.php:247 msgid "You do not have permission to edit this order." msgstr "" -#: includes/admin/payments/actions.php:394 -#: includes/admin/payments/actions.php:491 +#: includes/admin/payments/actions.php:385 +#: includes/admin/payments/actions.php:482 msgid "You must be logged in to perform this action." msgstr "" -#: includes/admin/payments/actions.php:404 -#: includes/admin/payments/actions.php:496 +#: includes/admin/payments/actions.php:395 +#: includes/admin/payments/actions.php:487 msgid "Your account does not have permission to perform this action." msgstr "" -#: includes/admin/payments/actions.php:415 +#: includes/admin/payments/actions.php:406 msgid "Invalid order ID" msgstr "" -#: includes/admin/payments/actions.php:425 +#: includes/admin/payments/actions.php:416 msgid "Invalid order" msgstr "" -#: includes/admin/payments/actions.php:434 +#: includes/admin/payments/actions.php:425 msgid "Order is already refunded" msgstr "" -#: includes/admin/payments/actions.php:443 +#: includes/admin/payments/actions.php:434 msgid "Cannot refund an order that is already refunded." msgstr "" -#: includes/admin/payments/actions.php:454 +#: includes/admin/payments/actions.php:445 msgid "View Refund" msgstr "" -#: includes/admin/payments/actions.php:500 +#: includes/admin/payments/actions.php:491 msgid "Missing form data or order ID." msgstr "" -#: includes/admin/payments/actions.php:509 +#: includes/admin/payments/actions.php:500 msgid "Nonce validation failed when submitting refund." msgstr "" -#: includes/admin/payments/actions.php:556 +#: includes/admin/payments/actions.php:547 msgid "Refund successfully processed." msgstr "" -#: includes/admin/payments/actions.php:567 +#: includes/admin/payments/actions.php:558 msgid "Unable to process refund." msgstr "" @@ -2521,7 +2527,7 @@ msgstr "" #: includes/admin/reporting/views/export-sales.php:17 #: includes/admin/reporting/views/export-taxed-customers.php:16 #: includes/admin/reporting/views/export-taxed-orders.php:17 -#: includes/reports/reports-functions.php:1287 +#: includes/reports/reports-functions.php:1341 msgctxt "date filter" msgid "From" msgstr "" @@ -2535,7 +2541,7 @@ msgstr "" #: includes/admin/reporting/views/export-sales.php:28 #: includes/admin/reporting/views/export-taxed-customers.php:27 #: includes/admin/reporting/views/export-taxed-orders.php:28 -#: includes/reports/reports-functions.php:1297 +#: includes/reports/reports-functions.php:1351 msgctxt "date filter" msgid "To" msgstr "" @@ -2564,6 +2570,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/emails/email-summary/edd-email-summary-template.php:340 msgid "Product" msgstr "" @@ -2579,7 +2586,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/reports/reports-functions.php:1701 +#: includes/reports/reports-functions.php:1755 msgid "Filter" msgstr "" @@ -2685,16 +2692,16 @@ msgstr "" msgid "Move to Trash" msgstr "" -#: includes/admin/payments/class-payments-table.php:1103 -#: includes/admin/payments/class-payments-table.php:1106 +#: includes/admin/payments/class-payments-table.php:1104 +#: includes/admin/payments/class-payments-table.php:1107 msgid "Confirmation Required" msgstr "" -#: includes/admin/payments/class-payments-table.php:1104 +#: includes/admin/payments/class-payments-table.php:1105 msgid "You are about to permanently delete orders from your store. Once deleted, these orders are not recoverable. Are you sure you want to continue?" msgstr "" -#: includes/admin/payments/class-payments-table.php:1107 +#: includes/admin/payments/class-payments-table.php:1108 msgid "You are about to permanently delete this order from your store. Once deleted, this order is not recoverable. Are you sure you want to continue?" msgstr "" @@ -2709,7 +2716,7 @@ msgstr "" #: includes/admin/payments/class-refund-items-table.php:79 #: includes/admin/payments/orders.php:802 #: includes/admin/payments/refunds.php:224 -#: includes/admin/reporting/export/class-batch-export-sales.php:45 +#: includes/admin/reporting/export/class-batch-export-sales.php:53 #: includes/admin/views/tmpl-order-form-add-order-item.php:110 #: includes/admin/views/tmpl-order-item.php:73 #: includes/emails/tags.php:320 @@ -2860,7 +2867,7 @@ msgid "You can enter:" msgstr "" #: includes/admin/payments/contextual-help.php:101 -msgid "The order ID" +msgid "The specific order ID" msgstr "" #: includes/admin/payments/contextual-help.php:102 @@ -3360,10 +3367,10 @@ msgstr "" #: includes/admin/reporting/reports.php:232 #: includes/admin/reporting/reports.php:365 #: includes/admin/reporting/reports.php:664 -#: includes/admin/reporting/reports.php:947 -#: includes/admin/reporting/reports.php:1330 -#: includes/admin/reporting/reports.php:1490 -#: includes/admin/reporting/reports.php:1688 +#: includes/admin/reporting/reports.php:915 +#: includes/admin/reporting/reports.php:1298 +#: includes/admin/reporting/reports.php:1458 +#: includes/admin/reporting/reports.php:1638 #: includes/reports/data/downloads/class-top-selling-downloads-list-table.php:57 #: includes/reports/data/file-downloads/class-top-five-most-downloaded-list-table.php:60 #: includes/blocks/build/downloads/index.js:1 @@ -3444,7 +3451,7 @@ 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:575 +#: includes/gateways/stripe/includes/template-functions.php:584 msgid "State" msgstr "" @@ -3454,13 +3461,12 @@ msgstr "" #: includes/admin/tools.php:746 #: includes/blocks/views/checkout/purchase-form/address.php:105 #: includes/checkout/template.php:403 -#: includes/gateways/stripe/includes/template-functions.php:829 +#: includes/gateways/stripe/includes/template-functions.php:838 #: templates/shortcode-profile-editor.php:157 msgid "Zip / Postal Code" msgstr "" #: includes/admin/reporting/class-export-payments.php:67 -#: includes/blocks/includes/orders/orders.php:350 #: includes/blocks/views/orders/receipt-items.php:20 #: includes/reports/reports-functions.php:320 #: src/Admin/Onboarding/Wizard.php:252 @@ -3507,7 +3513,7 @@ msgstr "" #: includes/admin/reporting/class-export-payments.php:77 #: includes/admin/reporting/export/class-batch-export-payments.php:63 -#: includes/admin/reporting/export/class-batch-export-sales.php:40 +#: 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 msgid "User" @@ -3575,7 +3581,7 @@ msgid "Pending / Failed Sales" msgstr "" #: includes/admin/reporting/class-sales-logs-list-table.php:100 -#: includes/admin/reporting/export/class-batch-export-sales.php:46 +#: includes/admin/reporting/export/class-batch-export-sales.php:54 msgid "Item Amount" msgstr "" @@ -3584,7 +3590,7 @@ msgid "This screen provides you with reports for your earnings, downloads, custo msgstr "" #: includes/admin/reporting/contextual-help.php:67 -#: includes/admin/reporting/reports.php:2774 +#: includes/admin/reporting/reports.php:2672 #: includes/admin/reporting/views/export-sales-earnings.php:61 #: includes/admin/tools.php:1012 msgid "Export" @@ -3692,7 +3698,7 @@ msgid "Tags" msgstr "" #: includes/admin/reporting/export/class-batch-export-downloads.php:52 -#: includes/blocks/includes/orders/orders.php:352 +#: includes/blocks/includes/orders/orders.php:565 #: templates/history-downloads.php:46 msgid "Files" msgstr "" @@ -3735,7 +3741,7 @@ msgid "Order ID" msgstr "" #: includes/admin/reporting/export/class-batch-export-payments.php:44 -#: includes/admin/reporting/export/class-batch-export-sales.php:41 +#: 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/privacy-functions.php:586 @@ -3763,16 +3769,16 @@ msgstr "" msgid "State Name" msgstr "" -#: includes/admin/reporting/export/class-batch-export-sales.php:39 +#: includes/admin/reporting/export/class-batch-export-sales.php:47 msgid "Product ID" msgstr "" -#: includes/admin/reporting/export/class-batch-export-sales.php:47 +#: includes/admin/reporting/export/class-batch-export-sales.php:55 #: includes/emails/tags.php:221 msgid "Payment ID" msgstr "" -#: includes/admin/reporting/export/class-batch-export-sales.php:48 +#: includes/admin/reporting/export/class-batch-export-sales.php:56 msgid "Price ID" msgstr "" @@ -3847,26 +3853,26 @@ msgid "The logs tab has been moved to the Tools screen." msgstr "" #: includes/admin/reporting/reports.php:279 -#: includes/admin/reporting/reports.php:1407 +#: includes/admin/reporting/reports.php:1375 msgid "Average Order Value" msgstr "" #: includes/admin/reporting/reports.php:303 -#: includes/admin/reporting/reports.php:2567 -#: includes/admin/reporting/reports.php:2641 -#: includes/admin/reporting/reports.php:2728 +#: includes/admin/reporting/reports.php:2479 +#: includes/admin/reporting/reports.php:2553 +#: includes/admin/reporting/reports.php:2626 #: includes/emails/email-summary/edd-email-summary-template.php:279 msgid "New Customers" msgstr "" #: includes/admin/reporting/reports.php:322 -#: includes/admin/reporting/reports.php:1111 +#: includes/admin/reporting/reports.php:1079 msgid "Total Refund Amount" msgstr "" #: includes/admin/reporting/reports.php:345 #: includes/admin/reporting/reports.php:732 -#: includes/admin/reporting/reports.php:1558 +#: includes/admin/reporting/reports.php:1526 msgid "Sales and Earnings" msgstr "" @@ -3902,67 +3908,67 @@ msgstr "" msgid "Earnings by Variation" msgstr "" -#: includes/admin/reporting/reports.php:1052 +#: includes/admin/reporting/reports.php:1020 msgid "Number of Refunds" msgstr "" -#: includes/admin/reporting/reports.php:1071 +#: includes/admin/reporting/reports.php:1039 msgid "Number of Fully Refunded Orders" msgstr "" -#: includes/admin/reporting/reports.php:1091 +#: includes/admin/reporting/reports.php:1059 msgid "Number of Fully Refunded Items" msgstr "" -#: includes/admin/reporting/reports.php:1131 +#: includes/admin/reporting/reports.php:1099 msgid "Average Refund Amount" msgstr "" -#: includes/admin/reporting/reports.php:1152 +#: includes/admin/reporting/reports.php:1120 msgid "Average Time to Refund" msgstr "" -#: includes/admin/reporting/reports.php:1170 +#: includes/admin/reporting/reports.php:1138 msgid "Refund Rate" msgstr "" -#: includes/admin/reporting/reports.php:1318 +#: includes/admin/reporting/reports.php:1286 msgid "Payment Gateways" msgstr "" -#: includes/admin/reporting/reports.php:1444 +#: includes/admin/reporting/reports.php:1412 msgid "Gateway Stats" msgstr "" -#: includes/admin/reporting/reports.php:1458 +#: includes/admin/reporting/reports.php:1426 msgid "Gateway Sales" msgstr "" -#: includes/admin/reporting/reports.php:1507 +#: includes/admin/reporting/reports.php:1475 msgid "Gateway Earnings" msgstr "" -#: includes/admin/reporting/reports.php:1800 +#: includes/admin/reporting/reports.php:1750 #: includes/admin/settings/contextual-help.php:99 #: includes/admin/settings/register-settings.php:897 #: includes/admin/settings/register-settings.php:1713 msgid "Taxes" msgstr "" -#: includes/admin/reporting/reports.php:1811 +#: includes/admin/reporting/reports.php:1761 msgid "Total Tax Collected" msgstr "" -#: includes/admin/reporting/reports.php:1846 +#: includes/admin/reporting/reports.php:1796 msgid "Total Tax Collected for " msgstr "" -#: includes/admin/reporting/reports.php:1876 +#: includes/admin/reporting/reports.php:1826 msgid "Tax Collected by Location" msgstr "" -#: includes/admin/reporting/reports.php:1955 -#: includes/admin/reporting/reports.php:2158 +#: 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/privacy-functions.php:546 @@ -3970,83 +3976,83 @@ msgstr "" msgid "File Downloads" msgstr "" -#: includes/admin/reporting/reports.php:1967 -#: includes/admin/reporting/reports.php:2057 +#: includes/admin/reporting/reports.php:1917 +#: includes/admin/reporting/reports.php:2007 msgid "Number of File Downloads" msgstr "" -#: includes/admin/reporting/reports.php:1991 +#: includes/admin/reporting/reports.php:1941 msgid "Average per Customer" msgstr "" -#: includes/admin/reporting/reports.php:2009 +#: includes/admin/reporting/reports.php:1959 msgid "Average per Order" msgstr "" -#: includes/admin/reporting/reports.php:2027 +#: includes/admin/reporting/reports.php:1977 msgid "Most Downloaded Product" msgstr "" -#: includes/admin/reporting/reports.php:2045 +#: includes/admin/reporting/reports.php:1995 msgid "Top Five Most Downloaded Products" msgstr "" -#: includes/admin/reporting/reports.php:2265 +#: includes/admin/reporting/reports.php:2196 msgid "Number of Discounts Used" msgstr "" -#: includes/admin/reporting/reports.php:2282 +#: includes/admin/reporting/reports.php:2213 msgid "Discount Ratio" msgstr "" -#: includes/admin/reporting/reports.php:2300 +#: includes/admin/reporting/reports.php:2231 msgid "Customer Savings" msgstr "" -#: includes/admin/reporting/reports.php:2321 +#: includes/admin/reporting/reports.php:2252 msgid "Average Discount Amount" msgstr "" -#: includes/admin/reporting/reports.php:2339 +#: includes/admin/reporting/reports.php:2270 msgid "Most Popular Discount" msgstr "" -#: includes/admin/reporting/reports.php:2364 +#: includes/admin/reporting/reports.php:2295 msgid "Discount Usage Count" msgstr "" -#: includes/admin/reporting/reports.php:2383 +#: includes/admin/reporting/reports.php:2314 msgid "Top Five Discounts" msgstr "" -#: includes/admin/reporting/reports.php:2396 -#: includes/admin/reporting/reports.php:2491 +#: includes/admin/reporting/reports.php:2327 +#: includes/admin/reporting/reports.php:2403 msgid "Discount Usage" msgstr "" -#: includes/admin/reporting/reports.php:2586 +#: includes/admin/reporting/reports.php:2498 msgid "Average Revenue per Customer" msgstr "" -#: includes/admin/reporting/reports.php:2601 +#: includes/admin/reporting/reports.php:2513 msgid "Average Orders per Customer" msgstr "" -#: includes/admin/reporting/reports.php:2617 +#: includes/admin/reporting/reports.php:2529 msgid "Top Five Customers — All Time" msgstr "" -#: includes/admin/reporting/reports.php:2629 +#: includes/admin/reporting/reports.php:2541 msgid "Most Valuable Customers" msgstr "" -#: includes/admin/reporting/reports.php:2885 -#: includes/user-functions.php:924 -#: includes/user-functions.php:928 +#: includes/admin/reporting/reports.php:2783 +#: includes/user-functions.php:935 +#: includes/user-functions.php:939 msgid "Notice" msgstr "" -#: includes/admin/reporting/reports.php:2886 +#: includes/admin/reporting/reports.php:2784 msgid "Tax reports are only generated for taxes associated with a location. The legacy default tax rate is unable to be reported on." msgstr "" @@ -4124,7 +4130,7 @@ msgstr "" #: includes/admin/reporting/views/export-download-history.php:13 #: includes/admin/reporting/views/export-downloads.php:17 #: includes/admin/reporting/views/export-sales-earnings.php:42 -#: includes/reports/reports-functions.php:1387 +#: includes/reports/reports-functions.php:1441 msgid "All %s" msgstr "" @@ -4431,6 +4437,10 @@ msgstr "" msgid "Taxes are currently disabled. Rates listed below will not be applied to purchases until taxes are enabled." msgstr "" +#: includes/admin/settings/display-settings.php:413 +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 "" + #: includes/admin/settings/register-settings.php:291 msgid "Do Nothing" msgstr "" @@ -5899,13 +5909,13 @@ msgid "Purchased Product(s)" msgstr "" #: includes/admin/tools.php:708 -#: includes/gateways/stripe/includes/template-functions.php:500 +#: includes/gateways/stripe/includes/template-functions.php:509 msgid "Address Line 1" msgstr "" #: includes/admin/tools.php:718 #: includes/blocks/views/checkout/purchase-form/address.php:43 -#: includes/gateways/stripe/includes/template-functions.php:514 +#: includes/gateways/stripe/includes/template-functions.php:523 msgid "Address Line 2" msgstr "" @@ -6777,12 +6787,12 @@ msgid "No download logs found!" msgstr "" #: includes/api/class-edd-api.php:1986 -#: includes/user-functions.php:1090 +#: includes/user-functions.php:1101 msgid "Downloads API Keys" msgstr "" #: includes/api/class-edd-api.php:1996 -#: includes/user-functions.php:1097 +#: includes/user-functions.php:1108 msgid "Generate API Key" msgstr "" @@ -6795,12 +6805,12 @@ msgid "Secret key:" msgstr "" #: includes/api/class-edd-api.php:2006 -#: includes/user-functions.php:1108 +#: includes/user-functions.php:1119 msgid "Token:" msgstr "" #: includes/api/class-edd-api.php:2010 -#: includes/user-functions.php:1114 +#: includes/user-functions.php:1125 msgid "Revoke API Keys" msgstr "" @@ -6821,22 +6831,22 @@ msgstr "" msgid "Failed to dismiss notification." msgstr "" -#: includes/blocks/edd-blocks.php:92 +#: includes/blocks/edd-blocks.php:89 msgid "Confirmation" msgstr "" -#: includes/blocks/edd-blocks.php:93 +#: includes/blocks/edd-blocks.php:90 #: includes/install.php:379 msgid "Thank you for your purchase!" msgstr "" -#: includes/blocks/edd-blocks.php:96 +#: includes/blocks/edd-blocks.php:93 #: includes/emails/tags.php:245 #: includes/emails/template.php:262 msgid "Receipt" msgstr "" -#: includes/blocks/edd-blocks.php:100 +#: includes/blocks/edd-blocks.php:97 msgid "Order History" msgstr "" @@ -6985,6 +6995,11 @@ msgctxt "download post type name" msgid "No %s found." msgstr "" +#: includes/blocks/includes/forms/forms.php:67 +#: includes/users/lost-password.php:233 +msgid "Your password reset link appears to be invalid. Please request a new link below." +msgstr "" + #: includes/blocks/includes/forms/recaptcha.php:96 msgid "reCAPTCHA validation missing." msgstr "" @@ -7167,13 +7182,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:154 +#: includes/gateways/stripe/includes/template-functions.php:141 +#: includes/gateways/stripe/includes/template-functions.php:163 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:158 +#: includes/gateways/stripe/includes/template-functions.php:144 +#: includes/gateways/stripe/includes/template-functions.php:167 msgid "Card name" msgstr "" @@ -7189,7 +7206,7 @@ msgstr "" #: includes/blocks/views/checkout/purchase-form/credit-card.php:42 #: includes/checkout/template.php:268 -#: includes/gateways/stripe/includes/template-functions.php:200 +#: includes/gateways/stripe/includes/template-functions.php:209 msgid "CVC" msgstr "" @@ -7200,7 +7217,7 @@ msgstr "" #: includes/blocks/views/checkout/purchase-form/credit-card.php:52 #: includes/checkout/template.php:285 -#: includes/gateways/stripe/includes/template-functions.php:597 +#: includes/gateways/stripe/includes/template-functions.php:606 msgid "Expiration (MM/YY)" msgstr "" @@ -7311,7 +7328,7 @@ msgid "Log In" msgstr "" #: includes/blocks/views/forms/login.php:44 -#: includes/payments/actions.php:438 +#: includes/payments/actions.php:435 #: templates/shortcode-login.php:33 #: includes/blocks/build/login/index.js:1 msgid "Lost Password?" @@ -7479,7 +7496,7 @@ msgid "Name on the card" msgstr "" #: includes/checkout/template.php:279 -#: includes/gateways/stripe/includes/template-functions.php:157 +#: includes/gateways/stripe/includes/template-functions.php:166 msgid "The name printed on the front of your credit card." msgstr "" @@ -7520,7 +7537,7 @@ msgid "Billing zip/Postal code" msgstr "" #: includes/checkout/template.php:402 -#: includes/gateways/stripe/includes/template-functions.php:828 +#: includes/gateways/stripe/includes/template-functions.php:837 msgid "The zip or postal code for your billing address." msgstr "" @@ -7529,7 +7546,7 @@ msgid "Billing country" msgstr "" #: includes/checkout/template.php:412 -#: includes/gateways/stripe/includes/template-functions.php:804 +#: includes/gateways/stripe/includes/template-functions.php:813 msgid "The country for your billing address." msgstr "" @@ -7816,8 +7833,8 @@ msgstr "" #. translators: %s: User login. #: includes/class-edd-cli.php:315 -#: includes/user-functions.php:575 -#: includes/user-functions.php:587 +#: includes/user-functions.php:586 +#: includes/user-functions.php:598 #: includes/users/lost-password.php:169 msgid "Username: %s" msgstr "" @@ -8298,7 +8315,7 @@ msgid "Draft" msgstr "" #: includes/class-edd-discount.php:678 -#: includes/gateways/stripe/includes/template-functions.php:369 +#: includes/gateways/stripe/includes/template-functions.php:378 #: includes/misc-functions.php:1457 msgid "Expired" msgstr "" @@ -8416,15 +8433,14 @@ msgstr "" msgid "Required" msgstr "" -#: includes/class-edd-license-handler.php:256 -msgid "Enter your extension license keys here to receive updates for purchased extensions. If your license key has expired, please %srenew your license%s." +#. translators: 1. opening anchor tag; 2. closing anchor tag +#: includes/class-edd-license-handler.php:299 +#: src/Extensions/Handler.php:263 +msgid "You have invalid or expired license keys for Easy Digital Downloads. %1$sActivate License(s)%2$s" msgstr "" -#: includes/class-edd-license-handler.php:353 -msgid "You have invalid or expired license keys for Easy Digital Downloads. Fix this" -msgstr "" - -#: includes/class-edd-license-handler.php:382 +#: includes/class-edd-license-handler.php:321 +#: src/Extensions/Handler.php:282 msgid "Enter valid license key for automatic updates." msgstr "" @@ -8610,12 +8626,12 @@ msgid "Saturday" msgstr "" #: includes/class-stats.php:3206 -#: includes/emails/email-summary/class-edd-email-summary.php:330 +#: includes/emails/email-summary/class-edd-email-summary.php:329 msgid "No Change" msgstr "" #: includes/class-stats.php:3216 -#: includes/emails/email-summary/class-edd-email-summary.php:328 +#: includes/emails/email-summary/class-edd-email-summary.php:327 msgid "No data to compare" msgstr "" @@ -9033,7 +9049,7 @@ msgstr "" msgid "Angolan Kwanza" msgstr "" -#: includes/customer-functions.php:334 +#: includes/customer-functions.php:292 #: includes/payments/class-payments-query.php:626 msgid "Do not use -1 to retrieve all results." msgstr "" @@ -9246,27 +9262,33 @@ msgstr "" #. translators: the plugin name. #: includes/EDD_SL_Plugin_Updater.php:224 +#: src/Extensions/Updater.php:243 msgid "There is a new version of %1$s available." msgstr "" #: includes/EDD_SL_Plugin_Updater.php:230 +#: src/Extensions/Updater.php:249 msgid "Contact your network administrator to install the update." msgstr "" #. translators: 1. opening anchor tag, do not translate 2. the new plugin version 3. closing anchor tag, do not translate. #: includes/EDD_SL_Plugin_Updater.php:235 +#: src/Extensions/Updater.php:254 msgid "%1$sView version %2$s details%3$s." msgstr "" #: includes/EDD_SL_Plugin_Updater.php:243 +#: src/Extensions/Updater.php:262 msgid "%1$sView version %2$s details%3$s or %4$supdate now%5$s." msgstr "" #: includes/EDD_SL_Plugin_Updater.php:254 +#: src/Extensions/Updater.php:273 msgid "Update now." msgstr "" #: includes/EDD_SL_Plugin_Updater.php:486 +#: src/Extensions/Updater.php:480 msgid "You do not have permission to install plugin updates" msgstr "" @@ -9293,28 +9315,28 @@ msgid "" msgstr "" #. Translators: Site domain name -#: includes/emails/email-summary/class-edd-email-summary.php:89 +#: includes/emails/email-summary/class-edd-email-summary.php:88 msgid "Easy Digital Downloads Summary - %s" msgstr "" -#: includes/emails/email-summary/class-edd-email-summary.php:121 +#: includes/emails/email-summary/class-edd-email-summary.php:120 msgid "Missing email recipients for Email Summary" msgstr "" -#: includes/emails/email-summary/class-edd-email-summary.php:373 +#: includes/emails/email-summary/class-edd-email-summary.php:372 msgid "month" msgstr "" -#: includes/emails/email-summary/class-edd-email-summary.php:373 +#: includes/emails/email-summary/class-edd-email-summary.php:372 msgid "week" msgstr "" #. Translators: period name (e.g. week) -#: includes/emails/email-summary/class-edd-email-summary.php:375 +#: includes/emails/email-summary/class-edd-email-summary.php:374 msgid "vs previous %s" msgstr "" -#: includes/emails/email-summary/class-edd-email-summary.php:403 +#: includes/emails/email-summary/class-edd-email-summary.php:402 msgid "Email body for Email Summary was empty." msgstr "" @@ -9706,6 +9728,7 @@ msgstr "" #: includes/gateways/manual.php:33 #: includes/gateways/paypal-standard.php:170 +#: includes/gateways/paypal/checkout-actions.php:114 msgid "Nonce verification has failed" msgstr "" @@ -9844,7 +9867,7 @@ msgstr "" #. Translators: %s - transaction ID #: includes/gateways/paypal-standard.php:692 -#: includes/gateways/paypal/checkout-actions.php:399 +#: includes/gateways/paypal/checkout-actions.php:404 msgid "PayPal Transaction ID: %s" msgstr "" @@ -10153,65 +10176,65 @@ msgid "PayPal requires an SSL certificate to accept payments. You can learn more msgstr "" #: includes/gateways/paypal/checkout-actions.php:56 -#: includes/gateways/paypal/checkout-actions.php:121 +#: includes/gateways/paypal/checkout-actions.php:126 msgid "Please connect your PayPal account in the gateway settings." msgstr "" #: includes/gateways/paypal/checkout-actions.php:57 -#: includes/gateways/paypal/checkout-actions.php:122 +#: includes/gateways/paypal/checkout-actions.php:127 msgid "Unexpected authentication error. Please contact a site administrator." msgstr "" -#: includes/gateways/paypal/checkout-actions.php:116 +#: includes/gateways/paypal/checkout-actions.php:121 #: includes/gateways/paypal/exceptions/class-gateway-exception.php:48 msgid "PayPal Gateway Error" msgstr "" -#: includes/gateways/paypal/checkout-actions.php:117 +#: includes/gateways/paypal/checkout-actions.php:122 msgid "Account not ready to accept payments." msgstr "" -#: includes/gateways/paypal/checkout-actions.php:148 -#: includes/gateways/paypal/checkout-actions.php:308 +#: includes/gateways/paypal/checkout-actions.php:153 +#: includes/gateways/paypal/checkout-actions.php:313 #: includes/gateways/paypal/scripts.php:115 msgid "An unexpected error occurred. Please try again." msgstr "" -#: includes/gateways/paypal/checkout-actions.php:201 +#: includes/gateways/paypal/checkout-actions.php:206 msgid "PayPal Gateway Warning" msgstr "" #. Translators: %s - Original order data sent to PayPal. -#: includes/gateways/paypal/checkout-actions.php:204 +#: includes/gateways/paypal/checkout-actions.php:209 msgid "PayPal could not complete the transaction with the itemized breakdown. Original order data sent: %s" msgstr "" -#: includes/gateways/paypal/checkout-actions.php:223 -#: includes/gateways/paypal/checkout-actions.php:253 -#: includes/gateways/paypal/checkout-actions.php:420 +#: includes/gateways/paypal/checkout-actions.php:228 +#: includes/gateways/paypal/checkout-actions.php:258 +#: includes/gateways/paypal/checkout-actions.php:425 msgid "An error occurred while communicating with PayPal. Please try again." msgstr "" -#: includes/gateways/paypal/checkout-actions.php:251 -#: includes/gateways/paypal/checkout-actions.php:418 +#: includes/gateways/paypal/checkout-actions.php:256 +#: includes/gateways/paypal/checkout-actions.php:423 msgid "An authentication error occurred. Please try again." msgstr "" -#: includes/gateways/paypal/checkout-actions.php:285 -#: includes/gateways/paypal/checkout-actions.php:293 -#: includes/gateways/paypal/checkout-actions.php:300 +#: includes/gateways/paypal/checkout-actions.php:290 +#: includes/gateways/paypal/checkout-actions.php:298 +#: includes/gateways/paypal/checkout-actions.php:305 msgid "A validation error occurred. Please try again." msgstr "" -#: includes/gateways/paypal/checkout-actions.php:321 +#: includes/gateways/paypal/checkout-actions.php:326 msgid "Failed to process payment. Please try again." msgstr "" -#: includes/gateways/paypal/checkout-actions.php:330 +#: includes/gateways/paypal/checkout-actions.php:335 msgid "Unable to complete your order with your chosen payment method. Please choose a new funding source." msgstr "" -#: includes/gateways/paypal/checkout-actions.php:409 +#: includes/gateways/paypal/checkout-actions.php:414 msgid "Your payment was declined. Please try a new payment method." msgstr "" @@ -10864,8 +10887,14 @@ msgstr "" msgid "Card successfully added." msgstr "" -#: includes/gateways/stripe/includes/class-edd-stripe.php:281 -#: includes/gateways/stripe/includes/template-functions.php:167 +#: includes/gateways/stripe/includes/class-edd-stripe-rate-limiting.php:430 +#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:42 +#: includes/gateways/stripe/includes/template-functions.php:24 +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 msgid "Credit Card" msgstr "" @@ -11052,12 +11081,6 @@ msgstr "" msgid "No user records were found that needed to be migrated." msgstr "" -#: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:42 -#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:52 -#: includes/gateways/stripe/includes/template-functions.php:24 -msgid "We are unable to process your payment at this time, please try again later or contact support." -msgstr "" - #: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:63 msgid "Unable to locate payment method. Please try again with a new payment method." msgstr "" @@ -11067,7 +11090,7 @@ msgid "Prepaid cards are not a valid payment method. Please try again with a new msgstr "" #: includes/gateways/stripe/includes/payment-actions/card-elements-actions.php:99 -#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:108 +#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:115 msgid "Unable to create customer. Please try again." msgstr "" @@ -11084,7 +11107,7 @@ msgstr "" #: 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/payment-elements-actions.php:657 +#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:703 msgid "Stripe Error" msgstr "" @@ -11127,43 +11150,43 @@ msgstr "" msgid "Charge not refunded in Stripe, as checkbox was not selected." msgstr "" -#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:305 +#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:330 msgid "Stripe Error 002" msgstr "" -#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:307 +#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:332 msgid "There was an error while processing a Stripe payment. Order data: %s" msgstr "" -#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:323 +#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:348 msgid "Stripe Error 003" msgstr "" -#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:358 +#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:383 msgid "Error 1001: An error occurred, but your payment may have gone through. Please contact the site administrator." msgstr "" -#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:369 +#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:394 msgid "Error 1002: An error occurred, but your payment may have gone through. Please contact the site administrator." msgstr "" -#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:381 +#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:406 msgid "Error 1003: An error occurred, but your payment may have gone through. Please contact the site administrator." msgstr "" -#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:393 +#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:418 msgid "Error 1004: An error occurred, but your payment may have gone through. Please contact the site administrator." msgstr "" -#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:410 +#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:435 msgid "Error 1005: An error occurred, but your payment may have gone through. Please contact the site administrator." msgstr "" -#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:442 +#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:467 msgid "Error 1006: An error occurred, but your payment may have gone through. Please contact the site administrator." msgstr "" -#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:635 +#: includes/gateways/stripe/includes/payment-actions/payment-elements-actions.php:681 msgid "Error 1007: An error occurred completing the order, but your payment may have gone through. Please contact the site administrator." msgstr "" @@ -11285,96 +11308,100 @@ msgstr "" msgid "Adding new payment methods is currently unavailable." msgstr "" -#: includes/gateways/stripe/includes/template-functions.php:165 +#: includes/gateways/stripe/includes/template-functions.php:174 msgid "Credit Card Number" msgstr "" -#: includes/gateways/stripe/includes/template-functions.php:191 +#: includes/gateways/stripe/includes/template-functions.php:200 msgid "Expiration" msgstr "" #. translators: %1$s Card type. %2$s Card last 4. -#: includes/gateways/stripe/includes/template-functions.php:281 +#: includes/gateways/stripe/includes/template-functions.php:290 msgid "Update card billing address for %1$s •••• %2$s" msgstr "" -#: includes/gateways/stripe/includes/template-functions.php:309 +#: includes/gateways/stripe/includes/template-functions.php:318 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:344 -#: includes/gateways/stripe/includes/template-functions.php:433 +#: includes/gateways/stripe/includes/template-functions.php:353 +#: includes/gateways/stripe/includes/template-functions.php:442 msgid "%1$s •••• %2$s" msgstr "" -#: includes/gateways/stripe/includes/template-functions.php:381 -#: includes/gateways/stripe/includes/template-functions.php:654 +#: includes/gateways/stripe/includes/template-functions.php:390 +#: includes/gateways/stripe/includes/template-functions.php:663 msgid "Add New Card" msgstr "" -#: includes/gateways/stripe/includes/template-functions.php:410 +#: includes/gateways/stripe/includes/template-functions.php:419 msgid "Payment method management is currently unavailable." msgstr "" -#: includes/gateways/stripe/includes/template-functions.php:423 +#: includes/gateways/stripe/includes/template-functions.php:432 msgid "Manage Payment Methods" msgstr "" -#: includes/gateways/stripe/includes/template-functions.php:452 +#: includes/gateways/stripe/includes/template-functions.php:461 msgid "Expires" msgstr "" -#: includes/gateways/stripe/includes/template-functions.php:474 +#: includes/gateways/stripe/includes/template-functions.php:483 msgid "Set as Default" msgstr "" -#: includes/gateways/stripe/includes/template-functions.php:492 -#: includes/gateways/stripe/includes/template-functions.php:796 +#: includes/gateways/stripe/includes/template-functions.php:501 +#: includes/gateways/stripe/includes/template-functions.php:805 msgid "Billing Details" msgstr "" -#: includes/gateways/stripe/includes/template-functions.php:542 +#: includes/gateways/stripe/includes/template-functions.php:551 msgid "ZIP Code" msgstr "" -#: includes/gateways/stripe/includes/template-functions.php:635 -#: includes/gateways/stripe/includes/template-functions.php:679 +#: includes/gateways/stripe/includes/template-functions.php:644 +#: includes/gateways/stripe/includes/template-functions.php:688 msgid "Please Wait…" msgstr "" -#: includes/gateways/stripe/includes/template-functions.php:636 -#: includes/gateways/stripe/includes/template-functions.php:637 +#: includes/gateways/stripe/includes/template-functions.php:645 +#: includes/gateways/stripe/includes/template-functions.php:646 msgid "Update Card" msgstr "" -#: includes/gateways/stripe/includes/template-functions.php:656 +#: includes/gateways/stripe/includes/template-functions.php:665 msgid "Credit Card Details" msgstr "" -#: includes/gateways/stripe/includes/template-functions.php:680 -#: includes/gateways/stripe/includes/template-functions.php:681 +#: includes/gateways/stripe/includes/template-functions.php:689 +#: includes/gateways/stripe/includes/template-functions.php:690 msgid "Add new card" msgstr "" -#: includes/gateways/stripe/includes/template-functions.php:799 +#: includes/gateways/stripe/includes/template-functions.php:808 msgid "Billing Country" msgstr "" -#: includes/gateways/stripe/includes/template-functions.php:823 +#: includes/gateways/stripe/includes/template-functions.php:832 msgid "Billing Zip / Postal Code" msgstr "" -#: includes/gateways/stripe/includes/template-functions.php:897 +#: includes/gateways/stripe/includes/template-functions.php:906 #: includes/process-purchase.php:487 msgid "Please enter your zip / postal code" msgstr "" -#: includes/gateways/stripe/includes/template-functions.php:902 +#: includes/gateways/stripe/includes/template-functions.php:911 #: includes/process-purchase.php:499 msgid "Please select your billing country" msgstr "" +#: includes/gateways/stripe/includes/utils/regional-support/class-edd-stripe-region-base.php:113 +msgid "Based on your store's base country of %s, it is recommended to set your Billing Address Display to use the \"Full Address\" option to ensure payments are completed successfully." +msgstr "" + #: includes/gateways/stripe/includes/webhooks.php:27 msgid "Unable to find Event" msgstr "" @@ -11503,7 +11530,7 @@ msgstr "" msgid "The maximum refund %s for the adjustment \"%s\" is %s." msgstr "" -#: includes/orders/functions/orders.php:673 +#: includes/orders/functions/orders.php:661 msgid "Payment recovery processed" msgstr "" @@ -11548,61 +11575,61 @@ msgstr "" msgid "Invoices" msgstr "" -#: includes/payments/actions.php:277 +#: includes/payments/actions.php:274 msgid "After payment actions processed." msgstr "" -#: includes/payments/actions.php:353 -#: includes/payments/actions.php:414 +#: includes/payments/actions.php:350 +#: includes/payments/actions.php:411 msgid "Error resuming payment." msgstr "" -#: includes/payments/actions.php:357 +#: includes/payments/actions.php:354 msgid "Payment recovery triggered URL" msgstr "" -#: includes/payments/actions.php:435 -#: includes/payments/actions.php:469 +#: includes/payments/actions.php:432 +#: includes/payments/actions.php:466 msgid "To complete this payment, please login to your account." msgstr "" -#: includes/payments/actions.php:437 +#: includes/payments/actions.php:434 msgid "Lost Password" msgstr "" -#: includes/payments/class-edd-payment.php:1824 +#: includes/payments/class-edd-payment.php:1821 msgid "Array key \"post_status\" is no longer a supported attribute for the \"edd_update_payment_status_fields\" filter. Please use \"status\" instead." msgstr "" -#: includes/payments/functions.php:540 +#: includes/payments/functions.php:536 msgid "Processing" msgstr "" -#: includes/payments/functions.php:541 +#: includes/payments/functions.php:537 msgid "Completed" msgstr "" -#: includes/payments/functions.php:542 +#: includes/payments/functions.php:538 msgid "Refunded" msgstr "" -#: includes/payments/functions.php:543 +#: includes/payments/functions.php:539 msgid "Partially Refunded" msgstr "" -#: includes/payments/functions.php:544 +#: includes/payments/functions.php:540 msgid "Revoked" msgstr "" -#: includes/payments/functions.php:545 +#: includes/payments/functions.php:541 msgid "Failed" msgstr "" -#: includes/payments/functions.php:546 +#: includes/payments/functions.php:542 msgid "Abandoned" msgstr "" -#: includes/payments/functions.php:2012 +#: includes/payments/functions.php:2008 msgid "A store migration is in progress. Past orders will not appear in your purchase history until they have been updated." msgstr "" @@ -12394,7 +12421,7 @@ msgid "Global Rate" msgstr "" #: includes/reports/reports-functions.php:328 -#: includes/reports/reports-functions.php:1424 +#: includes/reports/reports-functions.php:1478 msgid "Exclude Taxes" msgstr "" @@ -12450,19 +12477,19 @@ msgstr "" msgid "Previous year" msgstr "" -#: includes/reports/reports-functions.php:1229 +#: includes/reports/reports-functions.php:1283 msgid "Chart time zone: %s" msgstr "" -#: includes/reports/reports-functions.php:1330 +#: includes/reports/reports-functions.php:1384 msgid "compared to" msgstr "" -#: includes/reports/reports-functions.php:1593 +#: includes/reports/reports-functions.php:1647 msgid "%s - Converted" msgstr "" -#: includes/reports/reports-functions.php:1730 +#: includes/reports/reports-functions.php:1784 msgid "Try the Sales/Earnings iOS App!" msgstr "" @@ -12727,52 +12754,52 @@ msgstr "" msgid "Plain Text" msgstr "" -#: includes/user-functions.php:573 +#: includes/user-functions.php:584 msgid "[%s] New User Registration" msgstr "" -#: includes/user-functions.php:574 +#: includes/user-functions.php:585 msgid "New user registration" msgstr "" -#: includes/user-functions.php:576 +#: includes/user-functions.php:587 msgid "E-mail: %s" msgstr "" -#: includes/user-functions.php:585 +#: includes/user-functions.php:596 msgid "[%s] Your username and password" msgstr "" -#: includes/user-functions.php:586 +#: includes/user-functions.php:597 msgid "Your account info" msgstr "" -#: includes/user-functions.php:590 +#: includes/user-functions.php:601 msgid "Password entered at checkout" msgstr "" -#: includes/user-functions.php:592 +#: includes/user-functions.php:603 msgid "Password entered at registration" msgstr "" -#: includes/user-functions.php:595 +#: includes/user-functions.php:606 msgid "Password: %s" msgstr "" -#: includes/user-functions.php:600 +#: includes/user-functions.php:611 msgid "Click here to log in" msgstr "" -#: includes/user-functions.php:604 +#: includes/user-functions.php:615 msgid "To log in, visit: %s" msgstr "" -#: includes/user-functions.php:758 -#: includes/user-functions.php:759 +#: includes/user-functions.php:769 +#: includes/user-functions.php:770 msgid "Verify your account" msgstr "" -#: includes/user-functions.php:761 +#: includes/user-functions.php:772 msgid "" "Hello %1$s,\n" "\n" @@ -12781,35 +12808,35 @@ msgid "" "\t\tLink missing? Visit the following URL: %3$s" msgstr "" -#: includes/user-functions.php:891 +#: includes/user-functions.php:902 msgid "Sorry but your account verification link has expired. Click here to request a new verification URL." msgstr "" -#: includes/user-functions.php:924 +#: includes/user-functions.php:935 msgid "You must be logged in to verify your account." msgstr "" -#: includes/user-functions.php:928 +#: includes/user-functions.php:939 msgid "Your account has already been verified." msgstr "" -#: includes/user-functions.php:972 +#: includes/user-functions.php:983 msgid "Invalid verification token provided." msgstr "" -#: includes/user-functions.php:1102 +#: includes/user-functions.php:1113 msgid "Public Key:" msgstr "" -#: includes/user-functions.php:1105 +#: includes/user-functions.php:1116 msgid "Secret Key:" msgstr "" -#: includes/user-functions.php:1129 +#: includes/user-functions.php:1140 msgid "Easy Digital Downloads iOS App" msgstr "" -#: includes/user-functions.php:1136 +#: includes/user-functions.php:1147 msgid "Add to iOS App" msgstr "" @@ -12853,25 +12880,27 @@ msgstr "" msgid "Your password reset link has expired. Please request a new link below." msgstr "" -#: includes/users/lost-password.php:233 -msgid "Your password reset link appears to be invalid. Please request a new link below." +#: includes/users/lost-password.php:253 +#: includes/users/lost-password.php:257 +#: includes/users/lost-password.php:263 +msgid "Invalid password reset request." msgstr "" -#: includes/users/lost-password.php:256 +#: includes/users/lost-password.php:272 #: includes/users/register.php:97 msgid "The password cannot be a space or all spaces." msgstr "" -#: includes/users/lost-password.php:261 +#: includes/users/lost-password.php:277 #: includes/users/register.php:102 msgid "The passwords do not match." msgstr "" -#: includes/users/lost-password.php:266 +#: includes/users/lost-password.php:282 msgid "Your password could not be reset." msgstr "" -#: includes/users/lost-password.php:273 +#: includes/users/lost-password.php:291 msgid "Your password was successfully reset." msgstr "" @@ -13640,8 +13669,8 @@ msgid "Run the WP Mail SMTP Setup Wizard" msgstr "" #: src/Licensing/Ajax.php:50 -#: src/Licensing/Ajax.php:134 -#: src/Licensing/Ajax.php:174 +#: src/Licensing/Ajax.php:135 +#: src/Licensing/Ajax.php:177 msgid "You do not have permission to manage this extension." msgstr "" @@ -13650,16 +13679,16 @@ msgstr "" msgid "No key provided." msgstr "" -#: src/Licensing/Ajax.php:90 +#: src/Licensing/Ajax.php:91 msgid "Your license key could not be activated." msgstr "" -#: src/Licensing/Ajax.php:158 +#: src/Licensing/Ajax.php:161 #: src/Licensing/Messages.php:178 msgid "Your license key has been deactivated." msgstr "" -#: src/Licensing/Ajax.php:186 +#: src/Licensing/Ajax.php:189 msgid "License key deleted." msgstr "" @@ -13706,68 +13735,58 @@ msgstr "" msgid "The key you entered belongs to a bundle, please use the product specific license key." msgstr "" -#: src/Licensing/Messages.php:190 -msgid "unknown_error" -msgstr "" - -#. translators: 1. the error code; 2. opening link tag; 3. closing link tag. -#: src/Licensing/Messages.php:193 -msgid "There was an error with this license key: %1$s. Please %2$scontact our support team%3$s." -msgstr "" - -#. translators: the extension name. -#: src/Licensing/Messages.php:201 +#: src/Licensing/Messages.php:189 msgid "Unlicensed: currently not receiving updates." msgstr "" -#: src/Licensing/Messages.php:218 +#: src/Licensing/Messages.php:204 msgid "License key never expires." msgstr "" #. translators: the license expiration date. -#: src/Licensing/Messages.php:224 +#: src/Licensing/Messages.php:210 msgid "Your license key expires soon! It expires on %s." msgstr "" #. translators: the license expiration date. -#: src/Licensing/Messages.php:231 +#: src/Licensing/Messages.php:217 msgid "Your license key expires on %s." msgstr "" -#: src/Licensing/Messages.php:244 +#: src/Licensing/Messages.php:230 msgid "Your license subscription is active and will automatically renew." msgstr "" #. translators: the license subscription status. -#: src/Licensing/Messages.php:249 +#: src/Licensing/Messages.php:235 msgid "Your license subscription is %s and will not automatically renew." msgstr "" -#: src/Licensing/Messages.php:263 +#: src/Licensing/Messages.php:249 msgid "pending" msgstr "" -#: src/Licensing/Messages.php:264 +#: src/Licensing/Messages.php:250 msgid "active" msgstr "" -#: src/Licensing/Messages.php:265 +#: src/Licensing/Messages.php:251 msgid "cancelled" msgstr "" -#: src/Licensing/Messages.php:266 +#: src/Licensing/Messages.php:252 msgid "expired" msgstr "" -#: src/Licensing/Messages.php:267 +#: src/Licensing/Messages.php:253 msgid "trialling" msgstr "" -#: src/Licensing/Messages.php:268 +#: src/Licensing/Messages.php:254 msgid "failing" msgstr "" -#: src/Licensing/Messages.php:269 +#: src/Licensing/Messages.php:255 msgid "completed" msgstr "" @@ -13922,6 +13941,20 @@ msgstr "" msgid "Select a Download" msgstr "" +#: includes/blocks/build/buy-button/index.js:1 +msgid "Current Download" +msgstr "" + +#: includes/blocks/build/buy-button/index.js:1 +#: includes/blocks/build/downloads/index.js:1 +msgid "No Downloads Found" +msgstr "" + +#: includes/blocks/build/buy-button/index.js:1 +#: includes/blocks/build/downloads/index.js:1 +msgid "Create Your First Download" +msgstr "" + #: includes/blocks/build/buy-button/index.js:1 msgid "Select a Download:" msgstr "" @@ -13935,6 +13968,10 @@ msgstr "" msgid "Show Price" msgstr "" +#: includes/blocks/build/buy-button/index.js:1 +msgid "Enable Buy Now to process a download order without going through the full checkout." +msgstr "" + #: includes/blocks/build/cart/index.js:1 msgid "Mini Cart" msgstr "" diff --git a/wp-content/plugins/easy-digital-downloads/readme.txt b/wp-content/plugins/easy-digital-downloads/readme.txt index 94d61471..2d7fdc66 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.3 +Stable Tag: 3.1.1.4.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,6 +225,34 @@ 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 = +* Security: Improved validation for edd hooks. + += 3.1.1.4.1, April 21, 2023 = +* Fix - Blocks: Harden blocks loader to verify files exist before requiring them. + += 3.1.1.4, April 20, 2023 = +* 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. +* Improvement: The onboarding wizard loading was not allowing a close and exit after the first step. +* Improvement: License key handling for 3rd party extensions has been accounted for. +* Improvement: When using sequential order numbers, searching has been updated to account for order number. +* Improvement - Stripe: The Payment Element has been improved to handle failed 3DS challenges. +* Improvement - Stripe: Failed payment attempts are now more reliably accounted for. +* Improvement - Stripe: The Payment Element billing fields can now be filtered. +* Improvement - Stripe: The Payment Element now supports mandates, improving multi-regional payments. +* Improvement - Stripe: The 'Card Name' field is re-introduced for regions that require it. +* Improvement - Blocks: Better support for custom fields with the Checkout Block. +* Improvement - Blocks: Developers can now register custom columns for the User Downloads block. +* Improvement - Blocks: The Buy Now button can now have its behavior defined as Add to Cart or Buy Now. +* Fix: Discounts with high value amounts were not saving correctly. +* Fix: Bulk Editing prices was not working with WordPress 6.1+. +* Fix: Exporting product sales was not always respecting the date range filters. +* Fix: Exports with date queries were not always accounting for timezones accurately. +* 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 = * Improvement: The orders list table in the admin now sorts orders by date as the default. diff --git a/wp-content/plugins/easy-digital-downloads/src/Core.php b/wp-content/plugins/easy-digital-downloads/src/Core.php index ac07ef26..9e6c2972 100644 --- a/wp-content/plugins/easy-digital-downloads/src/Core.php +++ b/wp-content/plugins/easy-digital-downloads/src/Core.php @@ -19,6 +19,7 @@ class Core extends EventManagement\Subscribers { return array( new Admin\PassHandler\Ajax( $this->pass_handler ), new Admin\Extensions\Extension_Manager(), + new Customers\Recalculations(), ); } diff --git a/wp-content/plugins/easy-digital-downloads/src/Customers/Recalculations.php b/wp-content/plugins/easy-digital-downloads/src/Customers/Recalculations.php new file mode 100644 index 00000000..d7a462ff --- /dev/null +++ b/wp-content/plugins/easy-digital-downloads/src/Customers/Recalculations.php @@ -0,0 +1,123 @@ + array( 'maybe_schedule_recalculation', 10, 2 ), + 'edd_order_updated' => array( 'maybe_schedule_recalculation', 10, 3 ), + 'edd_order_deleted' => 'maybe_schedule_recalculation', + 'edd_recalculate_customer_deferred' => 'recalculate', + ); + } + + /** + * When an order is added, updated, or changed, the customer stats may need to be recalculated. + * + * @param int $order_id The order ID. + * @param array $data The array of order data. + * @param bool|EDD\Orders|Order $previous_order The previous order object (when updating). + * @return void + */ + public function maybe_schedule_recalculation( $order_id, $data = array(), $previous_order = false ) { + + // 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; + } + + // If the order item data being updated doesn't affect sales/earnings, recalculations do not need to be run. + if ( $previous_order instanceof EDD\Orders\Order ) { + $columns_affecting_stats = array( 'status', 'total', 'subtotal', 'discount', 'tax', 'rate', 'customer_id' ); + + // If the data being updated isn't one of these columns then we don't need to recalculate. + if ( empty( array_intersect( array_keys( $data ), $columns_affecting_stats ) ) ) { + return; + } + + // If the data exists but matches, we don't need to recalculate. + if ( + ( empty( $data['status'] ) || $previous_order->status === $data['status'] ) && + ( ! isset( $data['total'] ) || $previous_order->total == $data['total'] ) && + ( ! isset( $data['subtotal'] ) || $previous_order->subtotal == $data['subtotal'] ) && + ( ! isset( $data['discount'] ) || $previous_order->discount == $data['discount'] ) && + ( ! isset( $data['tax'] ) || $previous_order->tax == $data['tax'] ) && + ( ! isset( $data['rate'] ) || $previous_order->rate == $data['rate'] ) && + ( empty( $data['customer_id'] ) || $previous_order->customer_id == $data['customer_id'] ) + ) { + return; + } + + // Recalculate the previous product values if the product ID has changed. + if ( ! empty( $data['customer_id'] ) && $previous_order->customer_id != $data['customer_id'] ) { + $this->schedule_recalculation( $previous_order->customer_id ); + } + } + + $order = edd_get_order( $order_id ); + if ( empty( $order->customer_id ) ) { + return; + } + + $this->schedule_recalculation( $order->customer_id ); + } + + /** + * Recalculate the value of a customer. + * + * @since 3.1.1.4 + * @param int $customer_id + * @return void + */ + public function recalculate( $customer_id ) { + $customer = edd_get_customer( $customer_id ); + if ( ! $customer instanceof \EDD_Customer ) { + return; + } + $customer->recalculate_stats(); + } + + /** + * Maybe schedule the customer recalculation--it will be skipped if already scheduled. + * + * @since 3.1.1.4 + * @param int $customer_id + * @return void + */ + private function schedule_recalculation( $customer_id ) { + $is_scheduled = wp_next_scheduled( 'edd_recalculate_customer_deferred', array( $customer_id ) ); + $bypass_cron = apply_filters( 'edd_recalculate_bypass_cron', false ); + + // Check if the recalculation has already been scheduled. + if ( $is_scheduled && ! $bypass_cron ) { + edd_debug_log( 'Recalculation is already scheduled for customer ' . $customer_id . ' at ' . edd_date_i18n( $is_scheduled, 'datetime' ) ); + return; + } + + // If we are intentionally bypassing cron somehow, recalculate now and return. + if ( $bypass_cron || ( defined( 'EDD_DOING_TESTS' ) && EDD_DOING_TESTS ) || ( defined( 'DISABLE_WP_CRON' ) && DISABLE_WP_CRON ) ) { + $this->recalculate( $customer_id ); + return; + } + + edd_debug_log( 'Scheduling recalculation for customer ' . $customer_id ); + wp_schedule_single_event( + time() + ( 5 * MINUTE_IN_SECONDS ), + 'edd_recalculate_customer_deferred', + array( $customer_id ) + ); + } +} diff --git a/wp-content/plugins/easy-digital-downloads/includes/extensions/ExtensionRegistry.php b/wp-content/plugins/easy-digital-downloads/src/Extensions/ExtensionRegistry.php similarity index 89% rename from wp-content/plugins/easy-digital-downloads/includes/extensions/ExtensionRegistry.php rename to wp-content/plugins/easy-digital-downloads/src/Extensions/ExtensionRegistry.php index c9684cd8..17f9b51e 100644 --- a/wp-content/plugins/easy-digital-downloads/includes/extensions/ExtensionRegistry.php +++ b/wp-content/plugins/easy-digital-downloads/src/Extensions/ExtensionRegistry.php @@ -35,7 +35,7 @@ class ExtensionRegistry extends \ArrayObject { $this->offsetSet( $pluginId, - new \EDD_License( $pluginFile, $pluginName, $currentVersion, 'Easy Digital Downloads', $optionName, null, $pluginId ) + new Handler( $pluginFile, $pluginId, $pluginName, $currentVersion, $optionName ) ); } @@ -46,8 +46,7 @@ class ExtensionRegistry extends \ArrayObject { * flexibility to change exactly what it returns in the future. * * @since 2.11.4 - * - * @return \EDD_License[] + * @return Handler[] */ private function getExtensions() { return $this->getArrayCopy(); @@ -64,8 +63,8 @@ class ExtensionRegistry extends \ArrayObject { * @return int */ public function countLicensedExtensions() { - $licensedExtensions = array_filter( $this->getExtensions(), function ( \EDD_License $license ) { - return ! empty( $license->license ); + $licensedExtensions = array_filter( $this->getExtensions(), function ( Handler $license ) { + return ! empty( $license->license_key ); } ); return count( $licensedExtensions ); diff --git a/wp-content/plugins/easy-digital-downloads/src/Extensions/Handler.php b/wp-content/plugins/easy-digital-downloads/src/Extensions/Handler.php new file mode 100644 index 00000000..bbbb349f --- /dev/null +++ b/wp-content/plugins/easy-digital-downloads/src/Extensions/Handler.php @@ -0,0 +1,407 @@ +file = $_file; + $this->item_id = absint( $_item_id ); + $this->item_name = $_item_name; + $this->item_shortname = $this->get_shortname(); + $this->version = $_version; + $this->edd_license = new License( $this->item_name, $_optname ); + if ( empty( $this->edd_license->key ) || empty( $this->edd_license->license ) ) { + $pro_license = new License( 'pro' ); + if ( ! empty( $pro_license->key ) ) { + $this->is_pro_license = true; + $this->edd_license = $pro_license; + } + } + $this->license_key = $this->edd_license->key; + $this->pass_manager = new Pass_Manager(); + + $this->hooks(); + $this->update_global(); + } + + /** + * Set up hooks. + * + * @access private + * @return void + */ + private function hooks() { + + // Register settings. + 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() ) { + add_action( 'edd_weekly_scheduled_events', array( $this, 'weekly_license_check' ) ); + } + + // Updater. + add_action( 'init', array( $this, 'auto_updater' ) ); + + // Display notices to admins. + add_action( 'admin_notices', array( $this, 'notices' ) ); + add_action( 'in_plugin_update_message-' . plugin_basename( $this->file ), array( $this, 'plugin_row_license_missing' ), 10, 2 ); + + // Register plugins for beta support. + add_filter( 'edd_beta_enabled_extensions', array( $this, 'register_beta_support' ) ); + } + + /** + * Auto updater + * + * @return void + */ + public function auto_updater() { + + if ( ! current_user_can( 'manage_options' ) && ! edd_doing_cron() ) { + return; + } + + // Fall back to the highest license key if one is not saved for this extension or there isn't a pro license. + if ( empty( $this->license_key ) ) { + if ( $this->pass_manager->highest_license_key ) { + $this->license_key = $this->pass_manager->highest_license_key; + } + } + + // Don't check for updates if there isn't a license key. + if ( empty( $this->license_key ) ) { + return; + } + + $args = array( + 'version' => $this->version, + 'license' => $this->license_key, + 'item_id' => $this->item_id, + 'beta' => function_exists( 'edd_extension_has_beta_support' ) && edd_extension_has_beta_support( $this->item_shortname ), + ); + + // Set up the updater. + new Updater( + $this->file, + $args + ); + } + + /** + * Add license field to settings, unless the extension is included in the user's pass. + * + * @param array $settings + * @return array + */ + public function settings( $settings ) { + if ( $this->is_pro_license && $this->is_included_in_pass() ) { + return $settings; + } + + return array_merge( + $settings, + array( + array( + 'id' => "{$this->item_shortname}_license_key", + 'name' => $this->item_name, + 'type' => 'license_key', + 'options' => array( + 'is_valid_license_option' => "{$this->item_shortname}_license_active", + 'item_id' => $this->item_id, + ), + ), + ) + ); + } + + /** + * Check if license key is valid once per week + * + * @since 2.5 + * @return void + */ + public function weekly_license_check() { + + // Don't fire when saving settings. + if ( ! empty( $_POST['edd_settings'] ) ) { + return; + } + + if ( empty( $this->license_key ) ) { + return; + } + + if ( ! edd_doing_cron() ) { + return; + } + + // data to send in our API request + $api_params = array( + 'edd_action' => 'check_license', + 'license' => $this->license_key, + 'item_name' => urlencode( $this->item_name ), + 'item_id' => $this->item_id, + ); + + $api_handler = new API(); + $license_data = $api_handler->make_request( $api_params ); + if ( ! $license_data ) { + return false; + } + + $this->pass_manager->maybe_set_pass_flag( $this->license_key, $license_data ); + $this->edd_license->save( $license_data ); + } + + /** + * Admin notices for errors. + * + * @return void + */ + public function notices() { + if ( ! $this->should_show_error_notice() ) { + return; + } + + EDD()->notices->add_notice( + array( + 'id' => 'edd-missing-license', + 'class' => "error {$this->item_shortname}-license-error", + 'message' => sprintf( + /* translators: 1. opening anchor tag; 2. closing anchor tag */ + __( 'You have invalid or expired license keys for Easy Digital Downloads. %1$sActivate License(s)%2$s', 'easy-digital-downloads' ), + '', + '' + ), + 'is_dismissible' => false, + ) + ); + } + + /** + * Displays message inline on plugin row that the license key is missing + * + * @since 2.5 + * @return void + */ + public function plugin_row_license_missing( $plugin_data, $version_info ) { + static $showed_imissing_key_message = array(); + + if ( ! $this->is_license_valid() && empty( $showed_imissing_key_message[ $this->item_shortname ] ) ) { + echo ' ' . esc_html__( 'Enter valid license key for automatic updates.', 'easy-digital-downloads' ) . ''; + $showed_imissing_key_message[ $this->item_shortname ] = true; + } + } + + /** + * Adds this plugin to the beta page + * + * @param array $products + * @since 2.6.11 + * @return array + */ + public function register_beta_support( $products ) { + $products[ $this->item_shortname ] = $this->item_name; + + return $products; + } + + /** + * Gets the URL for the licensing tab. + * + * @since 3.1.1.4 + * @return string + */ + private function get_license_tab_url() { + return edd_get_admin_url( + array( + 'page' => 'edd-settings', + 'tab' => 'licenses', + ) + ); + } + + /** + * Whether the license is valid. + * + * @since 3.1.1.4 + * @return bool + */ + private function is_license_valid() { + return ! empty( $this->license_key ) && 'valid' === $this->edd_license->license; + } + + /** + * Gets the extension shortname. + * + * @since 3.1.1.4 + * @return string + */ + private function get_shortname() { + return 'edd_' . preg_replace( '/[^a-zA-Z0-9_\s]/', '', str_replace( ' ', '_', strtolower( $this->item_name ) ) ); + } + + /** + * Maintain an array of active, licensed plugins that have a license key entered. + * This is to help us more easily determine if the site has a license key entered + * at all. Initializing it this way helps us limit the data to activated plugins only. + * If we relied on the options table (`edd_%_license_active`) then we could accidentally + * be picking up plugins that have since been deactivated. + * + * @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; + } + + /** + * Whether a given product is included in the customer's active pass. + * Note this is nearly a copy of what's in EDD\Licensing\Traits\Controls\is_included_in_pass(). + * + * @since 3.1.1.4 + * @return bool + */ + private function is_included_in_pass() { + // All Access and lifetime passes can access everything. + if ( $this->pass_manager->hasAllAccessPass() ) { + return true; + } + + $api = new \EDD\Admin\Extensions\ExtensionsAPI(); + $product_data = $api->get_product_data( array(), $this->item_id ); + if ( ! $product_data || empty( $product_data->categories ) ) { + return false; + } + + return (bool) $this->pass_manager->can_access_categories( $product_data->categories ); + } + + /** + * Helper method to determine if we should show the error notice. + * + * @since 3.1.1.4 + * @return bool + */ + private function should_show_error_notice() { + + // Included in pass. + if ( $this->is_included_in_pass() ) { + return false; + } + + // Not a pro license, but valid. + if ( ! $this->is_pro_license && $this->is_license_valid() ) { + return false; + } + + // Current user lacks permissions. + if ( ! current_user_can( 'manage_shop_settings' ) ) { + return false; + } + + // It's the licenses tab. + if ( ! empty( $_GET['tab'] ) && 'licenses' === $_GET['tab'] ) { + return false; + } + + return true; + } +} diff --git a/wp-content/plugins/easy-digital-downloads/src/Extensions/Updater.php b/wp-content/plugins/easy-digital-downloads/src/Extensions/Updater.php new file mode 100644 index 00000000..2b289759 --- /dev/null +++ b/wp-content/plugins/easy-digital-downloads/src/Extensions/Updater.php @@ -0,0 +1,605 @@ +api_handler = new \EDD\Licensing\API(); + $this->api_url = trailingslashit( $this->api_handler->get_url() ); + $this->api_data = $_api_data; + $this->plugin_file = $_plugin_file; + $this->name = plugin_basename( $_plugin_file ); + $this->slug = basename( $_plugin_file, '.php' ); + $this->version = $_api_data['version']; + $this->wp_override = isset( $_api_data['wp_override'] ) ? (bool) $_api_data['wp_override'] : false; + $this->beta = ! empty( $this->api_data['beta'] ) ? true : false; + $this->failed_request_cache_key = 'edd_sl_failed_http_' . md5( $this->api_url ); + + $edd_plugin_data[ $this->slug ] = $this->api_data; + + // Set up hooks. + $this->init(); + } + + /** + * Set up WordPress filters to hook into WP's update process. + * + * @uses add_filter() + * + * @return void + */ + public function init() { + add_filter( 'pre_set_site_transient_update_plugins', array( $this, 'check_update' ) ); + add_filter( 'plugins_api', array( $this, 'plugins_api_filter' ), 10, 3 ); + add_action( 'after_plugin_row', array( $this, 'show_update_notification' ), 10, 2 ); + add_action( 'admin_init', array( $this, 'show_changelog' ) ); + } + + /** + * Check for Updates at the defined API endpoint and modify the update array. + * + * This function dives into the update API just when WordPress creates its update array, + * then adds a custom API call and injects the custom plugin data retrieved from the API. + * It is reassembled from parts of the native WordPress plugin update code. + * See wp-includes/update.php line 121 for the original wp_update_plugins() function. + * + * @uses api_request() + * + * @param array $_transient_data Update array build by WordPress. + * @return array Modified update array with custom plugin data. + */ + public function check_update( $_transient_data ) { + + if ( ! is_object( $_transient_data ) ) { + $_transient_data = new \stdClass(); + } + + if ( ! empty( $_transient_data->response ) && ! empty( $_transient_data->response[ $this->name ] ) && false === $this->wp_override ) { + return $_transient_data; + } + + $current = $this->get_repo_api_data(); + if ( false !== $current && is_object( $current ) && isset( $current->new_version ) ) { + if ( version_compare( $this->version, $current->new_version, '<' ) ) { + $_transient_data->response[ $this->name ] = $current; + } else { + // Populating the no_update information is required to support auto-updates in WordPress 5.5. + $_transient_data->no_update[ $this->name ] = $current; + } + } + $_transient_data->last_checked = time(); + $_transient_data->checked[ $this->name ] = $this->version; + + return $_transient_data; + } + + /** + * Get repo API data from store. + * Save to cache. + * + * @return \stdClass + */ + public function get_repo_api_data() { + $version_info = $this->get_cached_version_info(); + + if ( false === $version_info ) { + $version_info = $this->api_request( + 'plugin_latest_version', + array( + 'slug' => $this->slug, + 'beta' => $this->beta, + ) + ); + if ( ! $version_info ) { + return false; + } + + // This is required for your plugin to support auto-updates in WordPress 5.5. + $version_info->plugin = $this->name; + $version_info->id = $this->name; + $version_info->tested = $this->get_tested_version( $version_info ); + + $this->set_version_info_cache( $version_info ); + } + + return $version_info; + } + + /** + * Gets the plugin's tested version. + * + * @since 1.9.2 + * @param object $version_info + * @return null|string + */ + private function get_tested_version( $version_info ) { + + // There is no tested version. + if ( empty( $version_info->tested ) ) { + return null; + } + + // Strip off extra version data so the result is x.y or x.y.z. + list( $current_wp_version ) = explode( '-', get_bloginfo( 'version' ) ); + + // The tested version is greater than or equal to the current WP version, no need to do anything. + if ( version_compare( $version_info->tested, $current_wp_version, '>=' ) ) { + return $version_info->tested; + } + $current_version_parts = explode( '.', $current_wp_version ); + $tested_parts = explode( '.', $version_info->tested ); + + // The current WordPress version is x.y.z, so update the tested version to match it. + if ( isset( $current_version_parts[2] ) && $current_version_parts[0] === $tested_parts[0] && $current_version_parts[1] === $tested_parts[1] ) { + $tested_parts[2] = $current_version_parts[2]; + } + + return implode( '.', $tested_parts ); + } + + /** + * Show the update notification on multisite subsites. + * + * @param string $file + * @param array $plugin + */ + public function show_update_notification( $file, $plugin ) { + + // Return early if in the network admin, or if this is not a multisite install. + if ( is_network_admin() || ! is_multisite() ) { + return; + } + + // Allow single site admins to see that an update is available. + if ( ! current_user_can( 'activate_plugins' ) ) { + return; + } + + if ( $this->name !== $file ) { + return; + } + + // Do not print any message if update does not exist. + $update_cache = get_site_transient( 'update_plugins' ); + + if ( ! isset( $update_cache->response[ $this->name ] ) ) { + if ( ! is_object( $update_cache ) ) { + $update_cache = new \stdClass(); + } + $update_cache->response[ $this->name ] = $this->get_repo_api_data(); + } + + // Return early if this plugin isn't in the transient->response or if the site is running the current or newer version of the plugin. + if ( empty( $update_cache->response[ $this->name ] ) || version_compare( $this->version, $update_cache->response[ $this->name ]->new_version, '>=' ) ) { + return; + } + + printf( + '', + $this->slug, + $file, + in_array( $this->name, $this->get_active_plugins(), true ) ? 'active' : 'inactive' + ); + + echo ''; + echo '

    '; + + $changelog_link = ''; + if ( ! empty( $update_cache->response[ $this->name ]->sections->changelog ) ) { + $changelog_link = add_query_arg( + array( + 'edd_sl_action' => 'view_plugin_changelog', + 'plugin' => urlencode( $this->name ), + 'slug' => urlencode( $this->slug ), + 'TB_iframe' => 'true', + 'width' => 77, + 'height' => 911, + ), + self_admin_url( 'index.php' ) + ); + } + $update_link = add_query_arg( + array( + 'action' => 'upgrade-plugin', + 'plugin' => urlencode( $this->name ), + ), + self_admin_url( 'update.php' ) + ); + + printf( + /* translators: the plugin name. */ + esc_html__( 'There is a new version of %1$s available.', 'easy-digital-downloads' ), + esc_html( $plugin['Name'] ) + ); + + if ( ! current_user_can( 'update_plugins' ) ) { + echo ' '; + esc_html_e( 'Contact your network administrator to install the update.', 'easy-digital-downloads' ); + } elseif ( empty( $update_cache->response[ $this->name ]->package ) && ! empty( $changelog_link ) ) { + echo ' '; + printf( + /* translators: 1. opening anchor tag, do not translate 2. the new plugin version 3. closing anchor tag, do not translate. */ + __( '%1$sView version %2$s details%3$s.', 'easy-digital-downloads' ), + '', + esc_html( $update_cache->response[ $this->name ]->new_version ), + '' + ); + } elseif ( ! empty( $changelog_link ) ) { + echo ' '; + printf( + __( '%1$sView version %2$s details%3$s or %4$supdate now%5$s.', 'easy-digital-downloads' ), + '', + esc_html( $update_cache->response[ $this->name ]->new_version ), + '', + '', + '' + ); + } else { + printf( + ' %1$s%2$s%3$s', + '', + esc_html__( 'Update now.', 'easy-digital-downloads' ), + '' + ); + } + + do_action( "in_plugin_update_message-{$file}", $plugin, $plugin ); + + echo '

    '; + } + + /** + * Gets the plugins active in a multisite network. + * + * @return array + */ + private function get_active_plugins() { + $active_plugins = (array) get_option( 'active_plugins' ); + $active_network_plugins = (array) get_site_option( 'active_sitewide_plugins' ); + + return array_merge( $active_plugins, array_keys( $active_network_plugins ) ); + } + + /** + * Updates information on the "View version x.x details" page with custom data. + * + * @uses api_request() + * + * @param mixed $_data + * @param string $_action + * @param object $_args + * @return object $_data + */ + public function plugins_api_filter( $_data, $_action = '', $_args = null ) { + + if ( 'plugin_information' !== $_action ) { + return $_data; + } + + if ( ! isset( $_args->slug ) || ( $_args->slug !== $this->slug ) ) { + return $_data; + } + + $to_send = array( + 'slug' => $this->slug, + 'is_ssl' => is_ssl(), + 'fields' => array( + 'banners' => array(), + 'reviews' => false, + 'icons' => array(), + ), + ); + + // Get the transient where we store the api request for this plugin for 24 hours + $edd_api_request_transient = $this->get_cached_version_info(); + + //If we have no transient-saved value, run the API, set a fresh transient with the API value, and return that value too right now. + if ( empty( $edd_api_request_transient ) ) { + + $api_response = $this->api_request( 'plugin_information', $to_send ); + + // Expires in 3 hours + $this->set_version_info_cache( $api_response ); + + if ( false !== $api_response ) { + $_data = $api_response; + } + } else { + $_data = $edd_api_request_transient; + } + + // Convert sections into an associative array, since we're getting an object, but Core expects an array. + if ( isset( $_data->sections ) && ! is_array( $_data->sections ) ) { + $_data->sections = $this->convert_object_to_array( $_data->sections ); + } + + // Convert banners into an associative array, since we're getting an object, but Core expects an array. + if ( isset( $_data->banners ) && ! is_array( $_data->banners ) ) { + $_data->banners = $this->convert_object_to_array( $_data->banners ); + } + + // Convert icons into an associative array, since we're getting an object, but Core expects an array. + if ( isset( $_data->icons ) && ! is_array( $_data->icons ) ) { + $_data->icons = $this->convert_object_to_array( $_data->icons ); + } + + // Convert contributors into an associative array, since we're getting an object, but Core expects an array. + if ( isset( $_data->contributors ) && ! is_array( $_data->contributors ) ) { + $_data->contributors = $this->convert_object_to_array( $_data->contributors ); + } + + if ( ! isset( $_data->plugin ) ) { + $_data->plugin = $this->name; + } + + return $_data; + } + + /** + * Convert some objects to arrays when injecting data into the update API + * + * Some data like sections, banners, and icons are expected to be an associative array, however due to the JSON + * decoding, they are objects. This method allows us to pass in the object and return an associative array. + * + * @since 3.6.5 + * + * @param stdClass $data + * + * @return array + */ + private function convert_object_to_array( $data ) { + if ( ! is_array( $data ) && ! is_object( $data ) ) { + return array(); + } + $new_data = array(); + foreach ( $data as $key => $value ) { + $new_data[ $key ] = is_object( $value ) ? $this->convert_object_to_array( $value ) : $value; + } + + return $new_data; + } + + /** + * Calls the API and, if successfull, returns the object delivered by the API. + * + * @uses get_bloginfo() + * @uses wp_remote_get() + * @uses is_wp_error() + * + * @param string $_action The requested action. + * @param array $_data Parameters for the API action. + * @return false|object + */ + private function api_request( $_action, $_data ) { + $data = array_merge( $this->api_data, $_data ); + + if ( $data['slug'] !== $this->slug ) { + return false; + } + + if ( $this->request_recently_failed() ) { + return false; + } + + return $this->get_version_from_remote(); + } + + /** + * Determines if a request has recently failed. + * + * @since 1.9.1 + * + * @return bool + */ + private function request_recently_failed() { + $failed_request_details = get_option( $this->failed_request_cache_key ); + + // Request has never failed. + if ( empty( $failed_request_details ) || ! is_numeric( $failed_request_details ) ) { + return false; + } + + /* + * Request previously failed, but the timeout has expired. + * This means we're allowed to try again. + */ + if ( time() > $failed_request_details ) { + delete_option( $this->failed_request_cache_key ); + + return false; + } + + return true; + } + + /** + * Logs a failed HTTP request for this API URL. + * We set a timestamp for 1 hour from now. This prevents future API requests from being + * made to this domain for 1 hour. Once the timestamp is in the past, API requests + * will be allowed again. This way if the site is down for some reason we don't bombard + * it with failed API requests. + * + * @see EDD_SL_Plugin_Updater::request_recently_failed + * + * @since 1.9.1 + */ + private function log_failed_request() { + update_option( $this->failed_request_cache_key, strtotime( '+1 hour' ), false ); + } + + /** + * If available, show the changelog for sites in a multisite install. + */ + public function show_changelog() { + + if ( empty( $_REQUEST['edd_sl_action'] ) || 'view_plugin_changelog' !== $_REQUEST['edd_sl_action'] ) { + return; + } + + if ( empty( $_REQUEST['plugin'] ) ) { + return; + } + + if ( empty( $_REQUEST['slug'] ) || $this->slug !== $_REQUEST['slug'] ) { + return; + } + + if ( ! current_user_can( 'update_plugins' ) ) { + wp_die( esc_html__( 'You do not have permission to install plugin updates', 'easy-digital-downloads' ), esc_html__( 'Error', 'easy-digital-downloads' ), array( 'response' => 403 ) ); + } + + $version_info = $this->get_repo_api_data(); + if ( isset( $version_info->sections ) ) { + $sections = $this->convert_object_to_array( $version_info->sections ); + if ( ! empty( $sections['changelog'] ) ) { + echo '
    ' . wp_kses_post( $sections['changelog'] ) . '
    '; + } + } + + exit; + } + + /** + * Gets the current version information from the remote site. + * + * @return array|false + */ + private function get_version_from_remote() { + + $request = $this->api_handler->make_request( $this->get_api_params() ); + + if ( $request && isset( $request->sections ) ) { + $request->sections = maybe_unserialize( $request->sections ); + } else { + return false; + } + + if ( isset( $request->banners ) ) { + $request->banners = maybe_unserialize( $request->banners ); + } + + if ( isset( $request->icons ) ) { + $request->icons = maybe_unserialize( $request->icons ); + } + + if ( ! empty( $request->sections ) ) { + foreach ( $request->sections as $key => $section ) { + $request->$key = (array) $section; + } + } + + return $request; + } + + /** + * Get the version info from the cache, if it exists. + * + * @param string $cache_key + * @return object + */ + public function get_cached_version_info( $cache_key = '' ) { + + if ( empty( $cache_key ) ) { + $cache_key = $this->get_cache_key(); + } + + $cache = get_option( $cache_key ); + + // Cache is expired + if ( empty( $cache['timeout'] ) || time() > $cache['timeout'] ) { + return false; + } + + // We need to turn the icons into an array, thanks to WP Core forcing these into an object at some point. + $cache['value'] = json_decode( $cache['value'] ); + if ( ! empty( $cache['value']->icons ) ) { + $cache['value']->icons = (array) $cache['value']->icons; + } + + return $cache['value']; + } + + /** + * Adds the plugin version information to the database. + * + * @param string $value + * @param string $cache_key + */ + public function set_version_info_cache( $value = '', $cache_key = '' ) { + + if ( empty( $cache_key ) ) { + $cache_key = $this->get_cache_key(); + } + + $data = array( + 'timeout' => strtotime( '+3 hours', time() ), + 'value' => wp_json_encode( $value ), + ); + + update_option( $cache_key, $data, false ); + } + + /** + * Gets the parameters for the API request. + * + * @since 3.1.1.4 + * @return array + */ + private function get_api_params() { + return array( + 'edd_action' => 'get_version', + 'license' => ! empty( $this->api_data['license'] ) ? $this->api_data['license'] : '', + 'item_id' => isset( $this->api_data['item_id'] ) ? $this->api_data['item_id'] : false, + 'version' => isset( $this->api_data['version'] ) ? $this->api_data['version'] : false, + 'slug' => $this->slug, + 'beta' => $this->beta, + 'php_version' => phpversion(), + 'wp_version' => get_bloginfo( 'version' ), + 'easy-digital-downloads_version' => EDD_VERSION, + ); + } + + /** + * Gets the unique key (option name) for a plugin. + * + * @since 1.9.0 + * @return string + */ + private function get_cache_key() { + $string = $this->slug . $this->api_data['license'] . $this->beta; + + return 'edd_sl_' . md5( serialize( $string ) ); + } +} diff --git a/wp-content/plugins/easy-digital-downloads/src/Licensing/API.php b/wp-content/plugins/easy-digital-downloads/src/Licensing/API.php index eaa564d6..2ea5c58c 100644 --- a/wp-content/plugins/easy-digital-downloads/src/Licensing/API.php +++ b/wp-content/plugins/easy-digital-downloads/src/Licensing/API.php @@ -22,6 +22,18 @@ class API { */ private $api_url = 'https://easydigitaldownloads.com/edd-sl-api'; + /** + * The class constructor. + * + * @since 3.1.1.4 + * @param null|string $url Optional; used only for requests to non-EDD sites. + */ + public function __construct( $url = null ) { + if ( ! empty( $url ) ) { + $this->api_url = $url; + } + } + /** * Gets the API URL. * diff --git a/wp-content/plugins/easy-digital-downloads/src/Licensing/Ajax.php b/wp-content/plugins/easy-digital-downloads/src/Licensing/Ajax.php index dce85f8e..826f7275 100644 --- a/wp-content/plugins/easy-digital-downloads/src/Licensing/Ajax.php +++ b/wp-content/plugins/easy-digital-downloads/src/Licensing/Ajax.php @@ -63,15 +63,16 @@ class Ajax implements SubscriberInterface { ); } - $this->name = filter_input( INPUT_POST, 'item_name', FILTER_SANITIZE_SPECIAL_CHARS ); - $api_params = array( - 'edd_action' => 'activate_license', - 'license' => $this->license_key, - 'item_name' => $this->name, - 'item_id' => filter_input( INPUT_POST, 'item_id', FILTER_SANITIZE_NUMBER_INT ), + $this->name = filter_input( INPUT_POST, 'item_name', FILTER_SANITIZE_SPECIAL_CHARS ); + $api_params = array( + 'edd_action' => 'activate_license', + 'license' => $this->license_key, + 'item_name' => $this->name, + 'item_id' => filter_input( INPUT_POST, 'item_id', FILTER_SANITIZE_NUMBER_INT ), + 'environment' => function_exists( 'wp_get_environment_type' ) ? wp_get_environment_type() : 'production', ); - - $api = new API(); + $custom_api = filter_input( INPUT_POST, 'api', FILTER_SANITIZE_URL ); + $api = new API( $custom_api ); $license_data = $api->make_request( $api_params ); if ( empty( $license_data->success ) ) { @@ -141,11 +142,13 @@ class Ajax implements SubscriberInterface { $this->license = new License( $this->name ); $this->license_key = $this->license->key; $api_params = array( - 'edd_action' => 'deactivate_license', - 'license' => $this->license_key, - 'item_id' => urlencode( $item_id ), + 'edd_action' => 'deactivate_license', + 'license' => $this->license_key, + 'item_id' => urlencode( $item_id ), + 'environment' => function_exists( 'wp_get_environment_type' ) ? wp_get_environment_type() : 'production', ); - $api = new API(); + $custom_api = filter_input( INPUT_POST, 'api', FILTER_SANITIZE_URL ); + $api = new API( $custom_api ); $license_data = $api->make_request( $api_params ); $this->license->save( $license_data ); diff --git a/wp-content/plugins/easy-digital-downloads/src/Licensing/Messages.php b/wp-content/plugins/easy-digital-downloads/src/Licensing/Messages.php index 81a08cec..f50c8562 100644 --- a/wp-content/plugins/easy-digital-downloads/src/Licensing/Messages.php +++ b/wp-content/plugins/easy-digital-downloads/src/Licensing/Messages.php @@ -186,21 +186,7 @@ class Messages { break; default: - if ( ! empty( $this->license_data['license_key'] ) ) { - $error = ! empty( $this->license->error ) ? $this->license->error : __( 'unknown_error', 'easy-digital-downloads' ); - $message = sprintf( - /* translators: 1. the error code; 2. opening link tag; 3. closing link tag. */ - __( 'There was an error with this license key: %1$s. Please %2$scontact our support team%3$s.', 'easy-digital-downloads' ), - '' . $error . '', - '', - '' - ); - } else { - $message = sprintf( - /* translators: the extension name. */ - __( 'Unlicensed: currently not receiving updates.', 'easy-digital-downloads' ) - ); - } + $message = __( 'Unlicensed: currently not receiving updates.', 'easy-digital-downloads' ); break; } diff --git a/wp-content/plugins/easy-digital-downloads/src/Licensing/Settings.php b/wp-content/plugins/easy-digital-downloads/src/Licensing/Settings.php index a51cf5cf..20adb766 100644 --- a/wp-content/plugins/easy-digital-downloads/src/Licensing/Settings.php +++ b/wp-content/plugins/easy-digital-downloads/src/Licensing/Settings.php @@ -89,8 +89,12 @@ class Settings { data-name="args['name'] ); ?>" data-key="args['id'] ); ?>" /> - args['options']['api_url'] ) ) { + ?> + + get_actions( $this->license->license, true ); ?>
    diff --git a/wp-content/plugins/easy-digital-downloads/src/Licensing/Traits/Controls.php b/wp-content/plugins/easy-digital-downloads/src/Licensing/Traits/Controls.php index 3326e4d5..fe0db9b0 100644 --- a/wp-content/plugins/easy-digital-downloads/src/Licensing/Traits/Controls.php +++ b/wp-content/plugins/easy-digital-downloads/src/Licensing/Traits/Controls.php @@ -207,7 +207,7 @@ trait Controls { private function is_included_in_pass() { $pass_manager = $this->get_pass_manager(); // All Access and lifetime passes can access everything. - if ( $pass_manager->hasAllAccessPass() ) { + if ( $pass_manager->hasAllAccessPass() && empty( $this->args['options']['api_url'] ) ) { return true; } // If we don't know the item ID we can't assume anything. diff --git a/wp-content/plugins/easy-digital-downloads/vendor/composer/ClassLoader.php b/wp-content/plugins/easy-digital-downloads/vendor/composer/ClassLoader.php index fd56bd7d..a72151c7 100644 --- a/wp-content/plugins/easy-digital-downloads/vendor/composer/ClassLoader.php +++ b/wp-content/plugins/easy-digital-downloads/vendor/composer/ClassLoader.php @@ -429,7 +429,8 @@ class ClassLoader public function loadClass($class) { if ($file = $this->findFile($class)) { - (self::$includeFile)($file); + $includeFile = self::$includeFile; + $includeFile($file); return true; } @@ -560,7 +561,10 @@ class ClassLoader return false; } - private static function initializeIncludeClosure(): void + /** + * @return void + */ + private static function initializeIncludeClosure() { if (self::$includeFile !== null) { return; @@ -574,8 +578,8 @@ class ClassLoader * @param string $file * @return void */ - self::$includeFile = static function($file) { + self::$includeFile = \Closure::bind(static function($file) { include $file; - }; + }, null, null); } } diff --git a/wp-content/plugins/easy-digital-downloads/vendor/composer/InstalledVersions.php b/wp-content/plugins/easy-digital-downloads/vendor/composer/InstalledVersions.php index c6b54af7..51e734a7 100644 --- a/wp-content/plugins/easy-digital-downloads/vendor/composer/InstalledVersions.php +++ b/wp-content/plugins/easy-digital-downloads/vendor/composer/InstalledVersions.php @@ -98,7 +98,7 @@ class InstalledVersions { foreach (self::getInstalled() as $installed) { if (isset($installed['versions'][$packageName])) { - return $includeDevRequirements || empty($installed['versions'][$packageName]['dev_requirement']); + return $includeDevRequirements || !isset($installed['versions'][$packageName]['dev_requirement']) || $installed['versions'][$packageName]['dev_requirement'] === false; } } @@ -119,7 +119,7 @@ class InstalledVersions */ public static function satisfies(VersionParser $parser, $packageName, $constraint) { - $constraint = $parser->parseConstraints($constraint); + $constraint = $parser->parseConstraints((string) $constraint); $provided = $parser->parseConstraints(self::getVersionRanges($packageName)); return $provided->matches($constraint); @@ -328,7 +328,9 @@ class InstalledVersions if (isset(self::$installedByVendor[$vendorDir])) { $installed[] = self::$installedByVendor[$vendorDir]; } elseif (is_file($vendorDir.'/composer/installed.php')) { - $installed[] = self::$installedByVendor[$vendorDir] = require $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; if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { self::$installed = $installed[count($installed) - 1]; } @@ -340,12 +342,17 @@ 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') { - self::$installed = require __DIR__ . '/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 __DIR__ . '/installed.php'; + self::$installed = $required; } else { self::$installed = array(); } } - $installed[] = self::$installed; + + if (self::$installed !== array()) { + $installed[] = self::$installed; + } return $installed; } diff --git a/wp-content/plugins/easy-digital-downloads/vendor/composer/installed.php b/wp-content/plugins/easy-digital-downloads/vendor/composer/installed.php index 6af9a80c..a1a46e74 100644 --- a/wp-content/plugins/easy-digital-downloads/vendor/composer/installed.php +++ b/wp-content/plugins/easy-digital-downloads/vendor/composer/installed.php @@ -3,7 +3,7 @@ 'name' => 'easydigitaldownloads/easy-digital-downloads', 'pretty_version' => 'dev-main', 'version' => 'dev-main', - 'reference' => 'f6cf8a083270771376ef6505d1fbab97d5c5ee8c', + 'reference' => '9e92d10e7a2fcb95ed40fdf3adeeab3884fabf61', 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), @@ -13,7 +13,7 @@ 'easydigitaldownloads/easy-digital-downloads' => array( 'pretty_version' => 'dev-main', 'version' => 'dev-main', - 'reference' => 'f6cf8a083270771376ef6505d1fbab97d5c5ee8c', + 'reference' => '9e92d10e7a2fcb95ed40fdf3adeeab3884fabf61', 'type' => 'wordpress-plugin', 'install_path' => __DIR__ . '/../../', 'aliases' => array(),