{"version":3,"sources":["Apfco.js","file-upload.js","file-upload.min.js","IFormFile.js","ViewHomeEntryForm.js","ViewSharedLayoutPrimary.js"],"names":["Apfco","[object Object]","key","value","url","window","location","href","hash","re","RegExp","test","replace","split","separator","indexOf","milliseconds","Promise","resolve","setTimeout","inputString","findString","replaceString","$","document","ready","wrap","prepend","each","this","data","addClass","text","parent","after","change","e","uploadStatus","val","pop","html","fadeIn","show","hide","t","a","i","IFormFile","target","thisObj","elLabelWrapper","parentElement","elLabelSpan","getElementsByTagName","classList","add","contains","style","lineHeight","offsetHeight","toString","on","filename","files","name","length","substring","innerHTML","console","log","IFormFileList","elementsByClass","getElementsByClassName","push","item","ViewHomeEntryForm","GLOBALROOTURL","sleep","ViewHomeEntryFormList","body","ViewSharedLayoutPrimary","disableFormButtonsOnSubmit","wrapTrademarkSymbolsWithSuperscriptTag","find","submit","event","attr","prop","currentForm","click","type","insertBefore","children","first","regexp","contents","filter","nodeType","nodeValue","replaceWith","ViewSharedLayoutPrimaryList"],"mappings":"AAKA,MAAAA,MAEAC,yBAAAC,EAAAC,EAAAC,GACAA,IAAAA,EAAAC,OAAAC,SAAAC,MACA,IACAC,EADAC,EAAA,IAAAC,OAAA,SAAAR,EAAA,kBAAA,MAGA,GAAAO,EAAAE,KAAAP,GACA,OAAA,MAAAD,EACAC,EAAAQ,QAAAH,EAAA,KAAAP,EAAA,IAAAC,EAAA,SAEAK,EAAAJ,EAAAS,MAAA,KACAT,EAAAI,EAAA,GAAAI,QAAAH,EAAA,QAAAG,QAAA,UAAA,SACA,IAAAJ,EAAA,IAAA,OAAAA,EAAA,KACAJ,GAAA,IAAAI,EAAA,IACAJ,GAIA,GAAA,MAAAD,EAAA,CACA,IAAAW,GAAA,IAAAV,EAAAW,QAAA,KAAA,IAAA,IAKA,OAJAP,EAAAJ,EAAAS,MAAA,KACAT,EAAAI,EAAA,GAAAM,EAAAZ,EAAA,IAAAC,OACA,IAAAK,EAAA,IAAA,OAAAA,EAAA,KACAJ,GA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F,4BAAA,GACA7E,GAAA,WACA,IAAAgD,EAAA/C,SAAAgD,uBAAA,iBACA,IAAA,IAAA1B,EAAA,EAAAA,EAAAyB,EAAAN,OAAAnB,IACAsD,4BAAA3B,KAAA,IAAAO,wBAAAT,EAAAG,KAAA5B","file":"site.min.js","sourcesContent":["\r\n\r\n//NOTE: The layout should have the constant GLOBALROOTURL defined - Used for transferring data from server-side to client side via APIs\r\n\r\n\r\nclass Apfco {\r\n\r\n static updateQueryString(key, value, url) { //Update query string parameters - Taken from here: https://stackoverflow.com/questions/5999118/add-or-update-query-string-parameter\r\n if (!url) url = window.location.href;\r\n var re = new RegExp(\"([?&])\" + key + \"=.*?(&|#|$)(.*)\", \"gi\"),\r\n hash;\r\n\r\n if (re.test(url)) {\r\n if (typeof value !== 'undefined' && value !== null)\r\n return url.replace(re, '$1' + key + \"=\" + value + '$2$3');\r\n else {\r\n hash = url.split('#');\r\n url = hash[0].replace(re, '$1$3').replace(/(&|\\?)$/, '');\r\n if (typeof hash[1] !== 'undefined' && hash[1] !== null)\r\n url += '#' + hash[1];\r\n return url;\r\n }\r\n }\r\n else {\r\n if (typeof value !== 'undefined' && value !== null) {\r\n var separator = url.indexOf('?') !== -1 ? '&' : '?';\r\n hash = url.split('#');\r\n url = hash[0] + separator + key + '=' + value;\r\n if (typeof hash[1] !== 'undefined' && hash[1] !== null)\r\n url += '#' + hash[1];\r\n return url;\r\n }\r\n else\r\n return url;\r\n }\r\n }\r\n\r\n static stripQueryStringAndHashFromUrl(url) { //Example, changes http://localhost:61222/?test=123#NavContent to http://localhost:61222/ - From https://stackoverflow.com/questions/2540969/remove-querystring-from-url\r\n return url.split(/[?#]/)[0];\r\n }\r\n\r\n static sleep(milliseconds) { //Use in async functions to insert a delay before continuing processing. Example: await Apfco.Sleep(2000);\r\n return new Promise(function (resolve) {\r\n setTimeout(resolve, milliseconds);\r\n });\r\n }\r\n\r\n static replaceAll(inputString, findString, replaceString) { //Replace all instances of a value in a string - native string.replace() only works on first instance\r\n let inputStringRegEscaped = inputString.replace(/([.*+?^=!:${}()|\\[\\]\\/\\\\])/g, \"\\\\$1\");\r\n return inputString.replace(new RegExp(findString, 'g'), replaceString);\r\n }\r\n\r\n}","$(document).ready(function () {\r\n $('input[type=file]').wrap(\"
\");\r\n $('.file-upload').prepend(\"Upload Receipt>\");\r\n $.each($('input[type=file]'), function () {\r\n $(this).data('uploadStatus', $('').addClass('file-upload-status').text(''));\r\n $(this).parent().after($(this).data('uploadStatus'));\r\n\r\n $(this).change(function (e) {\r\n var uploadStatus = $(this).data('uploadStatus');\r\n\r\n if ($(this).val()) {\r\n var value = $(this).val().split('\\\\').pop();\r\n\r\n $(uploadStatus).html(value);\r\n\r\n if (e)\r\n $(uploadStatus).fadeIn(500);\r\n else\r\n $(uploadStatus).show();\r\n }\r\n else if (uploadStatus && uploadStatus.parent()) {\r\n $(uploadStatus).html(\"\");\r\n $(uploadStatus).hide();\r\n }\r\n });\r\n\r\n $(this).change();\r\n });\r\n});","$(document).ready((function(){$.each($(\"input[type=file]\"),(function(){$(this).data(\"uploadStatus\",$(\"\").addClass(\"file-upload-status\").text(\"\")),$(this).parent().after($(this).data(\"uploadStatus\")),$(this).change((function(t){var a=$(this).data(\"uploadStatus\");if($(this).val()){var i=$(this).val().split(\"\\\\\").pop();$(a).html(i),t?$(a).fadeIn(500):$(a).show()}else a&&a.parent()&&($(a).html(\"\"),$(a).hide())})),$(this).change()}))}));\r\n//# sourceMappingURL=file-upload.min.js.map\r\n","class IFormFile {\r\n\r\n //Variables\r\n target;\r\n elLabelWrapper;\r\n elLabelSpan;\r\n\r\n //Methods\r\n constructor(target) {\r\n let thisObj = this;\r\n\r\n //Assign elements\r\n this.target = target;\r\n this.elLabelWrapper = target.parentElement;\r\n this.elLabelSpan = this.elLabelWrapper.getElementsByTagName('span')[0];\r\n\r\n\r\n //Add classes and adjust styles\r\n this.elLabelWrapper.classList.add('IFormFileWrapper');\r\n if (this.target.classList.contains('input-validation-error')) { //ASP.Net MVC - If a server-side validation error class was found on the