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,MAAMsJ,EAAS,QAASqC,OAAOsB,SAASC,QAClCC,EAAYnQ,OAAOuE,OAAOvE,OAAOuE,OAAO,CAAC,EAAG+H,GAAS,CAAE,CAACpM,GAAM8C,IAChE+M,IAAc/M,UACPmN,EAAUjQ,GAbe,CAACkQ,IACrC,MAAMC,EAAS1B,OAAOsB,SAASK,SAAW,KAAO3B,OAAOsB,SAASM,KAAO5B,OAAOsB,SAASO,UAAYJ,EAAU,IAAMA,EAAU,IAC9HzB,OAAO8B,QAAQC,UAAU,CAAEC,KAAMN,GAAU,GAAIA,EAAO,EActDO,CADmB,YAAaT,GAEpC,CACA,MAAMU,GAAa,IAAAhI,cAAa/D,IAC5B,IAAIgM,EAAcf,IAAcjL,QAAYH,EAAYG,EACxDiM,EAASD,GACTd,EAAoB9P,EAAK4Q,EAAY,GACtC,CAAC5Q,KACG8C,EAAO+N,IAAY,IAAApJ,UAnBE,CAACzH,IAEzB,IAAI8C,EADW,QAAS2L,OAAOsB,SAASC,QACrBhQ,GACnB,OAAO6P,IAAc/M,EAAQA,CAAK,EAgBFgO,CAAoB9Q,IAAQ4P,GAChE,MAAO,CAAC9M,EAAO6N,EACnB,C","sources":["webpack:///./node_modules/decode-uri-component/index.js","webpack:///./node_modules/filter-obj/index.js","webpack:///./node_modules/final-form-focus/dist/final-form-focus.es.js","webpack:///./node_modules/query-string/index.js","webpack:///./node_modules/split-on-first/index.js","webpack:///./node_modules/strict-uri-encode/index.js","webpack:///./assets/src/components/common/UploadFiles.tsx","webpack:///./assets/src/components/clientService/ContactUsForm.tsx","webpack:///./assets/src/components/clientService/ClientServiceContactUsLoader.tsx","webpack:///./assets/src/components/common/ErrorBox.tsx","webpack:///./assets/src/ui/loading/Loading.tsx","webpack:///./assets/src/utils/recaptchaUtils.ts","webpack:///./assets/src/utils/useQueryString.ts"],"sourcesContent":["'use strict';\nvar token = '%[a-f0-9]{2}';\nvar singleMatcher = new RegExp(token, 'gi');\nvar multiMatcher = new RegExp('(' + token + ')+', 'gi');\n\nfunction decodeComponents(components, split) {\n\ttry {\n\t\t// Try to decode the entire string first\n\t\treturn decodeURIComponent(components.join(''));\n\t} catch (err) {\n\t\t// Do nothing\n\t}\n\n\tif (components.length === 1) {\n\t\treturn components;\n\t}\n\n\tsplit = split || 1;\n\n\t// Split the array in 2 parts\n\tvar left = components.slice(0, split);\n\tvar right = components.slice(split);\n\n\treturn Array.prototype.concat.call([], decodeComponents(left), decodeComponents(right));\n}\n\nfunction decode(input) {\n\ttry {\n\t\treturn decodeURIComponent(input);\n\t} catch (err) {\n\t\tvar tokens = input.match(singleMatcher);\n\n\t\tfor (var i = 1; i < tokens.length; i++) {\n\t\t\tinput = decodeComponents(tokens, i).join('');\n\n\t\t\ttokens = input.match(singleMatcher);\n\t\t}\n\n\t\treturn input;\n\t}\n}\n\nfunction customDecodeURIComponent(input) {\n\t// Keep track of all the replacements and prefill the map with the `BOM`\n\tvar replaceMap = {\n\t\t'%FE%FF': '\\uFFFD\\uFFFD',\n\t\t'%FF%FE': '\\uFFFD\\uFFFD'\n\t};\n\n\tvar match = multiMatcher.exec(input);\n\twhile (match) {\n\t\ttry {\n\t\t\t// Decode as big chunks as possible\n\t\t\treplaceMap[match[0]] = decodeURIComponent(match[0]);\n\t\t} catch (err) {\n\t\t\tvar result = decode(match[0]);\n\n\t\t\tif (result !== match[0]) {\n\t\t\t\treplaceMap[match[0]] = result;\n\t\t\t}\n\t\t}\n\n\t\tmatch = multiMatcher.exec(input);\n\t}\n\n\t// Add `%C2` at the end of the map to make sure it does not replace the combinator before everything else\n\treplaceMap['%C2'] = '\\uFFFD';\n\n\tvar entries = Object.keys(replaceMap);\n\n\tfor (var i = 0; i < entries.length; i++) {\n\t\t// Replace all decoded components\n\t\tvar key = entries[i];\n\t\tinput = input.replace(new RegExp(key, 'g'), replaceMap[key]);\n\t}\n\n\treturn input;\n}\n\nmodule.exports = function (encodedURI) {\n\tif (typeof encodedURI !== 'string') {\n\t\tthrow new TypeError('Expected `encodedURI` to be of type `string`, got `' + typeof encodedURI + '`');\n\t}\n\n\ttry {\n\t\tencodedURI = encodedURI.replace(/\\+/g, ' ');\n\n\t\t// Try the built in decoder first\n\t\treturn decodeURIComponent(encodedURI);\n\t} catch (err) {\n\t\t// Fallback to a more advanced decoder\n\t\treturn customDecodeURIComponent(encodedURI);\n\t}\n};\n","'use strict';\nmodule.exports = function (obj, predicate) {\n\tvar ret = {};\n\tvar keys = Object.keys(obj);\n\tvar isArr = Array.isArray(predicate);\n\n\tfor (var i = 0; i < keys.length; i++) {\n\t\tvar key = keys[i];\n\t\tvar val = obj[key];\n\n\t\tif (isArr ? predicate.indexOf(key) !== -1 : predicate(key, val, obj)) {\n\t\t\tret[key] = val;\n\t\t}\n\t}\n\n\treturn ret;\n};\n","import { getIn } from 'final-form';\n\n// \n\n/**\n * Predicate to identify inputs that can have focus() called on them\n */\nvar isFocusableInput = function isFocusableInput(wtf) {\n return !!(wtf && typeof wtf.focus === 'function');\n};\n\n// \n/**\n * Gets all the inputs inside all forms on the page\n */\n\nvar getAllInputs = function getAllInputs() {\n if (typeof document === 'undefined') {\n return [];\n }\n\n return Array.prototype.slice.call(document.forms).reduce(function (accumulator, form) {\n return accumulator.concat(Array.prototype.slice.call(form).filter(isFocusableInput));\n }, []);\n};\n\n// \n/**\n * Finds the input by looking if the name attribute path is existing in the errors object\n */\n\nvar findInput = function findInput(inputs, errors) {\n return inputs.find(function (input) {\n return input.name && getIn(errors, input.name);\n });\n};\n\n// \n\nvar noop = function noop() {};\n\nvar createDecorator = function createDecorator(getInputs, findInput$$1) {\n return function (form) {\n var focusOnFirstError = function focusOnFirstError(errors) {\n if (!getInputs) {\n getInputs = getAllInputs;\n }\n\n if (!findInput$$1) {\n findInput$$1 = findInput;\n }\n\n var firstInput = findInput$$1(getInputs(), errors);\n\n if (firstInput) {\n firstInput.focus();\n }\n }; // Save original submit function\n\n\n var originalSubmit = form.submit; // Subscribe to errors, and keep a local copy of them\n\n var state = {};\n var unsubscribe = form.subscribe(function (nextState) {\n state = nextState;\n }, {\n errors: true,\n submitErrors: true\n }); // What to do after submit\n\n var afterSubmit = function afterSubmit() {\n var _state = state,\n errors = _state.errors,\n submitErrors = _state.submitErrors;\n\n if (errors && Object.keys(errors).length) {\n focusOnFirstError(errors);\n } else if (submitErrors && Object.keys(submitErrors).length) {\n focusOnFirstError(submitErrors);\n }\n }; // Rewrite submit function\n\n\n form.submit = function () {\n var result = originalSubmit.call(form);\n\n if (result && typeof result.then === 'function') {\n // async\n result.then(afterSubmit, noop);\n } else {\n // sync\n afterSubmit();\n }\n\n return result;\n };\n\n return function () {\n unsubscribe();\n form.submit = originalSubmit;\n };\n };\n};\n\n// \n/**\n * Generates a function to get all the inputs in a form with the specified name\n */\n\nvar getFormInputs = function getFormInputs(name) {\n return function () {\n if (typeof document === 'undefined') {\n return [];\n } // $FlowFixMe\n\n\n var form = document.forms[name];\n return form && form.length ? Array.prototype.slice.call(form).filter(isFocusableInput) : []; // cast cheat to get from HTMLFormElement children to FocusableInput\n };\n};\n\n//\n\nexport default createDecorator;\nexport { getFormInputs };\n","'use strict';\nconst strictUriEncode = require('strict-uri-encode');\nconst decodeComponent = require('decode-uri-component');\nconst splitOnFirst = require('split-on-first');\nconst filterObject = require('filter-obj');\n\nconst isNullOrUndefined = value => value === null || value === undefined;\n\nconst encodeFragmentIdentifier = Symbol('encodeFragmentIdentifier');\n\nfunction encoderForArrayFormat(options) {\n\tswitch (options.arrayFormat) {\n\t\tcase 'index':\n\t\t\treturn key => (result, value) => {\n\t\t\t\tconst index = result.length;\n\n\t\t\t\tif (\n\t\t\t\t\tvalue === undefined ||\n\t\t\t\t\t(options.skipNull && value === null) ||\n\t\t\t\t\t(options.skipEmptyString && value === '')\n\t\t\t\t) {\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\n\t\t\t\tif (value === null) {\n\t\t\t\t\treturn [...result, [encode(key, options), '[', index, ']'].join('')];\n\t\t\t\t}\n\n\t\t\t\treturn [\n\t\t\t\t\t...result,\n\t\t\t\t\t[encode(key, options), '[', encode(index, options), ']=', encode(value, options)].join('')\n\t\t\t\t];\n\t\t\t};\n\n\t\tcase 'bracket':\n\t\t\treturn key => (result, value) => {\n\t\t\t\tif (\n\t\t\t\t\tvalue === undefined ||\n\t\t\t\t\t(options.skipNull && value === null) ||\n\t\t\t\t\t(options.skipEmptyString && value === '')\n\t\t\t\t) {\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\n\t\t\t\tif (value === null) {\n\t\t\t\t\treturn [...result, [encode(key, options), '[]'].join('')];\n\t\t\t\t}\n\n\t\t\t\treturn [...result, [encode(key, options), '[]=', encode(value, options)].join('')];\n\t\t\t};\n\n\t\tcase 'colon-list-separator':\n\t\t\treturn key => (result, value) => {\n\t\t\t\tif (\n\t\t\t\t\tvalue === undefined ||\n\t\t\t\t\t(options.skipNull && value === null) ||\n\t\t\t\t\t(options.skipEmptyString && value === '')\n\t\t\t\t) {\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\n\t\t\t\tif (value === null) {\n\t\t\t\t\treturn [...result, [encode(key, options), ':list='].join('')];\n\t\t\t\t}\n\n\t\t\t\treturn [...result, [encode(key, options), ':list=', encode(value, options)].join('')];\n\t\t\t};\n\n\t\tcase 'comma':\n\t\tcase 'separator':\n\t\tcase 'bracket-separator': {\n\t\t\tconst keyValueSep = options.arrayFormat === 'bracket-separator' ?\n\t\t\t\t'[]=' :\n\t\t\t\t'=';\n\n\t\t\treturn key => (result, value) => {\n\t\t\t\tif (\n\t\t\t\t\tvalue === undefined ||\n\t\t\t\t\t(options.skipNull && value === null) ||\n\t\t\t\t\t(options.skipEmptyString && value === '')\n\t\t\t\t) {\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\n\t\t\t\t// Translate null to an empty string so that it doesn't serialize as 'null'\n\t\t\t\tvalue = value === null ? '' : value;\n\n\t\t\t\tif (result.length === 0) {\n\t\t\t\t\treturn [[encode(key, options), keyValueSep, encode(value, options)].join('')];\n\t\t\t\t}\n\n\t\t\t\treturn [[result, encode(value, options)].join(options.arrayFormatSeparator)];\n\t\t\t};\n\t\t}\n\n\t\tdefault:\n\t\t\treturn key => (result, value) => {\n\t\t\t\tif (\n\t\t\t\t\tvalue === undefined ||\n\t\t\t\t\t(options.skipNull && value === null) ||\n\t\t\t\t\t(options.skipEmptyString && value === '')\n\t\t\t\t) {\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\n\t\t\t\tif (value === null) {\n\t\t\t\t\treturn [...result, encode(key, options)];\n\t\t\t\t}\n\n\t\t\t\treturn [...result, [encode(key, options), '=', encode(value, options)].join('')];\n\t\t\t};\n\t}\n}\n\nfunction parserForArrayFormat(options) {\n\tlet result;\n\n\tswitch (options.arrayFormat) {\n\t\tcase 'index':\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tresult = /\\[(\\d*)\\]$/.exec(key);\n\n\t\t\t\tkey = key.replace(/\\[\\d*\\]$/, '');\n\n\t\t\t\tif (!result) {\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = {};\n\t\t\t\t}\n\n\t\t\t\taccumulator[key][result[1]] = value;\n\t\t\t};\n\n\t\tcase 'bracket':\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tresult = /(\\[\\])$/.exec(key);\n\t\t\t\tkey = key.replace(/\\[\\]$/, '');\n\n\t\t\t\tif (!result) {\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = [value];\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\taccumulator[key] = [].concat(accumulator[key], value);\n\t\t\t};\n\n\t\tcase 'colon-list-separator':\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tresult = /(:list)$/.exec(key);\n\t\t\t\tkey = key.replace(/:list$/, '');\n\n\t\t\t\tif (!result) {\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = [value];\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\taccumulator[key] = [].concat(accumulator[key], value);\n\t\t\t};\n\n\t\tcase 'comma':\n\t\tcase 'separator':\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tconst isArray = typeof value === 'string' && value.includes(options.arrayFormatSeparator);\n\t\t\t\tconst isEncodedArray = (typeof value === 'string' && !isArray && decode(value, options).includes(options.arrayFormatSeparator));\n\t\t\t\tvalue = isEncodedArray ? decode(value, options) : value;\n\t\t\t\tconst newValue = isArray || isEncodedArray ? value.split(options.arrayFormatSeparator).map(item => decode(item, options)) : value === null ? value : decode(value, options);\n\t\t\t\taccumulator[key] = newValue;\n\t\t\t};\n\n\t\tcase 'bracket-separator':\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tconst isArray = /(\\[\\])$/.test(key);\n\t\t\t\tkey = key.replace(/\\[\\]$/, '');\n\n\t\t\t\tif (!isArray) {\n\t\t\t\t\taccumulator[key] = value ? decode(value, options) : value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tconst arrayValue = value === null ?\n\t\t\t\t\t[] :\n\t\t\t\t\tvalue.split(options.arrayFormatSeparator).map(item => decode(item, options));\n\n\t\t\t\tif (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = arrayValue;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\taccumulator[key] = [].concat(accumulator[key], arrayValue);\n\t\t\t};\n\n\t\tdefault:\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tif (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\taccumulator[key] = [].concat(accumulator[key], value);\n\t\t\t};\n\t}\n}\n\nfunction validateArrayFormatSeparator(value) {\n\tif (typeof value !== 'string' || value.length !== 1) {\n\t\tthrow new TypeError('arrayFormatSeparator must be single character string');\n\t}\n}\n\nfunction encode(value, options) {\n\tif (options.encode) {\n\t\treturn options.strict ? strictUriEncode(value) : encodeURIComponent(value);\n\t}\n\n\treturn value;\n}\n\nfunction decode(value, options) {\n\tif (options.decode) {\n\t\treturn decodeComponent(value);\n\t}\n\n\treturn value;\n}\n\nfunction keysSorter(input) {\n\tif (Array.isArray(input)) {\n\t\treturn input.sort();\n\t}\n\n\tif (typeof input === 'object') {\n\t\treturn keysSorter(Object.keys(input))\n\t\t\t.sort((a, b) => Number(a) - Number(b))\n\t\t\t.map(key => input[key]);\n\t}\n\n\treturn input;\n}\n\nfunction removeHash(input) {\n\tconst hashStart = input.indexOf('#');\n\tif (hashStart !== -1) {\n\t\tinput = input.slice(0, hashStart);\n\t}\n\n\treturn input;\n}\n\nfunction getHash(url) {\n\tlet hash = '';\n\tconst hashStart = url.indexOf('#');\n\tif (hashStart !== -1) {\n\t\thash = url.slice(hashStart);\n\t}\n\n\treturn hash;\n}\n\nfunction extract(input) {\n\tinput = removeHash(input);\n\tconst queryStart = input.indexOf('?');\n\tif (queryStart === -1) {\n\t\treturn '';\n\t}\n\n\treturn input.slice(queryStart + 1);\n}\n\nfunction parseValue(value, options) {\n\tif (options.parseNumbers && !Number.isNaN(Number(value)) && (typeof value === 'string' && value.trim() !== '')) {\n\t\tvalue = Number(value);\n\t} else if (options.parseBooleans && value !== null && (value.toLowerCase() === 'true' || value.toLowerCase() === 'false')) {\n\t\tvalue = value.toLowerCase() === 'true';\n\t}\n\n\treturn value;\n}\n\nfunction parse(query, options) {\n\toptions = Object.assign({\n\t\tdecode: true,\n\t\tsort: true,\n\t\tarrayFormat: 'none',\n\t\tarrayFormatSeparator: ',',\n\t\tparseNumbers: false,\n\t\tparseBooleans: false\n\t}, options);\n\n\tvalidateArrayFormatSeparator(options.arrayFormatSeparator);\n\n\tconst formatter = parserForArrayFormat(options);\n\n\t// Create an object with no prototype\n\tconst ret = Object.create(null);\n\n\tif (typeof query !== 'string') {\n\t\treturn ret;\n\t}\n\n\tquery = query.trim().replace(/^[?#&]/, '');\n\n\tif (!query) {\n\t\treturn ret;\n\t}\n\n\tfor (const param of query.split('&')) {\n\t\tif (param === '') {\n\t\t\tcontinue;\n\t\t}\n\n\t\tlet [key, value] = splitOnFirst(options.decode ? param.replace(/\\+/g, ' ') : param, '=');\n\n\t\t// Missing `=` should be `null`:\n\t\t// http://w3.org/TR/2012/WD-url-20120524/#collect-url-parameters\n\t\tvalue = value === undefined ? null : ['comma', 'separator', 'bracket-separator'].includes(options.arrayFormat) ? value : decode(value, options);\n\t\tformatter(decode(key, options), value, ret);\n\t}\n\n\tfor (const key of Object.keys(ret)) {\n\t\tconst value = ret[key];\n\t\tif (typeof value === 'object' && value !== null) {\n\t\t\tfor (const k of Object.keys(value)) {\n\t\t\t\tvalue[k] = parseValue(value[k], options);\n\t\t\t}\n\t\t} else {\n\t\t\tret[key] = parseValue(value, options);\n\t\t}\n\t}\n\n\tif (options.sort === false) {\n\t\treturn ret;\n\t}\n\n\treturn (options.sort === true ? Object.keys(ret).sort() : Object.keys(ret).sort(options.sort)).reduce((result, key) => {\n\t\tconst value = ret[key];\n\t\tif (Boolean(value) && typeof value === 'object' && !Array.isArray(value)) {\n\t\t\t// Sort object keys, not values\n\t\t\tresult[key] = keysSorter(value);\n\t\t} else {\n\t\t\tresult[key] = value;\n\t\t}\n\n\t\treturn result;\n\t}, Object.create(null));\n}\n\nexports.extract = extract;\nexports.parse = parse;\n\nexports.stringify = (object, options) => {\n\tif (!object) {\n\t\treturn '';\n\t}\n\n\toptions = Object.assign({\n\t\tencode: true,\n\t\tstrict: true,\n\t\tarrayFormat: 'none',\n\t\tarrayFormatSeparator: ','\n\t}, options);\n\n\tvalidateArrayFormatSeparator(options.arrayFormatSeparator);\n\n\tconst shouldFilter = key => (\n\t\t(options.skipNull && isNullOrUndefined(object[key])) ||\n\t\t(options.skipEmptyString && object[key] === '')\n\t);\n\n\tconst formatter = encoderForArrayFormat(options);\n\n\tconst objectCopy = {};\n\n\tfor (const key of Object.keys(object)) {\n\t\tif (!shouldFilter(key)) {\n\t\t\tobjectCopy[key] = object[key];\n\t\t}\n\t}\n\n\tconst keys = Object.keys(objectCopy);\n\n\tif (options.sort !== false) {\n\t\tkeys.sort(options.sort);\n\t}\n\n\treturn keys.map(key => {\n\t\tconst value = object[key];\n\n\t\tif (value === undefined) {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (value === null) {\n\t\t\treturn encode(key, options);\n\t\t}\n\n\t\tif (Array.isArray(value)) {\n\t\t\tif (value.length === 0 && options.arrayFormat === 'bracket-separator') {\n\t\t\t\treturn encode(key, options) + '[]';\n\t\t\t}\n\n\t\t\treturn value\n\t\t\t\t.reduce(formatter(key), [])\n\t\t\t\t.join('&');\n\t\t}\n\n\t\treturn encode(key, options) + '=' + encode(value, options);\n\t}).filter(x => x.length > 0).join('&');\n};\n\nexports.parseUrl = (url, options) => {\n\toptions = Object.assign({\n\t\tdecode: true\n\t}, options);\n\n\tconst [url_, hash] = splitOnFirst(url, '#');\n\n\treturn Object.assign(\n\t\t{\n\t\t\turl: url_.split('?')[0] || '',\n\t\t\tquery: parse(extract(url), options)\n\t\t},\n\t\toptions && options.parseFragmentIdentifier && hash ? {fragmentIdentifier: decode(hash, options)} : {}\n\t);\n};\n\nexports.stringifyUrl = (object, options) => {\n\toptions = Object.assign({\n\t\tencode: true,\n\t\tstrict: true,\n\t\t[encodeFragmentIdentifier]: true\n\t}, options);\n\n\tconst url = removeHash(object.url).split('?')[0] || '';\n\tconst queryFromUrl = exports.extract(object.url);\n\tconst parsedQueryFromUrl = exports.parse(queryFromUrl, {sort: false});\n\n\tconst query = Object.assign(parsedQueryFromUrl, object.query);\n\tlet queryString = exports.stringify(query, options);\n\tif (queryString) {\n\t\tqueryString = `?${queryString}`;\n\t}\n\n\tlet hash = getHash(object.url);\n\tif (object.fragmentIdentifier) {\n\t\thash = `#${options[encodeFragmentIdentifier] ? encode(object.fragmentIdentifier, options) : object.fragmentIdentifier}`;\n\t}\n\n\treturn `${url}${queryString}${hash}`;\n};\n\nexports.pick = (input, filter, options) => {\n\toptions = Object.assign({\n\t\tparseFragmentIdentifier: true,\n\t\t[encodeFragmentIdentifier]: false\n\t}, options);\n\n\tconst {url, query, fragmentIdentifier} = exports.parseUrl(input, options);\n\treturn exports.stringifyUrl({\n\t\turl,\n\t\tquery: filterObject(query, filter),\n\t\tfragmentIdentifier\n\t}, options);\n};\n\nexports.exclude = (input, filter, options) => {\n\tconst exclusionFilter = Array.isArray(filter) ? key => !filter.includes(key) : (key, value) => !filter(key, value);\n\n\treturn exports.pick(input, exclusionFilter, options);\n};\n","'use strict';\n\nmodule.exports = (string, separator) => {\n\tif (!(typeof string === 'string' && typeof separator === 'string')) {\n\t\tthrow new TypeError('Expected the arguments to be of type `string`');\n\t}\n\n\tif (separator === '') {\n\t\treturn [string];\n\t}\n\n\tconst separatorIndex = string.indexOf(separator);\n\n\tif (separatorIndex === -1) {\n\t\treturn [string];\n\t}\n\n\treturn [\n\t\tstring.slice(0, separatorIndex),\n\t\tstring.slice(separatorIndex + separator.length)\n\t];\n};\n","'use strict';\nmodule.exports = str => encodeURIComponent(str).replace(/[!'()*]/g, x => `%${x.charCodeAt(0).toString(16).toUpperCase()}`);\n","import api from '@utils/api';\nimport React, { useEffect, useState, useCallback } from 'react';\nimport { withTranslation } from 'react-i18next';\nimport ErrorBox from './ErrorBox';\nimport Icon from './Icon';\nimport Loading from '@ui/loading/Loading';\nlet nextId = 0;\nconst UploadFiles = (props) => {\n const { t } = props;\n const [fileBeingUploaded, setFileBeingUploaded] = useState();\n const [progress, setProgress] = useState(0);\n const [errors, setErrors] = useState([]);\n const [filesToRender, setFilesToRender] = useState([]);\n const [uniqueNames, setUniqueNames] = useState([]);\n const [isLoading, setIsLoading] = useState(false);\n const acceptedType = ['application/pdf', 'image/jpeg', 'image/png', 'image/svg+xml', 'video/quicktime', 'video/mp4', 'video/webm'];\n const maxUploadFileSize = Math.pow(2, 20) * 25;\n useEffect(() => {\n if (filesToRender.length > 5) {\n setErrors([...errors, ...[t('contactus.form.error.maxfiles', ['5'])]]);\n }\n }, [filesToRender]);\n useEffect(() => {\n // console.log('uniqueNames: ', uniqueNames);\n props.setAttachments(uniqueNames);\n }, [uniqueNames]);\n const importedFile = (e) => {\n setErrors([]);\n setIsLoading(true);\n let importError = false;\n let uploadedFiles = e.target.files;\n Array.from(uploadedFiles).forEach((uploadedFile) => {\n if (filesToRender.length >= 5) {\n setErrors([t('contactus.form.error.maxfiles', ['5'])]);\n importError = true;\n }\n if (!acceptedType.includes(uploadedFile.type)) {\n setErrors([...errors, ...[`${uploadedFile.name}: ${t('contactus.form.error.excludedformats')}`]]);\n importError = true;\n }\n if (uploadedFile.size > maxUploadFileSize) {\n setErrors([...errors, ...[`${uploadedFile.name}: ${t('contactus.form.error.maxsize')}`]]);\n importError = true;\n }\n if (!importError) {\n api.uploadFile(uploadedFile).then((data) => {\n if (data.success) {\n setUniqueNames([...uniqueNames, ...[data.files[0].uniqueFileName]]);\n setFilesToRender([...filesToRender, ...[{ id: nextId++, uniqueName: data.files[0].uniqueFileName, name: uploadedFile.name, size: uploadedFile.size, type: uploadedFile.type }]]);\n }\n setIsLoading(false);\n });\n }\n else {\n setIsLoading(false);\n }\n });\n e.target.value = \"\";\n };\n const deleteFile = useCallback((e) => {\n setErrors([]);\n e.preventDefault();\n e.target.closest('.file').style.display = \"none\";\n let elId = e.target.closest('.file').id;\n let elUniqueName = e.target.closest('.file').dataset.uniquename;\n // delete from array that render elements\n filesToRender.filter((fileToRender, index) => {\n if (fileToRender.id == elId) {\n filesToRender.splice(index, 1);\n setFilesToRender([...filesToRender, ...[]]);\n return true;\n }\n return false;\n });\n // delete from array of unique names\n uniqueNames.filter((uniqueName, index) => {\n if (uniqueName == elUniqueName) {\n uniqueNames.splice(index, 1);\n setUniqueNames([...uniqueNames, ...[]]);\n return true;\n }\n return false;\n });\n }, [filesToRender, uniqueNames]);\n return (React.createElement(\"div\", { className: 'input-file--wrapper' },\n React.createElement(\"div\", { className: \"input--fileupload\" },\n React.createElement(\"input\", { type: \"file\", onChange: importedFile, disabled: isLoading }),\n React.createElement(\"p\", { className: 'input--fileupload--label' },\n props.label,\n React.createElement(Icon, { name: \"login\" }))),\n React.createElement(\"div\", { className: \"imported-files\" },\n filesToRender.map((file) => (React.createElement(\"div\", { key: file.id, id: file.id, \"data-uniquename\": file.uniqueName, className: \"file\" },\n file.name,\n React.createElement(\"button\", { className: \"delete\", onClick: deleteFile },\n React.createElement(Icon, { name: \"delete\" }))))),\n isLoading && (React.createElement(\"div\", { className: \"file\" },\n React.createElement(Loading, { inline: true, lightMode: true })))),\n setErrors && React.createElement(ErrorBox, { errors: errors })));\n};\nexport default withTranslation()(UploadFiles);\n","import ErrorBox from '@components/common/ErrorBox';\nimport Button from '@ui/button/Button';\nimport DwFormField from '@ui/formfield/DwFormField';\nimport api from '@utils/api';\nimport formutils from '@utils/formutils';\nimport createDecorator from 'final-form-focus';\nimport React, { useEffect, useState } from 'react';\nimport { Form } from 'react-final-form';\nimport { useTranslation } from 'react-i18next';\nimport UploadFiles from '@components/common/UploadFiles';\nimport useQueryString from '@utils/useQueryString';\nimport { getRecaptchaToken } from '@utils/recaptchaUtils';\nconst focusOnError = createDecorator();\nconst ContactUsForm = (props) => {\n const { t } = useTranslation();\n const [formdef, setFormdef] = useState();\n const [initialValues, setInitialValues] = useState();\n const [errors, setErrors] = useState([]);\n const [submitted, setSubmitted] = useState(false);\n const [showSecondSelect, setShowSecondSelect] = useState(false);\n const [showOrderNumberInput, setShowOrderNumberInput] = useState(false);\n const [uniqueNames, setUniqueNames] = useState([]);\n const [debug] = useQueryString('debug');\n useEffect(() => {\n let val = {};\n api.getForm('contactUs', val).then((data) => {\n // setInitialValues(val);\n setFormdef(data);\n });\n }, []);\n const setAttachments = (attachments) => {\n setUniqueNames(attachments);\n console.log(attachments);\n };\n const changeReason = (e) => {\n let val = {};\n let Reason_Level_1__c = e.target.value;\n api.getForm('contactUs', val).then((data) => {\n let filteredReason = [];\n data.Reason_Level_2__c.options.forEach((option) => {\n if (option.id.split('§')[0] === Reason_Level_1__c) {\n option.value = option.value.split('§')[1];\n filteredReason.push(option);\n }\n });\n if (filteredReason.length > 0) {\n filteredReason.unshift({ checked: false, htmlValue: '', id: 'void', label: '', selected: true, value: '' });\n data.Reason_Level_2__c.options = filteredReason;\n let secondSelect = document.querySelector(\"select#Reason_Level_2__c\");\n if (secondSelect) {\n //@ts-ignore\n secondSelect.value = '';\n }\n setShowSecondSelect(true);\n }\n else {\n setShowSecondSelect(false);\n }\n setFormdef(data);\n });\n if (Reason_Level_1__c === 'Online purchases') {\n setShowOrderNumberInput(true);\n }\n else {\n setShowOrderNumberInput(false);\n }\n };\n const onSubmit = async (values) => {\n // ATTACHEMENT MANAGMENT\n if (uniqueNames.length > 0) {\n await api.submitFiles(uniqueNames).then((data) => {\n console.log(data);\n if (data.success) {\n data.urls.forEach((url, i) => {\n values[`Attachment${i + 1}__c`] = url;\n });\n }\n });\n }\n if (!showSecondSelect) {\n values.Reason_Level_2__c = '';\n }\n const gtoken = await getRecaptchaToken();\n values.debug = debug;\n return api\n .contactUsSubmit(values, formdef, gtoken)\n .then((data) => {\n if (data.success) {\n setSubmitted(true);\n }\n if (data.error && data.error.length > 0) {\n setErrors(data.error);\n }\n if (!formutils.checkValidationAfterSubmit(data, errors)) {\n return errors;\n }\n })\n .catch((e) => setErrors([e]));\n };\n const validate = async (values) => {\n let backendValidation = await formutils.validateForm(values, formdef, 'contactUs');\n const validateErrors = {};\n let secondSelect = document.querySelector(\"select#Reason_Level_2__c\");\n if (showSecondSelect && (!values.Reason_Level_2__c || values.Reason_Level_2__c === '' || (secondSelect && secondSelect.value === ''))) {\n validateErrors.Reason_Level_2__c = t('required.field');\n }\n let totalErrors = Object.assign(Object.assign({}, backendValidation), validateErrors);\n return totalErrors;\n };\n if (!formdef) {\n return React.createElement(React.Fragment, null);\n }\n if (submitted) {\n return (React.createElement(\"div\", { className: \"contact-us__form\" },\n React.createElement(\"p\", null, t('contactus.feedback.message.sent'))));\n }\n return (React.createElement(\"div\", { className: \"contact-us__form\" },\n React.createElement(Form, { onSubmit: onSubmit, validate: validate, initialValues: initialValues, decorators: [focusOnError], mutators: { global: formutils.globalMutator }, render: ({ handleSubmit, form, submitting, pristine, values }) => (React.createElement(\"form\", { onSubmit: handleSubmit },\n React.createElement(\"div\", { className: \"field-row\" },\n React.createElement(DwFormField, { def: formdef, name: \"Reason_Level_1__c\", requiredLabel: true, type: \"select\", onChange: (e) => changeReason(e) })),\n //@ts-ignore\n values.Reason_Level_1__c && (React.createElement(React.Fragment, null,\n React.createElement(\"div\", { className: \"field-row\" },\n showSecondSelect &&\n React.createElement(DwFormField, { def: formdef, name: \"Reason_Level_2__c\", requiredLabel: true, type: 'select' }),\n showOrderNumberInput &&\n React.createElement(DwFormField, { def: formdef, name: \"Order_Number__c\" })),\n React.createElement(\"div\", { className: \"field-row\" },\n React.createElement(DwFormField, { def: formdef, name: \"firstname\" }),\n React.createElement(DwFormField, { def: formdef, name: \"lastname\" })),\n React.createElement(\"div\", { className: \"field-row with-phone-info\" },\n React.createElement(DwFormField, { def: formdef, type: \"email\", name: \"email\", autocomplete: \"email\" }),\n React.createElement(DwFormField, { def: formdef, name: \"phone\" }),\n React.createElement(DwFormField, { def: formdef, name: \"city\" })),\n React.createElement(\"div\", { className: \"field-row\" },\n React.createElement(DwFormField, { def: formdef, name: \"description\", type: \"textarea\" })),\n React.createElement(UploadFiles, { setAttachments: setAttachments, label: t('contactus.form.attachment.label') + ' (' + t('contactus.form.attachment.limit', ['25', '5']) + ')' }),\n React.createElement(\"p\", { className: 'privacy-info', dangerouslySetInnerHTML: { __html: t('contactus.label.privacy.checkbox', [props.privacyurl]) } }),\n React.createElement(Button, { type: \"submit\", disabled: submitting, cls: ['cta-primary', 'cta-submit'] }, t('contactus.link')),\n React.createElement(ErrorBox, { errors: errors }),\n window.googleRecaptchaClientSide &&\n React.createElement(\"input\", { type: \"hidden\", name: \"googleRecaptchaClientSide\", value: window.googleRecaptchaClientSide }))))) })));\n};\nexport default ContactUsForm;\n","import { configureAccountStore } from '@state';\nimport React from 'react';\nimport { Provider } from 'react-redux';\nimport ContactUsForm from './ContactUsForm';\nconst store = configureAccountStore();\nconst ClientServiceContactUs = (props) => {\n return (React.createElement(Provider, { store: store },\n React.createElement(ContactUsForm, Object.assign({}, props))));\n};\nexport default ClientServiceContactUs;\n","import classNames from 'classnames';\nimport React from 'react';\nimport Icon from './Icon';\nconst ErrorBox = (props) => {\n const [closeError, setCloseError] = React.useState(false);\n if (closeError || !props.errors || props.errors.length === 0 || props.errors.every((err) => err === '')) {\n return React.createElement(React.Fragment, null);\n }\n return (React.createElement(\"div\", { className: classNames('globalerrors', { 'is-invalid': props.isInvalidTrigger && !closeError }, 'invalid-feedback', { 'closed': closeError }, props.className), role: \"alert\" },\n props.errors.map((e, i) => (React.createElement(\"div\", { key: i }, (e || '').toString()))),\n props.close &&\n React.createElement(\"button\", { className: \"close-button\", onClick: () => { setCloseError(true); } },\n React.createElement(Icon, { name: 'close' }))));\n};\nexport default ErrorBox;\n","import classNames from 'classnames';\nimport React from 'react';\nconst Loading = (props) => {\n return (React.createElement(React.Fragment, null, props.inline ? (React.createElement(\"div\", { className: classNames('loader', { light: props.lightMode, transparent: props.transparent }, 'visible') },\n React.createElement(\"span\", { className: \"loader__dot\" }),\n React.createElement(\"span\", { className: \"loader__dot\" }),\n React.createElement(\"span\", { className: \"loader__dot\" }))) : (React.createElement(\"div\", { id: \"html-spinner\", className: \"spinner full visible\" },\n React.createElement(\"span\", { className: \"spinner__dot spinner__dot--string_light\" }),\n React.createElement(\"span\", { className: \"spinner__dot spinner__dot--string_dark\" })))));\n};\nexport default Loading;\n","export const getRecaptchaToken = async () => {\n return new Promise((resolve, reject) => {\n if (typeof window.grecaptcha === 'undefined') {\n reject();\n return;\n }\n window.grecaptcha.ready(function () {\n window.grecaptcha.execute(window.googleRecaptchaClientSide, { action: '' }).then(function (token) {\n if (token) {\n resolve(token);\n }\n else {\n reject();\n }\n });\n });\n });\n};\n","import qs from 'query-string';\nimport { useCallback, useState } from 'react';\nfunction useQueryString(key, initialValue, isboolean) {\n const setQueryStringWithoutPageReload = (qsValue) => {\n const newurl = window.location.protocol + '//' + window.location.host + window.location.pathname + (qsValue ? '?' + qsValue : '');\n window.history.pushState({ path: newurl }, '', newurl);\n };\n const getQueryStringValue = (key) => {\n const values = qs.parse(window.location.search);\n let value = values[key];\n return isboolean ? !!value : value;\n };\n function setQueryStringValue(key, value) {\n const values = qs.parse(window.location.search);\n const newvalues = Object.assign(Object.assign({}, values), { [key]: value });\n if (isboolean && !value) {\n delete newvalues[key];\n }\n const newQsValue = qs.stringify(newvalues);\n setQueryStringWithoutPageReload(newQsValue);\n }\n const onSetValue = useCallback((newValue) => {\n let newvaltyped = isboolean ? !!newValue || undefined : newValue;\n setValue(newvaltyped);\n setQueryStringValue(key, newvaltyped);\n }, [key]);\n const [value, setValue] = useState((getQueryStringValue(key) || initialValue));\n return [value, onSetValue];\n}\nexport default useQueryString;\n"],"names":["token","singleMatcher","RegExp","multiMatcher","decodeComponents","components","split","decodeURIComponent","join","err","length","left","slice","right","Array","prototype","concat","call","decode","input","tokens","match","i","module","exports","encodedURI","TypeError","replace","replaceMap","exec","result","entries","Object","keys","key","customDecodeURIComponent","obj","predicate","ret","isArr","isArray","val","indexOf","isFocusableInput","wtf","focus","getAllInputs","document","forms","reduce","accumulator","form","filter","findInput","inputs","errors","find","name","noop","getInputs","findInput$$1","focusOnFirstError","firstInput","originalSubmit","submit","state","unsubscribe","subscribe","nextState","submitErrors","afterSubmit","_state","then","strictUriEncode","decodeComponent","splitOnFirst","filterObject","encodeFragmentIdentifier","Symbol","validateArrayFormatSeparator","value","encode","options","strict","encodeURIComponent","keysSorter","sort","a","b","Number","map","removeHash","hashStart","extract","queryStart","parseValue","parseNumbers","isNaN","trim","parseBooleans","toLowerCase","parse","query","assign","arrayFormat","arrayFormatSeparator","formatter","undefined","includes","isEncodedArray","newValue","item","test","arrayValue","parserForArrayFormat","create","param","k","Boolean","stringify","object","shouldFilter","skipNull","skipEmptyString","index","keyValueSep","encoderForArrayFormat","objectCopy","x","parseUrl","url","url_","hash","parseFragmentIdentifier","fragmentIdentifier","stringifyUrl","queryFromUrl","parsedQueryFromUrl","queryString","getHash","pick","exclude","exclusionFilter","string","separator","separatorIndex","str","charCodeAt","toString","toUpperCase","nextId","withTranslation","props","fileBeingUploaded","setFileBeingUploaded","useState","progress","setProgress","setErrors","filesToRender","setFilesToRender","uniqueNames","setUniqueNames","isLoading","setIsLoading","acceptedType","maxUploadFileSize","Math","pow","useEffect","t","setAttachments","deleteFile","useCallback","e","preventDefault","target","closest","style","display","elId","id","elUniqueName","dataset","uniquename","fileToRender","splice","uniqueName","className","type","onChange","importError","uploadedFiles","files","from","forEach","uploadedFile","size","api","data","success","uniqueFileName","disabled","label","Icon","file","onClick","Loading","inline","lightMode","ErrorBox","focusOnError","useTranslation","formdef","setFormdef","initialValues","setInitialValues","submitted","setSubmitted","showSecondSelect","setShowSecondSelect","showOrderNumberInput","setShowOrderNumberInput","debug","useQueryString","attachments","console","log","onSubmit","async","values","urls","Reason_Level_2__c","gtoken","error","formutils","catch","validate","backendValidation","validateErrors","secondSelect","querySelector","decorators","mutators","global","render","handleSubmit","submitting","pristine","DwFormField","def","requiredLabel","Reason_Level_1__c","filteredReason","option","push","unshift","checked","htmlValue","selected","changeReason","autocomplete","dangerouslySetInnerHTML","__html","privacyurl","Button","cls","window","googleRecaptchaClientSide","store","closeError","setCloseError","every","isInvalidTrigger","role","close","light","transparent","getRecaptchaToken","Promise","resolve","reject","grecaptcha","ready","execute","action","initialValue","isboolean","setQueryStringValue","location","search","newvalues","qsValue","newurl","protocol","host","pathname","history","pushState","path","setQueryStringWithoutPageReload","onSetValue","newvaltyped","setValue","getQueryStringValue"],"sourceRoot":""}