1"use strict";(self.webpackChunkaem_maven_archetype=self.webpackChunkaem_maven_archetype||[]).push([[3343],{3343:function(t,i,e){e.r(i),e.d(i,{default:function(){return u}});var r=e(4692),o=e.n(r),a=e(9685),n=e(1328);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function s(t,i){for(var e=0;e<i.length;e++){var r=i[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,m(r.key),r)}}function m(t){var i=function(t,i){if("object"!=l(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,i||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(t)}(t,"string");return"symbol"==l(i)?i:String(i)}var u=function(){function t(i){!function(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}(this,t),this.el=i,this.formName="bio-form-orig",this.formIsSafe=!0,this.limitField=null,this.limitCount=null,this.limitNum=null,this.limitError=null,this.name=window.location.hostname+"|"+document.documentElement.lang+pagePath.replaceAll("/","|").replaceAll(".html",""),this.initialPanel=o()(".bio-form-orig .initial-form"),this.successPanel=o()(".bio-form-orig .successMsg"),this.successHeader=o()(".bio-form-orig h2 .success"),this.errorPanel=o()(".bio-form-orig .errorMsg"),this.errorHeader=o()(".bio-form-orig h2 .error"),this.init()}var i,e,r;return i=t,(e=[{key:"init",value:function(){var t=(0,a.getQueryParam)("owl_id");t&&o()("#owlId").val(t);var i=this;o()("#biography-form").on("submit",(function(t){t.preventDefault();var e=o()(this).data("url");i.formName=o()(this).data("formid");var r=o()("#biography-form :input"),n={};r.each((function(){(0,a.stringHasHtml)(o()(this).val())?(o()(this).css({borderColor:"#f15f10"}),o()("#error-message").css({display:"block"}),i.formIsSafe=!1):n[this.name]=o()(this).val()})),i.formIsSafe&&((0,a.disableButtonAfterSubmit)(),i.postMessage(e,n))})),o()("#requestType").on("change",(function(){"new"===o()(this).val()?o()("#fileUpload").attr("required","required"):o()("#fileUpload").removeAttr("required")})),o()(".chkbx span").on("click",(function(){o()(this).toggleClass("selected");var t=o()(this).parent().attr("for");o()("#"+t).trigger("click").click()})),this.getLimitData()}},{key:"getLimitData",value:function(){var t=this;o()("#biography-form textarea").on("focus",(function(){t.limitField=o()(this).attr("name"),t.limitCount=t.limitField+"-countdown",t.limitNum=o()(this).attr("data-limit"),t.limitNum&&t.detectKeyEvents()}))}},{key:"detectKeyEvents",value:function(){var t=this;o()("#biography-form textarea").on("keydown keyup blur",(function(){t.limitText()}))}},{key:"limitText",value:function(){var t=o()("textarea[name='"+this.limitField+"']");0==this.limitError&&t.val().length-this.limitNum==0&&(o()("."+this.limitField+"-error").before('<p class="limit '+this.limitField+"-limit\">You've reached the character limit.</p>"),this.limitError=!0),t.val().length>this.limitNum?o()("#"+this.limitField).val(t.val().substring(0,this.limitNum)):(t.val().length<this.limitNum&&(o()("."+this.limitField+"-limit").remove(),this.limitError=!1),o()("#"+this.limitCount).val(this.limitNum-t.val().length))}},{key:"swapPanels",value:function(t,i,e){t.hide(),i.show(),e.show()}},{key:"postMessage",value:function(t,i){var e=this,r=document.querySelector("#biography-form"),a=new FormData(r);o().ajax({type:"POST",url:t,data:a,processData:!1,contentType:!1,success:function(t){e.swapPanels(e.initialPanel,e.successPanel,e.successHeader),n.formsDataLayer.formSuccessDataLayer(window.location.href,e.name,e.formName)},error:function(t){console.log(JSON.stringify(t))}}).fail((function(t){e.swapPanels(e.initialPanel,e.errorPanel,e.errorHeader),n.formsDataLayer.formErrorDataLayer(window.location.href,e.name,e.formName)}))}}])&&s(i.prototype,e),r&&s(i,r),Object.defineProperty(i,"prototype",{writable:!1}),t}()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.