"use strict";(self.webpackChunkbeyondwords_wordpress_plugin=self.webpackChunkbeyondwords_wordpress_plugin||[]).push([[551],{3551:function(e,t,r){r.r(t);var o=r(614),s=(r(1978),r(2879));function n(e){let t;const r=e[2].default,s=(0,o.u)(r,e,e[1],null);return{c(){s&&s.c()},m(e,r){s&&s.m(e,r),t=!0},p(e,[t]){s&&s.p&&2&t&&(0,o.v)(s,r,e,e[1],t,null,null)},i(e){t||((0,o.w)(s,e),t=!0)},o(e){(0,o.x)(s,e),t=!1},d(e){s&&s.d(e)}}}function a(e,t,r){let{$$slots:n={},$$scope:a}=t,{store:l}=t;return void 0===l?console.warn("redux-svelte-connect: store value is undefined. Please provide store as prop."):(0,o.y)(s.S,l),e.$$set=e=>{"store"in e&&r(0,l=e.store),"$$scope"in e&&r(1,a=e.$$scope)},[l,a,n]}class l extends o.S{constructor(e){super(),(0,o.s)(this,e,a,n,o.t,{store:0})}}const i=({useUIv1:e,publisherBgColor:t})=>`\n ${(0,o.l)(e,"",`background-color: ${t};`)}\n`;var c=(0,s.c)((e=>{const t=(0,o.z)(e),{language:r,mediaTypeCurrently:n,skipEvents:a,titleEnabled:l,hideSpktLink:c,hideFeedback:u,customControls:p,customLocales:d,isReady:f,isAmp:m,useUIv1:$,useDarkModeScheme:b,publisher:k,publisherLogo:g,trackIndex:h,podcasts:y,isPodcastPlayerFullPage:S,isMemi:v,isJfm:x,publisherId:w,isPodcastPlayer:_,processingStatus:C,renderNode:B,showRewindButtons:T,placeRewindButtons:A}=t,{isPlay:R,playbackRate:P}=(0,o.A)(e),E=(0,o.B)(e),{promo_link:D,title:M,altTitle:O,isPresenting:j}=(0,o.C)(e),I=(0,o.D)(n),N=(0,o.e)(w),Z=(0,o.E)(e),L=(0,o.l)(Z),U=(0,o.l)($),{duration:F,currentTime:G}=E,H=(0,o.F)(r,d),q=(0,o.G)(G0&&G{(0,o._)(e,1)})),(0,o.a1)()}n?(t=new n({}),(0,o.Y)(t.$$.fragment),(0,o.w)(t.$$.fragment,1),(0,o.Z)(t,r.parentNode,r)):t=null}},i(e){s||(t&&(0,o.w)(t.$$.fragment,e),s=!0)},o(e){t&&(0,o.x)(t.$$.fragment,e),s=!1},d(e){e&&(0,o.a2)(r),t&&(0,o._)(t,e)}}}function m(e){let t,r,s,n,a,i=e[1]&&d();return r=new u({}),n=new l({props:{store:e[0],$$slots:{default:[f]},$$scope:{ctx:e}}}),{c(){i&&i.c(),t=(0,o.$)(),(0,o.Y)(r.$$.fragment),s=(0,o.$)(),(0,o.Y)(n.$$.fragment)},m(e,l){i&&i.m(e,l),(0,o.a0)(e,t,l),(0,o.Z)(r,e,l),(0,o.a0)(e,s,l),(0,o.Z)(n,e,l),a=!0},p(e,[r]){e[1]?i?2&r&&(0,o.w)(i,1):(i=d(),i.c(),(0,o.w)(i,1),i.m(t.parentNode,t)):i&&((0,o.a5)(),(0,o.x)(i,1,1,(()=>{i=null})),(0,o.a1)());const s={};1&r&&(s.store=e[0]),516&r&&(s.$$scope={dirty:r,ctx:e}),n.$set(s)},i(e){a||((0,o.w)(i),(0,o.w)(r.$$.fragment,e),(0,o.w)(n.$$.fragment,e),a=!0)},o(e){(0,o.x)(i),(0,o.x)(r.$$.fragment,e),(0,o.x)(n.$$.fragment,e),a=!1},d(e){i&&i.d(e),e&&(0,o.a2)(t),(0,o._)(r,e),e&&(0,o.a2)(s),(0,o._)(n,e)}}}const $=(0,o.c)((0,o.J)(!1,"useStatusBox"),o.z);function b(e,t,r){let{store:s}=t,{AppBox:n}=t,{AppStatusBox:a=null}=t,{mapApp:l}=t,{useGlobalStyleReset:i=!1}=t;const{getState:c=o.j,subscribe:u=o.j}=s;let p=null,d=$(c());return(0,o.a3)((()=>{if(a)return u((()=>{r(6,d=$(c()))}))})),e.$$set=e=>{"store"in e&&r(0,s=e.store),"AppBox"in e&&r(3,n=e.AppBox),"AppStatusBox"in e&&r(4,a=e.AppStatusBox),"mapApp"in e&&r(5,l=e.mapApp),"useGlobalStyleReset"in e&&r(1,i=e.useGlobalStyleReset)},e.$$.update=()=>{120&e.$$.dirty&&r(2,p=l(d&&Boolean(a)?a:n))},[s,i,p,n,a,l,d]}class k extends o.S{constructor(e){super(),(0,o.s)(this,e,b,m,o.t,{store:0,AppBox:3,AppStatusBox:4,mapApp:5,useGlobalStyleReset:1})}}t.default=async({renderNode:e,podcast:t,processingStatus:r},s,n)=>{const a=(0,o.a6)(e)||(0,o.a6)(o.a7);if((0,o.n)(a))return n;const{getState:l,dispatch:i}=s,u=(0,o.z)(l());if(r&&t&&i((0,o.a8)([t])),a.innerHTML="",u.isReady){const[e,t,r]=await Promise.all([(0,o.a9)(u),(0,o.aa)(u),(0,o.ab)(u)]),l=u.isIframe,i=new k({target:a,props:{store:s,AppBox:e,AppStatusBox:r,mapApp:t||c,useGlobalStyleReset:l}});return(0,o.ac)(n).forEach((e=>{i[e]=n[e].bind(i)})),i}return n}},2879:function(e,t,r){r.d(t,{S:function(){return n},a:function(){return k},b:function(){return $},c:function(){return d},d:function(){return b},g:function(){return m},m:function(){return f}});var o=r(614),s=r(845);const n="__STORE__";function a(e,t){if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;const r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;var s=Object.prototype.hasOwnProperty.bind(t);for(let o=0;o({state:e}),p=e=>({dispatch:e}),d=(e,t,r=i,{store:s,areStatesEqual:n=l,areOwnPropsEqual:d=a,areStatePropsEqual:f=a,areMergedPropsEqual:m=(r===i?c:a)}={})=>a=>{const l=((e=u)=>e)(e),i=((e=p)=>{if(function(e){return"object"==typeof e&&!!e}(e)){const t=Object.entries(e);return e=>t.reduce(((t,[r,o])=>({...t,[r]:(...t)=>e(o(...t))})),{})}return e})(t),c=Boolean(e),$=2===(l||[]).length,b=2===(i||[]).length;return function(e){const t=s||(0,o.ad)("__STORE__");if(!t)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:k}=t,{props:g}=e;let h=g,y=u(),S=l(y,h),v=i(p,h),x=r(S,v,h);const w=new a({...e,props:x}),_=w.$set.bind(w);if(w.$set=function(e){const t={...h,...e},r=!d(t,h);h=t,r&&($&&(S=l(u(),h)),b&&(v=i(p,h)),C())},c){const e=k((function(){const e=u(),t=!n(e,y);if(y=e,!t)return;const r=l(y,h),o=!f(r,S);S=r,o&&C()}));w.$$.on_destroy.push(e)}function C(){const e=r(S,v,h),t=!m(e,x);x=e,t&&_(x)}return w}},f=(0,s.Z)((e=>"x"+String(e).replace(".","_"))),m=(0,s.Z)((({useDarkModeScheme:e,publisherColor:t,publisherDmColor:r})=>(0,o.l)(e,r,t))),$=(0,s.Z)((({useDarkModeScheme:e,publisherTextColor:t,publisherDmTextColor:r})=>(0,o.l)(e,r,t))),b=(0,s.Z)((({useDarkModeScheme:e,publisherBgColor:t,publisherDmBgColor:r})=>(0,o.l)(e,r,t))),k=(0,s.Z)(((e,t=o.j)=>{const{isReady:r,publisherColor:s,publisherTextColor:n,publisherBgColor:a}=e,l=(0,o.ae)((0,o.af)()&&"transparent"===a?(0,o.ag)((0,o.a6)(e.renderNode)):a);return o.ah` color: ${s}; ${(0,o.l)(r,"","display: none;")} --sk-text-color: ${n}; --sk-link-color: var(--sk-color_silver); --sk-link-color--hover: var(${(0,o.l)(l>=.5,"--sk-color_black","--sk-color_white")}); ${t(e)} `}))}}]);