Changeset 3381875
- Timestamp:
- 10/21/2025 12:01:57 PM (5 months ago)
- Location:
- podcast-player
- Files:
-
- 188 added
- 12 edited
-
tags/7.9.10 (added)
-
tags/7.9.10/LICENSE (added)
-
tags/7.9.10/README.txt (added)
-
tags/7.9.10/backend (added)
-
tags/7.9.10/backend/admin (added)
-
tags/7.9.10/backend/admin/admin-icons.svg (added)
-
tags/7.9.10/backend/admin/class-options.php (added)
-
tags/7.9.10/backend/admin/class-shortcodegen.php (added)
-
tags/7.9.10/backend/admin/templates (added)
-
tags/7.9.10/backend/admin/templates/help.php (added)
-
tags/7.9.10/backend/admin/templates/home.php (added)
-
tags/7.9.10/backend/admin/templates/main.php (added)
-
tags/7.9.10/backend/admin/templates/products.php (added)
-
tags/7.9.10/backend/admin/templates/settings.php (added)
-
tags/7.9.10/backend/admin/templates/shortcode.php (added)
-
tags/7.9.10/backend/admin/templates/sidebar.php (added)
-
tags/7.9.10/backend/admin/templates/toolkit (added)
-
tags/7.9.10/backend/admin/templates/toolkit.php (added)
-
tags/7.9.10/backend/admin/templates/toolkit/feed-review.php (added)
-
tags/7.9.10/backend/admin/templates/toolkit/feed-update.php (added)
-
tags/7.9.10/backend/class-register.php (added)
-
tags/7.9.10/backend/css (added)
-
tags/7.9.10/backend/css/admin-options-rtl.css (added)
-
tags/7.9.10/backend/css/admin-options.css (added)
-
tags/7.9.10/backend/css/partials (added)
-
tags/7.9.10/backend/css/podcast-player-admin-rtl.css (added)
-
tags/7.9.10/backend/css/podcast-player-admin.css (added)
-
tags/7.9.10/backend/inc (added)
-
tags/7.9.10/backend/inc/class-background-tasks.php (added)
-
tags/7.9.10/backend/inc/class-block.php (added)
-
tags/7.9.10/backend/inc/class-dashboard-widget.php (added)
-
tags/7.9.10/backend/inc/class-loader.php (added)
-
tags/7.9.10/backend/inc/class-misc.php (added)
-
tags/7.9.10/backend/inc/class-shortcode.php (added)
-
tags/7.9.10/backend/inc/class-widget.php (added)
-
tags/7.9.10/backend/js (added)
-
tags/7.9.10/backend/js/admin-options.build.js (added)
-
tags/7.9.10/backend/js/admin-options.js (added)
-
tags/7.9.10/backend/js/admin.build.js (added)
-
tags/7.9.10/backend/js/admin.js (added)
-
tags/7.9.10/backend/js/blocks.build.js (added)
-
tags/7.9.10/backend/js/blocks.js (added)
-
tags/7.9.10/backend/js/partials (added)
-
tags/7.9.10/backend/js/partials/blocks (added)
-
tags/7.9.10/backend/js/partials/blocks/ecc.js (added)
-
tags/7.9.10/backend/js/partials/blocks/edit.js (added)
-
tags/7.9.10/backend/js/partials/blocks/index.js (added)
-
tags/7.9.10/backend/js/partials/blocks/mcc.js (added)
-
tags/7.9.10/backend/js/partials/options (added)
-
tags/7.9.10/backend/js/partials/options/changeDetect.js (added)
-
tags/7.9.10/backend/js/partials/options/colorpicker.js (added)
-
tags/7.9.10/backend/js/partials/options/dom.js (added)
-
tags/7.9.10/backend/js/partials/options/feededit.js (added)
-
tags/7.9.10/backend/js/partials/options/feedmigrate.js (added)
-
tags/7.9.10/backend/js/partials/options/fetchMethod.js (added)
-
tags/7.9.10/backend/js/partials/options/reviews.js (added)
-
tags/7.9.10/backend/js/partials/options/shortgen.js (added)
-
tags/7.9.10/backend/js/partials/options/variables.js (added)
-
tags/7.9.10/backend/js/partials/widgets (added)
-
tags/7.9.10/backend/js/partials/widgets/changeDetect.js (added)
-
tags/7.9.10/backend/js/partials/widgets/colorpicker.js (added)
-
tags/7.9.10/backend/js/partials/widgets/fetchFilters.js (added)
-
tags/7.9.10/backend/js/partials/widgets/fetchMethod.js (added)
-
tags/7.9.10/backend/js/partials/widgets/imageupload.js (added)
-
tags/7.9.10/backend/js/partials/widgets/variables.js (added)
-
tags/7.9.10/backend/partials (added)
-
tags/7.9.10/backend/partials/pp-notifications.php (added)
-
tags/7.9.10/credits.txt (added)
-
tags/7.9.10/frontend (added)
-
tags/7.9.10/frontend/class-register.php (added)
-
tags/7.9.10/frontend/css (added)
-
tags/7.9.10/frontend/css/podcast-player-editor-rtl.css (added)
-
tags/7.9.10/frontend/css/podcast-player-editor.css (added)
-
tags/7.9.10/frontend/css/podcast-player-public-rtl.css (added)
-
tags/7.9.10/frontend/css/podcast-player-public.css (added)
-
tags/7.9.10/frontend/images (added)
-
tags/7.9.10/frontend/images/icons.svg (added)
-
tags/7.9.10/frontend/inc (added)
-
tags/7.9.10/frontend/inc/class-display.php (added)
-
tags/7.9.10/frontend/inc/class-feed.php (added)
-
tags/7.9.10/frontend/inc/class-general.php (added)
-
tags/7.9.10/frontend/inc/class-icon-loader.php (added)
-
tags/7.9.10/frontend/inc/class-icons-extend.php (added)
-
tags/7.9.10/frontend/inc/class-instance-counter.php (added)
-
tags/7.9.10/frontend/inc/class-loader.php (added)
-
tags/7.9.10/frontend/inc/class-render.php (added)
-
tags/7.9.10/frontend/js (added)
-
tags/7.9.10/frontend/js/mmerrorfix.js (added)
-
tags/7.9.10/frontend/js/partials (added)
-
tags/7.9.10/frontend/js/partials/editor.js (added)
-
tags/7.9.10/frontend/js/partials/header.js (added)
-
tags/7.9.10/frontend/js/partials/load.js (added)
-
tags/7.9.10/frontend/js/partials/main.js (added)
-
tags/7.9.10/frontend/js/partials/media.js (added)
-
tags/7.9.10/frontend/js/partials/mediaelem.js (added)
-
tags/7.9.10/frontend/js/partials/modal.js (added)
-
tags/7.9.10/frontend/js/partials/play.js (added)
-
tags/7.9.10/frontend/js/partials/podcast.js (added)
-
tags/7.9.10/frontend/js/partials/pplib.js (added)
-
tags/7.9.10/frontend/js/partials/search.js (added)
-
tags/7.9.10/frontend/js/partials/variables.js (added)
-
tags/7.9.10/frontend/js/ppeditor.build.js (added)
-
tags/7.9.10/frontend/js/ppeditor.js (added)
-
tags/7.9.10/frontend/js/public.build.js (added)
-
tags/7.9.10/frontend/js/public.js (added)
-
tags/7.9.10/frontend/js/templates (added)
-
tags/7.9.10/frontend/js/templates/audioplayer.js (added)
-
tags/7.9.10/frontend/templates (added)
-
tags/7.9.10/frontend/templates/episode (added)
-
tags/7.9.10/frontend/templates/episode/featured.php (added)
-
tags/7.9.10/frontend/templates/episode/single.php (added)
-
tags/7.9.10/frontend/templates/header (added)
-
tags/7.9.10/frontend/templates/header/image.php (added)
-
tags/7.9.10/frontend/templates/header/menu (added)
-
tags/7.9.10/frontend/templates/header/menu/default-links.php (added)
-
tags/7.9.10/frontend/templates/header/menu/podcast-menu.php (added)
-
tags/7.9.10/frontend/templates/header/subscribe-buttons.php (added)
-
tags/7.9.10/frontend/templates/list (added)
-
tags/7.9.10/frontend/templates/list/entry-modern.php (added)
-
tags/7.9.10/frontend/templates/list/entry.php (added)
-
tags/7.9.10/frontend/templates/list/search-field.php (added)
-
tags/7.9.10/frontend/templates/misc (added)
-
tags/7.9.10/frontend/templates/misc/buttons (added)
-
tags/7.9.10/frontend/templates/misc/buttons/clear-search.php (added)
-
tags/7.9.10/frontend/templates/misc/buttons/launch.php (added)
-
tags/7.9.10/frontend/templates/misc/buttons/list.php (added)
-
tags/7.9.10/frontend/templates/misc/buttons/load-more.php (added)
-
tags/7.9.10/frontend/templates/misc/buttons/next.php (added)
-
tags/7.9.10/frontend/templates/misc/buttons/playpause.php (added)
-
tags/7.9.10/frontend/templates/misc/buttons/pod-menu.php (added)
-
tags/7.9.10/frontend/templates/misc/buttons/previous.php (added)
-
tags/7.9.10/frontend/templates/misc/buttons/single-close.php (added)
-
tags/7.9.10/frontend/templates/misc/js (added)
-
tags/7.9.10/frontend/templates/misc/js/addcontrols.php (added)
-
tags/7.9.10/frontend/templates/misc/js/auxmodal.php (added)
-
tags/7.9.10/frontend/templates/misc/js/controls.php (added)
-
tags/7.9.10/frontend/templates/misc/js/vshare.php (added)
-
tags/7.9.10/frontend/templates/subscribe (added)
-
tags/7.9.10/frontend/templates/subscribe/amazon.php (added)
-
tags/7.9.10/frontend/templates/subscribe/apple.php (added)
-
tags/7.9.10/frontend/templates/subscribe/breaker.php (added)
-
tags/7.9.10/frontend/templates/subscribe/bullhorn.php (added)
-
tags/7.9.10/frontend/templates/subscribe/castbox.php (added)
-
tags/7.9.10/frontend/templates/subscribe/castro.php (added)
-
tags/7.9.10/frontend/templates/subscribe/deezer.php (added)
-
tags/7.9.10/frontend/templates/subscribe/external.php (added)
-
tags/7.9.10/frontend/templates/subscribe/google.php (added)
-
tags/7.9.10/frontend/templates/subscribe/iheart.php (added)
-
tags/7.9.10/frontend/templates/subscribe/overcast.php (added)
-
tags/7.9.10/frontend/templates/subscribe/pandora.php (added)
-
tags/7.9.10/frontend/templates/subscribe/playerfm.php (added)
-
tags/7.9.10/frontend/templates/subscribe/pocketcasts.php (added)
-
tags/7.9.10/frontend/templates/subscribe/podbean.php (added)
-
tags/7.9.10/frontend/templates/subscribe/podcastaddict.php (added)
-
tags/7.9.10/frontend/templates/subscribe/podchaser.php (added)
-
tags/7.9.10/frontend/templates/subscribe/radiopublic.php (added)
-
tags/7.9.10/frontend/templates/subscribe/soundcloud.php (added)
-
tags/7.9.10/frontend/templates/subscribe/spotify.php (added)
-
tags/7.9.10/frontend/templates/subscribe/stitcher.php (added)
-
tags/7.9.10/frontend/templates/subscribe/tunein.php (added)
-
tags/7.9.10/frontend/templates/subscribe/youtube.php (added)
-
tags/7.9.10/helper (added)
-
tags/7.9.10/helper/core (added)
-
tags/7.9.10/helper/core/class-background-jobs.php (added)
-
tags/7.9.10/helper/core/class-singleton.php (added)
-
tags/7.9.10/helper/feed (added)
-
tags/7.9.10/helper/feed/class-add-external-link-attr.php (added)
-
tags/7.9.10/helper/feed/class-fetch-feed.php (added)
-
tags/7.9.10/helper/feed/class-get-feed.php (added)
-
tags/7.9.10/helper/feed/class-modify-feed-data.php (added)
-
tags/7.9.10/helper/feed/class-prepare-front-new.php (added)
-
tags/7.9.10/helper/feed/class-prepare-storage.php (added)
-
tags/7.9.10/helper/functions (added)
-
tags/7.9.10/helper/functions/class-country-codes.php (added)
-
tags/7.9.10/helper/functions/class-date-parser.php (added)
-
tags/7.9.10/helper/functions/class-getters.php (added)
-
tags/7.9.10/helper/functions/class-markup.php (added)
-
tags/7.9.10/helper/functions/class-utility.php (added)
-
tags/7.9.10/helper/functions/class-validation.php (added)
-
tags/7.9.10/helper/store (added)
-
tags/7.9.10/helper/store/class-feeddata.php (added)
-
tags/7.9.10/helper/store/class-itemdata.php (added)
-
tags/7.9.10/helper/store/class-storageregister.php (added)
-
tags/7.9.10/helper/store/class-storebase.php (added)
-
tags/7.9.10/helper/store/class-storemanager.php (added)
-
tags/7.9.10/lang (added)
-
tags/7.9.10/lang/podcast-player.pot (added)
-
tags/7.9.10/podcast-player.php (added)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/backend/admin/templates/shortcode.php (modified) (1 diff)
-
trunk/backend/css/admin-options-rtl.css (modified) (1 diff)
-
trunk/backend/css/admin-options.css (modified) (1 diff)
-
trunk/backend/js/admin-options.build.js (modified) (1 diff)
-
trunk/backend/js/partials/options/shortgen.js (modified) (2 diffs)
-
trunk/frontend/css/podcast-player-editor-rtl.css (modified) (7 diffs)
-
trunk/frontend/css/podcast-player-editor.css (modified) (7 diffs)
-
trunk/frontend/css/podcast-player-public-rtl.css (modified) (7 diffs)
-
trunk/frontend/css/podcast-player-public.css (modified) (7 diffs)
-
trunk/helper/feed/class-modify-feed-data.php (modified) (1 diff)
-
trunk/podcast-player.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
podcast-player/trunk/README.txt
r3367596 r3381875 5 5 Tested up to: 6.8 6 6 Requires PHP: 5.6 7 Stable tag: 7.9. 97 Stable tag: 7.9.10 8 8 License: GPLv3 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 107 107 108 108 == Changelog == 109 110 = 7.9.10 = 111 * Bug Fix: Category dropdown filter background color in dark mode in default playerview. 112 * Bug Fix: Custom Categories not appearing 113 * Bug Fix: Minor color issues 114 * Add: Additional confirmation before deleting shortcode. 109 115 110 116 = 7.9.9 = -
podcast-player/trunk/backend/admin/templates/shortcode.php
r3306134 r3381875 51 51 </div> 52 52 </div> 53 <div id="pp-shortcode-action-modal" class="pp-shortcode-action-modal podcast-player-hidden"> 54 <div class="pp-shortcode-action-wrapper"> 55 <h3><?php esc_html_e( 'Confirm Deletion', 'podcast-player' ); ?></h3> 56 <p><?php esc_html_e( 'Are you sure you want to delete this shortcode?', 'podcast-player' ); ?></p> 57 <button id="pp-shortcode-deletion-btn" class="button button-primary"><?php esc_html_e( 'Delete Shortcode', 'podcast-player' ); ?></button> 58 <button id="pp-shortcode-deletion-cancel" class="button button-secondary"><?php esc_html_e( 'Cancel', 'podcast-player' ); ?></button> 59 </div> 60 </div> -
podcast-player/trunk/backend/css/admin-options-rtl.css
r3323195 r3381875 1342 1342 display: none; 1343 1343 } 1344 #pp-options-page #pp-options-module-shortcode 1345 { 1346 position: relative; 1347 } 1348 #pp-options-page .pp-shortcode-action-modal 1349 { 1350 position: absolute; 1351 z-index: 99; 1352 top: 0; 1353 left: 0; 1354 bottom: 0; 1355 right: 0; 1356 1357 -webkit-backdrop-filter: blur(4px); 1358 backdrop-filter: blur(4px); 1359 } 1360 #pp-options-page .pp-shortcode-action-wrapper 1361 { 1362 position: absolute; 1363 top: 50%; 1364 right: 50%; 1365 1366 width: auto; 1367 max-width: 720px; 1368 margin: 0 auto; 1369 padding: 40px; 1370 1371 transform: translate(50%, -50%); 1372 1373 background-color: #fff; 1374 box-shadow: 0 2px 10px rgba(0, 0, 0, .25); 1375 } 1344 1376 1345 1377 .pp-shortcode-generator -
podcast-player/trunk/backend/css/admin-options.css
r3323195 r3381875 1342 1342 display: none; 1343 1343 } 1344 #pp-options-page #pp-options-module-shortcode 1345 { 1346 position: relative; 1347 } 1348 #pp-options-page .pp-shortcode-action-modal 1349 { 1350 position: absolute; 1351 z-index: 99; 1352 top: 0; 1353 right: 0; 1354 bottom: 0; 1355 left: 0; 1356 1357 -webkit-backdrop-filter: blur(4px); 1358 backdrop-filter: blur(4px); 1359 } 1360 #pp-options-page .pp-shortcode-action-wrapper 1361 { 1362 position: absolute; 1363 top: 50%; 1364 left: 50%; 1365 1366 width: auto; 1367 max-width: 720px; 1368 margin: 0 auto; 1369 padding: 40px; 1370 1371 transform: translate(-50%, -50%); 1372 1373 background-color: #fff; 1374 box-shadow: 0 2px 10px rgba(0, 0, 0, .25); 1375 } 1344 1376 1345 1377 .pp-shortcode-generator -
podcast-player/trunk/backend/js/admin-options.build.js
r3340425 r3381875 1 (()=>{"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,n(r.key),r)}}function o(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function n(t){var o=function(t){if("object"!=e(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,"string");if("object"!=e(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==e(o)?o:o+""}const r=o((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),jQuery("#pp-options-module-help .pp-docs-hide").hide(),jQuery("#pp-options-module-help .pp-docs-title").on("click",(function(){jQuery(this).toggleClass("pp-toggle"),jQuery(this).next().slideToggle("fast")})),jQuery("#pp-options-module-toolkit .pp-toolkit-content").hide(),jQuery("#pp-options-module-toolkit .pp-toolkit-title").on("click",(function(){jQuery(this).toggleClass("pp-toggle"),jQuery(this).next().slideToggle("fast")})),jQuery(".pp-hidden-settings").hide(),jQuery(".pp-hidden-settings-title").on("click",(function(){jQuery(this).toggleClass("pp-toggle"),jQuery(this).next().slideToggle("fast")}))}));function i(e){return 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},i(e)}function s(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,p(n.key),n)}}function p(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!=i(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}const a=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.data=window.ppjsAdminOpt||{},this.adminPage=jQuery("#pp-options-page"),this.index=jQuery(".select-pp-feed-index").first(),this.refresh=jQuery(".pp-feed-refresh"),this.reset=jQuery(".pp-feed-reset"),this.feedback=jQuery(".pp-toolkit-feedback").first(),this.newFeedback=jQuery("#pp-action-feedback"),this.managePodcastList=this.adminPage.find(".pp-podcasts-list"),this.events()},t=[{key:"events",value:function(){var e=this,t=this;this.refresh.on("click",function(){this.ajaxFeedEditor("refresh")}.bind(this)),this.reset.on("click",function(){this.ajaxFeedEditor("reset")}.bind(this)),jQuery(".pp-feed-del").on("click",(function(){t.index.val()?(jQuery(this).next(".pp-toolkit-del-confirm").slideDown("fast"),t.response()):t.response(t.data.messages.nourl,"pp-error")})),jQuery(".pp-feed-cancel").on("click",(function(){jQuery(this).parents(".pp-toolkit-del-confirm").hide()})),this.managePodcastList.on("click",".pp-podcast-refresh-btn",(function(t){var o=jQuery(t.currentTarget);e.feedRefreshDelete("refresh",o)})),this.managePodcastList.on("click",".pp-podcast-delete-btn",(function(t){var o=jQuery(t.currentTarget);e.feedRefreshDelete("reset",o)})),this.newFeedback.on("click",".pp-error-close",(function(t){e.newFeedback.removeClass("pp-error")}))}},{key:"ajaxFeedEditor",value:function(e){var t=this,o=this.getAjaxConfig(e);this.response(this.data.messages.running,"pp-running"),o?jQuery.ajax({url:this.data.ajaxurl,data:o,type:"POST",timeout:6e4,success:function(e){var o=JSON.parse(e);jQuery.isEmptyObject(o)||(void 0!==o.error?t.response(o.error,"pp-error"):void 0!==o.message&&t.response(o.message,"pp-success"))},error:function(e,o,n){t.response(n,"pp-error")}}):this.response(this.data.messages.nourl,"pp-error")}},{key:"feedRefreshDelete",value:function(e,t){var o=this,n=t.closest(".pp-podcast-list-item"),r=n.data("podcast"),i={action:"pp_feed_editor",security:this.data.security,atype:e,feedUrl:r};t.addClass("pp-wip"),this.managePodcastList.find(".pp-toolkit-buttons").prop("disabled",!0),jQuery.ajax({url:this.data.ajaxurl,data:i,type:"POST",timeout:6e4,success:function(r){var i=JSON.parse(r);jQuery.isEmptyObject(i)||(void 0!==i.error?o.newResponse(i.error,"pp-error"):void 0!==i.message&&(o.newResponse(i.message,"pp-success"),"reset"==e&&n.fadeOut(200,(function(){jQuery(this).remove()}))),t.removeClass("pp-wip"),setTimeout((function(){o.managePodcastList.find(".pp-toolkit-buttons").prop("disabled",!1)}),1500))},error:function(e,n,r){o.newResponse(r,"pp-error"),t.removeClass("pp-wip"),o.managePodcastList.find(".pp-toolkit-buttons").prop("disabled",!1)}})}},{key:"getAjaxConfig",value:function(e){var t=this.index.val();return!!t&&{action:"pp_feed_editor",security:this.data.security,atype:e,feedUrl:t}}},{key:"response",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.feedback.removeClass("pp-error pp-success pp-running"),!1!==t&&(this.feedback.addClass(t),this.feedback.find(".pp-feedback").text(e))}},{key:"newResponse",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.newFeedback.removeClass("pp-error pp-success pp-running"),!1!==t&&(this.newFeedback.addClass(t),this.newFeedback.find(".pp-feedback").text(e)),setTimeout(function(){this.newFeedback.removeClass("pp-success pp-running")}.bind(this),1500)}}],t&&s(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function c(e){return c="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},c(e)}function u(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e, l(n.key),n)}}function l(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!=c(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}const d=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.data=window.ppjsAdminOpt||{},this.adminPage=jQuery("#pp-options-page"),this.openSourceUrlBtn=this.adminPage.find(".pp-podcast-source-btn"),this.addSourceUrlBtn=this.adminPage.find(".pp-podcast-new-source-btn"),this.delSourceBtn=this.adminPage.find(".pp-podcast-delete-source-url"),this.newFeedback=jQuery("#pp-action-feedback"),this.events()},t=[{key:"events",value:function(){var e=this;this.openSourceUrlBtn.on("click",(function(e){jQuery(this).closest(".pp-podcast-info").find(".pp-podcast-source-container").slideToggle("fast")})),this.addSourceUrlBtn.on("click",(function(t){var o=jQuery(this),n=o.closest(".pp-podcast-source-container"),r=n.find(".pp-podcast-existing-source"),i=r.find(".pp-podcast-existing-source-url"),s=n.find(".pp-podcast-new-source"),p=s.find(".pp-podcast-new-source-url"),a=p.val();if(a){var c=s.closest(".pp-podcast-list-item").data("podcast"),u={action:"pp_migrate_podcast",security:e.data.security,podcast_id:c,source_url:a};p.attr("disabled",!0),o.attr("disabled",!0),jQuery.ajax({url:e.data.ajaxurl,data:u,type:"POST",timeout:6e4,success:function(t){var n=JSON.parse(t);jQuery.isEmptyObject(n)||(void 0!==n.error?e.newResponse(n.error,"pp-error"):void 0!==n.message&&(i.html(a),r.show(),p.val(""),e.newResponse(n.message,"pp-success"))),p.attr("disabled",!1),o.attr("disabled",!1)},error:function(t,n,r){p.attr("disabled",!1),o.attr("disabled",!1),e.newResponse(r,"pp-error")}})}else e.newResponse(e.data.messages.nosource,"pp-error")})),this.delSourceBtn.on("click",(function(t){t.preventDefault();var o=jQuery(this),n=o.closest(".pp-podcast-existing-source"),r=n.find(".pp-podcast-existing-source-url"),i={action:"pp_delete_source",podcast_id:o.closest(".pp-podcast-list-item").data("podcast"),security:e.data.security};o.attr("disabled",!0),jQuery.ajax({url:e.data.ajaxurl,data:i,type:"POST",timeout:6e4,success:function(t){var i=JSON.parse(t);jQuery.isEmptyObject(i)||(void 0!==i.error?e.newResponse(i.error,"pp-error"):void 0!==i.message&&(r.empty(),n.hide(),e.newResponse(i.message,"pp-success"))),o.attr("disabled",!1)},error:function(t,n,r){o.attr("disabled",!1),e.newResponse(r,"pp-error")}})}))}},{key:"newResponse",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.newFeedback.removeClass("pp-error pp-success pp-running"),!1!==t&&(this.newFeedback.addClass(t),this.newFeedback.find(".pp-feedback").text(e)),setTimeout(function(){this.newFeedback.removeClass("pp-success pp-running")}.bind(this),1500)}}],t&&u(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function f(e){return f="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},f(e)}function h(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,y(n.key),n)}}function y(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!=f(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}const v=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.data=window.ppjsAdminOpt||{},this.newFeedback=jQuery("#pp-action-feedback"),this.serverTimeOut=null,this.events()},t=[{key:"events",value:function(){var e=this,t=jQuery("#pp-options-module-shortcode");jQuery(document),t.on("change",".pp-getval",(function(){clearTimeout(e.serverTimeOut),e.serverTimeOut=setTimeout((function(){e.updatePreview(jQuery(this))}),100)})),t.on("click","#pp-shortcode-generator-btn",(function(){e.blankShortcodeTemplate(jQuery(this))})),t.on("click","#pp-shortcode-generator-submit-btn",(function(){e.createNewShortcode(jQuery(this))})),t.on("click","#pp-shortcode-generator-delete-btn",(function(){e.deleteShortcode(jQuery(this))})),t.on("click","#pp-shortcode-generator-update-btn",(function(){e.updateShortcode(jQuery(this))})),t.on("change","select.pp-shortcode-dropdown",(function(){e.loadShortcode(jQuery(this))})),t.on("click",".pp-collapse-sidebar",(function(t){t.preventDefault(),e.toggleSidebar(jQuery(this))})),t.on("click",".pp-copy-shortcode-text",(function(t){t.preventDefault(),e.copyShortcodeText(jQuery(this))}))}},{key:"getShortcodeFormValues",value:function(){var e=jQuery("#pp-shortcode-form"),t=e.find(".pp-getval"),o=e.data("instance"),n={};return t.each((function(){var e=this.name.replace(/^pp_field_name_/,"");e.endsWith("[]")?(e=e.replace(/\[\]$/,""),Array.isArray(n[e])||(n[e]=[]),"checkbox"===this.type?n[e].push(this.checked?this.value:""):n[e].push(this.value)):"checkbox"===this.type?n[e]=this.checked?this.value:"":n[e]=this.value})),console.log(o),{instance:o,values:n}}},{key:"updatePreview",value:function(e){var t=this,o=this,n=this.getShortcodeFormValues(),r=(n.instance,n.values);jQuery.ajax({url:this.data.ajaxurl,data:{action:"pp_render_preview",security:this.data.security,data:r},type:"POST",timeout:6e4,success:function(e){var n=JSON.parse(e);jQuery.isEmptyObject(n)||(void 0!==n.error?t.newResponse(n.error,"pp-error"):void 0!==n.markup&&(jQuery("#pp-shortcode-preview").html(n.markup),o.updateFont()))},error:function(e,o,n){t.newResponse(n,"dpt-error")}})}},{key:"blankShortcodeTemplate",value:function(e){var t=this;e.siblings("select.pp-shortcode-dropdown").val(""),jQuery.ajax({url:this.data.ajaxurl,data:{action:"pp_blank_shortcode_template",security:this.data.security},type:"POST",timeout:6e4,success:function(e){var o=JSON.parse(e);if(!jQuery.isEmptyObject(o))if(void 0!==o.error)t.newResponse(o.error,"dpt-error");else if(void 0!==o.form&&void 0!==o.instance){var n='\n\t\t\t\t\t\t<div class="pp-shortcode-form-wrapper">'.concat(o.form,'</div>\n\t\t\t\t\t\t<div class="pp-shortcode-form-submit">\n\t\t\t\t\t\t\t<button id="pp-shortcode-generator-submit-btn" class="button button-secondary" style="width: 100%;">Generate Shortcode</button>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t'),r=jQuery("#pp-shortcode-form"),i=jQuery("#pp-shortcode-preview");jQuery(".pp-shortcode-result").html(""),r.html(n).data("instance",o.instance),i.html('\n\t\t\t\t\t\t<div style="padding: 20px; font-size: 20px; color: #aaa;">\n\t\t\t\t\t\t\t<span>Shortcode</span>\n\t\t\t\t\t\t\t<span style="color: #333;">Preview</span>\n\t\t\t\t\t\t\t<span> will be displayed here.</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t'),jQuery(document).trigger("pp-widget-added"),t.newResponse("Shortcode template created successfully","pp-success")}},error:function(e,o,n){t.newResponse(n,"pp-error")}})}},{key:"createNewShortcode",value:function(){var e=this,t=this.getShortcodeFormValues(),o=t.instance,n=t.values,r=n.title||"Podcast Player Shortcode "+(o+1);jQuery.ajax({url:this.data.ajaxurl,data:{action:"pp_create_new_shortcode",security:this.data.security,data:n,instance:o},type:"POST",timeout:6e4,success:function(t){var n=JSON.parse(t);if(!jQuery.isEmptyObject(n))if(void 0!==n.error)e.newResponse(n.error,"pp-error");else if(void 0!==n.success){var i=jQuery("#pp-options-module-shortcode"),s=i.find(".pp-shortcode-action"),p=i.find("select.pp-shortcode-dropdown");0===p.length&&(s.append('\n\t\t\t\t\t\t\t\t<span class="pp-separator">or</span>\n\t\t\t\t\t\t\t\t<select class="pp-shortcode-dropdown">\n\t\t\t\t\t\t\t\t\t<option value="" selected="selected">Select a Shortcode to Edit</option>\n\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t'),p=i.find("select.pp-shortcode-dropdown")),p.append('<option value="'.concat(o,'">').concat(r,"</option>")),p.val(o),p.trigger("change"),e.newResponse("New shortcode created successfully","pp-success")}},error:function(t,o,n){e.newResponse(n,"pp-error")}})}},{key:"loadShortcode",value:function(e){var t=this,o=this,n=e.val();if(!n)return jQuery("#pp-shortcode-form").html(""),jQuery("#pp-shortcode-preview").html('\n\t\t\t\t<div style="padding: 20px; font-size: 20px; color: #aaa;">\n\t\t\t\t\t<span>Create a </span>\n\t\t\t\t\t<span style="color: #333;">New Shortcode</span>\n\t\t\t\t\t<span> or </span>\n\t\t\t\t\t<span style="color: #333;">Edit an Existing</span>\n\t\t\t\t\t<span> Shortcode using the menu above.</span>\n\t\t\t\t</div>\n\t\t\t'),void jQuery(".pp-shortcode-result").html("");jQuery.ajax({url:this.data.ajaxurl,data:{action:"pp_load_shortcode",security:this.data.security,instance:n},type:"POST",timeout:6e4,success:function(e){var n=JSON.parse(e);if(!jQuery.isEmptyObject(n))if(void 0!==n.error)t.newResponse(n.error,"pp-error");else if(void 0!==n.form&&void 0!==n.preview){var r='\n\t\t\t\t\t\t<div class="pp-shortcode-form-wrapper">'.concat(n.form,'</div>\n\t\t\t\t\t\t<div class="pp-shortcode-form-update pp-button-wrapper">\n\t\t\t\t\t\t\t<button id="pp-shortcode-generator-update-btn" class="button button-secondary" style="width: 100%;">Update Shortcode</button>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="pp-shortcode-form-delete pp-button-wrapper">\n\t\t\t\t\t\t\t<button id="pp-shortcode-generator-delete-btn" class="button button-secondary" style="width: 100%;">Delete Shortcode</button>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t'),i="\n\t\t\t\t\t\t".concat(n.preview,"\n\t\t\t\t\t\t"),s=jQuery(".pp-shortcode-result"),p=jQuery("#pp-shortcode-form"),a=jQuery("#pp-shortcode-preview");p.html(r).data("instance",n.instance),a.html(i),s.html('\n\t\t\t\t\t\t\t<div class="pp-shortcode-sidebar-collapse">\n\t\t\t\t\t\t\t\t<a href="#" class="pp-collapse-sidebar">\n\t\t\t\t\t\t\t\t\t<span class="dashicons dashicons-arrow-left-alt2"></span>\n\t\t\t\t\t\t\t\t\t<span class="pp-collapse-side">Collapse</span>\n\t\t\t\t\t\t\t\t\t<span class="pp-expand-side" style="display: none;">Expand</span>\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="pp-shortcode-copy">\n\t\t\t\t\t\t\t\t<span>Your shortcode is </span>\n\t\t\t\t\t\t\t\t<pre class="pp-shortcode-text"><code>[showpodcastplayer instance="'.concat(n.instance,'"]</code></pre>\n\t\t\t\t\t\t\t\t<a href="#" class="pp-copy-shortcode-text">(Copy shortcode)</a>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t')),o.updateFont(),jQuery(document).trigger("pp-widget-added")}},error:function(e,o,n){t.newResponse(n,"pp-error")}})}},{key:"updateFont",value:function(){var e=jQuery("#pp-options-module-shortcode .podcast-player-pp-fonts");if(e.length){var t=e.val(),o=this.data.gfonts,n=!(!t||!o[t])&&o[t];if(n){var r=n.split(" ").join("+");if(0===jQuery("link#podcast-player-fonts-css-temp").length){var i=jQuery("<link>",{id:"podcast-player-fonts-css-temp",href:"//fonts.googleapis.com/css?family="+r,rel:"stylesheet",type:"text/css"});jQuery("link:last").after(i)}else{var s=jQuery("link#podcast-player-fonts-css-temp"),p=s.attr("href");s.attr("href",p+"%7C"+r)}}}}},{key:"deleteShortcode",value:function(e){var t=this,o=jQuery("#pp-options-module-shortcode"),n=o.find("#pp-shortcode-form").data("instance"),r=o.find("select.pp-shortcode-dropdown");void 0!==n&&(o.find(".pp-shortcode-result").html(""),jQuery.ajax({url:this.data.ajaxurl,data:{action:"pp_delete_shortcode",security:this.data.security,instance:n},type:"POST",timeout:6e4,success:function(e){var o=JSON.parse(e);jQuery.isEmptyObject(o)||(void 0!==o.error?t.newResponse(o.error,"pp-error"):void 0!==o.success&&(r.val(""),r.find('option[value="'.concat(n,'"]')).remove(),0===r.find("option").length?r.remove():r.trigger("change"),t.newResponse("Shortcode deleted successfully","pp-success",!0)))},error:function(e,o,n){t.newResponse(n,"pp-error")}}))}},{key:"updateShortcode",value:function(e){var t=this,o=this.getShortcodeFormValues(),n=o.instance,r=o.values;r.title&&jQuery(".pp-shortcode-dropdown option:selected").text(r.title),jQuery.ajax({url:this.data.ajaxurl,data:{action:"pp_update_shortcode",security:this.data.security,data:r,instance:n},type:"POST",timeout:6e4,success:function(e){var o=JSON.parse(e);jQuery.isEmptyObject(o)||(void 0!==o.error?t.newResponse(o.error,"pp-error"):void 0!==o.success&&t.newResponse("Shortcode updated successfully","pp-success"))},error:function(e,o,n){t.newResponse(n,"pp-error")}})}},{key:"newResponse",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.newFeedback.removeClass("pp-error pp-success pp-running"),!1!==t&&(this.newFeedback.addClass(t),this.newFeedback.find(".pp-feedback").text(e)),setTimeout(function(){this.newFeedback.removeClass("pp-success pp-running"),o&&window.location.reload()}.bind(this),1e3)}},{key:"toggleSidebar",value:function(e){jQuery("#pp-shortcode-form").toggleClass("pp-sidebar-close"),e.toggleClass("pp-sidebar-close"),window.dispatchEvent(new Event("resize"))}},{key:"copyShortcodeText",value:function(e){var t=e.closest(".pp-shortcode-copy").find(".pp-shortcode-text code").text(),o=jQuery("<textarea>");jQuery("body").append(o),o.val(t).select(),document.execCommand("copy"),o.remove(),this.newResponse("Shortcode copied to clipboard","pp-success")}}],t&&h(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function m(e){return m="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},m(e)}function g(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,b(n.key),n)}}function b(e){var t=function(e){if("object"!=m(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!=m(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==m(t)?t:t+""}const j=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.events()},t=[{key:"events",value:function(){var e=this;jQuery((function(){e.colorPicker()})),jQuery(document).on("pp-widget-added",(function(){e.colorPicker()}))}},{key:"colorPicker",value:function(){var e={change:function(e,t){jQuery(e.target).val(t.color.toString()),jQuery(e.target).trigger("change")}},t=jQuery(".pp-color-picker").not('[id*="__i__"]');t.wpColorPicker(e),t.each((function(){var e=jQuery(this);e.closest(".wp-picker-container").find(".wp-picker-clear").on("click",(function(){e.val("").trigger("change")}))}))}}],t&&g(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function k(e){return k="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},k(e)}function w(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_(n.key),n)}}function _(e){var t=function(e){if("object"!=k(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!=k(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==k(t)?t:t+""}var x=function(){return e=function e(t,o,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.adminData=window.ppjsAdmin||{},this.wrapper=t,this.fetchMethod=o,this.isReset=n,this.adminData.ispremium&&this.runFetchAction()},(t=[{key:"runFetchAction",value:function(){var e=this.getAjaxData();!1===e?this.runFalseAction():(this.hideLists(),this.makeAjaxRequest(e))}},{key:"runFalseAction",value:function(e){this.hideLists(),e&&console.log(e)}},{key:"hideLists",value:function(){this.wrapper.find(".pp-episodes-list").hide(),"feed"===this.fetchMethod&&this.isReset&&(this.wrapper.find(".pp-categories-list").hide(),this.wrapper.find(".pp-seasons-list").hide())}},{key:"getAjaxData",value:function(){return"feed"===this.fetchMethod?this.getFeedAjaxData():"post"===this.fetchMethod?this.getPostAjaxData():void 0}},{key:"getFeedAjaxData",value:function(){var e=this.wrapper.find(".feed_url input").val();if(!(e="string"==typeof e&&e.trim()))return!1;var t=this.adminData.security,o=this.isReset?"true":"false",n=this.wrapper.find('.pp_slist-checklist input[type="checkbox"]:checked'),r=this.wrapper.find('.pp_catlist-checklist input[type="checkbox"]:checked'),i=[],s=[];return this.isReset||(jQuery.each(n,(function(){i.push(jQuery(this).val())})),jQuery.each(r,(function(){s.push(jQuery(this).val())}))),{action:"pp_feed_data_list",security:t,getAll:o,feedUrl:e,seasons:i,categories:s}}},{key:"getPostAjaxData",value:function(){var e=this.adminData.security,t=this.wrapper.find("select.podcast-player-pp-post-type").val(),o=this.wrapper.find("select.podcast-player-pp-taxonomy").val(),n=this.wrapper.find("select.podcast-player-sortby").val(),r=this.wrapper.find(".filterby input").val(),i=this.wrapper.find('.pp_terms-checklist input[type="checkbox"]:checked'),s=[];return jQuery.each(i,(function(){s.push(jQuery(this).val())})),{action:"pp_post_episodes_list",security:e,postType:t,taxonomy:o,sortby:n,filterby:r,terms:s}}},{key:"makeAjaxRequest",value:function(e){var t=this,o=this.adminData.ajaxurl;jQuery.ajax({url:o,data:e,type:"POST",timeout:1e4,success:function(e){var o=JSON.parse(e);jQuery.isEmptyObject(o)?t.runFalseAction("PP Error: Empty object received"):o.items?t.createMarkup(o):o.error&&t.runFalseAction(o.error)},error:function(e,o,n){t.runFalseAction(n)}})}},{key:"createMarkup",value:function(e){e.items&&(this.template("episode","elist",e.items),this.wrapper.find(".pp-episodes-list").show()),e.seasons&&(this.template("season","slist",e.seasons),this.wrapper.find(".pp-seasons-list").show()),e.categories&&(this.template("cat","catlist",e.categories),this.wrapper.find(".pp-categories-list").show())}},{key:"template",value:function(e,t,o){this.wrapper.find(".d-".concat(e,' input[type="checkbox"]')).prop("checked",!0);var n=this.wrapper.find(".pp_".concat(t,"-checklist ul")),r=n.find("li.d-".concat(e)).clone();n.empty().append(r.clone()),r.removeClass("d-".concat(e)).addClass("pp-".concat(e,"s")),r.find('input[type="checkbox"]').prop("checked",!1).attr("disabled",!0),jQuery.each(o,(function(e,t){var o=r.clone();o.find('input[type="checkbox"]').val(e),o.find(".cblabel").html(t),n.append(o)}))}}])&&w(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();const Q=x,S={ajaxtimeout:null};function P(e){return P="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},P(e)}function O(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,T(n.key),n)}}function T(e){var t=function(e){if("object"!=P(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!=P(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==P(t)?t:t+""}var F=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.events()},t=[{key:"events",value:function(){var e=this;jQuery("#pp-options-module-shortcode").on("change",".podcast-player-pp-fetch-method",(function(){e.changeFetchMethod(jQuery(this))}))}},{key:"changeFetchMethod",value:function(e){var t=e.closest(".pp-shortcode-form, .pp-shortcode-form"),o=e.val(),n=t.find(".podcast-player-pp-aspect-ratio"),r=["lv1","gv1",""],i=""===t.find(".podcast-player-pp-teaser-text").val(),s=["lv1","lv2","gv1","gv2"],p=t.find("select.podcast-player-pp-display-style").val(),a=[".feed_url",".pp_hide_content",".pp_slist",".pp_catlist",".pp-feedback-toggle"],c=[".pp_post_type",".pp_taxonomy",".pp_podtitle"],u=[".pp_audiosrc",".pp_audiotitle",".pp_audiolink",".pp_ahide_download",".pp_ahide_social",".pp-lshow-toggle",".pp-linfo-toggle"],l=[".pp_elist",".pp-filter-toggle",".pp-show-toggle",".pp_txtcolor",".number.pp-widget-option",".offset.pp-widget-option",".pp_grid_columns",".pp_crop_method",".pp_aspect_ratio"];t.find("select.podcast-player-pp-taxonomy").val(""),t.find(".toggle-active").removeClass("toggle-active"),t.find([".pp_settings-content",".pp_terms"].join(",")).hide(),"feed"===o?(t.find(a.join(",")).show(),t.find(c.join(",")).hide(),t.find(u.join(",")).hide(),t.find(l.join(",")).show()):"post"===o?(t.find(a.join(",")).hide(),t.find(c.join(",")).show(),t.find(u.join(",")).hide(),t.find(l.join(",")).show()):"link"===o&&(t.find(a.join(",")).hide(),t.find(c.join(",")).hide(),t.find(u.join(",")).show(),t.find(l.join(",")).hide()),"feed"!==o&&"post"!==o||(clearTimeout(S.ajaxtimeout),S.ajaxtimeout=setTimeout((function(){new Q(t,o,!0)}),500)),"feed"===o||"post"===o?(t.find(".pp_teaser_text").toggle(r.includes(p)),t.find(".pp_excerpt_length").toggle(r.includes(p)&&i),t.find(".pp_excerpt_unit").toggle(r.includes(p)&&i),t.find(".pp_txtcolor").toggle(["lv1","lv2","lv3","gv1"].includes(p)),t.find(".pp_grid_columns").toggle(["gv1","gv2"].includes(p)),t.find(".pp_crop_method").toggle(s.includes(p)&&!!n.val()),t.find(".pp_aspect_ratio").toggle(s.includes(p))):t.find(".pp_teaser_text, .pp_excerpt_length, .pp_excerpt_unit").hide()}}],t&&O(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();const C=F;function R(e){return 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},R(e)}function E(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,A(n.key),n)}}function A(e){var t=function(e){if("object"!=R(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!=R(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==R(t)?t:t+""}var D=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.events()},t=[{key:"events",value:function(){var e=this,t=jQuery("#pp-options-module-shortcode");jQuery(document),t.on("change",".podcast-player-pp-post-type",(function(){e.postType(jQuery(this))})),t.on("change",".podcast-player-pp-taxonomy",(function(){e.taxonomy(jQuery(this))})),t.on("change",".podcast-player-pp-furl-select",(function(){var e=jQuery(this),t=e.val();e.siblings(".pp_feed-url").val(t).trigger("change").trigger("input")})),t.on("input",".feed_url input",(function(){e.feedUrl(jQuery(this))})),t.on("change",".podcast-player-pp-display-style",(function(){e.displayStyle(jQuery(this))})),t.on("change",".podcast-player-pp-aspect-ratio",(function(){e.aspectRatio(jQuery(this))})),t.on("change",".podcast-player-pp-start-when",(function(){e.startWhen(jQuery(this))})),t.on("change",'.d-episode input[type="checkbox"]',(function(){var t=jQuery(this),o=t.closest(".pp_elist").next(".pp_edisplay");e.filterCheckboxes(t,"episode"),t.is(":checked")?o.hide():o.show()})),t.on("change",'.d-season input[type="checkbox"]',(function(){e.filterCheckboxes(jQuery(this),"season")})),t.on("change",'.d-cat input[type="checkbox"]',(function(){e.filterCheckboxes(jQuery(this),"cat")})),t.on("change",'.pp_hide_header input[type="checkbox"]',(function(){e.hideHeader(jQuery(this))})),t.on("change",'.pp_terms-checklist input[type="checkbox"], .filterby input',(function(){e.postFetch(jQuery(this))})),t.on("change",'.pp_slist-checklist input[type="checkbox"], .pp_catlist-checklist input[type="checkbox"]',(function(){e.feedFetch(jQuery(this),!1)})),t.on("change","select.podcast-player-podcast-menu",(function(){e.toggleMenuItems(jQuery(this))})),t.on("change",'.main_menu_items input[type="number"]',(function(){e.toggleDepricatedSub(jQuery(this))})),t.on("change",".podcast-player-pp-teaser-text",(function(){e.toggleExcerptOptions(jQuery(this))})),t.on("change",'.pp_collect_feedback input[type="checkbox"]',(function(){e.toggleFeedbackOptions(jQuery(this))}))}},{key:"widgetAdded",value:function(e){if(e.hasClass("pp-filter-toggle")){var t=e.next(".pp_settings-content");t.find('.d-episode input[type="checkbox"]').is(":checked")&&t.find('.pp-episodes input[type="checkbox"]').attr("disabled",!0),t.find('.d-cat input[type="checkbox"]').is(":checked")&&t.find('.pp-cats input[type="checkbox"]').attr("disabled",!0),t.find('.d-season input[type="checkbox"]').is(":checked")&&t.find('.pp-seasons input[type="checkbox"]').attr("disabled",!0)}}},{key:"settingsToggle",value:function(e){e.next(".pp_settings-content").slideToggle("fast"),e.toggleClass("toggle-active")}},{key:"postType",value:function(e){var t=e.val(),o=e.closest(".pp-shortcode-form").find(".podcast-player-pp-taxonomy");o.find("option").hide(),o.find(".always-visible, ."+t).show(),o.val(""),this.postFetch(e)}},{key:"taxonomy",value:function(e){var t=e.val(),o=e.closest(".pp-shortcode-form").find(".pp_terms");o.find(".pp_terms-checklist input:checkbox").removeAttr("checked"),o.hide(),t&&(o.find(".pp_terms-checklist li").hide(),o.find(".pp_terms-checklist ."+t).show(),o.show()),this.postFetch(e)}},{key:"feedUrl",value:function(e){this.resetAutoFilters(),e.val()&&this.feedFetch(e,!0)}},{key:"aspectRatio",value:function(e){e.val()?e.closest(".pp-shortcode-form").find(".pp_crop_method").show():e.closest(".pp-shortcode-form").find(".pp_crop_method").hide()}},{key:"toggleExcerptOptions",value:function(e){e.val()?e.closest(".pp-shortcode-form").find(".pp_excerpt_length, .pp_excerpt_unit").hide():e.closest(".pp-shortcode-form").find(".pp_excerpt_length, .pp_excerpt_unit").show()}},{key:"startWhen",value:function(e){var t=e.val();t&&"custom"===t?e.closest(".pp-shortcode-form").find(".pp_start_time").show():e.closest(".pp-shortcode-form").find(".pp_start_time").hide()}},{key:"resetAutoFilters",value:function(){this.filterCheckboxes(jQuery('.d-episode input[type="checkbox"]'),"episode"),this.filterCheckboxes(jQuery('.d-season input[type="checkbox"]'),"season"),this.filterCheckboxes(jQuery('.d-cat input[type="checkbox"]'),"cat")}},{key:"filterCheckboxes",value:function(e,t){var o=e.closest(".pp-shortcode-form"),n=".pp-".concat(t,"s");e.is(":checked")?o.find(n+' input[type="checkbox"]').attr("disabled",!0).prop("checked",!1):o.find(n+' input[type="checkbox"]').attr("disabled",!1)}},{key:"hideHeader",value:function(e){var t=e.closest(".pp-shortcode-form");e.is(":checked")?t.find(".pp_hide_cover, .pp_hide_title, .pp_hide_description, .pp_hide_subscribe").hide():t.find(".pp_hide_cover, .pp_hide_title, .pp_hide_description, .pp_hide_subscribe").show()}},{key:"displayStyle",value:function(e){var t=e.val(),o=e.closest(".pp-shortcode-form"),n=o.find(".podcast-player-pp-aspect-ratio"),r=["lv1","gv1",""],i=["lv1","lv2","gv1","gv2"],s=""===o.find(".podcast-player-pp-teaser-text").val();o.find(".pp_no_scroll").toggle(!t||"modern"===t),o.find(".pp_header_default").toggle(!t||"legacy"===t||"modern"===t),o.find(".pp_list_default").toggle(!t||"legacy"===t||"modern"===t),o.find(".pp_teaser_text").toggle(r.includes(t)),o.find(".pp_excerpt_length").toggle(r.includes(t)&&s),o.find(".pp_excerpt_unit").toggle(r.includes(t)&&s),o.find(".pp_grid_columns").toggle(["gv1","gv2"].includes(t)),o.find(".pp_txtcolor").toggle(["lv1","lv2","lv3","gv1"].includes(t)),o.find(".pp_crop_method").toggle(i.includes(t)&&!!n.val()),o.find(".pp_aspect_ratio").toggle(i.includes(t))}},{key:"postFetch",value:function(e){this.fetch(e.closest(".pp-shortcode-form"),"post")}},{key:"feedFetch",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.fetch(e.closest(".pp-shortcode-form"),"feed",t)}},{key:"fetch",value:function(e,t){var o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];"feed"!==t&&"post"!==t||(clearTimeout(S.ajaxtimeout),S.ajaxtimeout=setTimeout((function(){new Q(e,t,o)}),500))}},{key:"toggleMenuItems",value:function(e){var t=e.val(),o=e.closest(".podcast_menu").next(".main_menu_items");t||o.hide()}},{key:"toggleDepricatedSub",value:function(e){var t=e.val(),o=e.closest(".main_menu_items").siblings(".pp_apple_sub, .pp_google_sub, .pp_spotify_sub");t>0?o.hide():o.show()}},{key:"toggleFeedbackOptions",value:function(e){var t=e.closest(".pp-shortcode-form");e.is(":checked")?t.find(".pp_show_form_time, .pp_feedback_text, .pp_positive_text, .pp_positive_url, .pp_negative_text, .pp_negative_form").show():t.find(".pp_show_form_time, .pp_feedback_text, .pp_positive_text, .pp_positive_url, .pp_negative_text, .pp_negative_form").hide()}}],t&&E(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();const N=D;new r,new a,new d,new v,jQuery((function(){new j,new C,new N}))})();1 (()=>{"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,n(r.key),r)}}function o(e,o,n){return o&&t(e.prototype,o),n&&t(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function n(t){var o=function(t){if("object"!=e(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,"string");if("object"!=e(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==e(o)?o:o+""}const r=o((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),jQuery("#pp-options-module-help .pp-docs-hide").hide(),jQuery("#pp-options-module-help .pp-docs-title").on("click",(function(){jQuery(this).toggleClass("pp-toggle"),jQuery(this).next().slideToggle("fast")})),jQuery("#pp-options-module-toolkit .pp-toolkit-content").hide(),jQuery("#pp-options-module-toolkit .pp-toolkit-title").on("click",(function(){jQuery(this).toggleClass("pp-toggle"),jQuery(this).next().slideToggle("fast")})),jQuery(".pp-hidden-settings").hide(),jQuery(".pp-hidden-settings-title").on("click",(function(){jQuery(this).toggleClass("pp-toggle"),jQuery(this).next().slideToggle("fast")}))}));function i(e){return 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},i(e)}function s(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,p(n.key),n)}}function p(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!=i(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}const a=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.data=window.ppjsAdminOpt||{},this.adminPage=jQuery("#pp-options-page"),this.index=jQuery(".select-pp-feed-index").first(),this.refresh=jQuery(".pp-feed-refresh"),this.reset=jQuery(".pp-feed-reset"),this.feedback=jQuery(".pp-toolkit-feedback").first(),this.newFeedback=jQuery("#pp-action-feedback"),this.managePodcastList=this.adminPage.find(".pp-podcasts-list"),this.events()},t=[{key:"events",value:function(){var e=this,t=this;this.refresh.on("click",function(){this.ajaxFeedEditor("refresh")}.bind(this)),this.reset.on("click",function(){this.ajaxFeedEditor("reset")}.bind(this)),jQuery(".pp-feed-del").on("click",(function(){t.index.val()?(jQuery(this).next(".pp-toolkit-del-confirm").slideDown("fast"),t.response()):t.response(t.data.messages.nourl,"pp-error")})),jQuery(".pp-feed-cancel").on("click",(function(){jQuery(this).parents(".pp-toolkit-del-confirm").hide()})),this.managePodcastList.on("click",".pp-podcast-refresh-btn",(function(t){var o=jQuery(t.currentTarget);e.feedRefreshDelete("refresh",o)})),this.managePodcastList.on("click",".pp-podcast-delete-btn",(function(t){var o=jQuery(t.currentTarget);e.feedRefreshDelete("reset",o)})),this.newFeedback.on("click",".pp-error-close",(function(t){e.newFeedback.removeClass("pp-error")}))}},{key:"ajaxFeedEditor",value:function(e){var t=this,o=this.getAjaxConfig(e);this.response(this.data.messages.running,"pp-running"),o?jQuery.ajax({url:this.data.ajaxurl,data:o,type:"POST",timeout:6e4,success:function(e){var o=JSON.parse(e);jQuery.isEmptyObject(o)||(void 0!==o.error?t.response(o.error,"pp-error"):void 0!==o.message&&t.response(o.message,"pp-success"))},error:function(e,o,n){t.response(n,"pp-error")}}):this.response(this.data.messages.nourl,"pp-error")}},{key:"feedRefreshDelete",value:function(e,t){var o=this,n=t.closest(".pp-podcast-list-item"),r=n.data("podcast"),i={action:"pp_feed_editor",security:this.data.security,atype:e,feedUrl:r};t.addClass("pp-wip"),this.managePodcastList.find(".pp-toolkit-buttons").prop("disabled",!0),jQuery.ajax({url:this.data.ajaxurl,data:i,type:"POST",timeout:6e4,success:function(r){var i=JSON.parse(r);jQuery.isEmptyObject(i)||(void 0!==i.error?o.newResponse(i.error,"pp-error"):void 0!==i.message&&(o.newResponse(i.message,"pp-success"),"reset"==e&&n.fadeOut(200,(function(){jQuery(this).remove()}))),t.removeClass("pp-wip"),setTimeout((function(){o.managePodcastList.find(".pp-toolkit-buttons").prop("disabled",!1)}),1500))},error:function(e,n,r){o.newResponse(r,"pp-error"),t.removeClass("pp-wip"),o.managePodcastList.find(".pp-toolkit-buttons").prop("disabled",!1)}})}},{key:"getAjaxConfig",value:function(e){var t=this.index.val();return!!t&&{action:"pp_feed_editor",security:this.data.security,atype:e,feedUrl:t}}},{key:"response",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.feedback.removeClass("pp-error pp-success pp-running"),!1!==t&&(this.feedback.addClass(t),this.feedback.find(".pp-feedback").text(e))}},{key:"newResponse",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.newFeedback.removeClass("pp-error pp-success pp-running"),!1!==t&&(this.newFeedback.addClass(t),this.newFeedback.find(".pp-feedback").text(e)),setTimeout(function(){this.newFeedback.removeClass("pp-success pp-running")}.bind(this),1500)}}],t&&s(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function c(e){return c="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},c(e)}function u(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,d(n.key),n)}}function d(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!=c(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}const l=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.data=window.ppjsAdminOpt||{},this.adminPage=jQuery("#pp-options-page"),this.openSourceUrlBtn=this.adminPage.find(".pp-podcast-source-btn"),this.addSourceUrlBtn=this.adminPage.find(".pp-podcast-new-source-btn"),this.delSourceBtn=this.adminPage.find(".pp-podcast-delete-source-url"),this.newFeedback=jQuery("#pp-action-feedback"),this.events()},t=[{key:"events",value:function(){var e=this;this.openSourceUrlBtn.on("click",(function(e){jQuery(this).closest(".pp-podcast-info").find(".pp-podcast-source-container").slideToggle("fast")})),this.addSourceUrlBtn.on("click",(function(t){var o=jQuery(this),n=o.closest(".pp-podcast-source-container"),r=n.find(".pp-podcast-existing-source"),i=r.find(".pp-podcast-existing-source-url"),s=n.find(".pp-podcast-new-source"),p=s.find(".pp-podcast-new-source-url"),a=p.val();if(a){var c=s.closest(".pp-podcast-list-item").data("podcast"),u={action:"pp_migrate_podcast",security:e.data.security,podcast_id:c,source_url:a};p.attr("disabled",!0),o.attr("disabled",!0),jQuery.ajax({url:e.data.ajaxurl,data:u,type:"POST",timeout:6e4,success:function(t){var n=JSON.parse(t);jQuery.isEmptyObject(n)||(void 0!==n.error?e.newResponse(n.error,"pp-error"):void 0!==n.message&&(i.html(a),r.show(),p.val(""),e.newResponse(n.message,"pp-success"))),p.attr("disabled",!1),o.attr("disabled",!1)},error:function(t,n,r){p.attr("disabled",!1),o.attr("disabled",!1),e.newResponse(r,"pp-error")}})}else e.newResponse(e.data.messages.nosource,"pp-error")})),this.delSourceBtn.on("click",(function(t){t.preventDefault();var o=jQuery(this),n=o.closest(".pp-podcast-existing-source"),r=n.find(".pp-podcast-existing-source-url"),i={action:"pp_delete_source",podcast_id:o.closest(".pp-podcast-list-item").data("podcast"),security:e.data.security};o.attr("disabled",!0),jQuery.ajax({url:e.data.ajaxurl,data:i,type:"POST",timeout:6e4,success:function(t){var i=JSON.parse(t);jQuery.isEmptyObject(i)||(void 0!==i.error?e.newResponse(i.error,"pp-error"):void 0!==i.message&&(r.empty(),n.hide(),e.newResponse(i.message,"pp-success"))),o.attr("disabled",!1)},error:function(t,n,r){o.attr("disabled",!1),e.newResponse(r,"pp-error")}})}))}},{key:"newResponse",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.newFeedback.removeClass("pp-error pp-success pp-running"),!1!==t&&(this.newFeedback.addClass(t),this.newFeedback.find(".pp-feedback").text(e)),setTimeout(function(){this.newFeedback.removeClass("pp-success pp-running")}.bind(this),1500)}}],t&&u(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function f(e){return f="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},f(e)}function h(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,y(n.key),n)}}function y(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!=f(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}const v=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.data=window.ppjsAdminOpt||{},this.newFeedback=jQuery("#pp-action-feedback"),this.serverTimeOut=null,this.events()},t=[{key:"events",value:function(){var e=this,t=jQuery("#pp-options-module-shortcode");jQuery(document),t.on("change",".pp-getval",(function(){clearTimeout(e.serverTimeOut),e.serverTimeOut=setTimeout((function(){e.updatePreview(jQuery(this))}),100)})),t.on("click","#pp-shortcode-generator-btn",(function(){e.blankShortcodeTemplate(jQuery(this))})),t.on("click","#pp-shortcode-generator-submit-btn",(function(){e.createNewShortcode(jQuery(this))})),t.on("click","#pp-shortcode-generator-delete-btn",(function(){t.find("#pp-shortcode-action-modal").removeClass("podcast-player-hidden")})),t.on("click","#pp-shortcode-deletion-btn",(function(){e.deleteShortcode(jQuery(this))})),t.on("click","#pp-shortcode-deletion-cancel",(function(){t.find("#pp-shortcode-action-modal").addClass("podcast-player-hidden")})),t.on("click","#pp-shortcode-generator-update-btn",(function(){e.updateShortcode(jQuery(this))})),t.on("change","select.pp-shortcode-dropdown",(function(){e.loadShortcode(jQuery(this))})),t.on("click",".pp-collapse-sidebar",(function(t){t.preventDefault(),e.toggleSidebar(jQuery(this))})),t.on("click",".pp-copy-shortcode-text",(function(t){t.preventDefault(),e.copyShortcodeText(jQuery(this))}))}},{key:"getShortcodeFormValues",value:function(){var e=jQuery("#pp-shortcode-form"),t=e.find(".pp-getval"),o=e.data("instance"),n={};return t.each((function(){var e=this.name.replace(/^pp_field_name_/,"");e.endsWith("[]")?(e=e.replace(/\[\]$/,""),Array.isArray(n[e])||(n[e]=[]),"checkbox"===this.type?n[e].push(this.checked?this.value:""):n[e].push(this.value)):"checkbox"===this.type?n[e]=this.checked?this.value:"":n[e]=this.value})),console.log(o),{instance:o,values:n}}},{key:"updatePreview",value:function(e){var t=this,o=this,n=this.getShortcodeFormValues(),r=(n.instance,n.values);jQuery.ajax({url:this.data.ajaxurl,data:{action:"pp_render_preview",security:this.data.security,data:r},type:"POST",timeout:6e4,success:function(e){var n=JSON.parse(e);jQuery.isEmptyObject(n)||(void 0!==n.error?t.newResponse(n.error,"pp-error"):void 0!==n.markup&&(jQuery("#pp-shortcode-preview").html(n.markup),o.updateFont()))},error:function(e,o,n){t.newResponse(n,"dpt-error")}})}},{key:"blankShortcodeTemplate",value:function(e){var t=this;e.siblings("select.pp-shortcode-dropdown").val(""),jQuery.ajax({url:this.data.ajaxurl,data:{action:"pp_blank_shortcode_template",security:this.data.security},type:"POST",timeout:6e4,success:function(e){var o=JSON.parse(e);if(!jQuery.isEmptyObject(o))if(void 0!==o.error)t.newResponse(o.error,"dpt-error");else if(void 0!==o.form&&void 0!==o.instance){var n='\n\t\t\t\t\t\t<div class="pp-shortcode-form-wrapper">'.concat(o.form,'</div>\n\t\t\t\t\t\t<div class="pp-shortcode-form-submit">\n\t\t\t\t\t\t\t<button id="pp-shortcode-generator-submit-btn" class="button button-secondary" style="width: 100%;">Generate Shortcode</button>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t'),r=jQuery("#pp-shortcode-form"),i=jQuery("#pp-shortcode-preview");jQuery(".pp-shortcode-result").html(""),r.html(n).data("instance",o.instance),i.html('\n\t\t\t\t\t\t<div style="padding: 20px; font-size: 20px; color: #aaa;">\n\t\t\t\t\t\t\t<span>Shortcode</span>\n\t\t\t\t\t\t\t<span style="color: #333;">Preview</span>\n\t\t\t\t\t\t\t<span> will be displayed here.</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t'),jQuery(document).trigger("pp-widget-added"),t.newResponse("Shortcode template created successfully","pp-success")}},error:function(e,o,n){t.newResponse(n,"pp-error")}})}},{key:"createNewShortcode",value:function(){var e=this,t=this.getShortcodeFormValues(),o=t.instance,n=t.values,r=n.title||"Podcast Player Shortcode "+(o+1);jQuery.ajax({url:this.data.ajaxurl,data:{action:"pp_create_new_shortcode",security:this.data.security,data:n,instance:o},type:"POST",timeout:6e4,success:function(t){var n=JSON.parse(t);if(!jQuery.isEmptyObject(n))if(void 0!==n.error)e.newResponse(n.error,"pp-error");else if(void 0!==n.success){var i=jQuery("#pp-options-module-shortcode"),s=i.find(".pp-shortcode-action"),p=i.find("select.pp-shortcode-dropdown");0===p.length&&(s.append('\n\t\t\t\t\t\t\t\t<span class="pp-separator">or</span>\n\t\t\t\t\t\t\t\t<select class="pp-shortcode-dropdown">\n\t\t\t\t\t\t\t\t\t<option value="" selected="selected">Select a Shortcode to Edit</option>\n\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t'),p=i.find("select.pp-shortcode-dropdown")),p.append('<option value="'.concat(o,'">').concat(r,"</option>")),p.val(o),p.trigger("change"),e.newResponse("New shortcode created successfully","pp-success")}},error:function(t,o,n){e.newResponse(n,"pp-error")}})}},{key:"loadShortcode",value:function(e){var t=this,o=this,n=e.val();if(!n)return jQuery("#pp-shortcode-form").html(""),jQuery("#pp-shortcode-preview").html('\n\t\t\t\t<div style="padding: 20px; font-size: 20px; color: #aaa;">\n\t\t\t\t\t<span>Create a </span>\n\t\t\t\t\t<span style="color: #333;">New Shortcode</span>\n\t\t\t\t\t<span> or </span>\n\t\t\t\t\t<span style="color: #333;">Edit an Existing</span>\n\t\t\t\t\t<span> Shortcode using the menu above.</span>\n\t\t\t\t</div>\n\t\t\t'),void jQuery(".pp-shortcode-result").html("");jQuery.ajax({url:this.data.ajaxurl,data:{action:"pp_load_shortcode",security:this.data.security,instance:n},type:"POST",timeout:6e4,success:function(e){var n=JSON.parse(e);if(!jQuery.isEmptyObject(n))if(void 0!==n.error)t.newResponse(n.error,"pp-error");else if(void 0!==n.form&&void 0!==n.preview){var r='\n\t\t\t\t\t\t<div class="pp-shortcode-form-wrapper">'.concat(n.form,'</div>\n\t\t\t\t\t\t<div class="pp-shortcode-form-update pp-button-wrapper">\n\t\t\t\t\t\t\t<button id="pp-shortcode-generator-update-btn" class="button button-secondary" style="width: 100%;">Update Shortcode</button>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="pp-shortcode-form-delete pp-button-wrapper">\n\t\t\t\t\t\t\t<button id="pp-shortcode-generator-delete-btn" class="button button-secondary" style="width: 100%;">Delete Shortcode</button>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t'),i="\n\t\t\t\t\t\t".concat(n.preview,"\n\t\t\t\t\t\t"),s=jQuery(".pp-shortcode-result"),p=jQuery("#pp-shortcode-form"),a=jQuery("#pp-shortcode-preview");p.html(r).data("instance",n.instance),a.html(i),s.html('\n\t\t\t\t\t\t\t<div class="pp-shortcode-sidebar-collapse">\n\t\t\t\t\t\t\t\t<a href="#" class="pp-collapse-sidebar">\n\t\t\t\t\t\t\t\t\t<span class="dashicons dashicons-arrow-left-alt2"></span>\n\t\t\t\t\t\t\t\t\t<span class="pp-collapse-side">Collapse</span>\n\t\t\t\t\t\t\t\t\t<span class="pp-expand-side" style="display: none;">Expand</span>\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="pp-shortcode-copy">\n\t\t\t\t\t\t\t\t<span>Your shortcode is </span>\n\t\t\t\t\t\t\t\t<pre class="pp-shortcode-text"><code>[showpodcastplayer instance="'.concat(n.instance,'"]</code></pre>\n\t\t\t\t\t\t\t\t<a href="#" class="pp-copy-shortcode-text">(Copy shortcode)</a>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t')),o.updateFont(),jQuery(document).trigger("pp-widget-added")}},error:function(e,o,n){t.newResponse(n,"pp-error")}})}},{key:"updateFont",value:function(){var e=jQuery("#pp-options-module-shortcode .podcast-player-pp-fonts");if(e.length){var t=e.val(),o=this.data.gfonts,n=!(!t||!o[t])&&o[t];if(n){var r=n.split(" ").join("+");if(0===jQuery("link#podcast-player-fonts-css-temp").length){var i=jQuery("<link>",{id:"podcast-player-fonts-css-temp",href:"//fonts.googleapis.com/css?family="+r,rel:"stylesheet",type:"text/css"});jQuery("link:last").after(i)}else{var s=jQuery("link#podcast-player-fonts-css-temp"),p=s.attr("href");s.attr("href",p+"%7C"+r)}}}}},{key:"deleteShortcode",value:function(e){var t=this,o=jQuery("#pp-options-module-shortcode"),n=o.find("#pp-shortcode-form").data("instance"),r=o.find("select.pp-shortcode-dropdown");o.find("#pp-shortcode-action-modal").addClass("podcast-player-hidden"),void 0!==n&&(o.find(".pp-shortcode-result").html(""),jQuery.ajax({url:this.data.ajaxurl,data:{action:"pp_delete_shortcode",security:this.data.security,instance:n},type:"POST",timeout:6e4,success:function(e){var o=JSON.parse(e);jQuery.isEmptyObject(o)||(void 0!==o.error?t.newResponse(o.error,"pp-error"):void 0!==o.success&&(r.val(""),r.find('option[value="'.concat(n,'"]')).remove(),0===r.find("option").length?r.remove():r.trigger("change"),t.newResponse("Shortcode deleted successfully","pp-success",!0)))},error:function(e,o,n){t.newResponse(n,"pp-error")}}))}},{key:"updateShortcode",value:function(e){var t=this,o=this.getShortcodeFormValues(),n=o.instance,r=o.values;r.title&&jQuery(".pp-shortcode-dropdown option:selected").text(r.title),jQuery.ajax({url:this.data.ajaxurl,data:{action:"pp_update_shortcode",security:this.data.security,data:r,instance:n},type:"POST",timeout:6e4,success:function(e){var o=JSON.parse(e);jQuery.isEmptyObject(o)||(void 0!==o.error?t.newResponse(o.error,"pp-error"):void 0!==o.success&&t.newResponse("Shortcode updated successfully","pp-success"))},error:function(e,o,n){t.newResponse(n,"pp-error")}})}},{key:"newResponse",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.newFeedback.removeClass("pp-error pp-success pp-running"),!1!==t&&(this.newFeedback.addClass(t),this.newFeedback.find(".pp-feedback").text(e)),setTimeout(function(){this.newFeedback.removeClass("pp-success pp-running"),o&&window.location.reload()}.bind(this),1e3)}},{key:"toggleSidebar",value:function(e){jQuery("#pp-shortcode-form").toggleClass("pp-sidebar-close"),e.toggleClass("pp-sidebar-close"),window.dispatchEvent(new Event("resize"))}},{key:"copyShortcodeText",value:function(e){var t=e.closest(".pp-shortcode-copy").find(".pp-shortcode-text code").text(),o=jQuery("<textarea>");jQuery("body").append(o),o.val(t).select(),document.execCommand("copy"),o.remove(),this.newResponse("Shortcode copied to clipboard","pp-success")}}],t&&h(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function m(e){return m="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},m(e)}function g(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,b(n.key),n)}}function b(e){var t=function(e){if("object"!=m(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!=m(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==m(t)?t:t+""}const j=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.events()},t=[{key:"events",value:function(){var e=this;jQuery((function(){e.colorPicker()})),jQuery(document).on("pp-widget-added",(function(){e.colorPicker()}))}},{key:"colorPicker",value:function(){var e={change:function(e,t){jQuery(e.target).val(t.color.toString()),jQuery(e.target).trigger("change")}},t=jQuery(".pp-color-picker").not('[id*="__i__"]');t.wpColorPicker(e),t.each((function(){var e=jQuery(this);e.closest(".wp-picker-container").find(".wp-picker-clear").on("click",(function(){e.val("").trigger("change")}))}))}}],t&&g(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function k(e){return k="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},k(e)}function w(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_(n.key),n)}}function _(e){var t=function(e){if("object"!=k(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!=k(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==k(t)?t:t+""}var x=function(){return e=function e(t,o,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.adminData=window.ppjsAdmin||{},this.wrapper=t,this.fetchMethod=o,this.isReset=n,this.adminData.ispremium&&this.runFetchAction()},(t=[{key:"runFetchAction",value:function(){var e=this.getAjaxData();!1===e?this.runFalseAction():(this.hideLists(),this.makeAjaxRequest(e))}},{key:"runFalseAction",value:function(e){this.hideLists(),e&&console.log(e)}},{key:"hideLists",value:function(){this.wrapper.find(".pp-episodes-list").hide(),"feed"===this.fetchMethod&&this.isReset&&(this.wrapper.find(".pp-categories-list").hide(),this.wrapper.find(".pp-seasons-list").hide())}},{key:"getAjaxData",value:function(){return"feed"===this.fetchMethod?this.getFeedAjaxData():"post"===this.fetchMethod?this.getPostAjaxData():void 0}},{key:"getFeedAjaxData",value:function(){var e=this.wrapper.find(".feed_url input").val();if(!(e="string"==typeof e&&e.trim()))return!1;var t=this.adminData.security,o=this.isReset?"true":"false",n=this.wrapper.find('.pp_slist-checklist input[type="checkbox"]:checked'),r=this.wrapper.find('.pp_catlist-checklist input[type="checkbox"]:checked'),i=[],s=[];return this.isReset||(jQuery.each(n,(function(){i.push(jQuery(this).val())})),jQuery.each(r,(function(){s.push(jQuery(this).val())}))),{action:"pp_feed_data_list",security:t,getAll:o,feedUrl:e,seasons:i,categories:s}}},{key:"getPostAjaxData",value:function(){var e=this.adminData.security,t=this.wrapper.find("select.podcast-player-pp-post-type").val(),o=this.wrapper.find("select.podcast-player-pp-taxonomy").val(),n=this.wrapper.find("select.podcast-player-sortby").val(),r=this.wrapper.find(".filterby input").val(),i=this.wrapper.find('.pp_terms-checklist input[type="checkbox"]:checked'),s=[];return jQuery.each(i,(function(){s.push(jQuery(this).val())})),{action:"pp_post_episodes_list",security:e,postType:t,taxonomy:o,sortby:n,filterby:r,terms:s}}},{key:"makeAjaxRequest",value:function(e){var t=this,o=this.adminData.ajaxurl;jQuery.ajax({url:o,data:e,type:"POST",timeout:1e4,success:function(e){var o=JSON.parse(e);jQuery.isEmptyObject(o)?t.runFalseAction("PP Error: Empty object received"):o.items?t.createMarkup(o):o.error&&t.runFalseAction(o.error)},error:function(e,o,n){t.runFalseAction(n)}})}},{key:"createMarkup",value:function(e){e.items&&(this.template("episode","elist",e.items),this.wrapper.find(".pp-episodes-list").show()),e.seasons&&(this.template("season","slist",e.seasons),this.wrapper.find(".pp-seasons-list").show()),e.categories&&(this.template("cat","catlist",e.categories),this.wrapper.find(".pp-categories-list").show())}},{key:"template",value:function(e,t,o){this.wrapper.find(".d-".concat(e,' input[type="checkbox"]')).prop("checked",!0);var n=this.wrapper.find(".pp_".concat(t,"-checklist ul")),r=n.find("li.d-".concat(e)).clone();n.empty().append(r.clone()),r.removeClass("d-".concat(e)).addClass("pp-".concat(e,"s")),r.find('input[type="checkbox"]').prop("checked",!1).attr("disabled",!0),jQuery.each(o,(function(e,t){var o=r.clone();o.find('input[type="checkbox"]').val(e),o.find(".cblabel").html(t),n.append(o)}))}}])&&w(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();const Q=x,S={ajaxtimeout:null};function P(e){return P="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},P(e)}function O(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,T(n.key),n)}}function T(e){var t=function(e){if("object"!=P(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!=P(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==P(t)?t:t+""}var C=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.events()},t=[{key:"events",value:function(){var e=this;jQuery("#pp-options-module-shortcode").on("change",".podcast-player-pp-fetch-method",(function(){e.changeFetchMethod(jQuery(this))}))}},{key:"changeFetchMethod",value:function(e){var t=e.closest(".pp-shortcode-form, .pp-shortcode-form"),o=e.val(),n=t.find(".podcast-player-pp-aspect-ratio"),r=["lv1","gv1",""],i=""===t.find(".podcast-player-pp-teaser-text").val(),s=["lv1","lv2","gv1","gv2"],p=t.find("select.podcast-player-pp-display-style").val(),a=[".feed_url",".pp_hide_content",".pp_slist",".pp_catlist",".pp-feedback-toggle"],c=[".pp_post_type",".pp_taxonomy",".pp_podtitle"],u=[".pp_audiosrc",".pp_audiotitle",".pp_audiolink",".pp_ahide_download",".pp_ahide_social",".pp-lshow-toggle",".pp-linfo-toggle"],d=[".pp_elist",".pp-filter-toggle",".pp-show-toggle",".pp_txtcolor",".number.pp-widget-option",".offset.pp-widget-option",".pp_grid_columns",".pp_crop_method",".pp_aspect_ratio"];t.find("select.podcast-player-pp-taxonomy").val(""),t.find(".toggle-active").removeClass("toggle-active"),t.find([".pp_settings-content",".pp_terms"].join(",")).hide(),"feed"===o?(t.find(a.join(",")).show(),t.find(c.join(",")).hide(),t.find(u.join(",")).hide(),t.find(d.join(",")).show()):"post"===o?(t.find(a.join(",")).hide(),t.find(c.join(",")).show(),t.find(u.join(",")).hide(),t.find(d.join(",")).show()):"link"===o&&(t.find(a.join(",")).hide(),t.find(c.join(",")).hide(),t.find(u.join(",")).show(),t.find(d.join(",")).hide()),"feed"!==o&&"post"!==o||(clearTimeout(S.ajaxtimeout),S.ajaxtimeout=setTimeout((function(){new Q(t,o,!0)}),500)),"feed"===o||"post"===o?(t.find(".pp_teaser_text").toggle(r.includes(p)),t.find(".pp_excerpt_length").toggle(r.includes(p)&&i),t.find(".pp_excerpt_unit").toggle(r.includes(p)&&i),t.find(".pp_txtcolor").toggle(["lv1","lv2","lv3","gv1"].includes(p)),t.find(".pp_grid_columns").toggle(["gv1","gv2"].includes(p)),t.find(".pp_crop_method").toggle(s.includes(p)&&!!n.val()),t.find(".pp_aspect_ratio").toggle(s.includes(p))):t.find(".pp_teaser_text, .pp_excerpt_length, .pp_excerpt_unit").hide()}}],t&&O(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();const F=C;function R(e){return 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},R(e)}function E(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,A(n.key),n)}}function A(e){var t=function(e){if("object"!=R(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!=R(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==R(t)?t:t+""}var D=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.events()},t=[{key:"events",value:function(){var e=this,t=jQuery("#pp-options-module-shortcode");jQuery(document),t.on("change",".podcast-player-pp-post-type",(function(){e.postType(jQuery(this))})),t.on("change",".podcast-player-pp-taxonomy",(function(){e.taxonomy(jQuery(this))})),t.on("change",".podcast-player-pp-furl-select",(function(){var e=jQuery(this),t=e.val();e.siblings(".pp_feed-url").val(t).trigger("change").trigger("input")})),t.on("input",".feed_url input",(function(){e.feedUrl(jQuery(this))})),t.on("change",".podcast-player-pp-display-style",(function(){e.displayStyle(jQuery(this))})),t.on("change",".podcast-player-pp-aspect-ratio",(function(){e.aspectRatio(jQuery(this))})),t.on("change",".podcast-player-pp-start-when",(function(){e.startWhen(jQuery(this))})),t.on("change",'.d-episode input[type="checkbox"]',(function(){var t=jQuery(this),o=t.closest(".pp_elist").next(".pp_edisplay");e.filterCheckboxes(t,"episode"),t.is(":checked")?o.hide():o.show()})),t.on("change",'.d-season input[type="checkbox"]',(function(){e.filterCheckboxes(jQuery(this),"season")})),t.on("change",'.d-cat input[type="checkbox"]',(function(){e.filterCheckboxes(jQuery(this),"cat")})),t.on("change",'.pp_hide_header input[type="checkbox"]',(function(){e.hideHeader(jQuery(this))})),t.on("change",'.pp_terms-checklist input[type="checkbox"], .filterby input',(function(){e.postFetch(jQuery(this))})),t.on("change",'.pp_slist-checklist input[type="checkbox"], .pp_catlist-checklist input[type="checkbox"]',(function(){e.feedFetch(jQuery(this),!1)})),t.on("change","select.podcast-player-podcast-menu",(function(){e.toggleMenuItems(jQuery(this))})),t.on("change",'.main_menu_items input[type="number"]',(function(){e.toggleDepricatedSub(jQuery(this))})),t.on("change",".podcast-player-pp-teaser-text",(function(){e.toggleExcerptOptions(jQuery(this))})),t.on("change",'.pp_collect_feedback input[type="checkbox"]',(function(){e.toggleFeedbackOptions(jQuery(this))}))}},{key:"widgetAdded",value:function(e){if(e.hasClass("pp-filter-toggle")){var t=e.next(".pp_settings-content");t.find('.d-episode input[type="checkbox"]').is(":checked")&&t.find('.pp-episodes input[type="checkbox"]').attr("disabled",!0),t.find('.d-cat input[type="checkbox"]').is(":checked")&&t.find('.pp-cats input[type="checkbox"]').attr("disabled",!0),t.find('.d-season input[type="checkbox"]').is(":checked")&&t.find('.pp-seasons input[type="checkbox"]').attr("disabled",!0)}}},{key:"settingsToggle",value:function(e){e.next(".pp_settings-content").slideToggle("fast"),e.toggleClass("toggle-active")}},{key:"postType",value:function(e){var t=e.val(),o=e.closest(".pp-shortcode-form").find(".podcast-player-pp-taxonomy");o.find("option").hide(),o.find(".always-visible, ."+t).show(),o.val(""),this.postFetch(e)}},{key:"taxonomy",value:function(e){var t=e.val(),o=e.closest(".pp-shortcode-form").find(".pp_terms");o.find(".pp_terms-checklist input:checkbox").removeAttr("checked"),o.hide(),t&&(o.find(".pp_terms-checklist li").hide(),o.find(".pp_terms-checklist ."+t).show(),o.show()),this.postFetch(e)}},{key:"feedUrl",value:function(e){this.resetAutoFilters(),e.val()&&this.feedFetch(e,!0)}},{key:"aspectRatio",value:function(e){e.val()?e.closest(".pp-shortcode-form").find(".pp_crop_method").show():e.closest(".pp-shortcode-form").find(".pp_crop_method").hide()}},{key:"toggleExcerptOptions",value:function(e){e.val()?e.closest(".pp-shortcode-form").find(".pp_excerpt_length, .pp_excerpt_unit").hide():e.closest(".pp-shortcode-form").find(".pp_excerpt_length, .pp_excerpt_unit").show()}},{key:"startWhen",value:function(e){var t=e.val();t&&"custom"===t?e.closest(".pp-shortcode-form").find(".pp_start_time").show():e.closest(".pp-shortcode-form").find(".pp_start_time").hide()}},{key:"resetAutoFilters",value:function(){this.filterCheckboxes(jQuery('.d-episode input[type="checkbox"]'),"episode"),this.filterCheckboxes(jQuery('.d-season input[type="checkbox"]'),"season"),this.filterCheckboxes(jQuery('.d-cat input[type="checkbox"]'),"cat")}},{key:"filterCheckboxes",value:function(e,t){var o=e.closest(".pp-shortcode-form"),n=".pp-".concat(t,"s");e.is(":checked")?o.find(n+' input[type="checkbox"]').attr("disabled",!0).prop("checked",!1):o.find(n+' input[type="checkbox"]').attr("disabled",!1)}},{key:"hideHeader",value:function(e){var t=e.closest(".pp-shortcode-form");e.is(":checked")?t.find(".pp_hide_cover, .pp_hide_title, .pp_hide_description, .pp_hide_subscribe").hide():t.find(".pp_hide_cover, .pp_hide_title, .pp_hide_description, .pp_hide_subscribe").show()}},{key:"displayStyle",value:function(e){var t=e.val(),o=e.closest(".pp-shortcode-form"),n=o.find(".podcast-player-pp-aspect-ratio"),r=["lv1","gv1",""],i=["lv1","lv2","gv1","gv2"],s=""===o.find(".podcast-player-pp-teaser-text").val();o.find(".pp_no_scroll").toggle(!t||"modern"===t),o.find(".pp_header_default").toggle(!t||"legacy"===t||"modern"===t),o.find(".pp_list_default").toggle(!t||"legacy"===t||"modern"===t),o.find(".pp_teaser_text").toggle(r.includes(t)),o.find(".pp_excerpt_length").toggle(r.includes(t)&&s),o.find(".pp_excerpt_unit").toggle(r.includes(t)&&s),o.find(".pp_grid_columns").toggle(["gv1","gv2"].includes(t)),o.find(".pp_txtcolor").toggle(["lv1","lv2","lv3","gv1"].includes(t)),o.find(".pp_crop_method").toggle(i.includes(t)&&!!n.val()),o.find(".pp_aspect_ratio").toggle(i.includes(t))}},{key:"postFetch",value:function(e){this.fetch(e.closest(".pp-shortcode-form"),"post")}},{key:"feedFetch",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.fetch(e.closest(".pp-shortcode-form"),"feed",t)}},{key:"fetch",value:function(e,t){var o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];"feed"!==t&&"post"!==t||(clearTimeout(S.ajaxtimeout),S.ajaxtimeout=setTimeout((function(){new Q(e,t,o)}),500))}},{key:"toggleMenuItems",value:function(e){var t=e.val(),o=e.closest(".podcast_menu").next(".main_menu_items");t||o.hide()}},{key:"toggleDepricatedSub",value:function(e){var t=e.val(),o=e.closest(".main_menu_items").siblings(".pp_apple_sub, .pp_google_sub, .pp_spotify_sub");t>0?o.hide():o.show()}},{key:"toggleFeedbackOptions",value:function(e){var t=e.closest(".pp-shortcode-form");e.is(":checked")?t.find(".pp_show_form_time, .pp_feedback_text, .pp_positive_text, .pp_positive_url, .pp_negative_text, .pp_negative_form").show():t.find(".pp_show_form_time, .pp_feedback_text, .pp_positive_text, .pp_positive_url, .pp_negative_text, .pp_negative_form").hide()}}],t&&E(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();const N=D;new r,new a,new l,new v,jQuery((function(){new j,new F,new N}))})(); -
podcast-player/trunk/backend/js/partials/options/shortgen.js
r3340425 r3381875 36 36 37 37 widget.on('click', '#pp-shortcode-generator-delete-btn', function() { 38 widget.find('#pp-shortcode-action-modal').removeClass( 'podcast-player-hidden' ); 39 }); 40 41 widget.on('click', '#pp-shortcode-deletion-btn', function() { 38 42 _this.deleteShortcode( jQuery(this) ); 43 }); 44 45 widget.on('click', '#pp-shortcode-deletion-cancel', function() { 46 widget.find('#pp-shortcode-action-modal').addClass( 'podcast-player-hidden' ); 39 47 }); 40 48 … … 322 330 const instance = widget.find('#pp-shortcode-form').data('instance'); 323 331 const dropdown = widget.find('select.pp-shortcode-dropdown'); 332 widget.find('#pp-shortcode-action-modal').addClass( 'podcast-player-hidden' ); 324 333 if ( 'undefined' === typeof instance ) { 325 334 return; -
podcast-player/trunk/frontend/css/podcast-player-editor-rtl.css
r3361508 r3381875 1255 1255 display: flex; 1256 1256 1257 background-color: #d2d2d2;1257 background-color: rgba(0, 0, 0, .08); 1258 1258 } 1259 1259 .ppjs__audio-timer … … 2313 2313 border-radius: 10px; 2314 2314 outline: none !important; 2315 background: #d2d2d2!important;2315 background: rgba(0, 0, 0, .08) !important; 2316 2316 2317 2317 appearance: none; … … 2323 2323 2324 2324 border-radius: 10px !important; 2325 background: linear-gradient(to left, var(--pp-accent-color, #65b84f) 0%, var(--pp-accent-color, #65b84f) var(--pp-progress-value, 0%), var(--pp-buffered-color, rgba(0, 0, 0, .1)) var(--pp-progress-value, 0%), var(--pp-buffered-color, rgba(0, 0, 0, .1)) var(--buffered-width, 0%), #d2d2d2 var(--buffered-width, 0%), #d2d2d2100%) !important;2325 background: linear-gradient(to left, var(--pp-accent-color, #65b84f) 0%, var(--pp-accent-color, #65b84f) var(--pp-progress-value, 0%), var(--pp-buffered-color, rgba(0, 0, 0, .1)) var(--pp-progress-value, 0%), var(--pp-buffered-color, rgba(0, 0, 0, .1)) var(--buffered-width, 0%), rgba(0, 0, 0, .08) var(--buffered-width, 0%), rgba(0, 0, 0, .08) 100%) !important; 2326 2326 box-shadow: none !important; 2327 2327 } … … 2332 2332 2333 2333 border-radius: 10px !important; 2334 background: linear-gradient(to left, var(--pp-accent-color, #65b84f) 0%, var(--pp-accent-color, #65b84f) var(--pp-progress-value, 0%), var(--pp-buffered-color, rgba(0, 0, 0, .1)) var(--pp-progress-value, 0%), var(--pp-buffered-color, rgba(0, 0, 0, .1)) var(--buffered-width, 0%), #d2d2d2 var(--buffered-width, 0%), #d2d2d2100%) !important;2334 background: linear-gradient(to left, var(--pp-accent-color, #65b84f) 0%, var(--pp-accent-color, #65b84f) var(--pp-progress-value, 0%), var(--pp-buffered-color, rgba(0, 0, 0, .1)) var(--pp-progress-value, 0%), var(--pp-buffered-color, rgba(0, 0, 0, .1)) var(--buffered-width, 0%), rgba(0, 0, 0, .08) var(--buffered-width, 0%), rgba(0, 0, 0, .08) 100%) !important; 2335 2335 box-shadow: none !important; 2336 2336 } … … 2341 2341 2342 2342 border-radius: 10px !important; 2343 background: linear-gradient(to left, var(--pp-accent-color, #65b84f) 0%, var(--pp-accent-color, #65b84f) var(--pp-progress-value, 0%), var(--pp-buffered-color, rgba(0, 0, 0, .1)) var(--pp-progress-value, 0%), var(--pp-buffered-color, rgba(0, 0, 0, .1)) var(--buffered-width, 0%), #d2d2d2 var(--buffered-width, 0%), #d2d2d2100%) !important;2343 background: linear-gradient(to left, var(--pp-accent-color, #65b84f) 0%, var(--pp-accent-color, #65b84f) var(--pp-progress-value, 0%), var(--pp-buffered-color, rgba(0, 0, 0, .1)) var(--pp-progress-value, 0%), var(--pp-buffered-color, rgba(0, 0, 0, .1)) var(--buffered-width, 0%), rgba(0, 0, 0, .08) var(--buffered-width, 0%), rgba(0, 0, 0, .08) 100%) !important; 2344 2344 box-shadow: none !important; 2345 2345 } … … 2909 2909 { 2910 2910 color: #fff !important; 2911 background-color: rgba(0, 0, 0, .85) !important; 2911 2912 } 2912 2913 .pp-podcast.light-color.playerview[id^=pp-podcast-] .ppjs__audio-controls .ppjs__secondary-controls .ppjs__button button:hover, … … 2988 2989 color: #fff !important; 2989 2990 } 2990 .pp-podcast.light-color.playerview[id^=pp-podcast-].postview .episode-list__filters, 2991 .pp-podcast.light-text.postview[id^=pp-podcast-].postview .episode-list__filters, 2992 .inline-view.light-color.postview .episode-list__filters 2993 { 2994 border: 1px solid rgba(255, 255, 255, .5); 2991 .pp-podcast.light-color.playerview[id^=pp-podcast-].modern.wide-player .ppjs__controls input[type=range], 2992 .pp-podcast.light-text.postview[id^=pp-podcast-].modern.wide-player .ppjs__controls input[type=range], 2993 .inline-view.light-color.modern.wide-player .ppjs__controls input[type=range] 2994 { 2995 background: rgba(255, 255, 255, .25) !important; 2996 } 2997 .pp-podcast.light-color.playerview[id^=pp-podcast-].modern.wide-player input[type=range]::-moz-range-track, 2998 .pp-podcast.light-text.postview[id^=pp-podcast-].modern.wide-player input[type=range]::-moz-range-track, 2999 .inline-view.light-color.modern.wide-player input[type=range]::-moz-range-track 3000 { 3001 border-color: rgba(255, 255, 255, .25) !important; 3002 } 3003 .pp-podcast.light-color.playerview[id^=pp-podcast-] .episode-list__filters, 3004 .pp-podcast.light-text.postview[id^=pp-podcast-] .episode-list__filters, 3005 .inline-view.light-color .episode-list__filters 3006 { 3007 border-color: rgba(255, 255, 255, .5); 2995 3008 } 2996 3009 -
podcast-player/trunk/frontend/css/podcast-player-editor.css
r3361508 r3381875 1255 1255 display: flex; 1256 1256 1257 background-color: #d2d2d2;1257 background-color: rgba(0, 0, 0, .08); 1258 1258 } 1259 1259 .ppjs__audio-timer … … 2313 2313 border-radius: 10px; 2314 2314 outline: none !important; 2315 background: #d2d2d2!important;2315 background: rgba(0, 0, 0, .08) !important; 2316 2316 2317 2317 appearance: none; … … 2323 2323 2324 2324 border-radius: 10px !important; 2325 background: linear-gradient(to right, var(--pp-accent-color, #65b84f) 0%, var(--pp-accent-color, #65b84f) var(--pp-progress-value, 0%), var(--pp-buffered-color, rgba(0, 0, 0, .1)) var(--pp-progress-value, 0%), var(--pp-buffered-color, rgba(0, 0, 0, .1)) var(--buffered-width, 0%), #d2d2d2 var(--buffered-width, 0%), #d2d2d2100%) !important;2325 background: linear-gradient(to right, var(--pp-accent-color, #65b84f) 0%, var(--pp-accent-color, #65b84f) var(--pp-progress-value, 0%), var(--pp-buffered-color, rgba(0, 0, 0, .1)) var(--pp-progress-value, 0%), var(--pp-buffered-color, rgba(0, 0, 0, .1)) var(--buffered-width, 0%), rgba(0, 0, 0, .08) var(--buffered-width, 0%), rgba(0, 0, 0, .08) 100%) !important; 2326 2326 box-shadow: none !important; 2327 2327 } … … 2332 2332 2333 2333 border-radius: 10px !important; 2334 background: linear-gradient(to right, var(--pp-accent-color, #65b84f) 0%, var(--pp-accent-color, #65b84f) var(--pp-progress-value, 0%), var(--pp-buffered-color, rgba(0, 0, 0, .1)) var(--pp-progress-value, 0%), var(--pp-buffered-color, rgba(0, 0, 0, .1)) var(--buffered-width, 0%), #d2d2d2 var(--buffered-width, 0%), #d2d2d2100%) !important;2334 background: linear-gradient(to right, var(--pp-accent-color, #65b84f) 0%, var(--pp-accent-color, #65b84f) var(--pp-progress-value, 0%), var(--pp-buffered-color, rgba(0, 0, 0, .1)) var(--pp-progress-value, 0%), var(--pp-buffered-color, rgba(0, 0, 0, .1)) var(--buffered-width, 0%), rgba(0, 0, 0, .08) var(--buffered-width, 0%), rgba(0, 0, 0, .08) 100%) !important; 2335 2335 box-shadow: none !important; 2336 2336 } … … 2341 2341 2342 2342 border-radius: 10px !important; 2343 background: linear-gradient(to right, var(--pp-accent-color, #65b84f) 0%, var(--pp-accent-color, #65b84f) var(--pp-progress-value, 0%), var(--pp-buffered-color, rgba(0, 0, 0, .1)) var(--pp-progress-value, 0%), var(--pp-buffered-color, rgba(0, 0, 0, .1)) var(--buffered-width, 0%), #d2d2d2 var(--buffered-width, 0%), #d2d2d2100%) !important;2343 background: linear-gradient(to right, var(--pp-accent-color, #65b84f) 0%, var(--pp-accent-color, #65b84f) var(--pp-progress-value, 0%), var(--pp-buffered-color, rgba(0, 0, 0, .1)) var(--pp-progress-value, 0%), var(--pp-buffered-color, rgba(0, 0, 0, .1)) var(--buffered-width, 0%), rgba(0, 0, 0, .08) var(--buffered-width, 0%), rgba(0, 0, 0, .08) 100%) !important; 2344 2344 box-shadow: none !important; 2345 2345 } … … 2909 2909 { 2910 2910 color: #fff !important; 2911 background-color: rgba(0, 0, 0, .85) !important; 2911 2912 } 2912 2913 .pp-podcast.light-color.playerview[id^=pp-podcast-] .ppjs__audio-controls .ppjs__secondary-controls .ppjs__button button:hover, … … 2988 2989 color: #fff !important; 2989 2990 } 2990 .pp-podcast.light-color.playerview[id^=pp-podcast-].postview .episode-list__filters, 2991 .pp-podcast.light-text.postview[id^=pp-podcast-].postview .episode-list__filters, 2992 .inline-view.light-color.postview .episode-list__filters 2993 { 2994 border: 1px solid rgba(255, 255, 255, .5); 2991 .pp-podcast.light-color.playerview[id^=pp-podcast-].modern.wide-player .ppjs__controls input[type=range], 2992 .pp-podcast.light-text.postview[id^=pp-podcast-].modern.wide-player .ppjs__controls input[type=range], 2993 .inline-view.light-color.modern.wide-player .ppjs__controls input[type=range] 2994 { 2995 background: rgba(255, 255, 255, .25) !important; 2996 } 2997 .pp-podcast.light-color.playerview[id^=pp-podcast-].modern.wide-player input[type=range]::-moz-range-track, 2998 .pp-podcast.light-text.postview[id^=pp-podcast-].modern.wide-player input[type=range]::-moz-range-track, 2999 .inline-view.light-color.modern.wide-player input[type=range]::-moz-range-track 3000 { 3001 border-color: rgba(255, 255, 255, .25) !important; 3002 } 3003 .pp-podcast.light-color.playerview[id^=pp-podcast-] .episode-list__filters, 3004 .pp-podcast.light-text.postview[id^=pp-podcast-] .episode-list__filters, 3005 .inline-view.light-color .episode-list__filters 3006 { 3007 border-color: rgba(255, 255, 255, .5); 2995 3008 } 2996 3009 -
podcast-player/trunk/frontend/css/podcast-player-public-rtl.css
r3361508 r3381875 1255 1255 display: flex; 1256 1256 1257 background-color: #d2d2d2;1257 background-color: rgba(0, 0, 0, .08); 1258 1258 } 1259 1259 .ppjs__audio-timer … … 2313 2313 border-radius: 10px; 2314 2314 outline: none !important; 2315 background: #d2d2d2!important;2315 background: rgba(0, 0, 0, .08) !important; 2316 2316 2317 2317 appearance: none; … … 2323 2323 2324 2324 border-radius: 10px !important; 2325 background: linear-gradient(to left, var(--pp-accent-color, #65b84f) 0%, var(--pp-accent-color, #65b84f) var(--pp-progress-value, 0%), var(--pp-buffered-color, rgba(0, 0, 0, .1)) var(--pp-progress-value, 0%), var(--pp-buffered-color, rgba(0, 0, 0, .1)) var(--buffered-width, 0%), #d2d2d2 var(--buffered-width, 0%), #d2d2d2100%) !important;2325 background: linear-gradient(to left, var(--pp-accent-color, #65b84f) 0%, var(--pp-accent-color, #65b84f) var(--pp-progress-value, 0%), var(--pp-buffered-color, rgba(0, 0, 0, .1)) var(--pp-progress-value, 0%), var(--pp-buffered-color, rgba(0, 0, 0, .1)) var(--buffered-width, 0%), rgba(0, 0, 0, .08) var(--buffered-width, 0%), rgba(0, 0, 0, .08) 100%) !important; 2326 2326 box-shadow: none !important; 2327 2327 } … … 2332 2332 2333 2333 border-radius: 10px !important; 2334 background: linear-gradient(to left, var(--pp-accent-color, #65b84f) 0%, var(--pp-accent-color, #65b84f) var(--pp-progress-value, 0%), var(--pp-buffered-color, rgba(0, 0, 0, .1)) var(--pp-progress-value, 0%), var(--pp-buffered-color, rgba(0, 0, 0, .1)) var(--buffered-width, 0%), #d2d2d2 var(--buffered-width, 0%), #d2d2d2100%) !important;2334 background: linear-gradient(to left, var(--pp-accent-color, #65b84f) 0%, var(--pp-accent-color, #65b84f) var(--pp-progress-value, 0%), var(--pp-buffered-color, rgba(0, 0, 0, .1)) var(--pp-progress-value, 0%), var(--pp-buffered-color, rgba(0, 0, 0, .1)) var(--buffered-width, 0%), rgba(0, 0, 0, .08) var(--buffered-width, 0%), rgba(0, 0, 0, .08) 100%) !important; 2335 2335 box-shadow: none !important; 2336 2336 } … … 2341 2341 2342 2342 border-radius: 10px !important; 2343 background: linear-gradient(to left, var(--pp-accent-color, #65b84f) 0%, var(--pp-accent-color, #65b84f) var(--pp-progress-value, 0%), var(--pp-buffered-color, rgba(0, 0, 0, .1)) var(--pp-progress-value, 0%), var(--pp-buffered-color, rgba(0, 0, 0, .1)) var(--buffered-width, 0%), #d2d2d2 var(--buffered-width, 0%), #d2d2d2100%) !important;2343 background: linear-gradient(to left, var(--pp-accent-color, #65b84f) 0%, var(--pp-accent-color, #65b84f) var(--pp-progress-value, 0%), var(--pp-buffered-color, rgba(0, 0, 0, .1)) var(--pp-progress-value, 0%), var(--pp-buffered-color, rgba(0, 0, 0, .1)) var(--buffered-width, 0%), rgba(0, 0, 0, .08) var(--buffered-width, 0%), rgba(0, 0, 0, .08) 100%) !important; 2344 2344 box-shadow: none !important; 2345 2345 } … … 2878 2878 { 2879 2879 color: #fff !important; 2880 background-color: rgba(0, 0, 0, .85) !important; 2880 2881 } 2881 2882 .pp-podcast.light-color.playerview[id^=pp-podcast-] .ppjs__audio-controls .ppjs__secondary-controls .ppjs__button button:hover, … … 2957 2958 color: #fff !important; 2958 2959 } 2959 .pp-podcast.light-color.playerview[id^=pp-podcast-].postview .episode-list__filters, 2960 .pp-podcast.light-text.postview[id^=pp-podcast-].postview .episode-list__filters, 2961 .inline-view.light-color.postview .episode-list__filters 2962 { 2963 border: 1px solid rgba(255, 255, 255, .5); 2960 .pp-podcast.light-color.playerview[id^=pp-podcast-].modern.wide-player .ppjs__controls input[type=range], 2961 .pp-podcast.light-text.postview[id^=pp-podcast-].modern.wide-player .ppjs__controls input[type=range], 2962 .inline-view.light-color.modern.wide-player .ppjs__controls input[type=range] 2963 { 2964 background: rgba(255, 255, 255, .25) !important; 2965 } 2966 .pp-podcast.light-color.playerview[id^=pp-podcast-].modern.wide-player input[type=range]::-moz-range-track, 2967 .pp-podcast.light-text.postview[id^=pp-podcast-].modern.wide-player input[type=range]::-moz-range-track, 2968 .inline-view.light-color.modern.wide-player input[type=range]::-moz-range-track 2969 { 2970 border-color: rgba(255, 255, 255, .25) !important; 2971 } 2972 .pp-podcast.light-color.playerview[id^=pp-podcast-] .episode-list__filters, 2973 .pp-podcast.light-text.postview[id^=pp-podcast-] .episode-list__filters, 2974 .inline-view.light-color .episode-list__filters 2975 { 2976 border-color: rgba(255, 255, 255, .5); 2964 2977 } 2965 2978 -
podcast-player/trunk/frontend/css/podcast-player-public.css
r3361508 r3381875 1255 1255 display: flex; 1256 1256 1257 background-color: #d2d2d2;1257 background-color: rgba(0, 0, 0, .08); 1258 1258 } 1259 1259 .ppjs__audio-timer … … 2313 2313 border-radius: 10px; 2314 2314 outline: none !important; 2315 background: #d2d2d2!important;2315 background: rgba(0, 0, 0, .08) !important; 2316 2316 2317 2317 appearance: none; … … 2323 2323 2324 2324 border-radius: 10px !important; 2325 background: linear-gradient(to right, var(--pp-accent-color, #65b84f) 0%, var(--pp-accent-color, #65b84f) var(--pp-progress-value, 0%), var(--pp-buffered-color, rgba(0, 0, 0, .1)) var(--pp-progress-value, 0%), var(--pp-buffered-color, rgba(0, 0, 0, .1)) var(--buffered-width, 0%), #d2d2d2 var(--buffered-width, 0%), #d2d2d2100%) !important;2325 background: linear-gradient(to right, var(--pp-accent-color, #65b84f) 0%, var(--pp-accent-color, #65b84f) var(--pp-progress-value, 0%), var(--pp-buffered-color, rgba(0, 0, 0, .1)) var(--pp-progress-value, 0%), var(--pp-buffered-color, rgba(0, 0, 0, .1)) var(--buffered-width, 0%), rgba(0, 0, 0, .08) var(--buffered-width, 0%), rgba(0, 0, 0, .08) 100%) !important; 2326 2326 box-shadow: none !important; 2327 2327 } … … 2332 2332 2333 2333 border-radius: 10px !important; 2334 background: linear-gradient(to right, var(--pp-accent-color, #65b84f) 0%, var(--pp-accent-color, #65b84f) var(--pp-progress-value, 0%), var(--pp-buffered-color, rgba(0, 0, 0, .1)) var(--pp-progress-value, 0%), var(--pp-buffered-color, rgba(0, 0, 0, .1)) var(--buffered-width, 0%), #d2d2d2 var(--buffered-width, 0%), #d2d2d2100%) !important;2334 background: linear-gradient(to right, var(--pp-accent-color, #65b84f) 0%, var(--pp-accent-color, #65b84f) var(--pp-progress-value, 0%), var(--pp-buffered-color, rgba(0, 0, 0, .1)) var(--pp-progress-value, 0%), var(--pp-buffered-color, rgba(0, 0, 0, .1)) var(--buffered-width, 0%), rgba(0, 0, 0, .08) var(--buffered-width, 0%), rgba(0, 0, 0, .08) 100%) !important; 2335 2335 box-shadow: none !important; 2336 2336 } … … 2341 2341 2342 2342 border-radius: 10px !important; 2343 background: linear-gradient(to right, var(--pp-accent-color, #65b84f) 0%, var(--pp-accent-color, #65b84f) var(--pp-progress-value, 0%), var(--pp-buffered-color, rgba(0, 0, 0, .1)) var(--pp-progress-value, 0%), var(--pp-buffered-color, rgba(0, 0, 0, .1)) var(--buffered-width, 0%), #d2d2d2 var(--buffered-width, 0%), #d2d2d2100%) !important;2343 background: linear-gradient(to right, var(--pp-accent-color, #65b84f) 0%, var(--pp-accent-color, #65b84f) var(--pp-progress-value, 0%), var(--pp-buffered-color, rgba(0, 0, 0, .1)) var(--pp-progress-value, 0%), var(--pp-buffered-color, rgba(0, 0, 0, .1)) var(--buffered-width, 0%), rgba(0, 0, 0, .08) var(--buffered-width, 0%), rgba(0, 0, 0, .08) 100%) !important; 2344 2344 box-shadow: none !important; 2345 2345 } … … 2878 2878 { 2879 2879 color: #fff !important; 2880 background-color: rgba(0, 0, 0, .85) !important; 2880 2881 } 2881 2882 .pp-podcast.light-color.playerview[id^=pp-podcast-] .ppjs__audio-controls .ppjs__secondary-controls .ppjs__button button:hover, … … 2957 2958 color: #fff !important; 2958 2959 } 2959 .pp-podcast.light-color.playerview[id^=pp-podcast-].postview .episode-list__filters, 2960 .pp-podcast.light-text.postview[id^=pp-podcast-].postview .episode-list__filters, 2961 .inline-view.light-color.postview .episode-list__filters 2962 { 2963 border: 1px solid rgba(255, 255, 255, .5); 2960 .pp-podcast.light-color.playerview[id^=pp-podcast-].modern.wide-player .ppjs__controls input[type=range], 2961 .pp-podcast.light-text.postview[id^=pp-podcast-].modern.wide-player .ppjs__controls input[type=range], 2962 .inline-view.light-color.modern.wide-player .ppjs__controls input[type=range] 2963 { 2964 background: rgba(255, 255, 255, .25) !important; 2965 } 2966 .pp-podcast.light-color.playerview[id^=pp-podcast-].modern.wide-player input[type=range]::-moz-range-track, 2967 .pp-podcast.light-text.postview[id^=pp-podcast-].modern.wide-player input[type=range]::-moz-range-track, 2968 .inline-view.light-color.modern.wide-player input[type=range]::-moz-range-track 2969 { 2970 border-color: rgba(255, 255, 255, .25) !important; 2971 } 2972 .pp-podcast.light-color.playerview[id^=pp-podcast-] .episode-list__filters, 2973 .pp-podcast.light-text.postview[id^=pp-podcast-] .episode-list__filters, 2974 .inline-view.light-color .episode-list__filters 2975 { 2976 border-color: rgba(255, 255, 255, .5); 2964 2977 } 2965 2978 -
podcast-player/trunk/helper/feed/class-modify-feed-data.php
r3367596 r3381875 43 43 $feed_items = $data['items']; 44 44 $custom_data_items = empty( $custom_data['items'] ) ? array() : $custom_data['items']; 45 $custom_fields = array( 'title', 'description', 'author', 'featured', 'featured_id', 'episode', ' season', 'post_id' );45 $custom_fields = array( 'title', 'description', 'author', 'featured', 'featured_id', 'episode', 'categories', 'season', 'post_id' ); 46 46 47 47 foreach ( $feed_items as $key => $item ) { -
podcast-player/trunk/podcast-player.php
r3367596 r3381875 15 15 * Plugin URI: https://easypodcastpro.com 16 16 * Description: Host your podcast episodes anywhere, display them only using podcast feed url. Use custom widget or shortcode to display podcast player anywhere on your site. 17 * Version: 7.9. 917 * Version: 7.9.10 18 18 * Author: vedathemes 19 19 * Author URI: https://easypodcastpro.com … … 30 30 31 31 // Currently plugin version. 32 define( 'PODCAST_PLAYER_VERSION', '7.9. 9' );32 define( 'PODCAST_PLAYER_VERSION', '7.9.10' ); 33 33 34 34 // Define plugin constants.
Note: See TracChangeset
for help on using the changeset viewer.