"use strict";(self.webpackChunkbeyondwords_wordpress_plugin=self.webpackChunkbeyondwords_wordpress_plugin||[]).push([[756],{2879:(e,r,o)=>{o.d(r,{S:()=>n,a:()=>g,b:()=>k,c:()=>d,d:()=>f,g:()=>b,m:()=>h});var t=o(614),s=o(845);const n="__STORE__";function l(e,r){if(e===r)return!0;if("object"!=typeof e||!e||"object"!=typeof r||!r)return!1;const o=Object.keys(e),t=Object.keys(r);if(o.length!==t.length)return!1;var s=Object.prototype.hasOwnProperty.bind(r);for(let t=0;t({state:e}),p=e=>({dispatch:e}),d=(e,r,o=a,{store:s,areStatesEqual:n=i,areOwnPropsEqual:d=l,areStatePropsEqual:h=l,areMergedPropsEqual:b=(o===a?c:l)}={})=>l=>{const i=((e=u)=>e)(e),a=((e=p)=>{if(function(e){return"object"==typeof e&&!!e}(e)){const r=Object.entries(e);return e=>r.reduce(((r,[o,t])=>({...r,[o]:(...r)=>e(t(...r))})),{})}return e})(r),c=Boolean(e),k=2===(i||[]).length,f=2===(a||[]).length;return function(e){const r=s||(0,t.ad)("__STORE__");if(!r)return void console.warn("redux-svelte-connect: ","Cannot access the store. Use the component or pass the store as an option to the connect function");const{getState:u,dispatch:p,subscribe:g}=r,{props:S}=e;let y=S,C=u(),m=i(C,y),w=a(p,y),_=o(m,w,y);const $=new l({...e,props:_}),v=$.$set.bind($);if($.$set=function(e){const r={...y,...e},o=!d(r,y);y=r,o&&(k&&(m=i(u(),y)),f&&(w=a(p,y)),T())},c){const e=g((function(){const e=u(),r=!n(e,C);if(C=e,!r)return;const o=i(C,y),t=!h(o,m);m=o,t&&T()}));$.$$.on_destroy.push(e)}function T(){const e=o(m,w,y),r=!b(e,_);_=e,r&&v(_)}return $}},h=(0,s.Z)((e=>"x"+String(e).replace(".","_"))),b=(0,s.Z)((({useDarkModeScheme:e,publisherColor:r,publisherDmColor:o})=>(0,t.l)(e,o,r))),k=(0,s.Z)((({useDarkModeScheme:e,publisherTextColor:r,publisherDmTextColor:o})=>(0,t.l)(e,o,r))),f=(0,s.Z)((({useDarkModeScheme:e,publisherBgColor:r,publisherDmBgColor:o})=>(0,t.l)(e,o,r))),g=(0,s.Z)(((e,r=t.j)=>{const{isReady:o,publisherColor:s,publisherTextColor:n,publisherBgColor:l}=e,i=(0,t.ae)((0,t.af)()&&"transparent"===l?(0,t.ag)((0,t.a6)(e.renderNode)):l);return t.ah` color: ${s}; ${(0,t.l)(o,"","display: none;")} --sk-text-color: ${n}; --sk-link-color: var(--sk-color_silver); --sk-link-color--hover: var(${(0,t.l)(i>=.5,"--sk-color_black","--sk-color_white")}); ${r(e)} `}))},8756:(e,r,o)=>{o.r(r),o.d(r,{default:()=>l});var t=o(614),s=(o(1978),o(2879));const n=({publisherBgColor:e})=>`\n --sk-playlist-items-bg-color: ${e};\n background-color: ${e};\n`;const l=(0,s.c)((e=>{const r=(0,t.z)(e),{language:o,mediaTypeCurrently:l,useDarkModeScheme:i,hideSpktLink:a,isReady:c,isAmp:u,customLocales:p,podcasts:d,trackIndex:h,publisher:b,hideMinutes:k,isJfm:f,publisherLogo:g,visibleItems:S,withoutScroll:y,renderNode:C,withDownloadButton:m}=r,{isPlay:w,playbackRate:_}=(0,t.A)(e),$=(0,t.B)(e),{isPresenting:v}=(0,t.C)(e),{duration:T,currentTime:D}=$,x=(0,t.F)(o,p),P=(0,t.G)(D(0,t.b0)(e,o),publisherLogo:g,isJfm:f,visibleItems:S,withoutScroll:y,isAllowedDownload:(0,t.a$)(m),downloadWithIcon:(0,t.n)(f)}}),(0,t.K)({play:t.L,pause:t.M,setTrackIndex:t.b1,setCurrentTimeSafe:t.U,setSpeedRate:t.O,adLinkClick:t.P,skipPrevTrack:t.b2,skipNextTrack:t.b3,rewindSeekSafe:t.Q,forwardSeekSafe:t.R}))}}]);