{"version":3,"file":"alpine.bundle.min.js","sources":["../src/alpine-directives/ajaxLink.js","../src/utilities/string-utilities.js","../src/translations/filepond.nl.js","../src/utilities/cookieStorage.js","../src/validation-suites/validatorMappings.js","../src/validation-suites/index.js","../src/index.js","../src/alpine-directives/sanitize.js","../src/alpine-directives/slugify.js","../src/alpine-directives/translate.js","../src/alpine-components/autocomplete.js","../src/alpine-components/places-autocomplete.js","../src/alpine-components/favourites.js","../src/alpine-components/file-upload.js","../src/alpine-components/jobalert.js","../src/alpine-components/validator.js"],"sourcesContent":["const ajaxLink = (el, { value, modifiers, expression }, { Alpine, effect, cleanup }) => {\r\n\r\n effect(() => {\r\n\r\n if(!value){\r\n console.log('The parameter value is missing, which should be the id of the form.');\r\n }\r\n\r\n if(!modifiers[0]) {\r\n console.warn('The parameter modeifier is missing, which should be the name of the input field.');\r\n }\r\n\r\n el.onclick = (e) => {\r\n e.preventDefault();\r\n\r\n document.querySelector(`input[name=\"${modifiers[0]}\"]`).value = expression;;\r\n document.querySelector(`#${value}`).requestSubmit();\r\n };\r\n });\r\n\r\n};\r\n\r\nexport { ajaxLink };","const toSlug = (input) => {\r\n\r\n const disallowedCharacters = new RegExp('[^ \\\\-_0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ' +\r\n 'abcdefghijklmnopqrstuvwxyz\\u002e\\u00c0\\u00c1\\u00c2\\u00c3\\u00c4\\u00c5\\u00c6' +\r\n '\\u00c7\\u00c8\\u00c9\\u00ca\\u00cb\\u00cc\\u00cd\\u00ce\\u00cf\\u00d0\\u00d1' +\r\n '\\u00d2\\u00d3\\u00d4\\u00d5\\u00d6\\u00d8\\u00d9\\u00da\\u00db\\u00dc\\u00dd' +\r\n '\\u00de\\u00df\\u00e0\\u00e1\\u00e2\\u00e3\\u00e4\\u00e5\\u00e6\\u00e7\\u00e8' +\r\n '\\u00e9\\u00ea\\u00eb\\u00ec\\u00ed\\u00ee\\u00ef\\u00f0\\u00f1\\u00f2\\u00f3' +\r\n '\\u00f4\\u00f5\\u00f6\\u00f8\\u00f9\\u00fa\\u00fb\\u00fc\\u00fd\\u00fe\\u00ff]+',\r\n 'g');\r\n\r\n return input\r\n .normalize('NFD') // Normalize the string to NFD form\r\n .replace(/[\\u0300-\\u036f]/g, '') // Remove diacritics\r\n .replace(disallowedCharacters, ' ') // Replace non-whitelisted characters with space\r\n .replace(/[_ ]+/g, '-') // Replace underscores and spaces with dashes\r\n .toLowerCase()\r\n .replace(/^[-_]+/, '') // Trim leading - and _\r\n .replace(/[-_]+$/, '') // Trim trailing - and _\r\n .replace(/([-_])+/g, '$1'); // Collapse repeated - and _\r\n};\r\n\r\nconst startsWithPostalCode = (input) => {\r\n const regex = /^[1-9][0-9]{0,3}(\\s?[a-zA-Z]{0,2})?$/;\r\n return regex.test(input);\r\n};\r\n\r\nexport { toSlug, startsWithPostalCode };","const filepondTranslations = {\r\n labelIdle: 'Drag & Drop je bestanden of Bladeren ',\r\n labelInvalidField: 'Veld bevat ongeldige bestanden',\r\n labelFileWaitingForSize: 'Wachten op grootte',\r\n labelFileSizeNotAvailable: 'Grootte niet beschikbaar',\r\n labelFileLoading: 'Laden',\r\n labelFileLoadError: 'Fout tijdens laden',\r\n labelFileProcessing: 'Uploaden',\r\n labelFileProcessingComplete: 'Upload afgerond',\r\n labelFileProcessingAborted: 'Upload geannuleerd',\r\n labelFileProcessingError: 'Onbekende fout bij het uploaden. Probeer het nogmaals.',\r\n labelFileProcessingRevertError: 'Fout bij herstellen',\r\n labelFileRemoveError: 'Fout bij verwijderen',\r\n labelTapToCancel: 'tik om te annuleren',\r\n labelTapToRetry: 'tik om opnieuw te proberen',\r\n labelTapToUndo: 'tik om ongedaan te maken',\r\n labelButtonRemoveItem: 'Verwijderen',\r\n labelButtonAbortItemLoad: 'Afbreken',\r\n labelButtonRetryItemLoad: 'Opnieuw proberen',\r\n labelButtonAbortItemProcessing: 'Annuleren',\r\n labelButtonUndoItemProcessing: 'Ongedaan maken',\r\n labelButtonRetryItemProcessing: 'Opnieuw proberen',\r\n labelButtonProcessItem: 'Upload',\r\n labelMaxFileSizeExceeded: 'Bestand is te groot',\r\n labelMaxFileSize: 'Maximale bestandsgrootte is {filesize}',\r\n labelMaxTotalFileSizeExceeded: 'Maximale totale grootte overschreden',\r\n labelMaxTotalFileSize: 'Maximale totale bestandsgrootte is {filesize}',\r\n labelFileTypeNotAllowed: 'Ongeldig bestandstype',\r\n fileValidateTypeLabelExpectedTypes: 'Verwacht {allButLastType} of {lastType}'\r\n};\r\n\r\nexport { filepondTranslations };","const cookieStorage = {\r\n\r\n getItem(key) {\r\n let cookies = document.cookie.split(\";\");\r\n\r\n for (let i = 0; i < cookies.length; i++) {\r\n let cookie = cookies[i].split(\"=\");\r\n if (key == cookie[0].trim()) {\r\n return decodeURIComponent(cookie[1]);\r\n }\r\n }\r\n\r\n return null;\r\n },\r\n\r\n setItem(key, value) {\r\n document.cookie = key + ' = ' + encodeURIComponent(value) + ';path=/' \r\n }\r\n\r\n};\r\n\r\nexport { cookieStorage };","import { enforce } from 'vest';\r\nimport isEmail from 'validatorIsEmail';\r\n\r\nenforce.extend({ isEmail });\r\n\r\nconst validationMappings = {\r\n LengthValidator: (value, args) => {\r\n return enforce(value)\r\n .longerThanOrEquals(args.MinLength)\r\n .shorterThanOrEquals(args.MaxLength);\r\n },\r\n NotNullValidator: value => enforce(value).isNotNull(),\r\n NotEmptyValidator: value => enforce(value).isNotBlank(),\r\n EqualValidator: (value, args, data) => {\r\n if (value === undefined || value === null ||\r\n data === undefined || data === null) {\r\n return;\r\n }\r\n\r\n let comparisonValue = args.ComparisonValue;\r\n if (args.ComparisonProperty !== null) {\r\n comparisonValue = data[args.ComparisonProperty];\r\n }\r\n\r\n return enforce(value).equals(comparisonValue);\r\n },\r\n NotEqualValidator: (value, args) => enforce(value).notEquals(args.ComparisonValue),\r\n MaximumLengthValidator: (value, args) => {\r\n if (value === undefined || value === null){\r\n return;\r\n }\r\n\r\n return enforce(value).shorterThanOrEquals(args.MaxLength);\r\n },\r\n MinimumLengthValidator: (value, args) => enforce(value).longerThanOrEquals(args.MinLength),\r\n EmailValidator: value => {\r\n return enforce(value).isEmail();\r\n },\r\n RegularExpressionValidator: (value, args) => {\r\n var regex = new RegExp(args.Pattern);\r\n return enforce(value).matches(regex);\r\n }\r\n};\r\n\r\nexport { validationMappings };","import { create, test, enforce } from 'vest';\r\nimport isEmail from 'validatorIsEmail';\r\nimport { validationMappings } from './validatorMappings';\r\n\r\nenforce.extend({ isEmail });\r\n\r\nfunction applyTests(validationSuite, data) {\r\n validationSuite.forEach((field) => {\r\n const value = data[field.PropertyName];\r\n const validator = validationMappings[field.Rule];\r\n\r\n test(field.PropertyName, field.ErrorMessage, () => {\r\n if (validator) {\r\n validator(value, field.Arguments, data);\r\n } else {\r\n console.warn(`Validator for rule ${field.Rule} is not implemented.`);\r\n }\r\n }, field.Key);\r\n });\r\n}\r\n\r\n/* Suites are named by convention with the following format: \r\n {Model}Suite\r\n Where the Model is the name of the entity being validated,\r\n suffixed with 'Suite'. This is the object you should pass\r\n intp the applyTests function.\r\n*/\r\nconst validationSuites = {\r\n \r\n ApplyForm: create((data = {}) => {\r\n /* Add additional, client-only validation tests here. E.g.: \r\n\r\n test('ApplyForm.FirstName', 'FirstName cannot be John', () => {\r\n enforce(data['ApplyForm.FirstName']).notEquals('John');\r\n });\r\n */\r\n\r\n applyTests(ApplyFormSuite, data);\r\n }),\r\n\r\n SubscribeJobAlertCommand: create((data = {}) => {\r\n /* Add additional, client-only validation tests here. */\r\n applyTests(SubscribeJobAlertCommandSuite, data);\r\n })\r\n\r\n};\r\n\r\nexport { validationSuites };","import Alpine from 'alpinejs';\r\n\r\nimport ui from 'alpineUi';\r\nimport collapse from 'alpineCollapse';\r\nimport focus from 'alpineFocus';\r\nimport morph from 'alpineMorph';\r\nimport persist from 'alpinePersist';\r\nimport ajax from 'alpineAjax';\r\n\r\nimport Swiper from 'swiper';\r\nimport { Pagination, Navigation } from 'swiperModules';\r\n\r\nimport { ajaxLink, sanitize, slugify, translate } from './alpine-directives/index.js';\r\nimport { autocomplete, placesAutocomplete, favourites, fileUpload, validator, jobalert } from './alpine-components/index.js';\r\nimport { cookieStorage } from './utilities/cookieStorage.js';\r\nimport { validationSuites } from './validation-suites/index.js';\r\n\r\n/* Register plugins */\r\nAlpine.plugin(ui);\r\nAlpine.plugin(collapse);\r\nAlpine.plugin(focus);\r\nAlpine.plugin(morph);\r\nAlpine.plugin(persist);\r\nAlpine.plugin(ajax);\r\n\r\n/* Register directives */\r\nAlpine.directive('ajax-link', ajaxLink);\r\nAlpine.directive('sanitize', sanitize);\r\nAlpine.directive('slugify', slugify);\r\nAlpine.directive('translate', translate);\r\n\r\n/* Register components */\r\nAlpine.data('autocomplete', autocomplete);\r\nAlpine.data('placesAutcomplete', placesAutocomplete);\r\nAlpine.data('favourites', favourites);\r\nAlpine.data('fileUpload', fileUpload);\r\nAlpine.data('jobalert', jobalert);\r\nAlpine.data('validator', validator);\r\n\r\n/* Initialize */\r\nwindow.validationSuites = validationSuites;\r\nwindow.cookieStorage = cookieStorage;\r\nwindow.Swiper = Swiper;\r\nwindow.SwiperModules = { pagination: Pagination, navigation: Navigation };\r\n\r\nwindow.Alpine = Alpine;\r\nwindow.Alpine.start();\r\n","import sanitizeHtml from 'sanitizeHtml';\r\n\r\nconst sanitize = (el, { expression }, { effect, evaluate }) => {\r\n\r\n effect(() => {\r\n const result = evaluate(expression);\r\n\r\n el.innerHTML = sanitizeHtml(result, {\r\n allowedTags: [],\r\n allowedAttributes: []\r\n });\r\n });\r\n\r\n};\r\n\r\nexport { sanitize };","import { toSlug } from \"../utilities/string-utilities\";\r\n\r\nconst slugify = (el, { expression }, { effect, evaluate }) => {\r\n\r\n if (el.localName !== 'a') {\r\n console.warn('The slugify directive should only be used on anchor tags.');\r\n }\r\n\r\n effect(() => {\r\n const result = evaluate(expression);\r\n el.href = toSlug(result);\r\n })\r\n\r\n};\r\n\r\nexport { slugify };","const translate = (el, { value, expression }, { effect }) => {\r\n\r\n effect(() => {\r\n const translations = window[`_server_translations_${value}`];\r\n if (!translations) {\r\n console.warn(`No translations found for ${value}`);\r\n }\r\n\r\n const translation = translations.translations[expression];\r\n if (!translation) {\r\n console.warn(`No translation found for ${expression}`);\r\n }\r\n\r\n el.textContent = translation;\r\n });\r\n\r\n};\r\n\r\nexport { translate };","const autocomplete = (options) => ({\r\n\r\n query: '',\r\n items: [],\r\n selected: null,\r\n\r\n init() {\r\n this.$watch('selected', () => {\r\n this.$dispatch('ac-item-selected', this.selected);\r\n });\r\n },\r\n\r\n displayKey: (item) => item['place'],\r\n getKey(item) {\r\n return item['place'];\r\n },\r\n\r\n onChange(e) {\r\n this.query = e.target.value;\r\n\r\n if (this.query.length > 0) {\r\n this.search();\r\n }\r\n },\r\n\r\n search() {\r\n fetch(`${options.serviceUrl}/api/addresses/suggest?query=${this.query}`, {\r\n headers: {\r\n 'Content-Type': 'application/json',\r\n 'Accept': 'application/json',\r\n 'ApiKey': options.apiKey\r\n }\r\n })\r\n .then((response) => { return response.json(); })\r\n .then((data) => {\r\n this.items = data;\r\n });\r\n }\r\n\r\n});\r\n\r\nexport { autocomplete };","import { startsWithPostalCode } from \"../utilities/index.js\";\r\n\r\nconst placesAutocomplete = (options) => ({\r\n\r\n query: '',\r\n selected: null,\r\n items: [],\r\n placeholder: options.placeholder,\r\n\r\n init() {\r\n\r\n if (!options.form) {\r\n throw new Error('No valid form provided.');\r\n }\r\n\r\n if (!options.targetInput) {\r\n throw new Error('No valid targetInput provided.');\r\n }\r\n\r\n const params = new Proxy(new URLSearchParams(window.location.search), {\r\n get: (searchParams, prop) => searchParams.get(prop),\r\n });\r\n\r\n if (params.location) {\r\n\r\n this.selected = {\r\n place: params.location\r\n };\r\n\r\n const input = document.querySelector(options.targetInput);\r\n input.value = params.location;\r\n\r\n this.placeholder = params.location;\r\n }\r\n\r\n this.$watch('selected', () => {\r\n this.$dispatch('place-selected', { data: this.selected });\r\n });\r\n },\r\n\r\n requestSubmit() {\r\n if (this.startsWithPostalCode(this.query)) {\r\n this.selected = {\r\n place: this.query\r\n };\r\n }\r\n\r\n const form = document.querySelector(options.form);\r\n if (form) {\r\n form.requestSubmit();\r\n }\r\n },\r\n\r\n startsWithPostalCode(value) {\r\n return startsWithPostalCode(value);\r\n },\r\n\r\n reset() {\r\n this.query = '';\r\n this.selected = null;\r\n this.items = [];\r\n this.placeholder = options.placeholder;\r\n\r\n document.querySelector(options.form).location.value = this.query;\r\n\r\n this.$nextTick(() => {\r\n this.requestSubmit();\r\n });\r\n },\r\n\r\n search() {\r\n const { geocodingService } = __appConfiguration;\r\n\r\n if (this.query.length > 2 && !startsWithPostalCode(this.query)) {\r\n fetch(`${geocodingService.baseUrl}/api/places/suggest?query=${this.query}`, {\r\n method: 'GET',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json',\r\n 'ApiKey': geocodingService.apiKey,\r\n },\r\n })\r\n .then((response) => { return response.json(); })\r\n .then((data) => { this.items = data; });\r\n }\r\n\r\n if (startsWithPostalCode(this.query)) {\r\n\r\n this.items = [];\r\n this.items.push({ place: this.query });\r\n\r\n this.selected = {\r\n place: this.query,\r\n };\r\n\r\n document.querySelector(options.form).location.value = this.query;\r\n }\r\n },\r\n\r\n get results() {\r\n return this.items;\r\n }\r\n\r\n});\r\n\r\nexport { placesAutocomplete };\r\n","/* Using a plain function instead of an arrow function, \r\n so Alpine can bind a custom this context \r\n when it initially evaluates the component scope */\r\n\r\nconst favourites = function () {\r\n return {\r\n ids: this.$persist([]).using(cookieStorage).as(\"rgf_favourites\"),\r\n favourites: [],\r\n init() {\r\n this.$watch(\"ids\", () => {\r\n this.$dispatch(\"favourited\", { data: this.count });\r\n });\r\n },\r\n\r\n load() {\r\n fetch(\"/_ajax/favourites\")\r\n .then((response) => response.json())\r\n .then((data) => {\r\n this.favourites = data;\r\n });\r\n },\r\n\r\n add(id) {\r\n if (!this.ids.includes(id)) {\r\n this.ids.push(id);\r\n }\r\n },\r\n\r\n remove(id) {\r\n this.ids = this.ids.filter((x) => x !== id);\r\n },\r\n\r\n contains(id) {\r\n return this.ids.includes(id);\r\n },\r\n\r\n clear() {\r\n this.ids = [];\r\n },\r\n\r\n animatePing(el, animationClass = \"animate-ping-once\") {\r\n el.classList.remove(animationClass);\r\n setTimeout(() => el.classList.add(animationClass), 0);\r\n },\r\n\r\n get count() {\r\n return this.ids.length;\r\n },\r\n };\r\n};\r\n\r\nexport { favourites };\r\n","import * as FilePond from 'filepond';\r\nimport { filepondTranslations } from '../translations/filepond.nl';\r\n\r\nconst fileUpload = (options) => {\r\n return {\r\n\r\n pond: null,\r\n disableSubmit: false,\r\n\r\n init() {\r\n const { inputSelector, propertySelector } = options;\r\n if (!inputSelector || !propertySelector) {\r\n console.warn('No validation configuration provided.');\r\n }\r\n\r\n const inputElement = document.querySelector(inputSelector);\r\n const validationElement = document.querySelector(`[data-valmsg-for=\"${propertySelector}\"]`);\r\n const shadowPropertyElement = document.querySelector(`[name=\"${propertySelector}\"]`);\r\n const submitElement = this.$el.closest('form').querySelector('button[type=\"submit\"]');\r\n\r\n this.pond = FilePond.create(inputElement);\r\n\r\n this.pond.onupdatefiles = (_) => {\r\n validationElement.innerText = '';\r\n this.disableSubmit = false;\r\n };\r\n\r\n this.setEventListeners(this.pond);\r\n this.$watch('disableSubmit', (disableSubmit) => {\r\n if (disableSubmit) {\r\n submitElement.setAttribute('disabled', 'disabled');\r\n } else {\r\n submitElement.removeAttribute('disabled');\r\n }\r\n });\r\n\r\n FilePond.setOptions({\r\n server: {\r\n url: window.location.origin,\r\n process: {\r\n url: '/api/internal/upload',\r\n method: 'POST',\r\n headers: {\r\n 'X-Requested-With': 'XMLHttpRequest'\r\n },\r\n withCredentials: false,\r\n onload: (response) => {\r\n shadowPropertyElement.value = response;\r\n return response;\r\n },\r\n onerror: (response) => {\r\n if (response) {\r\n const errorMessages = JSON.parse(response);\r\n this.pond.setOptions({\r\n labelFileProcessingError: errorMessages[0]\r\n });\r\n }\r\n return response.data;\r\n }\r\n },\r\n revert: {\r\n url: '/api/internal/upload',\r\n method: 'DELETE',\r\n withCredentials: false\r\n }\r\n },\r\n ...filepondTranslations\r\n });\r\n },\r\n\r\n setEventListeners(pond) {\r\n pond.on('processfilestart', (file) => {\r\n this.disableSubmit = true;\r\n });\r\n\r\n pond.on('processfileabort', (file) => {\r\n this.disableSubmit = false;\r\n });\r\n\r\n pond.on('processfile', (error, file) => {\r\n if (error) {\r\n this.disableSubmit = true;\r\n } else {\r\n this.disableSubmit = false;\r\n }\r\n });\r\n\r\n pond.on('processfilecomplete', (file) => {\r\n this.disableSubmit = false;\r\n });\r\n }\r\n\r\n };\r\n};\r\n\r\nexport { fileUpload };","const jobalert = ({ brandEnum }) => {\r\n return {\r\n\r\n count: 0,\r\n\r\n queryContainer: {\r\n searchQuery: '',\r\n location: '',\r\n aroundRadius: 20000\r\n },\r\n\r\n subscribePayload: {\r\n language: 'nl',\r\n brandEnum: null,\r\n email: '',\r\n name: '',\r\n frequency: 1\r\n },\r\n\r\n subscribeResponse: null,\r\n unsubscribeResponse: null,\r\n\r\n loading: false,\r\n\r\n get displayForm() {\r\n return this.subscribeResponse == null || this.subscribeResponse.status == 409;\r\n },\r\n\r\n get displaySuccess() {\r\n return this.subscribeResponse != null && this.subscribeResponse.status == 200;\r\n },\r\n\r\n get displayConflict() {\r\n return this.subscribeResponse != null && this.subscribeResponse.status == 409;\r\n },\r\n\r\n get displayError() {\r\n return this.subscribeResponse != null && this.subscribeResponse.status != 200 &&\r\n this.subscribeResponse.status != 409;\r\n },\r\n\r\n get displayUnsubscribeForm() {\r\n return this.unsubscribeResponse == null;\r\n },\r\n\r\n get displayUnsubscribeSuccess() {\r\n return this.unsubscribeResponse != null && this.unsubscribeResponse.status == 200;\r\n },\r\n\r\n get displayUnsubscribeError() {\r\n return this.unsubscribeResponse != null && this.unsubscribeResponse.status != 200 &&\r\n this.unsubscribeResponse.status != 409;\r\n },\r\n\r\n init() {\r\n if (typeof brandEnum !== 'undefined') {\r\n this.subscribePayload.brandEnum = brandEnum;\r\n }\r\n\r\n this.$watch('queryContainer', () => {\r\n this.getCount();\r\n });\r\n\r\n this.getCount();\r\n },\r\n\r\n getCount() {\r\n const payload = JSON.stringify(this.queryContainer);\r\n\r\n fetch('/_ajax/jobalert/count', {\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json'\r\n },\r\n body: payload\r\n })\r\n .then((response) => response.text())\r\n .then((data) => this.count = data);\r\n },\r\n\r\n subscribe() {\r\n this.loading = true;\r\n\r\n const command = { ...this.subscribePayload, ...this.queryContainer };\r\n const payload = JSON.stringify(command);\r\n\r\n fetch('/_ajax/jobalert/subscribe', {\r\n method: 'POST',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json'\r\n },\r\n body: payload\r\n })\r\n .then((response) => {\r\n this.subscribeResponse = response;\r\n })\r\n .then((data) => {\r\n // console.log(data); // Uncomment to see the jobalertId\r\n })\r\n .finally(() => {\r\n this.loading = false;\r\n });\r\n },\r\n\r\n unsubscribe(jobalertId) {\r\n this.loading = true;\r\n\r\n fetch('/_ajax/jobalert/unsubscribe/single?jobalertId=' + jobalertId, {\r\n method: 'DELETE',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json'\r\n }\r\n })\r\n .then((response) => {\r\n this.unsubscribeResponse = response;\r\n })\r\n .then((_) => {\r\n })\r\n .finally(() => {\r\n this.loading = false;\r\n });\r\n },\r\n\r\n unsubscribeAll(email) {\r\n this.loading = true;\r\n\r\n fetch('/_ajax/jobalert/unsubscribe/all?email=' + email, {\r\n method: 'DELETE',\r\n headers: {\r\n 'Accept': 'application/json',\r\n 'Content-Type': 'application/json'\r\n }\r\n })\r\n .then((response) => {\r\n this.unsubscribeResponse = response;\r\n })\r\n .then((_) => {\r\n })\r\n .finally(() => {\r\n this.loading = false;\r\n });\r\n }\r\n\r\n };\r\n};\r\n\r\nexport { jobalert };","import classnames from 'vestClassnames';\r\n\r\nconst validator = (suiteName, onInit = null) => ({\r\n data: {},\r\n result: {},\r\n errors: {},\r\n warnings: {},\r\n messages: {},\r\n classes: {},\r\n suite: {},\r\n\r\n init() {\r\n this.suite = window.validationSuites[suiteName];\r\n if (!this.suite) {\r\n console.error(\"Validation suite not found: \" + suiteName);\r\n return;\r\n }\r\n\r\n if (onInit !== null) {\r\n onInit();\r\n }\r\n },\r\n\r\n validate(e) {\r\n this.suite(this.data, e.target.name)\r\n .done((result) => this.setClass(result, e.target.name))\r\n .done((result) => this.setMessages(result, e.target.name))\r\n .done(this.handleResult.bind(this));\r\n },\r\n\r\n validateForm() {\r\n const result = this.suite(this.data).done((result) => {\r\n for (let [key, value] of Object.entries(result.tests)) {\r\n this.setClass(result, key);\r\n this.setMessages(result, key);\r\n }\r\n });\r\n return result;\r\n },\r\n\r\n handleResult(result) {\r\n this.errors = result.getErrors();\r\n this.warnings = result.getWarnings();\r\n },\r\n\r\n setMessages(result, name) {\r\n const message = [...result.getErrors(name), ...result.getWarnings(name)];\r\n if (message && message.length > 0) {\r\n this.messages[name] = message[0];\r\n } else {\r\n this.messages[name] = \"\";\r\n }\r\n },\r\n\r\n setClass(result, name) {\r\n const cn = classnames(result, {\r\n valid: \"form-success\",\r\n invalid: \"form-error\",\r\n warning: \"form-warning\",\r\n });\r\n\r\n for (let [key, value] of Object.entries(result.tests)) {\r\n if (name === key) {\r\n const classValue = { [key]: cn(key) };\r\n this.classes = { ...this.classes, ...classValue };\r\n }\r\n }\r\n },\r\n\r\n onSubmit(e, callback) {\r\n const result = this.validateForm();\r\n \r\n if (!result.valid) {\r\n e.preventDefault();\r\n } else {\r\n \r\n if (callback) {\r\n callback();\r\n }\r\n\r\n const form = document.getElementById('applyform');\r\n form.submit();\r\n }\r\n },\r\n});\r\n\r\nexport { validator };\r\n"],"names":["startsWithPostalCode","input","test","filepondTranslations","labelIdle","labelInvalidField","labelFileWaitingForSize","labelFileSizeNotAvailable","labelFileLoading","labelFileLoadError","labelFileProcessing","labelFileProcessingComplete","labelFileProcessingAborted","labelFileProcessingError","labelFileProcessingRevertError","labelFileRemoveError","labelTapToCancel","labelTapToRetry","labelTapToUndo","labelButtonRemoveItem","labelButtonAbortItemLoad","labelButtonRetryItemLoad","labelButtonAbortItemProcessing","labelButtonUndoItemProcessing","labelButtonRetryItemProcessing","labelButtonProcessItem","labelMaxFileSizeExceeded","labelMaxFileSize","labelMaxTotalFileSizeExceeded","labelMaxTotalFileSize","labelFileTypeNotAllowed","fileValidateTypeLabelExpectedTypes","cookieStorage","getItem","key","cookies","document","cookie","split","i","length","trim","decodeURIComponent","setItem","value","encodeURIComponent","enforce","extend","isEmail","validationMappings","LengthValidator","args","longerThanOrEquals","MinLength","shorterThanOrEquals","MaxLength","NotNullValidator","isNotNull","NotEmptyValidator","isNotBlank","EqualValidator","data","comparisonValue","ComparisonValue","ComparisonProperty","equals","NotEqualValidator","notEquals","MaximumLengthValidator","MinimumLengthValidator","EmailValidator","RegularExpressionValidator","regex","RegExp","Pattern","matches","applyTests","validationSuite","forEach","field","PropertyName","validator","Rule","ErrorMessage","Arguments","console","warn","Key","validationSuites","ApplyForm","create","ApplyFormSuite","SubscribeJobAlertCommand","SubscribeJobAlertCommandSuite","Alpine","plugin","ui","collapse","focus","morph","persist","ajax","directive","el","modifiers","expression","effect","cleanup","log","onclick","e","preventDefault","querySelector","requestSubmit","evaluate","result","innerHTML","sanitizeHtml","allowedTags","allowedAttributes","localName","href","disallowedCharacters","normalize","replace","toLowerCase","toSlug","translations","window","translation","textContent","options","query","items","selected","init","this","$watch","$dispatch","displayKey","item","getKey","onChange","target","search","fetch","serviceUrl","headers","Accept","ApiKey","apiKey","then","response","json","placeholder","form","Error","targetInput","params","Proxy","URLSearchParams","location","get","searchParams","prop","place","reset","$nextTick","geocodingService","__appConfiguration","baseUrl","method","push","results","ids","$persist","using","as","favourites","count","load","add","id","includes","remove","filter","x","contains","clear","animatePing","animationClass","classList","setTimeout","pond","disableSubmit","inputSelector","propertySelector","inputElement","validationElement","shadowPropertyElement","submitElement","$el","closest","FilePond","onupdatefiles","_","innerText","setEventListeners","setAttribute","removeAttribute","setOptions","server","url","origin","process","withCredentials","onload","onerror","errorMessages","JSON","parse","revert","on","file","error","brandEnum","queryContainer","searchQuery","aroundRadius","subscribePayload","language","email","name","frequency","subscribeResponse","unsubscribeResponse","loading","displayForm","status","displaySuccess","displayConflict","displayError","displayUnsubscribeForm","displayUnsubscribeSuccess","displayUnsubscribeError","getCount","payload","stringify","body","text","subscribe","command","finally","unsubscribe","jobalertId","unsubscribeAll","suiteName","onInit","errors","warnings","messages","classes","suite","validate","done","setClass","setMessages","handleResult","bind","validateForm","Object","entries","tests","getErrors","getWarnings","message","cn","classnames","valid","invalid","warning","classValue","onSubmit","callback","getElementById","submit","Swiper","SwiperModules","pagination","Pagination","navigation","Navigation","start"],"mappings":"yxBAAA,MCsBMA,EAAwBC,GACZ,uCACDC,KAAKD,GCxBhBE,EAAuB,CACzBC,UAAW,qFACXC,kBAAmB,iCACnBC,wBAAyB,qBACzBC,0BAA2B,2BAC3BC,iBAAkB,QAClBC,mBAAoB,qBACpBC,oBAAqB,WACrBC,4BAA6B,kBAC7BC,2BAA4B,qBAC5BC,yBAA0B,yDAC1BC,+BAAgC,sBAChCC,qBAAsB,uBACtBC,iBAAkB,sBAClBC,gBAAiB,6BACjBC,eAAgB,2BAChBC,sBAAuB,cACvBC,yBAA0B,WAC1BC,yBAA0B,mBAC1BC,+BAAgC,YAChCC,8BAA+B,iBAC/BC,+BAAgC,mBAChCC,uBAAwB,SACxBC,yBAA0B,sBAC1BC,iBAAkB,yCAClBC,8BAA+B,uCAC/BC,sBAAuB,gDACvBC,wBAAyB,wBACzBC,mCAAoC,2CC5BlCC,EAAgB,CAElB,OAAAC,CAAQC,GACJ,IAAIC,EAAUC,SAASC,OAAOC,MAAM,KAEpC,IAAK,IAAIC,EAAI,EAAGA,EAAIJ,EAAQK,OAAQD,IAAK,CACrC,IAA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