CINXE.COM
Data Subject Request Form
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Data Subject Request Form</title> <link href="/favicon.ico?v=@generated.version@" rel="icon" type="image/x-icon" /> <script type="text/javascript" src="/v1.1/js/jquery-3.5.0.min.js"></script> <script type="text/javascript" src="/v1/js/handlebars-4.7.7.min.js"></script> <link type="text/css" href="/v1/css/bootstrap-3.4.1.min.css" rel="stylesheet"/> <script type="text/javascript" src="/v1/js/bootstrap-3.4.1.min.js"></script> <link href="/webpage/css/wrapper.css?v=@generated.version@" rel="stylesheet"> <!-- alpaca --> <link type="text/css" href="/v1/css/bootstrap-alpaca-1.5.24.min.css" rel="stylesheet"/> <script type="text/javascript" src="/v1/js/alpaca-1.5.24.min.js"></script> <!-- alpaca date plugin --> <script type="text/javascript" src="/v1/js/moment-with-locales-2.24.0.min.js"></script> <link type="text/css" href="/v1/css/bootstrap-datetimepicker-4.17.47.min.css" rel="stylesheet"/> <script type="text/javascript" src="/v1/js/bootstrap-datetimepicker-4.17.47.min.js"></script> <!-- Include bootstrap multi-select css and js --> <link type="text/css" href="/v1/css/bootstrap-multiselect-1.1.1.min.css" rel="stylesheet"/> <script type="text/javascript" src="/v1/js/bootstrap-multiselect-1.1.1.min.js"></script> <style> .intake-color-red { color:red; } .confirmation-body { height: 100px; } #form1 .checkbox a { font-weight: bold; } @media only screen and (max-device-width : 767px) { .alpaca-form-button-reset{ width: 100% !important; } .alpaca-form-button-submit{ margin-top: 10px; width: 100% !important; } #form1{ padding-bottom: 55px; } .container, .alpaca-field-object{ padding-right: 0 !important; padding-left: 0 !important; } .uploadDropZone{ height: auto !important; line-height: normal !important; padding: 10px; } .uploadDropInfoMsg { font-size: 16px; color: #004676; } .multi-value-field-mobile{ display: flex; margin-top: 10px; } } .uploadDropZone,.uploadDropInfo { height: 50px; margin-bottom: 0px; color: #035801; border: 2px dashed #ccc; line-height: 50px; text-align: center; overflow: hidden; white-space: nowrap; } .uploadDropZoneDrop { color: #222; border-color: #222; } .uploadDropZone a { cursor: pointer; color: #044e8e; } .uploadDropInfoMsg { font-size: 14px; text-overflow: ellipsis; color: #004676; } .modal-body { position: relative; display: table; overflow-y: auto; overflow-x: auto; height: 100%; width: auto; } .glyphicon-large { font-size: 25px; } .glyphicon-medium { font-size: 20px; } .alert-info{ display: flex; align-items: center; color: #214a5f; } .alert-info span{ text-align: justify; } a { color: #224f77; } .btn-primary.focus,.btn-primary:focus{ background-color:#214f78; } .modal-title { font-size: 18px; } .multi-value-pane { margin-top: .5em; margin-bottom: .5em; margin-right: -10%; } .multi-value-trash { margin-left: -4%; margin-top: .5em; cursor: pointer; } .multi-value-pane > .multi-value-field { margin-top: .5em; } .multi-value-add { cursor: pointer; } #companyName, #header{ text-align: center; } .col-md-6{ padding-bottom: 15px; } .captchaBox-mobile { margin-bottom: 30px; transition: none !important; position: static !important; background-color: #4a90e2 !important; width: 100% !important; display: inline-block; } .alpaca-form-buttons-container { margin-bottom: 30px; } </style> <script type="text/javascript"> function onRecaptchaLoadCallback() { if(!GOOGLE_RECAPTCHA_V3_ENABLED){ return; } //WCAG 2 Compliance $('.grecaptcha-badge textarea').attr('aria-label', 'form1'); $('.grecaptcha-badge iframe').attr('aria-hidden', true); $('.grecaptcha-badge iframe').attr('title', 'grecaptcha iframe'); //Move captcha badge inside form container div for easier handling on mobile devices $(".grecaptcha-badge").insertBefore($(".alpaca-form-buttons-container")); //On load, resize recaptcha resizeRecaptcha(); window.addEventListener('resize', function() { resizeRecaptcha(); }); } function resizeRecaptcha() { const captchas = document.getElementsByClassName("grecaptcha-badge"); if(!captchas || captchas.length === 0){ console.log('[irm form] cannot find element with class: grecaptcha-badge'); return; } const captchaBadge = captchas[0]; if(window.innerWidth <= 785) { captchaBadge.classList.add("captchaBox-mobile"); } else { captchaBadge.classList.remove("captchaBox-mobile"); } } </script> <script src="https://www.google.com/recaptcha/api.js?onload=onRecaptchaLoadCallback&render=6LdSn6gUAAAAAKZ5SiEQ8PdCUOgV9sf1ei4utXrB"></script> <script type="text/javascript"> if (typeof NodeList.prototype.forEach !== 'function') { NodeList.prototype.forEach = Array.prototype.forEach; } if (!String.prototype.includes) { //To check browser supports or not String.prototype.includes = function (str) { //If not supported, then define the method return this.indexOf(str) !== -1; } } if (!Array.prototype.includes) { Array.prototype.includes = function (elem){ return this.indexOf(elem) !== -1; } } const getUrlParameterByName = function (name) { const url = window.location.href name = name.replace(/[\[\]]/g, '\\$&'); const regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'), results = regex.exec(url); if (!results) return null; if (!results[2]) return ''; return decodeURIComponent(results[2].replace(/\+/g, ' ')); } const nullSafeGet = function (p, o) { return p.reduce( function (xs, x) { return (xs && xs[x]) ? xs[x] : null; } , o ); }; const ALPACA_CUSTOM_EMAIL_REGEX = /^[a-z0-9!\#\$%&'\*\-\/=\?\+\-\^_`\{\|\}~]+(?:\.[a-z0-9!\#\$%&'\*\-\/=\?\+\-\^_`\{\|\}~]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z]{2,}$/i; const locale = "en"; const authType = "CAPTCHA"; const CAPTCHA_TYPES = ["GOOGLE_RECAPTCHA_V3"]; const GOOGLE_RECAPTCHA_V3_ENABLED = authType === 'CAPTCHA' && CAPTCHA_TYPES.includes('GOOGLE_RECAPTCHA_V3'); const TRUSTARC_CAPTCHA_ENABLED = authType === 'CAPTCHA' && CAPTCHA_TYPES.includes('TRUSTARC'); const noSubmit = authType === 'NONE'; const formId = "9847e67e-3b74-4738-80df-dd7eaac1483a"; const requestId = null; const suppValidationId = null; const sourceWebsite = null; const ipAddress = "8.222.208.146"; const gpcEnabled = isGPCEnabled(); (function($) { $.fn.visible = function() { return this.css('visibility', 'visible'); }; $.fn.invisible = function() { return this.css('visibility', 'hidden'); }; var Alpaca = $.alpaca; $.alpaca.Fields.StaticField = $.alpaca.Fields.TextField.extend({ getFieldType: function() { return "static"; }, getDescription: function() { return "Static Field."; } }); Alpaca.registerFieldClass("static", Alpaca.Fields.StaticField); Alpaca.registerDefaultFormatFieldMapping("static", "string"); $.alpaca.Fields.EndField = $.alpaca.Fields.TextField.extend({ getFieldType: function() { return "end"; }, getDescription: function() { return "End of Submission Field."; }, onShow: function() { this.base(); this.schema.required = true; this.triggerUpdate(); $('div[alpaca-layout-binding-field-name="'+ this.name +'"] ~ div').hide(); hideTrustArcCaptcha() }, onHide: function() { this.base(); this.schema.required = false; this.triggerUpdate(); $('div[alpaca-layout-binding-field-name="'+ this.name +'"] ~ div').show(); showTrustArcCaptcha() } }); Alpaca.registerFieldClass("end", Alpaca.Fields.EndField); Alpaca.registerDefaultFormatFieldMapping("end", "string"); $.alpaca.Fields.NameField = $.alpaca.Fields.TextField.extend({ setValue: function(first, last) { var name = first; if (last) { name = name + last; } this.base(name); }, getFieldType: function() { return "name"; }, getDescription: function() { return "Name Field."; }, _validateOptional: function() { var self = this; if (self.schema.nameType === 'FIRSTLAST') { var fields = $(self.control).find( self.options.fields.map(function(f) { return "input[name='" + f.id + "']"; }).join(",") ); if(!validateOptionalBaseCheck(self, fields)){ return false; } } if(!validateOptionalMultiValuesBaseCheck(self)){ return false; } return self.base(); }, addField: function() { MultiValue.addField(this, "name"); }, clear: function() { var self = this; if (self.schema.nameType === 'FIRSTLAST') { var fields = $(self.control).find( self.options.fields.map(function(f) { return "input[name='" + f.id + "']"; }).join(",") ); fields.each(function(key, elem){ elem.value = ''; }); } else if(self.schema.nameType === 'FULLNAME') { $(self.control).get(0).value = ''; } hideErrors(self); }, postRender: function(callback) { var self = this; if (self.schema.nameType === 'FIRSTLAST') { var fields = $(self.control).find( self.options.fields.map(function(f) { return "input[name='" + f.id + "']"; }).join(",") ); fields.on("change", function () { var concatval = fields.map(function () { return $(this).val(); }).get().join(" "); self.setValue(concatval); self.refreshValidationState(true); }); } MultiValue.render(this); this.base(function() { callback(); }); } }); Alpaca.registerFieldClass("name", Alpaca.Fields.NameField); $.alpaca.Fields.ExEmailField = $.alpaca.Fields.EmailField.extend({ addField: function() { MultiValue.addField(this, "text"); }, _validateOptional: function() { var self = this; if(!validateOptionalMultiValuesBaseCheck(self)){ return false; } return self.base(); }, _validatePattern: function(){ var self = this; var isValid = true; var fields = getMultiValueInputFields(self); var isRequired = self.schema.required; var val = this.getValue(); let index = 0; do { if(val === "" && !isRequired) { isValid = true; } else if(!Alpaca.testRegex(ALPACA_CUSTOM_EMAIL_REGEX, val)) { isValid = false; } if (fields.length > index) { val = fields[index].value; } } while (isValid && index++ < fields.length); return isValid; }, handleValidate: function() { var baseStatus = this.base(); var key = this.name; var field = nullSafeGet(["view", "fields", key], this); var val = this.getValue(); valueFieldMap.set(key, val); fieldTitleMap.set(key, this.options.label); var valInfo = this.validation; var status = this._validatePattern(); if (field) { valInfo["invalidPattern"] = { "message": status ? "" : field.messages.invalidPattern, "status": status }; } else { valInfo["invalidPattern"] = { "message": status ? "" : this.getMessage("invalidEmail"), "status": status }; } if (matchFieldMap.get(key) != null) { status = validateMatchField(this, val); } else { status = true; } valInfo["doesNotMatchField"] = { "message": status ? "" : Alpaca.substituteTokens(this.getMessage("doesNotMatchField"), [fieldTitleMap.get(matchFieldMap.get(key))]), "status": status }; return baseStatus && valInfo["doesNotMatchField"]["status"]; }, clear: function() { this.setValue(null); hideErrors(this); }, postRender: function(callback) { MultiValue.render(this); var key = this.name; isMatchFieldEnabled(this.schema, key); this.base(function() { callback(); }); } }); Alpaca.registerFieldClass("email", Alpaca.Fields.ExEmailField); $.alpaca.Fields.ExTextField = $.alpaca.Fields.TextField.extend({ addField: function() { MultiValue.addField(this, "text"); }, _validateOptional: function() { var self = this; if(!validateOptionalMultiValuesBaseCheck(self)){ return false; } return self.base(); }, clear: function() { this.setValue(null); hideErrors(this); }, postRender: function(callback) { MultiValue.render(this); this.base(function() { callback(); }); }, _validatePattern: function() { var self = this; var pattern = this.schema.pattern; if (pattern) { var fields = getMultiValueInputFields(self); var matchesPatternFunc = function() { return Alpaca.testRegex(pattern, $(this).val()); }; if (getFieldsFilterLength(fields, matchesPatternFunc) < fields.length) { return false; } } return self.base(); }, _validateMaxLength: function() { var isValid = true; if (!Alpaca.isEmpty(this.schema.maxLength)) { var val = this.getValue(); var fields = getMultiValueInputFields(this); let index = 0; do { isValid = validateMaxLength(this, val); if (fields.length > index) { val = fields[index].value; } } while (isValid && index++ < fields.length); } return isValid; }, _validateMinLength: function() { var isValid = true; if (!Alpaca.isEmpty(this.schema.minLength)) { var val = this.getValue(); var fields = getMultiValueInputFields(this); let index = 0; do { isValid = validateMinLength(this, val); if (fields.length > index) { val = fields[index].value; } } while (isValid && index++ < fields.length); } return isValid; }, handleValidate: function() { var baseStatus = this.base(); var valInfo = this.validation; var key = this.name; var field = nullSafeGet(["view", "fields", key], this); var status = this._validatePattern(); if(field){ valInfo["invalidPattern"] = { "message": status ? "" : field.messages.invalidPattern, "status": status }; } else{ valInfo["invalidPattern"] = { "message": status ? "" : Alpaca.substituteTokens(this.getMessage("invalidPattern"), [this.schema.pattern]), "status": status }; } status = this._validateMaxLength(); valInfo["stringTooLong"] = { "message": status ? "" : Alpaca.substituteTokens(this.getMessage("stringTooLong"), [this.schema.maxLength]), "status": status }; status = this._validateMinLength(); valInfo["stringTooShort"] = { "message": status ? "" : Alpaca.substituteTokens(this.getMessage("stringTooShort"), [this.schema.minLength]), "status": status }; return baseStatus && valInfo["invalidPattern"]["status"] && valInfo["stringTooLong"]["status"] && valInfo["stringTooShort"]["status"]; } }); Alpaca.registerFieldClass("text", Alpaca.Fields.ExTextField); Alpaca.registerView ({ "id": "base", "templates": { "control-date": appendBuildVersionQueryParam("/v1.1/alpaca/templates/control-date.html"), "control-static": appendBuildVersionQueryParam("/v1.1/alpaca/templates/control-static.html"), "control-end": appendBuildVersionQueryParam("/v1.1/alpaca/templates/control-end.html"), "control-checkbox": appendBuildVersionQueryParam("/v1.1/alpaca/templates/control-checkbox.html"), "control-file": appendBuildVersionQueryParam("/v1.1/alpaca/templates/control-file.html"), "control-name": appendBuildVersionQueryParam("/v1.1/alpaca/templates/control-name.html"), "control-text": appendBuildVersionQueryParam("/v1.1/alpaca/templates/control-text.html") }, "messages": { "en": {"captchaVerifyAriaLabel":"Verify CAPTCHA","stringBeTexts":"Field should have a value of text only.","captchaRefreshInfo":"CAPTCHA has been refreshed. Please check again.","captchaErrorInfo":"The CAPTCHA you have entered is incorrect. Click here to try again.","invalidPassword":"Invalid Password","captchaAriaLabel":"CAPTCHA Verification is required.","stringValueTooLargeExclusive":"Value of this field must be less than {0}","required":"This field is not optional.","invalidBigFiles":"Only accepts file less than {0} MB.","captchaRefreshLabel":"Refresh","notOptional":"This field is not optional.","captchaPlaySoundLabel":"Play Sound","doesNotMatchField":"This needs to match with field {0}.","stringTooLong":"This field should contain at most {0} numbers or characters","captchaSuccessInfo":"CAPTCHA has been successfully verified.","captchaInputPlaceholder":"Enter CAPTCHA value","stringTooShort":"This field should contain at least {0} numbers or characters","invalidEmail":"Invalid Email address e.g. info@example.com","captchaPlaySoundAriaLabel":"Play Sound and enter the numbers you hear in the input field","multipleFiles":"Multiple files not supported.","stringDivisibleBy":"The value must be divisible by {0}","invalidPhone":"Invalid Phone Number, e.g. (123) 456-9999","stringBeLink":"Field is not a valid hyperlink.","notEnoughItems":"The minimum number of items is {0}","captchaLabel":"CAPTCHA Verification","captchaInputAriaLabel":"Enter the numbers you hear in the input field","tooManyItems":"The maximum number of items is {0}","invalidFileTypes":"Invalid file type.","captchaRefreshAriaLabel":"Refresh CAPTCHA","invalidValueOfEnum":"This field should have one of the values in the options. Current value is: [{1}]","invalidDate":"<div>Invalid date for format {0}<\/div>","notAnArray":"This value is not an Array","disallowValue":"{0} are disallowed values.","uploadIncomplete":"File upload not yet complete.","stringValueTooSmallExclusive":"Value of this field must be greater than {0}","stringNotAnInteger":"This value is not an integer.","stringValueTooSmall":"The minimum value for this field is {0}","captchaVerifyButtonLabel":"Verify CAPTCHA","invalid":"Invalid value.","stringValueTooLarge":"The maximum value for this field is {0}","invalidFilename":"Invalid file name: {0}.","invalidPattern":"This field should have pattern {0}","stringBeNumbers":"Field should have a value of numbers only.","stringNotANumber":"This value is not a number.","captchaReloadAriaLabel":"CAPTCHA has been refreshed. Please check again","valueNotUnique":"Values are not unique"} } }); $.alpaca.Fields.ExDateField = $.alpaca.Fields.TextField.extend({ setValue: function(value, clear) { if(clear){ var dates = $(this.control).find('input'); dates.each(function (index,elem) { elem.value = value; }); } this.base(value); }, getFieldType : function() { return "date"; }, getDateFormat: function() { if (!this.options.dateFormat) { return Alpaca.defaultDateFormat; } return this.options.dateFormat; }, setup: function() { var self = this; this.base(); if (!self.options.picker) { self.options.picker = {}; } self.options.picker.format = self.getDateFormat(); if (!self.options.picker.locale) { self.options.picker.locale = locale; } }, handleValidate: function() { var baseStatus = this.base(); var valInfo = this.validation; var status = this._validateBasedOnRules(); valInfo["invalidDate"] = { "message": status ? "" : this.errorMsg, "status": status }; return baseStatus && valInfo["invalidDate"]["status"]; }, _validateOptional: function() { var self = this; var isRequired = self.isRequired() if(isRequired){ var first = self.cleanDate(self.domEl.find("input[data-index='0']").data("DateTimePicker").date()); var secondExists = self.domEl.find("input[data-index='1']").data("DateTimePicker"); var second = self.cleanDate( secondExists ? secondExists.date() : 0 ); if (self.schema.dateType == 'DATERANGE' && (!first || !second)) { return false; } else if (!first) { return false; } } return true; }, _validateBasedOnRules: function() { var self = this; var first = self.cleanDate(self.domEl.find("input[data-index='0']").data("DateTimePicker").date()); var secondExists = self.domEl.find("input[data-index='1']").data("DateTimePicker"); var second = self.cleanDate( secondExists ? secondExists.date() : 0 ); var sys = self.cleanDate(moment()); var rules = self.options.validationRules || []; if (rules.length) { if (self.schema.dateType == 'DATERANGE') { if (first && second) { for (var i in rules) { var arr = rules[i].split("_"); var t1 = self.getTime(arr[0], first, sys, second); var t2 = self.getTime(arr[2], first, sys, second); if (!self.compareTime(t1, arr[1], t2)) { self.setErrorMsg(arr); return false; } } } } else if (first) { for (var i in rules) { var arr = rules[i].split("_"); if (!self.compareTime(first, arr[1], sys)) { self.setErrorMsg(arr); return false; } } } } return true; }, setErrorMsg: function(ruleArr) { this.errorMsg = ""; switch (ruleArr[0]) { case 'DATE': this.errorMsg += "Date "; break; case 'DATEA': this.errorMsg += "'From Date' "; break; case 'DATEB': this.errorMsg += "'To Date' "; break; } this.errorMsg += "should be "; switch (ruleArr[1]) { case 'G': this.errorMsg += "greater than "; break; case 'GE': this.errorMsg += "greater than or equal to "; break; case 'L': this.errorMsg += "less than "; break; case 'LE': this.errorMsg += "less than or equal to "; break; } switch (ruleArr[2]) { case 'SYS': this.errorMsg += "today's date"; break; case 'DATEB': this.errorMsg += "'To Date'"; break; } }, cleanDate: function(date) { if (date) { var format = date.format(this.getDateFormat()); return moment(format, this.getDateFormat()) } return null; }, compareTime: function(t1, op, t2) { if (op == 'G') { return t1.isAfter(t2); } else if (op == 'GE') { return t1.isSameOrAfter(t2); } else if (op == 'L') { return t1.isBefore(t2); } else if (op == 'LE') { return t1.isSameOrBefore(t2); } }, getTime: function(rule, first, sys, second) { if (rule == 'DATEA') { return first; } else if (rule == 'DATEB') { return second; } else if (rule == 'SYS') { return sys; } }, onChange: function(e) { this.base(); this.refreshValidationState(); this.dynamicTrigger(); }, afterRenderControl: function(model, callback) { var self = this; this.base(model, function() { if ($.fn.datetimepicker) { self.domEl.find("input[data-type='date']").each(function(){ $(this).datetimepicker(self.options.picker); $(this).data("DateTimePicker"); $(this).on("dp.change", function(e) { // we use a timeout here because we want this to run AFTER control click handlers setTimeout(function() { self.onChange.call(self, e); self.triggerWithPropagation("change", e); }, 250); }); }); } callback(); }); }, clear: function() { this.setValue(null, true); this.domEl.find("input").data("DateTimePicker").clear(); this.updateObservable(); this.triggerUpdate(); hideErrors(this); } }); Alpaca.registerFieldClass("date", Alpaca.Fields.ExDateField); Alpaca.registerDefaultFormatFieldMapping("date", "date"); $.alpaca.Fields.ExCheckField = $.alpaca.Fields.CheckBoxField.extend({ onChange: function(e) { this.base(); this.dynamicTrigger(); }, clear: function() { this.setValue(null); this.updateObservable(); this.triggerUpdate(); hideErrors(this); }, dynamicTrigger: function() {} }); Alpaca.registerFieldClass("checkbox", Alpaca.Fields.ExCheckField); $.alpaca.Fields.ExSelectField = $.alpaca.Fields.SelectField.extend({ postRender: function(callback) { this.setValue(null); if (this.selectOptions.length > 0 && !this.schema.default) { delete this.selectOptions[0].selected; } if(this.options.multiple) { this.schema.type = "array"; if(this.schema.required) { $(this.control).multiselect('deselectAll'); } if(this.schema.enum.length < 1) { $(this.control).multiselect('disable'); } } this.updateObservable(); this.triggerUpdate(); this.triggerWithPropagation("change"); this.base(function() { callback(); }); }, afterSetValue: function() { var self = this; self.base(); if (self.data.length == 0) { $(self.control).val(null); } }, clear: function() { if(this.options.multiple) { $(this.control).multiselect('clearSelection'); } this.setValue(null); this.updateObservable(); this.triggerUpdate(); hideErrors(this); }, onChange: function(e) { this.base(); selectedShowFields.clear(); this.dynamicTrigger(); }, dynamicTrigger: function() {} }); Alpaca.registerFieldClass("select", Alpaca.Fields.ExSelectField); $.alpaca.Fields.ExFileField = $.alpaca.Fields.FileField.extend({ setValue: function (value, display) { var self = this; var uploadFileField = $(this.control).find('.uploadFileField'); uploadFileField.val(value); self.setInfo(display); this.base(value); }, clear: function () { this.setValue(null, null); this.clearLoading(); var uploadFileHiddenField = $(this.control).find('.uploadFileHiddenField'); uploadFileHiddenField.val(null); this.updateObservable(); this.triggerUpdate(); hideErrors(this); }, handleValidate: function () { var baseStatus = this.base(); var valInfo = this.validation; var uploadFileHiddenField = $(this.control).find('.uploadFileHiddenField'); var files = uploadFileHiddenField.prop('files'); var status = this._validateFilename(files); var fileName = files && files.length > 0 ? files[0].name : ""; valInfo["invalidFilename"] = { "message": status ? "" : Alpaca.substituteTokens(this.getMessage("invalidFilename"), [fileName]), "status": status }; status = this._validateMultipleFiles(files); valInfo["multipleFiles"] = { "message": status ? "" : Alpaca.substituteTokens(this.getMessage("multipleFiles"), []), "status": status }; status = this._validateBigFiles(files); valInfo["invalidBigFiles"] = { "message": status ? "" : Alpaca.substituteTokens(this.getMessage("invalidBigFiles"), [convertToMB(this.options.maxFileSize)]), "status": status }; status = this._validateInvalidFiles(uploadFileHiddenField, files); valInfo["invalidFileTypes"] = { "message": status ? "" : Alpaca.substituteTokens(this.getMessage("invalidFileTypes"), [this.options.accept]), "status": status }; status = !this.isUploading(); valInfo["uploadIncomplete"] = { "message": status ? "" : Alpaca.substituteTokens(this.getMessage("uploadIncomplete"), []), "status": status }; return baseStatus && valInfo["multipleFiles"]["status"] && valInfo["invalidBigFiles"]["status"] && valInfo["invalidFileTypes"]["status"] && valInfo["uploadIncomplete"]["status"]; }, _validateFilename: function (files) { var pattern = "^[ A-Za-z0-9_.()!'*\/-]*$"; if (files && files.length > 0 && !Alpaca.testRegex(pattern, files[0].name)) { return false; } return true; }, _validateMultipleFiles: function (files) { if (files && files.length > 1) { return false; } return true; }, _validateBigFiles: function (files) { if (files && files.length > 0 && files[0].size > this.options.maxFileSize) { return false; } return true; }, _validateInvalidFiles: function (uploadFileHiddenField, files) { var accept = uploadFileHiddenField.prop('accept'); if (accept && files && files.length > 0 && !accept.includes(files[0].name.split(/(?:\.([^.]+))?$/)[1])) { return false; } return true; }, postRender: function (callback) { var self = this; var uploadDropZone = $(self.control).find('.uploadDropZone'); var uploadFileHiddenField = $(self.control).find('.uploadFileHiddenField'); if (uploadDropZone && uploadFileHiddenField) { uploadDropZone.on('drop', function (e) { if (self.onCurrentUpload()) return false; e.preventDefault(); uploadDropZone.addClass('uploadDropZoneDrop'); if (uploadFileHiddenField) { uploadFileHiddenField.prop('files', e.originalEvent.dataTransfer.files); self._uploadFile(); } }); uploadDropZone.on('dragover', function (e) { if (self.onCurrentUpload()) return false; e.preventDefault(); uploadDropZone.addClass('uploadDropZoneDrop'); return false; }); uploadDropZone.on('dragleave', function (e) { if (self.onCurrentUpload()) return false; e.preventDefault(); uploadDropZone.removeClass('uploadDropZoneDrop'); return false; }); var dropZoneAnchor = (uploadDropZone).find('a').first(); if (dropZoneAnchor) { if (uploadFileHiddenField) { dropZoneAnchor.on('click', function (e) { uploadFileHiddenField.click() }); } } if (uploadFileHiddenField) { uploadFileHiddenField.on('change', function (e) { self._uploadFile(); }) } } var uploadDropInfo = $(self.control).find('.uploadDropInfo'); if (uploadDropInfo) { uploadDropInfo.find('.close').on('click', function (e) { self.clear(); enableSubmitButton(); }); } this.base(function () { self.getParent().domEl.on("reset", function (e) { self.clear(); }); callback(); }); }, clearLoading: function () { if (this.isUploading()) { this.__uploader.abort(); } var progressElem = $(this.control).find('.progress-bar').first(); progressElem.removeClass("progress-bar-danger"); progressElem.css('width', '0%'); var uploadDropZone = $(this.control).find('.uploadDropZone').first(); uploadDropZone.removeClass('uploadDropZoneDrop'); }, initLoading: function () { this.setValue('-'); this.setInfo('Uploading Files...'); this.clearLoading(); }, updateLoading: function (width) { var progressElem = $(this.control).find('.progress-bar').first(); progressElem.css('width', width + '%'); }, errorLoading: function (response) { var progressElem = $(this.control).find('.progress-bar').first(); progressElem.addClass("progress-bar-danger"); var uploadFileField = this.getFieldEl(); uploadFileField.addClass('has-error'); uploadFileField.addClass('alpaca-invalid'); uploadFileField.addClass('help-block'); this.setInfo(response); }, isValid: function (checkChildren) { var uploadFileField = this.getFieldEl(); if (uploadFileField.hasClass('has-error')) { return false; } if (checkChildren && this.children) { for (var i = 0; i < this.children.length; i++) { var child = this.children[i]; if (child.isValidationParticipant()) { if (!child.isValid(checkChildren)) { return false; } } } } if ($.isEmptyObject(this.validation)) { return true; } else { for (var key in this.validation) { if (!this.validation[key].status) { return false; } } return true; } }, setInfo: function (display) { var uploadDropZone = $(this.control).find('.uploadDropZone').first(); var uploadDropInfo = $(this.control).find('.uploadDropInfo').first() if (display) { uploadDropZone.css('display', 'none'); uploadDropInfo.css('display', 'block') uploadDropInfo.find('.uploadDropInfoMsg').first().text(wrapText(display, 50)); } else { uploadDropZone.css('display', 'block'); uploadDropInfo.css('display', 'none'); } }, __uploader: null, isUploading: function () { if (this.__uploader && (this.__uploader.readyState != 4 && this.__uploader.readyState != 0)) { return true; } return false; }, onCurrentUpload: function () { if (this.isUploading() || this.data) { return true; } return false; }, _uploadFile: function () { var self = this; var uploadFileHiddenField = $(self.control).find('.uploadFileHiddenField').first(); self.initLoading(); self.refreshValidationState(true, function () { if (!self.isValid(true)) { return; } var file = uploadFileHiddenField.prop('files')[0]; let formData = new FormData(); formData.append("file", file); formData.append("formId", formId); self.__uploader = $.ajax({ url: '/services/storage/upload', method: 'POST', type: 'POST', data: formData, contentType: false, processData: false, xhr: function () { var xhr = new window.XMLHttpRequest(); xhr.upload.addEventListener("progress", function (evt) { if (evt.lengthComputable) { var percentComplete = evt.loaded / evt.total; console.log('Uploading percent complete: ', percentComplete); self.updateLoading(Math.round(percentComplete * 100)); var submitButton = $(".alpaca-form-button.alpaca-form-button-submit.btn.btn-default"); if (percentComplete < 1) { submitButton.attr('disabled', true); } else { submitButton.removeAttr('disabled'); } } }, false); return xhr; }, error: function (request) { self.errorLoading(request.responseJSON.message); }, success: function (data) { self.setValue(data.id, file.name); } }); }); } }); Alpaca.registerFieldClass("file", Alpaca.Fields.ExFileField); })(jQuery); // precompiles handlebars templates Handlebars.getTemplate = function(name) { console.log("templates function working"); if (Handlebars.templates === undefined || Handlebars.templates[name] === undefined) { console.log("template undefined"); $.ajax({ url : appendBuildVersionQueryParam('/v1.1/alpaca/assets/' + name + '.html'), success : function(data) { console.log("success compiling template"); if (Handlebars.templates === undefined) { Handlebars.templates = {}; } Handlebars.templates[name] = Handlebars.compile(data); }, async: false }); } return Handlebars.templates[name]; }; var MultiValue = { addField: function(elem, type) { var pane = elem.containerItemEl.find('.multi-value-pane'); var currCount = pane.find('.multi-value-field').length; var addField = elem.containerItemEl.find('.multi-value-add'); elem.multiValueIndex = currCount + 2; var template = Handlebars.getTemplate(type); pane.append(template(elem)); var fieldKey = $.escapeSelector(elem.id + "#" + elem.multiValueIndex + "-pane"); var multiValuePane = elem.domEl.find("#" + fieldKey); var trashBtn = multiValuePane.find('.multi-value-delete'); //Special handling for multivalue firstname/lastname if(window.matchMedia('(max-width: 767px)').matches && type === 'name' && elem.schema.nameType === 'FIRSTLAST'){ var desktopPane = pane; var multiValueFields = elem.options.fields; for(var x = 0; x < multiValueFields.length; x++){ elem.nameIndex = multiValueFields[x].id + '#' + elem.multiValueIndex; pane = elem.containerItemEl.find('#multi-value-pane-mobile-' + multiValueFields[x].id); var addedElem = $('input[name="' + elem.nameIndex + '"]'); template = Handlebars.getTemplate("FNLN-mobile"); pane.append(template(elem)); var searchString = ".multi-value-field-mobile-" + multiValueFields[x].id + $.escapeSelector('#' + elem.multiValueIndex); var field = $(searchString); field.append(addedElem); } field.append(trashBtn); desktopPane.hide(); multiValuePane = elem.domEl.find("#" + fieldKey); } var fields = pane.find("input[type='" + elem.inputType + "']"); fields.each(function(){ $(this).change(function() { elem.refreshValidationState(true); }); var field = $(this); $('button.alpaca-form-button.alpaca-form-button-reset.btn.btn-default').on('click', function() { field.val(''); multiValuePane.remove(); addField.show(); }); }); trashBtn.on('click', function() { var nIndex = multiValuePane.attr('data-index'); multiValuePane.remove(); addField.show(); while(true) { var nKey = $.escapeSelector(elem.id + "#" + (++nIndex) + "-pane"); var nPane = elem.domEl.find("#" + nKey); if (nPane.length) { nPane.each(function(){ var paneId = this.id.replace(new RegExp("#" + nIndex + "-pane$"), "#" + (nIndex-1) + "-pane"); console.log("Renaming Pane(" + this.id + " -> " + paneId); $(this).attr('id', paneId); $(this).attr('data-index', "" + (nIndex-1)); var fields = $(this).find("[id$=\\#" + nIndex + "]"); fields.each(function(){ var nId = this.id.replace(new RegExp("#" + nIndex + "$"), "#" + (nIndex-1)); var nName = this.name.replace(new RegExp("#" + nIndex + "$"), "#" + (nIndex-1)); console.log("Renaming Field(" + this.id + " -> " + nId); $(this).attr('id', nId); $(this).attr('name', nName); }); }) } else { break; } } elem.refreshValidationState(true); enableSubmitButton(); }); currCount = pane.find('.multi-value-field').length; var maxCount = elem.schema.multiValue ? elem.schema.multiValue.count : 0; if (currCount >= maxCount) { addField.hide(); return; } }, render: function(elem) { var adder = $(elem.control).find('.multi-value-add'); adder.on("click", function(){ elem.addField(); }); } }; function init() { const jsonData = {"view":{"parent":"bootstrap-create","layout":{"template":"\/v1.1\/alpaca\/templates\/logo-default.html","bindings":{"00000000-0000-0000-0000-000000001001":"column-1","00000000-0000-0000-0000-000000001002":"column-1","00000000-0000-0000-0000-000000001003":"column-1","00000000-0000-0000-0000-000000001004":"column-1","00000000-0000-0000-0000-000000001005":"column-1","00000000-0000-0000-0000-000000001006":"column-1","00000000-0000-0000-0000-000000001007":"column-1","61029ee2-c9c1-4db7-8dcf-37cf543940f9":"column-1","236e87ca-da3e-4943-9c06-6130a72c8e69":"column-1","0ba4a7be-5230-42eb-a2fb-aa47a68b8914":"column-1","e9b24d70-df06-46de-a14e-e1267107960a":"column-1","04c10f98-a81b-43b6-af98-26ed42adc81b":"column-1","e4a07b1b-e6f9-4b11-bbd2-9588dea2cff3":"column-1","4bf92690-92b0-4d94-b0ad-5c7cf7416f88":"column-1","12aee556-49fc-43c5-9bc2-6c2cb68cbe57":"column-1","d56bb5ae-6fa9-42e2-96f4-b57f9e297d2c":"column-1","e7042e3a-bb3d-41a9-8b1c-68dfbcd4b327":"column-1","487168ae-fb57-4b51-a70d-a1bcdec8c883":"column-1","2ad38ddc-4b40-4474-b2b5-2e3a468dce51":"column-1","2e4bc966-c034-4170-984e-87b4c987c4f7":"column-1","2d14392a-55bb-494f-adbc-21a5fc256eaa":"column-1","5c4f9e29-8a03-4d24-8889-755b9348a6b0":"column-1","eebfe9ad-db34-46ee-befb-0999a6e7a70e":"column-1","0505934d-2188-4783-af00-60980c6a146c":"column-1","f4814c07-3a03-4724-b912-4338a317bb23":"column-1","e88dcb37-130f-4192-9e42-47ace487cd60":"column-1","060c3fa6-56fa-40aa-9b11-60e9ad8a016f":"column-1","74be9869-8297-4ff1-9dac-de101e602355":"column-1","d56d1786-2ee6-42d2-bf18-6702066f3f79":"column-1","5cb66a07-746f-4147-a108-4c9106b1b3ea":"column-1","9df48035-d688-4b23-870e-3b1b31464ed8":"column-1","ed3e022b-287f-4536-ac96-dd45194c7df2":"column-1","20e083c8-dc96-422f-a737-32f97669146b":"column-1","e88afd5a-c49f-4232-b010-eaeb5049f348":"column-1","35307454-ba84-4aa8-8230-d65ae3928b42":"column-1","3769fe70-4c06-4172-9206-dfdf21be060e":"column-1","e1af7444-4f5c-4ec4-9b44-85c0873bdcc8":"column-1","f24532e6-15e6-4d77-b5f8-3fee2be67c42":"column-1","e4a699bb-65e6-436a-841c-d6035e344ae6":"column-1","f7a62827-6235-4406-adf7-f48e2d73a387":"column-1","c04a9fdb-3cd3-429e-8867-c692937537ab":"column-1","b82a0641-467a-4473-9dc9-1228ca298333":"column-1","b1459615-91c3-44ac-bd09-4cf33b8f42a5":"column-1","cc6002a9-dc2b-4136-94a6-527d2785cedf":"column-1","e6f290ab-b103-490c-b204-f466223e2466":"column-1","2361ef2f-9e67-4428-a6e9-27ec58886b82":"column-1","4abbad7e-dd9f-4b55-bca3-e874896e6284":"column-1","64eabc42-5881-4fb7-8a69-7a77aa41fb66":"column-1","0656ed6e-09b7-4798-929a-3904ffbd4255":"column-1","43bffabd-6dfc-4c94-b5dd-e7dcc05e964f":"column-1","62b2c19a-3abf-4583-a44f-0c48f383ef11":"column-1","a1707d09-c24f-4949-9ec9-49fbb48bb083":"column-1","04b05c12-9bd1-4f98-9754-183c1b54faf0":"column-1","f1bbf804-d629-4f18-a089-d9e3f951cf48":"column-1","03822ab5-eb4e-40e0-950b-8dc6007b1343":"column-1","1821ea0f-718a-4ef2-9e8b-7ebfc8143835":"column-1","00883979-5c0d-4f42-a4e4-589cf2383fac":"column-1","b2616294-b8df-491f-a31b-c55b1f0c1fbb":"column-1","29e470ac-9ce2-4d72-a7df-a3ae2a25e310":"column-1","116cdbcd-b205-48cf-a8f2-f5aef19dfabc":"column-1","5906c083-84ec-4167-8a57-14064d281f61":"column-1","e90a5d3c-7833-44cb-b4bf-8fcf13cb9c43":"column-1","59910cd0-8288-4024-8268-5b6540ac0ad2":"column-1","50143988-6ac1-4324-be70-054950881dde":"column-1","41a52a9a-2861-41fb-a3be-2abda50b33c8":"column-1","86702be9-1925-419c-ac1b-d31399d8d05d":"column-1","50d4b30e-1a44-4c4f-bd16-9ac1d5b273b9":"column-1","b2fc9bef-4068-4775-9d45-54d846bd57e0":"column-1","cd5869e4-5cdc-46a9-ab18-1b98d862c90d":"column-1","db21afea-7eba-4071-bb7e-2f4fda5d4c89":"column-1","f3e0d017-e8ff-499c-bbaa-61eadeec890f":"column-1","133b1359-2b3b-41d5-9c8b-e5ef948e03e9":"column-1","7786dc99-583d-48cf-833a-561c1eccc732":"column-1","731bce34-8a3e-4fa7-9458-86d748f12830":"column-1","ebfddaf3-763f-4489-aca5-9965cfdcae3f":"column-1","58927778-cde4-4a12-9267-acd6a303503a":"column-1","vehicle.color":"column-1","city.of.residence":"column-1","street.name":"column-1","9b9d1555-1df7-4fd8-895e-6e82582411cf":"column-1","a096ee1c-b857-47bd-bbe6-09f4426b15fd":"column-1","fe93646c-b817-45ec-8d6a-20cc363b34d0":"column-1","fc09bb41-ae4c-409f-bc69-df47fb997aff":"column-1","566a66d2-c453-414f-9984-8bfa43a1aa66":"column-1","903da4c2-fffd-4702-a48d-7b4ad4d94ea0":"column-1","0aa410f9-e129-440d-97c5-5b9700d02bd8":"column-1","94485c4d-912d-4ebe-94b8-24d0c34d2f94":"column-1","current.county.b":"column-1","county":"column-1","112a38a0-301b-4782-809b-655a1e39de7f":"column-1","cc698cf1-4eb0-4048-a737-ee32af70f85c":"column-1","person.known":"column-1","25e0365c-0710-49cc-bddc-2de7cee0fee2":"column-1","53971139-90ab-400c-9dee-d5a998394310":"column-1","ec1afda5-10cf-4eeb-9e2f-ecaee19244fd":"column-1","ssn.issued.in":"column-1","year.of.birth":"column-1","8c170851-9eac-4da3-a90c-5f76a0a27b57":"column-1","7275b72d-c554-400a-b8c1-b10ddf9df648":"column-1","ca91b977-8b47-4ebd-a79f-a1cff113f1bf":"column-1","a4b37d8b-6134-48f2-8e0c-58dd9d222fa0":"column-1","715af69d-72fa-4edb-8cb5-3716777506b8":"column-1","7221ca2e-0206-492a-b235-fa293bef9b35":"column-1","c88842a8-1058-4f72-b750-4e62589edd03":"column-1","109919dc-d9ab-4fd4-ba65-fd816b0ddd6a":"column-1","9d4d3cd1-64fe-45a2-bdbe-219eee3c1b6e":"column-1","2c56781e-5bb6-490d-8d4a-e1ae089decd3":"column-1","e5721db3-f763-44af-8d47-c5aaf19d7afb":"column-1","a84e8bb8-eeab-41e6-8c5d-8628932ad90f":"column-1","40c89211-465a-4f67-8549-d0ba8dfa7220":"column-1","d8d8cb48-2090-4cdd-9858-fbd50810c6ce":"column-1","222f6b82-f68f-40b0-8fa7-5605926830da":"column-1","171b8db1-c355-4900-a115-175e0016a57f":"column-1","391dca00-96f6-4565-9021-1f6c6c731c40":"column-1","e01ea9cf-3ca3-4aaf-b3b7-18f71f3e9237":"column-1","bdb4d42f-ff36-4a30-9538-98b282a375a4":"column-1","a8024d5e-812b-40ef-9b70-35626a43cb39":"column-1","7a7fb297-c4ca-4eab-b19b-deb64fdfdd27":"column-1","1aa56f85-f960-4d0a-91e8-7f7fcd6c0df4":"column-1","a5c6b331-bf79-41c2-9ad9-edbdc3bd913f":"column-1","6049c70b-3f4b-4b03-accb-687c91857ea1":"column-1","e221b28f-cb88-43f7-855c-bd2ccf4a5f9b":"column-1","b514bdbe-2195-4221-811e-118c82dafd18":"column-1","44946863-666f-430a-a6f3-119bd3cb77b4":"column-1","9605418c-6cf1-427a-9de7-47af3b65f47d":"column-1","b7eb768d-fe6f-44e8-b3ad-dfca6a76eb15":"column-1","c9146850-cb3e-4678-aca4-d3793e036053":"column-1","b5d94929-a8c8-41bc-8fdc-5001155737fa":"column-1","252c15d5-54b9-48c9-9b9f-b451ffc32cad":"column-1","d70972f0-2ab1-4bec-bbf4-45e78cd54ff4":"column-1","4c26f439-137f-41ad-985f-7eea63bf4d5d":"column-1","99e6273e-09e8-4541-9cdb-ae3b04683bbc":"column-1","a884c0e2-2b72-489e-a0d2-ca7c05e33a7d":"column-1","2e191297-08a3-482d-8772-d204b9bb089d":"column-1","d72e2318-c001-4201-a737-ad7b4b79934f":"column-1","65c2e52c-3cd2-4687-aead-8010284d6e97":"column-1","0a4ad683-cb30-458d-bbbd-b8a3c2e19261":"column-1","2bbfa84b-85fb-4698-9a58-aa17f9b82807":"column-1","348aed8e-5c69-4b73-8f2e-f0986c9b5ec2":"column-1","8c4ab261-5f4e-4ee4-a49d-e8e5d3debcd7":"column-1","6877fd8f-c019-4576-8541-62dee7a8a0f2":"column-1","f23a6981-cf92-430f-b01e-351afee5e475":"column-1","7726a8cd-aa8f-4213-bce5-02e96dfdb347":"column-1","aa72db9c-18c2-43a7-9ece-636c062bc51c":"column-1","efa04ed7-0085-49c5-888b-b27d96c20f9c":"column-1","4c390b8f-ad76-4bb4-be3b-dcaf4cc787b1":"column-1","0fa0a6de-64f7-49e3-817b-d1ff15d662c5":"column-1","time.at.current.address":"column-1","a3b5ab8e-8ec3-49b7-89ce-508341bebe52":"column-1","fd48cc3e-823b-4160-a865-5ca9562da57c":"column-1","b7bd6c3a-7879-43df-9f32-7ce72e99f9df":"column-1","b0597a1f-764a-499a-be8a-b2a60c9fba2e":"column-1","7dd3f9f3-61cb-4402-b49c-a75a5f691de7":"column-1","27862784-e051-49bd-b2ef-53e61ae909bc":"column-1","bba8f510-2339-4770-97ab-e30e7e29babe":"column-1","557d11d6-fe6a-4d46-8b0c-b1071705af30":"column-1","c5c09b87-161d-431c-a512-caa0de9dd1c2":"column-1","a6cbdfc3-2dd8-4a1e-a9a7-0aca8bdf3f15":"column-1","f6fce8af-ed64-40ba-88bc-a666314ef25e":"column-1","month.of.birth":"column-1","prior.residence.state.multiyear":"column-1","dab5ca46-bc72-4641-ae1b-5943bc8fa34f":"column-1","d2845bf8-fca6-4bfd-9ceb-93f85b610c2b":"column-1","3019fd7b-fc3a-4841-9b0a-fb8b1479e1a4":"column-1","c3a3d492-4792-4093-90c3-7bb1bfefc5a9":"column-1","1f208466-3617-4648-ae15-9fb5fb33caa3":"column-1","1e10f973-d974-47f2-82fe-58ee5343f785":"column-1","32c6eb5f-6e55-43e4-888e-4caf1473122c":"column-1","6c0e30e9-b33a-402d-a530-2c2335f7c25a":"column-1","93295653-2abc-4f40-b160-ef3dd33ba66b":"column-1","323b6fd8-8ab0-41f6-9cba-6d6c7a17dd6e":"column-1","eb921332-1bba-46b5-9d43-156624116e4c":"column-1","a9c823d9-1916-45d0-8405-515dff466cf4":"column-1","0b4c9842-ea56-487b-8d3d-65b6d217276d":"column-1","5787ff11-9318-4a0c-b23a-804196736593":"column-1","209becce-af14-42fb-ba5c-7361893e1f9f":"column-1","34291814-12d2-4262-b8c6-815abced4c7e":"column-1","eaef86cc-e28f-4e82-ac61-dea3a7dbf192":"column-1","89c4af6b-0bc5-4bdf-8786-af9b233f1d33":"column-1","1614cb87-6c2e-4d07-bdab-5187b9f414ce":"column-1","a26493f3-9492-4eaf-aa44-bc077659a978":"column-1","46b2876a-2cd3-4b32-be9e-4eba860299d7":"column-1","79b5ebcf-3bd4-413b-8f37-b180cdb73ff6":"column-1","d5f62f58-5e35-478e-9fb1-58887867406c":"column-1","9bc71b86-dfdd-43e3-bb7d-3743ba825715":"column-1","f58bacf4-8892-4c2f-a296-e4a8a1c2e909":"column-1","0938f69b-733e-4dff-8ba6-c71169370ca6":"column-1","da8c11ff-dd3d-4248-9804-bc00a959b2f6":"column-1","8785d0cd-c201-4cc1-827c-8a62163795bb":"column-1","664283a1-e422-4949-8d64-ad6e10da8f21":"column-1","eb04ded4-b861-4ef1-bd11-73e23c938d09":"column-1","947e2105-9a33-4b8d-a0b0-2d5641f2e1d6":"column-1","e2523385-806f-4d43-afd9-44abd7dfc5cb":"column-1","72f4cb7f-e182-4435-b7b8-0f012ca137a3":"column-1","3899e38d-66ed-48d2-a876-5cb67f7b1908":"column-1","b6a904ce-2030-4c18-a0ed-cefb9f085822":"column-1","44e5f580-c95b-4cf4-99fd-582afb971234":"column-1","6dd58708-597b-4bc5-a94b-3408d8c34183":"column-1","7a9d71ce-95c5-4922-8ea2-23201240f2f3":"column-1","5deda5db-5671-4b4a-ab8c-0af2a51ac55e":"column-1","71f45937-a8dc-422a-a427-468d018ae87c":"column-1","40f50d5a-41b2-46ef-aa5d-e0671504b20d":"column-1","f573aa34-ffdb-4205-ae28-b2998b8c89df":"column-1","7b071ea4-0f74-4dd8-b243-212dde1cfaa1":"column-1","e4975153-5321-4745-bd71-206b33f13257":"column-1","d7e5354e-8f6c-4618-962e-66ecd72e93f9":"column-1","855a6e98-dd76-449f-9670-26da53528084":"column-1","ba2a1801-76a6-4813-85ac-472326268859":"column-1","8cd89025-1278-40b2-b0f0-7b14236edf24":"column-1","dd50f4cd-228e-4799-887a-3b3f475e7a1a":"column-1","385c6e40-ea0a-4521-827a-01c706a0d051":"column-1","d7093b45-1c4b-435c-bd3f-e874175b4541":"column-1","cb0effe7-0294-4c5d-8310-b10a39cda12a":"column-1","f33f7425-f978-409a-accc-e7d27f45b488":"column-1","05054842-3990-4a95-89be-d3dddd2c2955":"column-1","9423c6bf-f161-4ae6-89fe-f9b273e0a1e3":"column-1","5afb84fb-f59d-4fa5-b746-3061216785f9":"column-1","90ad8560-5c4a-4d6e-bcbd-55a6c614fd70":"column-1","fc7868c9-d301-42df-9c85-87f413cbdacf":"column-1","dc5b8abe-e324-48c4-8283-6b0e9e81e050":"column-1","fb35f8be-2f27-46cb-aa5e-c6cd70fa1fb2":"column-1","ed033d0f-9c38-4b66-b0d9-080b229a0930":"column-1","b388f7fe-9975-4b13-864f-d87c65b45ff2":"column-1","170bca24-9ff3-4855-8ee8-eec2f1594e98":"column-1","839eebf8-2200-4f84-8c89-52ed6e9bb4f9":"column-1","54e7a84b-bdb2-4978-a1be-c3df123162ec":"column-1","31f333ac-18ed-46b0-a08a-6bebfe60d468":"column-1","13543761-5b79-40ff-ab1f-f7f2edbc0268":"column-1","2318c7dc-1f4c-4fd7-929f-a4d63510e1a6":"column-1","77633a4d-06bd-40f0-901b-e24e5ad1f03c":"column-1","fea19f69-5abc-4770-a6b4-782106cf58d9":"column-1","cccf0b1a-abc8-4dd0-80c8-1101f5be3d1c":"column-1","6d3cdd2e-0ab4-4b57-acf6-4f4e0cbbc748":"column-1","f3e6c968-affe-4db6-9113-0085a3178e3a":"column-1","5e02e5b4-9374-4eb9-ab7e-3f9ad9f7f5c8":"column-1","90a1d588-6d95-422c-a398-1d4fe5b97e2f":"column-1","8b7234d2-a00e-49e2-ae8f-a3304f2063a9":"column-1","0998e872-68c5-45b9-81e5-a224471dc275":"column-1","1a23b8e7-a447-4f2d-a804-8b504d4cc790":"column-1","56aa6de6-0a5e-493e-a2bc-f7e5fd1721eb":"column-1","1e15cd61-f209-4434-bdf4-0aca790b9b71":"column-1","08b4ff48-c6fb-4427-ab41-1207571ff525":"column-1","24d300d1-1948-4038-932a-5ef02a62726d":"column-1","88d6d6c5-8a8a-4711-b75d-a6e8e4603316":"column-1","02a78372-b8bd-4d77-9628-719a0c7b6e4b":"column-1","209a6e72-13b0-40c5-9806-b0842360367f":"column-1","199fd030-e634-4196-84f7-c43b983e4e18":"column-1","8e34f73c-d718-4158-a1a6-a96400742d40":"column-1","61f1634d-43c8-4b09-a829-d03cbb7b3a5d":"column-1","6d798ffd-dcd9-433b-bf88-0ed9e8a1f312":"column-1","b0fd8b16-2705-4927-8d77-5018c44955be":"column-1","02ebf1d5-2b16-4d40-9a0a-4b0868a0319b":"column-1","19d4f8bb-f7c7-4205-be99-a0b07529dc86":"column-1","7d44dd08-3ba1-4871-8180-9249eca6d7d3":"column-1","206ea96b-576d-4ee8-ab78-9b67658d7770":"column-1","21d5725c-4049-49e3-808e-7589b4f28056":"column-1","f5916dc1-8102-4232-b9b7-acf952c1c8dd":"column-1","93c66105-ff0f-4dc7-91df-12b9398735ed":"column-1","afd4d5ac-77b1-4a48-abfb-cc2cbd551566":"column-1","7fc852a9-9eda-45b3-b472-13f99a9096e6":"column-1","ffbbee45-4cbc-4216-90d5-8833c7cbe37e":"column-1","75e956c8-1d39-40cc-8f8f-b6c3616c9fe2":"column-1","c6f4d3ce-a3cb-447f-8256-018f3e82e3a3":"column-1","791f7add-f8c1-4016-844e-dd1a702e1538":"column-1","b1ba5ec3-3460-498b-ba3c-0fcf044f09aa":"column-1","be05369b-b05e-4ff6-92f0-4b342e569381":"column-1","5c96d2a3-e0e8-4e5e-8db7-a5fdf9d1ada4":"column-1","f9ad980c-55bb-4588-9c48-6167197307e5":"column-1","0cb6690a-b611-4d9d-9ccc-3e4f53c73477":"column-1","9b60840d-999a-4e7c-844b-91be9bd1432a":"column-1","79ce5a3d-eb6e-4abb-944e-42dc77a388be":"column-1","43a04246-dd59-4fa4-819d-4071e1a83977":"column-1","26ad1d95-96ae-4fc3-80cc-c33694ca38c4":"column-1","8b1c7fe1-8a02-49fc-9ebe-39659ec91dba":"column-1","999d0e3a-5e42-4ac0-9f22-220c80348e08":"column-1","7870ab73-f79e-418c-93c6-c1f1a075cb57":"column-1","5a4fa0f7-6fe0-4e15-97b1-05cfa5bf107a":"column-1","fb5eaf87-d9df-4533-a12b-40d1aab9f15a":"column-1","e49335b7-8344-40f6-af05-de2b678006f7":"column-1","b3f32532-e013-4d8a-99b4-9a904f8cfa3a":"column-1","7015741c-c21b-493b-8438-0035c11d2427":"column-1","8c53c0eb-82bf-415e-820e-5300cb5569f6":"column-1","fca7d821-4e09-4dc1-8ff1-617d63dd70ab":"column-1","bbdf3359-2b43-448f-a5f4-454a0469d71e":"column-1","85d9cb87-541d-49ec-bc43-5d980e462551":"column-1","2ca63a4c-b5c6-43b9-b07a-6d1ea2d36211":"column-1","1ab45a6b-1db4-4ad1-b48f-87dd4f5b4584":"column-1","53729f53-9e83-4444-a89c-6db29c76cbba":"column-1","77984db1-5c12-445c-8885-d8d0fb0499ff":"column-1","15ec321d-4a58-44e1-b6cf-cafe654ad30e":"column-1","f94a294f-80ed-4175-b730-f76b584d4463":"column-1","34db1265-c36b-4937-afa9-5712a35b7a34":"column-1","2a9d36d8-0fc0-46a7-ab2f-c6f55d8ae61d":"column-1","d3ae6e71-6d3d-4903-92d5-17b40386c0d8":"column-1","3b8126b7-3f50-4348-86c6-9aeae0a740b5":"column-1","0d58fef8-7583-492c-a189-c3b91f800703":"column-1","5ddbde43-d337-4179-88cb-84c6da50386f":"column-1","f908295a-2269-460e-a5e7-68f8a810c4d2":"column-1","bd34c4d7-fd71-42ff-a0f4-7564b91ada05":"column-1","11cd5eea-3428-4892-8494-905bf6d4fc77":"column-1","8a8a3730-34c0-4a25-bee1-99e3e31f0216":"column-1","330470a9-34f4-41a4-bc6b-e6d0a6206aed":"column-1","86aed0e8-e8aa-4463-888b-53dc81c96499":"column-1","22d3153c-3ec0-42ac-b32f-3f37799ed8ae":"column-1","7902815b-acf6-44ba-8535-589cbe014039":"column-1","79cb2d46-2198-46ef-a252-e3a8d77b047e":"column-1","16f07df2-1cee-4638-b629-fedaf68a536f":"column-1","47203ae9-6733-4802-9b5e-84ff1ce42172":"column-1","78e632da-ff77-4197-b87a-07c5b2abc186":"column-1","f8c23ba4-e034-4c94-ac91-4f847f150a9a":"column-1","230f0e16-cdea-4f76-954e-5aa13b13a3c5":"column-1","19dbcc97-a66b-4088-8acc-56643c107866":"column-1","711f3e0b-c9a2-404b-bb28-ad0430d33815":"column-1","673ca4e9-dac6-4f96-b3dc-fe16d5a4b210":"column-1","5d7ae2cb-9c74-48b0-bb1d-870a6e1753e9":"column-1","fde2d54f-239e-411f-8401-d3a33e1de602":"column-1","644334d9-5cd0-4fff-afa2-86ddfc4c2ced":"column-1","c265c6e6-60a6-467f-b6b7-8aac740279e0":"column-1","f236091a-e18c-47ef-9f39-76e589e4544e":"column-1","3fd446ad-f99a-4f62-8d66-e99cd49543ff":"column-1","29fc02cd-70c7-496f-a151-6b885d6c3811":"column-1","46ea3456-f2ab-4d39-a42c-654a41d0ddbd":"column-1","b55ba444-4817-45f6-ab2b-55e66e91dfad":"column-1","d541032f-c479-4bd5-80c6-a9341a16dbe7":"column-1","e58ba221-bba6-4b86-9fb9-3b5abbf2b601":"column-1","1f82fa81-7fdc-49ff-a6e9-36d6255bc165":"column-1","fd57a083-9d0b-4da0-b4d0-d6faf6dd371a":"column-1","0f7a4b82-80fb-40e6-b278-12495b0f9e58":"column-1","05f87cdb-1728-4b8e-aacf-a9c3a61e0f6c":"column-1","5e230ed3-b30d-49d1-b3c7-c02dd60ad28b":"column-1","07ea3f10-6812-4f35-a262-2ffe203a8f73":"column-1","73d73040-1398-4f66-88da-a7f3bef0412e":"column-1","cb55c4ac-05ec-4340-88cf-9d9feda37cb8":"column-1","1004c23c-1a9a-4845-b932-fb424c8d8e17":"column-1","4cb0b681-4fe7-4401-96fd-9726f2b03ad6":"column-1","11e2c217-4d1a-4589-834b-9e9585ebd88c":"column-1","c4cda68e-36e6-49d4-aa7d-940ab30cc797":"column-1","27df4476-17d6-4fd9-b7c0-8af21f88c8d3":"column-1","e0710846-815e-4fed-9cea-798768db354c":"column-1","558aef08-c3c5-42f3-bd1e-0899e4bc71a9":"column-1","0bc751e9-b523-4f7c-a495-baa6d1329996":"column-1","a0ea9e2f-2eec-4031-8d79-06ffcaca2fa3":"column-1","6730f746-7441-4953-8aba-a21a84eda863":"column-1","baa37156-ecfe-4d82-9c5c-7f337810b393":"column-1","69ebeb51-5ac4-4eff-b290-c79be54413ca":"column-1","0d08f3b5-eaea-49d5-b967-f9f0dd55e45a":"column-1","3255c7c6-66e0-4143-9ffb-2b66becf2369":"column-1","1efeef85-5a30-447a-a633-271d5eb7eb3c":"column-1","84e28902-3678-480d-908a-aa91dfe5b265":"column-1","88cb0123-67e4-4db8-8deb-9c5c922dec6e":"column-1","d0fac93b-d98f-4bac-8a60-243ff895e936":"column-1","bdb7e365-e2b7-44e7-8d65-6f6d89b8e80f":"column-1","1ffdb804-58c6-46c9-8bc4-c48dd8609152":"column-1","15564e4d-61a3-4db8-ab42-eed4bc2750e6":"column-1","0a6607a5-96e6-452a-a536-921861d1c726":"column-1","c2a6f62a-e5d5-4d0c-a236-7c3396fc13c8":"column-1","eff81613-6000-4197-9fe2-8bb95f5392eb":"column-1","863718b9-02ee-4a94-b3b0-7940e191320b":"column-1","42ecea51-591b-4400-a076-6d52517da0ad":"column-1","3fcc99b9-e418-4ec5-ae7f-cf1786656249":"column-1","31db4454-7dc9-4d06-87a8-ea7425f8be2c":"column-1","d318f1c2-f039-4789-a316-91d1002f6d8e":"column-1","0a03f0ba-cba4-415e-993f-42d483d8de39":"column-1","0e055f49-f934-446a-a80b-38491f5623c9":"column-1","454ad8e9-e649-4068-9495-64fb40240f5b":"column-1","f87819a9-d407-4083-9437-bd5e49069b5b":"column-1","309cec07-d57b-4204-a930-a810799d5095":"column-1","f390c9d8-3d01-4253-9e7f-eb3a6c19102d":"column-1","e179c52c-b77e-4bf4-ba6c-ad0dcd5193b6":"column-1","residence.type":"column-1","4dcfe3d4-1dfa-4f59-9bc4-8eb1245f7b0f":"column-1","1eace64c-0731-47fe-a2cb-be788f493f44":"column-1","b740174f-7a5f-446f-904d-f9dd6fa22b46":"column-1","e689fd31-e1d4-4b30-b282-df64bd78fc60":"column-1","ad78d14f-763c-4c1a-9d77-48d4e74f375b":"column-1","a5744675-1ad0-47d5-beb3-42f2ee26d1ed":"column-1","51c96016-91fa-42f2-b09c-cbca0068d993":"column-1","0ef922ae-b5de-4b91-9c20-feb48ddfe960":"column-1","0aad35bb-ce9b-4f4f-b82e-a3c03a45b6d9":"column-1","944fa221-04c1-40ec-b13f-f81133f94f6e":"column-1","cbe780df-5fc6-43da-9f9b-0d66db300297":"column-1","caa7bf34-4eb7-48df-8b7e-8a4590efe22a":"column-1","bc586f70-3640-4a01-a8bf-2dbb41435b31":"column-1","prior.residence.state":"column-1"}},"fields":{"\/00000000-0000-0000-0000-000000001003":{"templates":{"control-email":"\/v1.1\/alpaca\/templates\/control-email.html"}},"\/00000000-0000-0000-0000-000000001004":{"templates":{"control-select":"\/v1.1\/alpaca\/templates\/select-tree.html"}},"\/00000000-0000-0000-0000-000000001005":{"templates":{"control-select":"\/v1.1\/alpaca\/templates\/select-rtree.html"}}},"messages":{"invalidEmail":"Invalid Email address e.g. info@example.com"}},"schema":{"type":"object","title":"Intoo, LLC","properties":{"00000000-0000-0000-0000-000000001001":{"title":"I am","type":"string","enum":["00000000-0000-0000-0000-000000003002","00000000-0000-0000-0000-000000003001","00000000-0000-0000-0000-000000003003"],"selectType":"DATASUBJECT","required":true,"permanent":true},"00000000-0000-0000-0000-000000001002":{"type":"string","nameType":"FIRSTLAST","required":true,"maxLength":100,"permanent":true,"multiValue":{"enabled":false,"count":2}},"00000000-0000-0000-0000-000000001003":{"title":"Email","type":"string","format":"email","required":true,"maxLength":100,"permanent":true,"multiValue":{"enabled":false,"count":2}},"00000000-0000-0000-0000-000000001004":{"title":"Resident of","type":"string","enum":["XX_XX","AF_ZW","AF_ZM","AS_YE","AF_EH","OC_WF","AS_VN","SA_VE","EU_VA","OC_VU","AS_UZ","SA_UY","CB_VI","AS_UM","EU_UA","AF_UG","OC_TV","CB_TC","AS_TM","AS_TR","AF_TN","CB_TT","OC_TO","OC_TK","AF_TG","AS_TL","AS_TH","AF_TZ","AS_TJ","AS_TW","AS_SY","EU_SE","AF_SZ","EU_SJ","SA_SR","AF_SD","AS_LK","AF_SS","AS_KR","EU_GS","AF_SO","OC_SB","EU_SI","EU_SK","CB_SX","AF_SL","AF_SC","EU_RS","AF_SN","AS_SA","AF_ST","EU_SM","OC_WS","CB_VC","NA_PM","CB_MF","CB_LC","CB_KN","CB_BL","AF_SH","AF_RW","EU_RU","AF_RE","AF_CG","AS_QA","CB_PR","EU_PT","OC_PN","SA_PY","OC_PG","CA_PA","AS_PS","OC_PW","AS_PK","AS_OM","EU_NO","OC_MP","OC_NF","OC_NU","AF_NG","AF_NE","CA_NI","OC_NZ","OC_NC","EU_AN","EU_NL","AS_NP","OC_NR","AF_NA","AS_MM","AF_MZ","AF_MA","CB_MS","EU_ME","AS_MN","EU_MC","EU_MD","OC_FM","NA_MX","AF_YT","AF_MU","AF_MR","CB_MQ","OC_MH","EU_MT","AF_ML","AS_MV","AS_MY","AF_MW","AF_MG","EU_MK","AS_MO","EU_LU","EU_LT","EU_LI","AF_LY","AF_LR","AF_LS","AS_LB","EU_LV","AS_LA","AS_KG","AS_KW","EU_XK","AS_KP","OC_KI","AF_KE","AS_KZ","AS_JO","EU_JE","AS_JP","CB_JM","AF_CI","AS_IL","EU_IM","EU_IE","AS_IQ","AS_IR","AS_ID","EU_IS","EU_HU","CA_HN","AS_HM","CB_HT","SA_GY","AF_GW","AF_GN","EU_GG","CA_GT","OC_GU","CB_GP","CB_GD","NA_GL","EU_GI","AF_GH","AS_GE","AF_GM","AF_GA","AN_TF","OC_PF","SA_GF","EU_FI","OC_FJ","EU_FO","SA_FK","AF_ET","EU_EE","AF_ER","AF_GQ","CA_SV","AF_EG","SA_EC","AF_CD","CB_DO","CB_DM","AF_DJ","EU_DK","EU_CZ","EU_CY","CB_CW","CB_CU","EU_HR","OC_CK","AF_KM","AS_CC","AS_CX","AF_TD","AF_CF","CB_KY","AF_CV","NA_CA","NA_CA_AB","NA_CA_BC","NA_CA_MB","NA_CA_NB","NA_CA_NL","NA_CA_NS","NA_CA_NT","NA_CA_NU","NA_CA_ON","NA_CA_PE","NA_CA_QC","NA_CA_SK","NA_CA_YT","AF_CM","AS_KH","AF_BI","AF_BF","EU_BG","AS_BN","CB_VG","AS_IO","SA_BV","AF_BW","EU_BA","CB_BQ","SA_BO","AS_BT","NA_BM","AF_BJ","CA_BZ","EU_BY","CB_BB","AS_BD","AS_BH","CB_BS","EU_AZ","EU_AT","CB_AW","EU_AM","CB_AG","AN_AQ","CB_AI","AF_AO","EU_AD","OC_AS","AF_DZ","EU_AL","EU_AX","AS_AF","AF_ZA","SA_PE","CA_CR","EU_BE","NA_US","NA_US_AK","NA_US_AL","NA_US_AR","NA_US_AZ","NA_US_CA","NA_US_CO","NA_US_CT","NA_US_DC","NA_US_DE","NA_US_FL","NA_US_GA","NA_US_HI","NA_US_IA","NA_US_ID","NA_US_IL","NA_US_IN","NA_US_KS","NA_US_KY","NA_US_LA","NA_US_MA","NA_US_MD","NA_US_ME","NA_US_MI","NA_US_MN","NA_US_MO","NA_US_MS","NA_US_MT","NA_US_NC","NA_US_ND","NA_US_NE","NA_US_NH","NA_US_NJ","NA_US_NM","NA_US_NV","NA_US_NY","NA_US_OH","NA_US_OK","NA_US_OR","NA_US_PA","NA_US_PR","NA_US_RI","NA_US_SC","NA_US_SD","NA_US_TN","NA_US_TX","NA_US_UT","NA_US_VA","NA_US_VT","NA_US_WA","NA_US_WI","NA_US_WV","NA_US_WY","EU_GB","AS_AE","EU_CH","EU_ES","AS_SG","EU_RO","EU_PL","AS_PH","EU_IT","AS_IN","AS_HK","EU_GR","EU_DE","EU_FR","SA_CO","AS_CN","SA_CL","SA_BR","OC_AU","SA_AR"],"selectType":"COUNTRY","required":true,"permanent":true},"00000000-0000-0000-0000-000000001005":{"title":"Type of Request","type":"string","enum":["00000000-0000-0000-0000-000000004002","00000000-0000-0000-0000-000000004003"],"selectType":"REQUEST","required":true,"permanent":true},"00000000-0000-0000-0000-000000001006":{"title":"Comment (max 550 characters)","type":"string","maxLength":550,"permanent":false,"required":false},"00000000-0000-0000-0000-000000001007":{"type":"boolean","required":true,"permanent":false,"notStored":true}}},"options":{"header":{"logo":{"uri":"https:\/\/login.truste.com\/services\/resources\/storage\/images\/IMG-16c3a704259242eeb3a1a7e7c25c46e3.jpg"},"showCompanyName":false},"form":{"attributes":{"action":"\/services\/validation?v=1.1","method":"post"},"buttons":{"reset":{"title":"Reset"},"submit":{"title":"Submit"}}},"fields":{"00000000-0000-0000-0000-000000001001":{"noneLabel":"--Select an option now--","removeDefaultNone":false,"sort":false,"type":"select","optionLabels":["Employee\/Job Seeker","Client","Other"]},"00000000-0000-0000-0000-000000001002":{"type":"name","fields":[{"id":"00000000-0000-0000-0000-00000000100a","label":"First Name"},{"id":"00000000-0000-0000-0000-00000000100b","label":"Last name"}]},"00000000-0000-0000-0000-000000001004":{"noneLabel":"--Select an option now--","removeDefaultNone":false,"sort":false,"type":"select","idToLabelReplacer":"%%%%","optionLabels":["Other","Zimbabwe","Zambia","Yemen","Western Sahara","Wallis and Futuna","Vietnam","Venezuela","Vatican City","Vanuatu","Uzbekistan","Uruguay","United States Virgin Islands","United States Minor Outlying Islands","Ukraine","Uganda","Tuvalu","Turks and Caicos Islands","Turkmenistan","Turkey","Tunisia","Trinidad and Tobago","Tonga","Tokelau","Togo","Timor-Leste","Thailand","Tanzania","Tajikistan","Chinese Taipei","Syria","Sweden","Swaziland","Svalbard and Jan Mayen","Suriname","Sudan","Sri Lanka","South Sudan","South Korea","South Georgia","Somalia","Solomon Islands","Slovenia","Slovakia","Sint Maarten","Sierra Leone","Seychelles","Serbia","Senegal","Saudi Arabia","Sao Tome and Principe","San Marino","Samoa","Saint Vincent and the Grenadines","Saint Pierre and Miquelon","Saint Martin","Saint Lucia","Saint Kitts and Nevis","Saint Barth\u00E9lemy","Saint Helena (Ascension and Tristan da Cunha)","Rwanda","Russian Federation","R\u00E9union","Republic of the Congo","Qatar","Puerto Rico","Portugal","Pitcairn","Paraguay","Papua New Guinea","Panama","Palestine (State of)","Palau","Pakistan","Oman","Norway","Northern Mariana Islands","Norfolk Island","Niue","Nigeria","Niger","Nicaragua","New Zealand","New Caledonia","Netherlands Antilles","Netherlands","Nepal","Nauru","Namibia","Myanmar","Mozambique","Morocco","Montserrat","Montenegro","Mongolia","Monaco","Moldova (Republic of)","Micronesia","Mexico","Mayotte","Mauritius","Mauritania","Martinique","Marshall Islands","Malta","Mali","Maldives","Malaysia","Malawi","Madagascar","Macedonia (the former Yugoslav Republic of)","Macao, China","Luxembourg","Lithuania","Liechtenstein","Libya","Liberia","Lesotho","Lebanon","Latvia","Laos","Kyrgyzstan","Kuwait","Kosovo","Korea (Democratic People's Republic of)","Kiribati","Kenya","Kazakhstan","Jordan","Jersey","Japan","Jamaica","Ivory Coast","Israel","Isle of Man","Ireland","Iraq","Iran","Indonesia","Iceland","Hungary","Honduras","Heard Island and McDonald Islands","Haiti","Guyana","Guinea-Bissau","Guinea","Guernsey","Guatemala","Guam","Guadeloupe","Grenada","Greenland","Gibraltar","Ghana","Georgia","Gambia","Gabon","French Southern and Antarctic Lands","French Polynesia","French Guiana","Finland","Fiji","Faroe Islands","Falkland Islands","Ethiopia","Estonia","Eritrea","Equatorial Guinea","El Salvador","Egypt","Ecuador","DR Congo","Dominican Republic","Dominica","Djibouti","Denmark","Czechia","Cyprus","Cura\u00E7ao","Cuba","Croatia","Cook Islands","Comoros","Cocos (Keeling) Islands","Christmas Island","Chad","Central African Republic","Cayman Islands","Cape Verde","Canada","Alberta","British Columbia","Manitoba","New Brunswick","Newfoundland and Labrador","Nova Scotia","Northwest Territories","Nunavut","Ontario","Prince Edward Island","Quebec","Saskatchewan","Yukon","Cameroon","Cambodia","Burundi","Burkina Faso","Bulgaria","Brunei","British Virgin Islands","British Indian Ocean Territory","Bouvet Island","Botswana","Bosnia and Herzegovina","Bonaire Sint Eustatius and Saba","Bolivia","Bhutan","Bermuda","Benin","Belize","Belarus","Barbados","Bangladesh","Bahrain","Bahamas","Azerbaijan","Austria","Aruba","Armenia","Antigua and Barbuda","Antarctica","Anguilla","Angola","Andorra","American Samoa","Algeria","Albania","\u00C5land Islands","Afghanistan","South Africa","Peru","Costa Rica","Belgium","United States","Alaska","Alabama","Arkansas","Arizona","California","Colorado","Connecticut","District of Columbia","Delaware","Florida","Georgia","Hawaii","Iowa","Idaho","Illinois","Indiana","Kansas","Kentucky","Louisiana","Massachusetts","Maryland","Maine","Michigan","Minnesota","Missouri","Mississippi","Montana","North Carolina","North Dakota","Nebraska","New Hampshire","New Jersey","New Mexico","Nevada","New York","Ohio","Oklahoma","Oregon","Pennsylvania","Puerto Rico","Rhode Island","South Carolina","South Dakota","Tennessee","Texas","Utah","Virginia","Vermont","Washington","Wisconsin","West Virginia","Wyoming","United Kingdom","United Arab Emirates","Switzerland","Spain","Singapore","Romania","Poland","Philippines","Italy","India","Hong Kong, China","Greece","Germany","France","Colombia","China","Chile","Brazil","Australia","Argentina"]},"00000000-0000-0000-0000-000000001005":{"noneLabel":"--Select an option now--","removeDefaultNone":false,"sort":false,"type":"select","optionLabels":["Correct or Update My Information","Delete My Information"]},"00000000-0000-0000-0000-000000001006":{"type":"textarea"},"00000000-0000-0000-0000-000000001007":{"rightLabel":"<p>By submitting this request, I am confirming the following:<\/p><p>(1) <strong>Accuracy<\/strong>: the information I have provided is true and accurate; (2) <strong>TrustArc role<\/strong>: that I understand the service is provided by TrustArc on behalf of Intoo, LLC and that once TrustArc provides my request to Intoo, LLC, TrustArc will retain an encrypted record of my request; (3) <strong>Privacy<\/strong>: that I understand the information will be handled by TrustArc in accordance with its <a href=\"https:\/\/www.trustarc.com\/privacy-policy\/\" rel=\"noopener noreferrer\" target=\"_blank\">Privacy Policy<\/a> and by Intoo, LLC in accordance with its <a href=\"https:\/\/www.yournextstep.com\/en\/privacy\" rel=\"noopener noreferrer\" target=\"_blank\">Privacy Policy<\/a>; (4) <strong>Contact<\/strong>: that Intoo, LLC has the right to contact me to verify my identity and to process this request.<\/p>"}}}}; const hiddenFields = [ "accountId", "locale", "authType", "authResponse", "formId", "requestId", "suppValidationId", "sourceWebsite", "ipAddress", "gpcEnabled", "captchaAnswer", "captchaInput" ]; hiddenFields.forEach(function(hiddenField) { jsonData.schema.properties[hiddenField] = { type : "string", }; jsonData.options.fields[hiddenField] = { type : "hidden" }; }); jsonData.schema.properties.accountId.default = "54716c1a-e07f-4819-8d8b-2139fc5af080"; jsonData.schema.properties.locale.default = locale; jsonData.schema.properties.formId.default = formId; jsonData.schema.properties.requestId.default = requestId; jsonData.schema.properties.suppValidationId.default = suppValidationId; jsonData.schema.properties.authResponse.default = 'no-token'; jsonData.schema.properties.authType.default = authType; jsonData.schema.properties.sourceWebsite.default = sourceWebsite; jsonData.schema.properties.ipAddress.default = ipAddress; jsonData.schema.properties.gpcEnabled.default = gpcEnabled; jsonData.schema.properties.captchaAnswer.default = ''; jsonData.schema.properties.captchaInput.default = ''; jsonData.options.form.buttons.submit.click = initSubmit; if( jsonData.view.layout && jsonData.view.layout.bindings ) { jsonData.view.layout.bindings.accountId = 'column-1'; jsonData.view.layout.bindings.locale = 'column-1'; jsonData.view.layout.bindings.formId = 'column-1'; jsonData.view.layout.bindings.requestId = 'column-1'; jsonData.view.layout.bindings.suppValidationId = 'column-1'; jsonData.view.layout.bindings.authResponse = 'column-1'; jsonData.view.layout.bindings.authType = 'column-1'; jsonData.view.layout.bindings.sourceWebsite = 'column-1'; jsonData.view.layout.bindings.ipAddress = 'column-1'; jsonData.view.layout.bindings.gpcEnabled = 'column-1'; jsonData.view.layout.bindings.captchaAnswer = 'column-1'; jsonData.view.layout.bindings.captchaInput = 'column-1'; } jsonData.postRender = postRenderer; if(jsonData.view.layout && jsonData.view.layout.template){ jsonData.view.layout.template = appendBuildVersionQueryParam(jsonData.view.layout.template); } if(jsonData.view.fields){ for (var fieldKey in jsonData.view.fields){ var field = jsonData.view.fields[fieldKey]; if(field && field.templates){ for (var templateKey in field.templates){ var template = field.templates[templateKey]; field.templates[templateKey] = appendBuildVersionQueryParam(template); } } } } jsonData.view.locale = locale; jsonData.view.messages[locale] = { "invalidEmail": jsonData.view.messages.invalidEmail } // Buttons doesn't work if (noSubmit) { for (var button in jsonData.options.form.buttons) { jsonData.options.form.buttons[button].click = function() { window.alert("Test Mode"); return; } } } // Date Locales for (var keyId in jsonData.schema.properties) { var schemaProps = jsonData.schema.properties[keyId]; var optionProps = jsonData.options.fields[keyId]; if (schemaProps.format === 'date') { if (!("picker" in optionProps)) { optionProps.picker = {}; } optionProps.picker.locale = locale; } } if(!jsonData.options.header.showCompanyName){ jsonData.schema.title = null; } //Disable autofocus on the first input field jsonData.options.focus = ""; $("#form1").alpaca(jsonData); } function submitMethod(alpaca) { const formData = alpaca.getValue(); if(GOOGLE_RECAPTCHA_V3_ENABLED){ grecaptcha.ready(function () { grecaptcha.execute("6LdSn6gUAAAAAKZ5SiEQ8PdCUOgV9sf1ei4utXrB", {action: 'homepage'}).then(function (token) { console.log("Google Token: " + token); formData.authResponse = token; alpaca.form.find("textarea.g-recaptcha-response").prop('disabled', true); if(TRUSTARC_CAPTCHA_ENABLED){ submitTrustArcCaptcha(alpaca, formData); }else{ submit(alpaca, formData); } }); }); }else if(TRUSTARC_CAPTCHA_ENABLED){ submitTrustArcCaptcha(alpaca, formData); }else if (authType === 'TRUSTARC') { formData.authResponse = trustarc.__token; Object.keys(trustarc.__data).forEach(function(key) { let value = trustarc.__data[key]; if (key && value) { if (!(key in formData) && alpaca.isValid(true)) { var input = $('<input name="' + key + '" style="display: none;">') input.val(value); alpaca.getFormEl().append(input); } formData[key] = value; } }); submit(alpaca, formData); } } function submitTrustArcCaptcha(alpaca, formData){ formData.captchaAnswer = captchaAnswer; formData.captchaInput = captchaInput; submit(alpaca, formData); } function submit(alpaca, formData){ alpaca.setValue(formData); //postmessage submit parentPostMessage(alpaca, { source: "trustarc_irm", message: "submit", data: "" }); disableSubmitButton(); alpaca.submit(); } function parentPostMessage(alpaca, data) { var requestType = nullSafeGet(['00000000-0000-0000-0000-000000001005'], alpaca.getValue()); var ccmEnabled = nullSafeGet(['options', 'fields', '00000000-0000-0000-0000-000000001005', 'ccmEnabledOptions', requestType, 'enabled'], alpaca.topControl); if (ccmEnabled === true || isGPCEnabled()) { window.parent.postMessage(JSON.stringify(data), '*'); } } var isModalConfirmInit = false; function initModal(alpaca){ if (!isModalConfirmInit) { $("#modal-btn-confirm").on("click", function(){ submitMethod(alpaca); $("#mi-modal").modal('hide'); }); $("#modal-btn-cancel").on("click", function(){ // Enable all upload File Hidden Field again after cancel updateFileUploadState(false); $("#mi-modal").modal('hide'); }); $(".close").on("click", function(){ // Enable all upload File Hidden Field again after cancel updateFileUploadState(false); }); isModalConfirmInit = true; } $("#mi-modal").modal('show'); //TODO: Find better way for late binding var confirmLabel = nullSafeGet(['00000000-0000-0000-0000-000000001005'], alpaca.getValue()); var confirmMessage = nullSafeGet(['options', 'fields', '00000000-0000-0000-0000-000000001005', 'confirmMessages', confirmLabel, 'message'], alpaca.topControl); var requestTypeLabel = nullSafeGet(['options', 'fields', '00000000-0000-0000-0000-000000001005', 'confirmMessages', confirmLabel, 'requestTypeLabel'], alpaca.topControl); confirmMessage = confirmMessage.replace('\[\[\$\{requestType\}\]\]', requestTypeLabel); $("#confirmMessage").html(confirmMessage); } function initSubmit(event, alpacaForm) { var alpaca = !alpacaForm ? this : alpacaForm; // Disable all upload File Hidden Field, so it wont be sent on submit updateFileUploadState(true); if (hasConfirm(alpaca)) { initModal(alpaca); } else { submitMethod(alpaca); } } function updateFileUploadState(disabled) { document.querySelectorAll(".uploadFileHiddenField").forEach(function(item) { item.disabled = disabled; }); document.querySelectorAll(".uploadFileField").forEach(function(item) { if (item.parentElement.classList.contains("disabled")) { item.disabled = disabled; } }); } function hasConfirm(alpaca) { var conLabels = nullSafeGet(['options', 'fields', '00000000-0000-0000-0000-000000001005', 'confirmLabels'], alpaca.topControl); var reqValue = nullSafeGet(['00000000-0000-0000-0000-000000001005'], alpaca.getValue()); if (conLabels && conLabels.includes(reqValue)) { var reqIds = nullSafeGet(['schema', 'properties', '00000000-0000-0000-0000-000000001005', 'enum'], alpaca.topControl); var reqVals = nullSafeGet(['options', 'fields', '00000000-0000-0000-0000-000000001005', 'optionLabels'], alpaca.topControl); if (reqIds && reqVals && reqIds.length == reqVals.length) { var reqIndex = reqIds.indexOf(reqValue); if (reqIndex != -1) { $('#requestTypeName').html(reqVals[reqIndex]); return true; } } } return false; } let initForm = true; let isCaptchaCorrect = false; const CAPTCHA_ANSWER_LENGTH = 5; let captchaAnswer; let captchaInput; const hideTrustArcCaptcha = function(){ if(!TRUSTARC_CAPTCHA_ENABLED){ return; } $('#captcha-container').hide(); } const showTrustArcCaptcha = function(){ if(!TRUSTARC_CAPTCHA_ENABLED){ return; } $('#captcha-container').show(); } const refreshTrustArcCaptcha = function(manualRefresh){ if(!TRUSTARC_CAPTCHA_ENABLED){ return; } const captchaInputField = $("#captcha-input"); const captchaRefresh = $('#captcha-refresh'); const captchaRefreshSection = $('#captcha-refresh-section'); captchaRefresh.prop('disabled', true); captchaRefresh.css('cursor', 'not-allowed'); captchaRefreshSection.invisible(); captchaInputField.val(''); captchaInputField.prop('disabled', true); $.getJSON("/services/validation/api/v1/captcha", function(captcha) { captchaAnswer = captcha.answer; $("#captcha-image").attr("src", captcha.image); changeTrustArcCaptchaAudio(captcha.audio); captchaRefresh.prop('disabled', false); captchaRefresh.css('cursor', 'pointer'); captchaInputField.prop('disabled', false); captchaRefreshSection.visible(); if(manualRefresh){ captchaInputField.focus(); } }).fail(function(error) { alert('Failed to load captcha!'); console.log( "[get captcha] error", error); }); } const changeTrustArcCaptchaAudio = function (sourceUrl) { if(!TRUSTARC_CAPTCHA_ENABLED){ return; } const audio = $("#captcha-audio"); $("#captcha-audio-source").attr("src", sourceUrl); audio[0].pause(); audio[0].load(); } function postRenderer(control) { $('.alpaca-required-indicator').html(('<sup class="alpaca-icon-required glyphicon glyphicon-asterisk intake-color-red"></sup>')); //WCAG 2 Compliance var count=1; $('#form1 a').each(function(){ var newId = 'tr-a-link-' + count++; var label = $("<label>").attr('id', newId); label.attr('hidden', true); label.html(newId); $(this).append(label); $(this).attr('aria-labelledby', 'form1 ' + newId); }); // ADA Compliance $('input').each(function(){ let property = control.schema.properties[this.name]; let titleValue = !!property && !!property.hasOwnProperty('title') && property.title != ''? property.title: 'No Label'; if(titleValue === 'No Label') { if($(this).prev('label').length) { titleValue = $(this).prev('label')[0].innerText; if(titleValue === '') { titleValue = 'No Label'; } } } $(this).attr('title', titleValue ); }); if (authType === 'TRUSTARC') { control.domEl.find('.alpaca-form-button').each(function() { $(this).attr('style','display: none'); }); } var rootKeys = processDynamics(control); initFields(control, rootKeys); // Reconfigure reset BUG in library control.form.domEl.find('button[data-key="reset"]').click(function(e){ e.preventDefault(); control.children.forEach(function(childElem){ childElem.clear(); hideErrors(childElem); }); selectedShowFields.clear() initForm = true; if(TRUSTARC_CAPTCHA_ENABLED && !isCaptchaCorrect){ $("#captcha-input").val(''); } initFields(control, rootKeys); }); control.form.adjustSubmitButtonState = function () { this.disableSubmitButton(); let enable = this.isFormValid(); if(TRUSTARC_CAPTCHA_ENABLED){ enable = isCaptchaCorrect && enable; } if(enable){ this.enableSubmitButton(); } } if(GOOGLE_RECAPTCHA_V3_ENABLED){ onRecaptchaLoadCallback(); } initializeTrustArcCaptcha(control); } function initializeTrustArcCaptcha(control) { if(!TRUSTARC_CAPTCHA_ENABLED){ return; } $("#captcha-refresh").click(()=>refreshTrustArcCaptcha(true)); $("#captcha-input").keyup(function () { const captchaInputField = $(this); if (captchaInputField.val().length < CAPTCHA_ANSWER_LENGTH) { return; } const captchaRefresh = $('#captcha-refresh'); captchaRefresh.prop('disabled', true); captchaInputField.prop('disabled', true); captchaInputField.val(captchaInputField.val().substr(0, CAPTCHA_ANSWER_LENGTH)); captchaInput = captchaInputField.val(); $.ajax("/services/validation/api/v1/captcha/verify", { type: 'POST', contentType: 'application/json', data: JSON.stringify({ answer: captchaAnswer, input: captchaInput }) }).done(function (data) { const correct = data.correct; if (correct) { isCaptchaCorrect = true; control.form.adjustSubmitButtonState(); captchaInputField.prop('disabled', true); captchaRefresh.hide(); $('#captcha-success').show(); } else { refreshTrustArcCaptcha(true); } }).fail(function () { refreshTrustArcCaptcha(true); }); }); refreshTrustArcCaptcha(false); const captchaContainer = $('#captcha-container'); $('.alpaca-field-object').append(captchaContainer); captchaContainer.show(); } let selectedShowFields = new Set(); function processDynamics(control) { var dynamics = control.options.dynamics || {}; var triggCnt = 0; var rootKeys = Object.keys(dynamics); Object.keys(dynamics).forEach(function (dynKey) { var triggerID = "" + triggCnt; var dynElem = dynamics[dynKey]; var dynCtrl = control.childrenByPropertyId[dynKey]; var triggers = dynElem.triggers || []; dynElem.triggerCalls = []; triggers.forEach(function (trigger) { trigger.actionCalls = []; trigger.show = function (isShown, currActionMap) { trigger.actionCalls.forEach(function(triggerCall){ var id = triggerCall.id triggerCall.show(isShown); if (currActionMap) { if (!currActionMap.get(id)) { currActionMap.set(id, isShown); } else { // An isShown(true) action is already in effect // Happens only when dynamics type is SHOW_OPTIONS return; } } var target = control.childrenByPropertyId[id]; if (target !== undefined && target.dynamicTrigger !== undefined) { if(!isShown) { target.dynamicTrigger(); } } }); }; var actions = trigger.actions || {}; if (trigger.type === 'SHOW_FIELDS') { Object.keys(actions).forEach(function (actionKey) { var elemCtrl = control.childrenByPropertyId[actionKey]; trigger.actionCalls.push({ id: actionKey, show: function(isShown) { // null means processing is not needed, so hide it if (isShown == null) { elemCtrl.hide(); elemCtrl.disable(); return; } // process if (isShown) { elemCtrl.show(); elemCtrl.enable(); if(elemCtrl.type === 'date') { elemCtrl.domEl.find("input[data-type='date']").each(function(){ $(this).datetimepicker("enable"); }); } } else { elemCtrl.hide(); elemCtrl.disable(); var field = control.childrenById[elemCtrl.id]; field.setValue(''); if(elemCtrl.type === 'select' && elemCtrl.options.multiple) { $(elemCtrl.control).multiselect('clearSelection'); } if(elemCtrl.type === 'date') { elemCtrl.domEl.find("input[data-type='date']").each(function(){ $(this).datetimepicker("disable"); }); } } } }); }); } else if (trigger.type === 'SHOW_OPTIONS') { Object.keys(actions).forEach(function (actionKey) { var action = actions[actionKey]; var acValues = action.values || []; var elemCtrl = control.childrenByPropertyId[actionKey]; if (!elemCtrl.showOptionArray) { elemCtrl.showOptionArray = {}; } elemCtrl.containerItemEl.find('option').each(function(){ var elVal = $(this).attr('value'); if (!elemCtrl.showOptionArray[elVal]) { elemCtrl.showOptionArray[elVal] = {}; } var hasClass = !$(this).hasClass('locationGroup'); elemCtrl.showOptionArray[elVal][triggerID] = hasClass; }); trigger.actionCalls.push({ id: actionKey, show: function(isShown) { // null means processing is not needed if (isShown == null) { return; } //process elemCtrl.containerItemEl.find('option').each(function(){ var elVal = $(this).attr('value'); if (elVal) { if (isShown) { elemCtrl.showOptionArray[elVal][triggerID] = acValues.includes(elVal); } else { elemCtrl.showOptionArray[elVal][triggerID] = !$(this).hasClass('locationGroup'); } } }); Object.keys(elemCtrl.showOptionArray).forEach(function(elVal) { var retShown = true; Object.keys(elemCtrl.showOptionArray[elVal]).forEach(function(triggerID) { if (retShown && !elemCtrl.showOptionArray[elVal][triggerID]) { retShown = false; } }); elemCtrl.containerItemEl.find('option[value="' + elVal +'"]').each(function(){ // Wrapping option fields in span to hide fields due to Safari/IE limitation. // It is not possible to hide options in IE/Safari let multiSelectOptionElem = elemCtrl.containerItemEl.find('input[value="' + elVal +'"]'); if(multiSelectOptionElem && elemCtrl.options.multiple) { multiSelectOptionElem = multiSelectOptionElem.parent().parent(); } else { multiSelectOptionElem = null; } if (retShown) { if(!$(this).hasClass('locationGroup')){ $(this).removeAttr('disabled'); } if( ($(this).parent().is('span')) ) { $(this).unwrap(); $(this).trigger("change"); if(multiSelectOptionElem) { multiSelectOptionElem.removeClass('hidden'); } } }else { if((!acValues.includes(elVal))){ if( !($(this).parent().is('span')) && !$(this).hasClass("locationGroup")) { $(this).wrap('<span>'); if(multiSelectOptionElem) { multiSelectOptionElem.addClass('hidden'); multiSelectOptionElem.removeClass('active'); $('option', $(this).parent()).each(function(element) { $(this).removeAttr('selected').prop('selected', false); }); $(this).trigger("change"); $(elemCtrl.control).multiselect('refresh'); } } }else if($(this).hasClass('locationGroup')){ $(this).attr('disabled', 'true'); } if (elemCtrl.getValue() === this.value) { elemCtrl.clear(); if (elemCtrl.dynamicTrigger !== undefined) { elemCtrl.dynamicTrigger(); } } } }); }); Object.keys(elemCtrl.showOptionArray).forEach(function(elVal) { let currEl = elemCtrl.containerItemEl.find('option[value="' + elVal +'"]'); if (currEl.hasClass("locationGroup")) { let stateGroup = elVal + '_'; let stateCount = elemCtrl.containerItemEl.find('option[value^="' + stateGroup +'"]').length; let hiddenStatesCount = elemCtrl.containerItemEl.find('span option[value^="' + stateGroup +'"]').length; let allHidden = stateCount === hiddenStatesCount; if (allHidden && !currEl.parent().is('span')) { currEl.wrap('<span>'); } else if(!allHidden && currEl.parent().is('span')) { currEl.unwrap(); } } }); } }); }); } Object.keys(actions).forEach(function (actionKey) { var target = dynamics[actionKey]; if (target !== undefined) { const index = rootKeys.indexOf(actionKey); if (index > -1) { rootKeys.splice(index, 1); } } }); dynElem.triggerCalls.push({ show: function(isShown, currActionMap) { trigger.show(isShown, currActionMap); }, match: function(fieldElem) { var isShown = false; var value = fieldElem.getValue(); let elemType = fieldElem.schema.type; if (!fieldElem.isVisible() && fieldElem.forceTrigger === false) { // If field is not visible isShown = null; } else if (elemType === "array") { for (let sel in value) { isShown = matchesCondition(value[sel].value, trigger.condition) if (isShown) { break; } } } else if (elemType === "boolean") { isShown = matchesCondition("" + value, trigger.condition); } else if (fieldElem.type ==="date"){ let convertedValue = convertToDefaultDateFormat(value, fieldElem.getDateFormat()); isShown = matchesCondition(convertedValue, trigger.condition); } else { isShown = matchesCondition(value, trigger.condition) } return isShown; } }); // Increase trigger counter triggCnt++; }); // Set the trigger event function dynCtrl.dynamicTrigger = function() { var self = this; var currActionMap = new Map(); dynElem.triggerCalls.forEach(function(triggerCall){ var isShown = triggerCall.match(self); if(isShown) { selectedShowFields.add(triggerCall); } else { selectedShowFields.delete(triggerCall); triggerCall.show(false, currActionMap); } }); selectedShowFields.forEach(function(field) { field.show(true, currActionMap); }); } }); return rootKeys; } function initFields(control, rootKeys) { //initial call (parent fields only) for (let i=0; i < rootKeys.length; i++) { let rootKey = rootKeys[i]; var dynElem = control.childrenByPropertyId[rootKey]; dynElem.dynamicTrigger(); } //initialization done initForm = false; } function disableSubmitButton() { var submitButton = $(".alpaca-form-button.alpaca-form-button-submit.btn.btn-default"); submitButton.attr('disabled', true); } function enableSubmitButton(){ var submitButton = $(".alpaca-form-button.alpaca-form-button-submit.btn.btn-default"); if($("#form1").alpaca('get').form.isFormValid()){ submitButton.removeAttr('disabled'); } else { submitButton.attr('disabled', true); } } function matchesCondition(value, condition) { switch (condition.type) { //For checkboxes and select fields case "OR": return condition.values.includes(value); //For Date fields case "GREATER_THAN": { let date = new Date(value); let systemDate = new Date(Date.now()); systemDate.setHours(0,0,0,0); return systemDate > calculateDateWithOffset(date, condition); } case "GREATER_THAN_OR_EQUAL": { let date = new Date(value); let systemDate = new Date(Date.now()); systemDate.setHours(0,0,0,0); return systemDate >= calculateDateWithOffset(date, condition); } case "LESS_THAN": { let date = new Date(value); let systemDate = new Date(Date.now()); systemDate.setHours(0,0,0,0); return systemDate < calculateDateWithOffset(date, condition); } case "LESS_THAN_OR_EQUAL": { let date = new Date(value); let systemDate = new Date(Date.now()); systemDate.setHours(0,0,0,0); return systemDate <= calculateDateWithOffset(date, condition); } } return false; } function calculateDateWithOffset(date, condition){ let offset = parseInt(condition.values[0]); let dateInput = new Date(date); switch (condition.dateUnit){ case "YEARS": return new Date(dateInput.setFullYear(dateInput.getFullYear() + offset)); case "MONTHS": return new Date(dateInput.setMonth(dateInput.getMonth() + offset)); case "WEEKS": return new Date(dateInput.setDate(dateInput.getDate() + (offset * 7))); case "DAYS": return new Date(dateInput.setDate(dateInput.getDate() + offset)); } } function convertToDefaultDateFormat(date, dateFormat){ if(dateFormat == "DD/MM/YYYY"){ //Unsupported format in js let dateParts = date.toString().split("/"); date = new Date(+dateParts[2], dateParts[1] - 1, +dateParts[0]); } return date; } document.addEventListener("DOMContentLoaded", function(event) { if(!isCookieAllowed()) { const href = window.location.href; const headerMessage = "Your browser is blocking essential cookie."; $(".error-title").append(headerMessage); if(inIframe()) { if(isGPCEnabled()){ const gpcMessage = "To proceed with GPC, please allow 3rd " + "party cookies for the website you are visiting."; $(".error-description").append(gpcMessage); } else { const iframeMessage = "We have detected that essential third-party cookies are blocked. Click <a href=https:\/\/submit-irm.trustarc.com\/services\/validation\/9847e67e-3b74-4738-80df-dd7eaac1483a target=_blank>here<\/a> to fill out and submit the form or enable third-party cookies in your browser and refresh the page." "essential third-party cookies are blocked. "+ "Click <a href='" + href + "' target='_blank'>here</a> to fill out and submit the form or " + "enable third-party cookies in your browser and refresh the page."; $(".error-description").append(iframeMessage); } } else { const blockedMessage = "We see that cookies are blocked. You must enable cookies in your browser and refresh the page to submit the form data." "You must enable cookies in your browser and refresh the page to submit the form data."; $(".error-description").append(blockedMessage); } $("body").css('width','100%'); $("body").css('height','100%'); $("body").css('margin','auto'); $("html").css('width','100%'); $("html").css('height','100%'); $("html").css('margin','auto'); $(".container").css('display','none'); $(".modal").css('display','none'); $(".cookie-error").css('display',''); if(GOOGLE_RECAPTCHA_V3_ENABLED){ onRecaptchaLoadCallback(); } return; } Handlebars.registerHelper('ifOptStart', function (index, array, options) { var child = quiteGetAt(array, index+1); var parent = quiteGetAt(array, index); if (child && parent && child.value.length > parent.value.length) { return options.fn(this); } return options.inverse(this); }); Handlebars.registerHelper('ifOptEnd', function(index, array, options) { var child = quiteGetAt(array, index+1); var parent = quiteGetAt(array, index); if ((child == null && parent && parent.value.length >= 5) || (child && parent && child.value.length < parent.value.length)) { return options.fn(this); } return options.inverse(this); }); Handlebars.registerHelper('ifSubOption', function(index, array, options) { var child = quiteGetAt(array, index); for(var x = 0 ; x < array.length ; x++){ if(child.value.startsWith(array[x].value) && child.value !== array[x].value){ return options.fn(this); } } return options.inverse(this); }); Handlebars.registerHelper('ifROptStart', function(index, array, options) { var child = quiteGetAt(array, index+1); var parent = quiteGetAt(array, index); if (child && parent && child.value.length > parent.value.length) { return options.fn(this); } return options.inverse(this); }); Handlebars.registerHelper('ifROptEnd', function(index, array, options) { var child = quiteGetAt(array, index+1); var parent = quiteGetAt(array, index); if ((child == null && parent && parent.value.length >= 36) || (child && parent && child.value.length < parent.value.length)) { return options.fn(this); } return options.inverse(this); }); Handlebars.registerHelper('ifEquals', function(val1, val2, options) { return (val1 === val2) ? options.fn(this): options.inverse(this); }); Handlebars.registerHelper('convertToMB', function(item) { return convertToMB(item); }); init(); }); function quiteGetAt(array, index) { if (index < 0 || array.length <= index) return null; return array[index]; } function wrapText(str, length) { if (length <= 6 ) return str; if (str.length > length) { var dot = str.lastIndexOf("."); dot = (dot == -1) ? length-3 : dot; var extStr = str.substr(dot) return str.substr(0, length-3-extStr.length) + "..." + extStr; } return str; } function convertToMB(byteSize) { return byteSize / Math.pow(1024,2) } function appendBuildVersionQueryParam(str){ if(!str || typeof str !== "string"){ return str; } if(str.length > 0 && '?' !== str[str.length - 1]){ str = str + '?'; } return str + "v=@generated.version@"; } function validateOptionalMultiValuesBaseCheck(elem){ return validateOptionalBaseCheck(elem, getMultiValueInputFields(elem)); } function getMultiValueInputFields(elem) { return elem.domEl .find('.multi-value-pane') .find("input[type='" + elem.inputType + "']"); } function validateMaxLength(elem, val) { if (val === "" && elem.options.allowOptionalEmpty && !elem.isRequired()) { return true; } if (Alpaca.isEmpty(val)) { val = ""; } if ((""+val).length > elem.schema.maxLength) { return false; } return true; } function validateMinLength(elem, val) { if(val !== val) { // NaN val = ""; } if (val === "" && elem.options.allowOptionalEmpty && !elem.isRequired()) { return true; } if (Alpaca.isEmpty(val)) { val = ""; } if ((""+val).length < elem.schema.minLength) { return false; } return true; } function validateOptionalBaseCheck(self, fields){ var hasValueFunc = function() { return $(this).val(); }; if (self.isRequired() && getFieldsFilterLength(fields, hasValueFunc) != fields.length) { return false; } var matchesWhiteSpaceFunc = function() { return Alpaca.testRegex(Alpaca.regexps.whitespace, $(this).val()); }; if (self.options.disallowOnlyEmptySpaces && getFieldsFilterLength(fields, matchesWhiteSpaceFunc) > 0) { return false; } return true; } let valueFieldMap = new Map(); let matchFieldMap = new Map(); let fieldTitleMap = new Map(); function isMatchFieldEnabled(elem, fieldSource) { if(elem.matchField != null) { if(elem.matchField.enabled) { matchFieldMap.set(fieldSource, elem.matchField.fieldId) } } } function validateMatchField(elem) { if(matchFieldMap.get(elem.name) != null) { var sourceVal = valueFieldMap.get(elem.name); var destFieldId = matchFieldMap.get(elem.name); if(sourceVal !== valueFieldMap.get(destFieldId)) { return false; } else { return true; } } } function getFieldsFilterLength(fields, func) { return (fields.filter(func).get()).length; } function isCookieAllowed() { let hostProto = "https"; let cookieName = 'irmTestCookie'; let cookieValue = 'trustarcTestCookie=' + cookieName; if(hostProto !== 'http'){ cookieValue += '; samesite=None; secure'; } document.cookie = cookieValue; return document.cookie.indexOf(cookieName) !== -1; } function inIframe () { try { return window.self !== window.top; } catch (e) { return true; } } function isGPCEnabled () { const gpcParam = getUrlParameterByName('gpc'); return gpcParam !== null; } function hideErrors(element) { var self = element.getFieldEl(); self.removeClass('has-error'); self.children(".alpaca-message").remove(); } </script> </head> <body> <section class="ta-wrapper cookie-error" style="display:none;"> <div class="ta-content"> <div class="ta-body"> <div class="title error-title" > </div> <div class="description error-description" > </div> </div> </div> </section> <div class="container"> <div class="col-md-12 col-md-offset-1"> <div id="form1" class="col-md-8 col-md-offset-1"></div> </div> </div> <!-- Confirmation Modal --> <div class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" id="mi-modal"> <div class="modal-dialog modal-m"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> <h1 class="modal-title text-center" id="myModalLabel">Request Confirmation</h1> </div> <div class="modal-body confirmation-body" id="confirmMessage"></div> <div class="modal-footer"> <button type="button" class="btn btn-default pull-left" id="modal-btn-cancel">Cancel</button> <button type="button" class="btn btn-primary pull-right" id="modal-btn-confirm">Confirm</button> </div> </div> </div> </div> <div id="captcha-container" style="display: none"> <label for="captcha-input">CAPTCHA Verification</label> <button id="captcha-refresh" type="button" style="border: none; background: none;">🔄</button> <span id="captcha-success" style="display: none">✅</span> <div id="captcha-refresh-section" style="display: flex; align-items: center;"> <img id="captcha-image" title="captcha-image" alt="Captcha" src=""/> <audio id="captcha-audio" controls style="flex-grow: 1; vertical-align: middle; margin-top: 5px; margin-bottom: 5px;"> <source id="captcha-audio-source" title="captcha-audio-source" src=""/> Your browser does not support the audio element. </audio> </div> <input id="captcha-input" type="text" class="alpaca-control form-control"/> </div> </body>