{"version":3,"sources":["Apfco.js","HttpPostedFileBase.js","IFormFile.js","UnqualifiedReasonAutoUnqualify.js","UnqualifiedReasonReviewer.js","ViewFulfillmentFulfillmentForm.js","ViewReviewReviewInvoice.js","ViewReviewReviewSubmission.js","ViewSharedLayoutPrimary.js"],"names":["Apfco","ConvertNodeListToArray","inputNodeList","elementList","i","length","node","nodeType","Node","ELEMENT_NODE","push","UpdateQueryString","key","value","url","window","location","href","hash","re","RegExp","test","replace","split","separator","indexOf","StripQueryStringAndHashFromUrl","Sleep","milliseconds","Promise","resolve","setTimeout","ReplaceAll","inputString","findString","replaceString","SetDisableFormButtonsOnSubmit","target","$","find","each","this","submit","event","attr","prop","currentForm","click","type","name","val","insertBefore","children","first","HttpPostedFileBase","targetInputFile","thisObj","elLabelWrapper","parentElement","elLabelSpan","getElementsByTagName","classList","add","contains","style","lineHeight","offsetHeight","toString","on","filename","files","pop","substring","e","innerHTML","HttpPostedFileBaseList","HttpPostedFileBasesByClass","document","getElementsByClassName","item","IFormFile","console","log","IFormFileList","elementsByClass","UnqualifiedReasonAutoUnqualify","targetHiddenInput","querySelectorAll","targetButton","RefreshDisplay","prototype","className","UnqualifiedReasonAutoUnqualifyList","UnqualifiedReasonAutoUnqualifysByClass","UnqualifiedReasonReviewer","UnqualifiedReasonReviewerList","UnqualifiedReasonReviewersByClass","ViewFulfillmentFulfillmentForm","inputList","initializeLinkHtmlElements","initializeAssignEvents","ImageUpload","getElementById","onchange","id","file","data","FormData","append","uploadImage","onclick","css","IMgtype","show","ajax","xhr","XMLHttpRequest","addClass","upload","addEventListener","evt","lengthComputable","percentComplete","loaded","total","GlobalPromoRootUrl","processData","contentType","success","addImageToTable","images","removeClass","hide","remove","error","ajaxOptions","thrownError","alert","responseText","table","rows","deleteRow","newRow","insertRow","tr","createElement","th","setAttribute","innerText","td1","imageName","td2","button","deleteImage","appendChild","tableRow","Id","td","updateRows","dataType","cells","newStr","firstChild","getAttribute","String","ViewFulfillmentFulfillmentFormList","ViewReviewReviewInvoice","initializeSplitTableRows","refreshDisplay","initializeFormChangeDetection","initializeDisableFormInput","Form","FormFieldsChanged","AllowEditReview","AllowEditReviewValue","SubPendingUpdatesMade","SubBtnSplitAdd","SubBtnUpdate","ReviewInvoices","ReviewInvoice","addSplit","change","setFormFieldsChanged","elements","disabled","display","refreshDisplaySplits","ajaxGetDistributorLocationList","inputZip","reject","GlobalRootUrl","JSON","parse","lastEnabledIndex","IsEnabled","newEnabledIndex","parent","Split","BreakPoint","UserSort","FormType","Indicia","Insurance","Signature","ClientId","BtnRemove","ReviewInvoiceLabel","ReviewInvoiceCheck","selectedOptions","splitRefreshDisplay","selectGroup","ViewReviewReviewInvoiceList","__awaiter","thisArg","_arguments","P","generator","fulfilled","step","next","rejected","result","done","then","apply","__generator","body","f","y","t","g","_","label","sent","trys","ops","verb","throw","return","Symbol","iterator","n","v","op","TypeError","call","ViewReviewReviewSubmission","updateExistingPromoList","Promo","DisplayExistingPromo","PromoName","ReportingSalesNames","ClientName","SubBtnProcess","SubBtnHold","SubBtnReturn","SubBtnHeld","ReviewComment","SubBtnBack","ReviewNextAvailableSample","onkeyup","ajaxGetPromoList","promo","setToPrevious","existingPromoValue","formatted","_a","placeholder","trim","productModelJSON","part_number","category","description","rebate_value","ViewReviewReviewSubmissionList","LayoutPrimary","disableFormButtonsOnSubmit","wrapTrademarkSymbolsWithSuperscriptTag","regexp","contents","filter","nodeValue","replaceWith","trigger","blur","focus","not","DataTable","paging","info","searching","aaSorting","tooltip","layoutPrimaryList"],"mappings":"AAEA,IAAAA,OACA,SAAAA,GAeAA,EAAAC,uBAbA,SAAAC,GACA,IAAAC,EAAA,GACA,GAAAD,EACA,IAAA,IAAAE,EAAA,EAAAA,EAAAF,EAAAG,OAAAD,IAAA,CACA,IAAAE,EAAAJ,EAAAE,GAEAE,EAAAC,UAAAC,KAAAC,cACAN,EAAAO,KAAAJ,EAEA,CAEA,OAAAH,CACA,EA+BAH,EAAAW,kBA5BA,SAAAC,EAAAC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ACA,IACAhP,EAAA,yBAAAiP,WAAAC,QAAA,WACA,OAAA,IAAA/O,KAAAlC,QACA,IAAAmR,aAAA,WACA,OAAAjP,KAAAgP,UAAAnQ,QAAA,SAAA,gBACA,GACA,EACA6P,CACA,CA5FA,GA8FAkB,kBAAA,GACA/P,GAAA,WAEA,IADA,IAAA8C,EAAAP,SAAAC,uBAAA,iBACA1E,EAAA,EAAAA,EAAAgF,EAAA/E,OAAAD,IACAiS,kBAAA3R,KAAA,IAAAyQ,cAAA/L,EAAAL,KAAA3E,IAGA","file":"site.min.js","sourcesContent":["/// \n//Helper namespace containing several utility functions\nvar Apfco;\n(function (Apfco) {\n //Converts values returned by document.getElementsByClassName() - Taken from here: https://stackoverflow.com/questions/12686927/typescript-casting-htmlelement\n function ConvertNodeListToArray(inputNodeList) {\n var elementList = [];\n if (inputNodeList) {\n for (var i = 0; i < inputNodeList.length; i++) {\n var node = inputNodeList[i];\n // Make sure it's really an Element\n if (node.nodeType == Node.ELEMENT_NODE) {\n elementList.push(node);\n }\n }\n }\n return elementList;\n }\n Apfco.ConvertNodeListToArray = ConvertNodeListToArray;\n //Update query string parameters - Taken from here: https://stackoverflow.com/questions/5999118/add-or-update-query-string-parameter\n function UpdateQueryString(key, value, url) {\n if (!url)\n url = window.location.href;\n var re = new RegExp(\"([?&])\" + key + \"=.*?(&|#|$)(.*)\", \"gi\"), hash;\n if (re.test(url)) {\n if (typeof value !== 'undefined' && value !== null)\n return url.replace(re, '$1' + key + \"=\" + value + '$2$3');\n else {\n hash = url.split('#');\n url = hash[0].replace(re, '$1$3').replace(/(&|\\?)$/, '');\n if (typeof hash[1] !== 'undefined' && hash[1] !== null)\n url += '#' + hash[1];\n return url;\n }\n }\n else {\n if (typeof value !== 'undefined' && value !== null) {\n var separator = url.indexOf('?') !== -1 ? '&' : '?';\n hash = url.split('#');\n url = hash[0] + separator + key + '=' + value;\n if (typeof hash[1] !== 'undefined' && hash[1] !== null)\n url += '#' + hash[1];\n return url;\n }\n else\n return url;\n }\n }\n Apfco.UpdateQueryString = UpdateQueryString;\n //Example, changes http://localhost:61222/?test=123#NavContent to http://localhost:61222/ - From https://stackoverflow.com/questions/2540969/remove-querystring-from-url\n function StripQueryStringAndHashFromUrl(url) {\n return url.split(/[?#]/)[0];\n }\n Apfco.StripQueryStringAndHashFromUrl = StripQueryStringAndHashFromUrl;\n //Use in async functions to insert a delay before continuing processing. Example: await Apfco.Sleep(2000);\n function Sleep(milliseconds) {\n return new Promise(function (resolve) {\n setTimeout(resolve, milliseconds);\n });\n }\n Apfco.Sleep = Sleep;\n //Replace all instances of a value in a string - native string.replace() only works on first instance\n function ReplaceAll(inputString, findString, replaceString) {\n var inputStringRegEscaped = inputString.replace(/([.*+?^=!:${}()|\\[\\]\\/\\\\])/g, \"\\\\$1\");\n return inputString.replace(new RegExp(findString, 'g'), replaceString);\n }\n Apfco.ReplaceAll = ReplaceAll;\n //Use jQuery to disable all form buttons on the page when clicked on - except those marked with apfDontDisableOnSubmit\n //Combined into method as this code needs to be used on some of the review iframe views\n function SetDisableFormButtonsOnSubmit(target) {\n $(target).find('form').each(function () {\n $(this).submit(function (event) {\n $(this).find(':input[type=submit], :button').each(function () {\n if (!$(this).attr('apfDontDisableOnSubmit')) { //Don't disable if the apfDontDisableOnSubmit=\"true\" attribute exists on the button\n $(this).prop('disabled', true);\n }\n });\n });\n });\n $(target).find('form').each(function () {\n var currentForm = this; //Get the current form\n $(this).find(':input[type=submit], :button').each(function () {\n if (!$(this).attr('apfDontDisableOnSubmit')) { //Don't disable if the apfDontDisableOnSubmit=\"true\" attribute exists on the button\n $(this).click(function (event) {\n $('').attr({\n type: 'hidden',\n name: $(this).attr('name'),\n value: $(this).val()\n }).insertBefore($(currentForm).children().first()); //Append to the start of the current form, instead of next to the button itself or the end of the form. Otherwise it may mess with any last-child CSS selectors\n });\n }\n });\n });\n }\n Apfco.SetDisableFormButtonsOnSubmit = SetDisableFormButtonsOnSubmit;\n})(Apfco || (Apfco = {}));\n//# sourceMappingURL=Apfco.js.map","/// \n//Used in the HttpPostedFileBase editor template - scripts those inputs to show the name of the selected file\nvar HttpPostedFileBase = /** @class */ (function () {\n //Methods\n function HttpPostedFileBase(targetInputFile) {\n var thisObj = this;\n //Assign elements\n this.targetInputFile = targetInputFile;\n this.elLabelWrapper = targetInputFile.parentElement;\n this.elLabelSpan = this.elLabelWrapper.getElementsByTagName('span')[0];\n //All class to adjust styles\n this.elLabelWrapper.classList.add('HttpPostedFileBaseWrapper');\n if (this.targetInputFile.classList.contains('input-validation-error')) { //ASP.Net MVC - If a server-side validation error class was found on the , apply it to the wrapper\n this.elLabelWrapper.classList.add('input-validation-error');\n }\n this.elLabelSpan.style.lineHeight = this.elLabelWrapper.offsetHeight.toString() + 'px'; //Set the line height of the label to the rendered height of the select to vertically center the content inside\n //Assign events\n $(thisObj.target).on('change', function () {\n //Get the selected filename\n var filename = '';\n try {\n //Attempt to get the filename from available variables\n if (this.files) { //Attempt to use the files array first (should work in most newer browsers)\n filename = this.files[0].name;\n }\n else { //Fallback for IE9 - have to strip off full directory path\n filename = this.value.split(/(\\\\|\\/)/g).pop();\n }\n //Truncate the filename if necessary\n if (filename.length > 24)\n filename = filename.substring(0, 24) + '...';\n }\n catch (e) { //Worst-case fallback - just state that the file was selected\n filename = 'File Selected';\n }\n //Finally apply the formatted filename to the label\n thisObj.elLabelSpan.innerHTML = filename;\n });\n console.log('IFormFile initialized');\n }\n return IFormFile;\n}());\n//Instantiate on page load if matching HTML is found\n//let IFormFileList = [];\nvar IFormFileList = [];\n$(function () {\n var elementsByClass = document.getElementsByClassName(\"IFormFile\");\n for (var i = 0; i < elementsByClass.length; i++) {\n //IFormFileList.push(new IFormFile(elementsByClass.item(i)));\n IFormFileList.push(new IFormFile(elementsByClass.item(i)));\n }\n ;\n});\n//# sourceMappingURL=IFormFile.js.map","//Used in the UnqualifiedReasonAutoUnqualify editor template\nvar UnqualifiedReasonAutoUnqualify = /** @class */ (function () {\n //Methods\n function UnqualifiedReasonAutoUnqualify(target) {\n var thisObj = this;\n //Assign elements\n this.target = target;\n this.targetHiddenInput = target.querySelectorAll(\"input[type=hidden]\")[0];\n this.targetButton = target.querySelectorAll(\"input[type=button]\")[0];\n //Assign events\n $(this.targetButton).on('click', function () {\n //Toggle the hidden input value\n if (thisObj.targetHiddenInput.value === \"True\") {\n thisObj.targetHiddenInput.value = \"False\";\n }\n else {\n thisObj.targetHiddenInput.value = \"True\";\n }\n thisObj.RefreshDisplay();\n });\n //Call the initial refresh\n this.RefreshDisplay();\n }\n UnqualifiedReasonAutoUnqualify.prototype.RefreshDisplay = function () {\n if (this.targetHiddenInput.value === \"True\") {\n this.targetButton.value = \"Overridden\";\n this.targetButton.className = \"btn btn-success btn-sm\";\n }\n else {\n this.targetButton.value = \"Not Overridden\";\n this.targetButton.className = \"btn btn-danger btn-sm\";\n }\n };\n return UnqualifiedReasonAutoUnqualify;\n}());\n//On page load, take all elements with the classname UnqualifiedReasonAutoUnqualify and create objects for them\nvar UnqualifiedReasonAutoUnqualifyList = [];\n$(function () {\n var UnqualifiedReasonAutoUnqualifysByClass = document.getElementsByClassName(\"UnqualifiedReasonAutoUnqualify\");\n for (var i = 0; i < UnqualifiedReasonAutoUnqualifysByClass.length; i++) {\n UnqualifiedReasonAutoUnqualifyList.push(new UnqualifiedReasonAutoUnqualify(UnqualifiedReasonAutoUnqualifysByClass.item(i)));\n }\n ;\n});\n//# sourceMappingURL=UnqualifiedReasonAutoUnqualify.js.map","//Used in the UnqualifiedReasonReviewer editor template\nvar UnqualifiedReasonReviewer = /** @class */ (function () {\n //Methods\n function UnqualifiedReasonReviewer(target) {\n var thisObj = this;\n //Assign elements\n this.target = target;\n this.targetHiddenInput = target.querySelectorAll(\"input[type=hidden]\")[0];\n this.targetButton = target.querySelectorAll(\"input[type=button]\")[0];\n //Assign events\n $(this.targetButton).on('click', function () {\n //Toggle the hidden input value\n if (thisObj.targetHiddenInput.value === \"True\") {\n thisObj.targetHiddenInput.value = \"False\";\n }\n else {\n thisObj.targetHiddenInput.value = \"True\";\n }\n thisObj.RefreshDisplay();\n });\n //Call the initial refresh\n this.RefreshDisplay();\n }\n UnqualifiedReasonReviewer.prototype.RefreshDisplay = function () {\n if (this.targetHiddenInput.value === \"True\") {\n this.targetButton.value = \"Qualified\";\n this.targetButton.className = \"btn btn-success btn-sm\";\n }\n else {\n this.targetButton.value = \"Unqualified\";\n this.targetButton.className = \"btn btn-danger btn-sm\";\n }\n };\n return UnqualifiedReasonReviewer;\n}());\n//On page load, take all elements with the classname UnqualifiedReasonReviewer and create objects for them\nvar UnqualifiedReasonReviewerList = [];\n$(function () {\n var UnqualifiedReasonReviewersByClass = document.getElementsByClassName(\"UnqualifiedReasonReviewer\");\n for (var i = 0; i < UnqualifiedReasonReviewersByClass.length; i++) {\n UnqualifiedReasonReviewerList.push(new UnqualifiedReasonReviewer(UnqualifiedReasonReviewersByClass.item(i)));\n }\n ;\n});\n//# sourceMappingURL=UnqualifiedReasonReviewer.js.map","var ViewFulfillmentFulfillmentForm = /** @class */ (function () {\n //Methods\n function ViewFulfillmentFulfillmentForm(target) {\n var thisObj = this;\n //Assign elements\n this.target = target;\n this.inputList = Apfco.ConvertNodeListToArray(this.target.querySelectorAll('input'));\n //console.log(this.inputList);\n //console.log('Root URL: ' + GlobalRootUrl);\n //console.log('Promo Root URL: ' + GlobalPromoRootUrl);\n this.initializeLinkHtmlElements();\n this.initializeAssignEvents();\n }\n ViewFulfillmentFulfillmentForm.prototype.initializeLinkHtmlElements = function () {\n console.log('Linking elements..');\n this.ImageUpload = document.getElementById(\"Receipt\");\n };\n ViewFulfillmentFulfillmentForm.prototype.initializeAssignEvents = function () {\n console.log('Assigning events..');\n var thisObj = this;\n this.ImageUpload.onchange = function (e) {\n var id = e.target.id;\n var file = document.getElementById(id).files[0];\n var data = new FormData();\n data.append('image', file);\n data.append('type', id);\n //Upload image\n var bool = thisObj.uploadImage(data, file, id);\n };\n this.ImageUpload.onclick = function (e) {\n var id = e.target.id;\n $(this).val(\"\");\n $('#Image_' + id + '_Progress').css(\"width\", \"0%\");\n };\n };\n ViewFulfillmentFulfillmentForm.prototype.uploadImage = function (data, file, IMgtype) {\n console.log('Upload image..');\n var thisObj = this;\n //HTTP request to controller\n $('#Receipt').prop('disabled', true);\n $('#formSubmit').prop('disabled', true);\n $('.loadingIcon').css('display', 'inline-block');\n $('.progress').show();\n var type = IMgtype;\n $.ajax({\n xhr: function () {\n var xhr = new XMLHttpRequest();\n $(\"#Image_\" + type + \"_Progress\").addClass(\"progress-bar-animated\");\n // Upload progress\n xhr.upload.addEventListener(\"progress\", function (evt) {\n if (evt.lengthComputable) {\n var percentComplete = (evt.loaded / evt.total * 100) / 1.5;\n $(\"#Image_\" + type + \"_Progress\").css(\"width\", percentComplete + \"%\");\n }\n }, false);\n // Download progress\n xhr.addEventListener(\"progress\", function (evt) {\n if (evt.lengthComputable) {\n var percentComplete = (evt.loaded / evt.total * 100);\n // Do something with download progress\n $(\"#Image_\" + type + \"_Progress\").css(\"width\", percentComplete + \"%\");\n }\n }, false);\n return xhr;\n },\n type: 'POST',\n // make sure you respect the same origin policy with this url:\n // http://en.wikipedia.org/wiki/Same_origin_policy\n url: GlobalPromoRootUrl + '/Image/UploadFile',\n data: data,\n processData: false,\n contentType: false,\n success: function (data) {\n //add Image to Table\n thisObj.addImageToTable(data.images, type);\n $('#Receipt').prop('disabled', false);\n $('#formSubmit').prop('disabled', false);\n $(\"#Image_\" + type + \"_Progress\").css(\"width\", \"100%\");\n $(\"#Image_\" + type + \"_Progress\").removeClass(\"progress-bar-animated\");\n $('.loadingIcon').hide(1000);\n $('.alert').remove();\n $('.progress').hide();\n },\n error: function (xhr, ajaxOptions, thrownError) {\n $('#Receipt').prop('disabled', false);\n $('#formSubmit').prop('disabled', false);\n $(\"#Image_\" + type + \"_Progress\").css(\"width\", \"100%\");\n $(\"#Image_\" + type + \"_Progress\").removeClass(\"progress-bar-animated\");\n $('.loadingIcon').hide(1000);\n alert(xhr.responseText);\n $('.progress').hide();\n }\n });\n };\n ViewFulfillmentFulfillmentForm.prototype.addImageToTable = function (data, type) {\n console.log('Add image to table..');\n var thisObj = this;\n var table = document.getElementById('Image_' + type + '_Table').getElementsByTagName('tbody')[0];\n //if there are no more rows insert default row\n if (table.rows.length === 1) { //1 if using DataTables, 0 otherwise\n table.deleteRow(0);\n }\n for (var i = 0; i < data.length; i++) {\n //add row to image table\n table = document.getElementById('Image_' + type + '_Table').getElementsByTagName('tbody')[0];\n var newRow = table.insertRow(table.rows.length);\n //newRow.outerHTML = '' + table.rows.length + '' + data[i].imageName + '';\n var id = data[i].id;\n var tr = document.createElement('tr');\n tr.className = 'imageTableRow';\n var th = document.createElement('th');\n th.setAttribute('scope', 'row');\n th.innerText = table.rows.length.toString();\n var td1 = document.createElement('td');\n td1.innerText = data[i].imageName;\n td1.className = 'w-100';\n var td2 = document.createElement('td');\n var button = document.createElement('button');\n button.setAttribute('type', 'button');\n button.className = 'btn btn-sm btn-danger';\n button.innerText = 'Remove';\n console.log(data[i].id);\n button.onclick = function () { thisObj.deleteImage(table.rows.length, id, type); };\n td2.appendChild(button);\n tr.appendChild(th);\n tr.appendChild(td1);\n tr.appendChild(td2);\n newRow.appendChild(tr);\n }\n };\n ViewFulfillmentFulfillmentForm.prototype.deleteImage = function (tableRow, Id, type) {\n console.log('Delete image..');\n var table = document.getElementById('Image_' + type + '_Table').getElementsByTagName('tbody')[0];\n //initially delete the row\n table.deleteRow((tableRow - 1));\n //if there are no more rows insert default row\n if (table.rows.length === 0) {\n //if Datatable then add empty row, else do nothing\n var tr = document.createElement('tr');\n tr.className = 'odd';\n var td = document.createElement('td');\n td.innerText = 'No data available in table';\n td.className = 'dataTables_empty';\n td.setAttribute('colspan', '0');\n td.setAttribute('valign', 'top');\n tr.appendChild(td);\n table.appendChild(tr);\n }\n else {\n //Update existing rows with correct ids and attributes\n this.updateRows(type);\n }\n //make a request to remove that image from image uploads\n $.ajax({\n type: 'GET',\n url: GlobalPromoRootUrl + '/Image/UploadDelete',\n contentType: \"application/json; charset=utf-8\",\n dataType: \"json\",\n data: {\n \"id\": Id\n },\n success: function (data) {\n //image was removed\n },\n error: function (xhr, ajaxOptions, thrownError) {\n //Image was not found\n alert(thrownError);\n }\n });\n };\n ViewFulfillmentFulfillmentForm.prototype.updateRows = function (type) {\n var thisObj = this;\n var table = document.getElementById('Image_' + type + '_Table').getElementsByTagName('tbody')[0];\n //Loops through existing rows and changes id and onlick function attributes\n for (var i = 0; i < table.rows.length; i++) {\n console.log(table.rows);\n //Replace table id with correct number\n table.rows[i].cells[0].innerHTML = (i + 1).toString();\n //Grab the image id that was an attribute in the delete method.\n var str = table.rows[i].cells[2].firstChild;\n var newStr = str.getAttribute('onclick').toString();\n var id = String(newStr).split(',')['1']; // looks like \"id)\" EX: \"213765)\"\n //put the image id just grabbed into the inner html\n //table.rows[i].cells[2].innerHTML = '';\n var button = document.createElement('button');\n button.setAttribute('type', 'button');\n button.className = 'btn btn-sm btn-danger';\n button.innerText = 'Remove';\n button.onclick = function () { thisObj.deleteImage(i + 1, id, type); };\n table.rows[i].cells[2].appendChild(button);\n }\n };\n return ViewFulfillmentFulfillmentForm;\n}());\n//On page load, take all found elements with the classname and create objects for them to initialize\nvar ViewFulfillmentFulfillmentFormList = [];\n$(function () {\n var elementsByClass = document.getElementsByClassName(\"cFulfillment aFulfillmentForm\");\n for (var i = 0; i < elementsByClass.length; i++) {\n ViewFulfillmentFulfillmentFormList.push(new ViewFulfillmentFulfillmentForm(elementsByClass.item(i)));\n }\n ;\n //if (document.body.classList.contains('cSubmission') && document.body.classList.contains('aSubmissionForm')) {\n // let elementsByClass = document.getElementsByClassName(\"viewWrapper\");\n // for (let i = 0; i < elementsByClass.length; i++) {\n // ViewSubmissionSubmissionForm.push(new ViewSubmissionSubmissionForm(elementsByClass.item(i)));\n // };\n //}\n});\n//# sourceMappingURL=ViewFulfillmentFulfillmentForm.js.map","var ViewReviewReviewInvoice = /** @class */ (function () {\n //Methods\n function ViewReviewReviewInvoice(target) {\n var thisObj = this;\n console.log('ViewReviewReviewInvoice script v10');\n //Assign elements\n this.target = target;\n //Assign the form button onclick disable code - have to re-do this since this page doesn't use the main layout\n console.log('Assigning form button click disable..');\n Apfco.SetDisableFormButtonsOnSubmit(this.target);\n //Call various initialization methods\n this.initializeLinkHtmlElements();\n this.initializeSplitTableRows();\n this.refreshDisplay();\n this.initializeAssignEvents();\n this.initializeFormChangeDetection();\n this.initializeDisableFormInput();\n console.log('Page script load complete.');\n }\n ViewReviewReviewInvoice.prototype.initializeLinkHtmlElements = function () {\n console.log('Linking elements..');\n this.Form = this.target.getElementsByTagName(\"Form\")[0];\n this.FormFieldsChanged = document.getElementById(\"FormFieldsChanged\");\n this.AllowEditReview = document.getElementById(\"AllowEditReview\");\n this.AllowEditReviewValue = (this.AllowEditReview.value == 'True');\n this.SubPendingUpdatesMade = this.target.getElementsByClassName('SubPendingUpdatesMade')[0];\n this.SubBtnSplitAdd = this.target.getElementsByClassName('SubBtnSplitAdd')[0];\n this.SubBtnUpdate = this.target.getElementsByClassName('SubBtnUpdate')[0];\n };\n ViewReviewReviewInvoice.prototype.initializeSplitTableRows = function () {\n console.log('Building list of line items table rows..');\n this.ReviewInvoices = [];\n var elementsByClass = document.getElementsByClassName(\"ReviewSampleTable\");\n for (var i = 0; i < elementsByClass.length; i++) {\n this.ReviewInvoices.push(new ReviewInvoice(elementsByClass.item(i), this));\n }\n ;\n };\n ViewReviewReviewInvoice.prototype.initializeAssignEvents = function () {\n console.log('Assigning events..');\n var thisObj = this;\n //this.ExistingDistributorLocationZip.onkeyup = function () {\n // thisObj.updateExistingDistributorLocationList();\n //};\n //for (var i = 0; i < this.AddNewDistributorLocationRadioGroup.length; i++) {\n // this.AddNewDistributorLocationRadioGroup[i].onchange = function () {\n // thisObj.refreshDisplay();\n // };\n //}\n this.SubBtnSplitAdd.onclick = function () {\n thisObj.addSplit();\n return false; //Since this is an anchor tag, prevent any redirecting\n };\n };\n ViewReviewReviewInvoice.prototype.initializeFormChangeDetection = function () {\n console.log('Initializing form change detection..');\n var thisObj = this;\n $(this.Form).find(\":input\").change(function () {\n thisObj.setFormFieldsChanged();\n });\n $(this.Form).find(\".UnqualifiedReasonReviewer\").find(\":input\").click(function () {\n thisObj.setFormFieldsChanged();\n });\n $(this.Form).find(\".UnqualifiedReasonAutoUnqualify\").find(\":input\").click(function () {\n thisObj.setFormFieldsChanged();\n });\n $(this.Form).find(\".SubBtnSplitAdd\").click(function () {\n thisObj.setFormFieldsChanged();\n });\n $(this.Form).find(\".SubBtnRemove\").click(function () {\n thisObj.setFormFieldsChanged();\n });\n };\n ViewReviewReviewInvoice.prototype.initializeDisableFormInput = function () {\n if (!this.AllowEditReviewValue) {\n console.log('AllowEditReview set to false - disabling all inputs..');\n //Specifically only get the elements that are visisble controls (don't want to disable the anti-forgery token or other hidden fields)\n var elements = Apfco.ConvertNodeListToArray(this.Form.querySelectorAll('input.form-control,input.btn,button.btn,select.form-control,textarea.form-control'));\n for (var i = 0; i < elements.length; ++i) {\n if (elements[i]) {\n elements[i].disabled = true;\n }\n }\n }\n else\n console.log('AllowEditReview set to true - leaving all inputs enabled..');\n };\n ViewReviewReviewInvoice.prototype.setFormFieldsChanged = function () {\n if (this.AllowEditReviewValue) {\n console.log('Form fields changed.');\n this.FormFieldsChanged.value = 'True';\n this.SubPendingUpdatesMade.style.display = '';\n }\n else {\n console.log('Change occured but no edit/review allowed, no changes flagged');\n }\n };\n ViewReviewReviewInvoice.prototype.refreshDisplay = function () {\n console.log('Calling refreshDisplay()..');\n this.refreshDisplaySplits();\n };\n ViewReviewReviewInvoice.prototype.refreshDisplaySplits = function () {\n for (var i = 0; i < this.ReviewInvoices.length; i++) {\n this.ReviewInvoices[i].refreshDisplay();\n }\n ;\n };\n ViewReviewReviewInvoice.prototype.ajaxGetDistributorLocationList = function (inputZip) {\n console.log('Calling ajaxGetDistributorLocationList()..');\n return new Promise(function (resolve, reject) {\n $.ajax({\n url: GlobalRootUrl + 'Submission/JsonGetDistributorLocationsByZip?inputZip=' + inputZip,\n type: \"GET\",\n contentType: \"application/json; charset=utf-8\",\n dataType: \"json\",\n success: function (data) {\n resolve(JSON.parse(data));\n },\n error: function (error) {\n reject(error);\n },\n });\n });\n };\n ViewReviewReviewInvoice.prototype.addSplit = function () {\n console.log('Calling addSplit()..');\n //Kind of a wierd way to do this, but basically going to loop through the list backwards and enable the last disabled row found. \n //This way the only time rows will get enabled in the middle is if the user is doing a bunch of add / removes, rather than immediately after the first\n //Get the index of the last enabled value, add one, and then refresh the display\n var lastEnabledIndex = -1;\n for (var i = this.ReviewInvoices.length - 1; i >= 0; i--) {\n //console.log('Checking index: ' + i);\n console.log(this.ReviewInvoices[i].IsEnabled.value);\n if (this.ReviewInvoices[i].IsEnabled.value === 'True') {\n lastEnabledIndex = i;\n console.log('Found lastEnabledIndex: ' + lastEnabledIndex);\n break;\n }\n }\n ;\n var newEnabledIndex = lastEnabledIndex + 1;\n console.log('Set newEnabledIndex: ' + newEnabledIndex);\n this.ReviewInvoices[newEnabledIndex].IsEnabled.value = 'True';\n this.refreshDisplay();\n };\n return ViewReviewReviewInvoice;\n}());\nvar ReviewInvoice = /** @class */ (function () {\n //Methods\n function ReviewInvoice(target, parent) {\n var thisObj = this;\n console.log('\\nReviewInvoice script v3\\n');\n //Assign elements\n this.target = target;\n this.parent = parent;\n this.IsEnabled = this.target.getElementsByClassName('SubIsEnabled')[0];\n this.Split = this.target.getElementsByClassName('SubSplit')[0];\n this.BreakPoint = this.target.getElementsByClassName('SubBreakPoint')[0];\n this.UserSort = this.target.getElementsByClassName('SubUserSort')[0];\n this.FormType = this.target.getElementsByClassName('SubFormType')[0];\n this.Indicia = this.target.getElementsByClassName('SubIndicia')[0];\n this.Insurance = this.target.getElementsByClassName('SubInsurance')[0];\n this.Signature = this.target.getElementsByClassName('SubSignature')[0];\n this.ClientId = this.target.getElementsByClassName('SubClientId')[0];\n this.BtnRemove = this.target.getElementsByClassName('SubBtnRemove')[0];\n this.ReviewInvoiceLabel = this.target.getElementsByClassName('ReviewInvoiceLabel')[0];\n this.ReviewInvoiceCheck = this.target.getElementsByClassName('ReviewInvoiceCheck')[0];\n //Hide split tables\n thisObj.ReviewInvoiceLabel.style.display = \"none\";\n thisObj.ReviewInvoiceCheck.style.display = \"none\";\n //Call various initialization methods (where needed)\n if (this.FormType.selectedOptions[0].value) {\n this.splitRefreshDisplay();\n }\n //Set all input events\n this.BtnRemove.onclick = function () {\n thisObj.remove();\n return false; //Since this is an anchor tag, prevent any redirecting\n };\n this.FormType.onchange = function () {\n thisObj.splitRefreshDisplay();\n };\n }\n ReviewInvoice.prototype.splitRefreshDisplay = function () {\n var selectGroup = this.FormType.selectedOptions[0].parentElement.getAttribute('label');\n if (selectGroup == 'File' || selectGroup == 'Label') {\n this.ReviewInvoiceLabel.style.display = \"\";\n this.ReviewInvoiceCheck.style.display = \"none\";\n }\n else if (selectGroup == 'Check') {\n this.ReviewInvoiceLabel.style.display = \"none\";\n this.ReviewInvoiceCheck.style.display = \"\";\n }\n else {\n this.ReviewInvoiceLabel.style.display = \"none\";\n this.ReviewInvoiceCheck.style.display = \"none\";\n }\n };\n ReviewInvoice.prototype.refreshDisplay = function () {\n console.log('ReviewInvoice - Calling refreshDisplay()..');\n this.target.style.display = (this.IsEnabled.value === 'True' ? '' : 'none');\n };\n ReviewInvoice.prototype.remove = function () {\n console.log('ReviewInvoice - Calling remove()..');\n this.IsEnabled.value = 'False';\n this.Split.value = '';\n this.BreakPoint.value = '';\n this.UserSort.value = '';\n this.FormType.value = '';\n this.Indicia.value = '';\n this.Insurance.value = '';\n this.Signature.value = '';\n this.ClientId.value = '';\n this.parent.refreshDisplay();\n };\n return ReviewInvoice;\n}());\n//On page load, take all found elements with the classname and create objects for them to initialize\nvar ViewReviewReviewInvoiceList = [];\n$(function () {\n var elementsByClass = document.getElementsByClassName(\"cReview aReviewInvoice\");\n for (var i = 0; i < elementsByClass.length; i++) {\n ViewReviewReviewInvoiceList.push(new ViewReviewReviewInvoice(elementsByClass.item(i)));\n }\n ;\n});\n//# sourceMappingURL=ViewReviewReviewInvoice.js.map","var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nvar ViewReviewReviewSubmission = /** @class */ (function () {\n //Methods\n function ViewReviewReviewSubmission(target) {\n var thisObj = this;\n console.log('\\nViewReviewReviewSubmission script v15\\n');\n //Assign elements\n this.target = target;\n //Assign the form button onclick disable code - have to re-do this since this page doesn't use the main layout\n console.log('Assigning form button click disable..');\n Apfco.SetDisableFormButtonsOnSubmit(this.target);\n //Call various initialization methods\n this.initializeLinkHtmlElements();\n this.updateExistingPromoList(true);\n this.initializeAssignEvents();\n this.initializeFormChangeDetection();\n this.initializeDisableFormInput();\n console.log('Page script load complete.');\n }\n ViewReviewReviewSubmission.prototype.initializeLinkHtmlElements = function () {\n console.log('Linking elements..');\n this.Form = this.target.getElementsByTagName(\"Form\")[0];\n this.FormFieldsChanged = document.getElementById(\"FormFieldsChanged\");\n this.AllowEditReview = document.getElementById(\"AllowEditReview\");\n this.AllowEditReviewValue = (this.AllowEditReview.value == 'True');\n this.Promo = document.getElementById(\"PromotionId\");\n this.DisplayExistingPromo = document.getElementById(\"DisplayExistingContractor\");\n this.PromoName = document.getElementById(\"ContractorName\");\n this.ReportingSalesNames = document.getElementById(\"ReportingSalesNames\");\n this.ClientName = document.getElementById(\"ClientName\");\n this.SubPendingUpdatesMade = this.target.getElementsByClassName('SubPendingUpdatesMade')[0];\n this.SubBtnUpdate = this.target.getElementsByClassName('SubBtnUpdate')[0];\n this.SubBtnProcess = this.target.getElementsByClassName('SubBtnProcess')[0];\n this.SubBtnHold = this.target.getElementsByClassName('SubBtnHold')[0];\n this.SubBtnReturn = this.target.getElementsByClassName('SubBtnReturn')[0];\n this.SubBtnHeld = this.target.getElementsByClassName('SubBtnHeld')[0];\n this.ReviewComment = this.target.querySelectorAll('textarea[name=\"ReviewComment\"]')[0];\n this.SubBtnBack = this.target.getElementsByClassName('SubBtnBack')[0];\n this.ReviewNextAvailableSample = document.getElementById(\"ReviewNextAvailableSample\");\n };\n ViewReviewReviewSubmission.prototype.initializeAssignEvents = function () {\n console.log('Assigning events..');\n var thisObj = this;\n this.Promo.onkeyup = function () {\n thisObj.updateExistingPromoList();\n };\n };\n ViewReviewReviewSubmission.prototype.initializeFormChangeDetection = function () {\n console.log('Initializing form change detection..');\n var thisObj = this;\n $(this.Form).find(\":input\").change(function () {\n thisObj.setFormFieldsChanged();\n });\n $(this.Form).find(\".UnqualifiedReasonReviewer\").find(\":input\").click(function () {\n thisObj.setFormFieldsChanged();\n });\n $(this.Form).find(\".UnqualifiedReasonAutoUnqualify\").find(\":input\").click(function () {\n thisObj.setFormFieldsChanged();\n });\n };\n ViewReviewReviewSubmission.prototype.initializeDisableFormInput = function () {\n if (!this.AllowEditReviewValue) {\n console.log('AllowEditReview set to false - disabling all inputs..');\n //Specifically only get the elements that are visisble controls (don't want to disable the anti-forgery token or other hidden fields)\n var elements = Apfco.ConvertNodeListToArray(this.Form.querySelectorAll('input.form-control,input.btn,input.form-check-input,a.btn,select.form-control,textarea.form-control'));\n for (var i = 0; i < elements.length; ++i) {\n if (elements[i]) {\n elements[i].disabled = true;\n }\n }\n //Reset some specific elements as enabled as they should always be available\n if (this.SubBtnProcess) //May not be rendered\n this.SubBtnProcess.disabled = false;\n if (this.SubBtnHold) //May not be rendered\n this.SubBtnHold.disabled = false;\n if (this.SubBtnReturn) //May not be rendered\n this.SubBtnReturn.disabled = false;\n if (this.SubBtnHeld) //May not be rendered\n this.SubBtnHeld.disabled = false;\n this.ReviewComment.disabled = false;\n this.SubBtnBack.disabled = false;\n this.ReviewNextAvailableSample.disabled = false;\n }\n else\n console.log('AllowEditReview set to true - leaving all inputs enabled..');\n //Reset some specific elements as enabled as they should always be disabled\n if (this.Promo) //May not be rendered\n this.Promo.disabled = true;\n if (this.PromoName) //May not be rendered\n this.PromoName.disabled = true;\n if (this.ReportingSalesNames) //May not be rendered\n this.ReportingSalesNames.disabled = true;\n if (this.ClientName) //May not be rendered\n this.ClientName.disabled = true;\n };\n ViewReviewReviewSubmission.prototype.setFormFieldsChanged = function () {\n if (this.AllowEditReviewValue) {\n console.log('Form fields changed.');\n this.FormFieldsChanged.value = 'True';\n this.SubPendingUpdatesMade.style.display = '';\n }\n else {\n console.log('Change occured but no edit/review allowed, no changes flagged');\n }\n };\n ViewReviewReviewSubmission.prototype.ajaxGetPromoList = function (promo) {\n console.log('Calling ajaxGetPromoList()..');\n return new Promise(function (resolve, reject) {\n $.ajax({\n url: GlobalRootUrl + 'api/v1/ApiPromo/GetPromos?promo=' + promo,\n type: \"GET\",\n contentType: \"application/json; charset=utf-8\",\n dataType: \"json\",\n success: function (data) {\n console.log(data);\n resolve(JSON.parse(data));\n },\n error: function (error) {\n reject(error);\n },\n });\n });\n };\n ViewReviewReviewSubmission.prototype.updateExistingPromoList = function (setToPrevious) {\n if (setToPrevious === void 0) { setToPrevious = false; }\n return __awaiter(this, void 0, void 0, function () {\n var thisObj, existingPromoValue, formatted;\n return __generator(this, function (_a) {\n thisObj = this;\n console.log('Calling updateExistingPromoList()..');\n existingPromoValue = this.Promo.value;\n if (!existingPromoValue || existingPromoValue.length < 1) {\n //this.PromoNumber.value = 'Enter characters to search...';\n this.Promo.placeholder = 'Enter characters to search...';\n }\n else {\n formatted = existingPromoValue;\n if (formatted.length > 0 /*&& !isNaN(formattedZip as any as number)*/) {\n //formatted = '00000' + formatted;\n formatted = formatted.trim();\n //formatted = formatted.slice(formatted.length - 5, formatted.length);\n }\n ////Await the Promo list data\n //let PromoListJson = await thisObj.ajaxGetPromoList(formatted);\n //console.log(PromoListJson);\n //if (Object.keys(PromoListJson).length === 0) { //If no results were found, populate the field\n // this.PromoName.value = '';\n // this.ReportingSalesNames.value = '';\n // this.ClientName.value = '';\n //}\n //else { //Otherwise, create a select list item for each result\n // let newPromo = new Promo(PromoListJson);\n // this.searchedPromo.push(newPromo);\n // this.PromoName.value = newPromo.PromoName;\n // this.ReportingSalesNames.value = newPromo.ReportingSalesNames;\n // this.ClientName.value = newPromo.ClientName;\n //}\n }\n //Set to the previous value if passed\n if (setToPrevious) {\n //if (this.PreviousPromoNumber.value) {\n // this.PromoNumber.value = this.PreviousPromoNumber.value;\n //}\n }\n console.log('Call updateExistingPromoList() complete.');\n return [2 /*return*/];\n });\n });\n };\n return ViewReviewReviewSubmission;\n}());\nvar Promo = /** @class */ (function () {\n function Promo(productModelJSON) {\n this.Promo = productModelJSON.part_number;\n this.PromoName = productModelJSON.category;\n this.ReportingSalesNames = productModelJSON.description;\n this.ClientName = productModelJSON.rebate_value;\n }\n return Promo;\n}());\n//On page load, take all found elements with the classname and create objects for them to initialize\nvar ViewReviewReviewSubmissionList = [];\n$(function () {\n var elementsByClass = document.getElementsByClassName(\"cReview aReviewSubmission\");\n for (var i = 0; i < elementsByClass.length; i++) {\n ViewReviewReviewSubmissionList.push(new ViewReviewReviewSubmission(elementsByClass.item(i)));\n }\n ;\n});\n//# sourceMappingURL=ViewReviewReviewSubmission.js.map","var LayoutPrimary = /** @class */ (function () {\n //Methods\n function LayoutPrimary(target) {\n var thisObj = this;\n this.disableFormButtonsOnSubmit();\n this.wrapTrademarkSymbolsWithSuperscriptTag();\n console.log('LayoutPrimary initialized');\n //Get all linked elements\n this.target = target;\n //Make it so every submit button found in every form on the site is diabled when the form is submitted (solves numerous issues)\n //Fixes include the \"The provided anti-forgery token was meant for user \"\", but the current user is \"ACT-2JFD6AMVSN7C\".\" which is caused by users double-clicking on the login button\n //Note that this is NOT for security, as users can diable JS. This is only for avoiding user-unfriendly or confusing error messages\n Apfco.SetDisableFormButtonsOnSubmit(this.target);\n //Wrap all registered trademark symbols with , as it applies to almost every design mockup we receive - see here https://stackoverflow.com/questions/19364581/adding-superscript-sup-tags-around-all-trademark-and-registered-trademark-symb\n var regexp = /[\\xAE]/;\n $('body :not(script,sup)').contents().filter(function () {\n return this.nodeType === 3 && (regexp.test(this.nodeValue));\n }).replaceWith(function () {\n return this.nodeValue.replace(regexp, '$&');\n });\n $('body :not(script,sup)').contents().filter(function () {\n return this.nodeType === 3;\n }).replaceWith(function () {\n return this.nodeValue.replace(/[™®©]/g, '$&');\n });\n //Bootstrap v4 - Hack to fix double-click requirement of navbar drop-downs. Click them once to bypass, and then hide/blur in cases where a particular browswer does actually display them\n $(\".dropdown-toggle\").trigger(\"click\");\n $('.dropdown').removeClass('show');\n $('.dropdown-toggle').attr('aria-expanded', 'false');\n $('.dropdown-menu').removeClass('show');\n $(\".dropdown-toggle\").blur();\n //Set the default focus to the first non-hidden input on all pages with a form. Makes pages easier to fill out with the keyboard\n if (document.getElementsByTagName('form').length > 0) {\n $('form:first *:input[type!=hidden]:first').focus();\n }\n //Apply datatables sort to all bootstrap tables in the site\n $(this.target).find('table.table').not('.noDataTable').each(function () {\n $(this).DataTable({\n \"paging\": false,\n \"info\": false,\n \"searching\": false,\n \"aaSorting\": [] //Make it so Datatables doesn't apply a default sort on page load - https://datatables.net/forums/discussion/1399/how-to-no-sort-by-default\n });\n });\n //Bootstrap v4 - enable tooltips everwhere: https://getbootstrap.com/docs/4.0/components/tooltips/\n $(function () {\n $('[data-toggle=\"tooltip\"]').tooltip();\n });\n }\n LayoutPrimary.prototype.disableFormButtonsOnSubmit = function () {\n //Make it so every submit button found in every form on the site is diabled when the form is submitted (solves numerous issues)\n //Fixes include the \"The provided anti-forgery token was meant for user \"\", but the current user is \"ACT-2JFD6AMVSN7C\".\" which is caused by users double-clicking on the login button\n //Note that this is NOT for security, as users can diable JS. This is only for avoiding user-unfriendly or confusing error messages\n $(this.target).find('form').each(function () {\n $(this).submit(function (event) {\n $(this).find(':input[type=submit]').each(function () {\n if (!$(this).attr('apfDontDisableOnSubmit')) { //Don't disable if the apfDontDisableOnSubmit=\"true\" attribute exists on the button\n $(this).prop('disabled', true);\n }\n });\n });\n });\n $(this.target).find('form').each(function () {\n var currentForm = this; //Get the current form\n $(this).find(':input[type=submit]').each(function () {\n if (!$(this).attr('apfDontDisableOnSubmit')) { //Don't disable if the apfDontDisableOnSubmit=\"true\" attribute exists on the button\n $(this).click(function (event) {\n $('').attr({\n type: 'hidden',\n name: $(this).attr('name'),\n value: $(this).val()\n }).insertBefore($(currentForm).children().first()); //Append to the start of the current form, instead of next to the button itself or the end of the form. Otherwise it may mess with any last-child CSS selectors\n });\n }\n });\n });\n };\n LayoutPrimary.prototype.wrapTrademarkSymbolsWithSuperscriptTag = function () {\n //Wrap all registered trademark symbols with , as it applies to almost every design mockup we receive - see here https://stackoverflow.com/questions/19364581/adding-superscript-sup-tags-around-all-trademark-and-registered-trademark-symb\n var regexp = /[\\xAE]/;\n $('body :not(script,sup)').contents().filter(function () {\n return this.nodeType === 3 && (regexp.test(this.nodeValue));\n }).replaceWith(function () {\n return this.nodeValue.replace(regexp, '$&');\n });\n $('body :not(script,sup)').contents().filter(function () {\n return this.nodeType === 3;\n }).replaceWith(function () {\n return this.nodeValue.replace(/[™®©]/g, '$&');\n });\n };\n return LayoutPrimary;\n}());\n//On page load, take all found elements with the classname and create objects for them to initialize\nvar layoutPrimaryList = [];\n$(function () {\n var elementsByClass = document.getElementsByClassName(\"LayoutPrimary\");\n for (var i = 0; i < elementsByClass.length; i++) {\n layoutPrimaryList.push(new LayoutPrimary(elementsByClass.item(i)));\n }\n ;\n});\n//# sourceMappingURL=ViewSharedLayoutPrimary.js.map"]}