1/* 2 * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development"). 3 * This devtool is neither made for production nor for readable output files. 4 * It uses "eval()" calls to create a separate source file in the browser devtools. 5 * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/) 6 * or disable the default devtool with "devtool: false". 7 * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/). 8 */ 9(function webpackUniversalModuleDefinition(root, factory) { 10 if (typeof exports === 'object' && typeof module === 'object') 11 module.exports = factory(); 12 else if (typeof define === 'function' && define.amd) 13 define([], factory); 14 else if (typeof exports === 'object') 15 exports["oneappDownloadBridge"] = factory(); 16 else 17 root["oneappDownloadBridge"] = factory(); 18})(self, function () { 19 return /******/ (() => { // webpackBootstrap 20/******/ "use strict"; 21/******/ var __webpack_modules__ = ({ 22
23/***/ "./src/config/bridge_config.js": 24/*!*************************************!*\ 25 !*** ./src/config/bridge_config.js ***! 26 \*************************************/ 27/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 28 29 eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\nvar bridgecConfig = {\n protection: {\n requestor: 'protection',\n sec_sum: 'cHJvdGVjdGlvbjgzZjFkOWNhMWEwYzRjMmZjNTFhMzcxYzBkNzczZjc2',\n app_key: '83f1d9ca1a0c4c2fc51a371c0d773f76'\n },\n buzzebeez: {\n requestor: 'buzzebeez',\n sec_sum: 'YnV6emViZWV6ZTFkMDc0ZDU0YTk5MjQ2NTBhZjNiMzUyMjY1YTYzMDE=',\n app_key: 'e1d074d54a9924650af3b352265a6301'\n },\n ttbbank: {\n requestor: 'ttbbank',\n sec_sum: 'dHRiYmFua2JkODUwMDQ0M2JhODRmNjJhODk4OGM1ZjU3ODEyYzkw',\n app_key: 'bd8500443ba84f62a8988c5f57812c90'\n },\n mycar: {\n requestor: 'mycar',\n sec_sum: 'bXljYXJjNTVhNGIzNGYyNTY3Y2M0N2EyYWZiYzhmMDllZGI2Zg==',\n app_key: 'c55a4b34f2567cc47a2afbc8f09edb6f'\n }\n};\n\nfunction validateRequestor(requestor) {\n try {\n if (bridgecConfig[requestor]) {\n return true;\n } else {\n return false;\n }\n } catch {\n return false;\n }\n}\n\nfunction validateCheckSum(rConfig) {\n var r_sec_sum = btoa(rConfig.requestor + rConfig.app_key);\n\n if (bridgecConfig[rConfig.requestor].sec_sum == r_sec_sum) {\n return true;\n }\n\n return false;\n}\n\nfunction validateConfig(rConfig) {\n var requestor = rConfig.requestor;\n\n if (validateRequestor(requestor)) {\n if (validateCheckSum(rConfig)) {\n return true;\n }\n }\n\n return false;\n}\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (validateConfig);\n\n//# sourceURL=webpack://$/./src/config/bridge_config.js?"); 30 31 /***/ 32 }), 33
34/***/ "./src/config/bridge_content.js": 35/*!**************************************!*\ 36 !*** ./src/config/bridge_content.js ***! 37 \**************************************/ 38/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 39 40 eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\nconst commandEvent = {\n close: 'closeExweb',\n refreshToken: 'refreshToken',\n refreshTimeout: 'refreshTimeout',\n activityLog: 'ActivityLog',\n firebaseLog: 'FirebaseLog',\n crashLog: 'CrashLog',\n openBrowser: 'openUrl',\n checkProspect: 'checkProspect',\n saveMedia: 'saveMedia',\n shareMedia: 'shareMedia',\n requireToken: 'requireToken',\n disableBackButton: 'disableBackButton'\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (commandEvent);\n\n//# sourceURL=webpack://$/./src/config/bridge_content.js?"); 41 42 /***/ 43 }), 44
45/***/ "./src/config/bridge_timeout.js": 46/*!**************************************!*\ 47 !*** ./src/config/bridge_timeout.js ***! 48 \**************************************/ 49/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 50 51 eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"startTimeInterval\": () => (/* binding */ startTimeInterval),\n/* harmony export */ \"stopTimeInterval\": () => (/* binding */ stopTimeInterval)\n/* harmony export */ });\n/* harmony import */ var _bridge_content__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./bridge_content */ \"./src/config/bridge_content.js\");\n/* harmony import */ var _main_bridge_interactor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../main/bridge_interactor */ \"./src/main/bridge_interactor.js\");\n\n\nconst timeToRefresh = 4 * (60 * 1000); // 4 min\n// const timeToRefresh = 5 * 1000 // 5 sec\n\nfunction startTimeInterval() {\n return setInterval(refreshTimeout, timeToRefresh);\n}\nfunction stopTimeInterval(timerID) {\n clearInterval(timerID);\n}\n\nfunction refreshTimeout() {\n console.log('Refresh Timeout');\n (0,_main_bridge_interactor__WEBPACK_IMPORTED_MODULE_1__.callNative)(_bridge_content__WEBPACK_IMPORTED_MODULE_0__.default.refreshTimeout, '');\n}\n\n//# sourceURL=webpack://$/./src/config/bridge_timeout.js?"); 52 53 /***/ 54 }), 55
56/***/ "./src/index.js": 57/*!**********************!*\ 58 !*** ./src/index.js ***! 59 \**********************/ 60/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 61 62 eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"OneAppBridge\": () => (/* reexport safe */ _main_OneAppBridge__WEBPACK_IMPORTED_MODULE_0__.default)\n/* harmony export */ });\n/* harmony import */ var _main_OneAppBridge__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./main/OneAppBridge */ \"./src/main/OneAppBridge.js\");\n\n\n\n//# sourceURL=webpack://$/./src/index.js?"); 63 64 /***/ 65 }), 66
67/***/ "./src/main/OneAppBridge.js": 68/*!**********************************!*\ 69 !*** ./src/main/OneAppBridge.js ***! 70 \**********************************/ 71/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 72 73 eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _config_bridge_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../config/bridge_config */ \"./src/config/bridge_config.js\");\n/* harmony import */ var _config_bridge_content__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../config/bridge_content */ \"./src/config/bridge_content.js\");\n/* harmony import */ var _bridge_interactor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./bridge_interactor */ \"./src/main/bridge_interactor.js\");\n/* harmony import */ var _config_bridge_timeout__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../config/bridge_timeout */ \"./src/config/bridge_timeout.js\");\n\n\n\n\n\nfunction reject() {\n console.log('unauthorized');\n return 'unauthorized';\n}\n\nclass OneAppBridge {\n constructor(config) {\n this.config = config;\n\n if ((0,_config_bridge_config__WEBPACK_IMPORTED_MODULE_0__.default)(this.config)) {\n this.timeID = (0,_config_bridge_timeout__WEBPACK_IMPORTED_MODULE_3__.startTimeInterval)();\n }\n }\n\n close(message = '') {\n if ((0,_config_bridge_config__WEBPACK_IMPORTED_MODULE_0__.default)(this.config)) {\n (0,_config_bridge_timeout__WEBPACK_IMPORTED_MODULE_3__.stopTimeInterval)(this.timeID);\n (0,_bridge_interactor__WEBPACK_IMPORTED_MODULE_2__.callNative)(_config_bridge_content__WEBPACK_IMPORTED_MODULE_1__.default.close, message);\n } else {\n return reject();\n }\n }\n\n activityLog(message = '') {\n if ((0,_config_bridge_config__WEBPACK_IMPORTED_MODULE_0__.default)(this.config)) {\n (0,_config_bridge_timeout__WEBPACK_IMPORTED_MODULE_3__.stopTimeInterval)(this.timeID);\n (0,_bridge_interactor__WEBPACK_IMPORTED_MODULE_2__.callNative)(_config_bridge_content__WEBPACK_IMPORTED_MODULE_1__.default.activityLog, message);\n } else {\n return reject();\n }\n }\n\n firebaseLog(message = '') {\n if ((0,_config_bridge_config__WEBPACK_IMPORTED_MODULE_0__.default)(this.config)) {\n (0,_config_bridge_timeout__WEBPACK_IMPORTED_MODULE_3__.stopTimeInterval)(this.timeID);\n (0,_bridge_interactor__WEBPACK_IMPORTED_MODULE_2__.callNative)(_config_bridge_content__WEBPACK_IMPORTED_MODULE_1__.default.firebaseLog, message);\n } else {\n return reject();\n }\n }\n\n crashLog(message = '') {\n if ((0,_config_bridge_config__WEBPACK_IMPORTED_MODULE_0__.default)(this.config)) {\n (0,_config_bridge_timeout__WEBPACK_IMPORTED_MODULE_3__.stopTimeInterval)(this.timeID);\n (0,_bridge_interactor__WEBPACK_IMPORTED_MODULE_2__.callNative)(_config_bridge_content__WEBPACK_IMPORTED_MODULE_1__.default.crashLog, message);\n } else {\n return reject();\n }\n }\n\n openBrowser(message = '') {\n if ((0,_config_bridge_config__WEBPACK_IMPORTED_MODULE_0__.default)(this.config)) {\n (0,_config_bridge_timeout__WEBPACK_IMPORTED_MODULE_3__.stopTimeInterval)(this.timeID);\n (0,_bridge_interactor__WEBPACK_IMPORTED_MODULE_2__.callNative)(_config_bridge_content__WEBPACK_IMPORTED_MODULE_1__.default.openBrowser, message);\n } else {\n return reject();\n }\n }\n\n checkProspect(message = '') {\n if ((0,_config_bridge_config__WEBPACK_IMPORTED_MODULE_0__.default)(this.config)) {\n (0,_config_bridge_timeout__WEBPACK_IMPORTED_MODULE_3__.stopTimeInterval)(this.timeID);\n (0,_bridge_interactor__WEBPACK_IMPORTED_MODULE_2__.callNative)(_config_bridge_content__WEBPACK_IMPORTED_MODULE_1__.default.checkProspect, message);\n } else {\n return reject();\n }\n }\n\n saveMedia(message = '') {\n if ((0,_config_bridge_config__WEBPACK_IMPORTED_MODULE_0__.default)(this.config)) {\
73n (0,_config_bridge_timeout__WEBPACK_IMPORTED_MODULE_3__.stopTimeInterval)(this.timeID);\n (0,_bridge_interactor__WEBPACK_IMPORTED_MODULE_2__.callNative)(_config_bridge_content__WEBPACK_IMPORTED_MODULE_1__.default.saveMedia, message);\n } else {\n return reject();\n }\n }\n\n shareMedia(message = '') {\n if ((0,_config_bridge_config__WEBPACK_IMPORTED_MODULE_0__.default)(this.config)) {\n (0,_config_bridge_timeout__WEBPACK_IMPORTED_MODULE_3__.stopTimeInterval)(this.timeID);\n (0,_bridge_interactor__WEBPACK_IMPORTED_MODULE_2__.callNative)(_config_bridge_content__WEBPACK_IMPORTED_MODULE_1__.default.shareMedia, message);\n } else {\n return reject();\n }\n }\n\n oneappLogin(url, redirectFlag, action) {\n if ((0,_config_bridge_config__WEBPACK_IMPORTED_MODULE_0__.default)(this.config)) {\n const message = {\n url,\n redirection: redirectFlag,\n action,\n customerStatus: '',\n deviceNickName: '',\n emailVerifyFlag: ''\n };\n (0,_config_bridge_timeout__WEBPACK_IMPORTED_MODULE_3__.stopTimeInterval)(this.timeID);\n (0,_bridge_interactor__WEBPACK_IMPORTED_MODULE_2__.callNative)(_config_bridge_content__WEBPACK_IMPORTED_MODULE_1__.default.requireToken, message);\n } else {\n return reject();\n }\n }\n\n disableBackButton(message = '') {\n if ((0,_config_bridge_config__WEBPACK_IMPORTED_MODULE_0__.default)(this.config)) {\n (0,_config_bridge_timeout__WEBPACK_IMPORTED_MODULE_3__.stopTimeInterval)(this.timeID);\n (0,_bridge_interactor__WEBPACK_IMPORTED_MODULE_2__.callNative)(_config_bridge_content__WEBPACK_IMPORTED_MODULE_1__.default.disableBackButton, message);\n } else {\n return reject();\n }\n }\n\n}\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (OneAppBridge);\n\n//# sourceURL=webpack://$/./src/main/OneAppBridge.js?"); 74 75 /***/ 76 }), 77
78/***/ "./src/main/bridge_interactor.js": 79/*!***************************************!*\ 80 !*** ./src/main/bridge_interactor.js ***! 81 \***************************************/ 82/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 83 84 eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"callNative\": () => (/* binding */ callNative),\n/* harmony export */ \"nativeResponse\": () => (/* binding */ nativeResponse)\n/* harmony export */ });\nfunction callNative(eventName, params) {\n if (typeof window !== 'undefined') {\n if (window.JSBridge) {\n // Call Android interface\n console.log('Android call');\n window.JSBridge.callNative(eventName, JSON.stringify(params));\n } else if (window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers.jsMessageHandler) {\n // Call iOS interface\n const message = {\n eventName,\n params\n };\n console.log('iOS call');\n window.webkit.messageHandlers.jsMessageHandler.postMessage({\n message\n });\n } else {\n const message = {\n eventName,\n params\n }; // No Android or iOS interface found\n\n console.log(message);\n console.log('Call Native Function. No Android or iOS interface found.');\n }\n }\n}\nfunction nativeResponse(callback) {\n if (typeof window !== 'undefined') {\n window.webview = { ...window.webview,\n nativeResponse: response => callback(response)\n };\n }\n}\n\n//# sourceURL=webpack://$/./src/main/bridge_interactor.js?"); 85 86 /***/ 87 })
vendor: 2,709 bytes, lines 87-167
87 88 89 /******/ 90 }); 91/************************************************************************/ 92/******/ // The module cache 93/******/ var __webpack_module_cache__ = {}; 94/******/ 95/******/ // The require function 96/******/ function __webpack_require__(moduleId) { 97/******/ // Check if module is in cache 98/******/ var cachedModule = __webpack_module_cache__[moduleId]; 99/******/ if (cachedModule !== undefined) { 100/******/ return cachedModule.exports; 101 /******/ 102 } 103/******/ // Create a new module (and put it into the cache) 104/******/ var module = __webpack_module_cache__[moduleId] = { 105/******/ // no module.id needed 106/******/ // no module.loaded needed 107/******/ exports: {} 108 /******/ 109 }; 110/******/ 111/******/ // Execute the module function 112/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); 113/******/ 114/******/ // Return the exports of the module 115/******/ return module.exports; 116 /******/ 117 } 118/******/ 119/************************************************************************/ 120/******/ /* webpack/runtime/define property getters */ 121/******/ (() => { 122/******/ // define getter functions for harmony exports 123/******/ __webpack_require__.d = (exports, definition) => { 124/******/ for (var key in definition) { 125/******/ if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { 126/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); 127 /******/ 128 } 129 /******/ 130 } 131 /******/ 132 }; 133 /******/ 134 })(); 135/******/ 136/******/ /* webpack/runtime/hasOwnProperty shorthand */ 137/******/ (() => { 138/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)); 139 /******/ 140 })(); 141/******/ 142/******/ /* webpack/runtime/make namespace object */ 143/******/ (() => { 144/******/ // define __esModule on exports 145/******/ __webpack_require__.r = (exports) => { 146/******/ if (typeof Symbol !== 'undefined' && Symbol.toStringTag) { 147/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); 148 /******/ 149 } 150/******/ Object.defineProperty(exports, '__esModule', { value: true }); 151 /******/ 152 }; 153 /******/ 154 })(); 155/******/ 156/************************************************************************/ 157/******/ 158/******/ // startup 159/******/ // Load entry module and return exports 160/******/ // This entry module can't be inlined because the eval devtool is used. 161/******/ var __webpack_exports__ = __webpack_require__("./src/index.js"); 162/******/ 163/******/ return __webpack_exports__; 164 /******/ 165 })() 166 ; 167});
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.