{"version":3,"sources":["webpack:///./node_modules/core-js/modules/_string-at.js","webpack:///./node_modules/core-js/modules/_advance-string-index.js","webpack:///./src/views/newsletter/history-list.vue?ef03","webpack:///src/views/newsletter/history-list.vue","webpack:///./src/views/newsletter/history-list.vue?db75","webpack:///./src/views/newsletter/history-list.vue","webpack:///./node_modules/core-js/modules/_flags.js","webpack:///./node_modules/core-js/modules/_fix-re-wks.js","webpack:///./node_modules/core-js/modules/es6.regexp.flags.js","webpack:///./node_modules/core-js/modules/_regexp-exec.js","webpack:///./node_modules/core-js/modules/_regexp-exec-abstract.js","webpack:///./node_modules/core-js/modules/es6.regexp.to-string.js","webpack:///./node_modules/core-js/modules/es6.regexp.replace.js","webpack:///./node_modules/core-js/modules/es6.regexp.exec.js","webpack:///./src/utilities/index.js"],"names":["toInteger","defined","module","exports","TO_STRING","that","pos","a","b","s","String","i","l","length","undefined","charCodeAt","charAt","slice","at","S","index","unicode","render","_vm","this","_h","$createElement","_c","_self","staticClass","_v","ref","attrs","_m","directives","name","rawName","value","history","expression","_l","newsletter","key","_s","convertToUserReadableDateTime","addedAt","emailSubject","recipientCount","newsletterEmailRequestId","staticRenderFns","component","anObject","result","global","ignoreCase","multiline","sticky","redefine","hide","fails","wks","regexpExec","SPECIES","REPLACE_SUPPORTS_NAMED_GROUPS","re","exec","groups","replace","SPLIT_WORKS_WITH_OVERWRITTEN_EXEC","originalExec","apply","arguments","split","KEY","SYMBOL","DELEGATES_TO_SYMBOL","O","DELEGATES_TO_EXEC","execCalled","constructor","nativeRegExpMethod","fns","nativeMethod","regexp","str","arg2","forceStringMethod","done","call","strfn","rxfn","prototype","RegExp","string","arg","flags","f","configurable","get","regexpFlags","nativeExec","nativeReplace","patchedExec","LAST_INDEX","UPDATES_LAST_INDEX_WRONG","re1","re2","NPCG_INCLUDED","PATCH","lastIndex","reCopy","match","source","classof","builtinExec","R","TypeError","$flags","DESCRIPTORS","$toString","define","fn","concat","toObject","toLength","advanceStringIndex","regExpExec","max","Math","min","floor","SUBSTITUTION_SYMBOLS","SUBSTITUTION_SYMBOLS_NO_NAMED","maybeToString","it","REPLACE","$replace","maybeCallNative","searchValue","replaceValue","res","rx","functionalReplace","fullUnicode","results","push","matchStr","accumulatedResult","nextSourcePosition","matched","position","captures","j","namedCaptures","replacerArgs","replacement","getSubstitution","tailPos","m","symbols","ch","capture","n","target","proto","forced","convertToUserReadableDate","iso8601DateTimeString","momentInstance","moment","format","convertToUserReadableDateWithDay","convertToUserReadableTime","convertDateToDDMMYYYY","convertDateToIso8601","birthdate","toISOString","replaceLineBreakInHtml","contentString","getBirthDateFromNewIc","newIcNumber","dateTimeFormat","birthDateChunk","substring","isAfter","subtract","isValid","generateRandomId","randLetter","fromCharCode","random","toString","substr","constructPrescriptionList","prescriptionListResponse","map","item","drugItem","dd","pn","dt","q","fd","qc","di","drugType","drugActiveIngredient","ai","unitPrice","up","unit","u","pdai","pdrp","pdu"],"mappings":"qGAAA,IAAIA,EAAY,EAAQ,QACpBC,EAAU,EAAQ,QAGtBC,EAAOC,QAAU,SAAUC,GACzB,OAAO,SAAUC,EAAMC,GACrB,IAGIC,EAAGC,EAHHC,EAAIC,OAAOT,EAAQI,IACnBM,EAAIX,EAAUM,GACdM,EAAIH,EAAEI,OAEV,OAAIF,EAAI,GAAKA,GAAKC,EAAUR,EAAY,QAAKU,GAC7CP,EAAIE,EAAEM,WAAWJ,GACVJ,EAAI,OAAUA,EAAI,OAAUI,EAAI,IAAMC,IAAMJ,EAAIC,EAAEM,WAAWJ,EAAI,IAAM,OAAUH,EAAI,MACxFJ,EAAYK,EAAEO,OAAOL,GAAKJ,EAC1BH,EAAYK,EAAEQ,MAAMN,EAAGA,EAAI,GAA2BH,EAAI,OAAzBD,EAAI,OAAU,IAAqB,U,oCCb5E,IAAIW,EAAK,EAAQ,OAAR,EAAwB,GAIjChB,EAAOC,QAAU,SAAUgB,EAAGC,EAAOC,GACnC,OAAOD,GAASC,EAAUH,EAAGC,EAAGC,GAAOP,OAAS,K,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,KAGzD,SAASC,EAA2BC,GACvC,OAAOA,EAAyBC,KAAI,SAACC,GACjC,IAAIC,EAAW,CACX,YAAeD,EAAKE,GAAKF,EAAKE,GAAGC,GAAK,IACtC,SAAYH,EAAKE,GAAKF,EAAKE,GAAGE,GAAK,EACnC,SAAYJ,EAAKK,EACjB,qBAAwBL,EAAKM,GAC7B,uBAA0BN,EAAKO,GAC/B,OAAUP,EAAKE,GAAKF,EAAKE,GAAGM,GAAK,KAarC,OAV0B,IAAtBP,EAASQ,UACTR,EAASS,qBAAuBV,EAAKE,GAAKF,EAAKE,GAAGS,GAAK,IACvDV,EAASW,UAAYZ,EAAKE,GAAKF,EAAKE,GAAGW,GAAK,EAC5CZ,EAASa,KAAOd,EAAKE,GAAKF,EAAKE,GAAGa,EAAI,KACT,IAAtBd,EAASQ,WAChBR,EAASS,qBAAuBV,EAAKE,GAAKF,EAAKE,GAAGc,KAAO,IACzDf,EAASW,UAAYZ,EAAKE,GAAKF,EAAKE,GAAGe,KAAO,EAC9ChB,EAASa,KAAOd,EAAKE,GAAKF,EAAKE,GAAGgB,IAAM,KAGrCjB","file":"js/chunk-40eb5b23.e9f673f6.js","sourcesContent":["var toInteger = require('./_to-integer');\nvar defined = require('./_defined');\n// true -> String#at\n// false -> String#codePointAt\nmodule.exports = function (TO_STRING) {\n return function (that, pos) {\n var s = String(defined(that));\n var i = toInteger(pos);\n var l = s.length;\n var a, b;\n if (i < 0 || i >= l) return TO_STRING ? '' : undefined;\n a = s.charCodeAt(i);\n return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff\n ? TO_STRING ? s.charAt(i) : a\n : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;\n };\n};\n","'use strict';\nvar at = require('./_string-at')(true);\n\n // `AdvanceStringIndex` abstract operation\n// https://tc39.github.io/ecma262/#sec-advancestringindex\nmodule.exports = function (S, index, unicode) {\n return index + (unicode ? at(S, index).length : 1);\n};\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('h1',{staticClass:\"display-heading\"},[_vm._v(\"Newsletter History\")]),_c('div',{staticClass:\"table-responsive\"},[_c('div',{ref:\"tableSection\"},[_c('table',{ref:\"listTable\",staticClass:\"table table-hover\"},[_c('col',{attrs:{\"width\":\"50\"}}),_c('col',{attrs:{\"width\":\"250\"}}),_c('col'),_c('col',{attrs:{\"width\":\"100\"}}),_c('col',{attrs:{\"width\":\"150\"}}),_vm._m(0),_c('tbody',[_c('tr',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.history.length === 0),expression:\"history.length === 0\"}]},[_c('td',{staticClass:\"text-center font-italic\",attrs:{\"colspan\":\"5\"}},[_vm._v(\"\\n No Data\\n \")])]),_vm._l((_vm.history),function(newsletter,index){return _c('tr',{key:index},[_c('td',[_vm._v(\"\\n \"+_vm._s(index + 1)+\"\\n \")]),_c('td',[_vm._v(\"\\n \"+_vm._s(_vm.convertToUserReadableDateTime(newsletter.addedAt))+\"\\n \")]),_c('td',[_vm._v(\"\\n \"+_vm._s(newsletter.emailSubject)+\"\\n \")]),_c('td',{staticClass:\"text-right\"},[_vm._v(\"\\n \"+_vm._s(newsletter.recipientCount)+\"\\n \")]),_c('td',[_c('router-link',{attrs:{\"to\":{\n 'name': 'newsletter-history-detail',\n 'params': {'id': newsletter.newsletterEmailRequestId}\n }}},[_vm._v(\"\\n View\\n \")])],1)])})],2)])])])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('thead',[_c('tr',[_c('th',{attrs:{\"scope\":\"col\"}},[_vm._v(\"#\")]),_c('th',{attrs:{\"scope\":\"col\"}},[_vm._v(\"Sent Date\")]),_c('th',{attrs:{\"scope\":\"col\"}},[_vm._v(\"Email Subject\")]),_c('th',{staticClass:\"text-right\",attrs:{\"scope\":\"col\"}},[_vm._v(\"Total Recipients\")]),_c('th',{attrs:{\"scope\":\"col\"}},[_vm._v(\"Action\")])])])}]\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./history-list.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./history-list.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./history-list.vue?vue&type=template&id=001a529f&\"\nimport script from \"./history-list.vue?vue&type=script&lang=js&\"\nexport * from \"./history-list.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","'use strict';\n// 21.2.5.3 get RegExp.prototype.flags\nvar anObject = require('./_an-object');\nmodule.exports = function () {\n var that = anObject(this);\n var result = '';\n if (that.global) result += 'g';\n if (that.ignoreCase) result += 'i';\n if (that.multiline) result += 'm';\n if (that.unicode) result += 'u';\n if (that.sticky) result += 'y';\n return result;\n};\n","'use strict';\nrequire('./es6.regexp.exec');\nvar redefine = require('./_redefine');\nvar hide = require('./_hide');\nvar fails = require('./_fails');\nvar defined = require('./_defined');\nvar wks = require('./_wks');\nvar regexpExec = require('./_regexp-exec');\n\nvar SPECIES = wks('species');\n\nvar REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {\n // #replace needs built-in support for named groups.\n // #match works fine because it just return the exec results, even if it has\n // a \"grops\" property.\n var re = /./;\n re.exec = function () {\n var result = [];\n result.groups = { a: '7' };\n return result;\n };\n return ''.replace(re, '$') !== '7';\n});\n\nvar SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = (function () {\n // Chrome 51 has a buggy \"split\" implementation when RegExp#exec !== nativeExec\n var re = /(?:)/;\n var originalExec = re.exec;\n re.exec = function () { return originalExec.apply(this, arguments); };\n var result = 'ab'.split(re);\n return result.length === 2 && result[0] === 'a' && result[1] === 'b';\n})();\n\nmodule.exports = function (KEY, length, exec) {\n var SYMBOL = wks(KEY);\n\n var DELEGATES_TO_SYMBOL = !fails(function () {\n // String methods call symbol-named RegEp methods\n var O = {};\n O[SYMBOL] = function () { return 7; };\n return ''[KEY](O) != 7;\n });\n\n var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL ? !fails(function () {\n // Symbol-named RegExp methods call .exec\n var execCalled = false;\n var re = /a/;\n re.exec = function () { execCalled = true; return null; };\n if (KEY === 'split') {\n // RegExp[@@split] doesn't call the regex's exec method, but first creates\n // a new one. We need to return the patched regex when creating the new one.\n re.constructor = {};\n re.constructor[SPECIES] = function () { return re; };\n }\n re[SYMBOL]('');\n return !execCalled;\n }) : undefined;\n\n if (\n !DELEGATES_TO_SYMBOL ||\n !DELEGATES_TO_EXEC ||\n (KEY === 'replace' && !REPLACE_SUPPORTS_NAMED_GROUPS) ||\n (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)\n ) {\n var nativeRegExpMethod = /./[SYMBOL];\n var fns = exec(\n defined,\n SYMBOL,\n ''[KEY],\n function maybeCallNative(nativeMethod, regexp, str, arg2, forceStringMethod) {\n if (regexp.exec === regexpExec) {\n if (DELEGATES_TO_SYMBOL && !forceStringMethod) {\n // The native String method already delegates to @@method (this\n // polyfilled function), leasing to infinite recursion.\n // We avoid it by directly calling the native @@method method.\n return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };\n }\n return { done: true, value: nativeMethod.call(str, regexp, arg2) };\n }\n return { done: false };\n }\n );\n var strfn = fns[0];\n var rxfn = fns[1];\n\n redefine(String.prototype, KEY, strfn);\n hide(RegExp.prototype, SYMBOL, length == 2\n // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)\n // 21.2.5.11 RegExp.prototype[@@split](string, limit)\n ? function (string, arg) { return rxfn.call(string, this, arg); }\n // 21.2.5.6 RegExp.prototype[@@match](string)\n // 21.2.5.9 RegExp.prototype[@@search](string)\n : function (string) { return rxfn.call(string, this); }\n );\n }\n};\n","// 21.2.5.3 get RegExp.prototype.flags()\nif (require('./_descriptors') && /./g.flags != 'g') require('./_object-dp').f(RegExp.prototype, 'flags', {\n configurable: true,\n get: require('./_flags')\n});\n","'use strict';\n\nvar regexpFlags = require('./_flags');\n\nvar nativeExec = RegExp.prototype.exec;\n// This always refers to the native implementation, because the\n// String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js,\n// which loads this file before patching the method.\nvar nativeReplace = String.prototype.replace;\n\nvar patchedExec = nativeExec;\n\nvar LAST_INDEX = 'lastIndex';\n\nvar UPDATES_LAST_INDEX_WRONG = (function () {\n var re1 = /a/,\n re2 = /b*/g;\n nativeExec.call(re1, 'a');\n nativeExec.call(re2, 'a');\n return re1[LAST_INDEX] !== 0 || re2[LAST_INDEX] !== 0;\n})();\n\n// nonparticipating capturing group, copied from es5-shim's String#split patch.\nvar NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;\n\nvar PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED;\n\nif (PATCH) {\n patchedExec = function exec(str) {\n var re = this;\n var lastIndex, reCopy, match, i;\n\n if (NPCG_INCLUDED) {\n reCopy = new RegExp('^' + re.source + '$(?!\\\\s)', regexpFlags.call(re));\n }\n if (UPDATES_LAST_INDEX_WRONG) lastIndex = re[LAST_INDEX];\n\n match = nativeExec.call(re, str);\n\n if (UPDATES_LAST_INDEX_WRONG && match) {\n re[LAST_INDEX] = re.global ? match.index + match[0].length : lastIndex;\n }\n if (NPCG_INCLUDED && match && match.length > 1) {\n // Fix browsers whose `exec` methods don't consistently return `undefined`\n // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/\n // eslint-disable-next-line no-loop-func\n nativeReplace.call(match[0], reCopy, function () {\n for (i = 1; i < arguments.length - 2; i++) {\n if (arguments[i] === undefined) match[i] = undefined;\n }\n });\n }\n\n return match;\n };\n}\n\nmodule.exports = patchedExec;\n","'use strict';\n\nvar classof = require('./_classof');\nvar builtinExec = RegExp.prototype.exec;\n\n // `RegExpExec` abstract operation\n// https://tc39.github.io/ecma262/#sec-regexpexec\nmodule.exports = function (R, S) {\n var exec = R.exec;\n if (typeof exec === 'function') {\n var result = exec.call(R, S);\n if (typeof result !== 'object') {\n throw new TypeError('RegExp exec method returned something other than an Object or null');\n }\n return result;\n }\n if (classof(R) !== 'RegExp') {\n throw new TypeError('RegExp#exec called on incompatible receiver');\n }\n return builtinExec.call(R, S);\n};\n","'use strict';\nrequire('./es6.regexp.flags');\nvar anObject = require('./_an-object');\nvar $flags = require('./_flags');\nvar DESCRIPTORS = require('./_descriptors');\nvar TO_STRING = 'toString';\nvar $toString = /./[TO_STRING];\n\nvar define = function (fn) {\n require('./_redefine')(RegExp.prototype, TO_STRING, fn, true);\n};\n\n// 21.2.5.14 RegExp.prototype.toString()\nif (require('./_fails')(function () { return $toString.call({ source: 'a', flags: 'b' }) != '/a/b'; })) {\n define(function toString() {\n var R = anObject(this);\n return '/'.concat(R.source, '/',\n 'flags' in R ? R.flags : !DESCRIPTORS && R instanceof RegExp ? $flags.call(R) : undefined);\n });\n// FF44- RegExp#toString has a wrong name\n} else if ($toString.name != TO_STRING) {\n define(function toString() {\n return $toString.call(this);\n });\n}\n","'use strict';\n\nvar anObject = require('./_an-object');\nvar toObject = require('./_to-object');\nvar toLength = require('./_to-length');\nvar toInteger = require('./_to-integer');\nvar advanceStringIndex = require('./_advance-string-index');\nvar regExpExec = require('./_regexp-exec-abstract');\nvar max = Math.max;\nvar min = Math.min;\nvar floor = Math.floor;\nvar SUBSTITUTION_SYMBOLS = /\\$([$&`']|\\d\\d?|<[^>]*>)/g;\nvar SUBSTITUTION_SYMBOLS_NO_NAMED = /\\$([$&`']|\\d\\d?)/g;\n\nvar maybeToString = function (it) {\n return it === undefined ? it : String(it);\n};\n\n// @@replace logic\nrequire('./_fix-re-wks')('replace', 2, function (defined, REPLACE, $replace, maybeCallNative) {\n return [\n // `String.prototype.replace` method\n // https://tc39.github.io/ecma262/#sec-string.prototype.replace\n function replace(searchValue, replaceValue) {\n var O = defined(this);\n var fn = searchValue == undefined ? undefined : searchValue[REPLACE];\n return fn !== undefined\n ? fn.call(searchValue, O, replaceValue)\n : $replace.call(String(O), searchValue, replaceValue);\n },\n // `RegExp.prototype[@@replace]` method\n // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace\n function (regexp, replaceValue) {\n var res = maybeCallNative($replace, regexp, this, replaceValue);\n if (res.done) return res.value;\n\n var rx = anObject(regexp);\n var S = String(this);\n var functionalReplace = typeof replaceValue === 'function';\n if (!functionalReplace) replaceValue = String(replaceValue);\n var global = rx.global;\n if (global) {\n var fullUnicode = rx.unicode;\n rx.lastIndex = 0;\n }\n var results = [];\n while (true) {\n var result = regExpExec(rx, S);\n if (result === null) break;\n results.push(result);\n if (!global) break;\n var matchStr = String(result[0]);\n if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);\n }\n var accumulatedResult = '';\n var nextSourcePosition = 0;\n for (var i = 0; i < results.length; i++) {\n result = results[i];\n var matched = String(result[0]);\n var position = max(min(toInteger(result.index), S.length), 0);\n var captures = [];\n // NOTE: This is equivalent to\n // captures = result.slice(1).map(maybeToString)\n // but for some reason `nativeSlice.call(result, 1, result.length)` (called in\n // the slice polyfill when slicing native arrays) \"doesn't work\" in safari 9 and\n // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.\n for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));\n var namedCaptures = result.groups;\n if (functionalReplace) {\n var replacerArgs = [matched].concat(captures, position, S);\n if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);\n var replacement = String(replaceValue.apply(undefined, replacerArgs));\n } else {\n replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);\n }\n if (position >= nextSourcePosition) {\n accumulatedResult += S.slice(nextSourcePosition, position) + replacement;\n nextSourcePosition = position + matched.length;\n }\n }\n return accumulatedResult + S.slice(nextSourcePosition);\n }\n ];\n\n // https://tc39.github.io/ecma262/#sec-getsubstitution\n function getSubstitution(matched, str, position, captures, namedCaptures, replacement) {\n var tailPos = position + matched.length;\n var m = captures.length;\n var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;\n if (namedCaptures !== undefined) {\n namedCaptures = toObject(namedCaptures);\n symbols = SUBSTITUTION_SYMBOLS;\n }\n return $replace.call(replacement, symbols, function (match, ch) {\n var capture;\n switch (ch.charAt(0)) {\n case '$': return '$';\n case '&': return matched;\n case '`': return str.slice(0, position);\n case \"'\": return str.slice(tailPos);\n case '<':\n capture = namedCaptures[ch.slice(1, -1)];\n break;\n default: // \\d\\d?\n var n = +ch;\n if (n === 0) return ch;\n if (n > m) {\n var f = floor(n / 10);\n if (f === 0) return ch;\n if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);\n return ch;\n }\n capture = captures[n - 1];\n }\n return capture === undefined ? '' : capture;\n });\n }\n});\n","'use strict';\nvar regexpExec = require('./_regexp-exec');\nrequire('./_export')({\n target: 'RegExp',\n proto: true,\n forced: regexpExec !== /./.exec\n}, {\n exec: regexpExec\n});\n","import moment from 'moment';\r\nexport function convertToUserReadableDate (iso8601DateTimeString) {\r\n let momentInstance = moment(iso8601DateTimeString);\r\n\r\n return momentInstance.format('DD MMMM YYYY');\r\n}\r\n\r\nexport function convertToUserReadableDateWithDay (iso8601DateTimeString) {\r\n let momentInstance = moment(iso8601DateTimeString);\r\n\r\n return momentInstance.format('DD MMMM YYYY (dddd)');\r\n}\r\n\r\nexport function convertToUserReadableTime (iso8601DateTimeString) {\r\n let momentInstance = moment(iso8601DateTimeString);\r\n\r\n return momentInstance.format('hh:mm A');\r\n}\r\n\r\nexport function convertToUserReadableDateTime (iso8601DateTimeString) {\r\n let momentInstance = moment(iso8601DateTimeString);\r\n\r\n return momentInstance.format('DD MMMM YYYY hh:mm A');\r\n}\r\n\r\nexport function convertDateToDDMMYYYY (iso8601DateTimeString) {\r\n let momentInstance = moment(iso8601DateTimeString);\r\n\r\n return momentInstance.format('DD/MM/YYYY');\r\n}\r\n\r\nexport function convertDateToIso8601 (birthdate) {\r\n let momentInstance = moment(birthdate, 'DD/MM/YYYY');\r\n return momentInstance.toISOString(true);\r\n}\r\n\r\nexport function replaceLineBreakInHtml (contentString) {\r\n if (!contentString) {\r\n return '-';\r\n }\r\n return contentString.replace(/(?:\\r\\n|\\r|\\n)/g, '
');\r\n}\r\n\r\nexport function replaceDashInUUID (uuid) {\r\n return uuid.replace(/-/g, '');\r\n}\r\n\r\nexport function getBirthDateFromNewIc (newIcNumber, dateTimeFormat = 'DD/MM/YYYY') {\r\n if (newIcNumber && newIcNumber.length > 5) {\r\n let birthDateChunk = newIcNumber.substring(0, 6);\r\n let momentInstance = moment(birthDateChunk, 'YYMMDD');\r\n\r\n if (momentInstance.isAfter(moment())) {\r\n momentInstance.subtract(100, 'years');\r\n }\r\n\r\n if (momentInstance.isValid()) {\r\n return momentInstance.format(dateTimeFormat);\r\n }\r\n }\r\n return '';\r\n}\r\n\r\nexport function generateRandomId () {\r\n let randLetter = String.fromCharCode(65 + Math.floor(Math.random() * 26));\r\n return `${randLetter}${Math.random().toString(36).substr(2, 10)}`;\r\n}\r\n\r\nexport function constructPrescriptionList (prescriptionListResponse) {\r\n return prescriptionListResponse.map((item) => {\r\n let drugItem = {\r\n 'productName': item.dd ? item.dd.pn : '-',\r\n 'drugType': item.dd ? item.dd.dt : 0,\r\n 'quantity': item.q,\r\n 'consumptionFrequency': item.fd,\r\n 'quantityPerConsumption': item.qc,\r\n 'drugId': item.dd ? item.dd.di : '-'\r\n };\r\n\r\n if (drugItem.drugType === 1) {\r\n drugItem.drugActiveIngredient = item.dd ? item.dd.ai : '-';\r\n drugItem.unitPrice = item.dd ? item.dd.up : 0;\r\n drugItem.unit = item.dd ? item.dd.u : '-';\r\n } else if (drugItem.drugType === 2) {\r\n drugItem.drugActiveIngredient = item.dd ? item.dd.pdai : '-';\r\n drugItem.unitPrice = item.dd ? item.dd.pdrp : 0;\r\n drugItem.unit = item.dd ? item.dd.pdu : '-';\r\n }\r\n\r\n return drugItem;\r\n });\r\n}\r\n"],"sourceRoot":""}