# speechkit/4.0.1/build/756.js

BeyondWords – AI audio for publishers, version 4.0.1. 8 lines.

- Page: https://pluginprobe.com/plugins/speechkit/4.0.1/code/build/756.js
- Raw: https://pluginprobe.com/plugins/speechkit/4.0.1/raw/build/756.js
- Modified: 2023-07-29T23:31:04+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/speechkit/4.0.1/code/build/756.js#L10-L20`.

```javascript
"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<o.length;t++){var n=o[t];if(!s(n))return!1;if(e[n]!==r[n])return!1}return!0}function i(e,r){return r===e}function a(e,r,o){return{...o,...e,...r}}function c(){return!1}const u=e=>({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 <Provider> 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<T?T-D:0,0),B=`${(0,t.H)(D)} / ${(0,t.H)(T)}`,M=(0,t.D)(l),O=(0,t.l)(M&&v)(`${x(t.T.adsNote_v2)} ${(0,t.H)(P,{onlySeconds:!0})}`,B),R=_,j=(0,s.g)(r),L=(0,s.b)(r),E=(0,s.d)(r);return{t:x,isAmp:u,rootStyle:(0,s.a)({isReady:c,publisherColor:j,publisherTextColor:L,publisherBgColor:E,useDarkModeScheme:i,renderNode:C},n),isPlay:w,isAdsCurrently:M,speedRate:R,duration:T,formattedDuration:O,progressState:$,hideSpktLink:a,hideMinutes:k,podcasts:d,trackIndex:h,publisherColor:j,publisherTextColor:L,publisherBgColor:E,publisher:b,formatDate:e=>(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}))}}]);
```
