1function _slicedToArray(d,f){return _arrayWithHoles(d)||_iterableToArrayLimit(d,f)||_unsupportedIterableToArray(d,f)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");} 2function _iterableToArrayLimit(d,f){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(d)){var g=[],m=!0,r=!1,x=void 0;try{for(var v=d[Symbol.iterator](),q;!(m=(q=v.next()).done)&&(g.push(q.value),!f||g.length!==f);m=!0);}catch(w){r=!0,x=w}finally{try{if(!m&&null!=v["return"])v["return"]()}finally{if(r)throw x;}}return g}}function _arrayWithHoles(d){if(Array.isArray(d))return d} 3function _typeof(d){"@babel/helpers - typeof";_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(f){return typeof f}:function(f){return f&&"function"===typeof Symbol&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f};return _typeof(d)} 4function ownKeys(d,f){var g=Object.keys(d);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(d);f&&(m=m.filter(function(r){return Object.getOwnPropertyDescriptor(d,r).enumerable}));g.push.apply(g,m)}return g} 5function _objectSpread(d){for(var f=1;f<arguments.length;f++){var g=null!=arguments[f]?arguments[f]:{};f%2?ownKeys(Object(g),!0).forEach(function(m){_defineProperty(d,m,g[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(g)):ownKeys(Object(g)).forEach(function(m){Object.defineProperty(d,m,Object.getOwnPropertyDescriptor(g,m))})}return d} 6function _defineProperty(d,f,g){f in d?Object.defineProperty(d,f,{value:g,enumerable:!0,configurable:!0,writable:!0}):d[f]=g;return d} 7function _createForOfIteratorHelper(d,f){var g;if("undefined"===typeof Symbol||null==d[Symbol.iterator]){if(Array.isArray(d)||(g=_unsupportedIterableToArray(d))||f&&d&&"number"===typeof d.length){g&&(d=g);var m=0;f=function(){};return{s:f,n:function(){return m>=d.length?{done:!0}:{done:!1,value:d[m++]}},e:function(q){throw q;},f:f}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var r=!0, 8x=!1,v;return{s:function(){g=d[Symbol.iterator]()},n:function(){var q=g.next();r=q.done;return q},e:function(q){x=!0;v=q},f:function(){try{if(!r&&null!=g["return"])g["return"]()}finally{if(x)throw v;}}}} 9function _unsupportedIterableToArray(d,f){if(d){if("string"===typeof d)return _arrayLikeToArray(d,f);var g=Object.prototype.toString.call(d).slice(8,-1);"Object"===g&&d.constructor&&(g=d.constructor.name);if("Map"===g||"Set"===g)return Array.from(d);if("Arguments"===g||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g))return _arrayLikeToArray(d,f)}}function _arrayLikeToArray(d,f){if(null==f||f>d.length)f=d.length;for(var g=0,m=Array(f);g<f;g++)m[g]=d[g];return m} 10VueBus.resourceReady(function(){function d(e,a){e=_createForOfIteratorHelper(e);var b;try{for(e.s();!(b=e.n()).done;)if(0!==a[b.value].length)return!0}catch(c){e.e(c)}finally{e.f()}return!1}Vue.use(window.vuelidate["default"]);var f=window.validators.requiredIf,g={},m={},r={},x={},v={},q=[],w=[],t=[],C=window.validators,K=Array.from(document.getElementsByClassName("form-container-wrapper")),H=JSON.parse(document.getElementById("validationConfig").value),n=H.validations,E={};H.groups.split(",").forEach(function(e){g[e]= 11{showGroup:!1}});Object.keys(n).forEach(function(e,a){m[e]="";var b={};-1===["checkbox","button","submit"].indexOf(n[e].type)&&(n[e].hasOwnProperty("acceptedTypes")&&(n[e].hasOwnProperty("maxFileSize")||(n[e].maxFileSize=2048E4)),Object.keys(n[e]).forEach(function(c,k){if(n[e][c]&&"type"!==c)switch(c){case "sameAs":b[c]=C[c](n[e][c]);break;case "maxFileSize":E["fileSize"+e]=function(){return this.model[e].totalSize};b[c]=function(){var l=n[e].groupName;if(!l||this.groupModel[l].showGroup){l=parseInt(n[e][c]); 12var p=this.model[e].totalSize;return p?p<=l:!0}return!0};break;case "acceptedTypes":E["extensions"+e]=function(){return this.model[e].files};b[c]=function(){var l=n[e].groupName;if(!l||this.groupModel[l].showGroup){var p=n[e][c].split(",");return p.length&&this.model[e]?this.model[e].files.some(function(y){return-1===p.indexOf(y.ext)})?!1:!0:!0}return!0};break;case "minLength":case "maxLength":k=n[e][c]&&parseInt(n[e][c]);b[c]=k?C[c](k):!0;break;case "groupName":break;default:b[c]=function(l){var p= 13n[e].groupName;
13return!p||this.groupModel[p].showGroup?C[c](l):!0}}}));"checkbox"===n[e].type&&Object.keys(n[e]).forEach(function(c,k){n[e][c]&&"type"!==c&&"groupName"!==c&&(b[c]="required"===c?function(l){var p=n[e].groupName;return!p||this.groupModel[p].showGroup?l:!0}:function(){var l=n[e].groupName;return!l||this.groupModel[l].showGroup?C[c]:!0})});v[e]=b});var F={required:f(function(e){return!0})},A=function(){var e=document.getElementById("fieldsCrossValidation");return e&&e.value?JSON.parse(document.getElementById("fieldsCrossValidation").value): 14""}();(function(){if(A)for(var e=0;e<A.length;e++)if(A[e].hasOwnProperty("connectedFieldsNamesGroup"))for(var a=A[e].connectedFieldsNamesGroup,b=0;b<a.length;b++){var c=a[b];x[c]={crossValidationErrorMessage:A[e].crossValidationErrorMessage};F[c]=a;r[c]={required:f(function(k){if(!event.target.name)return!0;var l=!0;d(F[event.target.name],k)&&(l=!1);return l})}}})();K.forEach(function(e){e.__vue__||new Vue({data:{model:m,groupModel:g,loaded:!1,submitError:!1,submitting:!1,recaptchaVerified:!1,submitErrMsg:"", 15formData:new FormData,modelCrossValidation:m,crossValidationError:x,crossValidationBundles:{}},components:{VueRecaptcha:VueRecaptcha},el:e,validations:{model:v,modelCrossValidation:r,recaptcha:{required:function(){return this.recaptchaCheck}}},computed:{computedProperties:{get:function(){return E}},recaptchaCheck:function(){return this.recaptchaVerified}},mixins:[utilitiesMixin],methods:{showGroup:function(a,b,c,k){if(a&&"NONE"===a.toUpperCase())return this.groupModel[k].showGroup=!0;if("hasValue"!== 16b||this.isEmptyString(this.model[a]))return this.groupModel[k].showGroup="hasNoValue"===b&&this.isEmptyString(this.model[a]),"hasNoValue"===b&&this.isEmptyString(this.model[a]);if(this.isEmptyString(c))return this.groupModel[k].showGroup=!0;this.groupModel[k].showGroup=this.model[a]===c;return this.model[a]===c},isEmptyString:function(a){return""===a||null==a},getFileExtension:function(a){a=/^.+\.([^.]+)$/.exec(a);return null==a?"":"."+a[1].toLowerCase()},toggleOption:function(a){(a=document.getElementById(a))&& 17a.click()},selectFile:function(a){var b=this,c=a.target.files;this[a.target.name+"FileNames"]||(this[a.target.name+"FileNames"]=[]);this.model[a.target.name]&&Object.keys(this.model[a.target.name]).length||(this.model[a.target.name]={type:"files",files:[],fileExtensions:"",totalSize:0});for(var k=function(){var p=c[l],y=b.getFileExtension(p.name);b[a.target.name+"FileNames"].push(p.name);b.$forceUpdate();var z=new FileReader;z.onload=function(D){this.model[a.target.name].files.push({contenType:p.type, 18fileName:p.name,data:D.target.result,size:p.size,ext:y});this.calculateTotalSize(a.target.name);this.$v.model[a.target.name].$touch()}.bind(b);z.readAsArrayBuffer(p)},l=0;l<c.length;l++)k();this.crossValidateFields(a.target.name)}
18,removeFile:function(a,b){var c=this[a+"FileNames"];c.splice(c.indexOf(b),1);c=this.model[a].files.findIndex(function(k){return k.fileName===b});this.model[a].files.splice(c,1);this.$forceUpdate();this.calculateTotalSize(a);this.$v.model[a].$touch();0===this.model[a].files.length&& 19(m[a]="")},cleanMultiUploadField:function(a){this.$refs["model-".concat(a.target.name)].value=null},calculateTotalSize:function(a){if(this.model[a].files){var b=this.model[a].files.reduce(function(c,k){return c+k.size},0);this.model[a]=_objectSpread(_objectSpread({},this.model[a]),{},{totalSize:b})}this.$forceUpdate()},triggerFileInput:function(a){this.$refs["model-".concat(a)].click()},focusAndScroll:function(a){a&&(a.focus(),a.scrollIntoView({behavior:"smooth",block:"center"}))},submitForm:function(){var a= 20this;this.$v.$touch();this.$refs.recaptcha||(this.recaptchaVerified=!0);if(this.$v.$invalid){var b=this.$el.querySelector(".form-control.error [data-cmp-hook-form-text\x3d'input']");b?this.focusAndScroll(b):this.recaptchaVerified||(b=this.$el.querySelector(".form-control.error"),this.focusAndScroll(b))}b=(b=this.$el.querySelector('input[name\x3d"nrOfProducts"]'))?b.value:b;var c=[];if(b&&0<parseInt(b))for(var k=0;k<b;k++){var l={productName:this.$el.querySelector('input[name\x3d"medicineInfos['+k+ 21'][productName]"]').value,batchNumber:this.$el.querySelector('input[name\x3d"medicineInfos['+k+'][batchNumber]"]').value,condition:this.$el.querySelector('textarea[name\x3d"medicineInfos['+k+'][condition]"]').value,dosage:this.$el.querySelector('input[name\x3d"medicineInfos['+k+'][dosage]"]').value,startDate:this.$el.querySelector('input[name\x3d"medicineInfos['+k+'][startDate]"]').value,endDate:this.$el.querySelector('input[name\x3d"medicineInfos['+k+'][endDate]"]').value};c.push(l);if(void 0=== 22c[k].productName||0>=c[k].productName.length){this.$el.querySelector('input[name\x3d"medicineInfos['+k+'][productName]"]').parentElement.classList.add("error","touched");return}}this.formData.append("medicineInfos",JSON.stringify(c));this.$v.model.$invalid||this.$v.modelCrossValidation.$invalid||this.submitting||!this.recaptchaVerified||function(){var p=a.$refs.endpoint.value,y=a.$refs.redirect.value,z=a.$refs.resourcePath.value,D=document.getElementById("validationConfig")&&JSON.parse(document.getElementById("validationConfig").value|| 23"{}"),N=function(h){if("object"===_typeof(a.model[h])&&"files"===a.model[h].type){var L=[];a.model[h].files.forEach(function(u){L.push(new Blob([u.data],{type:u.contenType}));a.formData.append(h,new Blob([u.data],{type:u.contenType}),u.fileName,u.size)})}else if(""===a.model[h]&&0<document.getElementsByName(h).length&&0<t.length&&(-1!=w.indexOf(h)||"string"==typeof a.model[h])){a.formData.append(h,document.getElementsByName(h)[0].value);var B=document.getElementsByName(h)[0].attributes.getNamedItem("type"); 24null!==B&&"hidden"!==B.value&&a.formData.set(h,a.model[h])}else"boolean"==typeof a.model[h]?a.formData.has(h.substring(0,h.lastIndexOf("-")))&&a.formData.set(h.substring(0,h.lastIndexOf("-")),a.model[h.substring(0,h.lastIndexOf("-"))]):(Object.entries(a.groupModel).forEach(function(u){var G;u=_slicedToArray(u,2);var M=u[0];u[1].showGroup&&(null===(G=D.validations[h])||void 0===G?void 0:G.groupName)==M&&(a.formData.has(h)?a.formData.set(h,a.model[h]):a.formData.append(h,a.model[h]))}),""==(null=== 25(B=D.validations[h])||void 0===B?void 0:B.groupName)&&a.formData.append(h,a.model[h]))},I;for(I in a.model)N(I);a.formData.append("redirectURL",y);a.formData.append("resourcePath",z);z=a.$el.querySelectorAll(".track-form-options");if(0<z.length){var J={};z.forEach(function(h){J[h.value]=a.model[h.value]});a.addAnalytics("Click","Submit",{options:J})}else a.addAnalytics("Click","Submit");a.submitting=!0;a.submitError=!1;baseHttp().post(p,a.formData,{headers:{"Content-Type":"multipart/form-data"}}).then(function(h){"undefined"!== 26typeof y&&null!==y?window.location.href=y:(a.submitting=!1,a.formData=new FormData)},function(h){a.submitError=!0;a.submitting=!1;a.formData=new FormData})}()},onVerify:function(a){a&&(this.recaptchaVerified=!0)},onExpired:function(){this.recaptchaVerified=!1},crossValidateFields:function(a,b){if(a=F[a])if(d(a,this.model)||b)for(b=0;b<a.length;b++)r[a[b]]="",this.$v.modelCrossValidation[a[b]].$reset();else for(b=0;b<a.length;b++)r[a[b]]={required:required},this.$v.modelCrossValidation[a[b]].$touch()}, 27onSelectCheckbox:function(a,b,c,k){a=a.target;if(a.checked)a.value=c,q.push(a.value),w.push(b);else if(!a.checked){c=[];var l=[];for(i=0;i<q.length;i++)q[i]==a.value&&-1==c.indexOf(w[i])&&(c.push(w[i]),l.push(i));for(j=0;j<c.length;j++)c[j]==b&&(q.splice(l[j],1),w.splice(l[j],1));a.value=""}t=[];for(i=0;i<w.length;i++)w[i]==b&&t.push(q[i]);"radio"==k&&(t=t.at(-1));this.model[b]=0==t.length?"":t;"boolean"==typeof this.model[b]&&(0==t.length?this.formData.set(t,""):1==t.length?this.formData.set(b,t[0]): 28this.formData.set(b,t))}},mounted:function(){this.loaded=!0;this.submitErrMsg=this.$refs.submitErrMsg.value}})})});
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.