Created
December 2, 2023 10:01
-
-
Save shailen-naidoo/3c5278b8cda4678d7d8469c0ad702e6d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 72c72 | |
| < /******/ return __webpack_require__.p + "js/" + ({"0":"chunk-common"}[chunkId]||chunkId) + "." + {"0":"85924914","2":"03c3490d","3":"e5137a23","4":"a4950095","5":"e6b49680","7":"defacd84","8":"f62513f1","9":"27403f2c","10":"e9cf8544","11":"b290f98c","12":"903b0675","13":"1114e2cb","14":"b5e8f155","15":"65a6de8f","16":"49055a02","17":"788c6d09","18":"3a8b3312","19":"ba15776f","20":"5aa4d976","21":"6c72c517","22":"aecbe9c8","23":"a7f3685b","24":"706e13dc","25":"3a22c83d","26":"90b3a20f","27":"ae02dc38","28":"6ba2a6ef","29":"55524ff5","30":"d4dd9da1","31":"201d2c70","32":"f77992d6","33":"635007d5","34":"23b69ae8","35":"0a28bb9b","36":"6f679a0b","37":"cbd8d12f","38":"b7ff18a7","39":"4079a226","40":"d9433e3a","41":"12c3f08c","42":"b6330b20","43":"5fe65129","44":"6ca7894f","45":"e0ad4fd8","46":"ce090055","47":"5b902def","48":"576a19fb","49":"22485365","50":"d2e97d09","51":"4f3d8e59","52":"f7209985","53":"a22f5026","54":"7295c026","55":"d3609d7a","56":"f4727835","57":"6cd72e87","58":"fcfe758b","59":"5ca8387d","60":"f667749c","61":"e59ef8d4","62":"aecac5b3","63":"39f512c0","64":"8aef8441","65":"31178761","66":"0abe7e72","67":"073ce4b1","68":"45818c73","69":"fd779613","70":"ac51ef48","71":"1d8fd2dc","72":"faf1e178","73":"f09cac31","74":"e7671d22","75":"1a207cbd","76":"c1832db7","77":"7e82f13c","78":"78dbcd1f","79":"b4bcc05e","80":"daf6f4ff"}[chunkId] + ".js" | |
| --- | |
| > /******/ return __webpack_require__.p + "js/" + ({"0":"chunk-common"}[chunkId]||chunkId) + "." + {"0":"88db0d0e","2":"03c3490d","3":"e5137a23","4":"a4950095","5":"e6b49680","7":"defacd84","8":"8e0b228d","9":"aa8f5968","10":"3e2b01b7","11":"4264ddf2","12":"ad764df8","13":"a61f6e68","14":"bd517efe","15":"e71ecfb0","16":"53d4e16d","17":"30c23269","18":"f462e2fd","19":"74546659","20":"1015f9ed","21":"69538f8a","22":"1666c882","23":"09871330","24":"c2db92f2","25":"f21b9ae4","26":"96d8b303","27":"b1f743b0","28":"eef4ac5a","29":"b0ff6374","30":"e3b832bc","31":"0704ed31","32":"ea7e910a","33":"8a346a78","34":"89853469","35":"e238bf23","36":"d08868f1","37":"8413aaf0","38":"66d8d677","39":"66ec0b89","40":"a10345ff","41":"f7ba6e36","42":"050fdffa","43":"f8258ce8","44":"c14fcc94","45":"398fb442","46":"37b99b87","47":"44741234","48":"2bb7d8e1","49":"6261fa18","50":"24d6e75a","51":"8184eba1","52":"5d348769","53":"0ba7e5df","54":"74fc655d","55":"f6ac783d","56":"d5c9bb90","57":"071cc90a","58":"a6a0c415","59":"75894c4c","60":"98604fd8","61":"19cfd543","62":"fd9b4c5d","63":"39f512c0","64":"8aef8441","65":"31178761","66":"0abe7e72","67":"073ce4b1","68":"96446c86","69":"fd779613","70":"ac51ef48","71":"1d8fd2dc","72":"faf1e178","73":"f09cac31","74":"e7671d22","75":"1a207cbd","76":"c1832db7","77":"7e82f13c","78":"78dbcd1f","79":"b4bcc05e","80":"daf6f4ff"}[chunkId] + ".js" | |
| 106c106 | |
| < /******/ var cssChunks = {"0":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1,"15":1,"16":1,"17":1,"18":1}; | |
| --- | |
| > /******/ var cssChunks = {"0":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1,"15":1,"16":1,"17":1,"18":1,"19":1,"20":1,"21":1,"22":1}; | |
| 110c110 | |
| < /******/ var href = "css/" + ({"0":"chunk-common"}[chunkId]||chunkId) + "." + {"0":"0a0f90dd","2":"31d6cfe0","3":"31d6cfe0","4":"31d6cfe0","5":"31d6cfe0","7":"fe59a2c1","8":"56bd29d6","9":"f6dd9973","10":"2eb2a53b","11":"ef1d83e4","12":"1658dd98","13":"41a8b9e6","14":"225e559c","15":"44bae7fc","16":"521749b2","17":"d2270a81","18":"3cac6a8f","19":"31d6cfe0","20":"31d6cfe0","21":"31d6cfe0","22":"31d6cfe0","23":"31d6cfe0","24":"31d6cfe0","25":"31d6cfe0","26":"31d6cfe0","27":"31d6cfe0","28":"31d6cfe0","29":"31d6cfe0","30":"31d6cfe0","31":"31d6cfe0","32":"31d6cfe0","33":"31d6cfe0","34":"31d6cfe0","35":"31d6cfe0","36":"31d6cfe0","37":"31d6cfe0","38":"31d6cfe0","39":"31d6cfe0","40":"31d6cfe0","41":"31d6cfe0","42":"31d6cfe0","43":"31d6cfe0","44":"31d6cfe0","45":"31d6cfe0","46":"31d6cfe0","47":"31d6cfe0","48":"31d6cfe0","49":"31d6cfe0","50":"31d6cfe0","51":"31d6cfe0","52":"31d6cfe0","53":"31d6cfe0","54":"31d6cfe0","55":"31d6cfe0","56":"31d6cfe0","57":"31d6cfe0","58":"31d6cfe0","59":"31d6cfe0","60":"31d6cfe0","61":"31d6cfe0","62":"31d6cfe0","63":"31d6cfe0","64":"31d6cfe0","65":"31d6cfe0","66":"31d6cfe0","67":"31d6cfe0","68":"31d6cfe0","69":"31d6cfe0","70":"31d6cfe0","71":"31d6cfe0","72":"31d6cfe0","73":"31d6cfe0","74":"31d6cfe0","75":"31d6cfe0","76":"31d6cfe0","77":"31d6cfe0","78":"31d6cfe0","79":"31d6cfe0","80":"31d6cfe0"}[chunkId] + ".css"; | |
| --- | |
| > /******/ var href = "css/" + ({"0":"chunk-common"}[chunkId]||chunkId) + "." + {"0":"0a0f90dd","2":"31d6cfe0","3":"31d6cfe0","4":"31d6cfe0","5":"31d6cfe0","7":"fe59a2c1","8":"c5b0407e","9":"c6106dbb","10":"56bd29d6","11":"b32b4756","12":"f6dd9973","13":"2eb2a53b","14":"ef1d83e4","15":"34935a25","16":"1658dd98","17":"41a8b9e6","18":"225e559c","19":"44bae7fc","20":"521749b2","21":"d2270a81","22":"3cac6a8f","23":"31d6cfe0","24":"31d6cfe0","25":"31d6cfe0","26":"31d6cfe0","27":"31d6cfe0","28":"31d6cfe0","29":"31d6cfe0","30":"31d6cfe0","31":"31d6cfe0","32":"31d6cfe0","33":"31d6cfe0","34":"31d6cfe0","35":"31d6cfe0","36":"31d6cfe0","37":"31d6cfe0","38":"31d6cfe0","39":"31d6cfe0","40":"31d6cfe0","41":"31d6cfe0","42":"31d6cfe0","43":"31d6cfe0","44":"31d6cfe0","45":"31d6cfe0","46":"31d6cfe0","47":"31d6cfe0","48":"31d6cfe0","49":"31d6cfe0","50":"31d6cfe0","51":"31d6cfe0","52":"31d6cfe0","53":"31d6cfe0","54":"31d6cfe0","55":"31d6cfe0","56":"31d6cfe0","57":"31d6cfe0","58":"31d6cfe0","59":"31d6cfe0","60":"31d6cfe0","61":"31d6cfe0","62":"31d6cfe0","63":"31d6cfe0","64":"31d6cfe0","65":"31d6cfe0","66":"31d6cfe0","67":"31d6cfe0","68":"31d6cfe0","69":"31d6cfe0","70":"31d6cfe0","71":"31d6cfe0","72":"31d6cfe0","73":"31d6cfe0","74":"31d6cfe0","75":"31d6cfe0","76":"31d6cfe0","77":"31d6cfe0","78":"31d6cfe0","79":"31d6cfe0","80":"31d6cfe0"}[chunkId] + ".css"; | |
| 563a564,565 | |
| > /* unused harmony export checkPermission */ | |
| > /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return stopBarcodeScan; }); | |
| 565,571c567,606 | |
| < const scanBarcode = () => new Promise((resolve, reject) => { | |
| < if (window.cordova) { | |
| < window.cordova.plugins.barcodeScanner.scan(resolve, reject); | |
| < } else { | |
| < reject('Barcode Scanner is not available. Cordova not found.'); | |
| < } | |
| < }); | |
| --- | |
| > /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return useScanBox; }); | |
| > /* harmony import */ var _capacitor_community_barcode_scanner__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("ed95"); | |
| > | |
| > const checkPermission = () => { | |
| > return new Promise((resolve, reject) => { | |
| > // check or request permission | |
| > _capacitor_community_barcode_scanner__WEBPACK_IMPORTED_MODULE_0__[/* BarcodeScanner */ "a"].checkPermission({ | |
| > force: true | |
| > }).then(res => { | |
| > if (res.granted) { | |
| > // the user granted permission | |
| > resolve(); | |
| > } else { | |
| > reject('The user declined permission for this'); | |
| > } | |
| > }, error => { | |
| > reject(error); | |
| > }); | |
| > }); | |
| > }; | |
| > const stopBarcodeScan = async () => { | |
| > await _capacitor_community_barcode_scanner__WEBPACK_IMPORTED_MODULE_0__[/* BarcodeScanner */ "a"].stopScan(); | |
| > }; | |
| > const scanBarcode = async () => { | |
| > return new Promise((resolve, reject) => { | |
| > checkPermission().then(() => { | |
| > _capacitor_community_barcode_scanner__WEBPACK_IMPORTED_MODULE_0__[/* BarcodeScanner */ "a"].startScan({}).then(result => { | |
| > resolve({ | |
| > barcode: result.content, | |
| > cancelled: false | |
| > }); | |
| > }).catch(error => { | |
| > reject(error); | |
| > }); | |
| > }).catch(permissionError => { | |
| > reject(permissionError); | |
| > }); | |
| > }); | |
| > }; | |
| > const useScanBox = true; | |
| 635,639c670,673 | |
| < return Object.entries(schema).map(([key, validators]) => { | |
| < // eslint-disable-next-line no-underscore-dangle | |
| < let _validators = validators; | |
| < if (typeof validators === 'function') { | |
| < _validators = validators(model); | |
| --- | |
| > return Object.entries(schema).map(([key, schemaValue]) => { | |
| > let validators = schemaValue; | |
| > if (typeof schemaValue === 'function') { | |
| > validators = schemaValue(model); | |
| 641c675,678 | |
| < return _validators.every(validator => validator(model[key])); | |
| --- | |
| > if (typeof validators === 'object') { | |
| > return Object.values(validators).every(validator => validator(model[key])); | |
| > } | |
| > return validators.every(validator => validator(model[key])); | |
| 683c720 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(37)]).then(__webpack_require__.bind(null, "e329")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(39)]).then(__webpack_require__.bind(null, "e329")) | |
| 686c723 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(48)]).then(__webpack_require__.bind(null, "3df7")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(50)]).then(__webpack_require__.bind(null, "3df7")) | |
| 689c726 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(36)]).then(__webpack_require__.bind(null, "ffa9")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(38)]).then(__webpack_require__.bind(null, "ffa9")) | |
| 692c729 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(38)]).then(__webpack_require__.bind(null, "9e36")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(40)]).then(__webpack_require__.bind(null, "9e36")) | |
| 695c732 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(39)]).then(__webpack_require__.bind(null, "75f1")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(41)]).then(__webpack_require__.bind(null, "75f1")) | |
| 698c735 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(49)]).then(__webpack_require__.bind(null, "9752")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(51)]).then(__webpack_require__.bind(null, "9752")) | |
| 701c738 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(46)]).then(__webpack_require__.bind(null, "6f54")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(48)]).then(__webpack_require__.bind(null, "6f54")) | |
| 704c741 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(35)]).then(__webpack_require__.bind(null, "0f47")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(37)]).then(__webpack_require__.bind(null, "0f47")) | |
| 707c744 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(43)]).then(__webpack_require__.bind(null, "ed08")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(45)]).then(__webpack_require__.bind(null, "ed08")) | |
| 710c747 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(42)]).then(__webpack_require__.bind(null, "ab1c")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(44)]).then(__webpack_require__.bind(null, "ab1c")) | |
| 713c750 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(34)]).then(__webpack_require__.bind(null, "9554")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(9)]).then(__webpack_require__.bind(null, "9554")) | |
| 716c753 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(44)]).then(__webpack_require__.bind(null, "5549")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(46)]).then(__webpack_require__.bind(null, "5549")) | |
| 719c756 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(50)]).then(__webpack_require__.bind(null, "561f")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(52)]).then(__webpack_require__.bind(null, "561f")) | |
| 724c761 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(47)]).then(__webpack_require__.bind(null, "1221")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(49)]).then(__webpack_require__.bind(null, "1221")) | |
| 727c764 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(40)]).then(__webpack_require__.bind(null, "c41f")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(42)]).then(__webpack_require__.bind(null, "c41f")) | |
| 732c769 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(1), __webpack_require__.e(0), __webpack_require__.e(33)]).then(__webpack_require__.bind(null, "5122")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(1), __webpack_require__.e(0), __webpack_require__.e(36)]).then(__webpack_require__.bind(null, "5122")) | |
| 735c772 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(41)]).then(__webpack_require__.bind(null, "b1e6")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(43)]).then(__webpack_require__.bind(null, "b1e6")) | |
| 738c775 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(8)]).then(__webpack_require__.bind(null, "093e")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(10)]).then(__webpack_require__.bind(null, "093e")) | |
| 741c778 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(45)]).then(__webpack_require__.bind(null, "81a0")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(47)]).then(__webpack_require__.bind(null, "81a0")) | |
| 854c891 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(27)]).then(__webpack_require__.bind(null, "6418")), | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(8)]).then(__webpack_require__.bind(null, "6418")), | |
| 858c895 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(28)]).then(__webpack_require__.bind(null, "1d0e")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(31)]).then(__webpack_require__.bind(null, "1d0e")) | |
| 861c898 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(30)]).then(__webpack_require__.bind(null, "69a5")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(33)]).then(__webpack_require__.bind(null, "69a5")) | |
| 864c901 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(29)]).then(__webpack_require__.bind(null, "488c")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(32)]).then(__webpack_require__.bind(null, "488c")) | |
| 2095a2133,2135 | |
| > // EXTERNAL MODULE: ./node_modules/@capacitor/app/dist/esm/index.js + 1 modules | |
| > var esm = __webpack_require__("2ad9"); | |
| > | |
| 2099c2139 | |
| < // EXTERNAL MODULE: ./src/services/index.js + 15 modules | |
| --- | |
| > // EXTERNAL MODULE: ./src/services/index.js + 16 modules | |
| 2113c2153,2155 | |
| < const hydrateStores = () => storesToPersistHydrate.forEach(store => store.hydrateStore()); | |
| --- | |
| > const hydrateStores = async () => { | |
| > await Promise.all(storesToPersistHydrate.map(store => store.hydrateStore())); | |
| > }; | |
| 2124a2167,2168 | |
| > | |
| > | |
| 2132,2138c2176,2186 | |
| < // TODO: Kill this once old reg flow is removed | |
| < onPause: vm => { | |
| < return state_helper["b" /* stateHelper */].saveFullState(vm.$store.state); | |
| < }, | |
| < // TODO: Kill this once old reg flow is removed | |
| < onResume: async vm => { | |
| < return vm.$store.commit('registerCustomerModel/init', await state_helper["b" /* stateHelper */].registerCustomerModelState()); | |
| --- | |
| > onRestoreAppResult: async (vm, restoredResult) => { | |
| > if (restoredResult.methodName === 'getPhoto') { | |
| > await hydrateStores(); | |
| > Store_store["a" /* registerClientStore */].pendingPhoto.webPath = restoredResult.data.webPath; | |
| > await vm.$router.push(state_helper["a" /* routeManager */].lastSavedRoute); | |
| > vm.$snackbar.asBanner({ | |
| > message: LOW_MEMORY_WARNING_MESSAGE | |
| > }); | |
| > await services["a" /* AuthService */].whoAmI(); | |
| > throw Error('Low Memory: App Restarted'); | |
| > } | |
| 2140a2189,2193 | |
| > defineProperty_default()(AppViewModel, "mounted", vm => { | |
| > esm["a" /* App */].addListener('appRestoredResult', async restoredResult => { | |
| > await vm.onRestoreAppResult(restoredResult); | |
| > }); | |
| > }); | |
| 2145d2197 | |
| < await vm.onPause(); | |
| 2147,2162d2198 | |
| < }, | |
| < resume: async (vm, event) => { | |
| < /* | |
| < * pendingResult api documentation | |
| < * https://cordova.apache.org/docs/en/10.x/guide/platforms/android/#retrieving-plugin-callback-results-cordova-android-510 | |
| < * */ | |
| < if (event.pendingResult) { | |
| < await AppViewModel.methods.onResume(vm); | |
| < await hydrateStores(); | |
| < await vm.$router.push(state_helper["a" /* routeManager */].lastSavedRoute); | |
| < vm.$snackbar.asBanner({ | |
| < message: LOW_MEMORY_WARNING_MESSAGE | |
| < }); | |
| < await services["a" /* AuthService */].whoAmI(); | |
| < throw Error('Low Memory: App Restarted'); | |
| < } | |
| 2244c2280 | |
| < component: () => __webpack_require__.e(/* import() */ 19).then(__webpack_require__.bind(null, "7240")), | |
| --- | |
| > component: () => __webpack_require__.e(/* import() */ 23).then(__webpack_require__.bind(null, "7240")), | |
| 2256c2292 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(1), __webpack_require__.e(20)]).then(__webpack_require__.bind(null, "79b7")), | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(1), __webpack_require__.e(24)]).then(__webpack_require__.bind(null, "79b7")), | |
| 2264c2300 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(32)]).then(__webpack_require__.bind(null, "cfe5")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(35)]).then(__webpack_require__.bind(null, "cfe5")) | |
| 2268c2304 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(31)]).then(__webpack_require__.bind(null, "5596")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(34)]).then(__webpack_require__.bind(null, "5596")) | |
| 2274c2310 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(25)]).then(__webpack_require__.bind(null, "6239")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(29)]).then(__webpack_require__.bind(null, "6239")) | |
| 2278c2314 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(24)]).then(__webpack_require__.bind(null, "f408")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(28)]).then(__webpack_require__.bind(null, "f408")) | |
| 2282c2318 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(1), __webpack_require__.e(51)]).then(__webpack_require__.bind(null, "142b")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(1), __webpack_require__.e(53)]).then(__webpack_require__.bind(null, "142b")) | |
| 2290c2326 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(56)]).then(__webpack_require__.bind(null, "786f")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(11)]).then(__webpack_require__.bind(null, "786f")) | |
| 2298c2334 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(12)]).then(__webpack_require__.bind(null, "b6a6")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(16)]).then(__webpack_require__.bind(null, "b6a6")) | |
| 2326c2362 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(60)]).then(__webpack_require__.bind(null, "a0f0")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(61)]).then(__webpack_require__.bind(null, "a0f0")) | |
| 2334c2370 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(61)]).then(__webpack_require__.bind(null, "6200")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(62)]).then(__webpack_require__.bind(null, "6200")) | |
| 2342c2378 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(52)]).then(__webpack_require__.bind(null, "077a")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(54)]).then(__webpack_require__.bind(null, "077a")) | |
| 2346c2382 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(54)]).then(__webpack_require__.bind(null, "53dc")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(56)]).then(__webpack_require__.bind(null, "53dc")) | |
| 2350c2386 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(53)]).then(__webpack_require__.bind(null, "f7ec")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(55)]).then(__webpack_require__.bind(null, "f7ec")) | |
| 2354c2390 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(57)]).then(__webpack_require__.bind(null, "98b6")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(58)]).then(__webpack_require__.bind(null, "98b6")) | |
| 2362c2398 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(62)]).then(__webpack_require__.bind(null, "2abb")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(15)]).then(__webpack_require__.bind(null, "2abb")) | |
| 2366c2402 | |
| < component: () => __webpack_require__.e(/* import() */ 23).then(__webpack_require__.bind(null, "38d3")) | |
| --- | |
| > component: () => __webpack_require__.e(/* import() */ 27).then(__webpack_require__.bind(null, "38d3")) | |
| 2370c2406 | |
| < component: () => __webpack_require__.e(/* import() */ 26).then(__webpack_require__.bind(null, "8ba9")), | |
| --- | |
| > component: () => __webpack_require__.e(/* import() */ 30).then(__webpack_require__.bind(null, "8ba9")), | |
| 2380c2416 | |
| < component: () => __webpack_require__.e(/* import() */ 22).then(__webpack_require__.bind(null, "2599")) | |
| --- | |
| > component: () => __webpack_require__.e(/* import() */ 26).then(__webpack_require__.bind(null, "2599")) | |
| 2393c2429 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(58)]).then(__webpack_require__.bind(null, "895e")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(59)]).then(__webpack_require__.bind(null, "895e")) | |
| 2397c2433 | |
| < component: () => __webpack_require__.e(/* import() */ 21).then(__webpack_require__.bind(null, "eb2f")) | |
| --- | |
| > component: () => __webpack_require__.e(/* import() */ 25).then(__webpack_require__.bind(null, "eb2f")) | |
| 2401c2437 | |
| < component: () => __webpack_require__.e(/* import() */ 55).then(__webpack_require__.bind(null, "eb56")) | |
| --- | |
| > component: () => __webpack_require__.e(/* import() */ 57).then(__webpack_require__.bind(null, "eb56")) | |
| 2409c2445 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(11)]).then(__webpack_require__.bind(null, "6587")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(14)]).then(__webpack_require__.bind(null, "6587")) | |
| 2414c2450 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(14)]).then(__webpack_require__.bind(null, "e190")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(18)]).then(__webpack_require__.bind(null, "e190")) | |
| 2418c2454 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(1), __webpack_require__.e(0), __webpack_require__.e(10)]).then(__webpack_require__.bind(null, "e8c8")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(1), __webpack_require__.e(0), __webpack_require__.e(13)]).then(__webpack_require__.bind(null, "e8c8")) | |
| 2423c2459 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(17)]).then(__webpack_require__.bind(null, "2c37")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(21)]).then(__webpack_require__.bind(null, "2c37")) | |
| 2428c2464 | |
| < component: () => __webpack_require__.e(/* import() */ 18).then(__webpack_require__.bind(null, "5dde")) | |
| --- | |
| > component: () => __webpack_require__.e(/* import() */ 22).then(__webpack_require__.bind(null, "5dde")) | |
| 2437c2473 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(1), __webpack_require__.e(0), __webpack_require__.e(13)]).then(__webpack_require__.bind(null, "0139")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(1), __webpack_require__.e(0), __webpack_require__.e(17)]).then(__webpack_require__.bind(null, "0139")) | |
| 2442c2478 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(15)]).then(__webpack_require__.bind(null, "3355")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(19)]).then(__webpack_require__.bind(null, "3355")) | |
| 2447c2483 | |
| < component: () => __webpack_require__.e(/* import() */ 16).then(__webpack_require__.bind(null, "35ce")) | |
| --- | |
| > component: () => __webpack_require__.e(/* import() */ 20).then(__webpack_require__.bind(null, "35ce")) | |
| 2457c2493 | |
| < component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(59)]).then(__webpack_require__.bind(null, "e819")) | |
| --- | |
| > component: () => Promise.all(/* import() */[__webpack_require__.e(0), __webpack_require__.e(60)]).then(__webpack_require__.bind(null, "e819")) | |
| 2462c2498 | |
| < component: () => __webpack_require__.e(/* import() */ 9).then(__webpack_require__.bind(null, "f17e")) | |
| --- | |
| > component: () => __webpack_require__.e(/* import() */ 12).then(__webpack_require__.bind(null, "f17e")) | |
| 2975,2977d3010 | |
| < // EXTERNAL MODULE: ./src/hardware/BarcodeScanner.js | |
| < var BarcodeScanner = __webpack_require__("0921"); | |
| < | |
| 3057a3091,3093 | |
| > // EXTERNAL MODULE: ./src/hardware/BarcodeScanner.js | |
| > var BarcodeScanner = __webpack_require__("0921"); | |
| > | |
| 3439c3475 | |
| < commit('setDeviceBarcode', result.text); | |
| --- | |
| > commit('setDeviceBarcode', result.barcode); | |
| 4918c4954 | |
| < var esm = __webpack_require__("688d"); | |
| --- | |
| > var tracing_esm = __webpack_require__("688d"); | |
| 4930a4967 | |
| > const sentryStage = "DEV" || false; | |
| 4935c4972 | |
| < integrations: [new esm["a" /* BrowserTracing */]({ | |
| --- | |
| > integrations: [new tracing_esm["a" /* BrowserTracing */]({ | |
| 4938c4975 | |
| < release: `lumkani-quasar-app-${"DEV".toLowerCase()}@${"3.3.0-rc"}` | |
| --- | |
| > release: `lumkani-quasar-app-${sentryStage}@${"3.6.0-dev"}` | |
| 4942c4979 | |
| < scope.setExtra('appVersion', "3.3.0-rc"); | |
| --- | |
| > scope.setExtra('appVersion', "3.6.0-dev"); | |
| 5556,5561d5592 | |
| < // EXTERNAL MODULE: ./node_modules/@lumkani/view-model-api/dist/view-model-api.esm.js | |
| < var view_model_api_esm = __webpack_require__("5b3e"); | |
| < | |
| < // EXTERNAL MODULE: ./node_modules/vueventjs/dist/vuevent.esm.js | |
| < var vuevent_esm = __webpack_require__("c531"); | |
| < | |
| 5640,5648c5671,5676 | |
| < let cp = () => store[key]; | |
| < if (typeof store[key] !== 'object' || store[key] == null) { | |
| < cp = { | |
| < get: cp, | |
| < set: value => { | |
| < store[key] = value; | |
| < } | |
| < }; | |
| < } | |
| --- | |
| > const cp = { | |
| > get: () => store[key], | |
| > set: value => { | |
| > store[key] = value; | |
| > } | |
| > }; | |
| 5684a5713,5870 | |
| > // EXTERNAL MODULE: ./src/vuevent/vuevent.js | |
| > var vuevent = __webpack_require__("c4f6"); | |
| > | |
| > // CONCATENATED MODULE: ./src/view-model-api/view-model-api.js | |
| > const addLifecycleHook = (vm, hookName, hook) => { | |
| > if (Array.isArray(vm.$options[hookName])) { | |
| > // eslint-disable-next-line no-param-reassign | |
| > vm.$options[hookName] = [...vm.$options[hookName], async () => hook(vm)]; | |
| > } else { | |
| > // eslint-disable-next-line no-param-reassign | |
| > vm.$options[hookName] = [async () => hook(vm)]; | |
| > } | |
| > }; | |
| > const addWatchers = (vm, watchers) => { | |
| > const watchKeys = Object.keys(watchers); | |
| > if (vm.$options.watch === undefined) { | |
| > // eslint-disable-next-line no-param-reassign | |
| > vm.$options.watch = {}; | |
| > } | |
| > for (const key of watchKeys) { | |
| > const originalWatcher = vm.$options.watch[key]; | |
| > let array = []; | |
| > if (originalWatcher !== undefined) { | |
| > if (!Array.isArray(originalWatcher)) { | |
| > array = [originalWatcher]; | |
| > } else { | |
| > array = originalWatcher; | |
| > } | |
| > } | |
| > | |
| > // eslint-disable-next-line no-param-reassign | |
| > vm.$options.watch[key] = [(...args) => watchers[key](vm, ...args), ...array]; | |
| > } | |
| > }; | |
| > const convertClassViewModelToOptionsAPI = vm => { | |
| > const { | |
| > ViewModel = {} | |
| > } = vm.$options; | |
| > const { | |
| > data = () => ({}), | |
| > methods = {}, | |
| > computed = {}, | |
| > watch = {}, | |
| > beforeCreate = () => {}, | |
| > created = () => {}, | |
| > beforeMount = () => {}, | |
| > mounted = () => {}, | |
| > beforeUpdate = () => {}, | |
| > updated = () => {}, | |
| > beforeDestroy = () => {}, | |
| > destroyed = () => {}, | |
| > activated = () => {}, | |
| > deactivated = () => {}, | |
| > errorCaptured = () => {} | |
| > } = ViewModel; | |
| > beforeCreate(vm); | |
| > if (Object.keys(ViewModel).length) { | |
| > const newMethods = Object.keys(methods).reduce((result, val) => ({ | |
| > ...result, | |
| > [val]: (...args) => methods[val](vm, ...args) | |
| > }), {}); | |
| > const newComputedProps = Object.keys(computed).reduce((result, val) => { | |
| > const obj = { | |
| > ...result, | |
| > [val]: (...args) => computed[val](vm, ...args) | |
| > }; | |
| > if (typeof computed[val] === 'object' && computed[val] !== null) { | |
| > obj[val] = { | |
| > set: (...args) => computed[val].set(vm, ...args), | |
| > get: (...args) => computed[val].get(vm, ...args) | |
| > }; | |
| > } | |
| > return obj; | |
| > }, {}); | |
| > // eslint-disable-next-line no-param-reassign | |
| > vm.$options.methods = { | |
| > ...vm.$options.methods, | |
| > ...newMethods | |
| > }; | |
| > // eslint-disable-next-line no-param-reassign | |
| > vm.$options.computed = { | |
| > ...vm.$options.computed, | |
| > ...newComputedProps | |
| > }; | |
| > addLifecycleHook(vm, 'created', created); | |
| > addLifecycleHook(vm, 'beforeMount', beforeMount); | |
| > addLifecycleHook(vm, 'mounted', mounted); | |
| > addLifecycleHook(vm, 'beforeUpdate', beforeUpdate); | |
| > addLifecycleHook(vm, 'updated', updated); | |
| > addLifecycleHook(vm, 'beforeDestroy', beforeDestroy); | |
| > addLifecycleHook(vm, 'destroyed', destroyed); | |
| > addLifecycleHook(vm, 'activated', activated); | |
| > addLifecycleHook(vm, 'deactivated', deactivated); | |
| > addLifecycleHook(vm, 'errorCaptured', errorCaptured); | |
| > const { | |
| > data: rootData = () => ({}) | |
| > } = vm.$options; | |
| > | |
| > // eslint-disable-next-line no-param-reassign | |
| > vm.$options.data = () => ({ | |
| > ...rootData.apply(vm), | |
| > ...data(vm) | |
| > }); | |
| > addWatchers(vm, watch); | |
| > } | |
| > }; | |
| > const view_model_api_plugin = { | |
| > install(vue, options = {}) { | |
| > if (view_model_api_plugin.install.installed) { | |
| > return; | |
| > } | |
| > view_model_api_plugin.install.installed = true; | |
| > const { | |
| > modifiers = [] | |
| > } = options; | |
| > vue.mixin({ | |
| > beforeCreate() { | |
| > const { | |
| > ViewModel = {} | |
| > } = this.$options; | |
| > const vm = this; | |
| > for (const modifier of modifiers) { | |
| > modifier({ | |
| > vm, | |
| > ViewModel, | |
| > addToData(data) { | |
| > const { | |
| > data: rootData = () => ({}) | |
| > } = vm.$options; | |
| > vm.$options.data = () => ({ | |
| > ...rootData.apply(vm), | |
| > ...data | |
| > }); | |
| > }, | |
| > addToMethods(methods) { | |
| > vm.$options.methods = { | |
| > ...vm.$options.methods, | |
| > ...methods | |
| > }; | |
| > }, | |
| > addToComputed(computed) { | |
| > vm.$options.computed = { | |
| > ...vm.$options.computed, | |
| > ...computed | |
| > }; | |
| > } | |
| > }); | |
| > } | |
| > convertClassViewModelToOptionsAPI(vm); | |
| > } | |
| > }); | |
| > } | |
| > }; | |
| > const ViewModel = view_model_api_plugin; | |
| > if (window !== 'undefined') { | |
| > window.ViewModel = ViewModel; | |
| > } | |
| > | |
| 5696c5882 | |
| < vue_runtime_esm["a" /* default */].use(view_model_api_esm["a" /* ViewModel */], { | |
| --- | |
| > vue_runtime_esm["a" /* default */].use(ViewModel, { | |
| 5699c5885 | |
| < vue_runtime_esm["a" /* default */].use(vuevent_esm["a" /* Vuevent */]); | |
| --- | |
| > vue_runtime_esm["a" /* default */].use(vuevent["a" /* Vuevent */]); | |
| 7298d7483 | |
| < delete this.lifeAssuredType; | |
| 7922c8107 | |
| < const text = `AgentApp/${"3.3.0-rc"} ${quasar_src_plugins_Platform_js__WEBPACK_IMPORTED_MODULE_2__[/* default */ "b"].is.name}/${quasar_src_plugins_Platform_js__WEBPACK_IMPORTED_MODULE_2__[/* default */ "b"].is.version} ${quasar_src_plugins_Platform_js__WEBPACK_IMPORTED_MODULE_2__[/* default */ "b"].is.platform}`; | |
| --- | |
| > const text = `AgentApp/${"3.6.0-dev"} ${quasar_src_plugins_Platform_js__WEBPACK_IMPORTED_MODULE_2__[/* default */ "b"].is.name}/${quasar_src_plugins_Platform_js__WEBPACK_IMPORTED_MODULE_2__[/* default */ "b"].is.version} ${quasar_src_plugins_Platform_js__WEBPACK_IMPORTED_MODULE_2__[/* default */ "b"].is.platform}`; | |
| 8392c8577 | |
| < const text = `AgentApp/${"3.3.0-rc"} ${Platform["b" /* default */].is.name}/${Platform["b" /* default */].is.version} ${Platform["b" /* default */].is.platform}`; | |
| --- | |
| > const text = `AgentApp/${"3.6.0-dev"} ${Platform["b" /* default */].is.name}/${Platform["b" /* default */].is.version} ${Platform["b" /* default */].is.platform}`; | |
| 8494a8680 | |
| > __webpack_require__.d(__webpack_exports__, "idPassportValidationRuleMessages", function() { return /* binding */ idPassportValidationRuleMessages; }); | |
| 8501a8688,8691 | |
| > // EXTERNAL MODULE: ./node_modules/moment/moment.js | |
| > var moment = __webpack_require__("c1df"); | |
| > var moment_default = /*#__PURE__*/__webpack_require__.n(moment); | |
| > | |
| 8526a8717 | |
| > | |
| 8573,8575c8764,8780 | |
| < const idPassportNumber = model => { | |
| < if (model.idType === constants["d" /* ID_TYPE_ENUM */].NO_ID.value) { | |
| < return []; | |
| --- | |
| > const validateLuhnDigit = idPassportNumber => { | |
| > const DOUBLE_LIMIT = 9; | |
| > const MODULUS_DIVISOR = 10; | |
| > let sum = 0; | |
| > let shouldDouble = false; | |
| > for (let i = idPassportNumber.length - 1; i >= 0; i--) { | |
| > let digit = parseInt(idPassportNumber[i], 10); | |
| > if (shouldDouble) { | |
| > // eslint-disable-next-line no-magic-numbers | |
| > digit *= 2; | |
| > if (digit > DOUBLE_LIMIT) { | |
| > digit -= DOUBLE_LIMIT; // Equivalent to summing the two digits of the double-digit number | |
| > } | |
| > } | |
| > | |
| > sum += digit; | |
| > shouldDouble = !shouldDouble; | |
| 8577,8579c8782,8787 | |
| < const validations = [validators["required"], Object(validators["minLength"])(lumkani["a" /* default */].MAX_ID_NUMBER_LENGTH), Object(validators["maxLength"])(lumkani["a" /* default */].MAX_ID_NUMBER_LENGTH), validators["alphaNum"]]; | |
| < if (model.idType === constants["d" /* ID_TYPE_ENUM */].PASSPORT.value) { | |
| < validations[1] = Object(validators["minLength"])(lumkani["a" /* default */].MIN_ID_NUMBER_LENGTH); | |
| --- | |
| > const remainder = (MODULUS_DIVISOR - sum % MODULUS_DIVISOR) % MODULUS_DIVISOR; | |
| > return remainder === 0; | |
| > }; | |
| > const isValidSAIdFormat = value => { | |
| > if (!value) { | |
| > return false; | |
| 8581c8789,8847 | |
| < return validations; | |
| --- | |
| > const DATE_OF_BIRTH_LENGTH = 6; | |
| > const dobString = value.substring(0, DATE_OF_BIRTH_LENGTH); | |
| > const dob = moment_default()(dobString, lumkani["a" /* default */].DATE_OF_BIRTH_SA_ID_FORMAT); | |
| > if (!dob.isValid()) { | |
| > return false; | |
| > } | |
| > const ID_NUMBER_POSITION = 10; | |
| > const RADIX_BASE_10 = 10; | |
| > const citizenOrPermanentResident = parseInt(value.charAt(ID_NUMBER_POSITION), RADIX_BASE_10); | |
| > if (!lumkani["a" /* default */].SA_ID_CITIZEN_OR_PERMANENT_RESIDENT_VALUES.has(citizenOrPermanentResident)) { | |
| > return false; | |
| > } | |
| > return validateLuhnDigit(value); | |
| > }; | |
| > const isDateOfBirthPresent = (value, dob) => { | |
| > return !!dob; | |
| > }; | |
| > const doesIdStartWithDateOfBirth = (idPassportNumber, dob) => { | |
| > if (!idPassportNumber || !dob) { | |
| > return false; | |
| > } | |
| > return idPassportNumber.startsWith(dob); | |
| > }; | |
| > const idPassportValidationRuleMessages = idPassportNumber => { | |
| > /* eslint-disable no-confusing-arrow */ | |
| > return [() => idPassportNumber.required === false ? 'This field is required' : true, () => idPassportNumber.minLength === false ? 'The text is too short' : true, () => idPassportNumber.maxLength === false ? 'The text is too long' : true, () => idPassportNumber.numbersOnly === false ? 'The text should only contain numbers' : true, () => idPassportNumber.alphaNum === false ? 'The text should only contain numbers and letters' : true, () => idPassportNumber.isDateOfBirthPresent === false ? 'The Date of Birth field is also required' : true, () => idPassportNumber.doesIdStartWithDateOfBirth === false ? 'The Date of Birth field does not match the ID Number' : true, () => idPassportNumber.isValidSAIdFormat === false ? 'Not a valid South African ID number' : true]; | |
| > }; | |
| > const idPassportNumber = model => { | |
| > switch (model.idType) { | |
| > case constants["d" /* ID_TYPE_ENUM */].NO_ID.value: | |
| > return {}; | |
| > case constants["d" /* ID_TYPE_ENUM */].ID_DOCUMENT.value: | |
| > { | |
| > const { | |
| > dateOfBirth | |
| > } = model; | |
| > const dob = moment_default()(dateOfBirth, lumkani["a" /* default */].DATE_FORMAT).format(lumkani["a" /* default */].DATE_OF_BIRTH_SA_ID_FORMAT); | |
| > return { | |
| > required: validators["required"], | |
| > minLength: Object(validators["minLength"])(lumkani["a" /* default */].MAX_ID_NUMBER_LENGTH), | |
| > maxLength: Object(validators["maxLength"])(lumkani["a" /* default */].MAX_ID_NUMBER_LENGTH), | |
| > numbersOnly: numbersOnlyFilter, | |
| > isDateOfBirthPresent: value => isDateOfBirthPresent(value, dateOfBirth), | |
| > doesIdStartWithDateOfBirth: value => doesIdStartWithDateOfBirth(value, dob), | |
| > isValidSAIdFormat | |
| > }; | |
| > } | |
| > case constants["d" /* ID_TYPE_ENUM */].PASSPORT.value: | |
| > return { | |
| > required: validators["required"], | |
| > minLength: Object(validators["minLength"])(lumkani["a" /* default */].MIN_ID_NUMBER_LENGTH), | |
| > maxLength: Object(validators["maxLength"])(lumkani["a" /* default */].MAX_ID_NUMBER_LENGTH), | |
| > alphaNum: validators["alphaNum"] | |
| > }; | |
| > default: | |
| > return { | |
| > required: validators["required"] | |
| > }; | |
| > } | |
| 8610a8877,8880 | |
| > pendingPhoto: { | |
| > name: null, | |
| > webPath: null | |
| > }, | |
| 9342,9348c9612,9613 | |
| < // CONCATENATED MODULE: ./src/helpers/file-reader.js | |
| < const readAsDataURL = file => new Promise((resolve, reject) => { | |
| < const reader = new FileReader(); | |
| < reader.onload = event => resolve(event.target.result); | |
| < reader.onerror = event => reject(event.target.error); | |
| < reader.readAsDataURL(file); | |
| < }); | |
| --- | |
| > // EXTERNAL MODULE: ./node_modules/@capacitor/camera/dist/esm/index.js | |
| > var esm = __webpack_require__("fecd"); | |
| 9353,9360c9618,9629 | |
| < navigator.camera.getPicture(fileSystemPath => { | |
| < window.resolveLocalFileSystemURL(fileSystemPath, fileEntry => { | |
| < fileEntry.file(file => readAsDataURL(file).then(resolve)); | |
| < }, error => { | |
| < reject(error); | |
| < }); | |
| < }, error => { | |
| < reject(error); | |
| --- | |
| > esm["a" /* Camera */].getPhoto({ | |
| > quality: 90, | |
| > allowEditing: false, | |
| > resultType: esm["b" /* CameraResultType */].Uri, | |
| > source: esm["c" /* CameraSource */].Camera | |
| > }).then(res => { | |
| > resolve(res.webPath); | |
| > }).catch(err => { | |
| > if (err.message === 'User cancelled photos app') { | |
| > return resolve(null); | |
| > } | |
| > reject(err); | |
| 9372a9642,9649 | |
| > // CONCATENATED MODULE: ./src/helpers/file-reader.js | |
| > const readAsDataURL = file => new Promise((resolve, reject) => { | |
| > const reader = new FileReader(); | |
| > reader.onload = event => resolve(event.target.result); | |
| > reader.onerror = event => reject(event.target.error); | |
| > reader.readAsDataURL(file); | |
| > }); | |
| > | |
| 9389,9391c9666,9675 | |
| < takePhotoNativeHandler: vm => takePicture().then(photo => vm.$emit('file', photo)).catch(error => vm.$snackbar.error({ | |
| < message: vm.$lk.parseErrorMessage(error) | |
| < })), | |
| --- | |
| > takePhotoNativeHandler: vm => { | |
| > vm.$emit('click'); | |
| > return takePicture().then(photo => { | |
| > if (photo) { | |
| > return vm.$emit('file', photo); | |
| > } | |
| > }).catch(error => vm.$snackbar.error({ | |
| > message: vm.$lk.parseErrorMessage(error) | |
| > })); | |
| > }, | |
| 9399c9683 | |
| < if (vm.$q.platform.is.cordova) { | |
| --- | |
| > if (vm.$q.platform.is.cordova || vm.$q.platform.is.capacitor) { | |
| 9643a9928 | |
| > SA_ID_CITIZEN_OR_PERMANENT_RESIDENT_VALUES: new Set([0, 1]), | |
| 9647a9933 | |
| > DATE_OF_BIRTH_SA_ID_FORMAT: 'YYMMDD', | |
| 10337a10624,10727 | |
| > /***/ "c4f6": | |
| > /***/ (function(module, __webpack_exports__, __webpack_require__) { | |
| > | |
| > "use strict"; | |
| > /* WEBPACK VAR INJECTION */(function(global) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Vuevent; }); | |
| > const modifiersMap = new Map([['prevent', e => e.preventDefault()], ['stop', e => e.stopPropagation()]]); | |
| > function createGlobalEvents(targetName, target, events) { | |
| > const vm = this; | |
| > Object.entries(events).forEach(([event, handler]) => { | |
| > const [eventName, ...modifiers] = event.split('.'); | |
| > const newHandler = function newHandler(e, ...args) { | |
| > modifiers.forEach(modifier => { | |
| > const fn = modifiersMap.get(modifier); | |
| > if (fn) { | |
| > fn(e, target, eventName, newHandler); | |
| > } | |
| > }); | |
| > handler.apply(vm, [e, ...args]); | |
| > }; | |
| > const options = {}; | |
| > modifiers.forEach(modifier => { | |
| > // eslint-disable-next-line default-case | |
| > switch (modifier) { | |
| > case 'once': | |
| > options.once = true; | |
| > break; | |
| > case 'passive': | |
| > options.passive = true; | |
| > break; | |
| > case 'capture': | |
| > options.capture = true; | |
| > break; | |
| > } | |
| > }); | |
| > target.addEventListener(eventName, newHandler, options); | |
| > this.$events = { | |
| > ...this.$events, | |
| > remove: { | |
| > ...this.$events.remove, | |
| > [targetName]: { | |
| > ...this.$events[targetName], | |
| > [eventName]: () => target.removeEventListener(eventName, newHandler) | |
| > } | |
| > } | |
| > }; | |
| > this.$options.destroyed = [...this.$options.destroyed, () => { | |
| > Object.values(this.$events.remove[targetName]).forEach(cb => cb()); | |
| > }]; | |
| > }); | |
| > } | |
| > const Vuevent = { | |
| > install(Vue) { | |
| > Vue.mixin({ | |
| > beforeCreate() { | |
| > const vm = this; | |
| > const { | |
| > events = {} | |
| > } = vm.$options; | |
| > const { | |
| > document: documentEvents = {}, | |
| > window: windowEvents = {} | |
| > } = events; | |
| > if (!vm.$events) { | |
| > vm.$events = { | |
| > remove: { | |
| > window: {}, | |
| > document: {} | |
| > } | |
| > }; | |
| > } | |
| > if (!vm.$options.destroyed) { | |
| > vm.$options.destroyed = []; | |
| > } | |
| > createGlobalEvents.apply(vm, ['window', window, windowEvents]); | |
| > createGlobalEvents.apply(vm, ['document', document, documentEvents]); | |
| > } | |
| > }); | |
| > } | |
| > }; | |
| > | |
| > // Import vue component | |
| > // To auto-install when vue is found | |
| > // eslint-disable-next-line no-redeclare | |
| > | |
| > // eslint-disable-next-line no-redeclare | |
| > /* global window, global */ | |
| > | |
| > let GlobalVue = null; | |
| > if (typeof window !== 'undefined') { | |
| > GlobalVue = window.Vue; | |
| > } else if (typeof global !== 'undefined') { | |
| > GlobalVue = global.Vue; | |
| > } | |
| > if (GlobalVue) { | |
| > GlobalVue.use(Vuevent); | |
| > } // Inject install function into component - allows component | |
| > // also be used as directives, etc. - eg. import { RollupDemoDirective } from 'rollup-demo'; | |
| > // export const RollupDemoDirective = component; | |
| > | |
| > | |
| > /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("c8ba"))) | |
| > | |
| > /***/ }), | |
| > | |
| 11134,11135c11524,11530 | |
| < // EXTERNAL MODULE: ./src/services/FileService/index.js | |
| < var FileService = __webpack_require__("eda6"); | |
| --- | |
| > // CONCATENATED MODULE: ./src/services/FileService/index.js | |
| > class FileService { | |
| > static async dataUrlToBlob(dataUrl) { | |
| > const photo = await fetch(dataUrl); | |
| > return photo.blob(); | |
| > } | |
| > } | |
| 11144,11145c11539,11540 | |
| < const create = (id, resource, photoLabel, imageUrl) => { | |
| < const blob = FileService["a" /* FileService */].dataURLtoBlob(imageUrl); | |
| --- | |
| > const create = async (id, resource, photoLabel, imageUrl) => { | |
| > const blob = await FileService.dataUrlToBlob(imageUrl); | |
| 11149c11544 | |
| < const blob = FileService["a" /* FileService */].dataURLtoBlob(imageUrl); | |
| --- | |
| > const blob = FileService.dataUrlToBlob(imageUrl); | |
| 11680a12076,12081 | |
| > } | |
| > restorePhoto(pendingPhoto) { | |
| > const matchingPhoto = this.allPhotos().find(photo => photo.name === pendingPhoto.name); | |
| > if (matchingPhoto) { | |
| > matchingPhoto.imageUrl = pendingPhoto.webPath; | |
| > } | |
| 11877,11896d12277 | |
| < /***/ "eda6": | |
| < /***/ (function(module, __webpack_exports__, __webpack_require__) { | |
| < | |
| < "use strict"; | |
| < /* WEBPACK VAR INJECTION */(function(Buffer) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return FileService; }); | |
| < class FileService { | |
| < static dataURLtoBlob(dataurl) { | |
| < const arr = dataurl.split(','); | |
| < const mime = arr[0].split(':')[1].split(';')[0]; | |
| < const binaryString = Buffer.from(arr[1], 'base64'); | |
| < return new Blob([binaryString], { | |
| < type: mime | |
| < }); | |
| < } | |
| < } | |
| < | |
| < /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("1c35").Buffer)) | |
| < | |
| < /***/ }), | |
| < | |
| 11943c12324 | |
| < return new PhotoModel(apiPhoto.id, label === null || label === void 0 ? void 0 : label.replaceAll('-', ' '), label, apiPhoto.resource, apiPhoto.objectId, apiPhoto.url); | |
| --- | |
| > return new PhotoModel(apiPhoto.id, label === null || label === void 0 ? void 0 : label.split('-').join(' '), label, apiPhoto.resource, apiPhoto.objectId, apiPhoto.url); | |
| 12020c12401 | |
| < return _HTTPService__WEBPACK_IMPORTED_MODULE_4__[/* HTTPService */ "a"].post(`/api/v2/policies/fire/${firePolicyId}/upgrade/`, Object(_helpers__WEBPACK_IMPORTED_MODULE_2__[/* snakeize */ "d"])(funeralPolicy)).then(({ | |
| --- | |
| > return _HTTPService__WEBPACK_IMPORTED_MODULE_4__[/* HTTPService */ "a"].post(`/api/v2/policies/fire/${firePolicyId}/upgrade`, Object(_helpers__WEBPACK_IMPORTED_MODULE_2__[/* snakeize */ "d"])(funeralPolicy)).then(({ | |
| 12025c12406 | |
| < return _HTTPService__WEBPACK_IMPORTED_MODULE_4__[/* HTTPService */ "a"].post(`/api/v2/policies/funeral/${funeralPolicyId}/replace/`, Object(_helpers__WEBPACK_IMPORTED_MODULE_2__[/* snakeize */ "d"])(funeralPolicy)).then(({ | |
| --- | |
| > return _HTTPService__WEBPACK_IMPORTED_MODULE_4__[/* HTTPService */ "a"].post(`/api/v2/policies/funeral/${funeralPolicyId}/replace`, Object(_helpers__WEBPACK_IMPORTED_MODULE_2__[/* snakeize */ "d"])(funeralPolicy)).then(({ | |
| 12110c12491 | |
| < return _HTTPService__WEBPACK_IMPORTED_MODULE_4__[/* HTTPService */ "a"].post(`/api/v2/policies/funeral/${funeralpolicyId}/downgrade/`, {}).then(({ | |
| --- | |
| > return _HTTPService__WEBPACK_IMPORTED_MODULE_4__[/* HTTPService */ "a"].post(`/api/v2/policies/funeral/${funeralpolicyId}/downgrade`, {}).then(({ | |
| 12119c12500 | |
| < //# sourceMappingURL=app.2d16f725.js.map | |
| \ No newline at end of file | |
| --- | |
| > //# sourceMappingURL=app.e6be800f.js.map | |
| \ No newline at end of file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment