{"version":3,"file":"js/mo-ng-common.js","sources":["webpack://mo-ng-common/js/mo-ng-common.js"],"sourcesContent":["!function(e,t){\"object\"==typeof exports&&\"object\"==typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define([],t):\"object\"==typeof exports?exports[\"mo-ng-common\"]=t():e[\"mo-ng-common\"]=t()}(window,(function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&\"object\"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,\"default\",{enumerable:!0,value:e}),2&t&&\"string\"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,\"a\",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=\"\",n(n.s=543)}([,function(e,t,n){\"use strict\";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||\"\",i=e[3];if(!i)return n;if(t&&\"function\"==typeof btoa){var r=(o=i,s=btoa(unescape(encodeURIComponent(JSON.stringify(o)))),c=\"sourceMappingURL=data:application/json;charset=utf-8;base64,\".concat(s),\"/*# \".concat(c,\" */\")),a=i.sources.map((function(e){return\"/*# sourceURL=\".concat(i.sourceRoot||\"\").concat(e,\" */\")}));return[n].concat(a).concat([r]).join(\"\\n\")}var o,s,c;return[n].join(\"\\n\")}(t,e);return t[2]?\"@media \".concat(t[2],\" {\").concat(n,\"}\"):n})).join(\"\")},t.i=function(e,n,i){\"string\"==typeof e&&(e=[[null,e,\"\"]]);var r={};if(i)for(var a=0;a
'}function r(e){e.interceptors.push([\"$q\",\"$rootScope\",\"MOHttpBufferService\",\"$injector\",function(e,t,n,i){return{request:function(e){return e.cache||\"get\"!==e.method.toLowerCase()||(e.headers[\"Cache-Control\"]=\"no-cache\",e.headers.Pragma=\"no-cache\",e.headers.Expires=\"Sat, 01 Jan 2000 00:00:00 GMT\"),e},responseError:function(r){var a=r.config||{},o=e.defer(),s=i.get(\"MOAlertService\"),c=i.get(\"MOAuthService\");switch(r.status){case-1:return\"abort\"===r.xhrStatus?e.reject(r):(t.$broadcast(\"event:no-connection\",r),s.showHTTPError(r,{close:{label:\"Retry\",buttonClass:\"btn-primary\"},dismiss:{label:\"Cancel\",buttonClass:\"btn-secondary\"}}).then((function(){var e=c.getUser();return n.append(a,o),n.retryAll(e),o.promise}),(function(){throw n.rejectAll(),r})));default:return e.reject(r)}}}}])}function a(e,t){t.onbeforeunload=function(t){var n={};return e.$broadcast(\"event:onBeforeUnload\",n).defaultPrevented?n.alert.alertConfig.message:void 0}}function o(e){e.startingDay=1,e.showWeeks=!1}n.d(t,\"a\",(function(){return i})),n.d(t,\"b\",(function(){return r})),n.d(t,\"c\",(function(){return a})),n.d(t,\"d\",(function(){return o})),o.$inject=[\"uibDatepickerConfig\"],a.$inject=[\"$rootScope\",\"$window\"],r.$inject=[\"$httpProvider\"],i.$inject=[\"blockUIConfig\"]},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,\"loaded\",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,\"id\",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},,,,,,,,,,,,,function(e,t,n){var i=n(251);e.exports=\"string\"==typeof i?i:i.toString()},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){e.exports='
'},function(e,t){e.exports='
{{ $ctrl.capsLockWarn }}
{{ $ctrl.loginError }}
0\\r\\n ]\\r\\n \">

or

'},function(e,t){e.exports='

Select Provider

{{ ::provider.givenName }} {{ ::provider.familyName }} ({{ ::provider.idNumber }})
'},function(e,t){e.exports='

Multi-factor Authentication

Authenticator App
Please enter the authentication code that you see on your authenticator app in order to proceed.
Email
Please enter the authentication code (ID: {{ $ctrl.codeId }}) that was sent to your email in order to proceed.
Please request an authentication code:
SMS
Please enter the authentication code (ID: {{ $ctrl.codeId }}) that was sent to your mobile phone in order to proceed.
Please request an authentication code:
Trust this device?
Continue to trust this device?
OR
Use an alternative method
'},function(e,t){e.exports='
Clear
The code entered is not in the correct format.
Failed to read clipboard contents. Please enter the code manually.
'},function(e,t){e.exports='

Manage Trusted Devices Information Trusted Device Information Configure Multi-factor Authentication

For your security, please re-enter your password to continue.

Password incorrect. Please try again.

Would you like this device to be remembered as a \\'trusted\\' device?

If \\'Trust this device\\' is selected, this means that once multi-factor authentication is enabled, anybody logging in to this account from this device will only require to enter a username and password, and not an additional multi-factor authentication code.

This option should not be used for public computers.

Note that when using breakglass a multi-factor authentication code is always required and trusted devices are ignored.

Trust this device?
Please use your authentication app such as Google Authenticator, Authy or Duo to scan this QR code.
If you can\\'t scan the image, enter this code into your authentication app
{{ $ctrl.secretKey }}
There was a problem copying. Please try manually copying or type the code into the app.
Enter confirmation code
Please enter the confirmation code that you see on your authentication app.

You have successfully enabled multi-factor authentication.

Each time you login from an unrecognised device you will now need to enter a username, password and authentication code.

Disable Two-factor Authentication

Once you disable two-factor authentication you will only require a username and password to login to Explorer Online.

Your account will no longer have the added protection of two-factor authentication or any trusted devices.

Disable Two-factor Authentication

Two-factor authentication is enforced on this system.

Once you disable two-factor authentication you will be logged out, and will need to enable it again when logging in.

For your security, please re-enter your password to continue.

Password incorrect. Please try again.

You have successfully disabled two-factor authentication.

You may re-enable it at any time from the \\'Security\\' section on the dashboard or find it in the User Menu.

What is multi-factor authentication?

Multi-factor authentication is a security feature that helps protect your account in addition to your password.

If you enable multi-factor authentication, a special login code together with your username and password will need to be entered each time someone tries to access your account from a computer or device we don\\'t recognise.

What do I need to be able to use it?

In order to generate the special login codes, you will need to install an app which supports the Time-based One-time Password Algorithm (TOTP) such as Google Authenticator, Authy, Microsoft Authenticator or Duo. There are many others, and some of these apps also support generating codes from desktop computers.

Do I always need to enter a code when logging in?

During login, you can choose not to use two-factor authentication again on that particular device. If you select this option, that device will only ask for your username and password when logging in. You will still be protected, because when you or anyone else tries to sign in to your account from an unrecognised device, multi-factor authentication will be required.

Browser third party cookies need to be enabled for Explorer Online and multi-factor authentication to operate correctly. They are usually enabled by default.

How do I enable multi-factor authentication?

To enable multi-factor authentication, you will need to use your app to scan a QR code generated by Explorer Online (or type in the code if you cannot scan it). Your app will then generate a confirmation code which you need to enter when prompted by Explorer Online.

Your account will now be multi-factor authentication enabled, and you will need to generate a code with your app whenever prompted by Explorer Online during login.

Enable multi-factor authentication now?

To enable multi-factor authentication, have your app, phone or email handy, select the option below and follow the prompts. Otherwise, enable it another time from the security section on the dashboard or the user menu.

You will not be shown the multi-factor authentication warning again!

It will be recorded that you have chosen to ignore multi-factor authentication at this time.

You can still enable multi-factor authentication in the future by going to the security section on the dashboard or find it in the user menu.

What does a \\'trusted\\' device mean?

If you choose to trust a device, then anybody logging into your account from the trusted device and browser will only need to enter a username and password, and not a multi-factor authentication code.

You should not choose to trust a public device.

Anybody logging into your account from a non-trusted device will still need to enter a multi-factor authentication code after the username and password.

Occasionally, Explorer Online may still ask for a multi-factor authentication code when using a trusted device.

Browser third party cookies need to be enabled for Explorer Online and multi-factor authentication to operate correctly. They are usually enabled by default.

How do I trust a device?

Toggle the button until it says \\'Trust this device\\' and the background colour is green, and then proceed with the multi-factor authentication.

Can trusted devices be removed from the trusted list?

A trusted device can be removed from the trusted list by logging in to Explorer Online and selecting the \\'Manage Trusted Devices\\' option from the \\'Security\\' panel on the Dashboard or the User Menu.

There are currently no trusted devices. You can add a trusted device when logging into your account.
Device Name Device Type Operating System Browser Expiry Remove Device
{{ device.name }} {{ device.device }} {{ device.os }} {{ device.browser }} {{ device.expiryDateTime | date }}

Browser cookies must be enabled to use multi-factor authentication.

Please allow sites to save and read cookie data and try again.

Multi-factor authentication must be enabled to proceed.

Configure Multi-factor Authentication

Alternatively, enable it another time from the security section on the dashboard or from the user menu.

Multi-factor authentication must be enabled to proceed.

Configure Multi-factor Authentication

Alternatively, enable it another time from the security section on the dashboard or from the user menu.

A user account which supports Multi-factor authentication is required to access Breakglass.

Multi-factor authentication is not supported by this user account.

Multi-factor authentication must be enabled by {{ $ctrl.requires2FASetupByDateTime | date }} otherwise you will not be able to proceed beyond login.

However, you will have the option to enable multi-factor authentication when logging in after this date.

Alternatively, enable it another time from the security section on the dashboard, from the user menu, or the next time you login.

Manage Authentication Methods

Your Authentication Methods

  • {{method.name}} ENABLED DISABLED

    {{method.description}}

    Enabled since {{method.enabledDateTime | date:\\'dd-MM-yyyy HH:mm a\\'}} for: {{method.contact}} Enabled since: {{method.enabledDateTime | date:\\'dd-MM-yyyy HH:mm a\\'}}

    Disabled since: {{method.disabledDateTime | date:\\'dd-MM-yyyy HH:mm a\\'}}

    Last used: {{method.lastSuccessDateTime | date:\\'dd-MM-yyyy HH:mm a\\'}}

There are no Multi-factor Authentication methods available

Please enter the email address where you would like your multi-factor authentication codes to be sent:

Incorrect email format. Please try again.
Enter confirmation code
Please check your email and enter the confirmation code (ID: {{$ctrl.codeId}}) that was sent to the address provided:

Please enter the mobile phone number where you would like your multi-factor authentication codes to be sent:

Phone number incorrect. Please try again.
Enter confirmation code
Please enter the confirmation code (ID: {{$ctrl.codeId}}) that was sent to the phone number provided:

To enabledisable the {{$ctrl.getActiveMethodDisplayName()}} method, please re-enter your password:

Password incorrect. Please try again.

Multi-factor authentication is enforced on this system.

Once you disable multi-factor authentication you will be logged out, and will need to enable it again when next logging in.

You have successfully enabled the {{$ctrl.getDisplayNameFromType($ctrl.configuredMethod)}} method.

Each time you login from an unrecognised device you will now need to enter a username, password and authentication code which you will receive via your method of preference.

You have disabled the {{$ctrl.getDisplayNameFromType($ctrl.configuredMethod)}} method.

'},function(e,t){e.exports='

{{ ::$ctrl.panelTitle }}

Please enter your new password, making sure it meets minimum security requirements.

{{ $ctrl.error }}
Security Requirements
{{ ::ruleValue.displayString }}
'},function(e,t,n){\"use strict\";function i(e,t){for(var n=0;n
{{ $ctrl.validationError }}
Invalid date specified. Expected format is {{ $ctrl.dateTimeFormatMap.get($ctrl.datePickerOptions.datePickerFormat) }}. You can press Clear in the time picker to remove the time.
'},function(e,t){e.exports=' {{ $ctrl.documentTitle.text }}
Loading...
No results found
'},function(e,t){e.exports='

DVA Card

{{ $ctrl.formErrors.colour }}
{{ $ctrl.formErrors.idNumber }}
'},function(e,t){e.exports='
{{ $ctrl.file.upload.progress }}%
'},function(e,t){e.exports='
 One or more files are too large and have not been uploaded ({{ $ctrl.imageValidationConfig.size.max }} maximum)  
Drop Images Here (or browse for images above)
This browser does not support Drag and Drop!
'},function(e,t){e.exports='

The webcam could not be started.

Please ensure with webcam is installed and you have granted the browser access to the device.

Also ensure that you are using a secure connection (https).

Photo captured successfully
Webcam Active
Image Caption
Image comments
'},function(e,t){e.exports='
'},function(e,t){e.exports='
{{ $ctrl.formErrors }}
{{ copy.formattedName }}
'},function(e,t){e.exports=' '},function(e,t,n){\"use strict\";function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&(\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"]);if(null==n)return;var i,r,a=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(i=n.next()).done)&&(a.push(i.value),!t||a.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(s)throw r}}return a}(e,t)||function(e,t){if(!e)return;if(\"string\"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);\"Object\"===n&&e.constructor&&(n=e.constructor.name);if(\"Map\"===n||\"Set\"===n)return Array.from(e);if(\"Arguments\"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e,t)||function(){throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);nnew Date?\"19\":\"20\",l=new Date(\"\".concat(c).concat(s,\"-\").concat(o,\"-\").concat(a));return r.$setValidity(\"date\",!0),r.$setViewValue(\"\".concat(a,\"/\").concat(o,\"/\").concat(c).concat(s)),r.$render(),l}return e}))}}])&&a(t.prototype,n),r&&a(t,r),e}();t.a=o.directiveFactory},function(e,t,n){\"use strict\";function i(e,t){for(var n=0;n/g,\">\").replace(/'/g,\"'\").replace(/\"/g,\""\"):\"\"}}var t,n,r;return t=e,r=[{key:\"filter\",value:function(){return new e}}],(n=null)&&i(t.prototype,n),r&&i(t,r),e}();t.a=r},function(e,t,n){\"use strict\";function i(e,t){for(var n=0;n=0?\"-\":\"+\",i=(Math.abs(Math.floor(t/60))+\"\").padStart(2,\"0\"),r=(Math.abs(Math.floor(t%60))+\"\").padStart(2,\"0\"),\"\".concat(n).concat(i,\":\").concat(r)))}},{key:\"LoadFromDate\",value:function(e){this.Reset(),this.ValidInput(e)&&(isNaN(e.getTime())||(this.myDate=e,this.valid=!0,this.HL7Str=this.$filter(\"date\")(e,\"yyyyMMddHHmmss.sssZ\")))}},{key:\"LoadFromHL7Str\",value:function(e){if(this.Reset(),this.ValidInput(e)){var t,n={year:(t=-1!==e.indexOf(\"-\")?e.split(\"-\")[0]:-1!==e.indexOf(\"+\")?e.split(\"+\")[0]:e).substring(0,4),month:t.substring(4,6),day:t.substring(6,8),hours:t.substring(8,10),minutes:t.substring(10,12),seconds:t.substring(12,14),milliseconds:t.substring(14)};this.LoadFromYMD(n)}}},{key:\"LoadFromStr\",value:function(e,t){if(this.Reset(),this.ValidInput(e)){t||(t=\"/\");var n=e.split(t);if(3===n.length){var i={year:n[0],month:n[1],day:n[2],hours:\"\",minutes:\"\",seconds:\"\",milliseconds:\"\"};this.LoadFromYMD(i)}}}},{key:\"LoadFromYMD\",value:function(e){this.Reset();var t=!0;if(e.year&&\"\"!==e.year){if(angular.forEach(e,(function(e){isNaN(e)&&(t=!1)})),!1===t)return;e.month&&\"\"!==e.month||(e.month=1),this.LoadFromDate(new Date(e.year,e.month-1,e.day,e.hours,e.minutes,e.seconds,e.milliseconds))}}},{key:\"AsString\",value:function(e){if(!this.valid)return\"\";e||(e=\"/\");var t=this.myDate.getMonth()+1,n=(t>9?\"\":\"0\")+t;return this.myDate.getDate()+e+n+e+this.myDate.getFullYear()}},{key:\"Reset\",value:function(){this.valid=!1,this.HL7Str=\"\",this.myDate={}}},{key:\"ValidInput\",value:function(e){return e&&void 0!==e}}])&&r(t.prototype,n),a&&r(t,a),e}();t.a=a.moHl7DateFactory},function(e,t,n){\"use strict\";function i(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,i=new Array(t);n8||e.length<7)return!1;7===e.length&&(e=\"0\"+e);var t=e.toUpperCase().split(\"\"),n=\"0123456789ABCDEFGHJKLMNPQRTUVWXY\".indexOf(t[6]);if(-1===n)return!1;var i=3*t[0]+5*t[1]+8*t[2]+4*t[3]+2*t[4]+1*t[5]+6*n;if(isNaN(i))return!1;var r=\"YXWTLKJHFBA\".charAt(i%11);return\"\"!==r&&r===t[7]}},{key:\"calculateNZIdentifierCheckSum\",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\" ABCDEFGHJKLMNPQRSTUVWXYZ\",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:\"765432\";return e.split(\"\").reduce((function(e,i,r){return isNaN(Number(i))?e+t.indexOf(i)*n[r]:e+i*n[r]}),0)}},{key:\"isValidNZOrganisationOrFacilityNumber\",value:function(e,t){var n=new RegExp(/G([a-zA-Z\\d]{2})(\\d{3})-[a-zA-Z]/),r=new RegExp(/F([a-zA-Z\\d]{2})(\\d{3})-[a-zA-Z\\d]/),a=\"organisation\"===t?n:r,o=i(e.split(\"-\"),2),s=o[0],c=o[1],l=this.calculateNZIdentifierCheckSum(s);return 0!=l%11&&a.test(e)&&\" ABCDEFGHJKLMNPQRSTUVWXYZ\"[l%11]===c}},{key:\"isValidNZOrganisationNumber\",value:function(e){return this.isValidNZOrganisationOrFacilityNumber(e,\"organisation\")}},{key:\"isValidNZFacilityNumber\",value:function(e){return this.isValidNZOrganisationOrFacilityNumber(e,\"facility\")}},{key:\"isValidNZCommonPersonNumber\",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=new RegExp(/[\\d][a-zA-Z\\d][a-zA-Z]{4}/),i=e.replace(e.charAt(t),\"\"),r=\" ABCDEFGHJKLMNPQRSTUVWXYZ\",a=\"65432\",o=this.calculateNZIdentifierCheckSum(i,r,a),s=o%11;if(0===s)return!1;var c=11-s!=10?11-o%11:0;return 6===e.length&&n.test(e)&&c===Number(e[1])}},{key:\"isValidMedicalObjectsID\",value:function(e,t){if(!e)return!1;var n=[0,4129,8258,12387,16516,20645,24774,28903,33032,37161,41290,45419,49548,53677,57806,61935,4657,528,12915,8786,21173,17044,29431,25302,37689,33560,45947,41818,54205,50076,62463,58334,9314,13379,1056,5121,25830,29895,17572,21637,42346,46411,34088,38153,58862,62927,50604,54669,13907,9842,5649,1584,30423,26358,22165,18100,46939,42874,38681,34616,63455,59390,55197,51132,18628,22757,26758,30887,2112,6241,10242,14371,51660,55789,59790,63919,35144,39273,43274,47403,23285,19156,31415,27286,6769,2640,14899,10770,56317,52188,64447,60318,39801,35672,47931,43802,27814,31879,19684,23749,11298,15363,3168,7233,60846,64911,52716,56781,44330,48395,36200,40265,32407,28342,24277,20212,15891,11826,7761,3696,65439,61374,57309,53244,48923,44858,40793,36728,37256,33193,45514,41451,53516,49453,61774,57711,4224,161,12482,8419,20484,16421,28742,24679,33721,37784,41979,46042,49981,54044,58239,62302,689,4752,8947,13010,16949,21012,25207,29270,46570,42443,38312,34185,62830,58703,54572,50445,13538,9411,5280,1153,29798,25671,21540,17413,42971,47098,34713,38840,59231,63358,50973,55100,9939,14066,1681,5808,26199,30326,17941,22068,55628,51565,63758,59695,39368,35305,47498,43435,22596,18533,30726,26663,6336,2273,14466,10403,52093,56156,60223,64286,35833,39896,43963,48026,19061,23124,27191,31254,2801,6864,10931,14994,64814,60687,56684,52557,48554,44427,40424,36297,31782,27655,23652,19525,15522,11395,7392,3265,61215,65342,53085,57212,44955,49082,36825,40952,28183,32310,20053,24180,11923,16050,3793,7920];function i(e,t){return n[255&(t^s(e)^0)]^t>>8&255}function r(e){return/[A-Z]/.test(e)}function a(e){return/[0-9]/.test(e)}function o(e){return/[0-9A-HJ-LP-Z]/.test(e)}function s(e){var t=e,n=t.charCodeAt(0);if(55296<=n&&n<=56319){var i=n;return 1===t.length?n:1024*(i-55296)+(t.charCodeAt(1)-56320)+65536}return n}return null===t&&(t=!1),e=e.toUpperCase(),!(!t&&11!==e.length||e.length<8||e.length>11||(10===e.length?e=e.substr(0,6)+\"0\"+e.substr(6,4):9===e.length?e=e.substr(0,6)+\"00\"+e.substr(6,3):8===e.length&&(e=e.substr(0,6)+\"000\"+e.substr(6,2)),!(r(e[0])&&r(e[1])&&a(e[2])&&a(e[3])&&a(e[4])&&a(e[5])&&o(e[6])&&o(e[7])&&o(e[8])&&o(e[9])&&o(e[10])&&function(e){if((e&=31)<=9)return String.fromCharCode(s(\"0\")+e);if(e+s(\"A\")-10>=s(\"A\")&&e+s(\"A\")-10<=s(\"H\"))return String.fromCharCode(s(\"A\")+(e-10));if(e+s(\"A\")-9>=s(\"J\")&&e+s(\"A\")-9<=s(\"L\"))return String.fromCharCode(s(\"A\")+(e-9));if(e+s(\"A\")-6>=s(\"P\")&&e+s(\"A\")-6<=s(\"Z\"))return String.fromCharCode(s(\"A\")+(e-6));throw new RangeError}(function(e,t){for(var n=t,r=0;r1}},{key:\"isTablet\",value:function(){return/(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/.test(this.$window.navigator.userAgent.toLowerCase())}},{key:\"isDevice\",value:function(){return console.log(\"agent:\",this.$window.navigator.userAgent.toLowerCase()),/(iphone|ipod|ipad|android|blackberry)/.test(this.$window.navigator.userAgent.toLowerCase())}},{key:\"isIE\",value:function(){return this.$window.navigator.userAgent.indexOf(\"MSIE\")>0||!!this.$window.navigator.userAgent.match(/Trident\\/7\\./)}}])&&i(t.prototype,n),r&&i(t,r),e}();t.a=r},function(e,t,n){\"use strict\";function i(e,t){for(var n=0;n1&&void 0!==arguments[1]&&arguments[1];return e?(t&&e.toLowerCase(),e.split(\" \").map((function(e){return\"\".concat(e.charAt(0).toUpperCase()).concat(e.substring(1))})).join(\" \").split(\"-\").map((function(e){return\"\".concat(e.charAt(0).toUpperCase()).concat(e.substring(1))})).join(\"-\")):\"\"}},{key:\"capitaliseFirstLetter\",value:function(e){return e?e.charAt(0).toUpperCase()+e.slice(1):\"\"}},{key:\"stringToDate\",value:function(e){return e?this.moment(e).format(\"YYYY-MM-DD\"):null}}])&&i(t.prototype,n),r&&i(t,r),e}();t.a=r},function(e,t,n){\"use strict\";function i(e,t){for(var n=0;n=0;r--)n=parseInt(e.charAt(r),10),i&&(n*=2)>9&&(n-=9),t+=n,i=!i;return t%10==0}},{key:\"isValidRoutingID\",value:function(e){return this.MOProviderNumberValidatorService.isValidRoutingID(e)}},{key:\"isValidProviderNumber\",value:function(e){return this.MOProviderNumberValidatorService.isValidProviderNumber(e)}},{key:\"isValidMedicalObjectsID\",value:function(e,t){return this.MOProviderNumberValidatorService.isValidMedicalObjectsID(e,t)}},{key:\"validateName\",value:function(e){if(!e)return\"\";if(e.length>48)return\"* Name must be 48 characters or less\";var t=e.match(/[^a-zA-Z\\-'\\s]/g);return e.match(/[a-zA-Z]/g)?null!==t&&t.length>0?\"* The following characters are invalid: \".concat(t.join(\"\")):\"\":\"* Names must contain letters\"}},{key:\"validateMedicareNo\",value:function(e){return this.MOPatientEditService.validateMedicareNo(e)}},{key:\"validateAreaCode\",value:function(e,t){return e&&\"\"!==e?!0===t&&\"04\"!==e?\"* Area code must be 04\":isNaN(Number(e))?\"* Area code can only contain numbers\":2!==e.length?\"* Area code must be 2 digits long\":\"\":\"\"}},{key:\"validatePhoneNumber\",value:function(e){return e&&\"\"!==e?isNaN(Number(e))?\"* Can only contain numbers\":8!==e.length?\"* Must be 8 digits long\":\"\":\"\"}},{key:\"validateEmail\",value:function(e){return\"\"===e||e.match(/^(([^<>()[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/)?\"\":\"* Must include an @ symbol and a url extension (e.g. example@domain.com)\"}},{key:\"validateDOB\",value:function(e,t){var n=t.minDate,i=t.maxDate;return angular.isUndefined(e)?\"* Invalid date selected. Please enter in a valid date or use the datepicker\":\"\"===e||null===e?\"* Date of birth is required\":ei?\"* Invalid selection. Please choose a date between \".concat(n.getFullYear(),\" and today\"):\"\"}},{key:\"validatePostcode\",value:function(e){return\"\"===e||/^[0-9]+$/.test(e)?\"\":\"* Only numbers are permitted\"}},{key:\"validateDVANumber\",value:function(e){return this.MODVAInputService.validateDVANumber(e)}},{key:\"validateHealthCareIdentifier\",value:function(e){if(16!==e.length)return!1;switch(e[5]){case\"0\":return\"IHI\";case\"1\":return\"HPI-I\";case\"2\":return\"HPI-O\";default:return!1}}},{key:\"isValidHPII\",value:function(e){return e?e&&!this.checkHILength(e)?\"* HPI-I number must be 16 characters\":this.luhnChecker(e)&&this.validateHIType(e,\"HPI-I\")?\"\":\"* HPI-I number is invalid\":\"\"}},{key:\"isValidHPIO\",value:function(e){return e?this.checkHILength(e)?this.luhnChecker(e)&&this.validateHIType(e,\"HPI-O\")?\"\":\"* HPI-O number is invalid\":\"* HPI-O number must be 16 characters\":\"\"}},{key:\"isValidIHI\",value:function(e){return e?e&&!this.checkHILength(e)?\"* IHI number must be 16 characters\":this.luhnChecker(e)&&this.validateHIType(e,\"IHI\")?\"\":\"* IHI number is invalid\":\"\"}},{key:\"checkHILength\",value:function(e){return e&&16===e.length}},{key:\"validateHIType\",value:function(e,t){return this.validateHealthCareIdentifier(e)===t}},{key:\"isNumberKey\",value:function(e){return\"0123456789\".indexOf(e)>=0}},{key:\"specialKeys\",value:function(e){switch(e){case 8:case 9:case 37:case 39:case 46:return!0;default:return!1}}},{key:\"containsOnlyNumbers\",value:function(e){return/^\\d+$/.test(e)}}])&&i(t.prototype,n),r&&i(t,r),e}();t.a=r},function(e,t,n){\"use strict\";function i(e,t){for(var n=0;n<\\/script>\\n')+\"