PageSourceSearch

https://learn.readle-app.com/src_app_pipes_story-title_pipe_ts-src…udio-service_service_ts.7d74bdae9ba35ecd.js

js readle-app.com collected 2026-10-01 12:09:20 UTC 2,650 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([["src_app_pipes_story-title_pipe_ts","src_app_pipes_story-title_pipe_ts-src_app_service_audio-service_audio-service_service_ts"],{33486(v,h,u){u.d(h,{i:()=>c});var _=u(20948),d=u(36124);let c=(()=>{var s;class n{constructor(t){this.languageService=t}transform(t,e,i){if(null==t||!t.titles)return"";let r,o;if(i=!!i,"origin"===e&&(r=this.languageService.origin),"target"===e&&(r=this.languageService.target),o=this.getTitle(t,r),(""===o||null==o)&&(o=this.getTitle(t,"en")),i&&o.length>60){let a=o.substring(0,60);return a=a.substring(0,Math.min(a.length,a.lastIndexOf(" "))),a+"..."}return o}getTitle(t,e){if("zh-hant"===e||"zh-Hant"===e)return this.getTitle(t,"zh-TW");if("zh-hans"===e||"zh-Hans"===e)return this.getTitle(t,"zh");for(let i=0;i<t.titles.length;i++){const r=t.titles[i];if(r.language===e){if(""===r.text)break;return r.text}}if("eng"===e)return this.getTitle(t,"en");if("zh"===e)for(let i=0;i<t.titles.length;i++){const r=t.titles[i];if("zh-hans"===r.language){if(""===r.text)break;return r.text}}return""}}return(s=n).\u0275fac=function(t){return new(t||s)(d.rXU(_.g,16))},s.\u0275pipe=d.EJ8({name:"storyTitle",type:s,pure:!0,standalone:!1}),n})()},12232(v,h,u){u.d(h,{J:()=>s});var _=u(58222),d=u(45312),c=u(66563);let s=(()=>{var n;class l{constructor(e){this.purchaseService=e,this.currentAudio=new Audio,this.audioActive=!1,this.audioFiles=new Map,this.audioArray=[],this.podcastRepeat=!1}initNewAudio(e,i,r={}){this.destroyCurrentAudio(),this.currentAudio=new Audio,this.currentAudio.src="".concat(d.c.aws.audioUrl).concat(e,"?bucket=").concat(this.purchaseService.serverRegion),this.currentAudio.onended=null==r?void 0:r.onEnded,this.currentAudio.onerror=null==r?void 0:r.onError,i&&this.currentAudio.play()}getAudioUrl(e){return"".concat(d.c.aws.audioUrl).concat(e,"?bucket=").concat(this.purchaseService.serverRegion)}setAudioSpeed(e){this.currentAudio&&(this.currentAudio.playbackRate=e)}destroyCurrentAudio(){var e;null===(e=this.currentAudio)||void 0===e||e.pause(),this.currentAudio=null}play(){var e,i;null===(e=this.currentAudio)||void 0===e||e.play(),this.audioActive=!0,null===(i=this.currentAudio)||void 0===i||i.addEventListener("ended",()=>{this.audioActive=!1})}stop(){var e;null===(e=this.currentAudio)||void 0===e||e.pause()}initAudioArray(){}destroyArticleAudio(){}}return(n=l).\u0275fac=function(e){return new(e||n)(c.KVO(_.zZ))},n.\u0275prov=c.jDH({token:n,factory:n.\u0275fac,providedIn:"root"}),l})()}}]);
2//# sourceMappingURL=src_app_pipes_story-title_pipe_ts-src_app_service_audio-service_audio-service_service_ts.7d74bdae9ba35ecd.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.