PluginProbe
BeyondWords – AI audio for publishers / 4.4.0
BeyondWords – AI audio for publishers v4.4.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 / 142.js

142.js in BeyondWords – AI audio for publishers 4.4.0, at build/142.js

5 lines 12.4 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([[142],{9910:function(t,e,s){s.d(e,{B:function(){return n}});var i=s(614);function r(t){let e,s;return{c(){e=(0,i.W)("span"),s=(0,i.am)(t[0])},m(t,r){(0,i.a0)(t,e,r),(0,i.X)(e,s)},p(t,e){1&e&&(0,i.as)(s,t[0])},d(t){t&&(0,i.a2)(e)}}}function a(t){let e,s;return e=new i.aD({props:{name:"speedRateBtn",title:"speedRate",class:"sk-btn-speed-rate",style:t[1],$$slots:{default:[r]},$$scope:{ctx:t}}}),e.$on("click",t[4]),{c(){(0,i.Y)(e.$$.fragment)},m(t,r){(0,i.Z)(e,t,r),s=!0},p(t,[s]){const i={};2&s&&(i.style=t[1]),33&s&&(i.$$scope={dirty:s,ctx:t}),e.$set(i)},i(t){s||((0,i.w)(e.$$.fragment,t),s=!0)},o(t){(0,i.x)(e.$$.fragment,t),s=!1},d(t){(0,i._)(e,t)}}}function o(t,e,s){let r,a,{publisherColor:o}=e,{speedRate:n}=e;return t.$$set=t=>{"publisherColor"in t&&s(2,o=t.publisherColor),"speedRate"in t&&s(3,n=t.speedRate)},t.$$.update=()=>{8&t.$$.dirty&&s(0,r=n+"X"),4&t.$$.dirty&&s(1,a=i.ah`
2 color: ${o};
3 `)},[r,a,o,n,function(e){(0,i.aV)(t,e)}]}class n extends i.S{constructor(t){super(),document.getElementById("svelte-1oump9j-style")||function(){var t=(0,i.W)("style");t.id="svelte-1oump9j-style",t.textContent=".sk-btn-speed-rate{font-size:var(--sk-font-size-msg) !important;line-height:2em;text-indent:0em !important;min-width:60px;align-items:center;flex-direction:column;justify-content:center}.sk-btn-speed-rate > span{transition:transform 0.2s;will-change:transform;transform:scale(1)}.sk-btn-speed-rate:hover > span,.sk-btn-speed-rate:focus > span{transform:scale(1.15);color:var(--sk-link-color--hover)}",(0,i.X)(document.head,t)}(),(0,i.s)(this,t,o,a,i.t,{publisherColor:2,speedRate:3})}}},3038:function(t,e,s){s.d(e,{P:function(){return n}});var i=s(614);function r(t){let e,s,r,a;return{c(){e=(0,i.W)("div"),s=(0,i.W)("img"),s.src!==(r=t[1])&&(0,i.ak)(s,"src",r),(0,i.ak)(s,"alt","publisher pic"),(0,i.ak)(s,"style",t[2]),(0,i.ak)(s,"class","svelte-3otaxj"),(0,i.ak)(e,"class",a=(0,i.al)(t[4])+" svelte-3otaxj"),(0,i.ak)(e,"style",t[0])},m(t,r){(0,i.a0)(t,e,r),(0,i.X)(e,s)},p(t,o){2&o&&s.src!==(r=t[1])&&(0,i.ak)(s,"src",r),4&o&&(0,i.ak)(s,"style",t[2]),16&o&&a!==(a=(0,i.al)(t[4])+" svelte-3otaxj")&&(0,i.ak)(e,"class",a),1&o&&(0,i.ak)(e,"style",t[0])},d(t){t&&(0,i.a2)(e)}}}function a(t){let e,s=t[3]&&r(t);return{c(){s&&s.c(),e=(0,i.a4)()},m(t,r){s&&s.m(t,r),(0,i.a0)(t,e,r)},p(t,[i]){t[3]?s?s.p(t,i):(s=r(t),s.c(),s.m(e.parentNode,e)):s&&(s.d(1),s=null)},i:i.ax,o:i.ax,d(t){s&&s.d(t),t&&(0,i.a2)(e)}}}function o(t,e,s){let r,a,{style:o=null}=e,{url:n=""}=e,{imgStyle:l=null}=e;return t.$$set=t=>{s(5,e=(0,i.aG)((0,i.aG)({},e),(0,i.aU)(t))),"style"in t&&s(0,o=t.style),"url"in t&&s(1,n=t.url),"imgStyle"in t&&s(2,l=t.imgStyle)},t.$$.update=()=>{2&t.$$.dirty&&s(3,r=Boolean(n)),s(4,a=("sk-poster "+(e.class||"")).trim())},e=(0,i.aU)(e),[o,n,l,r,a]}class n extends i.S{constructor(t){super(),document.getElementById("svelte-3otaxj-style")||function(){var t=(0,i.W)("style");t.id="svelte-3otaxj-style",t.textContent=":root{--sk-poster-width:60px}.sk-poster.svelte-3otaxj.svelte-3otaxj{display:flex;flex-grow:0;flex-shrink:0;width:var(--sk-poster-width);height:var(--sk-poster-width)}.sk-poster.svelte-3otaxj img.svelte-3otaxj{width:100%;height:100%;border:0;object-fit:contain}",(0,i.X)(document.head,t)}(),(0,i.s)(this,t,o,a,i.t,{style:0,url:1,imgStyle:2})}}},5142:function(t,e,s){s.r(e);var i=s(614),r=(s(1978),s(9910)),a=s(3038);function o(t,e,s){const i=t.slice();return i[24]=e[s],i[26]=s,i}function n(t){let e,s,r;return e=new i.aN({props:{iconProps:t[24]}}),{c(){(0,i.Y)(e.$$.fragment),s=(0,i.$)()},m(t,a){(0,i.Z)(e,t,a),(0,i.a0)(t,s,a),r=!0},p(t,s){const i={};64&s&&(i.iconProps=t[24]),e.$set(i)},i(t){r||((0,i.w)(e.$$.fragment,t),r=!0)},o(t){(0,i.x)(e.$$.fragment,t),r=!1},d(t){(0,i._)(e,t),t&&(0,i.a2)(s)}}}function l(t){let e,s;return e=new i.aD({props:{class:"sk-podcast-control__item",$$slots:{default:[n]},$$scope:{ctx:t}}}),e.$on("click",(function(){(0,i.ar)(t[11]((0,i.I)(t[26],t[7])))&&t[11]((0,i.I)(t[26],t[7])).apply(this,arguments)})),{c(){(0,i.Y)(e.$$.fragment)},m(t,r){(0,i.Z)(e,t,r),s=!0},p(s,i){t=s;const r={};134217792&i&&(r.$$scope={dirty:i,ctx:t}),e.$set(r)},i(t){s||((0,i.w)(e.$$.fragment,t),s=!0)},o(t){(0,i.x)(e.$$.fragment,t),s=!1},d(t){(0,i._)(e,t)}}}function p(t){let e,s,n,p,d,k,m,y,h,g,u,f,v,$,w,x,_,b,X,S,C,W,j,R,z,A,B,P;p=new a.P({props:{url:t[3],class:"sk-poster__podcast",imgStyle:c}}),$=new i.aE({props:{playerState:t[0]}}),$.$on("click",t[10]);let T=t[6],Z=[];for(let e=0;e<T.length;e+=1)Z[e]=l(o(t,T,e));const I=t=>(0,i.x)(Z[t],1,1,(()=>{Z[t]=null}));return W=new r.B({props:{publisherColor:t[1].publisherColor,speedRate:t[2]}}),W.$on("click",t[12]),{c(){e=(0,i.W)("div"),s=(0,i.W)("div"),n=(0,i.W)("div"),(0,i.Y)(p.$$.fragment),d=(0,i.$)(),k=(0,i.W)("div"),m=(0,i.am)(t[4]),y=(0,i.$)(),h=(0,i.W)("div"),g=(0,i.W)("div"),u=(0,i.am)(t[8]),f=(0,i.$)(),v=(0,i.W)("div"),(0,i.Y)($.$$.fragment),w=(0,i.$)(),x=(0,i.W)("div"),_=(0,i.am)(t[9]),b=(0,i.$)(),X=(0,i.W)("div");for(let t=0;t<Z.length;t+=1)Z[t].c();S=(0,i.$)(),C=(0,i.W)("div"),(0,i.Y)(W.$$.fragment),j=(0,i.$)(),R=(0,i.W)("div"),z=(0,i.am)("Powered by "),A=(0,i.W)("a"),B=(0,i.am)("BeyondWords"),(0,i.ak)(n,"class","sk-cell svelte-1yi635k"),(0,i.ak)(k,"class","sk-cell sk-podcast__article-title svelte-1yi635k"),(0,i.ak)(g,"class","sk-podcast-progressbar__time svelte-1yi635k"),(0,i.ak)(v,"class","sk-podcast-progressbar__wrap-slider svelte-1yi635k"),(0,i.ak)(x,"class","sk-podcast-progressbar__time svelte-1yi635k"),(0,i.ak)(h,"class","sk-cell sk-podcast-progressbar svelte-1yi635k"),(0,i.ak)(X,"class","sk-cell sk-podcast-control svelte-1yi635k"),(0,i.ak)(C,"class","sk-cell svelte-1yi635k"),(0,i.ak)(s,"class","sk-grid svelte-1yi635k"),(0,i.ak)(A,"href",i.aW),(0,i.ak)(A,"target","_blank"),(0,i.ak)(A,"rel","noreferrer"),(0,i.ak)(A,"class","svelte-1yi635k"),(0,i.ak)(R,"class","sk-copyright-wrap svelte-1yi635k"),(0,i.ak)(e,"class","sk-app-container sk-app-podcast svelte-1yi635k"),(0,i.ak)(e,"style",t[1])},m(r,a){(0,i.a0)(r,e,a),(0,i.X)(e,s),(0,i.X)(s,n),(0,i.Z)(p,n,null),(0,i.X)(s,d),(0,i.X)(s,k),(0,i.X)(k,m),(0,i.X)(s,y),(0,i.X)(s,h),(0,i.X)(h,g),(0,i.X)(g,u),(0,i.X)(h,f),(0,i.X)(h,v),(0,i.Z)($,v,null),(0,i.X)(h,w),(0,i.X)(h,x),(0,i.X)(x,_),(0,i.X)(s,b),(0,i.X)(s,X);for(let t=0;t<Z.length;t+=1)Z[t].m(X,null);(0,i.X)(s,S),(0,i.X)(s,C),(0,i.Z)(W,C,null),(0,i.X)(e,j),(0,i.X)(e,R),(0,i.X)(R,z),(0,i.X)(R,A),(0,i.X)(A,B),t[21](e),P=!0},p(t,[s]){const r={};8&s&&(r.url=t[3]),p.$set(r),(!P||16&s)&&(0,i.as)(m,t[4]),(!P||256&s)&&(0,i.as)(u,t[8]);const a={};if(1&s&&(a.playerState=t[0]),$.$set(a),(!P||512&s)&&(0,i.as)(_,t[9]),2240&s){let e;for(T=t[6],e=0;e<T.length;e+=1){const r=o(t,T,e);Z[e]?(Z[e].p(r,s),(0,i.w)(Z[e],1)):(Z[e]=l(r),Z[e].c(),(0,i.w)(Z[e],1),Z[e].m(X,null))}for((0,i.a5)(),e=T.length;e<Z.length;e+=1)I(e);(0,i.a1)()}const n={};2&s&&(n.publisherColor=t[1].publisherColor),4&s&&(n.speedRate=t[2]),W.$set(n),(!P||2&s)&&(0,i.ak)(e,"style",t[1])},i(t){if(!P){(0,i.w)(p.$$.fragment,t),(0,i.w)($.$$.fragment,t);for(let t=0;t<T.length;t+=1)(0,i.w)(Z[t]);(0,i.w)(W.$$.fragment,t),P=!0}},o(t){(0,i.x)(p.$$.fragment,t),(0,i.x)($.$$.fragment,t),Z=Z.filter(Boolean);for(let t=0;t<Z.length;t+=1)(0,i.x)(Z[t]);(0,i.x)(W.$$.fragment,t),P=!1},d(s){s&&(0,i.a2)(e),(0,i._)(p),(0,i._)($),(0,i.aA)(Z,s),(0,i._)(W),t[21](null)}}}const c=i.ah`
4 object-fit: contain;
5 `;function d(t,e,s){let{actions:r}=e,{currentTime:a}=e,{duration:o}=e,{progressState:n}=e,{rootStyle:l}=e,{isAmp:p}=e,{isPlay:c}=e,{isAdsCurrently:d}=e,{speedRate:k}=e,{publisherLogo:m}=e,{trackTitle:y}=e,h=null;const g=()=>{v(r.pause,r.play)()},u=(0,i.aR)(((t,e)=>{t()})),f=()=>{s(5,h.style.minHeight=window.innerHeight+"px",h)};let v,$,w,x,_,b;return(0,i.a3)((()=>(i.aB.add(f),f(),(0,i.aT)(p),()=>{i.aB.deleteAll()}))),t.$$set=t=>{"actions"in t&&s(13,r=t.actions),"currentTime"in t&&s(14,a=t.currentTime),"duration"in t&&s(15,o=t.duration),"progressState"in t&&s(0,n=t.progressState),"rootStyle"in t&&s(1,l=t.rootStyle),"isAmp"in t&&s(16,p=t.isAmp),"isPlay"in t&&s(17,c=t.isPlay),"isAdsCurrently"in t&&s(18,d=t.isAdsCurrently),"speedRate"in t&&s(2,k=t.speedRate),"publisherLogo"in t&&s(3,m=t.publisherLogo),"trackTitle"in t&&s(4,y=t.trackTitle)},t.$$.update=()=>{131072&t.$$.dirty&&s(19,v=(0,i.l)(c)),524288&t.$$.dirty&&s(20,$=v(i.aK,i.aL)),1048576&t.$$.dirty&&s(6,w=[i.aP,$,i.aQ]),8192&t.$$.dirty&&s(7,x=[r.rewindSeekSafe,g,r.forwardSeekSafe]),16384&t.$$.dirty&&s(8,_=(0,i.H)(a,{withAdditionalZero:!0})),32768&t.$$.dirty&&s(9,b=(0,i.H)(o,{withAdditionalZero:!0}))},[n,l,k,m,y,h,w,x,_,b,t=>{r.setCurrentTimeSafe(t.detail.position*o)},u,()=>{if(d)return;const t=i.aS.findIndex((t=>t===k)),e=t===i.aS.length-1?i.aS[0]:i.aS[t+1];r.setSpeedRate(e)},r,a,o,p,c,d,v,$,function(t){i.aC[t?"unshift":"push"]((()=>{h=t,s(5,h)}))}]}class k extends i.S{constructor(t){super(),document.getElementById("svelte-1yi635k-style")||function(){var t=(0,i.W)("style");t.id="svelte-1yi635k-style",t.textContent=":root{--sk-box-podcast-height:120px;--sk-slider-progress-height:12px}body{margin:0!important}.sk-app-podcast.svelte-1yi635k.svelte-1yi635k{display:flex;position:relative;min-height:100vh;padding:0 12px;font-size:16px;font-family:var(--sk-root-font-family)!important;justify-content:center;align-items:center}.sk-copyright-wrap.svelte-1yi635k.svelte-1yi635k{position:absolute;bottom:12px;font-size:16px;line-height:1.75;color:var(--sk-color_silver)}.sk-copyright-wrap.svelte-1yi635k>a.svelte-1yi635k,.sk-copyright-wrap.svelte-1yi635k>a.svelte-1yi635k:visited,.sk-copyright-wrap.svelte-1yi635k>a.svelte-1yi635k:hover,.sk-copyright-wrap.svelte-1yi635k>a.svelte-1yi635k:focus{font-size:1em!important;text-decoration:underline!important;color:currentColor!important}.sk-grid.svelte-1yi635k.svelte-1yi635k{display:flex;width:100%;max-width:48.75em;flex-direction:column;justify-content:flex-start}.sk-cell.svelte-1yi635k.svelte-1yi635k{display:flex;width:100%;justify-content:center;flex-grow:0;align-items:center}.sk-cell.svelte-1yi635k.svelte-1yi635k:not(:last-child){margin-bottom:1.5rem}.sk-podcast__article-title.svelte-1yi635k.svelte-1yi635k{height:1.5em;font-size:1.33em;line-height:1.5;text-align:center;color:var(--sk-text-color)}.sk-podcast-progressbar.svelte-1yi635k.svelte-1yi635k{display:flex;height:1.75em;flex-direction:row;justify-content:space-between;align-items:center}.sk-podcast-progressbar__time.svelte-1yi635k.svelte-1yi635k{flex-grow:1;text-align:center;font-size:1em;font-variant-numeric:tabular-nums;color:var(--sk-color_silver)}.sk-podcast-progressbar__wrap-slider.svelte-1yi635k.svelte-1yi635k{width:69.23%;height:0.75em;flex-grow:0}.sk-podcast-control.svelte-1yi635k.svelte-1yi635k{margin-bottom:0!important}.sk-app-podcast .sk-poster__podcast{width:100%!important;height:7.5em!important}.sk-podcast-control__item{width:11.25em!important;height:11.25em!important;align-items:center;justify-content:center}.sk-podcast-control__item > svg{width:6em!important;height:6em!important}.sk-podcast-control__item:nth-child(2) > svg{width:6em!important;height:6em!important}.sk-app-podcast .sk-btn-speed-rate{width:90px!important;height:90px!important;font-size:2em!important;font-weight:bold!important}.sk-app-podcast .sk-btn-speed-rate > span{transform:scale(1)!important}@media only screen and (max-width: 769px){:root{--sk-slider-progress-height:6px}.sk-app-podcast .sk-poster__podcast{width:100%!important;height:5em!important}.sk-copyright-wrap.svelte-1yi635k.svelte-1yi635k{font-size:0.75em}.sk-cell.svelte-1yi635k.svelte-1yi635k:not(:last-child){margin-bottom:0.75rem}.sk-podcast__article-title.svelte-1yi635k.svelte-1yi635k{font-size:1em}.sk-podcast-progressbar.svelte-1yi635k.svelte-1yi635k{height:0.75em}.sk-podcast-progressbar__time.svelte-1yi635k.svelte-1yi635k{font-size:0.75em}.sk-podcast-progressbar__time.svelte-1yi635k.svelte-1yi635k:first-child{margin-left:-12px}.sk-podcast-progressbar__time.svelte-1yi635k.svelte-1yi635k:last-child{margin-right:-12px}.sk-podcast-progressbar__wrap-slider.svelte-1yi635k.svelte-1yi635k{width:71.45%;height:0.375em}.sk-podcast-control__item{width:5.625em!important;height:5.625em!important}.sk-podcast-control__item > svg{width:2.5em!important;height:2.5em!important}.sk-podcast-control__item:nth-child(2) > svg{width:3em!important;height:3em!important}.sk-app-podcast .sk-btn-speed-rate{width:90px!important;height:45px!important;font-size:1em!important;font-weight:bold!important}}",(0,i.X)(document.head,t)}(),(0,i.s)(this,t,d,p,i.t,{actions:13,currentTime:14,duration:15,progressState:0,rootStyle:1,isAmp:16,isPlay:17,isAdsCurrently:18,speedRate:2,publisherLogo:3,trackTitle:4})}}e.default=k}}]);