{"version":3,"sources":["node_modules/@babel/runtime/helpers/classCallCheck.js","node_modules/@babel/runtime/helpers/createClass.js","src/js/config/defaults.js","node_modules/@babel/runtime/helpers/defineProperty.js","src/js/util/isHelper.js","src/js/util/objectHelper.js","src/js/util/bootstrapHelper.js","src/js/util/debugHelper.js","src/js/note.js","src/js/caption.js","src/js/slide.js","src/js/exception.js","src/js/util/hide-yt.js","src/js/loader.js","src/js/util/conversionHelper.js","src/js/ui.js","src/js/progress.js","src/js/quiz.js","node_modules/@babel/runtime/helpers/typeof.js","node_modules/@babel/runtime/helpers/arrayWithHoles.js","node_modules/@babel/runtime/helpers/iterableToArrayLimit.js","node_modules/@babel/runtime/helpers/nonIterableRest.js","node_modules/@babel/runtime/helpers/slicedToArray.js","src/js/options.js","src/js/events.js","src/js/chat.js","src/js/config/plyr-defaults.js","src/js/config/wlp-defaults.js","src/js/welearnpro-video.js"],"names":["defaults","previewMode","embedVideo","user","video","thumbnail","seekable","debug","slidesync","progress","update","url","interval","alert","alertMessage","load","pageElement","videoModal","note","get","save","successMessage","failureMessage","instructionMessage","messageTimeout","delete","chat","quiz","invokeOnce","getConstructor","input","constructor","instanceOf","Boolean","isNullOrUndefined","isObject","Object","isNumber","Number","isNaN","isString","String","isBoolean","isFunction","Function","isArray","Array","isWeakMap","WeakMap","isNodeList","NodeList","isElement","Element","isTextNode","Text","isEvent","Event","isKeyboardEvent","KeyboardEvent","isCue","window","TextTrackCue","VTTCue","isTrack","TextTrack","kind","isPromise","Promise","isEmpty","length","keys","isUrl","URL","string","startsWith","hostname","e","nullOrUndefined","object","number","boolean","function","array","weakMap","nodeList","element","textNode","event","keyboardEvent","cue","track","promise","empty","extend","target","sources","source","shift","is","forEach","key","includes","assign","Bootstrap4Helper","message","timeout","$","after","setTimeout","noop","Debug","enabled","console","prototype","bind","call","log","warn","error","Note","player","courseSectionModuleId","urlParams","URLSearchParams","location","search","self","ajax","options","data","CourseSectionModuleId","async","type","success","result","addClass","remove","_bind_noteEvent","text","time","plyrPlayer","currentTime","VideoId","progressData","videoId","Message","Time","Math","floor","notify","val","noteId","NoteId","useSeekableOption","barTime","hasClass","invokeAlert","i18n","Caption","label","srclang","src","setDefault","append","Slide","syncSlide","unsyncSlide","css","color","slidePage","fancybox","getInstance","carousel","jumpTo","Exception","find","HideYt","document","addEventListener","hideYTActivated","onYouTubeIframeAPIReadyCallbacks","playerWrap","playerFrame","querySelector","tag","createElement","firstScriptTag","getElementsByTagName","parentNode","insertBefore","onPlayerStateChange","YT","PlayerState","ENDED","classList","add","PAUSED","PLAYING","push","Player","events","playerState","getPlayerState","seekTo","playVideo","querySelectorAll","onYouTubeIframeAPIReady","callback","Loader","exception","caption","loadEmbedVideo","loadVideoSources","loadCaptions","videoPlayer","attr","convertVideoToEmbedded","videoPlayerElementName","id","replaceWith","origin","userId","loadWatchedProgress","loadQuizs","i","values","videoComponent","captions","addCaption","slide","pages","page","test","testId","Convert","seconds","d","h","m","s","slice","UI","plyrElement","_renderProgressBar","_seekablePlyrProgressBar","videoDuration","duration","toTimestamp","tooltip","template","canSeek","Progress","timestamp","each","progressPercentage","cid","courseId","csm","cb","courseBatchId","jqXhr","JSON","stringify","always","statusCode","status","specialResponse","parse","getResponseHeader","isSentWithoutIssue","isAlertEnabled","Swal","fire","title","then","value","href","encodeURIComponent","QuizFlags","freeze","finished","Symbol","unfinished","Quiz","quizId","quizCourseSectionModuleId","buildProgressData","updateVideoData","vid","cs","courseSectionId","vidcsm","pause","html","modal","backdrop","keyboard","show","_enableNavigations","flag","urlOptions","params","paramObj","option","playPromise","play","catch","Events","previousQuiz","_bindEvents","ui","loader","ready","_bind_listeners","_bind_documentready","_bind_onloadeddata","_bind_timeupdate","_bind_chatEvent","wlp","plyr","config","listeners","seek","disableSeekForUnseekablePlayer","newTime","_getTargetTime","defineProperty","defaultPrevented","writable","preventDefault","on","timeToForward","off","getChat","getNote","noteArea","which","keyCode","wlpVideo","createNote","blur","oldText","updateNote","updateRepeater","initEvent","bindWlpPlayer","loadVideoData","undefined","setInterval","playing","getOptionsFromUrl","entries","command","applyOption","_typeof","max","media","currentTimestamp","isSyncSlideEnabled","hasSlide","slideSync","slideData","currentSlide","previousSlides","filter","pop","changeSlidePage","isHasQuiz","isAlreadyInvoked","isInvokeOnce","hasInvokedState","fullscreen","active","exit","invokeQuiz","Chat","insert","urlQuestion","courseChatQuestionId","urlAnswer","CourseChatQuestionId","previewModeControls","learningModeControls","learningModeSettings","previewModeSettings","plyrControls","plyrSettings","plyrWlpOptions","fallback","iosNative","youtube","playsinline","controls","showinfo","ratio","blankVideo","settings","wlpDefaultsOptions","WeLearnProPlayer","plyrOptions","initVideo","bindPlyr","Plyr","canvas","getElementById","getContext","drawImage","videoWidth","videoHeight","unloadQuiz","passConditions","watchedPercentage","watchedSeconds","languages"],"mappings":";;AAAA,SAAS,eAAe,CAAC,QAAQ,EAAE,WAAW,EAAE;EAC9C,IAAI,EAAE,QAAQ,YAAY,WAAW,CAAC,EAAE;IACtC,MAAM,IAAI,SAAS,CAAC,mCAAmC,CAAC,CAAC;GAC1D;CACF;;AAED,kBAAc,GAAG,eAAe;;ACNhC,SAAS,iBAAiB,CAAC,MAAM,EAAE,KAAK,EAAE;EACxC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;IACrC,IAAI,UAAU,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;IAC1B,UAAU,CAAC,UAAU,GAAG,UAAU,CAAC,UAAU,IAAI,KAAK,CAAC;IACvD,UAAU,CAAC,YAAY,GAAG,IAAI,CAAC;IAC/B,IAAI,OAAO,IAAI,UAAU,EAAE,UAAU,CAAC,QAAQ,GAAG,IAAI,CAAC;IACtD,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,UAAU,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC;GAC3D;CACF;;AAED,SAAS,YAAY,CAAC,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE;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ructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nmodule.exports = _classCallCheck;","function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nmodule.exports = _createClass;","/**\r\n * ====================================================================\r\n * WeLearn Pro Player: Default configuration\r\n * Default configurations with comments. Don't edit this file.\r\n * ====================================================================\r\n */\r\n\r\nconst defaults = {\r\n\r\n // This is a mode for preview video. User metadata, Progression data, Slide, Progress bar will be disabled.\r\n previewMode: false,\r\n\r\n // Set to true if the video is from link.\r\n embedVideo: false,\r\n\r\n // Credential of user\r\n user: '',\r\n\r\n // URL of this video\r\n video: '',\r\n\r\n // URL to thumbnail of the video\r\n thumbnail: '',\r\n\r\n // Determine if this player can be seek.\r\n seekable: true,\r\n\r\n // Debug mode. Show debug log in console.\r\n debug: false,\r\n\r\n // Sync slide with video\r\n slidesync: false,\r\n\r\n // Determine the URL to be Ajax with when update and load video view progress.\r\n progress: {\r\n\r\n // Configuration about how video update its progress to the server.\r\n update: {\r\n\r\n // PHP page URL for update update progress.\r\n url: 'updateURL.php',\r\n\r\n // Update interval (milliseconds)\r\n interval: 20000,\r\n\r\n // Display Bootstrap alert when player failed to update progress.\r\n alert: false,\r\n\r\n // Message that display with alert.\r\n alertMessage: 'Failed to update user\\'s progress. Please refresh to try again or continue'\r\n },\r\n\r\n load: {\r\n\r\n // PHP page URL for load user progress.\r\n url: 'retrieveURL.php',\r\n\r\n // Display Bootstrap alert when player failed to get video progress.\r\n alert: true,\r\n\r\n // Message that display with alert.\r\n alertMessage: 'ไม่สามารถรับค่าความคืบหน้าของวีดิโอได้ โปรด Refresh เพื่อลองใหม่'\r\n }\r\n },\r\n\r\n // Page elements those associate with the plugin\r\n pageElement: {\r\n\r\n // Modal that display video.\r\n videoModal: \"#modalPreviewXL\"\r\n },\r\n\r\n // Note customization\r\n note: {\r\n\r\n // Note retrieval\r\n get: {\r\n\r\n // URL to get note script\r\n url: \"getNote.php\"\r\n },\r\n\r\n // Note saving event\r\n save: {\r\n\r\n // URL to save note script\r\n url: \"updateNote.php\",\r\n\r\n // Display Bootstrap alert when note saved.\r\n alert: false,\r\n\r\n // Text when note saved successfully\r\n successMessage: \"บันทึกข้อความสำเร็จ\",\r\n\r\n // Text when note saved failed\r\n failureMessage: \"บันทึกข้อความไม่สำเร็จ กรุณาลองใหม่อีกครั้ง\",\r\n\r\n // Text when use click note area\r\n instructionMessage: \"พิมพ์ข้อความแล้วกดปุ่ม ENTER เพื่อบันทึกข้อความ...\",\r\n\r\n // Time until message get removed.\r\n messageTimeout: 5000\r\n },\r\n\r\n //Note update event\r\n update: {\r\n\r\n // URL to update note script\r\n url: \"updateNote.php\"\r\n },\r\n\r\n //Note delete event\r\n delete: {\r\n\r\n // URL to delete note script\r\n url: \"deleteNote.php\"\r\n }\r\n },\r\n\r\n // Course batch chat\r\n chat: {\r\n\r\n // Chat get\r\n get: {\r\n\r\n // URL to get chat script\r\n url: \"getChat.php\"\r\n }\r\n },\r\n\r\n // Video quiz\r\n quiz: {\r\n\r\n // Video quiz will be invoke once unless refresh the page\r\n invokeOnce: true\r\n }\r\n};\r\n\r\nexport default defaults;","function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nmodule.exports = _defineProperty;","// ==========================================================================\r\n// Type checking utils\r\n//\r\n// This module redistributed from the 'is' module of Plyr.js by Sam Potts under the MIT License (MIT)\r\n// ==========================================================================\r\n\r\nconst getConstructor = input => (input !== null && typeof input !== 'undefined' ? input.constructor : null);\r\nconst instanceOf = (input, constructor) => Boolean(input && constructor && input instanceof constructor);\r\nconst isNullOrUndefined = input => input === null || typeof input === 'undefined';\r\nconst isObject = input => getConstructor(input) === Object;\r\nconst isNumber = input => getConstructor(input) === Number && !Number.isNaN(input);\r\nconst isString = input => getConstructor(input) === String;\r\nconst isBoolean = input => getConstructor(input) === Boolean;\r\nconst isFunction = input => getConstructor(input) === Function;\r\nconst isArray = input => Array.isArray(input);\r\nconst isWeakMap = input => instanceOf(input, WeakMap);\r\nconst isNodeList = input => instanceOf(input, NodeList);\r\nconst isElement = input => instanceOf(input, Element);\r\nconst isTextNode = input => getConstructor(input) === Text;\r\nconst isEvent = input => instanceOf(input, Event);\r\nconst isKeyboardEvent = input => instanceOf(input, KeyboardEvent);\r\nconst isCue = input => instanceOf(input, window.TextTrackCue) || instanceOf(input, window.VTTCue);\r\nconst isTrack = input => instanceOf(input, TextTrack) || (!isNullOrUndefined(input) && isString(input.kind));\r\nconst isPromise = input => instanceOf(input, Promise);\r\n\r\nconst isEmpty = input =>\r\n isNullOrUndefined(input) ||\r\n ((isString(input) || isArray(input) || isNodeList(input)) && !input.length) ||\r\n (isObject(input) && !Object.keys(input).length);\r\n\r\nconst isUrl = input => {\r\n // Accept a URL object\r\n if (instanceOf(input, window.URL)) {\r\n return true;\r\n }\r\n\r\n // Must be string from here\r\n if (!isString(input)) {\r\n return false;\r\n }\r\n\r\n // Add the protocol if required\r\n let string = input;\r\n if (!input.startsWith('http://') || !input.startsWith('https://')) {\r\n string = `http://${input}`;\r\n }\r\n\r\n try {\r\n return !isEmpty(new URL(string).hostname);\r\n } catch (e) {\r\n return false;\r\n }\r\n};\r\n\r\nexport default {\r\n nullOrUndefined: isNullOrUndefined,\r\n object: isObject,\r\n number: isNumber,\r\n string: isString,\r\n boolean: isBoolean,\r\n function: isFunction,\r\n array: isArray,\r\n weakMap: isWeakMap,\r\n nodeList: isNodeList,\r\n element: isElement,\r\n textNode: isTextNode,\r\n event: isEvent,\r\n keyboardEvent: isKeyboardEvent,\r\n cue: isCue,\r\n track: isTrack,\r\n promise: isPromise,\r\n url: isUrl,\r\n empty: isEmpty,\r\n};\r\n","// ==========================================================================\r\n// Object utils\r\n//\r\n// This module redistributed from the 'objects.js' module of Plyr.js by Sam Potts under the MIT License (MIT)\r\n// ==========================================================================\r\n\r\nimport is from './isHelper';\r\n\r\n// Clone nested objects\r\nexport function cloneDeep(object) {\r\n return JSON.parse(JSON.stringify(object));\r\n}\r\n\r\n// Get a nested value in an object\r\nexport function getDeep(object, path) {\r\n return path.split('.').reduce((obj, key) => obj && obj[key], object);\r\n}\r\n\r\n// Deep extend destination object with N more objects\r\nexport function extend(target = {}, ...sources) {\r\n if (!sources.length) {\r\n return target;\r\n }\r\n\r\n const source = sources.shift();\r\n\r\n if (!is.object(source)) {\r\n return target;\r\n }\r\n\r\n Object.keys(source).forEach(key => {\r\n if (is.object(source[key])) {\r\n if (!Object.keys(target).includes(key)) {\r\n Object.assign(target, { [key]: {} });\r\n }\r\n\r\n extend(target[key], source[key]);\r\n } else {\r\n Object.assign(target, { [key]: source[key] });\r\n }\r\n });\r\n\r\n return extend(target, ...sources);\r\n}\r\n","// ==========================================================================\r\n// Bootstrap 4 Helpers for WeLearn Pro Player\r\n//\r\n// Copyrights 2019 Wewasanad Co.,Ltd.\r\n// ==========================================================================\r\n\r\n\r\n/**\r\n * Class consists of quick Bootstrap functions designed for WeLearn Pro Player\r\n */\r\nexport default class Bootstrap4Helper {\r\n /**\r\n * Create alert below the video player.\r\n * @param message - Alert message. Can be in normal string format or HTML.\r\n * @param timeout - Time to close alert in seconds.\r\n * @param element - Specify what element that alert will be inserted below (Default: insert below wlpVideo__progress-bar)\r\n */\r\n static invokeAlert(message, timeout, element = '.wlpVideo__progress-bar') {\r\n if ($('#wlpAlert').length) {\r\n $('#wlpAlert').alert('close');\r\n }\r\n\r\n $(element).after(`
${self.options.note.save.successMessage}
`);\r\n\r\n setTimeout(function () {\r\n $('#note-result').remove();\r\n }, self.options.note.save.messageTimeout);\r\n }\r\n\r\n $('#note-area').val(\"\");\r\n\r\n $('.note-detail').remove();\r\n $('li.course-head.note-head').after(result);\r\n\r\n return true;\r\n },\r\n error: function () {\r\n if (self.options.debug === true) {\r\n console.log(\"DEBUG: Note saved failed\");\r\n }\r\n\r\n $.notify(\"บันทึกข้อความผิดพลาด\", \"error\");\r\n\r\n if ($('#note-result').length) {\r\n $('#note-result').remove();\r\n }\r\n\r\n if (self.options.note.save.alert === true) {\r\n $('#note-area').after(`${self.options.note.save.failureMessage}
`);\r\n\r\n setTimeout(function () {\r\n $('#note-result').remove();\r\n }, self.options.note.save.messageTimeout);\r\n }\r\n\r\n return false;\r\n }\r\n });\r\n\r\n this.player.event._bind_noteEvent();\r\n }\r\n\r\n updateNote(noteId, message) {\r\n let self = this.player;\r\n\r\n $.ajax({\r\n url: self.options.note.update.url,\r\n data: {\r\n NoteId: noteId,\r\n CourseSectionModuleId: Number(this.courseSectionModuleId),\r\n Message: message\r\n },\r\n async: false,\r\n type: 'post',\r\n success: function (result) {\r\n if (self.options.debug === true) {\r\n console.log(\"DEBUG: Note edit successful\");\r\n }\r\n\r\n $.notify(\"แก้ไขข้อความสำเร็จ\", \"success\");\r\n\r\n $('.note-detail').remove();\r\n $('li.course-head.note-head').after(result);\r\n\r\n return true;\r\n },\r\n error: function () {\r\n if (self.options.debug === true) {\r\n console.log(\"DEBUG: Note edit failed\");\r\n }\r\n\r\n $.notify(\"แก้ไขข้อความผิดพลาด\", \"error\");\r\n\r\n return false;\r\n }\r\n });\r\n\r\n this.player.event._bind_noteEvent();\r\n }\r\n\r\n deleteNote(noteId) {\r\n let self = this.player;\r\n\r\n $.ajax({\r\n url: self.options.note.delete.url,\r\n data: {\r\n NoteId: noteId,\r\n CourseSectionModuleId: Number(this.courseSectionModuleId)\r\n },\r\n async: false,\r\n type: 'post',\r\n success: function (result) {\r\n if (self.options.debug === true) {\r\n console.log(\"DEBUG: Note edit successful\");\r\n }\r\n\r\n $.notify(\"ลบข้อความสำเร็จ\", \"success\");\r\n\r\n $('.note-detail').remove();\r\n $('li.course-head.note-head').after(result);\r\n\r\n return true;\r\n },\r\n error: function () {\r\n if (self.options.debug === true) {\r\n console.log(\"DEBUG: Note edit failed\");\r\n }\r\n\r\n $.notify(\"ลบข้อความผิดพลาด\", \"error\");\r\n\r\n return false;\r\n }\r\n });\r\n\r\n this.player.event._bind_noteEvent();\r\n }\r\n\r\n /**\r\n * Seek video to specific time.\r\n * @param time - Time of video.\r\n * @param useSeekableOption - Apply 'seekable' rule from video option.\r\n */\r\n seekTo(time, useSeekableOption = false) {\r\n let self = this.player;\r\n\r\n if (useSeekableOption) {\r\n switch (self.options.seekable) {\r\n case true:\r\n self.plyrPlayer.currentTime = time;\r\n return true;\r\n\r\n case false: // TODO : Quick changes by changing Seekable: false behavior from complete unseekable -> seekable only watched\r\n let barTime = Math.floor(time);\r\n if ($(`span.tick[data-timestamp='${barTime}']`).hasClass('watched') || (barTime === 0)) {\r\n self.plyrPlayer.currentTime = time;\r\n return true;\r\n } else {\r\n //self.invokeAlert('ขออภัย คุณสามารถกรอได้เฉพาะส่วนที่ดูไปแล้ว', 3000);\r\n self.invokeAlert($.i18n(\"seekWatched\"), 3000);\r\n return false;\r\n }\r\n\r\n default:\r\n //self.invokeAlert('ขออภัย วิดีโอนี้ถูกตั้งค่าให้ไม่สามารถกรอวิดีโอได้', 3000);\r\n self.invokeAlert($.i18n('seekDisallowed'), 3000);\r\n return false;\r\n }\r\n } else {\r\n self.plyrPlayer.currentTime = time;\r\n return true;\r\n }\r\n }\r\n}\r\n","// =====================================================\r\n// WeLearn Pro Player - Caption module\r\n// =====================================================\r\n\r\nexport default class Caption {\r\n constructor(player) {\r\n this.player = player\r\n }\r\n\r\n /**\r\n * Add caption to video (Must be load before the player finished initialize)\r\n * @param label - Language name\r\n * @param srclang - Language abbreviation\r\n * @param src - Caption file path\r\n * @param setDefault - Set to true if this language is default language or vice versa\r\n */\r\n addCaption(label, srclang, src, setDefault = false) {\r\n $(this.player.element).append('' +\r\n `