{"_id":"64ec949f94ba510ebe27aa07","type":"form","tags":[],"owner":"5f9acba5f1b659b9e06350e4","components":[{"label":"Top of Form","columns":[{"components":[{"label":"authorizationToken","key":"authorizationToken","type":"hidden","input":true,"tableView":false,"hideOnChildrenHidden":false,"width":12}],"width":2,"offset":0,"push":0,"pull":0,"size":"md","currentWidth":2},{"components":[{"label":"agencyFormId","key":"agencyFormId","type":"hidden","input":true,"tableView":false,"hideOnChildrenHidden":false,"width":12}],"width":2,"offset":0,"push":0,"pull":0,"size":"md","currentWidth":2},{"components":[{"label":"min/max","persistent":"client-only","calculateServer":true,"trigger":{"init":true,"server":true},"dataSrc":"url","fetch":{"url":"{{ config.PAYGOV_ENV }}/public/api/v1/minmaxamount/{{ data.agencyFormId }}","method":"get","headers":[{"key":"X-Paygov-Authorization-Token","value":"{{ data.authorizationToken }}"}],"forwardHeaders":true,"authenticate":false},"key":"minMax","type":"datasource","input":true,"tableView":false,"hideOnChildrenHidden":false,"width":12}],"size":"md","width":2,"offset":0,"push":0,"pull":0,"currentWidth":2},{"components":[{"label":"Company Profile","persistent":"client-only","calculateServer":true,"trigger":{"init":true,"server":true},"dataSrc":"url","fetch":{"url":"{{ config.PAYGOV_ENV }}/public/api/v1/companyprofile/{{ data.agencyFormId }}","method":"get","headers":[{"key":"X-Paygov-Authorization-Token","value":"{{ data.authorizationToken }}"}],"forwardHeaders":true,"authenticate":false},"key":"CompanyDataFromPaygov","type":"datasource","input":true,"tableView":false,"validate":{"multiple":true},"hideOnChildrenHidden":false,"keyModified":true,"multiple":true,"width":12}],"size":"md","width":2,"offset":0,"push":0,"pull":0,"currentWidth":2}],"key":"topOfForm","type":"columns","input":false,"tableView":false,"lockKey":true,"source":"5eac84259b53ff041c170ee7","isNew":true,"hideOnChildrenHidden":false},{"label":"Columns","columns":[{"components":[{"label":"Form Name","calculateValue":"if(data.CompanyDataFromPaygov.length > 0){ \r\n value = data.CompanyDataFromPaygov[0]['Header'];\r\n}\r\n","calculateServer":true,"key":"formName","type":"hidden","tableView":true,"input":true,"mask":false,"inputType":"text","inputFormat":"plain","spellcheck":true,"hideOnChildrenHidden":false}],"width":2,"offset":0,"push":0,"pull":0,"size":"md","currentWidth":2},{"components":[{"label":"Maximum Payment","calculateValue":"if(data.CompanyDataFromPaygov.length > 0){ \r\n var amount = parseFloat(data.CompanyDataFromPaygov[0]['Maximum Payment']);\r\n value = amount.toFixed(2);\r\n}","calculateServer":true,"key":"MaximumPayment","type":"hidden","tableView":true,"input":true,"mask":false,"inputType":"text","inputFormat":"plain","spellcheck":true,"hideOnChildrenHidden":false}],"width":2,"offset":0,"push":0,"pull":0,"size":"md","currentWidth":2},{"components":[{"label":"Minimum Payment","calculateValue":"if(data.CompanyDataFromPaygov.length > 0){ \r\n var amount = parseFloat(data.CompanyDataFromPaygov[0]['Minimum Payment']);\r\n value = amount.toFixed(2);\r\n}","calculateServer":true,"key":"MinimumPayment","type":"hidden","tableView":true,"input":true,"mask":false,"inputType":"text","inputFormat":"plain","spellcheck":true,"hideOnChildrenHidden":false}],"size":"md","width":2,"offset":0,"push":0,"pull":0,"currentWidth":2}],"key":"columns","type":"columns","input":false,"tableView":false,"hideOnChildrenHidden":false},{"label":"HTML","tag":"img","attrs":[{"attr":"src","value":"{{ config.STATIC_ASSETS_ENV }}/FAA/images/logo_logistics_FAA.jpg"},{"attr":"alt","value":"FAA Payments"},{"attr":"title","value":"FAA Payments"},{"attr":"style","value":"max-width: 150px;"}],"refreshOnChange":false,"key":"html","type":"htmlelement","input":false,"tableView":false,"hideOnChildrenHidden":false},{"label":"HTML","tag":"h3","attrs":[{"attr":"","value":""}],"content":"
\n{{ data.formName }}\n
","refreshOnChange":true,"key":"html1","type":"htmlelement","input":false,"tableView":false},{"label":"HTML","attrs":[{"attr":"","value":""}],"content":"
* Required Field
\r\n \r\n","refreshOnChange":false,"key":"html2","type":"htmlelement","input":false,"tableView":false},{"label":"Columns","columns":[{"components":[{"label":"First Name","tableView":true,"validate":{"required":true,"custom":"valid = pgFormioGlobal().validateText(input);","maxLength":50},"key":"partyGivenName","type":"textfield","input":true,"hideOnChildrenHidden":false,"validateOn":"blur"}],"width":4,"offset":0,"push":0,"pull":0,"size":"md","currentWidth":4},{"components":[{"label":"Middle Initial","description":"If none, leave blank","tableView":true,"validateOn":"blur","validate":{"custom":"valid = pgFormioGlobal().validateText(input);","maxLength":1},"key":"partyMiddleName","type":"textfield","input":true,"hideOnChildrenHidden":false}],"width":4,"offset":0,"push":0,"pull":0,"size":"md","currentWidth":4},{"components":[{"label":"Last Name","tableView":true,"validate":{"required":true,"custom":"valid = pgFormioGlobal().validateText(input);","maxLength":50},"key":"partySurName","type":"textfield","input":true,"hideOnChildrenHidden":false,"validateOn":"blur"}],"width":4,"offset":0,"push":0,"pull":0,"size":"md","currentWidth":4}],"key":"columns1","type":"columns","input":false,"tableView":false,"path":"columns","lockKey":true,"source":"5eac84253f388e5b14ba3b29","isNew":true,"hideOnChildrenHidden":false},{"label":"Columns","columns":[{"components":[{"label":"Email Address","tableView":true,"validate":{"required":true,"custom":"valid = pgFormioGlobal().validateEmail(input);"},"key":"partyEmail","type":"textfield","input":true,"hideOnChildrenHidden":false,"validateOn":"blur"}],"width":8,"offset":0,"push":0,"pull":0,"size":"md","currentWidth":8},{"components":[],"width":4,"offset":0,"push":0,"pull":0,"size":"md","currentWidth":4}],"key":"columns5","type":"columns","input":false,"tableView":false,"path":"columns3","lockKey":true,"source":"5eac84253f388e5b14ba3b29","isNew":true,"hideOnChildrenHidden":false},{"label":"Company Name","tableView":true,"validateOn":"blur","validate":{"required":true,"custom":"valid = pgFormioGlobal().validateText(input);","maxLength":100},"key":"partyCompanyName","type":"textfield","input":true,"hideOnChildrenHidden":false},{"label":"Address 1","tableView":true,"validate":{"required":true,"custom":"valid = pgFormioGlobal().validateText(input);","maxLength":100},"key":"partyAddress1","type":"textfield","input":true,"hideOnChildrenHidden":false,"validateOn":"blur"},{"label":"Address 2","tableView":true,"validate":{"custom":"valid = pgFormioGlobal().validateText(input);","maxLength":100},"key":"partyAddress2","type":"textfield","input":true,"hideOnChildrenHidden":false,"validateOn":"blur"},{"label":"Columns","columns":[{"components":[{"label":"Country","widget":"html5","tableView":true,"dataSrc":"url","defaultValue":"USA","data":{"url":"{{ config.PAYGOV_ENV }}/public/api/v1/getCountries","headers":[{"key":"","value":""}]},"valueProperty":"alpha3Code","template":"{{ item.countryName }}","calculateServer":true,"key":"partyCountry","type":"select","limit":5000,"input":true,"disableLimit":false,"hideOnChildrenHidden":false,"lazyLoad":false,"validate":{"required":true},"searchThreshold":0.3}],"width":4,"offset":0,"push":0,"pull":0,"size":"md","currentWidth":4},{"components":[],"width":4,"offset":0,"push":0,"pull":0,"size":"md","currentWidth":4},{"components":[],"width":4,"offset":0,"push":0,"pull":0,"size":"md","currentWidth":4}],"key":"columns3","type":"columns","input":false,"tableView":false,"path":"columns2","lockKey":true,"source":"5eac84253f388e5b14ba3b29","isNew":true,"hideOnChildrenHidden":false},{"label":"Columns","columns":[{"components":[{"label":"City","tableView":true,"validate":{"required":true,"custom":"valid = pgFormioGlobal().validateText(input);","maxLength":50},"key":"partyCity","type":"textfield","input":true,"hideOnChildrenHidden":false,"validateOn":"blur"}],"width":4,"offset":0,"push":0,"pull":0,"size":"md","currentWidth":4},{"components":[{"label":"State","widget":"html5","tableView":true,"dataSrc":"url","data":{"url":"{{ config.PAYGOV_ENV }}/public/api/v1/getStates","headers":[{"key":"","value":""}]},"valueProperty":"stateAbbreviation","template":"{{ item.stateName }}","refreshOn":"partyCountry","clearOnRefresh":true,"calculateServer":true,"validate":{"required":true},"key":"partyState","customConditional":"show = data.partyCountry === \"USA\" || data.partyCountry === \"CAN\";","type":"select","filter":"country={{ data.partyCountry }}","input":true,"disableLimit":false,"hideOnChildrenHidden":false,"lazyLoad":false,"searchThreshold":0.3},{"label":"State","tableView":true,"validate":{"custom":"valid = pgFormioGlobal().validateText(input);","maxLength":50},"key":"partyForeignState","customConditional":"show = data.partyCountry !== \"USA\" && data.partyCountry !== \"CAN\";","type":"textfield","input":true,"hideOnChildrenHidden":false,"validateOn":"blur"}],"width":4,"offset":0,"push":0,"pull":0,"size":"md","currentWidth":4},{"components":[{"label":"Zip Code","tableView":true,"case":"uppercase","validate":{"required":true,"custom":"var val = input;\r\n\r\nif (input === \"\" || input === undefined || input === null) {\r\n valid = true;\r\n} else {\r\n if (data.partyCountry === \"USA\") {\r\n var regEx = /^\\d{5}(-?\\d{4})?$/;\r\n if (regEx.test(input)) {\r\n var str = input.replace(/-/g, \"\");\r\n val = str.length === 5 ? str : str.substr(0,5) + \"-\" + str.substr(5);\r\n valid = true;\r\n } else {\r\n valid = \"Invalid Zip Code\";\r\n }\r\n } else if (data.partyCountry === \"CAN\") {\r\n var regEx = /^[a-z]\\d[a-z] ?\\d[a-z]\\d$/i;\r\n if (regEx.test(input)) {\r\n str = input.replace(/\\s/g, \"\");\r\n val = str.substr(0,3) + \" \" + str.substr(3);\r\n valid = true;\r\n } else {\r\n valid = \"Invalid Postal Code\";\r\n }\r\n } else {\r\n valid = pgFormioGlobal().validateText(input);\r\n }\r\n}\r\n\r\nif (typeof instance != \"undefined\") {\r\n\tinstance.setValue(val);\r\n} else {\r\n data[component.key] = val; \r\n}","maxLength":10},"key":"partyZipcode","logic":[{"name":"Make Optional","trigger":{"type":"javascript","javascript":"result = data.partyCountry !== \"USA\" && data.partyCountry !== \"CAN\";"},"actions":[{"name":"Not Required","type":"property","property":{"label":"Required","value":"validate.required","type":"boolean"},"state":false},{"name":"Set Label","type":"property","property":{"label":"Label","value":"label","type":"string"},"text":"Zip or Postal Code"}]}],"type":"textfield","input":true,"hideOnChildrenHidden":false,"validateOn":"blur"}],"width":4,"offset":0,"push":0,"pull":0,"size":"md","currentWidth":4}],"key":"columns4","type":"columns","input":false,"tableView":false,"path":"columns1","lockKey":true,"source":"5eac84253f388e5b14ba3b29","isNew":true,"hideOnChildrenHidden":false},{"label":"Sponsor Name","tableView":true,"validateOn":"blur","validate":{"required":true,"custom":"valid = pgFormioGlobal().validateText(input);","maxLength":100},"key":"SponsorNameField","type":"textfield","input":true,"hideOnChildrenHidden":false},{"label":"Deposit Amount","mask":false,"spellcheck":true,"tableView":false,"currency":"USD","inputFormat":"plain","redrawOn":"CompanyDataFromPaygov","validate":{"required":true,"custom":"if (_.isNil(input)) {\r\n valid = true;\r\n} else {\r\n if(!_.isNil(data.amountField) && !_.isNil(data.depositAmountField)){\r\n valid = \"Please complete Deposit Amount or Final Payment, not both.\";\r\n } else if (input < parseFloat(data.MinimumPayment)) {\r\n \t valid = \"Your payment is below the allowed amount. Please enter a higher dollar amount.\";\r\n \t } else if (input > parseFloat(data.MaximumPayment)) {\r\n \t valid = \"Your payment is above the maximum allowed amount. Please enter a lower dollar amount.\";\r\n \t } else {\r\n \t valid = true;\r\n \t} \r\n}\r\n"},"key":"depositAmountField","logic":[{"name":"Not Req","trigger":{"type":"javascript","javascript":"result = !_.isNil(data.amountField)"},"actions":[{"name":"Not Req","type":"property","property":{"label":"Required","value":"validate.required","type":"boolean"},"state":false}]}],"type":"currency","input":true,"delimiter":true,"hideOnChildrenHidden":false,"lockKey":true,"source":"5eac84259b53ff041c170ee7","isNew":true},{"label":"Evaluations/Assessment","widget":"html5","tableView":true,"data":{"values":[{"label":"Evaluations","value":"Evaluations"},{"label":"Assessment","value":"Assessment"}]},"validate":{"required":true},"key":"evaluationsAssessment","type":"select","input":true,"searchThreshold":0.3},{"label":"Date of Inspection","placeholder":"MM/DD/YYYY","widget":{"type":"calendar","altInput":true,"allowInput":true,"clickOpens":true,"enableDate":true,"enableTime":false,"mode":"single","noCalendar":false,"format":"MM/dd/yyyy","dateFormat":"MM/dd/yyyy","useLocaleSettings":false,"hourIncrement":1,"minuteIncrement":5,"time_24hr":false,"saveAs":"text","locale":"en"},"tableView":true,"validate":{"required":true},"key":"dateOfInspection","type":"textfield","input":true},{"label":"Final Payment","mask":false,"spellcheck":true,"tableView":false,"currency":"USD","inputFormat":"plain","validate":{"required":true,"custom":"if (_.isNil(input)) {\r\n valid = true;\r\n} else {\r\n if(!_.isNil(data.amountField) && !_.isNil(data.depositAmountField)){\r\n valid = \"Please complete Deposit Amount or Final Payment, not both.\";\r\n } else if (input < parseFloat(data.MinimumPayment)) {\r\n \t valid = \"Your payment is below the allowed amount. Please enter a higher dollar amount.\";\r\n \t } else if (input > parseFloat(data.MaximumPayment)) {\r\n \t valid = \"Your payment is above the maximum allowed amount. Please enter a lower dollar amount.\";\r\n \t } else {\r\n \t valid = true;\r\n \t} \r\n}\r\n"},"key":"amountField","logic":[{"name":"Not Req","trigger":{"type":"javascript","javascript":"result = !_.isNil(data.depositAmountField)"},"actions":[{"name":"Not Req","type":"property","property":{"label":"Required","value":"validate.required","type":"boolean"},"state":false}]}],"type":"currency","input":true,"delimiter":true,"hideOnChildrenHidden":false,"lockKey":true,"source":"5eac84259b53ff041c170ee7","isNew":true},{"label":"RemittanceNetAmount","calculateValue":"var total = \"0.00\"\r\nif(!_.isNil(data.amountField) && _.isNil(data.depositAmountField)){\r\n total = data.amountField;\r\n} else if(_.isNil(data.amountField) && !_.isNil(data.depositAmountField)){\r\n total = data.depositAmountField;\r\n}\r\nvalue = total === \"\" ? \"$0.00\" : value = (\"$\" + total.toFixed(2).replace(/(\\d)(?=(\\d{3})+\\.)/g, \"$1,\").toString());\r\n","calculateServer":true,"key":"RemittanceNetAmount","type":"hidden","tableView":false,"validateOn":"blur","validate":{"required":true,"custom":"if (_.isNil(input)) {\r\n valid = true;\r\n} else {\r\n if (!_.isEmpty(data.minMax)) {\r\n if (input < parseFloat(data.minMax.minAmount)) {\r\n \t valid = \"Your payment is below the allowed amount. Please enter a higher dollar amount.\";\r\n \t } else if (input > parseFloat(data.minMax.maxAmount)) {\r\n \t valid = \"Your payment is above the maximum allowed amount. Please enter a lower dollar amount.\";\r\n \t } else {\r\n \t valid = true;\r\n \t}\r\n\t}\r\n}","step":"any"},"currency":"USD","input":true,"delimiter":true,"hideOnChildrenHidden":false,"lockKey":true,"source":"5eac84259b53ff041c170ee7","isNew":true,"mask":false,"inputFormat":"plain","spellcheck":true},{"label":"Standard Buttons","columns":[{"components":[{"label":"Continue","showValidations":false,"block":true,"customClass":"usa-button","tableView":false,"key":"submit","customConditional":"show = !data.showReassignButton ? true : data.showSubmitButton;","type":"button","input":true,"hideOnChildrenHidden":false}],"width":2,"offset":0,"push":0,"pull":0,"size":"md","currentWidth":2},{"components":[{"label":"View PDF","action":"event","showValidations":false,"block":true,"customClass":"usa-button usa-button--outline","tableView":false,"key":"viewPdf","attributes":{"class":"usa-button--outline"},"type":"button","event":"viewPdf","input":true,"hideOnChildrenHidden":false}],"width":2,"offset":0,"push":0,"pull":0,"size":"md","currentWidth":2},{"components":[{"label":"Save","action":"event","showValidations":false,"block":true,"customClass":"usa-button usa-button--outline","tableView":false,"key":"save","customConditional":"show = data.showSaveButton;","type":"button","event":"save","input":true,"hideOnChildrenHidden":false}],"size":"md","width":2,"offset":0,"push":0,"pull":0,"currentWidth":2},{"components":[{"label":"Reassign","action":"event","showValidations":false,"block":true,"customClass":"usa-button usa-button--outline","tableView":false,"key":"reassign","customConditional":"show = data.showReassignButton;","type":"button","event":"reassign","input":true,"hideOnChildrenHidden":false}],"size":"md","width":2,"offset":0,"push":0,"pull":0,"currentWidth":2},{"components":[],"size":"md","width":2,"offset":0,"push":0,"pull":0,"currentWidth":2},{"components":[],"size":"md","width":2,"offset":0,"push":0,"pull":0,"currentWidth":2}],"key":"standardButtons","type":"columns","input":false,"tableView":false,"lockKey":true,"source":"5eac84253f388e59f3ba3b2c","isNew":true,"hideOnChildrenHidden":false},{"label":"SBU Footer","tableView":true,"form":"5fc7c311de457463ee152fb3","reference":false,"key":"sbuFooter","customConditional":"show = instance.options.pdf;","type":"form","input":true,"lockKey":true,"source":"5eac84259b53ff041c170ee7","isNew":true,"revision":2,"components":[{"label":"HTML","tag":"p style=\"font-size: 11px\"","className":"","attrs":[{"attr":"","value":""}],"content":"
\r\n\r\nThe content of this document may contain Sensitive But Unclassified (SBU) data and/or Controlled Unclassified Information (CUI).\r\n","refreshOnChange":false,"customClass":"","hidden":false,"modalEdit":false,"key":"sbu_label","tags":[],"properties":{},"conditional":{"eq":"","json":""},"customConditional":"","logic":[],"attributes":{},"overlay":{"style":"","page":"","left":"","top":"","width":"","height":""},"type":"htmlelement","input":false,"tableView":false,"placeholder":"","prefix":"","suffix":"","multiple":false,"protected":false,"unique":false,"persistent":false,"clearOnHide":true,"refreshOn":"","redrawOn":"","labelPosition":"top","description":"","errorLabel":"","tooltip":"","hideLabel":false,"tabindex":"","disabled":false,"autofocus":false,"dbIndex":false,"customDefaultValue":"","calculateValue":"","calculateServer":false,"validateOn":"change","validate":{"required":false,"custom":"","customPrivate":false,"strictDateValidation":false,"multiple":false,"unique":false},"allowCalculateOverride":false,"encrypted":false,"showCharCount":false,"showWordCount":false,"allowMultipleMasks":false,"id":"e56fbt3"},{"label":"HiddenTestField","calculateValue":"value = \"\";","calculateServer":true,"key":"hiddenTestField","type":"hidden","input":true,"tableView":false,"placeholder":"","prefix":"","customClass":"","suffix":"","multiple":false,"protected":false,"unique":false,"persistent":true,"hidden":false,"clearOnHide":true,"refreshOn":"","redrawOn":"","modalEdit":false,"labelPosition":"top","description":"","errorLabel":"","tooltip":"","hideLabel":false,"tabindex":"","disabled":false,"autofocus":false,"dbIndex":false,"customDefaultValue":"","widget":{"type":"input"},"attributes":{},"validateOn":"change","validate":{"required":false,"custom":"","customPrivate":false,"strictDateValidation":false,"multiple":false,"unique":false},"conditional":{"eq":""},"overlay":{"style":"","left":"","top":"","width":"","height":""},"allowCalculateOverride":false,"encrypted":false,"showCharCount":false,"showWordCount":false,"properties":{},"allowMultipleMasks":false,"inputType":"hidden","id":"em1zpzb"}]}],"revisions":"original","_vid":2,"_vnote":"(Source version:10, User:cflorea, Build:7154277)","_vuser":"admin","title":"FAA_Payments_v1","name":"faaPaymentsV1","path":"faapaymentsv1","display":"form","controller":"","properties":{},"settings":{},"access":[{"roles":["5f9ae327f1b65926a66350f3","5f9ae327f1b65921a76350f4"],"type":"read_all"},{"roles":["5f9ae327f1b65926a66350f3"],"type":"update_all"}],"submissionAccess":[{"roles":["5f9ae327f1b65926a66350f3","5f9ae327f1b65921a76350f4"],"type":"create_all"}],"project":"5f9ae327f1b65987a86350f2","created":"2022-02-07T13:54:50.976Z","modified":"2023-08-28T12:35:43.234Z","_rid":"620124aaddff896271086418","config":{"PAYGOV_ENV":"https://www.pay.gov","STATIC_ASSETS_ENV":"https://www.pay.gov/public/static-assets/paygov","COMPANY_PROFILE":"public/api/v1/companyprofile","MIN_MAX_AMOUNT":"public/api/v1/minmaxamount","GET_COUNTRIES":"public/api/v1/getCountries","GET_STATES":"public/api/v1/getStates"},"module":"{options:{form:{evalContext:{pgFormioGlobal:function(){function o(a,e,t,o){if(a=a&&a.replace(e,\"\")){if(t)return t;t=(o||\"Input\")+\" contains invalid \";e=a.replace(/[\\x00-\\x20\\x7F]/g,\"\");return 1===e.length?t+=e+\" \":1e.length&&((o=a.replace(/[^ ]/g,\"\")).length?a.length===e.length+o.length?t+=e.length?\"and space \":\"space \":t+=\"space and non-printable \":t+=e.length?\"and non-printable \":\"non-printable \"),t+\"character\"+(1parseFloat(e.maxAmount))return\"Your payment is above the maximum allowed amount. Please enter a lower dollar amount.\"}return!0}}}}}}}"}