hof 22.0.0-timeout-warning-beta.1 → 22.0.0-timeout-warning-beta.2
Sign up to get free protection for your applications and to get access to all the features.
- package/.nyc_output/39365c14-40b7-4634-b733-940b72a11984.json +1 -0
- package/.nyc_output/processinfo/{39337dba-f075-4b5c-ad46-31665a16d443.json → 39365c14-40b7-4634-b733-940b72a11984.json} +1 -1
- package/.nyc_output/processinfo/index.json +1 -1
- package/frontend/themes/gov-uk/client-js/session-timeout-dialog.js +43 -55
- package/package.json +1 -1
- package/sandbox/public/js/bundle.js +43 -55
- package/.nyc_output/39337dba-f075-4b5c-ad46-31665a16d443.json +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"parent":null,"pid":
|
1
|
+
{"parent":null,"pid":73921,"argv":["/Users/user/.nvm/versions/node/v20.9.0/bin/node","/Users/user/Documents/HO/HOF/hof/node_modules/.bin/_mocha","test/**/*.spec.js","sandbox/test/**/*.spec.js"],"execArgv":[],"cwd":"/Users/user/Documents/HO/HOF/hof","time":1721154214074,"ppid":73917,"coverageFilename":"/Users/user/Documents/HO/HOF/hof/.nyc_output/39365c14-40b7-4634-b733-940b72a11984.json","externalId":"","uuid":"39365c14-40b7-4634-b733-940b72a11984","files":["/Users/user/Documents/HO/HOF/hof/model/index.js","/Users/user/Documents/HO/HOF/hof/components/index.js","/Users/user/Documents/HO/HOF/hof/components/address-lookup/index.js","/Users/user/Documents/HO/HOF/hof/components/address-lookup/default-model.js","/Users/user/Documents/HO/HOF/hof/components/address-lookup/defaults.js","/Users/user/Documents/HO/HOF/hof/components/clear-session/index.js","/Users/user/Documents/HO/HOF/hof/components/combine-and-loop-fields/index.js","/Users/user/Documents/HO/HOF/hof/components/date/index.js","/Users/user/Documents/HO/HOF/hof/components/date/fields.js","/Users/user/Documents/HO/HOF/hof/components/emailer/index.js","/Users/user/Documents/HO/HOF/hof/components/emailer/email-service.js","/Users/user/Documents/HO/HOF/hof/components/emailer/emailer.js","/Users/user/Documents/HO/HOF/hof/components/emailer/transports/index.js","/Users/user/Documents/HO/HOF/hof/components/emailer/transports/smtp.js","/Users/user/Documents/HO/HOF/hof/components/emailer/transports/ses.js","/Users/user/Documents/HO/HOF/hof/components/emailer/transports/stub.js","/Users/user/Documents/HO/HOF/hof/components/emailer/transports/debug.js","/Users/user/Documents/HO/HOF/hof/components/homeoffice-countries/index.js","/Users/user/Documents/HO/HOF/hof/config/component-defaults.js","/Users/user/Documents/HO/HOF/hof/components/notify/index.js","/Users/user/Documents/HO/HOF/hof/components/notify/notify.js","/Users/user/Documents/HO/HOF/hof/components/summary/index.js","/Users/user/Documents/HO/HOF/hof/config/rate-limits.js","/Users/user/Documents/HO/HOF/hof/middleware/rate-limiter.js","/Users/user/Documents/HO/HOF/hof/config/hof-defaults.js","/Users/user/Documents/HO/HOF/hof/controller/base-controller.js","/Users/user/Documents/HO/HOF/hof/controller/formatting/index.js","/Users/user/Documents/HO/HOF/hof/controller/validation/index.js","/Users/user/Documents/HO/HOF/hof/controller/validation/validators.js","/Users/user/Documents/HO/HOF/hof/controller/validation/email.js","/Users/user/Documents/HO/HOF/hof/controller/validation-error.js","/Users/user/Documents/HO/HOF/hof/utilities/index.js","/Users/user/Documents/HO/HOF/hof/utilities/autofill/index.js","/Users/user/Documents/HO/HOF/hof/utilities/autofill/inputs.js","/Users/user/Documents/HO/HOF/hof/utilities/test-data/index.js","/Users/user/Documents/HO/HOF/hof/utilities/countries.js","/Users/user/Documents/HO/HOF/hof/utilities/helpers/index.js","/Users/user/Documents/HO/HOF/hof/utilities/reqres/index.js","/Users/user/Documents/HO/HOF/hof/config/sanitisation-rules.js","/Users/user/Documents/HO/HOF/hof/controller/formatting/formatters.js","/Users/user/Documents/HO/HOF/hof/controller/index.js","/Users/user/Documents/HO/HOF/hof/controller/behaviour-session.js","/Users/user/Documents/HO/HOF/hof/controller/behaviour-hooks.js","/Users/user/Documents/HO/HOF/hof/controller/controller.js","/Users/user/Documents/HO/HOF/hof/sandbox/apps/sandbox/behaviours/country-select.js","/Users/user/Documents/HO/HOF/hof/frontend/template-mixins/mixins/index.js","/Users/user/Documents/HO/HOF/hof/frontend/template-mixins/mixins/template-mixins.js","/Users/user/Documents/HO/HOF/hof/frontend/template-mixins/mixins/render.js","/Users/user/Documents/HO/HOF/hof/frontend/template-mixins/mixins/helpers.js","/Users/user/Documents/HO/HOF/hof/index.js","/Users/user/Documents/HO/HOF/hof/frontend/index.js","/Users/user/Documents/HO/HOF/hof/frontend/govuk-template/index.js","/Users/user/Documents/HO/HOF/hof/frontend/govuk-template/build/index.js","/Users/user/Documents/HO/HOF/hof/frontend/govuk-template/build/config.js","/Users/user/Documents/HO/HOF/hof/frontend/template-partials/index.js","/Users/user/Documents/HO/HOF/hof/frontend/template-partials/translations/index.js","/Users/user/Documents/HO/HOF/hof/frontend/themes/index.js","/Users/user/Documents/HO/HOF/hof/frontend/themes/gov-uk/index.js","/Users/user/Documents/HO/HOF/hof/frontend/toolkit/index.js","/Users/user/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/helpers.js","/Users/user/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/form-focus.js","/Users/user/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/progressive-reveal.js","/Users/user/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/validation.js","/Users/user/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/character-count.js","/Users/user/Documents/HO/HOF/hof/middleware/index.js","/Users/user/Documents/HO/HOF/hof/middleware/cookies.js","/Users/user/Documents/HO/HOF/hof/middleware/errors.js","/Users/user/Documents/HO/HOF/hof/middleware/not-found.js","/Users/user/Documents/HO/HOF/hof/middleware/deep-translate.js","/Users/user/Documents/HO/HOF/hof/lib/markdown.js","/Users/user/Documents/HO/HOF/hof/lib/router.js","/Users/user/Documents/HO/HOF/hof/wizard/index.js","/Users/user/Documents/HO/HOF/hof/wizard/behaviours/index.js","/Users/user/Documents/HO/HOF/hof/wizard/behaviours/complete.js","/Users/user/Documents/HO/HOF/hof/wizard/util/constants.js","/Users/user/Documents/HO/HOF/hof/lib/helpers.js","/Users/user/Documents/HO/HOF/hof/lib/health.js","/Users/user/Documents/HO/HOF/hof/lib/serve-static.js","/Users/user/Documents/HO/HOF/hof/lib/ga-tag.js","/Users/user/Documents/HO/HOF/hof/lib/sessions.js","/Users/user/Documents/HO/HOF/hof/lib/settings.js","/Users/user/Documents/HO/HOF/hof/lib/logger.js","/Users/user/Documents/HO/HOF/hof/build/index.js","/Users/user/Documents/HO/HOF/hof/config/builder-defaults.js","/Users/user/Documents/HO/HOF/hof/transpiler/index.js","/Users/user/Documents/HO/HOF/hof/transpiler/lib/compile.js","/Users/user/Documents/HO/HOF/hof/transpiler/lib/build.js","/Users/user/Documents/HO/HOF/hof/transpiler/lib/expand-dirs.js","/Users/user/Documents/HO/HOF/hof/transpiler/lib/aggregate.js","/Users/user/Documents/HO/HOF/hof/transpiler/lib/write-files.js","/Users/user/Documents/HO/HOF/hof/model/apis/index.js","/Users/user/Documents/HO/HOF/hof/model/apis/html-to-pdf-converter.js","/Users/user/Documents/HO/HOF/hof/wizard/model.js","/Users/user/Documents/HO/HOF/hof/wizard/middleware/back-links.js","/Users/user/Documents/HO/HOF/hof/wizard/util/helpers.js","/Users/user/Documents/HO/HOF/hof/wizard/middleware/check-complete.js","/Users/user/Documents/HO/HOF/hof/wizard/middleware/check-progress.js","/Users/user/Documents/HO/HOF/hof/wizard/middleware/check-session.js","/Users/user/Documents/HO/HOF/hof/wizard/middleware/csrf.js","/Users/user/Documents/HO/HOF/hof/sandbox/test/_unit/example_app/sections/summary-data-sections.spec.js","/Users/user/Documents/HO/HOF/hof/sandbox/apps/sandbox/sections/summary-data-sections.js","/Users/user/Documents/HO/HOF/hof/sandbox/apps/sandbox/lib/staticAppealStages.js","/Users/user/Documents/HO/HOF/hof/sandbox/apps/sandbox/fields.js","/Users/user/Documents/HO/HOF/hof/sandbox/test/helpers/utilities.js","/Users/user/Documents/HO/HOF/hof/sandbox/apps/sandbox/behaviours/international-number.js","/Users/user/Documents/HO/HOF/hof/lib/encryption.js","/Users/user/Documents/HO/HOF/hof/wizard/middleware/session.js","/Users/user/Documents/HO/HOF/hof/wizard/middleware/session-model.js"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"processes":{"39337dba-f075-4b5c-ad46-31665a16d443":{"parent":null,"children":[]}},"files":{"/Users/user/Documents/HO/HOF/hof/model/index.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/model/apis/axios-settings.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/components/index.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/components/address-lookup/index.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/components/address-lookup/default-model.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/components/address-lookup/defaults.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/components/clear-session/index.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/components/combine-and-loop-fields/index.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/components/date/index.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/components/date/fields.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/components/emailer/index.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/components/emailer/email-service.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/components/emailer/emailer.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/components/emailer/transports/index.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/components/emailer/transports/smtp.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/components/emailer/transports/ses.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/components/emailer/transports/stub.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/components/emailer/transports/debug.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/components/homeoffice-countries/index.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/config/component-defaults.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/components/notify/index.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/components/notify/notify.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/components/summary/index.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/config/rate-limits.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/middleware/rate-limiter.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/config/hof-defaults.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/controller/base-controller.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/controller/formatting/index.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/controller/validation/index.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/controller/validation/validators.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/controller/validation/email.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/controller/validation-error.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/utilities/index.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/utilities/autofill/index.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/utilities/autofill/inputs.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/utilities/test-data/index.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/utilities/countries.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/utilities/helpers/index.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/utilities/reqres/index.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/config/sanitisation-rules.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/controller/formatting/formatters.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/controller/index.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/controller/behaviour-session.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/controller/behaviour-hooks.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/controller/controller.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/sandbox/apps/sandbox/behaviours/country-select.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/frontend/template-mixins/mixins/index.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/frontend/template-mixins/mixins/template-mixins.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/frontend/template-mixins/mixins/render.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/frontend/template-mixins/mixins/helpers.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/index.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/frontend/index.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/frontend/govuk-template/index.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/frontend/govuk-template/build/index.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/frontend/govuk-template/build/config.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/frontend/template-partials/index.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/frontend/template-partials/translations/index.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/frontend/themes/index.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/frontend/themes/gov-uk/index.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/frontend/toolkit/index.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/helpers.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/form-focus.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/progressive-reveal.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/validation.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/character-count.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/middleware/index.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/middleware/cookies.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/middleware/errors.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/middleware/not-found.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/middleware/deep-translate.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/lib/markdown.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/lib/router.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/wizard/index.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/wizard/behaviours/index.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/wizard/behaviours/complete.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/wizard/util/constants.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/lib/helpers.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/lib/health.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/lib/serve-static.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/lib/ga-tag.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/lib/sessions.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/lib/settings.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/lib/logger.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/build/index.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/config/builder-defaults.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/transpiler/index.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/transpiler/lib/compile.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/transpiler/lib/build.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/transpiler/lib/expand-dirs.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/transpiler/lib/aggregate.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/transpiler/lib/write-files.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/model/apis/index.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/model/apis/html-to-pdf-converter.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/wizard/model.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/wizard/middleware/back-links.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/wizard/util/helpers.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/wizard/middleware/check-complete.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/wizard/middleware/check-progress.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/wizard/middleware/check-session.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/wizard/middleware/csrf.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/sandbox/test/_unit/example_app/sections/summary-data-sections.spec.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/sandbox/apps/sandbox/sections/summary-data-sections.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/sandbox/apps/sandbox/lib/staticAppealStages.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/sandbox/apps/sandbox/fields.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/sandbox/test/helpers/utilities.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/sandbox/apps/sandbox/behaviours/international-number.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/lib/encryption.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/wizard/middleware/session.js":["39337dba-f075-4b5c-ad46-31665a16d443"],"/Users/user/Documents/HO/HOF/hof/wizard/middleware/session-model.js":["39337dba-f075-4b5c-ad46-31665a16d443"]},"externalIds":{}}
|
1
|
+
{"processes":{"39365c14-40b7-4634-b733-940b72a11984":{"parent":null,"children":[]}},"files":{"/Users/user/Documents/HO/HOF/hof/model/index.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/components/index.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/components/address-lookup/index.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/components/address-lookup/default-model.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/components/address-lookup/defaults.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/components/clear-session/index.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/components/combine-and-loop-fields/index.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/components/date/index.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/components/date/fields.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/components/emailer/index.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/components/emailer/email-service.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/components/emailer/emailer.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/components/emailer/transports/index.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/components/emailer/transports/smtp.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/components/emailer/transports/ses.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/components/emailer/transports/stub.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/components/emailer/transports/debug.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/components/homeoffice-countries/index.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/config/component-defaults.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/components/notify/index.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/components/notify/notify.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/components/summary/index.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/config/rate-limits.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/middleware/rate-limiter.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/config/hof-defaults.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/controller/base-controller.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/controller/formatting/index.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/controller/validation/index.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/controller/validation/validators.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/controller/validation/email.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/controller/validation-error.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/utilities/index.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/utilities/autofill/index.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/utilities/autofill/inputs.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/utilities/test-data/index.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/utilities/countries.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/utilities/helpers/index.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/utilities/reqres/index.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/config/sanitisation-rules.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/controller/formatting/formatters.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/controller/index.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/controller/behaviour-session.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/controller/behaviour-hooks.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/controller/controller.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/sandbox/apps/sandbox/behaviours/country-select.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/frontend/template-mixins/mixins/index.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/frontend/template-mixins/mixins/template-mixins.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/frontend/template-mixins/mixins/render.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/frontend/template-mixins/mixins/helpers.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/index.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/frontend/index.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/frontend/govuk-template/index.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/frontend/govuk-template/build/index.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/frontend/govuk-template/build/config.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/frontend/template-partials/index.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/frontend/template-partials/translations/index.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/frontend/themes/index.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/frontend/themes/gov-uk/index.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/frontend/toolkit/index.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/helpers.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/form-focus.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/progressive-reveal.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/validation.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/frontend/toolkit/assets/javascript/character-count.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/middleware/index.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/middleware/cookies.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/middleware/errors.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/middleware/not-found.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/middleware/deep-translate.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/lib/markdown.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/lib/router.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/wizard/index.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/wizard/behaviours/index.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/wizard/behaviours/complete.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/wizard/util/constants.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/lib/helpers.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/lib/health.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/lib/serve-static.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/lib/ga-tag.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/lib/sessions.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/lib/settings.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/lib/logger.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/build/index.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/config/builder-defaults.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/transpiler/index.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/transpiler/lib/compile.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/transpiler/lib/build.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/transpiler/lib/expand-dirs.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/transpiler/lib/aggregate.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/transpiler/lib/write-files.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/model/apis/index.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/model/apis/html-to-pdf-converter.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/wizard/model.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/wizard/middleware/back-links.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/wizard/util/helpers.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/wizard/middleware/check-complete.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/wizard/middleware/check-progress.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/wizard/middleware/check-session.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/wizard/middleware/csrf.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/sandbox/test/_unit/example_app/sections/summary-data-sections.spec.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/sandbox/apps/sandbox/sections/summary-data-sections.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/sandbox/apps/sandbox/lib/staticAppealStages.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/sandbox/apps/sandbox/fields.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/sandbox/test/helpers/utilities.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/sandbox/apps/sandbox/behaviours/international-number.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/lib/encryption.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/wizard/middleware/session.js":["39365c14-40b7-4634-b733-940b72a11984"],"/Users/user/Documents/HO/HOF/hof/wizard/middleware/session-model.js":["39365c14-40b7-4634-b733-940b72a11984"]},"externalIds":{}}
|
@@ -1,3 +1,6 @@
|
|
1
|
+
/* eslint max-len: 0 */
|
2
|
+
'use strict';
|
3
|
+
|
1
4
|
const $ = require('jquery');
|
2
5
|
|
3
6
|
// Modal dialog prototype
|
@@ -17,8 +20,8 @@ window.GOVUK.sessionDialog = {
|
|
17
20
|
$timer: $('#js-modal-dialog .timer'),
|
18
21
|
$accessibleTimer: $('#js-modal-dialog .at-timer'),
|
19
22
|
|
20
|
-
secondsSessionTimeout: parseInt($('#js-modal-dialog').data('session-timeout') || 1800),
|
21
|
-
secondsTimeoutWarning: parseInt($('#js-modal-dialog').data('session-timeout-warning') || 300),
|
23
|
+
secondsSessionTimeout: parseInt($('#js-modal-dialog').data('session-timeout'), 10 || 1800),
|
24
|
+
secondsTimeoutWarning: parseInt($('#js-modal-dialog').data('session-timeout-warning'), 10 || 300),
|
22
25
|
timeoutRedirectUrl: $('#js-modal-dialog').data('url-redirect'),
|
23
26
|
timeSessionRefreshed: new Date(),
|
24
27
|
|
@@ -26,18 +29,18 @@ window.GOVUK.sessionDialog = {
|
|
26
29
|
window.GOVUK.sessionDialog.$closeButton.on('click', function (e) {
|
27
30
|
e.preventDefault();
|
28
31
|
window.GOVUK.sessionDialog.closeDialog();
|
29
|
-
})
|
32
|
+
});
|
30
33
|
|
31
34
|
// Close modal when ESC pressed
|
32
35
|
$(document).keydown(function (e) {
|
33
36
|
if (window.GOVUK.sessionDialog.isDialogOpen() && e.keyCode === 27) {
|
34
37
|
window.GOVUK.sessionDialog.closeDialog();
|
35
38
|
}
|
36
|
-
})
|
39
|
+
});
|
37
40
|
},
|
38
41
|
|
39
42
|
isDialogOpen: function () {
|
40
|
-
return window.GOVUK.sessionDialog.el
|
43
|
+
return window.GOVUK.sessionDialog.el.open;
|
41
44
|
},
|
42
45
|
|
43
46
|
isConfigured: function () {
|
@@ -81,7 +84,7 @@ window.GOVUK.sessionDialog = {
|
|
81
84
|
if (window.GOVUK.sessionDialog.$lastFocusedEl) {
|
82
85
|
window.setTimeout(function () {
|
83
86
|
window.GOVUK.sessionDialog.$lastFocusedEl.focus();
|
84
|
-
}, 0)
|
87
|
+
}, 0);
|
85
88
|
}
|
86
89
|
},
|
87
90
|
|
@@ -104,51 +107,46 @@ window.GOVUK.sessionDialog = {
|
|
104
107
|
},
|
105
108
|
|
106
109
|
numberToWords: function (n) {
|
107
|
-
|
108
|
-
let
|
109
|
-
let
|
110
|
-
let
|
111
|
-
let
|
112
|
-
let
|
113
|
-
let
|
114
|
-
let
|
115
|
-
|
116
|
-
|
117
|
-
let i
|
118
|
-
let word
|
119
|
-
let words = 'and'
|
120
|
-
|
121
|
-
if (parseInt(string) === 0) {
|
110
|
+
const string = n.toString();
|
111
|
+
let start;
|
112
|
+
let end;
|
113
|
+
let chunk;
|
114
|
+
let ints;
|
115
|
+
let i;
|
116
|
+
let word;
|
117
|
+
let words = 'and';
|
118
|
+
|
119
|
+
if (parseInt(string, 10) === 0) {
|
122
120
|
return 'zero';
|
123
121
|
}
|
124
122
|
|
125
123
|
/* Array of units as words */
|
126
|
-
units = ['', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten', 'eleven', 'twelve', 'thirteen', 'fourteen', 'fifteen', 'sixteen', 'seventeen', 'eighteen', 'nineteen'];
|
124
|
+
const units = ['', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten', 'eleven', 'twelve', 'thirteen', 'fourteen', 'fifteen', 'sixteen', 'seventeen', 'eighteen', 'nineteen'];
|
127
125
|
|
128
126
|
/* Array of tens as words */
|
129
|
-
tens = ['', '', 'twenty', 'thirty', 'forty', 'fifty', 'sixty', 'seventy', 'eighty', 'ninety'];
|
127
|
+
const tens = ['', '', 'twenty', 'thirty', 'forty', 'fifty', 'sixty', 'seventy', 'eighty', 'ninety'];
|
130
128
|
|
131
129
|
/* Array of scales as words */
|
132
|
-
scales = ['', 'thousand', 'million', 'billion', 'trillion', 'quadrillion', 'quintillion', 'sextillion', 'septillion', 'octillion', 'nonillion', 'decillion', 'undecillion', 'duodecillion', 'tredecillion', 'quatttuor-decillion', 'quindecillion', 'sexdecillion', 'septen-decillion', 'octodecillion', 'novemdecillion', 'vigintillion', 'centillion'];
|
130
|
+
const scales = ['', 'thousand', 'million', 'billion', 'trillion', 'quadrillion', 'quintillion', 'sextillion', 'septillion', 'octillion', 'nonillion', 'decillion', 'undecillion', 'duodecillion', 'tredecillion', 'quatttuor-decillion', 'quindecillion', 'sexdecillion', 'septen-decillion', 'octodecillion', 'novemdecillion', 'vigintillion', 'centillion'];
|
133
131
|
|
134
132
|
/* Split user arguemnt into 3 digit chunks from right to left */
|
135
133
|
start = string.length;
|
136
|
-
chunks = [];
|
134
|
+
const chunks = [];
|
137
135
|
while (start > 0) {
|
138
136
|
end = start;
|
139
137
|
chunks.push(string.slice((start = Math.max(0, start - 3)), end));
|
140
138
|
}
|
141
139
|
|
142
140
|
/* Check if function has enough scale words to be able to stringify the user argument */
|
143
|
-
chunksLen = chunks.length
|
141
|
+
const chunksLen = chunks.length;
|
144
142
|
if (chunksLen > scales.length) {
|
145
143
|
return '';
|
146
144
|
}
|
147
145
|
|
148
146
|
/* Stringify each integer in each chunk */
|
149
|
-
words = []
|
147
|
+
words = [];
|
150
148
|
for (i = 0; i < chunksLen; i++) {
|
151
|
-
chunk = parseInt(chunks[i]);
|
149
|
+
chunk = parseInt(chunks[i], 10);
|
152
150
|
|
153
151
|
if (chunk) {
|
154
152
|
/* Split chunk into array of individual integers */
|
@@ -160,22 +158,22 @@ window.GOVUK.sessionDialog = {
|
|
160
158
|
}
|
161
159
|
|
162
160
|
/* Add scale word if chunk is not zero and array item exists */
|
163
|
-
if ((word
|
161
|
+
if ((word === scales[i])) {
|
164
162
|
words.push(word);
|
165
163
|
}
|
166
164
|
|
167
165
|
/* Add unit word if array item exists */
|
168
|
-
if ((word
|
166
|
+
if ((word === units[ints[0]])) {
|
169
167
|
words.push(word);
|
170
168
|
}
|
171
169
|
|
172
170
|
/* Add tens word if array item exists */
|
173
|
-
if ((word
|
171
|
+
if ((word === tens[ints[1]])) {
|
174
172
|
words.push(word);
|
175
173
|
}
|
176
174
|
|
177
175
|
/* Add hundreds word if array item exists */
|
178
|
-
if ((word
|
176
|
+
if ((word === units[ints[2]])) {
|
179
177
|
words.push(word + ' hundred');
|
180
178
|
}
|
181
179
|
}
|
@@ -201,7 +199,7 @@ window.GOVUK.sessionDialog = {
|
|
201
199
|
},
|
202
200
|
|
203
201
|
pluralise: function (n, unit) {
|
204
|
-
return n
|
202
|
+
return n === 1 ? unit : unit + 's';
|
205
203
|
},
|
206
204
|
|
207
205
|
numericSpan: function (n, unit) {
|
@@ -217,7 +215,7 @@ window.GOVUK.sessionDialog = {
|
|
217
215
|
countdownAtText: function (minutes, seconds) {
|
218
216
|
const minutesText = window.GOVUK.sessionDialog.timeToWords(minutes, 'minute');
|
219
217
|
const secondsText = window.GOVUK.sessionDialog.timeToWords(seconds, 'second');
|
220
|
-
return minutes > 0 ? minutesText :
|
218
|
+
return minutes > 0 ? minutesText : secondsText;
|
221
219
|
},
|
222
220
|
|
223
221
|
startCountdown: function () {
|
@@ -236,11 +234,8 @@ window.GOVUK.sessionDialog = {
|
|
236
234
|
const timerExpired = secondsUntilSessionTimeout <= window.GOVUK.sessionDialog.secondsFinalWarning;
|
237
235
|
|
238
236
|
if (!timerExpired) {
|
239
|
-
|
240
237
|
const minutesLeft = parseInt(secondsUntilSessionTimeout / 60, 10);
|
241
238
|
const secondsLeft = parseInt(secondsUntilSessionTimeout % 60, 10);
|
242
|
-
|
243
|
-
|
244
239
|
const atMinutesText = window.GOVUK.sessionDialog.timeToWords(minutesLeft, 'minute');
|
245
240
|
const atSecondsText = window.GOVUK.sessionDialog.timeToWords(secondsLeft, 'second');
|
246
241
|
|
@@ -251,14 +246,13 @@ window.GOVUK.sessionDialog = {
|
|
251
246
|
const countdownText = window.GOVUK.sessionDialog.countdownText(minutesLeft, secondsLeft);
|
252
247
|
const text = window.GOVUK.sessionDialog.warningTextPrefix + '<strong>' + countdownText + '</strong>' + window.GOVUK.sessionDialog.warningTextSuffix;
|
253
248
|
const countdownAtText = window.GOVUK.sessionDialog.countdownAtText(atMinutesText, atSecondsText);
|
254
|
-
const atText = window.GOVUK.sessionDialog.warningTextPrefix + countdownAtText + window.GOVUK.sessionDialog.warningTextSuffix
|
249
|
+
const atText = window.GOVUK.sessionDialog.warningTextPrefix + countdownAtText + window.GOVUK.sessionDialog.warningTextSuffix + 'bgbhj ' + window.GOVUK.sessionDialog.warningText;
|
255
250
|
const extraText = '\n' + window.GOVUK.sessionDialog.warningTextExtra;
|
256
251
|
|
257
252
|
$timer.html(text + ' ' + extraText);
|
258
253
|
|
259
254
|
// Update screen reader friendly content every 20 secs
|
260
255
|
if (secondsLeft % 20 === 0) {
|
261
|
-
|
262
256
|
// Read out the extra content only once.
|
263
257
|
// Don't read out on iOS VoiceOver which stalls on the longer text
|
264
258
|
if (!timerRunOnce && !iOS) {
|
@@ -269,9 +263,9 @@ window.GOVUK.sessionDialog = {
|
|
269
263
|
}
|
270
264
|
}
|
271
265
|
|
272
|
-
window.GOVUK.sessionDialog.addTimer(countdown,20);
|
266
|
+
window.GOVUK.sessionDialog.addTimer(countdown, 20);
|
273
267
|
}
|
274
|
-
})()
|
268
|
+
})();
|
275
269
|
},
|
276
270
|
|
277
271
|
// Clears all timers
|
@@ -282,7 +276,7 @@ window.GOVUK.sessionDialog = {
|
|
282
276
|
},
|
283
277
|
|
284
278
|
refreshSession: function () {
|
285
|
-
$.get(
|
279
|
+
$.get('');
|
286
280
|
window.GOVUK.sessionDialog.timeSessionRefreshed = new Date();
|
287
281
|
window.GOVUK.sessionDialog.controller();
|
288
282
|
},
|
@@ -315,20 +309,16 @@ window.GOVUK.sessionDialog = {
|
|
315
309
|
|
316
310
|
const secondsUntilSessionTimeout = window.GOVUK.sessionDialog.secondsUntilSessionTimeout();
|
317
311
|
|
318
|
-
//timed out - redirect
|
319
312
|
if (secondsUntilSessionTimeout <= 0) {
|
313
|
+
// timed out - redirect
|
320
314
|
window.GOVUK.sessionDialog.redirect();
|
321
|
-
}
|
322
|
-
|
323
|
-
//timeout warning - show countdown and schedule redirect
|
324
|
-
else if (secondsUntilSessionTimeout <= window.GOVUK.sessionDialog.secondsTimeoutWarning) {
|
315
|
+
} else if (secondsUntilSessionTimeout <= window.GOVUK.sessionDialog.secondsTimeoutWarning) {
|
316
|
+
// timeout warning - show countdown and schedule redirect
|
325
317
|
window.GOVUK.sessionDialog.openDialog();
|
326
318
|
window.GOVUK.sessionDialog.startCountdown();
|
327
|
-
window.GOVUK.sessionDialog.addTimer(window.GOVUK.sessionDialog.controller,window.GOVUK.sessionDialog.secondsUntilSessionTimeout());
|
328
|
-
}
|
329
|
-
|
330
|
-
//wait for warning
|
331
|
-
else {
|
319
|
+
window.GOVUK.sessionDialog.addTimer(window.GOVUK.sessionDialog.controller, window.GOVUK.sessionDialog.secondsUntilSessionTimeout());
|
320
|
+
} else {
|
321
|
+
// wait for warning
|
332
322
|
window.GOVUK.sessionDialog.addTimer(window.GOVUK.sessionDialog.controller, window.GOVUK.sessionDialog.secondsUntilTimeoutWarning());
|
333
323
|
}
|
334
324
|
},
|
@@ -340,6 +330,4 @@ window.GOVUK.sessionDialog = {
|
|
340
330
|
window.GOVUK.sessionDialog.controller();
|
341
331
|
}
|
342
332
|
}
|
343
|
-
}
|
344
|
-
|
345
|
-
window.GOVUK = GOVUK;
|
333
|
+
};
|