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AMnD,EAAEsD,MAAM/E,EAAEgF,QAAQC,YAAW,WAAW/C,EAAEgD,WAAWvC,EAAE,GAAE,EAAE,IAAGnB,EAAE4C,UAAUC,GAAG,QAAQ,gCAA+B,SAAS5C,GAAG,IAAIL,EAAEK,EAAE0D,cAAcvH,KAAK+D,EAAEH,EAAEC,EAAE+C,QAAQtC,EAAEV,EAAEG,EAAE8C,QAAQ,QAAQ,IAAIvC,EAAEyB,KAAKhB,EAAEvB,EAAE,CAAC,CAACxD,KAAKwD,EAAEpD,MAAMyD,EAAE0D,cAAcnH,QAAQ,IAAIkE,EAAEyB,KAAKf,EAAEjB,GAAGsD,YAAW,WAAW/C,EAAEgD,WAAWvC,GAAGT,EAAEgD,WAAWtC,EAAE,GAAE,EAAE,IAAGpB,EAAE4C,UAAUC,GAAG,SAAS,wBAAuB,SAAS5C,GAAG,IAAIL,EAAEI,EAAEjD,MAAMoF,KAAKhB,IAAI,GAAGhB,EAAEH,EAAEjD,MAAMoF,KAAKf,GAAGV,EAAEP,IAAIA,EAAEyD,SAAS,gBAAW,IAASzD,EAAEmC,KAAK,mBAAmBrC,EAAE6C,kBAAkBpC,GAAz/B,SAAWT,GAAG,IAAIL,EAAEI,EAAEC,GAAGkC,KAA0G,yBAAlG,OAAOvC,IAAIA,EAAEiE,UAAUjE,EAAEiE,UAAU,CAAw7B3C,CAAEnE,QAAQyB,EAAEzB,KAAK,CAAC0E,IAAI1E,KAAK+G,OAAOvE,KAAKxC,KAAKT,QAAQ,MAAM6F,KAAKvC,EAAEmE,OAAO/D,EAAEjD,MAAMiH,mBAAmB,GAAE,CAAhgG,CAAkgG7G,O","sources":["webpack://ui-toolkit/./scripts/custom-forms.js","webpack://ui-toolkit/./vendors/sitecore/form.validate.js","webpack://ui-toolkit/./vendors/sitecore/jquery.unobtrusive-ajax.min.js"],"sourcesContent":["require('jquery-validation');\r\nrequire('jquery-validation-unobtrusive');\r\nrequire('../vendors/sitecore/jquery.unobtrusive-ajax.min');\r\nrequire('../vendors/sitecore/form.validate');\r\nrequire('../vendors/sitecore/form.tracking');\r\nvar _remove = require('lodash/remove');\r\n\r\n(function ($) {\r\n if ($.validator) {\r\n if ($.validator.unobtrusive && $.validator.unobtrusive.adapters) {\r\n var adapters = $.validator.unobtrusive.adapters;\r\n if (adapters) {\r\n // the ischecked validator is unnecessary since we are already providing our own for checkbox lists (checkboxtrue)\r\n _remove(adapters, adapter => adapter.name === \"ischecked\");\r\n }\r\n }\r\n\r\n if ($.validator.methods) {\r\n // replace the existing daterange validation method with one that correctly formats the date from the datepicker\r\n _remove($.validator.methods, method => method.name === \"daterange\");\r\n $.validator.addMethod(\r\n \"daterange\",\r\n function (value, element, params) {\r\n let formattedValue = $.datepicker ? $.datepicker.formatDate('yy-mm-dd', new Date(value)) : value;\r\n return this.optional(element) || (formattedValue >= params.min && formattedValue <= params.max);\r\n });\r\n }\r\n }\r\n})(jQuery);","(function($) {\r\n var adapters = $.validator.unobtrusive.adapters;\r\n adapters.fxbAddNumberVal = function (adapterName, attribute, ruleName) {\r\n attribute = attribute || \"val\";\r\n ruleName = ruleName || adapterName;\r\n this.add(adapterName, [attribute], function(options) {\r\n var attrVal = options.params[attribute];\r\n if ((attrVal || attrVal === 0) && !isNaN(attrVal)) {\r\n options.rules[ruleName] = Number(attrVal);\r\n }\r\n if (options.message) {\r\n options.messages[ruleName] = options.message;\r\n }\r\n });\r\n };\r\n\r\n adapters.fxbAddMinMax = function(adapterName, minRuleName, maxRuleName, minAttribute, maxAttribute) {\r\n minAttribute = minAttribute || \"min\";\r\n maxAttribute = maxAttribute || \"max\";\r\n this.add(adapterName, [minAttribute, maxAttribute], function(options) {\r\n if (options.params[minAttribute] && options.params[maxAttribute]) {\r\n if (!options.rules.hasOwnProperty(minRuleName)) {\r\n if (options.message) {\r\n options.messages[minRuleName] = options.message;\r\n }\r\n }\r\n if (!options.rules.hasOwnProperty(maxRuleName)) {\r\n if (options.message) {\r\n options.messages[maxRuleName] = options.message;\r\n }\r\n }\r\n }\r\n });\r\n };\r\n\r\n adapters.addBool(\"ischecked\", \"required\");\r\n\r\n $.validator.addMethod(\r\n \"daterange\",\r\n function(value, element, params) {\r\n return this.optional(element) || (value >= params.min && value <= params.max);\r\n });\r\n\r\n adapters.add(\r\n \"daterange\",\r\n [\"min\", \"max\"],\r\n function(options) {\r\n var params = {\r\n min: options.params.min,\r\n max: options.params.max\r\n };\r\n options.rules[\"daterange\"] = params;\r\n options.messages[\"daterange\"] = options.message;\r\n });\r\n\r\n adapters.addSingleVal(\"filesize\", \"max\");\r\n $.validator.addMethod(\r\n \"filesize\",\r\n function (value, element, max) {\r\n if (!this.optional(element)) {\r\n for (var i = 0; i < element.files.length; i++) {\r\n if (element.files[i].size > max) {\r\n return false;\r\n }\r\n }\r\n }\r\n return true;\r\n });\r\n\r\n adapters.addSingleVal(\"filecount\", \"max\");\r\n $.validator.addMethod(\r\n \"filecount\",\r\n function (value, element, max) {\r\n if (!this.optional(element)) {\r\n if (element.files.length > max) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n });\r\n\r\n adapters.addSingleVal(\"filetype\", \"allowedcontenttypes\");\r\n $.validator.addMethod(\r\n \"filetype\",\r\n function (value, element, allowedContentTypes) {\r\n if (!this.optional(element)) {\r\n var allowedContentTypesArray = allowedContentTypes.split(\",\").filter(function (s) {\r\n // Remove empty entries\r\n return s !== \"\";\r\n });\r\n if (allowedContentTypesArray.length) {\r\n for (var i = 0; i < element.files.length; i++) {\r\n var file = element.files[i];\r\n var isValid = false;\r\n for (var j = 0; j < allowedContentTypesArray.length; j++) {\r\n var allowedContentType = allowedContentTypesArray[j];\r\n if (allowedContentType.indexOf(\"/\") !== -1) {\r\n // MIME type comparison if there is a slash \"/\"\r\n isValid = allowedContentType.toLowerCase() === file.type.toLowerCase();\r\n } else {\r\n // File extension comparison\r\n isValid = allowedContentType.toLowerCase() === \".\" + file.name.split(\".\").pop().toLowerCase();\r\n }\r\n\r\n if (isValid) {\r\n break;\r\n }\r\n }\r\n\r\n if (!isValid) {\r\n return false;\r\n }\r\n }\r\n }\r\n }\r\n return true;\r\n });\r\n\r\n adapters.fxbAddNumberVal(\"min\");\r\n adapters.fxbAddNumberVal(\"max\");\r\n adapters.fxbAddNumberVal(\"step\");\r\n\r\n adapters.fxbAddMinMax(\"range\", \"min\", \"max\");\r\n adapters.fxbAddMinMax(\"length\", \"minlength\", \"maxlength\");\r\n adapters.fxbAddMinMax(\"daterange\", \"min\", \"max\");\r\n\r\n $.validator.setDefaults({\r\n submitHandler: function (formEl, e) {\r\n var $submitBtns = $(formEl).find(\"input[type='submit']\");\r\n if ($submitBtns.length) {\r\n $submitBtns.prop('disabled', true);\r\n }\r\n return true;\r\n }\r\n });\r\n})(jQuery);","// Unobtrusive Ajax support library for jQuery\r\n// Copyright (c) .NET Foundation. All rights reserved.\r\n// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.\r\n// @version v3.2.6\r\n// \r\n// Microsoft grants you the right to use these script files for the sole\r\n// purpose of either: (i) interacting through your browser with the Microsoft\r\n// website or online service, subject to the applicable licensing or use\r\n// terms; or (ii) using the files as included with a Microsoft product subject\r\n// to that product's license terms. Microsoft reserves all other rights to the\r\n// files not expressly granted by Microsoft, whether by implication, estoppel\r\n// or otherwise. Insofar as a script file is dual licensed under GPL,\r\n// Microsoft neither took the code under GPL nor distributes it thereunder but\r\n// under the terms set out in this paragraph. All notices and licenses\r\n// below are for informational purposes only.\r\n!function(t){function a(t,a){for(var e=window,r=(t||\"\").split(\".\");e&&r.length;)e=e[r.shift()];return\"function\"==typeof e?e:(a.push(t),Function.constructor.apply(null,a))}function e(t){return\"GET\"===t||\"POST\"===t}function r(t,a){e(a)||t.setRequestHeader(\"X-HTTP-Method-Override\",a)}function n(a,e,r){var n;r.indexOf(\"application/x-javascript\")===-1&&(n=(a.getAttribute(\"data-ajax-mode\")||\"\").toUpperCase(),t(a.getAttribute(\"data-ajax-update\")).each(function(a,r){switch(n){case\"BEFORE\":t(r).prepend(e);break;case\"AFTER\":t(r).append(e);break;case\"REPLACE-WITH\":t(r).replaceWith(e);break;default:t(r).html(e)}}))}function i(i,u){var o,c,d,s;if(o=i.getAttribute(\"data-ajax-confirm\"),!o||window.confirm(o)){c=t(i.getAttribute(\"data-ajax-loading\")),s=parseInt(i.getAttribute(\"data-ajax-loading-duration\"),10)||0,t.extend(u,{type:i.getAttribute(\"data-ajax-method\")||void 0,url:i.getAttribute(\"data-ajax-url\")||void 0,cache:\"true\"===(i.getAttribute(\"data-ajax-cache\")||\"\").toLowerCase(),beforeSend:function(t){var e;return r(t,d),e=a(i.getAttribute(\"data-ajax-begin\"),[\"xhr\"]).apply(i,arguments),e!==!1&&c.show(s),e},complete:function(){c.hide(s),a(i.getAttribute(\"data-ajax-complete\"),[\"xhr\",\"status\"]).apply(i,arguments)},success:function(t,e,r){n(i,t,r.getResponseHeader(\"Content-Type\")||\"text/html\"),a(i.getAttribute(\"data-ajax-success\"),[\"data\",\"status\",\"xhr\"]).apply(i,arguments)},error:function(){a(i.getAttribute(\"data-ajax-failure\"),[\"xhr\",\"status\",\"error\"]).apply(i,arguments)}}),u.data.push({name:\"X-Requested-With\",value:\"XMLHttpRequest\"}),d=u.type.toUpperCase(),e(d)||(u.type=\"POST\",u.data.push({name:\"X-HTTP-Method-Override\",value:d}));var p=t(i);if(p.is(\"form\")&&\"multipart/form-data\"==p.attr(\"enctype\")){var f=new FormData;t.each(u.data,function(t,a){f.append(a.name,a.value)}),t(\"input[type=file]\",p).each(function(){var a=this;t.each(a.files,function(t,e){f.append(a.name,e)})}),t.extend(u,{processData:!1,contentType:!1,data:f})}t.ajax(u)}}function u(a){var e=t(a).data(d);return!e||!e.validate||e.validate()}var o=\"unobtrusiveAjaxClick\",c=\"unobtrusiveAjaxClickTarget\",d=\"unobtrusiveValidation\";t(document).on(\"click\",\"a[data-ajax=true]\",function(t){t.preventDefault(),i(this,{url:this.href,type:\"GET\",data:[]})}),t(document).on(\"click\",\"form[data-ajax=true] input[type=image]\",function(a){var e=a.target.name,r=t(a.target),n=t(r.parents(\"form\")[0]),i=r.offset();n.data(o,[{name:e+\".x\",value:Math.round(a.pageX-i.left)},{name:e+\".y\",value:Math.round(a.pageY-i.top)}]),setTimeout(function(){n.removeData(o)},0)}),t(document).on(\"click\",\"form[data-ajax=true] :submit\",function(a){var e=a.currentTarget.name,r=t(a.target),n=t(r.parents(\"form\")[0]);n.data(o,e?[{name:e,value:a.currentTarget.value}]:[]),n.data(c,r),setTimeout(function(){n.removeData(o),n.removeData(c)},0)}),t(document).on(\"submit\",\"form[data-ajax=true]\",function(a){var e=t(this).data(o)||[],r=t(this).data(c),n=r&&(r.hasClass(\"cancel\")||void 0!==r.attr(\"formnovalidate\"));a.preventDefault(),(n||u(this))&&i(this,{url:this.action,type:this.method||\"GET\",data:e.concat(t(this).serializeArray())})})}(jQuery);"],"names":["require","_remove","$","validator","unobtrusive","adapters","adapter","name","methods","method","addMethod","value","element","params","formattedValue","datepicker","formatDate","Date","this","optional","min","max","jQuery","fxbAddNumberVal","adapterName","attribute","ruleName","add","options","attrVal","isNaN","rules","Number","message","messages","fxbAddMinMax","minRuleName","maxRuleName","minAttribute","maxAttribute","hasOwnProperty","addBool","addSingleVal","i","files","length","size","allowedContentTypes","allowedContentTypesArray","split","filter","s","file","isValid","j","allowedContentType","indexOf","toLowerCase","type","pop","setDefaults","submitHandler","formEl","e","$submitBtns","find","prop","t","a","window","r","shift","push","Function","constructor","apply","setRequestHeader","n","getAttribute","toUpperCase","each","prepend","append","replaceWith","html","u","o","c","d","confirm","parseInt","extend","url","cache","beforeSend","arguments","show","complete","hide","success","getResponseHeader","error","data","p","is","attr","f","FormData","processData","contentType","ajax","document","on","preventDefault","href","target","parents","offset","Math","round","pageX","left","pageY","top","setTimeout","removeData","currentTarget","hasClass","validate","action","concat","serializeArray"],"sourceRoot":""}