PageSourceSearch

https://admin.ninjaexcel.com/build/8639.df97651b.js

js ninjaexcel.com collected 2026-10-04 09:49:22 UTC 21,164 bytes, 2 lines download raw bytes

1/*! For license information please see 8639.df97651b.js.LICENSE.txt */
2"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[8639],{28639(e,r,t){t.d(r,{default:()=>j});t(52675),t(89463),t(2259),t(45700),t(16280),t(76918),t(28706),t(2008),t(51629),t(23418),t(74423),t(64346),t(23792),t(62062),t(44114),t(34782),t(1688),t(89572),t(23288),t(94170),t(62010),t(2892),t(59904),t(84185),t(5506),t(53921),t(40875),t(10287),t(26099),t(3362),t(60825),t(27495),t(90906),t(38781),t(21699),t(47764),t(42762),t(98992),t(54520),t(3949),t(81454),t(23500),t(62953),t(76031);var n=t(52891),a=t(91697),o=t(41482);const i=[{key:"Name is required",dict:{es:"El nombre es requerido"}},{key:"Very short name",dict:{es:"Nombre muy corto"}},{key:"Last name is required",dict:{es:"El apellido es requerido"}},{key:"Very short last name",dict:{es:"Apellido muy corto"}},{key:"Email is required",dict:{es:"El correo electrónico es requerido"}},{key:"Email has invalid format",dict:{es:"El correo electrónico no tiene un formato válido"}},{key:"We were unable to complete your registration. Chat with us here or email us at [email protected]",dict:{es:"No pudimos completar tu registro. Chatea con nosotros aquí o escríbenos a [email protected]"}},{key:"You must agree to the terms and conditions",dict:{es:"Debe aceptar los términos y condiciones"}},{key:"Password is required",dict:{es:"La contraseña es requerida"}},{key:"Password must contain at least 8 characters, one uppercase letter, one lowercase letter, one number and one special character",dict:{es:"La contraseña debe contener al menos 8 caracteres, una mayúscula, una minúscula, un número y un carácter especial"}},{key:"Password must be at least 8 characters long",dict:{es:"La contraseña debe tener al menos 8 caracteres"}},{key:"Password must contain at least one number",dict:{es:"La contraseña debe tener al menos un número"}},{key:"Password must contain at least one uppercase letter and one lowercase letter",dict:{es:"La contraseña debe tener al menos una mayúscula y una minúscula"}},{key:"Password must contain at least one special character",dict:{es:"La contraseña debe tener al menos un carácter especial"}},{key:"Passwords should be the same",dict:{es:"Las contraseñas deben ser iguales"}},{key:"Company name is required",dict:{es:"El nombre de la empresa es requerido"}},{key:"Company name is already taken",dict:{es:"El nombre de la empresa ya está tomado"}},{key:"Company industry is required",dict:{es:"El rubro de la empresa es requerido"}},{key:"Company country is required",dict:{es:"El país de la empresa es requerido"}},{key:"Company size is required",dict:{es:"El tamaño de la empresa es requerido"}}];var s=t(72923),c=function(e){return/[a-z]/.test(e)&&/[A-Z]/.test(e)},u=function(e){return/\d/.test(e)},l=function(e){return/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/.test(e)},d=t(69862),p=t(26248),f=t(2005);function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function h(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,a,o,i,s=[],c=!0,u=!1;try{if(o=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;c=!1}else for(;!(c=(n=o.call(t)).done)&&(s.push(n.value),s.length!==r);c=!0);}catch(e){u=!0,a=e}finally{try{if(!c&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(u)throw a}}return s}}(e,r)||function(e,r){if(e){if("string"==typeof e)return y(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?y(e,r):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function g(){var e,r,t="function"==typeof Symbol?Symbol:{},n=t.iterator||"@@iterator",a=t.toStringTag||"@@toStringTag";function o(t,n,a,o){var c=n&&n.prototype instanceof s?n:s,u=Object.create(c.prototype);return v(u,"_invoke",function(t,n,a){var o,s,c,u=0,l=a||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(r,t){return o=r,s=0,c=e,p.n=t,i}};function f(t,n){for(s=t,c=n,r=0;!d&&u&&!a&&r<l.length;r++){var a,o=l[r],f=p.p,m=o[2];t>3?(a=m===n)&&(c=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=f&&((a=t<2&&f<o[1])?(s=0,p.v=n,p.n=o[1]):f<m&&(a=t<3||o[0]>n||n>m)&&(o[4]=t,o[5]=n,p.n=m,s=0))}if(a||t>1)return i;throw d=!0,n}return function(a,l,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===l&&f(l,m),s=l,c=m;(r=s<2?e:c)||!d;){o||(s?s<3?(s>1&&(p.n=-1),f(s,c)):p.n=c:p.v=c);try{if(u=2,o){if(s||(a="next"),r=o[a]){if(!(r=r.call(o,c)))throw TypeError("iterator result is not an object");
2if(!r.done)return r;c=r.value,s<2&&(s=0)}else 1===s&&(r=o.return)&&r.call(o),s<2&&(c=TypeError("The iterator does not provide a '"+a+"' method"),s=1);o=e}else if((r=(d=p.n<0)?c:t.call(n,p))!==i)break}catch(r){o=e,s=1,c=r}finally{u=1}}return{value:r,done:d}}}(t,a,o),!0),u}var i={};function s(){}function c(){}function u(){}r=Object.getPrototypeOf;var l=[][n]?r(r([][n]())):(v(r={},n,function(){return this}),r),d=u.prototype=s.prototype=Object.create(l);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,v(e,a,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=u,v(d,"constructor",u),v(u,"constructor",c),c.displayName="GeneratorFunction",v(u,a,"GeneratorFunction"),v(d),v(d,a,"Generator"),v(d,n,function(){return this}),v(d,"toString",function(){return"[object Generator]"}),(g=function(){return{w:o,m:p}})()}function v(e,r,t,n){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}v=function(e,r,t,n){function o(r,t){v(e,r,function(e){return this._invoke(r,t,e)})}r?a?a(e,r,{value:t,enumerable:!n,configurable:!n,writable:!n}):e[r]=t:(o("next",0),o("throw",1),o("return",2))},v(e,r,t,n)}function b(e,r,t,n,a,o,i){try{var s=e[o](i),c=s.value}catch(e){return void t(e)}s.done?r(c):Promise.resolve(c).then(n,a)}function w(e){return function(){var r=this,t=arguments;return new Promise(function(n,a){var o=e.apply(r,t);function i(e){b(o,n,a,i,s,"next",e)}function s(e){b(o,n,a,i,s,"throw",e)}i(void 0)})}}function _(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,C(n.key),n)}}function k(e,r,t){return r=P(r),function(e,r){if(r&&("object"==m(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,S()?Reflect.construct(r,t||[],P(e).constructor):r.apply(e,t))}function S(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(S=function(){return!!e})()}function P(e){return P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},P(e)}function q(e,r){return q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,r){return e.__proto__=r,e},q(e,r)}function E(e,r,t){return(r=C(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function C(e){var r=function(e,r){if("object"!=m(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,r||"default");if("object"!=m(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"==m(r)?r:r+""}var L="rgb(184, 17, 17)",O={es:{verification_not_ready:"El sistema de verificación no está listo. Por favor, recarga la página.",captcha_verification_error:"Error al verificar el captcha. Por favor, recarga la página.",registration_success:"Se registró correctamente. Por favor, espere mientras se configura su cuenta.",registration_error:"Ocurrió un problema al registrar el usuario",connection_error:"Error de conexión. Por favor, intenta nuevamente."},en:{verification_not_ready:"The verification system is not ready. Please reload the page.",captcha_verification_error:"Error verifying captcha. Please reload the page.",registration_success:"Registration successful. Please wait while your account is being set up.",registration_error:"A problem occurred while registering the user",connection_error:"Connection error. Please try again."}},j=function(e){function r(){var e;!function(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}(this,r);for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return E(e=k(this,r,[].concat(n)),"currentStep",1),E(e,"completedStep",1),E(e,"steps",null),E(e,"language","en"),E(e,"recaptchaLoaded",!1),e}return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&q(e,r)}(r,e),t=r,n=[{key:"connect",value:(b=w(g().m(function e(){var r,t,n,o=this;return g().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,this.loadRecaptcha();case 1:this.setupPasswordToggleIcons(),r=document.querySelector("#onboarding_stepper"),t=a.KTStepper.getOrCreateInstance(r),this.language=this.languageValue,this.steps={1:{validator:this.getUserFormValidation(this.language),isValidated:!1},2:{validator:null,isValidated:!1}},this.userIsAuthValue||(this.steps[3]={validator:null,isValidated:!1}),(n=document.querySelector('[data-kt-stepper-next="true"]')).addEventListener("click",function(){var e=w(g().m(function e(r){var a,i;return g().w(function(e){for(;;)switch(e.n){case 0:return r.preventDefault(),r.stopImmediatePropagation(),n.classList.add("loading"),n.disabled=!0,e.n=1,o.validate(o.currentStep);case 1:if(a=e.v,n.classList.remove("loading"),n.disabled=!1,o.steps[o.currentStep].isValidated=a,a){e.n=2;break}return e.a(2);case 2:i=o.currentStep+1,console.log("step",i,o.completedStep),i>o.completedStep&&(o.completedStep=i),o.addClassStepItem(i,"cursor-pointer"),t.goNext();case 3:return e.a(2)}},e)}));return function(r){return e.apply(this,arguments)}}(),!0),t.on("change",function(e){var r=e.step;o.currentStep=r,o.updateStepDisplay(r)}),t.on("changed",function(){var e=o.currentStep;2!==e||o.steps[2].validator||(o.steps[2].validator=o.getPasswordFormValidation(o.language)),3!==e||o.userIsAuthValue||!o.steps[3]||o.steps[3].validator||(o.steps[3].validator=o.getTenantFormValidation(o.language))}),document.addEventListener("visibilitychange",function(){"hidden"
2!==document.visibilityState||o.steps[o.currentStep].isValidated||o.trackAbandonment()});case 2:return e.a(2)}},e,this)})),function(){return b.apply(this,arguments)})},{key:"loadRecaptcha",value:function(){var e=this;return new Promise(function(r,t){if(e.recaptchaLoaded||"undefined"!=typeof grecaptcha)return e.recaptchaLoaded=!0,void r();var n=document.createElement("script");n.src="https://www.google.com/recaptcha/api.js?render=".concat(e.recaptchaSiteKeyValue),n.async=!0,n.defer=!0,n.onload=function(){e.recaptchaLoaded=!0,r()},n.onerror=function(){t(new Error("Failed to load reCAPTCHA"))},document.head.appendChild(n)})}},{key:"disconnect",value:function(){var e=document.querySelector("#onboarding_stepper"),r=a.KTStepper.getInstance(e);r.off("change"),r.off("changed"),r.dispose()}},{key:"updateStepDisplay",value:function(e){var r=document.querySelector("#current-step");r&&(r.innerHTML=e)}},{key:"createValidator",value:function(){var e=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en",t=new o.Ay("form[name=onboarding]",{errorLabelCssClass:"form-validation-error",errorLabelStyle:{color:L},lockForm:!1},i);return t.onSuccess(function(){var r=w(g().m(function r(n){return g().w(function(r){for(;;)switch(r.n){case 0:if(n){r.n=1;break}return r.a(2);case 1:return r.n=2,e.validate(e.currentStep);case 2:r.v?t.refresh():(t.unlockForm(),setTimeout(function(){e.enableButtons()},1e3));case 3:return r.a(2)}},r)}));return function(e){return r.apply(this,arguments)}}()).onFail(function(r){var t=e.getErrors(r);e.steps[e.currentStep].validator.showErrors(t)}),t.setCurrentLocale(r),t}},{key:"getUserFormValidation",value:function(){var e=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en",t=this.createValidator(r);return t.addField("#onboarding_user_firstname",[{rule:"required",errorMessage:"Name is required"},{rule:"minLength",value:2,errorMessage:"Very short name"}]).addField("#onboarding_user_lastname",[{rule:"required",errorMessage:"Last name is required"},{rule:"minLength",value:2,errorMessage:"Very short last name"}]).addField("#onboarding_user_email",[{rule:"required",errorMessage:"Email is required"},{rule:"email",errorMessage:"Email has invalid format"},{validator:function(r,t){return function(){return!r||""===r.trim()||e.userIsAuthValue?Promise.resolve(!0):(0,s.I)("/client/onboarding/user/check_email",{email:r}).then(function(e){return e.available})}},errorMessage:"We were unable to complete your registration. Chat with us here or email us at [email protected]"}]),t}},{key:"getPasswordFormValidation",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en",r=this.createValidator(e);return r.addField("#onboarding_user_password_first",[{rule:"required",errorMessage:"Password is required"},{rule:"minLength",value:8,errorMessage:"Password must be at least 8 characters long"},{validator:function(e){return void 0!==e&&u(e)},errorMessage:"Password must contain at least one number"},{validator:function(e){return void 0!==e&&c(e)},errorMessage:"Password must contain at least one uppercase letter and one lowercase letter"},{validator:function(e){return void 0!==e&&l(e)},errorMessage:"Password must contain at least one special character"}],{errorsContainer:"#password-first-input_errors"}).addField("#onboarding_user_password_second",[{rule:"required",errorMessage:"Password is required"},{validator:function(e,r){return!r["#onboarding_user_password_first"]||!r["#onboarding_user_password_first"].elem||e===r["#onboarding_user_password_first"].elem.value},errorMessage:"Passwords should be the same"}],{errorsContainer:"#password-second-input_errors"}),r}},{key:"getTenantFormValidation",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en",r=this.createValidator(e);return r.addField("#onboarding_tenant_name",[{rule:"required",errorMessage:"Company name is required"},{validator:function(e,r){return function(){return e&&""!==e.trim()?(0,s.I)("/client/onboarding/tenant/check_name",{name:e}).then(function(e){return e.available}):Promise.resolve(!0)}},errorMessage:"Company name is already taken"}]).addField("#onboarding_tenant_industry",[{rule:"required",errorMessage:"Company industry is required"}]).addField('[data-country-selector-target="input"]',[{validator:function(){var e=document.getElementById("onboarding_tenant_country");return e&&""!==e.value&&null!==e.value},errorMessage:"Company country is required"}],{errorsContainer:"#onboarding_tenant_country_errors"}).addField("#onboarding_tenant_size",[{rule:"required",errorMessage:"Company size is required"}]).addField("#onboarding_user_isAgreeTerms",[{rule:"required",errorMessage:"You must agree to the terms and conditions"}],{errorsContainer:"#onboarding_user_isAgreeTerms_errors"}),r}},{key:"getErrors",value:function(e){return Object.fromEntries(Object.entries(e).filter(function(e){var r=h(e,2);return r[0],!1===r[1].isValid}).map(function(e){var r=h(e,2);return[r[0],r[1].errorMessage]}))}},{key:"validate",value:(v=w(g().m(function e(r){var t,n,a,o;return g().w(function(e){for(;;)switch(e.n){case 0:if(this.steps[r].validator){e.n=1;break}return e.a(2,!0);case 1:return e.n=2,this.steps[r].validator.revalidate();case 2:if(a=t=e.v,!(n=null!==a)){e.n=3;break}n=void 0!==t;case 3:if(!n){e.n=4;break}
2o=t,e.n=5;break;case 4:o=!1;case 5:return e.a(2,o)}},e,this)})),function(e){return v.apply(this,arguments)})},{key:"submitForm",value:(y=w(g().m(function e(r){var t,n,a,o,i=this;return g().w(function(e){for(;;)switch(e.p=e.n){case 0:return r.preventDefault(),r.stopPropagation(),r.stopImmediatePropagation(),t=document.querySelector("form[name=onboarding]"),n=t.querySelector("#submit-button"),(0,f.ro)(n),this.steps[this.currentStep].validator||(2===this.currentStep?this.steps[2].validator=this.getPasswordFormValidation(this.language):3!==this.currentStep||this.userIsAuthValue||(this.steps[3].validator=this.getTenantFormValidation(this.language))),e.n=1,this.validate(this.currentStep);case 1:if(e.v){e.n=2;break}return this.enableButtons(),(0,f.yr)(n),e.a(2);case 2:if(e.p=2,this.recaptchaLoaded){e.n=3;break}return d.A.error(O[this.language].verification_not_ready),this.enableButtons(),(0,f.yr)(n),e.a(2);case 3:return e.n=4,grecaptcha.execute(this.recaptchaSiteKeyValue,{action:"onboarding"});case 4:a=e.v,(o=new FormData(t)).append("captcha",a),fetch(t.action,{method:"POST",body:o}).then(function(){var e=w(g().m(function e(r){var t;return g().w(function(e){for(;;)switch(e.n){case 0:if((t=r.headers.get("content-type"))&&t.includes("application/json")){e.n=1;break}throw new Error("El servidor devolvió una respuesta inválida");case 1:return e.a(2,r.json())}},e)}));return function(r){return e.apply(this,arguments)}}()).then(function(e){if(e.success)i.isFinished=!0,p.L.pushEvent("registration_complete",{userId:e.user_id,category:"Onboarding",userRole:"Admin",label:"email",dateTime:(new Date).toISOString()}),d.A.success(O[i.language].registration_success),setTimeout(function(){window.location.href=e.redirect},3e3);else{var r,t,a=(null===(r=e.errors)||void 0===r?void 0:r.captcha)||(null===(t=e.errors)||void 0===t?void 0:t.general)||O[i.language].registration_error;d.A.error(a);var o=document.getElementById("isAgreeTerms_errors");if(o){var s,c,u=null!==(s=null===(c=e.errors)||void 0===c||null===(c=c.user)||void 0===c||null===(c=c.isAgreeTerms)||void 0===c?void 0:c[0])&&void 0!==s?s:null;u?(o.textContent=u,o.style.color=L,o.style.fontSize="0.875rem",o.style.display="block"):(o.textContent="",o.style.display="")}i.enableButtons(),(0,f.yr)(n)}}).catch(function(e){d.A.error(e.message||O[i.language].connection_error),i.enableButtons(),(0,f.yr)(n)}),e.n=6;break;case 5:e.p=5,e.v,d.A.error(O[this.language].captcha_verification_error),this.enableButtons(),(0,f.yr)(n);case 6:return e.a(2)}},e,this,[[2,5]])})),function(e){return y.apply(this,arguments)})},{key:"enableButtons",value:function(){document.querySelector("form[name=onboarding]").querySelectorAll("button").forEach(function(e){e.disabled=!1,e.removeAttribute("disabled")})}},{key:"checkPasswordField",value:function(e){var r=e.currentTarget.value;""!==r&&null!==r&&this.checkPasswordStrength(r)}},{key:"checkPasswordStrength",value:function(e){var r,t,n={length:(r=e,t=8,r.length>=t),uppercase_lowercase:c(e),number:u(e),special:l(e)};this.changePasswordCheckLabel("length",n.length),this.changePasswordCheckLabel("uppercase-lowercase",n.uppercase_lowercase),this.changePasswordCheckLabel("number",n.number),this.changePasswordCheckLabel("special",n.special)}},{key:"changePasswordCheckLabel",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=document.getElementById("req-".concat(e));t.classList.remove("ki-cross","ki-check","text-success","text-gray-700"),t.classList.add(r?"ki-check":"ki-cross"),t.classList.add(r?"text-success":"text-gray-700")}},{key:"setupPasswordToggleIcons",value:function(){document.querySelectorAll('[data-kt-toggle-password="true"]').forEach(function(e){var r=e.querySelector('[data-kt-toggle-password-trigger="true"]'),t=e.querySelector("input"),n=e.querySelector(".eye-show"),a=e.querySelector(".eye-hide");r&&t&&r.addEventListener("click",function(){var e="password"===t.type;t.type=e?"text":"password",n.classList.toggle("!hidden",e),a.classList.toggle("!hidden",!e)})})}},{key:"trackAbandonment",value:function(){var e=window.innerWidth<=768?"Mobile":"Desktop";
2p.L.pushEvent("registration_abandoned",{category:"Onboarding",lastStepReached:{1:"email_validation",2:"company_data",3:"password_creation"}[this.currentStep],deviceType:e,dateTime:(new Date).toISOString(),sessionId:this.sessionIdValue})}},{key:"changeStep",value:function(e){var r=e.params.step;if(!(r>this.completedStep)){var t=document.querySelector("#onboarding_stepper");a.KTStepper.getOrCreateInstance(t).go(r)}}},{key:"addClassStepItem",value:function(e,r){document.querySelector("div[data-kt-stepper-item='#stepper_".concat(e,"']")).classList.add(r)}}],n&&_(t.prototype,n),m&&_(t,m),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,m,y,v,b}(n.xI);E(j,"values",{language:String,recaptchaSiteKey:String,userIsAuth:Boolean,sessionId:String})}}]);

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.