This commit is contained in:
zbatte committed 2026-07-02 15:54:39 -06:00
commit 9883323161
17470 files changed
+4470592

No files matched your search

@@ -0,0 +1,115 @@
{
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 3,
"name": "jetpack/podcast-player",
"title": "Podcast Player",
"description": "Select and play episodes from a single podcast.",
"keywords": [
"audio",
"embed"
],
"version": "12.5.0",
"textdomain": "jetpack",
"category": "embed",
"icon": "<svg viewBox='0 0 24 24' width='24' height='24' xmlns='http://www.w3.org/2000/svg'><path d='m22,6h-5v8.18c-.31-.11-.65-.18-1-.18-1.66,0-3,1.34-3,3s1.34,3,3,3,3-1.34,3-3v-9h3v-2h0Zm-7,0H3v2h12v-2h0Zm0,4H3v2h12v-2h0Zm-4,4H3v2h8v-2h0Zm4,3c0-.55.45-1,1-1s1,.45,1,1-.45,1-1,1-1-.45-1-1Z' /></svg>",
"supports": {
"align": [
"wide",
"full"
],
"spacing": {
"padding": true,
"margin": true
},
"anchor": false,
"customClassName": true,
"className": true,
"html": false,
"multiple": true,
"reusable": true
},
"attributes": {
"url": {
"type": "string"
},
"selectedEpisodes": {
"type": "array",
"default": []
},
"itemsToShow": {
"type": "integer",
"default": 5
},
"showCoverArt": {
"type": "boolean",
"default": true
},
"showEpisodeTitle": {
"type": "boolean",
"default": true
},
"showEpisodeDescription": {
"type": "boolean",
"default": true
},
"primaryColor": {
"type": "string"
},
"customPrimaryColor": {
"type": "string"
},
"hexPrimaryColor": {
"type": "string"
},
"secondaryColor": {
"type": "string"
},
"customSecondaryColor": {
"type": "string"
},
"hexSecondaryColor": {
"type": "string"
},
"backgroundColor": {
"type": "string"
},
"customBackgroundColor": {
"type": "string"
},
"hexBackgroundColor": {
"type": "string"
},
"exampleFeedData": {
"type": "object"
}
},
"example": {
"attributes": {
"customPrimaryColor": "GREEN",
"hexPrimaryColor": "GREEN",
"exampleFeedData": {
"title": "Jetpack Example Podcast",
"link": "https://jetpack.com",
"cover": "https://jetpackme.files.wordpress.com/2020/05/jetpack-example-podcast-cover.png?w=160",
"tracks": [
{
"id": "3",
"title": "3. Our third episode",
"duration": "14:58"
},
{
"id": "2",
"title": "2. Interview with a special guest",
"duration": "19:17"
},
{
"id": "1",
"title": "1. Welcome to Example Podcast",
"duration": "11:25"
}
]
}
}
},
"editorScript": "jetpack-blocks-editor"
}
@@ -0,0 +1 @@
<?php return array('dependencies' => array('react-jsx-runtime', 'wp-a11y', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => 'e3b09463badb4c201229');
@@ -0,0 +1 @@
.jetpack-audio-player-loading{background:#ccc;background:var(--jetpack-audio-player-secondary);height:10px;margin:15px 24px}.jetpack-audio-player{--jetpack-audio-player-primary:var(--jetpack-podcast-player-primary,#000);--jetpack-audio-player-secondary:var(--jetpack-podcast-player-secondary,#ccc);--jetpack-audio-player-background:var(--jetpack-podcast-player-background,#fff);height:40px}.jetpack-audio-player .mejs-container,.jetpack-audio-player .mejs-container .mejs-controls,.jetpack-audio-player .mejs-embed,.jetpack-audio-player .mejs-embed body,.jetpack-audio-player .mejs-mediaelement{background-color:#0000}.jetpack-audio-player .mejs-container:focus{box-shadow:none;outline:1px solid;outline-color:#ccc;outline-color:var(--jetpack-audio-player-secondary);outline-offset:2px}.jetpack-audio-player .mejs-controls{padding:0;position:static}.jetpack-podcast-player__header .jetpack-audio-player .mejs-controls{padding-left:15px;padding-right:18px}.jetpack-audio-player .mejs-time{color:#ccc;color:var(--jetpack-audio-player-secondary)}.jetpack-audio-player .mejs-time-float{background:#000;background:var(--jetpack-audio-player-primary);border-color:#000;border-color:var(--jetpack-audio-player-primary);color:#fff;color:var(--jetpack-audio-player-background)}.jetpack-audio-player .mejs-time-float-corner{border-top-color:#000;border-top-color:var(--jetpack-audio-player-primary)}.jetpack-audio-player .mejs-controls :is(.mejs-horizontal-volume-slider .mejs-horizontal-volume-total,.mejs-time-rail .mejs-time-total){background-color:#ccc;background-color:var(--jetpack-audio-player-secondary)}.jetpack-audio-player .mejs-controls .mejs-time-rail .mejs-time-loaded{opacity:.5}.jetpack-audio-player .mejs-controls .mejs-time-rail .mejs-time-loaded,.jetpack-audio-player .mejs-controls :is(.mejs-horizontal-volume-slider .mejs-horizontal-volume-current,.mejs-time-rail .mejs-time-current){background-color:#000;background-color:var(--jetpack-audio-player-primary)}.jetpack-audio-player .mejs-controls .mejs-time-rail .mejs-time-slider:focus{outline:1px solid;outline-color:#ccc;outline-color:var(--jetpack-audio-player-secondary);outline-offset:2px}.jetpack-audio-player .mejs-button>button{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='120'%3E%3Cstyle%3E.st0{fill:%23000;width:16px;height:16px}.st1{fill:none;stroke:%23000;stroke-width:1.5;stroke-linecap:round}%3C/style%3E%3Cpath d='M16.5 8.5c.3.1.4.5.2.8-.1.1-.1.2-.2.2l-11.4 7c-.5.3-.8.1-.8-.5V2c0-.5.4-.8.8-.5zM24 1h2.2c.6 0 1 .4 1 1v14c0 .6-.4 1-1 1H24c-.6 0-1-.4-1-1V2c0-.5.4-1 1-1m9.8 0H36c.6 0 1 .4 1 1v14c0 .6-.4 1-1 1h-2.2c-.6 0-1-.4-1-1V2c0-.5.4-1 1-1m47.2.4c0-.6.4-1 1-1h5.4c.6 0 .7.3.3.7l-6 6c-.4.4-.7.3-.7-.3zm0 15.8c0 .6.4 1 1 1h5.4c.6 0 .7-.3.3-.7l-6-6c-.4-.4-.7-.3-.7.3zM98.8 1.4c0-.6-.4-1-1-1h-5.4c-.6 0-.7.3-.3.7l6 6c.4.4.7.3.7-.3zm0 15.8c0 .6-.4 1-1 1h-5.4c-.6 0-.7-.3-.3-.7l6-6c.4-.4.7-.3.7.3zM112.7 5c0 .6.4 1 1 1h4.1c.6 0 .7-.3.3-.7L113.4.6c-.4-.4-.7-.3-.7.3zm-7.1 1c.6 0 1-.4 1-1V.9c0-.6-.3-.7-.7-.3l-4.7 4.7c-.4.4-.3.7.3.7zm1 7.1c0-.6-.4-1-1-1h-4.1c-.6 0-.7.3-.3.7l4.7 4.7c.4.4.7.3.7-.3zm7.1-1c-.6 0-1 .4-1 1v4.1c0 .5.3.7.7.3l4.7-4.7c.4-.4.3-.7-.3-.7zM67 5.8c-.5.4-1.2.6-1.8.6H62c-.6 0-1 .4-1 1v5.7c0 .6.4 1 1 1h4.2c.3.2.5.4.8.6l3.5 2.6c.4.3.8.1.8-.4V3.5c0-.5-.4-.7-.8-.4z' class='st0'/%3E%3Cpath d='M73.9 2.5s3.9-.8 3.9 7.7-3.9 7.8-3.9 7.8' class='st1'/%3E%3Cpath d='M72.6 6.4s2.6-.4 2.6 3.8-2.6 3.9-2.6 3.9' class='st1'/%3E%3Cpath d='M47 5.8c-.5.4-1.2.6-1.8.6H42c-.6 0-1 .4-1 1v5.7c0 .6.4 1 1 1h4.2c.3.2.5.4.8.6l3.5 2.6c.4.3.8.1.8-.4V3.5c0-.5-.4-.7-.8-.4z' class='st0'/%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-width='2' d='m52.8 7 5.4 5.4m-5.4 0L58.2 7'/%3E%3Cpath fill='none' stroke='%23000' d='M128.7 8.6c-6.2-4.2-6.5 7.8 0 3.9m6.5-3.9c-6.2-4.2-6.5 7.8 0 3.9'/%3E%3Cpath d='M122.2 3.4h15.7v13.1h-15.7zM120.8 2v15.7h18.3V2zm22.4 1h14c1.1 0 2 .9 2 2v10c0 1.1-.9 2-2 2h-14c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2' class='st0'/%3E%3Cpath fill='%23231f20' d='M146.4 13.8c-.8 0-1.6-.4-2.1-1-1.1-1.4-1-3.4.1-4.8.5-.6 2-1.7 4.6.2l-.6.8c-1.4-1-2.6-1.1-3.3-.3-.8 1-.8 2.4-.1 3.5.7.9 1.9.8 3.4-.1l.5.9c-.7.5-1.6.7-2.5.8m7.5 0c-.8 0-1.6-.4-2.1-1-1.1-1.4-1-3.4.1-4.8.5-.6 2-1.7 4.6.2l-.5.8c-1.4-1-2.6-1.1-3.3-.3-.8 1-.8 2.4-.1 3.5.7.9 1.9.8 3.4-.1l.5.9c-.8.5-1.7.7-2.6.8'/%3E%3Cpath d='M60.3 77c.6.2.8.8.6 1.4q-.15.45-.6.6L30 96.5c-1 .6-1.7.1-1.7-1v-35c0-1.1.8-1.5 1.7-1z' class='st0'/%3E%3Cpath fill='none' stroke='%23000' stroke-width='5' d='M2.5 79c0-20.7 16.8-37.5 37.5-37.5S77.5 58.3 77.5 79 60.7 116.5 40 116.5 2.5 99.7 2.5 79z' opacity='.75'/%3E%3Cpath d='M140.3 77c.6.2.8.8.6 1.4q-.15.45-.6.6L110 96.5c-1 .6-1.7.1-1.7-1v-35c0-1.1.8-1.5 1.7-1z' class='st0'/%3E%3Cpath fill='none' stroke='%23000' stroke-width='5' d='M82.5 79c0-20.7 16.8-37.5 37.5-37.5s37.5 16.8 37.5 37.5-16.8 37.5-37.5 37.5S82.5 99.7 82.5 79z'/%3E%3Ccircle cx='201.9' cy='47.1' r='8.1' class='st0'/%3E%3Ccircle cx='233.9' cy='79' r='5' opacity='.4'/%3E%3CcirclLine truncated
@@ -0,0 +1,15 @@
(()=>{var e={86954(e){function t(e,t=100,r={}){if("function"!=typeof e)throw new TypeError(`Expected the first parameter to be a function, got \`${typeof e}\`.`);if(t<0)throw new RangeError("`wait` must not be negative.");const{immediate:s}="boolean"==typeof r?{immediate:r}:r;let a,o,n,i,c;function l(){const t=a,r=o;return a=void 0,o=void 0,c=e.apply(t,r),c}function d(){const e=Date.now()-i;e<t&&e>=0?n=setTimeout(d,t-e):(n=void 0,s||(c=l()))}const u=function(...e){if(a&&this!==a&&Object.getPrototypeOf(this)===Object.getPrototypeOf(a))throw new Error("Debounced method called with different contexts of the same prototype.");a=this,o=e,i=Date.now();const r=s&&!n;return n||(n=setTimeout(d,t)),r&&(c=l()),c};return Object.defineProperty(u,"isPending",{get:()=>void 0!==n}),u.clear=()=>{n&&(clearTimeout(n),n=void 0)},u.flush=()=>{n&&u.trigger()},u.trigger=()=>{c=l(),u.clear()},u}e.exports.debounce=t,e.exports=t},37795(){},35269(){},44997(e){var t=1e3,r=60*t,s=60*r,a=24*s,o=7*a,n=365.25*a;function i(e,t,r,s){var a=t>=1.5*r;return Math.round(e/r)+" "+s+(a?"s":"")}e.exports=function(e,c){c=c||{};var l=typeof e;if("string"===l&&e.length>0)return function(e){if((e=String(e)).length>100)return;var i=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!i)return;var c=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*n;case"weeks":case"week":case"w":return c*o;case"days":case"day":case"d":return c*a;case"hours":case"hour":case"hrs":case"hr":case"h":return c*s;case"minutes":case"minute":case"mins":case"min":case"m":return c*r;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(e);if("number"===l&&isFinite(e))return c.long?function(e){var o=Math.abs(e);if(o>=a)return i(e,o,a,"day");if(o>=s)return i(e,o,s,"hour");if(o>=r)return i(e,o,r,"minute");if(o>=t)return i(e,o,t,"second");return e+" ms"}(e):function(e){var o=Math.abs(e);if(o>=a)return Math.round(e/a)+"d";if(o>=s)return Math.round(e/s)+"h";if(o>=r)return Math.round(e/r)+"m";if(o>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},82389(e,t,r){"use strict";r.d(t,{A:()=>d});var s=r(86087),a=r(13022),o=r(79094),n=r(10790);const i=(0,s.memo)(({playerId:e,title:t,cover:r,link:s,track:a,children:o,showEpisodeTitle:i,showCoverArt:l,showEpisodeDescription:d,colors:u})=>l||i||d?(0,n.jsxs)("div",{className:"jetpack-podcast-player__header",children:[(0,n.jsxs)("div",{className:"jetpack-podcast-player__current-track-info",children:[l&&r&&(0,n.jsx)("div",{className:"jetpack-podcast-player__cover",children:(0,n.jsx)("img",{className:"jetpack-podcast-player__cover-image",src:r,alt:""})}),i&&!!(t||a&&a.title)&&(0,n.jsx)(c,{playerId:e,title:t,link:s,track:a,colors:u})]}),!!(d&&a&&a.description)&&(0,n.jsx)("p",{id:`${e}__track-description`,className:"jetpack-podcast-player__track-description",children:a.description}),o]}):o),c=(0,s.memo)(({playerId:e,title:t,link:r,track:s,colors:i={primary:{name:null,custom:null,classes:""}}})=>(0,n.jsxs)("h2",{id:`${e}__title`,className:"jetpack-podcast-player__title",children:[!(!s||!s.title)&&(0,n.jsxs)("span",{className:(0,a.A)("jetpack-podcast-player__current-track-title",i.primary.classes),style:{color:i.primary.custom},children:[s.title,(0,n.jsx)("a",{className:"jetpack-podcast-player__track-title-link",href:s.link||s.src,target:"_blank",rel:"noopener noreferrer nofollow",children:o.A})]}),!!(s&&s.title&&t)&&(0,n.jsx)("span",{className:"jetpack-podcast-player--visually-hidden",children:" - "}),!!t&&(0,n.jsx)(l,{title:t,link:r,colors:i})]})),l=(0,s.memo)(({title:e,link:t})=>(0,n.jsx)("span",{className:"jetpack-podcast-player__podcast-title",children:t?(0,n.jsx)("a",{className:"jetpack-podcast-player__link",href:t,target:"_blank",rel:"noopener noreferrer nofollow",children:e}):{title:e}})),d=i},3750(e,t,r){"use strict";r.d(t,{A:()=>i});var s=r(86087),a=r(23117),o=r(91677),n=r(10790);const i=(0,s.memo)(({playerId:e,tracks:t,selectTrack:r,currentTrack:s,playerState:i,colors:c})=>(0,n.jsx)("ol",{className:"jetpack-podcast-player__tracks","aria-labelledby":`jetpack-podcast-player__tracklist-title--${e}`,"aria-describedby":`jetpack-podcast-player__tracklist-description--${e}`,children:t.map((e,t)=>{const l=s===t;return(0,n.jsx)(o.A,{index:t,track:e,selectTrack:r,isActive:l,isPlaying:l&&i===a.v8,isError:l&&i===a.pF,colors:c},e.id)})}))},57162(e,t,r){"use strict";r.d(t,{A:()=>g});var s=r(20195),a=r(29491),o=r(47143),n=r(86087),i=r(27723),c=r(13022),l=r(72445),d=r(23117),u=r(19812),p=r(82389),h=r(3750),m=r(81166),y=r(10790);const __=i.__;class f extends n.Component{state={currentTrack:0,hasUserInteraction:!1};recordUserInteraction=()=>{this.state.hasUserInteraction||this.setState({hasUserInteraction:!0})};selectTLine truncated
`${(0,i.sprintf)(__("Loading: %s","jetpack"),r)} ${o}`,"assertive"),!0};loadAndPlay=e=>{this.recordUserInteraction(),this.loadTrack(e)&&this.props.playMediaSource(this.props.playerId)};getTrack=e=>this.props.tracks[e];handleError=e=>{if(!this.state.hasUserInteraction){const t=window.navigator.userAgent.match(/Trident\/7\./)?"IE11: Playing sounds in webpages setting is not checked":e;this.setState(()=>{throw new Error(t)})}this.props.errorMediaSource(this.props.playerId),(0,s.speak)(`${__("Error: Episode unavailable - Open in a new tab","jetpack")}`,"assertive")};handlePlay=()=>{this.props.playMediaSource(this.props.playerId),this.setState({hasUserInteraction:!0})};handlePause=()=>{this.props.pauseMediaSource(this.props.playerId),this.props.playerState!==d.pF&&this.props.pauseMediaSource(this.props.playerId)};handleTimeChange=e=>{this.props.setMediaSourceCurrentTime(this.props.playerId,e)};handleJump=()=>{this.props.setMediaSourceCurrentTime(this.props.playerId,this.props.currentTime-5)};handleSkip=()=>{this.props.setMediaSourceCurrentTime(this.props.playerId,this.props.currentTime+30)};updateMediaData=e=>{this.props.updateMediaSourceData(this.props.playerId,{duration:e.target?.duration,domId:e.target?.id})};registerPlayer(){const e=this.getTrack(this.state.currentTrack)||{},{playerId:t}=this.props;this.props.registerMediaSource(t,{title:e.title,link:e.link,state:d.vh}),this.props.setDefaultMediaSource(t)}componentDidMount(){this.props.playerId&&this.registerPlayer()}componentWillUnmount(){this.props.playerId&&this.props.unregisterMediaSource(this.props.playerId)}componentDidUpdate(e){const t=e=>e?.length?e.map(e=>e.guid):[],r=t(this.props.tracks),s=new Set(t(e.tracks));r.length===s.size&&r.every(e=>s.has(e))||this.loadTrack(0)}static getDerivedStateFromProps(e,t){return e.tracks.length<=t.currentTrack?{...t,currentTrack:0}:null}render(){const{playerId:e,title:t,link:r,cover:s,tracks:a,attributes:o,currentTime:n,playerState:d}=this.props,{itemsToShow:m,primaryColor:f,customPrimaryColor:g,hexPrimaryColor:k,secondaryColor:C,customSecondaryColor:v,hexSecondaryColor:E,backgroundColor:S,customBackgroundColor:j,hexBackgroundColor:w,showCoverArt:_,showEpisodeTitle:b,showEpisodeDescription:M}=o,{currentTrack:T}=this.state,A=a.slice(0,m),x=this.getTrack(T),F=(0,u.GU)({primaryColor:f,customPrimaryColor:g,secondaryColor:C,customSecondaryColor:v,backgroundColor:S,customBackgroundColor:j}),I={color:v,backgroundColor:j,"--jetpack-podcast-player-primary":k,"--jetpack-podcast-player-secondary":E,"--jetpack-podcast-player-background":w},P=(0,c.A)("jetpack-podcast-player",d,F.secondary.classes,F.background.classes);return(0,y.jsxs)("section",{className:P,style:I,"aria-labelledby":t||x&&x.title?`${e}__title`:void 0,"aria-describedby":x&&x.description?`${e}__track-description`:void 0,"data-jetpack-iframe-ignore":!0,children:[(0,y.jsx)(p.A,{playerId:e,title:t,link:r,cover:s,track:this.getTrack(T),showCoverArt:_,showEpisodeTitle:b,showEpisodeDescription:M,colors:F,children:(0,y.jsx)(l.A,{onJumpBack:this.handleJump,onSkipForward:this.handleSkip,trackSource:this.getTrack(T).src,onPlay:this.handlePlay,onPause:this.handlePause,onError:this.handleError,playStatus:d,currentTime:n,onTimeChange:this.handleTimeChange,onMetadataLoaded:this.updateMediaData})}),A.length>1&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("h4",{id:`jetpack-podcast-player__tracklist-title--${e}`,className:"jetpack-podcast-player--visually-hidden",children:(0,i.sprintf)(
// translators: %s is the track title.
__("Playlist: %s","jetpack"),t)}),(0,y.jsx)("p",{id:`jetpack-podcast-player__tracklist-description--${e}`,className:"jetpack-podcast-player--visually-hidden",children:__("Select an episode to play it in the audio player.","jetpack")}),(0,y.jsx)(h.A,{playerId:e,playerState:d,currentTrack:T,tracks:A,selectTrack:this.selectTrack,colors:F})]})]})}}f.defaultProps={title:"",cover:"",link:"",attributes:{url:null,itemsToShow:5,showCoverArt:!0,showEpisodeTitle:!0,showEpisodeDescription:!0},tracks:[]};const g=(0,a.compose)([m.A,(0,o.withSelect)((e,t)=>{const{playerId:r}=t,{getMediaSourceCurrentTime:s,getMediaPlayerState:a}=e(d.ax);return{currentTime:s(r),playerState:a(r)}}),(0,o.withDispatch)(e=>{const{registerMediaSource:t,updateMediaSourceData:r,unregisterMediaSource:s,setDefaultMediaSource:a,playMediaSource:o,pauseMediaSource:n,toggleMediaSource:i,errorMediaSource:c,setMediaSourceCurrentTime:l}=e(d.ax);return{registerMediaSource:t,updateMediaSourceData:r,unregisterMediaSource:s,setDefaultMediaSource:a,playMediaSource:o,pauseMediaSource:n,toggleMediaSource:i,errorMediaSource:c,setMediaSourceCurrentTime:l}})])(f)},74050(e,t,r){"use strict";r.d(t,{A:()=>n});var s=r(86087),a=r(27723),o=r(10790);const __=a.__,n=(0,s.memo)(({link:e,title:t,colors:r})=>(0,o.jsxs)("div",{className:"jetpack-podcast-player__track-error",children:[__("Episode unavailable.","jetpack")," ",e&&(0,o.jsx)("span",{className:r.secondary.classes,style:{color:r.secondary.custom},children:(0,o.jsxs)("a",{className:"jetpack-podcast-player__link",href:e,rel:"noopener noreferrer nofollow",target:"_blank",children:[(0,o.jsx)("span",{className:"jetpack-podcast-player--visually-hidden",children:`${(0,a.sprintf)(/* translators: %s is the title of the track. This text is visually hidden from the screen, but available to screen readers. */
__("%s:","jetpack"),t)} `}),__("Open in a new tab","jetpack")]})})]}))},35311(e,t,r){"use strict";r.d(t,{A:()=>i});var s=r(86087),a=r(27723),o=r(62796),n=r(10790);const __=a.__,i=(0,s.memo)(({isPlaying:e,isError:t,className:r})=>{let s,a;t?(a="error",
/* translators: This is text to describe the current state. This will go
before the track title, such as "Error: [The title of the track]". */
s=__("Error:","jetpack")):e&&(a="playing",
/* translators: Text to describe the current state. This will go before the
track title, such as "Playing: [The title of the track]". */
s=__("Playing:","jetpack"));const i=o[a];return i?(0,n.jsxs)("span",{className:`${r} ${r}--${a}`,children:[(0,n.jsx)("span",{className:"jetpack-podcast-player--visually-hidden",children:`${s} `}),i]}):(0,n.jsx)("span",{className:r})})},91677(e,t,r){"use strict";r.d(t,{A:()=>d});var s=r(86087),a=r(27723),o=r(13022),n=r(19812),i=r(74050),c=r(35311),l=r(10790);const __=a.__,d=(0,s.memo)(({track:e,isActive:t,isPlaying:r,isError:s,selectTrack:a,index:d,colors:u={primary:{},secondary:{}}})=>{const p=(0,n.tQ)("color",u.primary.name),h=(0,n.tQ)("color",u.secondary.name),m=(0,o.A)("jetpack-podcast-player__track",{"is-active":t,"has-primary":t&&(u.primary.name||u.primary.custom),[p]:t&&!!p,"has-secondary":!t&&(u.secondary.name||u.secondary.custom),[h]:!t&&!!h}),y={};t&&u.primary.custom&&!p?y.color=u.primary.custom:t||!u.secondary.custom||h||(y.color=u.secondary.custom);const
/* translators: This needs to be a single word with no spaces. It describes
the current item in the group. A screen reader will announce it as "[title],
current track". */
f=t?__("track","jetpack"):void 0;return(0,l.jsxs)("li",{className:m,style:Object.keys(y).length?y:null,children:[(0,l.jsxs)("a",{className:"jetpack-podcast-player__link jetpack-podcast-player__track-link",href:e.link||e.src,role:"button","aria-current":f,onClick:e=>{e.shiftKey||e.metaKey||e.altKey||(e.preventDefault(),a(d))},onKeyDown:e=>{" "===event.key&&(e.preventDefault(),a(d))},children:[(0,l.jsx)(c.A,{className:"jetpack-podcast-player__track-status-icon",isPlaying:r,isError:s}),(0,l.jsx)("span",{className:"jetpack-podcast-player__track-title",children:e.title}),e.duration&&(0,l.jsx)("time",{className:"jetpack-podcast-player__track-duration",dateTime:e.duration,children:e.duration})]}),t&&s&&(0,l.jsx)(i.A,{link:e.link,title:e.title,colors:u})]})})},81166(e,t,r){"use strict";r.d(t,{A:()=>n});var s=r(86087),a=r(27723),o=r(10790);const __=a.__;function n(e){class t extends s.Component{state={didError:!1,isIE11AudioIssue:!1};componentDidCatch=(e,t)=>{this.props.onError(e,t)};static getDerivedStateFromError=e=>({didError:!0,isIE11AudioIssue:!!e.message.match(/IE11/)});render(){const{didError:t,isIE11AudioIssue:r}=this.state;return t?(0,o.jsx)("section",{className:"jetpack-podcast-player",children:(0,o.jsx)("p",{className:"jetpack-podcast-player__error",children:r?__('The podcast player cannot be displayed as your browser settings do not allow for sounds to be played in webpages. This can be changed in your browser’s "Internet options" settings. In the "Advanced" tab you will have to check the box next to "Play sounds in webpages" in the "Multimedia" section. Once you have confirmed that the box is checked, please press "Apply" and then reload this page.',"jetpack"):__("An unexpected error occurred within the Podcast Player. Reloading this page might fix the problem.","jetpack",0)})}):(0,o.jsx)(e,{...this.props})}}return t.defaultProps={onError:()=>{}},t}},79094(e,t,r){"use strict";r.d(t,{A:()=>o});var s=r(5573),a=r(10790);const o=(0,a.jsx)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(s.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"})})},62796(e,t,r){"use strict";r.r(t),r.d(t,{error:()=>i,playing:()=>n});var s=r(5573),a=r(10790);const o={height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},n=(0,a.jsxs)(s.SVG,{...o,children:[(0,a.jsx)(s.Path,{d:"M0 0h24v24H0V0z",fill:"none"}),(0,a.jsx)(s.Path,{d:"M3 9v6h4l5 5V4L7 9H3zm7-.17v6.34L7.83 13H5v-2h2.83L10 8.83zM16.5 12c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77 0-4.28-2.99-7.86-7-8.77z"})]}),i=(0,a.jsxs)(s.SVG,{...o,children:[(0,a.jsx)(s.Path,{d:"M0 0h24v24H0V0z",fill:"none"}),(0,a.jsx)(s.Path,{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})]})},19812(e,t,r){"use strict";r.d(t,{GU:()=>n,tQ:()=>a});var s=r(13022);function a(e,t){if(e&&t)return`has-${t}-${e}`}const o={},n=e=>{const t=Object.values(e).join();return o[t]??=(({primaryColor:e,customPrimaryColor:t,secondaryColor:r,customSecondaryColor:o,backgroundColor:n,customBackgroundColor:i})=>{const c=a("color",e),l=a("color",r),d=a("background-color",n);return{primary:{name:e,custom:t,classes:(0,s.A)({"has-primary":c||t,[c]:c})},secondary:{name:r,custom:o,classes:(0,s.A)({"has-secondary":l||o,[l]:l})},background:{name:n,custom:i,classes:(0,s.A)({"has-background":d||i,[d]:d})}}})(e)}},72445(e,t,r){"use strict";r.d(t,{A:()=>p});var s=r(20195),a=r(86087),o=r(27723),n=r(86954),i=r.n(n),c=r(23117),l=(r(35269),r(10790));const __=o.__,d="undefined"!=typeof _wpmejsSettings?_wpmejsSettings:{};function u(e,t,r){const s=document.createElement("div");s.className=e;const a=document.createElement("button");return a.innerText=t,a.addEventListener("click",r),a.setAttribute("aria-label",t),a.setAttribute("title",t),s.appendChild(a),s}const p=function({trackSource:e,onPlay:t,onPause:r,onError:o,onTimeChange:n,onSkipForward:p,onJumpBack:h,currentTime:m,playStatus:y=c.vh,onMetadataLoaded:f,loadWhenReady:g=!1,preload:k="metadata"}){const C=(0,a.useRef)(void 0),v=()=>{C.current.play().catch(()=>{})},E=()=>{C.current.pause(),(0,s.speak)(__("Paused","jetpack"),"assertive")};return(0,a.useEffect)(()=>{MediaElementPlayer.prototype._setResponsiveMode||(MediaElementPlayer.prototype._setResponsiveMode=MediaElementPlayer.prototype.setResponsiveMode,MediaElementPlayer.prototype.setResponsiveMode=function(){const e=this;e.getElement(e.container).parentNode&&e._setResponsiveMode()})},[]),(0,a.useEffect)(()=>{const e=C.current;e.preload=k;const s=new MediaElementPlayer(e,{...d,success:()=>g&&e?.load()});if(h||p){const e=`${s.options.classPrefix}button Line truncated
@@ -0,0 +1 @@
.jetpack-audio-player-loading{background:#ccc;background:var(--jetpack-audio-player-secondary);height:10px;margin:15px 24px}.jetpack-audio-player{--jetpack-audio-player-primary:var(--jetpack-podcast-player-primary,#000);--jetpack-audio-player-secondary:var(--jetpack-podcast-player-secondary,#ccc);--jetpack-audio-player-background:var(--jetpack-podcast-player-background,#fff);height:40px}.jetpack-audio-player .mejs-container,.jetpack-audio-player .mejs-container .mejs-controls,.jetpack-audio-player .mejs-embed,.jetpack-audio-player .mejs-embed body,.jetpack-audio-player .mejs-mediaelement{background-color:#0000}.jetpack-audio-player .mejs-container:focus{box-shadow:none;outline:1px solid;outline-color:#ccc;outline-color:var(--jetpack-audio-player-secondary);outline-offset:2px}.jetpack-audio-player .mejs-controls{padding:0;position:static}.jetpack-podcast-player__header .jetpack-audio-player .mejs-controls{padding-left:18px;padding-right:15px}.jetpack-audio-player .mejs-time{color:#ccc;color:var(--jetpack-audio-player-secondary)}.jetpack-audio-player .mejs-time-float{background:#000;background:var(--jetpack-audio-player-primary);border-color:#000;border-color:var(--jetpack-audio-player-primary);color:#fff;color:var(--jetpack-audio-player-background)}.jetpack-audio-player .mejs-time-float-corner{border-top-color:#000;border-top-color:var(--jetpack-audio-player-primary)}.jetpack-audio-player .mejs-controls :is(.mejs-horizontal-volume-slider .mejs-horizontal-volume-total,.mejs-time-rail .mejs-time-total){background-color:#ccc;background-color:var(--jetpack-audio-player-secondary)}.jetpack-audio-player .mejs-controls .mejs-time-rail .mejs-time-loaded{opacity:.5}.jetpack-audio-player .mejs-controls .mejs-time-rail .mejs-time-loaded,.jetpack-audio-player .mejs-controls :is(.mejs-horizontal-volume-slider .mejs-horizontal-volume-current,.mejs-time-rail .mejs-time-current){background-color:#000;background-color:var(--jetpack-audio-player-primary)}.jetpack-audio-player .mejs-controls .mejs-time-rail .mejs-time-slider:focus{outline:1px solid;outline-color:#ccc;outline-color:var(--jetpack-audio-player-secondary);outline-offset:2px}.jetpack-audio-player .mejs-button>button{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='120'%3E%3Cstyle%3E.st0{fill:%23000;width:16px;height:16px}.st1{fill:none;stroke:%23000;stroke-width:1.5;stroke-linecap:round}%3C/style%3E%3Cpath d='M16.5 8.5c.3.1.4.5.2.8-.1.1-.1.2-.2.2l-11.4 7c-.5.3-.8.1-.8-.5V2c0-.5.4-.8.8-.5zM24 1h2.2c.6 0 1 .4 1 1v14c0 .6-.4 1-1 1H24c-.6 0-1-.4-1-1V2c0-.5.4-1 1-1m9.8 0H36c.6 0 1 .4 1 1v14c0 .6-.4 1-1 1h-2.2c-.6 0-1-.4-1-1V2c0-.5.4-1 1-1m47.2.4c0-.6.4-1 1-1h5.4c.6 0 .7.3.3.7l-6 6c-.4.4-.7.3-.7-.3zm0 15.8c0 .6.4 1 1 1h5.4c.6 0 .7-.3.3-.7l-6-6c-.4-.4-.7-.3-.7.3zM98.8 1.4c0-.6-.4-1-1-1h-5.4c-.6 0-.7.3-.3.7l6 6c.4.4.7.3.7-.3zm0 15.8c0 .6-.4 1-1 1h-5.4c-.6 0-.7-.3-.3-.7l6-6c.4-.4.7-.3.7.3zM112.7 5c0 .6.4 1 1 1h4.1c.6 0 .7-.3.3-.7L113.4.6c-.4-.4-.7-.3-.7.3zm-7.1 1c.6 0 1-.4 1-1V.9c0-.6-.3-.7-.7-.3l-4.7 4.7c-.4.4-.3.7.3.7zm1 7.1c0-.6-.4-1-1-1h-4.1c-.6 0-.7.3-.3.7l4.7 4.7c.4.4.7.3.7-.3zm7.1-1c-.6 0-1 .4-1 1v4.1c0 .5.3.7.7.3l4.7-4.7c.4-.4.3-.7-.3-.7zM67 5.8c-.5.4-1.2.6-1.8.6H62c-.6 0-1 .4-1 1v5.7c0 .6.4 1 1 1h4.2c.3.2.5.4.8.6l3.5 2.6c.4.3.8.1.8-.4V3.5c0-.5-.4-.7-.8-.4z' class='st0'/%3E%3Cpath d='M73.9 2.5s3.9-.8 3.9 7.7-3.9 7.8-3.9 7.8' class='st1'/%3E%3Cpath d='M72.6 6.4s2.6-.4 2.6 3.8-2.6 3.9-2.6 3.9' class='st1'/%3E%3Cpath d='M47 5.8c-.5.4-1.2.6-1.8.6H42c-.6 0-1 .4-1 1v5.7c0 .6.4 1 1 1h4.2c.3.2.5.4.8.6l3.5 2.6c.4.3.8.1.8-.4V3.5c0-.5-.4-.7-.8-.4z' class='st0'/%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-width='2' d='m52.8 7 5.4 5.4m-5.4 0L58.2 7'/%3E%3Cpath fill='none' stroke='%23000' d='M128.7 8.6c-6.2-4.2-6.5 7.8 0 3.9m6.5-3.9c-6.2-4.2-6.5 7.8 0 3.9'/%3E%3Cpath d='M122.2 3.4h15.7v13.1h-15.7zM120.8 2v15.7h18.3V2zm22.4 1h14c1.1 0 2 .9 2 2v10c0 1.1-.9 2-2 2h-14c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2' class='st0'/%3E%3Cpath fill='%23231f20' d='M146.4 13.8c-.8 0-1.6-.4-2.1-1-1.1-1.4-1-3.4.1-4.8.5-.6 2-1.7 4.6.2l-.6.8c-1.4-1-2.6-1.1-3.3-.3-.8 1-.8 2.4-.1 3.5.7.9 1.9.8 3.4-.1l.5.9c-.7.5-1.6.7-2.5.8m7.5 0c-.8 0-1.6-.4-2.1-1-1.1-1.4-1-3.4.1-4.8.5-.6 2-1.7 4.6.2l-.5.8c-1.4-1-2.6-1.1-3.3-.3-.8 1-.8 2.4-.1 3.5.7.9 1.9.8 3.4-.1l.5.9c-.8.5-1.7.7-2.6.8'/%3E%3Cpath d='M60.3 77c.6.2.8.8.6 1.4q-.15.45-.6.6L30 96.5c-1 .6-1.7.1-1.7-1v-35c0-1.1.8-1.5 1.7-1z' class='st0'/%3E%3Cpath fill='none' stroke='%23000' stroke-width='5' d='M2.5 79c0-20.7 16.8-37.5 37.5-37.5S77.5 58.3 77.5 79 60.7 116.5 40 116.5 2.5 99.7 2.5 79z' opacity='.75'/%3E%3Cpath d='M140.3 77c.6.2.8.8.6 1.4q-.15.45-.6.6L110 96.5c-1 .6-1.7.1-1.7-1v-35c0-1.1.8-1.5 1.7-1z' class='st0'/%3E%3Cpath fill='none' stroke='%23000' stroke-width='5' d='M82.5 79c0-20.7 16.8-37.5 37.5-37.5s37.5 16.8 37.5 37.5-16.8 37.5-37.5 37.5S82.5 99.7 82.5 79z'/%3E%3Ccircle cx='201.9' cy='47.1' r='8.1' class='st0'/%3E%3Ccircle cx='233.9' cy='79' r='5' opacity='.4'/%3E%3CcirclLine truncated