vendor: 8,970 bytes, lines 1-2
1/*! For license information please see 4302.607aefba96d24e479c57.js.LICENSE.txt */ 2"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[4302],{14302:(t,e,r)=>{r.d(e,{XK:()=>s.ZP,ZP:()=>_});var n=r(19755),o=r.n(n),i=r(98860),a=r(95194),c=r(6241),u=r(48748),s=r(1199);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 h(){h=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),c=new P(o||[]);return n(a,"_invoke",{value:j(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var p={};function d(){}function v(){}function y(){}var g={};u(g,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(S([])));b&&b!==e&&r.call(b,i)&&(g=b);var w=y.prototype=d.prototype=Object.create(g);function k(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function o(n,i,a,c){var u=f(t[n],t,i);if("throw"!==u.type){var s=u.arg,h=s.value;return h&&"object"==l(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(h).then((function(t){s.value=t,a(s)}),(function(t){return o("throw",t,a,c)}))}c(u.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function j(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=_(a,r);if(c){if(c===p)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=f(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function _(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var o=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,p;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function S(t){if(t||""===t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}throw new TypeError(l(t)+" is not iterable")}return v.prototype=y,n(w,"constructor",{value:y,configurable:!0}),n(y,"constructor",{value:v,configurable:!0}),v.displayName=u(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,u(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},k(O.prototype),u(O.prototype,a,(function(){return this})),t.AsyncIterator=O,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new O(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},k(w),u(w,c,"Generator"),u(w,i,(function(){return this})),u(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=S,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},t}function f(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function p(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function d(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?p(Object(r),!0).forEach((function(e){v(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function v(t,e,r){return(e=g(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function y(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,g(n.key),n)}}function g(t){var e=function(t,e){if("object"!==l(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===l(e)?e:String(e)}function m(t,e){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},m(t,e)}function b(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function w(){return w="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=k(t)););return t}(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},w.apply(this,arguments)}
2function k(t){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},k(t)}var O="g-recaptcha-response",j="data-recaptcha-id";const _=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&m(t,e)}(g,t);var e,r,n,a,s,p,v=(s=g,p=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=k(s);if(p){var r=k(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===l(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return b(t)}(this,t)});function g(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,g),(e=v.call(this,d({},t))).silent=!1,e.shouldValidateOnChange=!0,e.flat=!0,e.newAttrsNotAllowed=!1,o().extend(b(e),t),e.model=new c.a,e.initModelFromForm(t);var r=t.resolver,n=t.onSubmit;return e.resolver=r,e.onSubmit=n,e}return e=g,r=[{key:"_classes",value:function(){return d(d({},w(k(g.prototype),"_classes",this).call(this)),{},{inputElement:"js-control-input"})}},{key:"events",value:function(){return{"input :input":"changeInModel","change :input"
2:"handleInputChange","controls:change :input":"changeInModel","change:with-default :input":"updateDefaultsAndChangeInModel",submit:i.default.bind(this.handleSubmit,this)}}},{key:"handleSubmit",value:(n=h().mark((function t(e){return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.preventDefault(),e.stopPropagation(),!this.validateAll().length){t.next=5;break}return t.abrupt("return");case 5:this.onSubmit(this.getJSON());case 6:case"end":return t.stop()}}),t,this)})),a=function(){var t=this,e=arguments;return new Promise((function(r,o){var i=n.apply(t,e);function a(t){f(i,r,o,a,c,"next",t)}function c(t){f(i,r,o,a,c,"throw",t)}a(void 0)}))},function(t){return a.apply(this,arguments)})},{key:"checkCaptchaValidation",value:function(t){if(i.default.find(t,{name:"g-recaptcha-response"})){var e=this.$el.find("[".concat(j,"]"));if(!this.$el.find("#".concat("recaptcha-error")).length){var r=document.createElement("p");r.classList.add("recaptcha__error"),r.id="recaptcha-error",r.textContent=(0,u.i18n)("Please, check reCaptcha (MFA)"),e.prepend(r)}e.show()}}},{key:"scaleRecaptcha",value:function(t){var e=this.$el.find("#"+t),r=this.$el.width()||304,n=r/304;e.find("div").first().css("width",0),r>304?"initial"!==e.css("transform")&&e.css("transform","initial"):e.css({transform:"scale("+n+")",top:0,transformOrigin:"0 0"})}},{key:"resetRecaptcha",value:function(t){var e=this.$el.find("#"+t),r=e.attr(j);if(e.is(":visible")){if(r)return void grecaptcha.reset(r);grecaptcha.reset(o()("#"+O))}}},{key:"hideRecaptcha",value:function(t){var e=this.$el.find("#"+t);e.is(":visible")&&e.hide()}},{key:"showRecaptcha",value:function(t,e){var r=this.$el.find("#"+e);if(!r.is(":visible")){this.boundScaleRecaptcha=i.default.bind(this.scaleRecaptcha,this,e),window.addEventListener("resize",this.boundScaleRecaptcha);var n=grecaptcha.render(r[0],{sitekey:t});r.attr(j,n),this.scaleRecaptcha(e),r.show()}}},{key:"handleInputChange",value:function(t){if(this.changeInModel(t),this.shouldValidateOnChange){var e=t.target.name,r=this.model.toJSON();this.validate({name:e,value:r[e],formValues:r})}}},{key:"reset",value:function(){var t=this;this.shouldValidateOnChange=!1;var e=this.$el.find(":input:not(button)");i.default.each(e,(function(e){var r=o()(e);t.setInputValue(r,""),r.trigger("control:resetValidation"),r.is("select")&&r.trigger("control:reset")})),this.shouldValidateOnChange=!0}},{key:"validate",value:function(t){var e=t.name,r=t.value,n=t.formValues,o=void 0===n?{}:n;if(e===O)return r.length?null:{name:e,value:r,reason:"Recaptcha challenge is not completed"};var a=this.resolver[e];if(!a)return null;var c="";i.default.some(a,(function(t){var n=t({name:e,value:r,formValues:o});return!!n&&(c=n.reason,!0)}));var u=!c,s=this.$el.find(':input:not(button)[name="'.concat(e,'"]'));return u?s.trigger("control:setIsValid",{isValid:!0}):s.trigger("control:setIsValid",{isValid:!1,error:c}),u?null:{name:e,value:r,reason:c}}},{key:"validateAll",value:function(){var t=this,e=this.$el.find(":input:not(button)"),r=[],n=this.getJSON();return i.default.each(e,(function(e){var o=e.name||"",i=t.validate({name:o,value:n[o],formValues:n});i&&r.push(i)})),this.checkCaptchaValidation(r),i.default.compact(r)}},{key:"getJSON",value:function(){return this.updateModelFromForm({withExistingAttrReassign:!0}),this.model.toJSON()}},{key:"initModelFromForm",value:function(t){this._initModelFromForm(t),this.model.setDefaults()}},{key:"updateModelFromForm",value:function(t){t=t||{},this._initModelFromForm({update:!0,handle_skip_class_ignore:t.handle_skip_class_ignore||!1,withExistingAttrReassign:t.withExistingAttrReassign||!1}),this.checkChanges()}},{key:"setTrackingInputs",value:function(t){this._initModelFromForm({$elem:t}),this.model.setDefaults()}},{key:"_initModelFromForm",value:function(t){var e=!1;e=(t=t||{}).withExistingAttrReassign||this.withExistingAttrReassign||e,i.default.each((t.$elem||this.$el).find(":input:not(button)"),(function(r){var n=o()(r),a=this.model.get(n.attr("name"));if((i.default.isUndefined(a)||""===a||e)&&(!n.hasClass("js-form-changes-skip")||t.update)){if(n.hasClass("js-form-changes-skip")&&t.handle_skip_class_ignore)return;this.setModelValue(n)}}),this)}},{key:"hasChanges",value:function(t){return this.model.hasChanges(t)}},{key:"setInputValue",value:function(t,e,r){var n=t.attr("type"),o=r||t.attr("name")||"";switch(n){case"checkbox":t.prop("checked",e);break;case"radio":(t=t.closest('[name="'+o+'"][value="'+e+'"]')).prop("checked",!0);break;default:t.val(e)}t.trigger("change").trigger("controls:change").trigger("autosize").trigger("controls:textarea:autosize"),this.model.set(o,e)}},{key:"getInputValue",value:function(t){var e,r="";switch(t.attr("type")){case"checkbox":case"radio":r=t.prop("checked")?t.val()||"on":"";case"file":r=null===(e=t.get(0))||void 0===e?void 0:e.files;break;default:r=t.val()}return r}},{key:"setModelValue",value:function(t,e){var r,n=t.attr("name"),o=this.model.get(n);if(e=e||{},1==("checkbox"===t.attr("type")&&!1===this.flat)){if(r=this.getInputValue(t),o)switch(i.default.isArray(o)||(o=[o]),r?o.push(r):o=i.default.without(o,t.val()),(r=i.default.sortBy(i.default.uniq(o),(function(t){return(t||"").toString()}))).length){case 1:r=r[0];break;case 0:r=""}}else r=this.getInputValue(t);e.updateDefault&&(this.model.defaults[n]=r),this.model.set(n,r,{silent:e.baseFormSilent||!1})}},{key:"toggleSilence",value:function(t){this.silent=i.default.isBoolean(t)?t:!this.silent}},{key:"updateDefaultsAndChangeInModel",value:function(t){this.changeInModel(t,{updateDefault:!0})}},{key:"changeInModel",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=o()(t.currentTarget);if(!this.silent&&!r.hasClass("js-form-changes-skip")){if(!0===this.newAttrsNotAllowed&&i.default.isUndefined(i.default.propertyOf(this)(["model","defaults",r.attr("name")||""])))return;this.setModelValue(r,e),this.checkChanges()}}},{key:"checkChanges",value:function(){var t=this.hasChanges(),e="has_changes";return t||(e="has_reverted"),this.model.trigger(e,{type:e}),t}},{key:"destroy",value:function(){this.boundScaleRecaptcha&&window.removeEventListener("resize",this.boundScaleRecaptcha)}}],r&&y(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),g}(a.Z)}}]);
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.