PageSourceSearch

https://www.aviakassa.com/v2/esm-chunk-4Pns1kIL.js

js aviakassa.com collected 2026-10-01 16:26:33 UTC 29,491 bytes, 2 lines download raw bytes

1import{n as e,o as t,t as i}from"./esm-chunk-CPwxaEbD.js";import{Er as s,Tr as n,br as r,dr as o,fr as a,gr as p,hr as d,mr as l,pr as u,sr as y,ur as g,xr as h}from"./esm-chunk-BB6D5_vD.js";import{Dt as c,I as m,Ot as f,bt as v,d as _,g as T}from"./esm-chunk-jXn7SAPa.js";import{J as b,N as F,P as O,U as A,Y as C,Z as j,at as I,it as w,tt as V}from"./esm-chunk-C9kdtlwN.js";import{A as k,M as B,j as D,k as E}from"./esm-chunk-DvThGX8u.js";import{_ as L,a as N,t as R}from"./esm-chunk-C-w3G1XG.js";import{a as S,c as P,d as x,f as G,m as H,s as M}from"./esm-chunk-Da-X7ze4.js";import{a as U,i as K,o as q,r as z}from"./esm-chunk-DaLOZ2iC.js";import{J,X as W,Y,q as X}from"./esm-entry-main-BCEnMk69.js";var Z,Q,$,ee,te,ie,se,ne,re,oe,ae,pe,de,le,ue,ye,ge,he,ce,me,fe,ve,_e,Te,be,Fe,Oe,Ae,Ce,je,Ie,we,Ve,ke,Be,De,Ee,Le,Ne,Re,Se=e(()=>{Z=function(e){return e.DEFAULT="DEFAULT",e.PENDING="PENDING",e.LOGGEDIN="LOGGEDIN",e.NOTLOGGEDIN="NOTLOGGEDIN",e}({})}),Pe=e(()=>{Q=function(e){return e.NONE="NONE",e.PENDING="PENDING",e.FINISH="FINISH",e}({})}),xe=e(()=>{Pe(),$=t(m()),P(),l(),a(),ae=function(e){return e.TICK="TICK",e.FINISH="FINISH",e.START="START",e}({}),pe=class{status=Q.NONE;_timeRemaining=0;_interval=1;_initialTimeRemaining=0;_prevTickTimestamp=0;_intervalId;_listeners=[];constructor({timeRemaining:e,interval:t,startListener:i,tickListener:s,finishListener:n}={}){this._initialTimeRemaining=e||0,this._interval=t||1,s&&this.addTickListener(s),n&&this.addFinishListener(n),i&&this.addStartListener(i),x(this)}get isNone(){return this.status===Q.NONE}get isFinished(){return this.status===Q.FINISH}get isPending(){return this.status===Q.PENDING}get timeRemaining(){return this._timeRemaining}get initialTimeRemaining(){return this._initialTimeRemaining}setInitialTimeRemaining(e){return this._initialTimeRemaining=e,this}setInterval(e){return this._interval=e,this}addTickListener(e){return this.addListener(ae.TICK,e)}addFinishListener(e){return this.addListener(ae.FINISH,e)}addStartListener(e){return this.addListener(ae.START,e)}removeListener(e){return this._listeners=this._listeners.filter(t=>t.id!==e),this}reset(){return this._timeRemaining=this._initialTimeRemaining,this._prevTickTimestamp=0,this._listeners=[],this.status=Q.NONE,this}finish(){return this._timeRemaining=0,this._prevTickTimestamp=0,void 0!==this._intervalId&&(clearInterval(this._intervalId),this._intervalId=void 0),this.status=Q.FINISH,this.callListeners(ae.FINISH),this}start(e){return this._prevTickTimestamp=0,this.status=Q.PENDING,this._initialTimeRemaining=e??this._initialTimeRemaining,this._timeRemaining=this._initialTimeRemaining,this.callListeners(ae.START),void 0!==this._intervalId&&(clearInterval(this._intervalId),this._intervalId=void 0),0===this._timeRemaining?this.finish():(this._intervalId=setInterval(this.tick,1e3*this._interval),this)}tick(){const e=this.getTimeRemainingWithOffset();this._timeRemaining=e>0?e:0,this.callListeners(ae.TICK),e<=0&&this.finish()}getTimeRemainingWithOffset(){let e=this._prevTickTimestamp>0?(Date.now()-this._prevTickTimestamp)/1e3:0;return e<3&&(e=0),this._prevTickTimestamp=Date.now(),this._timeRemaining-this._interval-e}callListeners(e){this._listeners.filter(t=>t.type===e).forEach(e=>{e.callback(this.timeRemaining,()=>this.removeListener(e.id))})}addListener(e,t){const i=(0,$.default)("timer-listener-id");return this._listeners.push({type:e,id:i,callback:t}),()=>this.removeListener(i)}},o([G,u("design:type","function"==typeof(ee=void 0!==Q&&Q)?ee:Object)],pe.prototype,"status",void 0),o([G,u("design:type",Object)],pe.prototype,"_timeRemaining",void 0),o([M,u("design:type",Boolean),u("design:paramtypes",[])],pe.prototype,"isNone",null),o([M,u("design:type",Boolean),u("design:paramtypes",[])],pe.prototype,"isFinished",null),o([M,u("design:type",Boolean),u("design:paramtypes",[])],pe.prototype,"isPending",null),o([M,u("design:type",Number),u("design:paramtypes",[])],pe.prototype,"timeRemaining",null),o([M,u("design:type",Number),u("design:paramtypes",[])],pe.prototype,"initialTimeRemaining",null),o([S.bound,u("design:type",Function),u("design:paramtypes",[Number]),u("design:returntype","function"==typeof(te=void 0!==pe&&pe)?te:Object)],pe.prototype,"setInitialTimeRemaining",null),o([S.bound,u("design:type",Function),u("design:paramtypes",[Number]),u("design:returntype","function"==typeof(ie=void 0!==pe&&pe)?ie:Object)],pe.prototype,"setInterval",null),o([S.bound,u("design:type",Function),u("design:paramtypes",[Object]),u("design:returntype",Object)],pe.prototype,"addTickListener",null),o([S.bound,u("design:type",Function),u("design:paramtypes",[Object]),u("design:returntype",Object)],pe.prototype,"addFinishListener",null),o([S.bound,u("design:type",Function),u("design:paramtypes",[Object]),u("design:returntype",Object)],pe.prototype,"addStartListener",null),o([S.bound,u("design:type",Function),u("design:paramtypes",[String]),u("design:returntype","function"==typeof(se=void 0!==pe&&pe)?se:Object)],pe.prototype,"removeListener",null),o([S.bound,u("design:type",Function),u("design:paramtypes",[]),u("design:returntype","function"==typeof(ne=void 0!==pe&&pe)?ne:Object)],pe.prototype,"reset",null),o([S.bound,u("design:type",Function),u("design:paramtypes",[]),u("design:returntype","function"==typeof(re=void 0!==pe&&pe)?re:Object)],pe.prototype,"finish",null),o([S.bound,u("design:type",Function),u("design:paramtypes",[Number]),u("design:returntype","function"==typeof(oe=void 0!==pe&&pe)?oe:Object)],pe.prototype,"start",null),o([S.bound,u("design:type",Function),u("design:paramtypes",[]),u("design:returntype",void 0)],pe.prototype,"tick",null)}),Ge=e(()=>{y(),w(),P(),l(),a(),ue=class{getCheckData;rules;errors;constructor(e){this.rules=[],this.errors=[],this.getCheckData=e,g.addListenerToLoadResourceAfterChangeLocale(()=>{this.isInvalid&&this.validate()}),x(this)}get isValid(){return null===this.firstError}get isInvalid(){return null!==this.firstError}get firstError(){return this.errors.length>0&&this.errors[0]||null}reset(){this.errors=[]}removeRule(e){const t=this.rules.indexOf(e);return-1!==t&&this.rules.splice(t,1),this}registerRule(...e){return this.rules=this.rules.concat(...e),this}addError(e){return this.errors.push(e),this}validate(){let e=!0;
1return this.errors=[],this.rules.forEach(t=>{const i=t(this.getCheckData());i&&this.errors.push(!0===i?I.validationError():i),e=e&&!i}),e}},o([G.shallow,u("design:type","function"==typeof(de="undefined"!=typeof Array&&Array)?de:Object)],ue.prototype,"rules",void 0),o([G.shallow,u("design:type",Array)],ue.prototype,"errors",void 0),o([M,u("design:type",Object),u("design:paramtypes",[])],ue.prototype,"isValid",null),o([M,u("design:type",Object),u("design:paramtypes",[])],ue.prototype,"isInvalid",null),o([M,u("design:type",Object),u("design:paramtypes",[])],ue.prototype,"firstError",null),o([S,u("design:type",Function),u("design:paramtypes",[]),u("design:returntype",void 0)],ue.prototype,"reset",null),o([S,u("design:type",Function),u("design:paramtypes",[Object]),u("design:returntype",void 0)],ue.prototype,"removeRule",null),o([S,u("design:type",Function),u("design:paramtypes",["function"==typeof(le="undefined"!=typeof Array&&Array)?le:Object]),u("design:returntype",void 0)],ue.prototype,"registerRule",null),o([S,u("design:type",Function),u("design:paramtypes",[String]),u("design:returntype",void 0)],ue.prototype,"addError",null),o([S,u("design:type",Function),u("design:paramtypes",[]),u("design:returntype",void 0)],ue.prototype,"validate",null)}),He=e(()=>{ye=t(v()),ge=t(c()),he=function(e){return e.VALIDATE="validate",e.CHANGE="change",e}({}),ce=class{constructor(e){this._transformers=e}getTransformers(e){return((0,ye.default)(this._transformers)||(0,ge.default)(this._transformers))&&e===he.VALIDATE?this._transformers:this._transformers?.[e]}hasTransformer(e){const t=this.getTransformers(e);return(0,ye.default)(t)?t.length>0:!!t}get hasValidateTransformer(){return this.hasTransformer(he.VALIDATE)}get hasChangeTransformer(){return this.hasTransformer(he.CHANGE)}makeTransform(e,t,i=void 0){const s=this.getTransformers(e);return(0,ye.default)(s)?s.reduce((e,t)=>t(e,i),t):s?s(t,i):t}makeTransformOnValidate(e){return this.makeTransform(he.VALIDATE,e)}makeTransformOnChange(e,t){return this.makeTransform(he.CHANGE,e,t)}}}),Me=e(()=>{me=t(f()),fe=t(m()),P(),Ge(),He(),l(),a(),we=class{transformer;_initialValue;_isDirty=!1;_isDisabled=!1;_isHidden=!1;data;onValueChangeAfter;onValueChangeBefore;valueChangingComparator;validator;id;constructor(e,t,i){this.options=i,this.data={formFieldValue:e},this._initialValue=e,this._isDirty=!1,this.onValueChangeAfter=i?.onValueChangeAfter,this.onValueChangeBefore=i?.onValueChangeBefore,this.valueChangingComparator=i?.valueChangingComparator,this.validator=new ue(()=>this.value),this.transformer=new ce(i?.transform),this.validator.registerRule(...t||[]),this.id=(0,fe.default)("form-field-"),x(this)}get value(){return this.data.formFieldValue}get initialValue(){return this._initialValue}get isDisabled(){return this._isDisabled}get isHidden(){return this._isHidden}get isChanged(){return this.valueChangingComparator?this.valueChangingComparator(this.data.formFieldValue,this._initialValue):this.data.formFieldValue!==this._initialValue}get isValid(){return!(!this._isHidden&&!this._isDisabled)||this.validator.isValid}get errors(){return this.validator.errors.length>0?this.validator.errors:[]}get isDirty(){return this._isDirty}validate(e=!0){return!(!this._isHidden&&!this._isDisabled)||(e&&(this._isDirty=!0),this.data={formFieldValue:this.transformer.makeTransformOnValidate(this.value)},this.validator.validate())}reset(){return this.validatorReset(),this.updateInitial(),this.resetDirty(),this.enable(),this.show(),this}validatorReset(){return this.validator.reset(),this}updateInitial(){return this.data={formFieldValue:this._initialValue},this}resetDirty(){return this._isDirty=!1,this}setDefaultValue(e){return this._initialValue=e,this}enable(){return this._isDisabled=!1,this}disable(){return this._isDisabled=!0,this}show(){return this._isHidden=!1,this}hide(){return this._isHidden=!0,this}set(e,t=!0){return this._isDirty=t,this.onValueChangeBefore&&this.onValueChangeBefore(e),this.data={formFieldValue:this.transformer.makeTransformOnChange(e,this.value)},this.onValueChangeAfter&&this.onValueChangeAfter(this.value),this}hydrate(e){(0,me.default)(e)&&"formFieldValue"in e?this.data.formFieldValue=e.formFieldValue:this.data.formFieldValue=e}},o([G.ref,u("design:type",Object)],we.prototype,"_initialValue",void 0),o([G,u("design:type",Boolean)],we.prototype,"_isDirty",void 0),o([G,u("design:type",Boolean)],we.prototype,"_isDisabled",void 0),o([G,u("design:type",Boolean)],we.prototype,"_isHidden",void 0),o([G,u("design:type",Object)],we.prototype,"data",void 0),o([M({equals:()=>!1}),u("design:type",Object),u("design:paramtypes",[])],we.prototype,"value",null),o([M,u("design:type",Object),u("design:paramtypes",[])],we.prototype,"initialValue",null),o([M,u("design:type",Boolean),u("design:paramtypes",[])],we.prototype,"isDisabled",null),o([M,u("design:type",Boolean),u("design:paramtypes",[])],we.prototype,"isHidden",null),o([M,u("design:type",Boolean),u("design:paramtypes",[])],we.prototype,"isChanged",null),o([M,u("design:type",Boolean),u("design:paramtypes",[])],we.prototype,"isValid",null),o([M,u("design:type",Array),u("design:paramtypes",[])],we.prototype,"errors",null),o([M,u("design:type",Boolean),u("design:paramtypes",[])],we.prototype,"isDirty",null),o([S,u("design:type",Function),u("design:paramtypes",[Object]),u("design:returntype",Boolean)],we.prototype,"validate",null),o([S,u("design:type",Function),u("design:paramtypes",[]),u("design:returntype","function"==typeof(ve=void 0!==we&&we)?ve:Object)],we.prototype,"reset",null),o([S,u("design:type",Function),u("design:paramtypes",[]),u("design:returntype","function"==typeof(_e=void 0!==we&&we)?_e:Object)],we.prototype,"validatorReset",null),o([S,u("design:type",Function),u("design:paramtypes",[]),u("design:returntype","function"==typeof(Te=void 0!==we&&we)?Te:Object)],we.prototype,"updateInitial",null),o([S,u("design:type",Function),u("design:paramtypes",[]),u("design:returntype","function"==typeof(be=void 0!==we&&we)?be:Object)],we.prototype,"resetDirty",null),o([S,u("design:type",Function),u("design:paramtypes",[Object]),u("design:returntype","function"==typeof(Fe=void 0!==we&&we)?Fe:Object)],we.prototype,"setDefaultValue",null),o([S,u("design:type",Function),u("design:paramtypes",[]),u("design:returntype","function"==typeof(Oe=void 0!==we&&we)?Oe:Object)],we.prototype,"enable",null),o([S,u("design:type",Function),u("design:paramtypes",[]),u("design:returntype","function"==typeof(Ae=void 0!==we&&we)?Ae:Object)],we.prototype,"disable",null),o([S,u("design:type",Function),u("design:paramtypes",[]),u("design:returntype","function"==typeof(Ce=void 0!==we&&we)?Ce:Object)],we.prototype,"show",null),o([S,u("design:type",Function),u("design:paramtypes",[]),u("design:returntype","function"==typeof(je=void 0!==we&&we)?je:Object)],we.prototype,"hide",null),o([S.bound,u("design:type",Function),u("design:paramtypes",[Object,Object]),u("design:returntype","function"==typeof(Ie=void 0!==we&&we)?Ie:Object)],we.prototype,"set",null),o([S,u("design:type",Function),u("design:paramtypes",[Object]),u("design:returntype",void 0)],we.prototype,"hydrate",null)}),Ue=i((e,t)=>{var i=T(),s=_();t.exports=function(e,t){return i(s(e,t),1)}}),Ke=e(()=>{P(),Ve=class{listenersStack;_reactionDisposer;
1constructor(e){this._expressionCallback=e,this.listenersStack=[],x(this,{removeListener:S,addListener:S})}addListener(e){this.listenersStack.push(e),this.listenersStack.length>0&&!this._reactionDisposer&&(this._reactionDisposer=H(()=>this._expressionCallback(),()=>{this.listenersStack.forEach(e=>{e()})}))}removeListener(e){const t=this.listenersStack.indexOf(e);-1!==t&&this.listenersStack.splice(t,1),0===this.listenersStack.length&&this._reactionDisposer&&(this._reactionDisposer(),this._reactionDisposer=void 0)}}}),qe=e(()=>{ke=t(Ue()),P(),Me(),Ke(),l(),a(),Re=class{_fields;onChange;constructor(e,t){this._options=t,this._fields=e,this.onChange=new Ve(()=>this._getAllFieldsValues(this._fields)),x(this)}get isChanged(){return this.allFields.some(e=>e.isChanged)}get isDisabled(){return this.allFields.every(e=>e.isDisabled)}get fields(){return this._fields}get isValid(){return this.allFields.every(e=>e.isValid)}get isDirty(){return this.allFields.some(e=>e.isDirty)}get allFields(){const e=[];return this._runThrowFields(this._fields,t=>e.push(t)),e}get invalidFields(){return Object.entries(this._fields).filter(([,e])=>"isValid"in e&&!e.isValid).map(([e])=>e)}get errors(){return Object.entries(this._fields).filter(([,e])=>"isValid"in e&&!e.isValid).map(([e,t])=>({[e]:"errors"in t?t.errors:[]}))}get fieldsData(){return Object.entries(this._fields).map(([e,t])=>({[e]:"value"in t?t.value:t}))}reset(){this._runThrowFields(this._fields,e=>e.reset()),this._options?.onReset?.()}resetValidation(){this._runThrowFields(this._fields,e=>e.validatorReset())}updateInitialValues(){this._runThrowFields(this._fields,e=>e.updateInitial())}resetDirty(){this._runThrowFields(this._fields,e=>e.resetDirty())}disable(){this._runThrowFields(this._fields,e=>e.disable())}enable(){this._runThrowFields(this._fields,e=>e.enable())}submit(){return this._options?.onSubmit?.(this._fields)}swap(e,t){const i=this._fields[e];this._fields[e]=this._fields[t],this._fields[t]=i}validate(e=!0){return this._runThrowFields(this._fields,t=>t.validate(e)),this.isValid}_runThrowFields(e,t){Object.keys(e).forEach(i=>{const s=e[i];s instanceof we?t?.(s,i):Array.isArray(s)?s.forEach(e=>{t?.(e,i)}):s&&this._runThrowFields(s,t)})}_getAllFieldsValues(e){return(0,ke.default)(Object.values(e).map(e=>e instanceof we?e.value:Array.isArray(e)?e.map(e=>e.value):e?this._getAllFieldsValues(e):""))}hydrate(e){this._runThrowFields(this._fields,(t,i)=>{"_fields"in e?t.hydrate(e._fields[i].data):t.hydrate(e[i])})}},o([G,u("design:type",Object)],Re.prototype,"_fields",void 0),o([G.ref,u("design:type","function"==typeof(Be=void 0!==Ve&&Ve)?Be:Object)],Re.prototype,"onChange",void 0),o([M,u("design:type",Boolean),u("design:paramtypes",[])],Re.prototype,"isChanged",null),o([M,u("design:type",Boolean),u("design:paramtypes",[])],Re.prototype,"isDisabled",null),o([M,u("design:type",Object),u("design:paramtypes",[])],Re.prototype,"fields",null),o([M,u("design:type",Boolean),u("design:paramtypes",[])],Re.prototype,"isValid",null),o([M,u("design:type",Boolean),u("design:paramtypes",[])],Re.prototype,"isDirty",null),o([M,u("design:type","function"==typeof(De="undefined"!=typeof Array&&Array)?De:Object),u("design:paramtypes",[])],Re.prototype,"allFields",null),o([M,u("design:type","function"==typeof(Ee="undefined"!=typeof Array&&Array)?Ee:Object),u("design:paramtypes",[])],Re.prototype,"invalidFields",null),o([M,u("design:type","function"==typeof(Le="undefined"!=typeof Array&&Array)?Le:Object),u("design:paramtypes",[])],Re.prototype,"errors",null),o([M,u("design:type",Object),u("design:paramtypes",[])],Re.prototype,"fieldsData",null),o([S,u("design:type",Function),u("design:paramtypes",[]),u("design:returntype",void 0)],Re.prototype,"reset",null),o([S,u("design:type",Function),u("design:paramtypes",[]),u("design:returntype",void 0)],Re.prototype,"resetValidation",null),o([S,u("design:type",Function),u("design:paramtypes",[]),u("design:returntype",void 0)],Re.prototype,"updateInitialValues",null),o([S,u("design:type",Function),u("design:paramtypes",[]),u("design:returntype",void 0)],Re.prototype,"resetDirty",null),o([S,u("design:type",Function),u("design:paramtypes",[]),u("design:returntype",void 0)],Re.prototype,"disable",null),o([S,u("design:type",Function),u("design:paramtypes",[]),u("design:returntype",void 0)],Re.prototype,"enable",null),o([S,u("design:type",Function),u("design:paramtypes",[]),u("design:returntype",Object)],Re.prototype,"submit",null),o([S,u("design:type",Function),u("design:paramtypes",[Object,Object]),u("design:returntype",void 0)],Re.prototype,"swap",null),o([S,u("design:type",Function),u("design:paramtypes",[Object]),u("design:returntype",Boolean)],Re.prototype,"validate",null),o([S,u("design:type",Function),u("design:paramtypes",["function"==typeof(Ne="undefined"!=typeof Record&&Record)?Ne:Object]),u("design:returntype",void 0)],Re.prototype,"hydrate",null)});var ze,Je=e(()=>{F(),Me(),qe()}),We=e(()=>{R(),P(),Je(),l(),a(),ze=class{form;isModalFormOpened=!1;constructor(){this.form=new Re({email:new we("",[e=>O(e||"")||null,e=>A(e||"")||null]),password:new we("",[e=>O(e||"")||null,e=>j(e||"",8)||null,e=>C(e||"",32)||null])}),x(this)}validate(){return this.form.validate()}get isValid(){return this.form.isValid}setModalFormOpened(e){this.isModalFormOpened=e}reset(){this.form.reset()}},o([G,u("design:type",Object)],ze.prototype,"isModalFormOpened",void 0),o([S,u("design:type",Function),u("design:paramtypes",[]),u("design:returntype",Boolean)],ze.prototype,"validate",null),o([M,u("design:type",Boolean),u("design:paramtypes",[])],ze.prototype,"isValid",null),o([S,u("design:type",Function),u("design:paramtypes",[Boolean]),u("design:returntype",void 0)],ze.prototype,"setModalFormOpened",null),o([S,u("design:type",Function),u("design:paramtypes",[]),u("design:returntype",void 0)],ze.prototype,"reset",null),ze=o([L(),u("design:paramtypes",[])],ze)});var Ye,Xe=e(()=>{h(),s(),F(),Me(),qe()}),Ze=e(()=>{R(),P(),Xe(),l(),a(),Ye=class{form;constructor(){this.form=new Re({email:new we("",[e=>O(e||"")||null,e=>A(e||"")||null]),phone:new we({value:"",format:"",dialCode:""},[e=>r.projectType===n.NORDSTAR?null:O(e.value||"")||null,e=>r.projectType===n.NORDSTAR?null:V(e?.value||"",e?.format||"",e?.dialCode||"")||null])}),x(this)}validate(){return this.form.validate()}get isValid(){return this.form.isValid}},o([S,u("design:type",Function),u("design:paramtypes",[]),u("design:returntype",Boolean)],Ye.prototype,"validate",null),o([M,u("design:type",Boolean),u("design:paramtypes",[])],Ye.prototype,"isValid",null),Ye=o([L(),u("design:paramtypes",[])],Ye)});var Qe,$e=e(()=>{F(),Me(),qe()}),et=e(()=>{R(),P(),$e(),l(),a(),Qe=class{form;constructor(){this.form=function(){const e=new Re({password:new we("",[e=>O(e||"")||null,e=>j(e||"",8)||null,e=>C(e||"",32)||null],{onValueChangeAfter:t=>(e.fields.confirmPassword.value&&e.fields.confirmPassword.validate(),t)}),confirmPassword:new we("",[e=>O(e||"")||null,e=>j(e||"",8)||null,e=>C(e||"",32)||null,t=>b(t,e.fields.password.value)||null],{onValueChangeAfter:t=>(e.fields.confirmPassword.validate(),t)}),confirmToken:new we("",[e=>O(e||"")||null])});return e}(),x(this)}validate(){return this.form.validate()}get isValid(){return this.form.isValid}reset(){this.form.reset()}},o([S,u("design:type",Function),u("design:paramtypes",[]),u("design:returntype",Boolean)],Qe.prototype,"validate",null),o([M,u("design:type",Boolean),u("design:paramtypes",[])],Qe.prototype,"isValid",null),o([S,u("design:type",Function),u("design:paramtypes",[]),u("design:returntype",void 0)],Qe.prototype,"reset",null),Qe=o([L(),u("design:paramtypes",[])],Qe)});var tt,it=e(()=>{F(),Me(),qe()}),st=e(()=>{R(),P(),it(),l(),a(),tt=class{form;constructor(){this.form=function(){const e=new Re({accessToken:new we("",[e=>O(e||"")||null]),password:new we("",[e=>O(e||"")||null,e=>j(e||"",8)||null,e=>C(e||"",32)||null],{onValueChangeAfter:t=>(e.fields.confirmPassword.value&&e.fields.confirmPassword.validate(),t)}),confirmPassword:new we("",[e=>O(e||"")||null,e=>j(e||"",8)||null,e=>C(e||"",32)||null,t=>b(t,e.fields.password.value)||null],{onValueChangeAfter:t=>(e.fields.confirmPassword.validate(),t)})});return e}(),x(this)}validate(){return this.form.validate()}get isValid(){return this.form.isValid}},o([S,u("design:type",Function),u("design:paramtypes",[]),u("design:returntype",Boolean)],tt.prototype,"validate",null),o([M,u("design:type",Boolean),u("design:paramtypes",[])],tt.prototype,"isValid",null),tt=o([L(),u("design:paramtypes",[])],tt)});var nt,rt,ot,at,pt,dt,lt,ut=e(()=>{F(),Me(),qe()}),yt=e(()=>{R(),P(),ut(),l(),a(),nt=class{form;constructor(){this.form=new Re({email:new we("",[e=>O(e||"")||null,e=>A(e||"")||null])}),x(this)}validate(){return this.form.validate()}get isValid(){return this.form.isValid}reset(){this.form.reset()}},o([S,u("design:type",Function),u("design:paramtypes",[]),u("design:returntype",Boolean)],nt.prototype,"validate",null),o([M,u("design:type",Boolean),u("design:paramtypes",[])],nt.prototype,"isValid",null),o([S,u("design:type",Function),u("design:paramtypes",[]),u("design:returntype",void 0)],nt.prototype,"reset",null),nt=o([L(),u("design:paramtypes",[])],nt)});function gt(e){const{keys:t,storages:i}=pt[e];return t.map(e=>k(e,i)).find(e=>!!e)||null}function ht(){return gt(at.TAB)?at.TAB:at.DOMAIN}function ct(){if(!d)return;const e=()=>ht()===at.TAB?window.sessionStorage:window.localStorage;return{getItem:t=>e().getItem(t),setItem:(t,i)=>e().setItem(t,i),removeItem:t=>e().removeItem(t)}}var mt,ft,vt,_t,Tt,bt,Ft,Ot,At,Ct,jt=e(()=>{R(),p(),D(),a(),rt="authToken",ot="ak-front-core-.sessionAuthToken",at=function(e){return e.DOMAIN="DOMAIN",e.TAB="TAB",e}({}),pt={[at.DOMAIN]:{keys:[rt,ot],storages:[E.LOCAL]},[at.TAB]:{keys:["tabAuthToken"],storages:[E.SESSION]}},dt=pt[at.DOMAIN].keys,lt=class{get scope(){return ht()}read(){return gt(this.scope)}write(e,t=this.scope){const{keys:i,storages:s}=pt[t];
1i.forEach(t=>{B(t,e,s)})}clear(e=this.scope){const{keys:t,storages:i}=pt[e];t.forEach(e=>{B(e,"",i)})}},lt=o([L()],lt)}),It=e(()=>{R(),Se(),P(),z(),W(),J(),xe(),We(),Ze(),et(),st(),yt(),jt(),l(),a(),At="auth-store",Ct=class{tokenStorage;login;registration;registrationConfirmation;passwordReset;passwordResetConfirm;token=null;loginInfo=null;user=null;isFailureLoginByCode=!1;partnerTokenExpiresAt=null;shouldRedirectToLogin=!1;partnerAuthByCodeExpireTimer;status=Z.DEFAULT;_serverActionManager=new X({getMe:new Y,logIn:new Y,logInByCode:new Y,logInByOtelloCode:new Y,logOut:new Y,restorePassword:new Y,restorePasswordNext:new Y,register:new Y,bindEmail:new Y,registerConfirm:new Y,changeEmail:new Y,changePassword:new Y,changeContactInfo:new Y});constructor(){this.partnerAuthByCodeExpireTimer=new pe({finishListener:()=>this.handlePartnerAuthByCodeExpired()}),x(this),U(this,{name:At,properties:["token","loginInfo","user","partnerTokenExpiresAt"],storage:ct()}).then(()=>{this.syncPartnerAuthByCodeExpireTimer()})}get isAuthorized(){return this.status===Z.LOGGEDIN}get isSuperUser(){return this.tokenStorage.scope===at.TAB}get isPartnerAuthByCodeSession(){return null!==this.partnerTokenExpiresAt}setUser(e){this.user=e,this.status=e?Z.LOGGEDIN:Z.NOTLOGGEDIN}setToken(e){this.token=e}setLoginInfo(e){this.loginInfo=e}setStatus(e){this.status=e}setFailureLoginByCode(){this.isFailureLoginByCode=!0}startPartnerAuthByCodeSession(){this.partnerTokenExpiresAt=Date.now()+6e5,this.syncPartnerAuthByCodeExpireTimer()}clearPartnerAuthByCodeSession(){this.partnerTokenExpiresAt=null,this.stopPartnerAuthByCodeExpireTimer()}resetExpiredPartnerAuthByCodeSession(){this.setToken(null),this.setUser(null),this.clearPartnerAuthByCodeSession(),this.tokenStorage.clear()}completePartnerLoginRedirect(){this.shouldRedirectToLogin=!1}handlePartnerAuthByCodeExpired(){this.isPartnerAuthByCodeSession&&(this.resetExpiredPartnerAuthByCodeSession(),this.shouldRedirectToLogin=!0)}syncPartnerAuthByCodeExpireTimer(){if(!this.partnerTokenExpiresAt)return void this.stopPartnerAuthByCodeExpireTimer();const e=Math.ceil((this.partnerTokenExpiresAt-Date.now())/1e3);e<=0?this.handlePartnerAuthByCodeExpired():(this.partnerAuthByCodeExpireTimer.setInitialTimeRemaining(e),this.partnerAuthByCodeExpireTimer.start(e))}stopPartnerAuthByCodeExpireTimer(){this.partnerAuthByCodeExpireTimer.finish()}stopStore(){K(this)}getServerAction=this._serverActionManager.getServerAction;get isHydrated(){return q(this)}},o([N(lt),u("design:type","function"==typeof(mt=void 0!==lt&&lt)?mt:Object)],Ct.prototype,"tokenStorage",void 0),o([N(ze),u("design:type","function"==typeof(ft=void 0!==ze&&ze)?ft:Object)],Ct.prototype,"login",void 0),o([N(Ye),u("design:type","function"==typeof(vt=void 0!==Ye&&Ye)?vt:Object)],Ct.prototype,"registration",void 0),o([N(Qe),u("design:type","function"==typeof(_t=void 0!==Qe&&Qe)?_t:Object)],Ct.prototype,"registrationConfirmation",void 0),o([N(nt),u("design:type","function"==typeof(Tt=void 0!==nt&&nt)?Tt:Object)],Ct.prototype,"passwordReset",void 0),o([N(tt),u("design:type","function"==typeof(bt=void 0!==tt&&tt)?bt:Object)],Ct.prototype,"passwordResetConfirm",void 0),o([G,u("design:type",Object)],Ct.prototype,"token",void 0),o([G,u("design:type",Object)],Ct.prototype,"loginInfo",void 0),o([G,u("design:type",Object)],Ct.prototype,"user",void 0),o([G,u("design:type",Object)],Ct.prototype,"isFailureLoginByCode",void 0),o([G,u("design:type",Object)],Ct.prototype,"partnerTokenExpiresAt",void 0),o([G,u("design:type",Object)],Ct.prototype,"shouldRedirectToLogin",void 0),o([G,u("design:type","function"==typeof(Ft=void 0!==Z&&Z)?Ft:Object)],Ct.prototype,"status",void 0),o([M,u("design:type",Boolean),u("design:paramtypes",[])],Ct.prototype,"isAuthorized",null),o([M,u("design:type",Boolean),u("design:paramtypes",[])],Ct.prototype,"isPartnerAuthByCodeSession",null),o([S,u("design:type",Function),u("design:paramtypes",[Object]),u("design:returntype",void 0)],Ct.prototype,"setUser",null),o([S,u("design:type",Function),u("design:paramtypes",[Object]),u("design:returntype",void 0)],Ct.prototype,"setToken",null),o([S,u("design:type",Function),u("design:paramtypes",[Object]),u("design:returntype",void 0)],Ct.prototype,"setLoginInfo",null),o([S,u("design:type",Function),u("design:paramtypes",["function"==typeof(Ot=void 0!==Z&&Z)?Ot:Object]),u("design:returntype",void 0)],Ct.prototype,"setStatus",null),o([S,u("design:type",Function),u("design:paramtypes",[]),u("design:returntype",void 0)],Ct.prototype,"setFailureLoginByCode",null),o([S,u("design:type",Function),u("design:paramtypes",[]),u("design:returntype",void 0)],Ct.prototype,"startPartnerAuthByCodeSession",null),o([S,u("design:type",Function),u("design:paramtypes",[]),u("design:returntype",void 0)],Ct.prototype,"clearPartnerAuthByCodeSession",null),o([S,u("design:type",Function),u("design:paramtypes",[]),u("design:returntype",void 0)],Ct.prototype,"resetExpiredPartnerAuthByCodeSession",null),o([S,u("design:type",Function),u("design:paramtypes",[]),u("design:returntype",void 0)],Ct.prototype,"completePartnerL
1oginRedirect",null),o([S,u("design:type",Function),u("design:paramtypes",[]),u("design:returntype",void 0)],Ct.prototype,"handlePartnerAuthByCodeExpired",null),o([S,u("design:type",Function),u("design:paramtypes",[]),u("design:returntype",void 0)],Ct.prototype,"syncPartnerAuthByCodeExpireTimer",null),o([S,u("design:type",Function),u("design:paramtypes",[]),u("design:returntype",void 0)],Ct.prototype,"stopPartnerAuthByCodeExpireTimer",null),o([S,u("design:type",Function),u("design:paramtypes",[]),u("design:returntype",void 0)],Ct.prototype,"stopStore",null),o([S,u("design:type",Object)],Ct.prototype,"getServerAction",void 0),Ct=o([L(),u("design:paramtypes",[])],Ct)});export{Se as A,we as C,pe as D,He as E,xe as O,Ue as S,he as T,Ze as _,ot as a,Re as b,lt as c,yt as d,tt as f,Ye as g,et as h,rt as i,Z as k,jt as l,Qe as m,At as n,dt as o,st as p,It as r,at as s,Ct as t,nt as u,ze as v,Me as w,qe as x,We as y};
2//# sourceMappingURL=esm-chunk-4Pns1kIL.js.map

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.