PluginProbe
BeyondWords – AI audio for publishers / 4.3.0
BeyondWords – AI audio for publishers v4.3.0
7.2.0 7.1.0 trunk 4.0.0 4.0.1 4.0.2 4.0.3 4.0.4 4.0.5 4.0.6 4.1.0 4.1.1 4.1.2 4.2.0 4.2.1 4.2.2 4.2.3 4.2.4 4.3.0 4.4.0 4.5.0 4.5.1 4.6.0 4.6.1 4.6.2 All 44 releases
speechkit / build / 551.js

551.js in BeyondWords – AI audio for publishers 4.3.0, at build/551.js

8 lines 8.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 "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)(G<F?F-G:0,0),Y=U((0,o.H)(q),`${(0,o.H)(G)} / ${(0,o.H)(F)}`),J=U("|","&nbsp;&nbsp;&nbsp;"),z=(0,o.l)(j&&!Z),W=(0,o.l)(I&&j),X=(0,o.l)(R),K=W(`${H(U(o.T.adsNote,o.T.adsNote_v2))} ${U(Y,(0,o.H)(q,{onlySeconds:!0}))}`,Y),Q=(0,o.c)((0,o.J)("",o.T.title),(0,o.I)(h))(y),V=l&&G>0&&G<F,ee=(0,o.l)(v&&_||V,Q,L(H(o.T.loading),H(X(o.T.playing,o.T.shortTitle)))),te=z(W("",`${ee} ${J}`),ee),re=U((0,s.m)(P),P),oe={t:H,isAmp:m,rootStyle:(0,s.a)({publisherColor:(0,s.g)(t),publisherTextColor:(0,s.b)(t),publisherBgColor:(0,s.d)(t),isReady:f,useUIv1:$,useDarkModeScheme:b,renderNode:B},i),isPlay:R,skipEvents:a,isAdsCurrently:I,isAdPresenting:j,speedRate:re,adLink:D,adAltTitle:O,statusMessage:te,scrollTitle:V,adTitle:M,duration:F,formattedDuration:K,progressState:E,hideSpktLink:c,customControls:p,publisher:k,publisherLogo:g,trackTitle:Q,eqPublisher:N,isJfm:x,useDarkModeScheme:b,showRewindButtons:T,placeRewindButtons:A};return C&&(oe.state=t.podcastState),(0,o.n)($)?(0,o.l)(S,(0,o.m)(oe,{currentTime:G}),oe):(0,o.m)(oe,{hideFeedback:u})}),(0,o.K)({play:o.L,pause:o.M,setCurrentTime:o.N,setSpeedRate:o.O,adLinkClick:o.P,rewindSeekSafe:o.Q,forwardSeekSafe:o.R,setCurrentTimeSafe:o.U,appOnUnmount:o.V}));class u extends o.S{constructor(e){super(),document.getElementById("svelte-unmgk8-style")||function(){var e=(0,o.W)("style");e.id="svelte-unmgk8-style",e.textContent=":root{--sk-slider-progress-radius:0;--sk-root-font-family:-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;--sk-color_black:#000000;--sk-color_white:#ffffff;--sk-color_alto:#d6d6d6;--sk-color_silver:#cbcbcb;--sk-color_tundora_50:rgba(74,74,74,.5);--sk-text-color:var(--sk-color_black);--sk-link-color:var(--sk-color_tundora_50);--sk-link-color--hover:var(--sk-color_black);--sk-slider-bg-color:var(--sk-color_alto);--sk-slider-progress-color:var(--sk-color_silver)}.sk-app-container svg{margin:0!important}",(0,o.X)(document.head,e)}(),(0,o.s)(this,e,null,null,o.t,{})}}class p extends o.S{constructor(e){super(),document.getElementById("svelte-1cw6xs1-style")||function(){var e=(0,o.W)("style");e.id="svelte-1cw6xs1-style",e.textContent="body{margin:0;background-color:transparent}",(0,o.X)(document.head,e)}(),(0,o.s)(this,e,null,null,o.t,{})}}function d(e){let t,r;return t=new p({}),{c(){(0,o.Y)(t.$$.fragment)},m(e,s){(0,o.Z)(t,e,s),r=!0},i(e){r||((0,o.w)(t.$$.fragment,e),r=!0)},o(e){(0,o.x)(t.$$.fragment,e),r=!1},d(e){(0,o._)(t,e)}}}function f(e){let t,r,s;var n=e[2];return n&&(t=new n({})),{c(){t&&(0,o.Y)(t.$$.fragment),r=(0,o.a4)()},m(e,n){t&&(0,o.Z)(t,e,n),(0,o.a0)(e,r,n),s=!0},p(e,s){if(n!==(n=e[2])){if(t){(0,o.a5)();const e=t;(0,o.x)(e.$$.fragment,1,0,(()=>{(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<r.length;o++){var n=r[o];if(!s(n))return!1;if(e[n]!==t[n])return!1}return!0}function l(e,t){return t===e}function i(e,t,r){return{...r,...e,...t}}function c(){return!1}const u=e=>({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 <Provider> 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`
2 color: ${s};
3 ${(0,o.l)(r,"","display: none;")}
4 --sk-text-color: ${n};
5 --sk-link-color: var(--sk-color_silver);
6 --sk-link-color--hover: var(${(0,o.l)(l>=.5,"--sk-color_black","--sk-color_white")});
7 ${t(e)}
8 `}))}}]);