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ACnB,qCAAqC,EACrCX,IAAI,CAACY,SAAS,CAACN,WAAW,CAC3B,CAAC;MACF,CAAC,CAAC;IACH;EACD;AACD,CAAC,CAAC,C","sources":["webpack://ncmaz-fse-core/./src/post-media-player-block/utils.ts","webpack://ncmaz-fse-core/external module \"@wordpress/interactivity\"","webpack://ncmaz-fse-core/webpack/bootstrap","webpack://ncmaz-fse-core/webpack/runtime/define property getters","webpack://ncmaz-fse-core/webpack/runtime/hasOwnProperty shorthand","webpack://ncmaz-fse-core/webpack/runtime/make namespace object","webpack://ncmaz-fse-core/./src/post-media-player-block/view.ts"],"sourcesContent":["export function parseTime(seconds: number) {\n\tlet hours = Math.floor(seconds / 3600);\n\tlet minutes = Math.floor((seconds - hours * 3600) / 60);\n\tseconds = seconds - hours * 3600 - minutes * 60;\n\treturn [hours, minutes, seconds];\n}\n\nexport function formatTime(seconds: Array, totalSeconds = seconds) {\n\tlet totalWithoutLeadingZeroes = totalSeconds.slice(\n\t\ttotalSeconds.findIndex((x) => x !== 0),\n\t);\n\treturn seconds\n\t\t.slice(seconds.length - totalWithoutLeadingZeroes.length)\n\t\t.map((x) => x.toString().padStart(2, \"0\"))\n\t\t.join(\":\");\n}\n","module.exports = __WEBPACK_EXTERNAL_MODULE__wordpress_interactivity_8e89b257__;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","/**\n * WordPress dependencies\n */\nimport { store, getContext, getElement } from \"@wordpress/interactivity\";\nimport { formatTime, parseTime } from \"./utils\";\n\ninterface TPost {\n\tid: number;\n\ttitle: string;\n\thref: string;\n\tmedia?: {\n\t\t// src?: string;\n\t\turls?: {\n\t\t\t// iframe\n\t\t\tmedia_url_iframe: string;\n\t\t\t// Audio\n\t\t\taudio_url_mp3: string;\n\t\t\taudio_url_ogg: string;\n\t\t\taudio_url_wav: string;\n\t\t\taudio_url_aac: string;\n\t\t\taudio_url_webm: string;\n\t\t\t// Video\n\t\t\tvideo_url_mp4: string;\n\t\t\tvideo_url_webm: string;\n\t\t\tvideo_url_ogv: string;\n\t\t};\n\t\ttype?: string;\n\t};\n\tauthor?: {\n\t\tname: string;\n\t\thref: string;\n\t};\n\tiframe_init_url?: string | null;\n}\n\n// view.js\ninterface TContext {\n\tepisodeContext?: null | TPost;\n}\n\ninterface TState {\n\tplayerRef: HTMLAudioElement | null;\n\tsliderRef: HTMLInputElement | null;\n\tcurrentPlayingId: null | number;\n\t// Audio player state\n\tplaying: boolean;\n\tmuted: boolean;\n\tduration: number;\n\tcurrentTime: number;\n\tinitEpisode: null | TPost;\n\taudioEpisode: null | TPost;\n\tvideoEpisode: null | TPost;\n\tiframeEpisode: null | TPost;\n\tplaybackRate: number;\n\tisPlaybackRate1x: boolean;\n\tisPlaybackRate1_5x: boolean;\n\tisPlaybackRate2x: boolean;\n\t// Audio player - slider\n\tplayedWidth: string;\n\tthumbLeft: string;\n\tcurrentTimeHuman: string;\n\tdurationHuman: string;\n\taudioErrorMess: string;\n\taudioHasError: boolean;\n\t// other player state\n\tvideoPlaying: boolean;\n\tvideoMuted?: boolean;\n\tvideoVolume?: number;\n\tvideoCurrentTime?: number;\n\tvideoPlaybackRate?: number;\n\t//\n\tiframePlaying: boolean;\n\t// other player state\n\tvideoPlayerRef: HTMLVideoElement | null;\n\tisShowAudioPlayer: boolean;\n\tisShowVideoPlayer: boolean;\n\tisShowIframeInvalidUrl: boolean;\n\t//\n\tmediaIsVideo: boolean;\n\tmediaIsIframe: boolean;\n\tmediaIsAudio: boolean;\n\t//\n\tisCurrentPostPlaying: boolean;\n\t//\n\tisVideoVerticalRatio: boolean;\n\tvideoRatio: string;\n}\n\ntype TStateLocalStorage = Pick<\n\tTState,\n\t| \"initEpisode\"\n\t| \"muted\"\n\t| \"duration\"\n\t| \"currentTime\"\n\t| \"playbackRate\"\n\t| \"isShowAudioPlayer\"\n\t| \"isShowVideoPlayer\"\n\t| \"currentPlayingId\"\n\t| \"videoCurrentTime\"\n\t| \"videoPlaybackRate\"\n\t| \"videoVolume\"\n\t| \"videoMuted\"\n>;\n\nconst { state, actions } = store(\"ncmfse/post-media-player-block\", {\n\tstate: {\n\t\tget audioEpisode() {\n\t\t\tif (state.initEpisode?.media?.type !== \"AUDIO\") {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn state.initEpisode;\n\t\t},\n\t\tget videoEpisode() {\n\t\t\tif (state.initEpisode?.media?.type !== \"VIDEO\") {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn state.initEpisode;\n\t\t},\n\t\tget iframeEpisode() {\n\t\t\tif (state.initEpisode?.media?.type !== \"IFRAME\") {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn state.initEpisode;\n\t\t},\n\t\tget isShowIframeInvalidUrl() {\n\t\t\treturn (\n\t\t\t\tstate.initEpisode?.media?.type === \"IFRAME\" &&\n\t\t\t\tstate.initEpisode?.media?.urls?.media_url_iframe ===\n\t\t\t\t\t\"iframe_url_invalid\"\n\t\t\t);\n\t\t},\n\t\t// Media type\n\t\tget mediaIsIframe() {\n\t\t\treturn state.initEpisode?.media?.type === \"IFRAME\";\n\t\t},\n\t\tget mediaIsVideo() {\n\t\t\treturn state.initEpisode?.media?.type === \"VIDEO\";\n\t\t},\n\t\tget mediaIsAudio() {\n\t\t\treturn state.initEpisode?.media?.type === \"AUDIO\";\n\t\t},\n\t\t// Audio player state\n\t\tget playedWidth() {\n\t\t\treturn `calc(${(state.currentTime / state.duration) * 100}% - 0.25rem)`;\n\t\t},\n\t\tget thumbLeft() {\n\t\t\treturn `calc(${(state.currentTime / state.duration) * 100}%)`;\n\t\t},\n\t\tget currentTimeHuman() {\n\t\t\treturn formatTime(\n\t\t\t\tparseTime(state.currentTime),\n\t\t\t\tparseTime(state.duration),\n\t\t\t);\n\t\t},\n\t\tget durationHuman() {\n\t\t\treturn formatTime(parseTime(state.duration));\n\t\t},\n\t\tget isPlaybackRate1x() {\n\t\t\treturn state.playbackRate === 1;\n\t\t},\n\t\tget isPlaybackRate1_5x() {\n\t\t\treturn state.playbackRate === 1.5;\n\t\t},\n\t\tget isPlaybackRate2x() {\n\t\t\treturn state.playbackRate === 2;\n\t\t},\n\t\t//\n\t\tget isCurrentPostPlaying() {\n\t\t\tconst context = getContext();\n\t\t\tif (context.episodeContext?.id === state.currentPlayingId) {\n\t\t\t\tif (state.initEpisode?.media?.type === \"AUDIO\") {\n\t\t\t\t\treturn state.playing;\n\t\t\t\t}\n\t\t\t\tif (state.initEpisode?.media?.type === \"VIDEO\") {\n\t\t\t\t\treturn state.videoPlaying;\n\t\t\t\t}\n\t\t\t\tif (state.initEpisode?.media?.type === \"IFRAME\") {\n\t\t\t\t\treturn state.iframePlaying;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t},\n\t\tget isVideoVerticalRatio() {\n\t\t\t// if the video ratio is 9-16 or the video is an iframe youtube short video\n\t\t\treturn (\n\t\t\t\tstate.videoRatio === \"9-16\" ||\n\t\t\t\t(state.videoRatio === \"auto\" &&\n\t\t\t\t\tstate.initEpisode?.iframe_init_url?.includes(\"youtube.com/shorts\"))\n\t\t\t);\n\t\t},\n\t} as TState,\n\tactions: {\n\t\t// audio player dispatchers\n\t\tdispatchPlay() {\n\t\t\tstate.playing = true;\n\t\t},\n\t\tdispatchPause() {\n\t\t\tstate.playing = false;\n\t\t},\n\t\tdispatchDurationChange() {\n\t\t\tconst { playerRef } = state;\n\t\t\tstate.duration = Math.floor(playerRef?.duration || 0);\n\t\t},\n\t\tdispatchCurrentTimeChange() {\n\t\t\tconst { playerRef } = state;\n\t\t\tstate.currentTime = Math.floor(playerRef?.currentTime || 0);\n\t\t},\n\t\tdispatchAudioError(event: OnErrorEventHandler) {\n\t\t\t// @ts-ignore\n\t\t\tif (!event?.target?.getAttribute(\"src\")) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tstate.audioHasError = true;\n\t\t\tstate.audioErrorMess = \"An error occurred while loading the audio.\";\n\t\t},\n\n\t\t// Audio player actions\n\t\tplay() {\n\t\t\tconst { audioEpisode, playerRef, currentPlayingId } = state;\n\n\t\t\tif (audioEpisode) {\n\t\t\t\tstate.playing = true;\n\t\t\t\tif (playerRef && currentPlayingId !== audioEpisode?.id) {\n\t\t\t\t\tlet playbackRate = playerRef.playbackRate;\n\t\t\t\t\tplayerRef.load();\n\t\t\t\t\tplayerRef.pause();\n\t\t\t\t\tplayerRef.playbackRate = playbackRate;\n\t\t\t\t\tplayerRef.currentTime = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\tstate.isShowAudioPlayer = true;\n\t\t\tstate.isShowVideoPlayer = false;\n\t\t\tconst playPromise = playerRef?.play();\n\n\t\t\tif (playPromise !== undefined) {\n\t\t\t\tplayPromise\n\t\t\t\t\t.then(function () {\n\t\t\t\t\t\t// Automatic playback started!\n\t\t\t\t\t\tstate.audioHasError = false;\n\t\t\t\t\t\tstate.audioErrorMess = \"\";\n\t\t\t\t\t})\n\t\t\t\t\t.catch(function (error) {\n\t\t\t\t\t\t// Automatic playback failed.\n\t\t\t\t\t\tstate.audioErrorMess = error.message;\n\t\t\t\t\t\tstate.audioHasError = true;\n\t\t\t\t\t});\n\t\t\t}\n\n\t\t\t// add currentPlayingId\n\t\t\tstate.currentPlayingId = audioEpisode?.id || null;\n\t\t},\n\t\tpause() {\n\t\t\tconst { playerRef } = state;\n\t\t\tplayerRef?.pause();\n\t\t},\n\t\ttoggle() {\n\t\t\tactions.isPlaying() ? actions.pause() : actions.play();\n\t\t},\n\t\ttoggleMute() {\n\t\t\tstate.muted = !state.muted;\n\t\t},\n\t\tisPlaying() {\n\t\t\tconst { playerRef, audioEpisode, currentPlayingId } = state;\n\t\t\treturn audioEpisode\n\t\t\t\t? state.playing &&\n\t\t\t\t\t\tplayerRef?.currentSrc &&\n\t\t\t\t\t\tcurrentPlayingId === audioEpisode?.id\n\t\t\t\t: false;\n\t\t},\n\t\trewind10s() {\n\t\t\tconst { playerRef } = state;\n\t\t\tif (!playerRef) return;\n\t\t\tplayerRef.currentTime += -10;\n\t\t},\n\t\tforward10s() {\n\t\t\tconst { playerRef } = state;\n\t\t\tif (!playerRef) return;\n\t\t\tplayerRef.currentTime += 10;\n\t\t},\n\t\ttogglePlaybackRate() {\n\t\t\tconst { playerRef } = state;\n\t\t\tif (!playerRef) return;\n\n\t\t\tif (state.playbackRate === 1) {\n\t\t\t\tstate.playbackRate = 1.5;\n\t\t\t} else if (state.playbackRate === 1.5) {\n\t\t\t\tstate.playbackRate = 2;\n\t\t\t} else {\n\t\t\t\tstate.playbackRate = 1;\n\t\t\t}\n\t\t\tplayerRef.playbackRate = state.playbackRate;\n\t\t},\n\t\tforceEnd() {\n\t\t\tconst { playerRef } = state;\n\t\t\tstate.currentPlayingId = null;\n\t\t\tstate.initEpisode = null;\n\t\t\tstate.playing = false;\n\t\t\tstate.audioErrorMess = \"\";\n\t\t\tstate.audioHasError = false;\n\n\t\t\tif (playerRef) {\n\t\t\t\tplayerRef.currentTime = 0;\n\t\t\t\tplayerRef.pause();\n\t\t\t}\n\t\t},\n\n\t\t// Audio player - slider\n\t\thandleSeekMouseDown() {\n\t\t\tconst { playerRef } = state;\n\t\t\tplayerRef?.pause();\n\t\t},\n\t\thandleSeekChange() {\n\t\t\tconst { playerRef, sliderRef } = state;\n\t\t\tif (!playerRef?.currentSrc || !sliderRef) return;\n\t\t\tconst currentTime = playerRef.duration * parseFloat(sliderRef.value);\n\t\t\t// update the state current time\n\t\t\tstate.currentTime = Math.floor(currentTime);\n\t\t\t// Update the player's current time\n\t\t\tplayerRef.currentTime = Math.floor(currentTime);\n\t\t},\n\t\thandleSeekMouseUp() {\n\t\t\tconst { playerRef } = state;\n\t\t\tplayerRef?.play();\n\t\t},\n\n\t\t// Video